codexmeter 1.0.0

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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function Q0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Uz(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 i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Yp={exports:{}},iu={};/**
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 bw;function jz(){if(bw)return iu;bw=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,a){var l=null;if(a!==void 0&&(l=""+a),i.key!==void 0&&(l=""+i.key),"key"in i){a={};for(var u in i)u!=="key"&&(a[u]=i[u])}else a=i;return i=a.ref,{$$typeof:t,type:r,key:l,ref:i!==void 0?i:null,props:a}}return iu.Fragment=e,iu.jsx=n,iu.jsxs=n,iu}var ww;function Yz(){return ww||(ww=1,Yp.exports=jz()),Yp.exports}var z=Yz(),qp={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 Cw;function qz(){if(Cw)return Lt;Cw=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),m=Symbol.iterator;function p(N){return N===null||typeof N!="object"?null:(N=m&&N[m]||N["@@iterator"],typeof N=="function"?N:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,x={};function w(N,U,at){this.props=N,this.context=U,this.refs=x,this.updater=at||y}w.prototype.isReactComponent={},w.prototype.setState=function(N,U){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,U,"setState")},w.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function C(){}C.prototype=w.prototype;function M(N,U,at){this.props=N,this.context=U,this.refs=x,this.updater=at||y}var A=M.prototype=new C;A.constructor=M,S(A,w.prototype),A.isPureReactComponent=!0;var R=Array.isArray;function D(){}var L={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function B(N,U,at){var ot=at.ref;return{$$typeof:t,type:N,key:U,ref:ot!==void 0?ot:null,props:at}}function H(N,U){return B(N.type,U,N.props)}function P(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function q(N){var U={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(at){return U[at]})}var $=/\/+/g;function W(N,U){return typeof N=="object"&&N!==null&&N.key!=null?q(""+N.key):U.toString(36)}function J(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(D,D):(N.status="pending",N.then(function(U){N.status==="pending"&&(N.status="fulfilled",N.value=U)},function(U){N.status==="pending"&&(N.status="rejected",N.reason=U)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function V(N,U,at,ot,ct){var dt=typeof N;(dt==="undefined"||dt==="boolean")&&(N=null);var st=!1;if(N===null)st=!0;else switch(dt){case"bigint":case"string":case"number":st=!0;break;case"object":switch(N.$$typeof){case t:case e:st=!0;break;case d:return st=N._init,V(st(N._payload),U,at,ot,ct)}}if(st)return ct=ct(N),st=ot===""?"."+W(N,0):ot,R(ct)?(at="",st!=null&&(at=st.replace($,"$&/")+"/"),V(ct,U,at,"",function(Yt){return Yt})):ct!=null&&(P(ct)&&(ct=H(ct,at+(ct.key==null||N&&N.key===ct.key?"":(""+ct.key).replace($,"$&/")+"/")+st)),U.push(ct)),1;st=0;var Bt=ot===""?".":ot+":";if(R(N))for(var xt=0;xt<N.length;xt++)ot=N[xt],dt=Bt+W(ot,xt),st+=V(ot,U,at,dt,ct);else if(xt=p(N),typeof xt=="function")for(N=xt.call(N),xt=0;!(ot=N.next()).done;)ot=ot.value,dt=Bt+W(ot,xt++),st+=V(ot,U,at,dt,ct);else if(dt==="object"){if(typeof N.then=="function")return V(J(N),U,at,ot,ct);throw U=String(N),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return st}function K(N,U,at){if(N==null)return N;var ot=[],ct=0;return V(N,ot,"","",function(dt){return U.call(at,dt,ct++)}),ot}function j(N){if(N._status===-1){var U=N._result;U=U(),U.then(function(at){(N._status===0||N._status===-1)&&(N._status=1,N._result=at)},function(at){(N._status===0||N._status===-1)&&(N._status=2,N._result=at)}),N._status===-1&&(N._status=0,N._result=U)}if(N._status===1)return N._result.default;throw N._result}var rt=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},it={map:K,forEach:function(N,U,at){K(N,function(){U.apply(this,arguments)},at)},count:function(N){var U=0;return K(N,function(){U++}),U},toArray:function(N){return K(N,function(U){return U})||[]},only:function(N){if(!P(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return Lt.Activity=v,Lt.Children=it,Lt.Component=w,Lt.Fragment=n,Lt.Profiler=i,Lt.PureComponent=M,Lt.StrictMode=r,Lt.Suspense=f,Lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Lt.__COMPILER_RUNTIME={__proto__:null,c:function(N){return L.H.useMemoCache(N)}},Lt.cache=function(N){return function(){return N.apply(null,arguments)}},Lt.cacheSignal=function(){return null},Lt.cloneElement=function(N,U,at){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ot=S({},N.props),ct=N.key;if(U!=null)for(dt in U.key!==void 0&&(ct=""+U.key),U)!O.call(U,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&U.ref===void 0||(ot[dt]=U[dt]);var dt=arguments.length-2;if(dt===1)ot.children=at;else if(1<dt){for(var st=Array(dt),Bt=0;Bt<dt;Bt++)st[Bt]=arguments[Bt+2];ot.children=st}return B(N.type,ct,ot)},Lt.createContext=function(N){return N={$$typeof:l,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:a,_context:N},N},Lt.createElement=function(N,U,at){var ot,ct={},dt=null;if(U!=null)for(ot in U.key!==void 0&&(dt=""+U.key),U)O.call(U,ot)&&ot!=="key"&&ot!=="__self"&&ot!=="__source"&&(ct[ot]=U[ot]);var st=arguments.length-2;if(st===1)ct.children=at;else if(1<st){for(var Bt=Array(st),xt=0;xt<st;xt++)Bt[xt]=arguments[xt+2];ct.children=Bt}if(N&&N.defaultProps)for(ot in st=N.defaultProps,st)ct[ot]===void 0&&(ct[ot]=st[ot]);return B(N,dt,ct)},Lt.createRef=function(){return{current:null}},Lt.forwardRef=function(N){return{$$typeof:u,render:N}},Lt.isValidElement=P,Lt.lazy=function(N){return{$$typeof:d,_payload:{_status:-1,_result:N},_init:j}},Lt.memo=function(N,U){return{$$typeof:c,type:N,compare:U===void 0?null:U}},Lt.startTransition=function(N){var U=L.T,at={};L.T=at;try{var ot=N(),ct=L.S;ct!==null&&ct(at,ot),typeof ot=="object"&&ot!==null&&typeof ot.then=="function"&&ot.then(D,rt)}catch(dt){rt(dt)}finally{U!==null&&at.types!==null&&(U.types=at.types),L.T=U}},Lt.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Lt.use=function(N){return L.H.use(N)},Lt.useActionState=function(N,U,at){return L.H.useActionState(N,U,at)},Lt.useCallback=function(N,U){return L.H.useCallback(N,U)},Lt.useContext=function(N){return L.H.useContext(N)},Lt.useDebugValue=function(){},Lt.useDeferredValue=function(N,U){return L.H.useDeferredValue(N,U)},Lt.useEffect=function(N,U){return L.H.useEffect(N,U)},Lt.useEffectEvent=function(N){return L.H.useEffectEvent(N)},Lt.useId=function(){return L.H.useId()},Lt.useImperativeHandle=function(N,U,at){return L.H.useImperativeHandle(N,U,at)},Lt.useInsertionEffect=function(N,U){return L.H.useInsertionEffect(N,U)},Lt.useLayoutEffect=function(N,U){return L.H.useLayoutEffect(N,U)},Lt.useMemo=function(N,U){return L.H.useMemo(N,U)},Lt.useOptimistic=function(N,U){return L.H.useOptimistic(N,U)},Lt.useReducer=function(N,U,at){return L.H.useReducer(N,U,at)},Lt.useRef=function(N){return L.H.useRef(N)},Lt.useState=function(N){return L.H.useState(N)},Lt.useSyncExternalStore=function(N,U,at){return L.H.useSyncExternalStore(N,U,at)},Lt.useTransition=function(){return L.H.useTransition()},Lt.version="19.2.4",Lt}var Mw;function Yd(){return Mw||(Mw=1,qp.exports=qz()),qp.exports}var mt=Yd();const K0=Q0(mt);var Xp={exports:{}},au={},Zp={exports:{}},$p={};/**
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 Tw;function Xz(){return Tw||(Tw=1,(function(t){function e(V,K){var j=V.length;V.push(K);t:for(;0<j;){var rt=j-1>>>1,it=V[rt];if(0<i(it,K))V[rt]=K,V[j]=it,j=rt;else break t}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var K=V[0],j=V.pop();if(j!==K){V[0]=j;t:for(var rt=0,it=V.length,N=it>>>1;rt<N;){var U=2*(rt+1)-1,at=V[U],ot=U+1,ct=V[ot];if(0>i(at,j))ot<it&&0>i(ct,at)?(V[rt]=ct,V[ot]=j,rt=ot):(V[rt]=at,V[U]=j,rt=U);else if(ot<it&&0>i(ct,j))V[rt]=ct,V[ot]=j,rt=ot;else break t}}return K}function i(V,K){var j=V.sortIndex-K.sortIndex;return j!==0?j:V.id-K.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var f=[],c=[],d=1,v=null,m=3,p=!1,y=!1,S=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function A(V){for(var K=n(c);K!==null;){if(K.callback===null)r(c);else if(K.startTime<=V)r(c),K.sortIndex=K.expirationTime,e(f,K);else break;K=n(c)}}function R(V){if(S=!1,A(V),!y)if(n(f)!==null)y=!0,D||(D=!0,q());else{var K=n(c);K!==null&&J(R,K.startTime-V)}}var D=!1,L=-1,O=5,B=-1;function H(){return x?!0:!(t.unstable_now()-B<O)}function P(){if(x=!1,D){var V=t.unstable_now();B=V;var K=!0;try{t:{y=!1,S&&(S=!1,C(L),L=-1),p=!0;var j=m;try{e:{for(A(V),v=n(f);v!==null&&!(v.expirationTime>V&&H());){var rt=v.callback;if(typeof rt=="function"){v.callback=null,m=v.priorityLevel;var it=rt(v.expirationTime<=V);if(V=t.unstable_now(),typeof it=="function"){v.callback=it,A(V),K=!0;break e}v===n(f)&&r(f),A(V)}else r(f);v=n(f)}if(v!==null)K=!0;else{var N=n(c);N!==null&&J(R,N.startTime-V),K=!1}}break t}finally{v=null,m=j,p=!1}K=void 0}}finally{K?q():D=!1}}}var q;if(typeof M=="function")q=function(){M(P)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,W=$.port2;$.port1.onmessage=P,q=function(){W.postMessage(null)}}else q=function(){w(P,0)};function J(V,K){L=w(function(){V(t.unstable_now())},K)}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(V){V.callback=null},t.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<V?Math.floor(1e3/V):5},t.unstable_getCurrentPriorityLevel=function(){return m},t.unstable_next=function(V){switch(m){case 1:case 2:case 3:var K=3;break;default:K=m}var j=m;m=K;try{return V()}finally{m=j}},t.unstable_requestPaint=function(){x=!0},t.unstable_runWithPriority=function(V,K){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var j=m;m=V;try{return K()}finally{m=j}},t.unstable_scheduleCallback=function(V,K,j){var rt=t.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?rt+j:rt):j=rt,V){case 1:var it=-1;break;case 2:it=250;break;case 5:it=1073741823;break;case 4:it=1e4;break;default:it=5e3}return it=j+it,V={id:d++,callback:K,priorityLevel:V,startTime:j,expirationTime:it,sortIndex:-1},j>rt?(V.sortIndex=j,e(c,V),n(f)===null&&V===n(c)&&(S?(C(L),L=-1):S=!0,J(R,j-rt))):(V.sortIndex=it,e(f,V),y||p||(y=!0,D||(D=!0,q()))),V},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(V){var K=m;return function(){var j=m;m=K;try{return V.apply(this,arguments)}finally{m=j}}}})($p)),$p}var Aw;function Zz(){return Aw||(Aw=1,Zp.exports=Xz()),Zp.exports}var Wp={exports:{}},je={};/**
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 Dw;function $z(){if(Dw)return je;Dw=1;var t=Yd();function e(f){var c="https://react.dev/errors/"+f;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)c+="&args[]="+encodeURIComponent(arguments[d])}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},i=Symbol.for("react.portal");function a(f,c,d){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:v==null?null:""+v,children:f,containerInfo:c,implementation:d}}var l=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 je.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,je.createPortal=function(f,c){var d=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 a(f,c,null,d)},je.flushSync=function(f){var c=l.T,d=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=c,r.p=d,r.d.f()}},je.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))},je.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},je.preinit=function(f,c){if(typeof f=="string"&&c&&typeof c.as=="string"){var d=c.as,v=u(d,c.crossOrigin),m=typeof c.integrity=="string"?c.integrity:void 0,p=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;d==="style"?r.d.S(f,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:v,integrity:m,fetchPriority:p}):d==="script"&&r.d.X(f,{crossOrigin:v,integrity:m,fetchPriority:p,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},je.preinitModule=function(f,c){if(typeof f=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var d=u(c.as,c.crossOrigin);r.d.M(f,{crossOrigin:d,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)},je.preload=function(f,c){if(typeof f=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var d=c.as,v=u(d,c.crossOrigin);r.d.L(f,d,{crossOrigin:v,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})}},je.preloadModule=function(f,c){if(typeof f=="string")if(c){var d=u(c.as,c.crossOrigin);r.d.m(f,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(f)},je.requestFormReset=function(f){r.d.r(f)},je.unstable_batchedUpdates=function(f,c){return f(c)},je.useFormState=function(f,c,d){return l.H.useFormState(f,c,d)},je.useFormStatus=function(){return l.H.useHostTransitionStatus()},je.version="19.2.4",je}var Rw;function ZA(){if(Rw)return Wp.exports;Rw=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(),Wp.exports=$z(),Wp.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 Ew;function Wz(){if(Ew)return au;Ew=1;var t=Zz(),e=Yd(),n=ZA();function r(o){var s="https://react.dev/errors/"+o;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 #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var s=o,h=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(h=s.return),o=s.return;while(o)}return s.tag===3?h:null}function l(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function u(o){if(o.tag===31){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function f(o){if(a(o)!==o)throw Error(r(188))}function c(o){var s=o.alternate;if(!s){if(s=a(o),s===null)throw Error(r(188));return s!==o?null:o}for(var h=o,g=s;;){var _=h.return;if(_===null)break;var b=_.alternate;if(b===null){if(g=_.return,g!==null){h=g;continue}break}if(_.child===b.child){for(b=_.child;b;){if(b===h)return f(_),o;if(b===g)return f(_),s;b=b.sibling}throw Error(r(188))}if(h.return!==g.return)h=_,g=b;else{for(var T=!1,E=_.child;E;){if(E===h){T=!0,h=_,g=b;break}if(E===g){T=!0,g=_,h=b;break}E=E.sibling}if(!T){for(E=b.child;E;){if(E===h){T=!0,h=b,g=_;break}if(E===g){T=!0,g=b,h=_;break}E=E.sibling}if(!T)throw Error(r(189))}}if(h.alternate!==g)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?o:s}function d(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o;for(o=o.child;o!==null;){if(s=d(o),s!==null)return s;o=o.sibling}return null}var v=Object.assign,m=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),M=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function q(o){return o===null||typeof o!="object"?null:(o=P&&o[P]||o["@@iterator"],typeof o=="function"?o:null)}var $=Symbol.for("react.client.reference");function W(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===$?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case S:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case R:return"Suspense";case D:return"SuspenseList";case B:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case M:return o.displayName||"Context";case C:return(o._context.displayName||"Context")+".Consumer";case A:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case L:return s=o.displayName||null,s!==null?s:W(o.type)||"Memo";case O:s=o._payload,o=o._init;try{return W(o(s))}catch{}}return null}var J=Array.isArray,V=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j={pending:!1,data:null,method:null,action:null},rt=[],it=-1;function N(o){return{current:o}}function U(o){0>it||(o.current=rt[it],rt[it]=null,it--)}function at(o,s){it++,rt[it]=o.current,o.current=s}var ot=N(null),ct=N(null),dt=N(null),st=N(null);function Bt(o,s){switch(at(dt,s),at(ct,o),at(ot,null),s.nodeType){case 9:case 11:o=(o=s.documentElement)&&(o=o.namespaceURI)?Yb(o):0;break;default:if(o=s.tagName,s=s.namespaceURI)s=Yb(s),o=qb(s,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}U(ot),at(ot,o)}function xt(){U(ot),U(ct),U(dt)}function Yt(o){o.memoizedState!==null&&at(st,o);var s=ot.current,h=qb(s,o.type);s!==h&&(at(ct,o),at(ot,h))}function yt(o){ct.current===o&&(U(ot),U(ct)),st.current===o&&(U(st),tu._currentValue=j)}var Et,Ot;function pt(o){if(Et===void 0)try{throw Error()}catch(h){var s=h.stack.trim().match(/\n( *(at )?)/);Et=s&&s[1]||"",Ot=-1<h.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Et+o+Ot}var me=!1;function be(o,s){if(!o||me)return"";me=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(s){var nt=function(){throw Error()};if(Object.defineProperty(nt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(nt,[])}catch(Q){var Z=Q}Reflect.construct(o,[],nt)}else{try{nt.call()}catch(Q){Z=Q}o.call(nt.prototype)}}else{try{throw Error()}catch(Q){Z=Q}(nt=o())&&typeof nt.catch=="function"&&nt.catch(function(){})}}catch(Q){if(Q&&Z&&typeof Q.stack=="string")return[Q.stack,Z.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=g.DetermineComponentFrameRoot(),T=b[0],E=b[1];if(T&&E){var k=T.split(`
44
+ `),X=E.split(`
45
+ `);for(_=g=0;g<k.length&&!k[g].includes("DetermineComponentFrameRoot");)g++;for(;_<X.length&&!X[_].includes("DetermineComponentFrameRoot");)_++;if(g===k.length||_===X.length)for(g=k.length-1,_=X.length-1;1<=g&&0<=_&&k[g]!==X[_];)_--;for(;1<=g&&0<=_;g--,_--)if(k[g]!==X[_]){if(g!==1||_!==1)do if(g--,_--,0>_||k[g]!==X[_]){var tt=`
46
+ `+k[g].replace(" at new "," at ");return o.displayName&&tt.includes("<anonymous>")&&(tt=tt.replace("<anonymous>",o.displayName)),tt}while(1<=g&&0<=_);break}}}finally{me=!1,Error.prepareStackTrace=h}return(h=o?o.displayName||o.name:"")?pt(h):""}function Zr(o,s){switch(o.tag){case 26:case 27:case 5:return pt(o.type);case 16:return pt("Lazy");case 13:return o.child!==s&&s!==null?pt("Suspense Fallback"):pt("Suspense");case 19:return pt("SuspenseList");case 0:case 15:return be(o.type,!1);case 11:return be(o.type.render,!1);case 1:return be(o.type,!0);case 31:return pt("Activity");default:return""}}function Bo(o){try{var s="",h=null;do s+=Zr(o,h),h=o,o=o.return;while(o);return s}catch(g){return`
47
+ Error generating stack: `+g.message+`
48
+ `+g.stack}}var Dr=Object.prototype.hasOwnProperty,fs=t.unstable_scheduleCallback,$r=t.unstable_cancelCallback,Ff=t.unstable_shouldYield,cs=t.unstable_requestPaint,An=t.unstable_now,wL=t.unstable_getCurrentPriorityLevel,bS=t.unstable_ImmediatePriority,wS=t.unstable_UserBlockingPriority,Gf=t.unstable_NormalPriority,CL=t.unstable_LowPriority,CS=t.unstable_IdlePriority,ML=t.log,TL=t.unstable_setDisableYieldValue,hs=null,Dn=null;function zi(o){if(typeof ML=="function"&&TL(o),Dn&&typeof Dn.setStrictMode=="function")try{Dn.setStrictMode(hs,o)}catch{}}var Rn=Math.clz32?Math.clz32:RL,AL=Math.log,DL=Math.LN2;function RL(o){return o>>>=0,o===0?32:31-(AL(o)/DL|0)|0}var Uf=256,jf=262144,Yf=4194304;function Na(o){var s=o&42;if(s!==0)return s;switch(o&-o){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 o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function qf(o,s,h){var g=o.pendingLanes;if(g===0)return 0;var _=0,b=o.suspendedLanes,T=o.pingedLanes;o=o.warmLanes;var E=g&134217727;return E!==0?(g=E&~b,g!==0?_=Na(g):(T&=E,T!==0?_=Na(T):h||(h=E&~o,h!==0&&(_=Na(h))))):(E=g&~b,E!==0?_=Na(E):T!==0?_=Na(T):h||(h=g&~o,h!==0&&(_=Na(h)))),_===0?0:s!==0&&s!==_&&(s&b)===0&&(b=_&-_,h=s&-s,b>=h||b===32&&(h&4194048)!==0)?s:_}function ds(o,s){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&s)===0}function EL(o,s){switch(o){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 MS(){var o=Yf;return Yf<<=1,(Yf&62914560)===0&&(Yf=4194304),o}function zv(o){for(var s=[],h=0;31>h;h++)s.push(o);return s}function vs(o,s){o.pendingLanes|=s,s!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function LL(o,s,h,g,_,b){var T=o.pendingLanes;o.pendingLanes=h,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=h,o.entangledLanes&=h,o.errorRecoveryDisabledLanes&=h,o.shellSuspendCounter=0;var E=o.entanglements,k=o.expirationTimes,X=o.hiddenUpdates;for(h=T&~h;0<h;){var tt=31-Rn(h),nt=1<<tt;E[tt]=0,k[tt]=-1;var Z=X[tt];if(Z!==null)for(X[tt]=null,tt=0;tt<Z.length;tt++){var Q=Z[tt];Q!==null&&(Q.lane&=-536870913)}h&=~nt}g!==0&&TS(o,g,0),b!==0&&_===0&&o.tag!==0&&(o.suspendedLanes|=b&~(T&~s))}function TS(o,s,h){o.pendingLanes|=s,o.suspendedLanes&=~s;var g=31-Rn(s);o.entangledLanes|=s,o.entanglements[g]=o.entanglements[g]|1073741824|h&261930}function AS(o,s){var h=o.entangledLanes|=s;for(o=o.entanglements;h;){var g=31-Rn(h),_=1<<g;_&s|o[g]&s&&(o[g]|=s),h&=~_}}function DS(o,s){var h=s&-s;return h=(h&42)!==0?1:Nv(h),(h&(o.suspendedLanes|s))!==0?0:h}function Nv(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function Iv(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function RS(){var o=K.p;return o!==0?o:(o=window.event,o===void 0?32:gw(o.type))}function ES(o,s){var h=K.p;try{return K.p=o,s()}finally{K.p=h}}var Ni=Math.random().toString(36).slice(2),Pe="__reactFiber$"+Ni,fn="__reactProps$"+Ni,Po="__reactContainer$"+Ni,Bv="__reactEvents$"+Ni,OL="__reactListeners$"+Ni,zL="__reactHandles$"+Ni,LS="__reactResources$"+Ni,gs="__reactMarker$"+Ni;function Pv(o){delete o[Pe],delete o[fn],delete o[Bv],delete o[OL],delete o[zL]}function ko(o){var s=o[Pe];if(s)return s;for(var h=o.parentNode;h;){if(s=h[Po]||h[Pe]){if(h=s.alternate,s.child!==null||h!==null&&h.child!==null)for(o=Jb(o);o!==null;){if(h=o[Pe])return h;o=Jb(o)}return s}o=h,h=o.parentNode}return null}function Ho(o){if(o=o[Pe]||o[Po]){var s=o.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return o}return null}function ps(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o.stateNode;throw Error(r(33))}function Vo(o){var s=o[LS];return s||(s=o[LS]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Ne(o){o[gs]=!0}var OS=new Set,zS={};function Ia(o,s){Fo(o,s),Fo(o+"Capture",s)}function Fo(o,s){for(zS[o]=s,o=0;o<s.length;o++)OS.add(s[o])}var NL=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]*$"),NS={},IS={};function IL(o){return Dr.call(IS,o)?!0:Dr.call(NS,o)?!1:NL.test(o)?IS[o]=!0:(NS[o]=!0,!1)}function Xf(o,s,h){if(IL(s))if(h===null)o.removeAttribute(s);else{switch(typeof h){case"undefined":case"function":case"symbol":o.removeAttribute(s);return;case"boolean":var g=s.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){o.removeAttribute(s);return}}o.setAttribute(s,""+h)}}function Zf(o,s,h){if(h===null)o.removeAttribute(s);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttribute(s,""+h)}}function Wr(o,s,h,g){if(g===null)o.removeAttribute(h);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(h);return}o.setAttributeNS(s,h,""+g)}}function Gn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function BS(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function BL(o,s,h){var g=Object.getOwnPropertyDescriptor(o.constructor.prototype,s);if(!o.hasOwnProperty(s)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var _=g.get,b=g.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return _.call(this)},set:function(T){h=""+T,b.call(this,T)}}),Object.defineProperty(o,s,{enumerable:g.enumerable}),{getValue:function(){return h},setValue:function(T){h=""+T},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function kv(o){if(!o._valueTracker){var s=BS(o)?"checked":"value";o._valueTracker=BL(o,s,""+o[s])}}function PS(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var h=s.getValue(),g="";return o&&(g=BS(o)?o.checked?"true":"false":o.value),o=g,o!==h?(s.setValue(o),!0):!1}function $f(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var PL=/[\n"\\]/g;function Un(o){return o.replace(PL,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Hv(o,s,h,g,_,b,T,E){o.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?o.type=T:o.removeAttribute("type"),s!=null?T==="number"?(s===0&&o.value===""||o.value!=s)&&(o.value=""+Gn(s)):o.value!==""+Gn(s)&&(o.value=""+Gn(s)):T!=="submit"&&T!=="reset"||o.removeAttribute("value"),s!=null?Vv(o,T,Gn(s)):h!=null?Vv(o,T,Gn(h)):g!=null&&o.removeAttribute("value"),_==null&&b!=null&&(o.defaultChecked=!!b),_!=null&&(o.checked=_&&typeof _!="function"&&typeof _!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?o.name=""+Gn(E):o.removeAttribute("name")}function kS(o,s,h,g,_,b,T,E){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(o.type=b),s!=null||h!=null){if(!(b!=="submit"&&b!=="reset"||s!=null)){kv(o);return}h=h!=null?""+Gn(h):"",s=s!=null?""+Gn(s):h,E||s===o.value||(o.value=s),o.defaultValue=s}g=g??_,g=typeof g!="function"&&typeof g!="symbol"&&!!g,o.checked=E?o.checked:!!g,o.defaultChecked=!!g,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(o.name=T),kv(o)}function Vv(o,s,h){s==="number"&&$f(o.ownerDocument)===o||o.defaultValue===""+h||(o.defaultValue=""+h)}function Go(o,s,h,g){if(o=o.options,s){s={};for(var _=0;_<h.length;_++)s["$"+h[_]]=!0;for(h=0;h<o.length;h++)_=s.hasOwnProperty("$"+o[h].value),o[h].selected!==_&&(o[h].selected=_),_&&g&&(o[h].defaultSelected=!0)}else{for(h=""+Gn(h),s=null,_=0;_<o.length;_++){if(o[_].value===h){o[_].selected=!0,g&&(o[_].defaultSelected=!0);return}s!==null||o[_].disabled||(s=o[_])}s!==null&&(s.selected=!0)}}function HS(o,s,h){if(s!=null&&(s=""+Gn(s),s!==o.value&&(o.value=s),h==null)){o.defaultValue!==s&&(o.defaultValue=s);return}o.defaultValue=h!=null?""+Gn(h):""}function VS(o,s,h,g){if(s==null){if(g!=null){if(h!=null)throw Error(r(92));if(J(g)){if(1<g.length)throw Error(r(93));g=g[0]}h=g}h==null&&(h=""),s=h}h=Gn(s),o.defaultValue=h,g=o.textContent,g===h&&g!==""&&g!==null&&(o.value=g),kv(o)}function Uo(o,s){if(s){var h=o.firstChild;if(h&&h===o.lastChild&&h.nodeType===3){h.nodeValue=s;return}}o.textContent=s}var kL=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 FS(o,s,h){var g=s.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?g?o.setProperty(s,""):s==="float"?o.cssFloat="":o[s]="":g?o.setProperty(s,h):typeof h!="number"||h===0||kL.has(s)?s==="float"?o.cssFloat=h:o[s]=(""+h).trim():o[s]=h+"px"}function GS(o,s,h){if(s!=null&&typeof s!="object")throw Error(r(62));if(o=o.style,h!=null){for(var g in h)!h.hasOwnProperty(g)||s!=null&&s.hasOwnProperty(g)||(g.indexOf("--")===0?o.setProperty(g,""):g==="float"?o.cssFloat="":o[g]="");for(var _ in s)g=s[_],s.hasOwnProperty(_)&&h[_]!==g&&FS(o,_,g)}else for(var b in s)s.hasOwnProperty(b)&&FS(o,b,s[b])}function Fv(o){if(o.indexOf("-")===-1)return!1;switch(o){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 HL=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"]]),VL=/^[\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 Wf(o){return VL.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Qr(){}var Gv=null;function Uv(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var jo=null,Yo=null;function US(o){var s=Ho(o);if(s&&(o=s.stateNode)){var h=o[fn]||null;t:switch(o=s.stateNode,s.type){case"input":if(Hv(o,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),s=h.name,h.type==="radio"&&s!=null){for(h=o;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+Un(""+s)+'"][type="radio"]'),s=0;s<h.length;s++){var g=h[s];if(g!==o&&g.form===o.form){var _=g[fn]||null;if(!_)throw Error(r(90));Hv(g,_.value,_.defaultValue,_.defaultValue,_.checked,_.defaultChecked,_.type,_.name)}}for(s=0;s<h.length;s++)g=h[s],g.form===o.form&&PS(g)}break t;case"textarea":HS(o,h.value,h.defaultValue);break t;case"select":s=h.value,s!=null&&Go(o,!!h.multiple,s,!1)}}}var jv=!1;function jS(o,s,h){if(jv)return o(s,h);jv=!0;try{var g=o(s);return g}finally{if(jv=!1,(jo!==null||Yo!==null)&&(Pc(),jo&&(s=jo,o=Yo,Yo=jo=null,US(s),o)))for(s=0;s<o.length;s++)US(o[s])}}function ms(o,s){var h=o.stateNode;if(h===null)return null;var g=h[fn]||null;if(g===null)return null;h=g[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":(g=!g.disabled)||(o=o.type,g=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!g;break t;default:o=!1}if(o)return null;if(h&&typeof h!="function")throw Error(r(231,s,typeof h));return h}var Kr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yv=!1;if(Kr)try{var ys={};Object.defineProperty(ys,"passive",{get:function(){Yv=!0}}),window.addEventListener("test",ys,ys),window.removeEventListener("test",ys,ys)}catch{Yv=!1}var Ii=null,qv=null,Qf=null;function YS(){if(Qf)return Qf;var o,s=qv,h=s.length,g,_="value"in Ii?Ii.value:Ii.textContent,b=_.length;for(o=0;o<h&&s[o]===_[o];o++);var T=h-o;for(g=1;g<=T&&s[h-g]===_[b-g];g++);return Qf=_.slice(o,1<g?1-g:void 0)}function Kf(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Jf(){return!0}function qS(){return!1}function cn(o){function s(h,g,_,b,T){this._reactName=h,this._targetInst=_,this.type=g,this.nativeEvent=b,this.target=T,this.currentTarget=null;for(var E in o)o.hasOwnProperty(E)&&(h=o[E],this[E]=h?h(b):b[E]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Jf:qS,this.isPropagationStopped=qS,this}return v(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=Jf)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=Jf)},persist:function(){},isPersistent:Jf}),s}var Ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tc=cn(Ba),_s=v({},Ba,{view:0,detail:0}),FL=cn(_s),Xv,Zv,Ss,ec=v({},_s,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wv,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Ss&&(Ss&&o.type==="mousemove"?(Xv=o.screenX-Ss.screenX,Zv=o.screenY-Ss.screenY):Zv=Xv=0,Ss=o),Xv)},movementY:function(o){return"movementY"in o?o.movementY:Zv}}),XS=cn(ec),GL=v({},ec,{dataTransfer:0}),UL=cn(GL),jL=v({},_s,{relatedTarget:0}),$v=cn(jL),YL=v({},Ba,{animationName:0,elapsedTime:0,pseudoElement:0}),qL=cn(YL),XL=v({},Ba,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),ZL=cn(XL),$L=v({},Ba,{data:0}),ZS=cn($L),WL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QL={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"},KL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function JL(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=KL[o])?!!s[o]:!1}function Wv(){return JL}var tO=v({},_s,{key:function(o){if(o.key){var s=WL[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=Kf(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?QL[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wv,charCode:function(o){return o.type==="keypress"?Kf(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Kf(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),eO=cn(tO),nO=v({},ec,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$S=cn(nO),rO=v({},_s,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wv}),iO=cn(rO),aO=v({},Ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),oO=cn(aO),lO=v({},ec,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),sO=cn(lO),uO=v({},Ba,{newState:0,oldState:0}),fO=cn(uO),cO=[9,13,27,32],Qv=Kr&&"CompositionEvent"in window,xs=null;Kr&&"documentMode"in document&&(xs=document.documentMode);var hO=Kr&&"TextEvent"in window&&!xs,WS=Kr&&(!Qv||xs&&8<xs&&11>=xs),QS=" ",KS=!1;function JS(o,s){switch(o){case"keyup":return cO.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function t1(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var qo=!1;function dO(o,s){switch(o){case"compositionend":return t1(s);case"keypress":return s.which!==32?null:(KS=!0,QS);case"textInput":return o=s.data,o===QS&&KS?null:o;default:return null}}function vO(o,s){if(qo)return o==="compositionend"||!Qv&&JS(o,s)?(o=YS(),Qf=qv=Ii=null,qo=!1,o):null;switch(o){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 WS&&s.locale!=="ko"?null:s.data;default:return null}}var gO={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 e1(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!gO[o.type]:s==="textarea"}function n1(o,s,h,g){jo?Yo?Yo.push(g):Yo=[g]:jo=g,s=jc(s,"onChange"),0<s.length&&(h=new tc("onChange","change",null,h,g),o.push({event:h,listeners:s}))}var bs=null,ws=null;function pO(o){Hb(o,0)}function nc(o){var s=ps(o);if(PS(s))return o}function r1(o,s){if(o==="change")return s}var i1=!1;if(Kr){var Kv;if(Kr){var Jv="oninput"in document;if(!Jv){var a1=document.createElement("div");a1.setAttribute("oninput","return;"),Jv=typeof a1.oninput=="function"}Kv=Jv}else Kv=!1;i1=Kv&&(!document.documentMode||9<document.documentMode)}function o1(){bs&&(bs.detachEvent("onpropertychange",l1),ws=bs=null)}function l1(o){if(o.propertyName==="value"&&nc(ws)){var s=[];n1(s,ws,o,Uv(o)),jS(pO,s)}}function mO(o,s,h){o==="focusin"?(o1(),bs=s,ws=h,bs.attachEvent("onpropertychange",l1)):o==="focusout"&&o1()}function yO(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return nc(ws)}function _O(o,s){if(o==="click")return nc(s)}function SO(o,s){if(o==="input"||o==="change")return nc(s)}function xO(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var En=typeof Object.is=="function"?Object.is:xO;function Cs(o,s){if(En(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var h=Object.keys(o),g=Object.keys(s);if(h.length!==g.length)return!1;for(g=0;g<h.length;g++){var _=h[g];if(!Dr.call(s,_)||!En(o[_],s[_]))return!1}return!0}function s1(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function u1(o,s){var h=s1(o);o=0;for(var g;h;){if(h.nodeType===3){if(g=o+h.textContent.length,o<=s&&g>=s)return{node:h,offset:s-o};o=g}t:{for(;h;){if(h.nextSibling){h=h.nextSibling;break t}h=h.parentNode}h=void 0}h=s1(h)}}function f1(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?f1(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function c1(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var s=$f(o.document);s instanceof o.HTMLIFrameElement;){try{var h=typeof s.contentWindow.location.href=="string"}catch{h=!1}if(h)o=s.contentWindow;else break;s=$f(o.document)}return s}function tg(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}var bO=Kr&&"documentMode"in document&&11>=document.documentMode,Xo=null,eg=null,Ms=null,ng=!1;function h1(o,s,h){var g=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;ng||Xo==null||Xo!==$f(g)||(g=Xo,"selectionStart"in g&&tg(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),Ms&&Cs(Ms,g)||(Ms=g,g=jc(eg,"onSelect"),0<g.length&&(s=new tc("onSelect","select",null,s,h),o.push({event:s,listeners:g}),s.target=Xo)))}function Pa(o,s){var h={};return h[o.toLowerCase()]=s.toLowerCase(),h["Webkit"+o]="webkit"+s,h["Moz"+o]="moz"+s,h}var Zo={animationend:Pa("Animation","AnimationEnd"),animationiteration:Pa("Animation","AnimationIteration"),animationstart:Pa("Animation","AnimationStart"),transitionrun:Pa("Transition","TransitionRun"),transitionstart:Pa("Transition","TransitionStart"),transitioncancel:Pa("Transition","TransitionCancel"),transitionend:Pa("Transition","TransitionEnd")},rg={},d1={};Kr&&(d1=document.createElement("div").style,"AnimationEvent"in window||(delete Zo.animationend.animation,delete Zo.animationiteration.animation,delete Zo.animationstart.animation),"TransitionEvent"in window||delete Zo.transitionend.transition);function ka(o){if(rg[o])return rg[o];if(!Zo[o])return o;var s=Zo[o],h;for(h in s)if(s.hasOwnProperty(h)&&h in d1)return rg[o]=s[h];return o}var v1=ka("animationend"),g1=ka("animationiteration"),p1=ka("animationstart"),wO=ka("transitionrun"),CO=ka("transitionstart"),MO=ka("transitioncancel"),m1=ka("transitionend"),y1=new Map,ig="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(" ");ig.push("scrollEnd");function vr(o,s){y1.set(o,s),Ia(s,[o])}var rc=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},jn=[],$o=0,ag=0;function ic(){for(var o=$o,s=ag=$o=0;s<o;){var h=jn[s];jn[s++]=null;var g=jn[s];jn[s++]=null;var _=jn[s];jn[s++]=null;var b=jn[s];if(jn[s++]=null,g!==null&&_!==null){var T=g.pending;T===null?_.next=_:(_.next=T.next,T.next=_),g.pending=_}b!==0&&_1(h,_,b)}}function ac(o,s,h,g){jn[$o++]=o,jn[$o++]=s,jn[$o++]=h,jn[$o++]=g,ag|=g,o.lanes|=g,o=o.alternate,o!==null&&(o.lanes|=g)}function og(o,s,h,g){return ac(o,s,h,g),oc(o)}function Ha(o,s){return ac(o,null,null,s),oc(o)}function _1(o,s,h){o.lanes|=h;var g=o.alternate;g!==null&&(g.lanes|=h);for(var _=!1,b=o.return;b!==null;)b.childLanes|=h,g=b.alternate,g!==null&&(g.childLanes|=h),b.tag===22&&(o=b.stateNode,o===null||o._visibility&1||(_=!0)),o=b,b=b.return;return o.tag===3?(b=o.stateNode,_&&s!==null&&(_=31-Rn(h),o=b.hiddenUpdates,g=o[_],g===null?o[_]=[s]:g.push(s),s.lane=h|536870912),b):null}function oc(o){if(50<Xs)throw Xs=0,gp=null,Error(r(185));for(var s=o.return;s!==null;)o=s,s=o.return;return o.tag===3?o.stateNode:null}var Wo={};function TO(o,s,h,g){this.tag=o,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=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(o,s,h,g){return new TO(o,s,h,g)}function lg(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Jr(o,s){var h=o.alternate;return h===null?(h=Ln(o.tag,s,o.key,o.mode),h.elementType=o.elementType,h.type=o.type,h.stateNode=o.stateNode,h.alternate=o,o.alternate=h):(h.pendingProps=s,h.type=o.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=o.flags&65011712,h.childLanes=o.childLanes,h.lanes=o.lanes,h.child=o.child,h.memoizedProps=o.memoizedProps,h.memoizedState=o.memoizedState,h.updateQueue=o.updateQueue,s=o.dependencies,h.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},h.sibling=o.sibling,h.index=o.index,h.ref=o.ref,h.refCleanup=o.refCleanup,h}function S1(o,s){o.flags&=65011714;var h=o.alternate;return h===null?(o.childLanes=0,o.lanes=s,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=h.childLanes,o.lanes=h.lanes,o.child=h.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=h.memoizedProps,o.memoizedState=h.memoizedState,o.updateQueue=h.updateQueue,o.type=h.type,s=h.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),o}function lc(o,s,h,g,_,b){var T=0;if(g=o,typeof o=="function")lg(o)&&(T=1);else if(typeof o=="string")T=Lz(o,h,ot.current)?26:o==="html"||o==="head"||o==="body"?27:5;else t:switch(o){case B:return o=Ln(31,h,s,_),o.elementType=B,o.lanes=b,o;case S:return Va(h.children,_,b,s);case x:T=8,_|=24;break;case w:return o=Ln(12,h,s,_|2),o.elementType=w,o.lanes=b,o;case R:return o=Ln(13,h,s,_),o.elementType=R,o.lanes=b,o;case D:return o=Ln(19,h,s,_),o.elementType=D,o.lanes=b,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case M:T=10;break t;case C:T=9;break t;case A:T=11;break t;case L:T=14;break t;case O:T=16,g=null;break t}T=29,h=Error(r(130,o===null?"null":typeof o,"")),g=null}return s=Ln(T,h,s,_),s.elementType=o,s.type=g,s.lanes=b,s}function Va(o,s,h,g){return o=Ln(7,o,g,s),o.lanes=h,o}function sg(o,s,h){return o=Ln(6,o,null,s),o.lanes=h,o}function x1(o){var s=Ln(18,null,null,0);return s.stateNode=o,s}function ug(o,s,h){return s=Ln(4,o.children!==null?o.children:[],o.key,s),s.lanes=h,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}var b1=new WeakMap;function Yn(o,s){if(typeof o=="object"&&o!==null){var h=b1.get(o);return h!==void 0?h:(s={value:o,source:s,stack:Bo(s)},b1.set(o,s),s)}return{value:o,source:s,stack:Bo(s)}}var Qo=[],Ko=0,sc=null,Ts=0,qn=[],Xn=0,Bi=null,Rr=1,Er="";function ti(o,s){Qo[Ko++]=Ts,Qo[Ko++]=sc,sc=o,Ts=s}function w1(o,s,h){qn[Xn++]=Rr,qn[Xn++]=Er,qn[Xn++]=Bi,Bi=o;var g=Rr;o=Er;var _=32-Rn(g)-1;g&=~(1<<_),h+=1;var b=32-Rn(s)+_;if(30<b){var T=_-_%5;b=(g&(1<<T)-1).toString(32),g>>=T,_-=T,Rr=1<<32-Rn(s)+_|h<<_|g,Er=b+o}else Rr=1<<b|h<<_|g,Er=o}function fg(o){o.return!==null&&(ti(o,1),w1(o,1,0))}function cg(o){for(;o===sc;)sc=Qo[--Ko],Qo[Ko]=null,Ts=Qo[--Ko],Qo[Ko]=null;for(;o===Bi;)Bi=qn[--Xn],qn[Xn]=null,Er=qn[--Xn],qn[Xn]=null,Rr=qn[--Xn],qn[Xn]=null}function C1(o,s){qn[Xn++]=Rr,qn[Xn++]=Er,qn[Xn++]=Bi,Rr=s.id,Er=s.overflow,Bi=o}var ke=null,ue=null,Ut=!1,Pi=null,Zn=!1,hg=Error(r(519));function ki(o){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw As(Yn(s,o)),hg}function M1(o){var s=o.stateNode,h=o.type,g=o.memoizedProps;switch(s[Pe]=o,s[fn]=g,h){case"dialog":Vt("cancel",s),Vt("close",s);break;case"iframe":case"object":case"embed":Vt("load",s);break;case"video":case"audio":for(h=0;h<$s.length;h++)Vt($s[h],s);break;case"source":Vt("error",s);break;case"img":case"image":case"link":Vt("error",s),Vt("load",s);break;case"details":Vt("toggle",s);break;case"input":Vt("invalid",s),kS(s,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0);break;case"select":Vt("invalid",s);break;case"textarea":Vt("invalid",s),VS(s,g.value,g.defaultValue,g.children)}h=g.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||s.textContent===""+h||g.suppressHydrationWarning===!0||Ub(s.textContent,h)?(g.popover!=null&&(Vt("beforetoggle",s),Vt("toggle",s)),g.onScroll!=null&&Vt("scroll",s),g.onScrollEnd!=null&&Vt("scrollend",s),g.onClick!=null&&(s.onclick=Qr),s=!0):s=!1,s||ki(o,!0)}function T1(o){for(ke=o.return;ke;)switch(ke.tag){case 5:case 31:case 13:Zn=!1;return;case 27:case 3:Zn=!0;return;default:ke=ke.return}}function Jo(o){if(o!==ke)return!1;if(!Ut)return T1(o),Ut=!0,!1;var s=o.tag,h;if((h=s!==3&&s!==27)&&((h=s===5)&&(h=o.type,h=!(h!=="form"&&h!=="button")||Ep(o.type,o.memoizedProps)),h=!h),h&&ue&&ki(o),T1(o),s===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));ue=Kb(o)}else if(s===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));ue=Kb(o)}else s===27?(s=ue,Ki(o.type)?(o=Ip,Ip=null,ue=o):ue=s):ue=ke?Wn(o.stateNode.nextSibling):null;return!0}function Fa(){ue=ke=null,Ut=!1}function dg(){var o=Pi;return o!==null&&(gn===null?gn=o:gn.push.apply(gn,o),Pi=null),o}function As(o){Pi===null?Pi=[o]:Pi.push(o)}var vg=N(null),Ga=null,ei=null;function Hi(o,s,h){at(vg,s._currentValue),s._currentValue=h}function ni(o){o._currentValue=vg.current,U(vg)}function gg(o,s,h){for(;o!==null;){var g=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,g!==null&&(g.childLanes|=s)):g!==null&&(g.childLanes&s)!==s&&(g.childLanes|=s),o===h)break;o=o.return}}function pg(o,s,h,g){var _=o.child;for(_!==null&&(_.return=o);_!==null;){var b=_.dependencies;if(b!==null){var T=_.child;b=b.firstContext;t:for(;b!==null;){var E=b;b=_;for(var k=0;k<s.length;k++)if(E.context===s[k]){b.lanes|=h,E=b.alternate,E!==null&&(E.lanes|=h),gg(b.return,h,o),g||(T=null);break t}b=E.next}}else if(_.tag===18){if(T=_.return,T===null)throw Error(r(341));T.lanes|=h,b=T.alternate,b!==null&&(b.lanes|=h),gg(T,h,o),T=null}else T=_.child;if(T!==null)T.return=_;else for(T=_;T!==null;){if(T===o){T=null;break}if(_=T.sibling,_!==null){_.return=T.return,T=_;break}T=T.return}_=T}}function tl(o,s,h,g){o=null;for(var _=s,b=!1;_!==null;){if(!b){if((_.flags&524288)!==0)b=!0;else if((_.flags&262144)!==0)break}if(_.tag===10){var T=_.alternate;if(T===null)throw Error(r(387));if(T=T.memoizedProps,T!==null){var E=_.type;En(_.pendingProps.value,T.value)||(o!==null?o.push(E):o=[E])}}else if(_===st.current){if(T=_.alternate,T===null)throw Error(r(387));T.memoizedState.memoizedState!==_.memoizedState.memoizedState&&(o!==null?o.push(tu):o=[tu])}_=_.return}o!==null&&pg(s,o,h,g),s.flags|=262144}function uc(o){for(o=o.firstContext;o!==null;){if(!En(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Ua(o){Ga=o,ei=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function He(o){return A1(Ga,o)}function fc(o,s){return Ga===null&&Ua(o),A1(o,s)}function A1(o,s){var h=s._currentValue;if(s={context:s,memoizedValue:h,next:null},ei===null){if(o===null)throw Error(r(308));ei=s,o.dependencies={lanes:0,firstContext:s},o.flags|=524288}else ei=ei.next=s;return h}var AO=typeof AbortController<"u"?AbortController:function(){var o=[],s=this.signal={aborted:!1,addEventListener:function(h,g){o.push(g)}};this.abort=function(){s.aborted=!0,o.forEach(function(h){return h()})}},DO=t.unstable_scheduleCallback,RO=t.unstable_NormalPriority,Te={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mg(){return{controller:new AO,data:new Map,refCount:0}}function Ds(o){o.refCount--,o.refCount===0&&DO(RO,function(){o.controller.abort()})}var Rs=null,yg=0,el=0,nl=null;function EO(o,s){if(Rs===null){var h=Rs=[];yg=0,el=xp(),nl={status:"pending",value:void 0,then:function(g){h.push(g)}}}return yg++,s.then(D1,D1),s}function D1(){if(--yg===0&&Rs!==null){nl!==null&&(nl.status="fulfilled");var o=Rs;Rs=null,el=0,nl=null;for(var s=0;s<o.length;s++)(0,o[s])()}}function LO(o,s){var h=[],g={status:"pending",value:null,reason:null,then:function(_){h.push(_)}};return o.then(function(){g.status="fulfilled",g.value=s;for(var _=0;_<h.length;_++)(0,h[_])(s)},function(_){for(g.status="rejected",g.reason=_,_=0;_<h.length;_++)(0,h[_])(void 0)}),g}var R1=V.S;V.S=function(o,s){db=An(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&EO(o,s),R1!==null&&R1(o,s)};var ja=N(null);function _g(){var o=ja.current;return o!==null?o:oe.pooledCache}function cc(o,s){s===null?at(ja,ja.current):at(ja,s.pool)}function E1(){var o=_g();return o===null?null:{parent:Te._currentValue,pool:o}}var rl=Error(r(460)),Sg=Error(r(474)),hc=Error(r(542)),dc={then:function(){}};function L1(o){return o=o.status,o==="fulfilled"||o==="rejected"}function O1(o,s,h){switch(h=o[h],h===void 0?o.push(s):h!==s&&(s.then(Qr,Qr),s=h),s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,N1(o),o;default:if(typeof s.status=="string")s.then(Qr,Qr);else{if(o=oe,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=s,o.status="pending",o.then(function(g){if(s.status==="pending"){var _=s;_.status="fulfilled",_.value=g}},function(g){if(s.status==="pending"){var _=s;_.status="rejected",_.reason=g}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,N1(o),o}throw qa=s,rl}}function Ya(o){try{var s=o._init;return s(o._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(qa=h,rl):h}}var qa=null;function z1(){if(qa===null)throw Error(r(459));var o=qa;return qa=null,o}function N1(o){if(o===rl||o===hc)throw Error(r(483))}var il=null,Es=0;function vc(o){var s=Es;return Es+=1,il===null&&(il=[]),O1(il,o,s)}function Ls(o,s){s=s.props.ref,o.ref=s!==void 0?s:null}function gc(o,s){throw s.$$typeof===m?Error(r(525)):(o=Object.prototype.toString.call(s),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o)))}function I1(o){function s(G,F){if(o){var Y=G.deletions;Y===null?(G.deletions=[F],G.flags|=16):Y.push(F)}}function h(G,F){if(!o)return null;for(;F!==null;)s(G,F),F=F.sibling;return null}function g(G){for(var F=new Map;G!==null;)G.key!==null?F.set(G.key,G):F.set(G.index,G),G=G.sibling;return F}function _(G,F){return G=Jr(G,F),G.index=0,G.sibling=null,G}function b(G,F,Y){return G.index=Y,o?(Y=G.alternate,Y!==null?(Y=Y.index,Y<F?(G.flags|=67108866,F):Y):(G.flags|=67108866,F)):(G.flags|=1048576,F)}function T(G){return o&&G.alternate===null&&(G.flags|=67108866),G}function E(G,F,Y,et){return F===null||F.tag!==6?(F=sg(Y,G.mode,et),F.return=G,F):(F=_(F,Y),F.return=G,F)}function k(G,F,Y,et){var _t=Y.type;return _t===S?tt(G,F,Y.props.children,et,Y.key):F!==null&&(F.elementType===_t||typeof _t=="object"&&_t!==null&&_t.$$typeof===O&&Ya(_t)===F.type)?(F=_(F,Y.props),Ls(F,Y),F.return=G,F):(F=lc(Y.type,Y.key,Y.props,null,G.mode,et),Ls(F,Y),F.return=G,F)}function X(G,F,Y,et){return F===null||F.tag!==4||F.stateNode.containerInfo!==Y.containerInfo||F.stateNode.implementation!==Y.implementation?(F=ug(Y,G.mode,et),F.return=G,F):(F=_(F,Y.children||[]),F.return=G,F)}function tt(G,F,Y,et,_t){return F===null||F.tag!==7?(F=Va(Y,G.mode,et,_t),F.return=G,F):(F=_(F,Y),F.return=G,F)}function nt(G,F,Y){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=sg(""+F,G.mode,Y),F.return=G,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case p:return Y=lc(F.type,F.key,F.props,null,G.mode,Y),Ls(Y,F),Y.return=G,Y;case y:return F=ug(F,G.mode,Y),F.return=G,F;case O:return F=Ya(F),nt(G,F,Y)}if(J(F)||q(F))return F=Va(F,G.mode,Y,null),F.return=G,F;if(typeof F.then=="function")return nt(G,vc(F),Y);if(F.$$typeof===M)return nt(G,fc(G,F),Y);gc(G,F)}return null}function Z(G,F,Y,et){var _t=F!==null?F.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return _t!==null?null:E(G,F,""+Y,et);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case p:return Y.key===_t?k(G,F,Y,et):null;case y:return Y.key===_t?X(G,F,Y,et):null;case O:return Y=Ya(Y),Z(G,F,Y,et)}if(J(Y)||q(Y))return _t!==null?null:tt(G,F,Y,et,null);if(typeof Y.then=="function")return Z(G,F,vc(Y),et);if(Y.$$typeof===M)return Z(G,F,fc(G,Y),et);gc(G,Y)}return null}function Q(G,F,Y,et,_t){if(typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint")return G=G.get(Y)||null,E(F,G,""+et,_t);if(typeof et=="object"&&et!==null){switch(et.$$typeof){case p:return G=G.get(et.key===null?Y:et.key)||null,k(F,G,et,_t);case y:return G=G.get(et.key===null?Y:et.key)||null,X(F,G,et,_t);case O:return et=Ya(et),Q(G,F,Y,et,_t)}if(J(et)||q(et))return G=G.get(Y)||null,tt(F,G,et,_t,null);if(typeof et.then=="function")return Q(G,F,Y,vc(et),_t);if(et.$$typeof===M)return Q(G,F,Y,fc(F,et),_t);gc(F,et)}return null}function ht(G,F,Y,et){for(var _t=null,Zt=null,vt=F,Nt=F=0,Gt=null;vt!==null&&Nt<Y.length;Nt++){vt.index>Nt?(Gt=vt,vt=null):Gt=vt.sibling;var $t=Z(G,vt,Y[Nt],et);if($t===null){vt===null&&(vt=Gt);break}o&&vt&&$t.alternate===null&&s(G,vt),F=b($t,F,Nt),Zt===null?_t=$t:Zt.sibling=$t,Zt=$t,vt=Gt}if(Nt===Y.length)return h(G,vt),Ut&&ti(G,Nt),_t;if(vt===null){for(;Nt<Y.length;Nt++)vt=nt(G,Y[Nt],et),vt!==null&&(F=b(vt,F,Nt),Zt===null?_t=vt:Zt.sibling=vt,Zt=vt);return Ut&&ti(G,Nt),_t}for(vt=g(vt);Nt<Y.length;Nt++)Gt=Q(vt,G,Nt,Y[Nt],et),Gt!==null&&(o&&Gt.alternate!==null&&vt.delete(Gt.key===null?Nt:Gt.key),F=b(Gt,F,Nt),Zt===null?_t=Gt:Zt.sibling=Gt,Zt=Gt);return o&&vt.forEach(function(ra){return s(G,ra)}),Ut&&ti(G,Nt),_t}function wt(G,F,Y,et){if(Y==null)throw Error(r(151));for(var _t=null,Zt=null,vt=F,Nt=F=0,Gt=null,$t=Y.next();vt!==null&&!$t.done;Nt++,$t=Y.next()){vt.index>Nt?(Gt=vt,vt=null):Gt=vt.sibling;var ra=Z(G,vt,$t.value,et);if(ra===null){vt===null&&(vt=Gt);break}o&&vt&&ra.alternate===null&&s(G,vt),F=b(ra,F,Nt),Zt===null?_t=ra:Zt.sibling=ra,Zt=ra,vt=Gt}if($t.done)return h(G,vt),Ut&&ti(G,Nt),_t;if(vt===null){for(;!$t.done;Nt++,$t=Y.next())$t=nt(G,$t.value,et),$t!==null&&(F=b($t,F,Nt),Zt===null?_t=$t:Zt.sibling=$t,Zt=$t);return Ut&&ti(G,Nt),_t}for(vt=g(vt);!$t.done;Nt++,$t=Y.next())$t=Q(vt,G,Nt,$t.value,et),$t!==null&&(o&&$t.alternate!==null&&vt.delete($t.key===null?Nt:$t.key),F=b($t,F,Nt),Zt===null?_t=$t:Zt.sibling=$t,Zt=$t);return o&&vt.forEach(function(Gz){return s(G,Gz)}),Ut&&ti(G,Nt),_t}function ae(G,F,Y,et){if(typeof Y=="object"&&Y!==null&&Y.type===S&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case p:t:{for(var _t=Y.key;F!==null;){if(F.key===_t){if(_t=Y.type,_t===S){if(F.tag===7){h(G,F.sibling),et=_(F,Y.props.children),et.return=G,G=et;break t}}else if(F.elementType===_t||typeof _t=="object"&&_t!==null&&_t.$$typeof===O&&Ya(_t)===F.type){h(G,F.sibling),et=_(F,Y.props),Ls(et,Y),et.return=G,G=et;break t}h(G,F);break}else s(G,F);F=F.sibling}Y.type===S?(et=Va(Y.props.children,G.mode,et,Y.key),et.return=G,G=et):(et=lc(Y.type,Y.key,Y.props,null,G.mode,et),Ls(et,Y),et.return=G,G=et)}return T(G);case y:t:{for(_t=Y.key;F!==null;){if(F.key===_t)if(F.tag===4&&F.stateNode.containerInfo===Y.containerInfo&&F.stateNode.implementation===Y.implementation){h(G,F.sibling),et=_(F,Y.children||[]),et.return=G,G=et;break t}else{h(G,F);break}else s(G,F);F=F.sibling}et=ug(Y,G.mode,et),et.return=G,G=et}return T(G);case O:return Y=Ya(Y),ae(G,F,Y,et)}if(J(Y))return ht(G,F,Y,et);if(q(Y)){if(_t=q(Y),typeof _t!="function")throw Error(r(150));return Y=_t.call(Y),wt(G,F,Y,et)}if(typeof Y.then=="function")return ae(G,F,vc(Y),et);if(Y.$$typeof===M)return ae(G,F,fc(G,Y),et);gc(G,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,F!==null&&F.tag===6?(h(G,F.sibling),et=_(F,Y),et.return=G,G=et):(h(G,F),et=sg(Y,G.mode,et),et.return=G,G=et),T(G)):h(G,F)}return function(G,F,Y,et){try{Es=0;var _t=ae(G,F,Y,et);return il=null,_t}catch(vt){if(vt===rl||vt===hc)throw vt;var Zt=Ln(29,vt,null,G.mode);return Zt.lanes=et,Zt.return=G,Zt}finally{}}}var Xa=I1(!0),B1=I1(!1),Vi=!1;function xg(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bg(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Fi(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Gi(o,s,h){var g=o.updateQueue;if(g===null)return null;if(g=g.shared,(Qt&2)!==0){var _=g.pending;return _===null?s.next=s:(s.next=_.next,_.next=s),g.pending=s,s=oc(o),_1(o,null,h),s}return ac(o,g,s,h),oc(o)}function Os(o,s,h){if(s=s.updateQueue,s!==null&&(s=s.shared,(h&4194048)!==0)){var g=s.lanes;g&=o.pendingLanes,h|=g,s.lanes=h,AS(o,h)}}function wg(o,s){var h=o.updateQueue,g=o.alternate;if(g!==null&&(g=g.updateQueue,h===g)){var _=null,b=null;if(h=h.firstBaseUpdate,h!==null){do{var T={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};b===null?_=b=T:b=b.next=T,h=h.next}while(h!==null);b===null?_=b=s:b=b.next=s}else _=b=s;h={baseState:g.baseState,firstBaseUpdate:_,lastBaseUpdate:b,shared:g.shared,callbacks:g.callbacks},o.updateQueue=h;return}o=h.lastBaseUpdate,o===null?h.firstBaseUpdate=s:o.next=s,h.lastBaseUpdate=s}var Cg=!1;function zs(){if(Cg){var o=nl;if(o!==null)throw o}}function Ns(o,s,h,g){Cg=!1;var _=o.updateQueue;Vi=!1;var b=_.firstBaseUpdate,T=_.lastBaseUpdate,E=_.shared.pending;if(E!==null){_.shared.pending=null;var k=E,X=k.next;k.next=null,T===null?b=X:T.next=X,T=k;var tt=o.alternate;tt!==null&&(tt=tt.updateQueue,E=tt.lastBaseUpdate,E!==T&&(E===null?tt.firstBaseUpdate=X:E.next=X,tt.lastBaseUpdate=k))}if(b!==null){var nt=_.baseState;T=0,tt=X=k=null,E=b;do{var Z=E.lane&-536870913,Q=Z!==E.lane;if(Q?(Ft&Z)===Z:(g&Z)===Z){Z!==0&&Z===el&&(Cg=!0),tt!==null&&(tt=tt.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});t:{var ht=o,wt=E;Z=s;var ae=h;switch(wt.tag){case 1:if(ht=wt.payload,typeof ht=="function"){nt=ht.call(ae,nt,Z);break t}nt=ht;break t;case 3:ht.flags=ht.flags&-65537|128;case 0:if(ht=wt.payload,Z=typeof ht=="function"?ht.call(ae,nt,Z):ht,Z==null)break t;nt=v({},nt,Z);break t;case 2:Vi=!0}}Z=E.callback,Z!==null&&(o.flags|=64,Q&&(o.flags|=8192),Q=_.callbacks,Q===null?_.callbacks=[Z]:Q.push(Z))}else Q={lane:Z,tag:E.tag,payload:E.payload,callback:E.callback,next:null},tt===null?(X=tt=Q,k=nt):tt=tt.next=Q,T|=Z;if(E=E.next,E===null){if(E=_.shared.pending,E===null)break;Q=E,E=Q.next,Q.next=null,_.lastBaseUpdate=Q,_.shared.pending=null}}while(!0);tt===null&&(k=nt),_.baseState=k,_.firstBaseUpdate=X,_.lastBaseUpdate=tt,b===null&&(_.shared.lanes=0),Xi|=T,o.lanes=T,o.memoizedState=nt}}function P1(o,s){if(typeof o!="function")throw Error(r(191,o));o.call(s)}function k1(o,s){var h=o.callbacks;if(h!==null)for(o.callbacks=null,o=0;o<h.length;o++)P1(h[o],s)}var al=N(null),pc=N(0);function H1(o,s){o=ci,at(pc,o),at(al,s),ci=o|s.baseLanes}function Mg(){at(pc,ci),at(al,al.current)}function Tg(){ci=pc.current,U(al),U(pc)}var On=N(null),$n=null;function Ui(o){var s=o.alternate;at(we,we.current&1),at(On,o),$n===null&&(s===null||al.current!==null||s.memoizedState!==null)&&($n=o)}function Ag(o){at(we,we.current),at(On,o),$n===null&&($n=o)}function V1(o){o.tag===22?(at(we,we.current),at(On,o),$n===null&&($n=o)):ji()}function ji(){at(we,we.current),at(On,On.current)}function zn(o){U(On),$n===o&&($n=null),U(we)}var we=N(0);function mc(o){for(var s=o;s!==null;){if(s.tag===13){var h=s.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||zp(h)||Np(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===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var ri=0,zt=null,re=null,Ae=null,yc=!1,ol=!1,Za=!1,_c=0,Is=0,ll=null,OO=0;function ye(){throw Error(r(321))}function Dg(o,s){if(s===null)return!1;for(var h=0;h<s.length&&h<o.length;h++)if(!En(o[h],s[h]))return!1;return!0}function Rg(o,s,h,g,_,b){return ri=b,zt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,V.H=o===null||o.memoizedState===null?Cx:jg,Za=!1,b=h(g,_),Za=!1,ol&&(b=G1(s,h,g,_)),F1(o),b}function F1(o){V.H=ks;var s=re!==null&&re.next!==null;if(ri=0,Ae=re=zt=null,yc=!1,Is=0,ll=null,s)throw Error(r(300));o===null||De||(o=o.dependencies,o!==null&&uc(o)&&(De=!0))}function G1(o,s,h,g){zt=o;var _=0;do{if(ol&&(ll=null),Is=0,ol=!1,25<=_)throw Error(r(301));if(_+=1,Ae=re=null,o.updateQueue!=null){var b=o.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}V.H=Mx,b=s(h,g)}while(ol);return b}function zO(){var o=V.H,s=o.useState()[0];return s=typeof s.then=="function"?Bs(s):s,o=o.useState()[0],(re!==null?re.memoizedState:null)!==o&&(zt.flags|=1024),s}function Eg(){var o=_c!==0;return _c=0,o}function Lg(o,s,h){s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~h}function Og(o){if(yc){for(o=o.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}yc=!1}ri=0,Ae=re=zt=null,ol=!1,Is=_c=0,ll=null}function Ke(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ae===null?zt.memoizedState=Ae=o:Ae=Ae.next=o,Ae}function Ce(){if(re===null){var o=zt.alternate;o=o!==null?o.memoizedState:null}else o=re.next;var s=Ae===null?zt.memoizedState:Ae.next;if(s!==null)Ae=s,re=o;else{if(o===null)throw zt.alternate===null?Error(r(467)):Error(r(310));re=o,o={memoizedState:re.memoizedState,baseState:re.baseState,baseQueue:re.baseQueue,queue:re.queue,next:null},Ae===null?zt.memoizedState=Ae=o:Ae=Ae.next=o}return Ae}function Sc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bs(o){var s=Is;return Is+=1,ll===null&&(ll=[]),o=O1(ll,o,s),s=zt,(Ae===null?s.memoizedState:Ae.next)===null&&(s=s.alternate,V.H=s===null||s.memoizedState===null?Cx:jg),o}function xc(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Bs(o);if(o.$$typeof===M)return He(o)}throw Error(r(438,String(o)))}function zg(o){var s=null,h=zt.updateQueue;if(h!==null&&(s=h.memoCache),s==null){var g=zt.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(s={data:g.data.map(function(_){return _.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),h===null&&(h=Sc(),zt.updateQueue=h),h.memoCache=s,h=s.data[s.index],h===void 0)for(h=s.data[s.index]=Array(o),g=0;g<o;g++)h[g]=H;return s.index++,h}function ii(o,s){return typeof s=="function"?s(o):s}function bc(o){var s=Ce();return Ng(s,re,o)}function Ng(o,s,h){var g=o.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=h;var _=o.baseQueue,b=g.pending;if(b!==null){if(_!==null){var T=_.next;_.next=b.next,b.next=T}s.baseQueue=_=b,g.pending=null}if(b=o.baseState,_===null)o.memoizedState=b;else{s=_.next;var E=T=null,k=null,X=s,tt=!1;do{var nt=X.lane&-536870913;if(nt!==X.lane?(Ft&nt)===nt:(ri&nt)===nt){var Z=X.revertLane;if(Z===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),nt===el&&(tt=!0);else if((ri&Z)===Z){X=X.next,Z===el&&(tt=!0);continue}else nt={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},k===null?(E=k=nt,T=b):k=k.next=nt,zt.lanes|=Z,Xi|=Z;nt=X.action,Za&&h(b,nt),b=X.hasEagerState?X.eagerState:h(b,nt)}else Z={lane:nt,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},k===null?(E=k=Z,T=b):k=k.next=Z,zt.lanes|=nt,Xi|=nt;X=X.next}while(X!==null&&X!==s);if(k===null?T=b:k.next=E,!En(b,o.memoizedState)&&(De=!0,tt&&(h=nl,h!==null)))throw h;o.memoizedState=b,o.baseState=T,o.baseQueue=k,g.lastRenderedState=b}return _===null&&(g.lanes=0),[o.memoizedState,g.dispatch]}function Ig(o){var s=Ce(),h=s.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=o;var g=h.dispatch,_=h.pending,b=s.memoizedState;if(_!==null){h.pending=null;var T=_=_.next;do b=o(b,T.action),T=T.next;while(T!==_);En(b,s.memoizedState)||(De=!0),s.memoizedState=b,s.baseQueue===null&&(s.baseState=b),h.lastRenderedState=b}return[b,g]}function U1(o,s,h){var g=zt,_=Ce(),b=Ut;if(b){if(h===void 0)throw Error(r(407));h=h()}else h=s();var T=!En((re||_).memoizedState,h);if(T&&(_.memoizedState=h,De=!0),_=_.queue,kg(q1.bind(null,g,_,o),[o]),_.getSnapshot!==s||T||Ae!==null&&Ae.memoizedState.tag&1){if(g.flags|=2048,sl(9,{destroy:void 0},Y1.bind(null,g,_,h,s),null),oe===null)throw Error(r(349));b||(ri&127)!==0||j1(g,s,h)}return h}function j1(o,s,h){o.flags|=16384,o={getSnapshot:s,value:h},s=zt.updateQueue,s===null?(s=Sc(),zt.updateQueue=s,s.stores=[o]):(h=s.stores,h===null?s.stores=[o]:h.push(o))}function Y1(o,s,h,g){s.value=h,s.getSnapshot=g,X1(s)&&Z1(o)}function q1(o,s,h){return h(function(){X1(s)&&Z1(o)})}function X1(o){var s=o.getSnapshot;o=o.value;try{var h=s();return!En(o,h)}catch{return!0}}function Z1(o){var s=Ha(o,2);s!==null&&pn(s,o,2)}function Bg(o){var s=Ke();if(typeof o=="function"){var h=o;if(o=h(),Za){zi(!0);try{h()}finally{zi(!1)}}}return s.memoizedState=s.baseState=o,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:o},s}function $1(o,s,h,g){return o.baseState=h,Ng(o,re,typeof g=="function"?g:ii)}function NO(o,s,h,g,_){if(Mc(o))throw Error(r(485));if(o=s.action,o!==null){var b={payload:_,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){b.listeners.push(T)}};V.T!==null?h(!0):b.isTransition=!1,g(b),h=s.pending,h===null?(b.next=s.pending=b,W1(s,b)):(b.next=h.next,s.pending=h.next=b)}}function W1(o,s){var h=s.action,g=s.payload,_=o.state;if(s.isTransition){var b=V.T,T={};V.T=T;try{var E=h(_,g),k=V.S;k!==null&&k(T,E),Q1(o,s,E)}catch(X){Pg(o,s,X)}finally{b!==null&&T.types!==null&&(b.types=T.types),V.T=b}}else try{b=h(_,g),Q1(o,s,b)}catch(X){Pg(o,s,X)}}function Q1(o,s,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(g){K1(o,s,g)},function(g){return Pg(o,s,g)}):K1(o,s,h)}function K1(o,s,h){s.status="fulfilled",s.value=h,J1(s),o.state=h,s=o.pending,s!==null&&(h=s.next,h===s?o.pending=null:(h=h.next,s.next=h,W1(o,h)))}function Pg(o,s,h){var g=o.pending;if(o.pending=null,g!==null){g=g.next;do s.status="rejected",s.reason=h,J1(s),s=s.next;while(s!==g)}o.action=null}function J1(o){o=o.listeners;for(var s=0;s<o.length;s++)(0,o[s])()}function tx(o,s){return s}function ex(o,s){if(Ut){var h=oe.formState;if(h!==null){t:{var g=zt;if(Ut){if(ue){e:{for(var _=ue,b=Zn;_.nodeType!==8;){if(!b){_=null;break e}if(_=Wn(_.nextSibling),_===null){_=null;break e}}b=_.data,_=b==="F!"||b==="F"?_:null}if(_){ue=Wn(_.nextSibling),g=_.data==="F!";break t}}ki(g)}g=!1}g&&(s=h[0])}}return h=Ke(),h.memoizedState=h.baseState=s,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tx,lastRenderedState:s},h.queue=g,h=Sx.bind(null,zt,g),g.dispatch=h,g=Bg(!1),b=Ug.bind(null,zt,!1,g.queue),g=Ke(),_={state:s,dispatch:null,action:o,pending:null},g.queue=_,h=NO.bind(null,zt,_,b,h),_.dispatch=h,g.memoizedState=o,[s,h,!1]}function nx(o){var s=Ce();return rx(s,re,o)}function rx(o,s,h){if(s=Ng(o,s,tx)[0],o=bc(ii)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var g=Bs(s)}catch(T){throw T===rl?hc:T}else g=s;s=Ce();var _=s.queue,b=_.dispatch;return h!==s.memoizedState&&(zt.flags|=2048,sl(9,{destroy:void 0},IO.bind(null,_,h),null)),[g,b,o]}function IO(o,s){o.action=s}function ix(o){var s=Ce(),h=re;if(h!==null)return rx(s,h,o);Ce(),s=s.memoizedState,h=Ce();var g=h.queue.dispatch;return h.memoizedState=o,[s,g,!1]}function sl(o,s,h,g){return o={tag:o,create:h,deps:g,inst:s,next:null},s=zt.updateQueue,s===null&&(s=Sc(),zt.updateQueue=s),h=s.lastEffect,h===null?s.lastEffect=o.next=o:(g=h.next,h.next=o,o.next=g,s.lastEffect=o),o}function ax(){return Ce().memoizedState}function wc(o,s,h,g){var _=Ke();zt.flags|=o,_.memoizedState=sl(1|s,{destroy:void 0},h,g===void 0?null:g)}function Cc(o,s,h,g){var _=Ce();g=g===void 0?null:g;var b=_.memoizedState.inst;re!==null&&g!==null&&Dg(g,re.memoizedState.deps)?_.memoizedState=sl(s,b,h,g):(zt.flags|=o,_.memoizedState=sl(1|s,b,h,g))}function ox(o,s){wc(8390656,8,o,s)}function kg(o,s){Cc(2048,8,o,s)}function BO(o){zt.flags|=4;var s=zt.updateQueue;if(s===null)s=Sc(),zt.updateQueue=s,s.events=[o];else{var h=s.events;h===null?s.events=[o]:h.push(o)}}function lx(o){var s=Ce().memoizedState;return BO({ref:s,nextImpl:o}),function(){if((Qt&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function sx(o,s){return Cc(4,2,o,s)}function ux(o,s){return Cc(4,4,o,s)}function fx(o,s){if(typeof s=="function"){o=o();var h=s(o);return function(){typeof h=="function"?h():s(null)}}if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function cx(o,s,h){h=h!=null?h.concat([o]):null,Cc(4,4,fx.bind(null,s,o),h)}function Hg(){}function hx(o,s){var h=Ce();s=s===void 0?null:s;var g=h.memoizedState;return s!==null&&Dg(s,g[1])?g[0]:(h.memoizedState=[o,s],o)}function dx(o,s){var h=Ce();s=s===void 0?null:s;var g=h.memoizedState;if(s!==null&&Dg(s,g[1]))return g[0];if(g=o(),Za){zi(!0);try{o()}finally{zi(!1)}}return h.memoizedState=[g,s],g}function Vg(o,s,h){return h===void 0||(ri&1073741824)!==0&&(Ft&261930)===0?o.memoizedState=s:(o.memoizedState=h,o=gb(),zt.lanes|=o,Xi|=o,h)}function vx(o,s,h,g){return En(h,s)?h:al.current!==null?(o=Vg(o,h,g),En(o,s)||(De=!0),o):(ri&42)===0||(ri&1073741824)!==0&&(Ft&261930)===0?(De=!0,o.memoizedState=h):(o=gb(),zt.lanes|=o,Xi|=o,s)}function gx(o,s,h,g,_){var b=K.p;K.p=b!==0&&8>b?b:8;var T=V.T,E={};V.T=E,Ug(o,!1,s,h);try{var k=_(),X=V.S;if(X!==null&&X(E,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var tt=LO(k,g);Ps(o,s,tt,Bn(o))}else Ps(o,s,g,Bn(o))}catch(nt){Ps(o,s,{then:function(){},status:"rejected",reason:nt},Bn())}finally{K.p=b,T!==null&&E.types!==null&&(T.types=E.types),V.T=T}}function PO(){}function Fg(o,s,h,g){if(o.tag!==5)throw Error(r(476));var _=px(o).queue;gx(o,_,s,j,h===null?PO:function(){return mx(o),h(g)})}function px(o){var s=o.memoizedState;if(s!==null)return s;s={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:j},next:null};var h={};return s.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:h},next:null},o.memoizedState=s,o=o.alternate,o!==null&&(o.memoizedState=s),s}function mx(o){var s=px(o);s.next===null&&(s=o.alternate.memoizedState),Ps(o,s.next.queue,{},Bn())}function Gg(){return He(tu)}function yx(){return Ce().memoizedState}function _x(){return Ce().memoizedState}function kO(o){for(var s=o.return;s!==null;){switch(s.tag){case 24:case 3:var h=Bn();o=Fi(h);var g=Gi(s,o,h);g!==null&&(pn(g,s,h),Os(g,s,h)),s={cache:mg()},o.payload=s;return}s=s.return}}function HO(o,s,h){var g=Bn();h={lane:g,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Mc(o)?xx(s,h):(h=og(o,s,h,g),h!==null&&(pn(h,o,g),bx(h,s,g)))}function Sx(o,s,h){var g=Bn();Ps(o,s,h,g)}function Ps(o,s,h,g){var _={lane:g,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null};if(Mc(o))xx(s,_);else{var b=o.alternate;if(o.lanes===0&&(b===null||b.lanes===0)&&(b=s.lastRenderedReducer,b!==null))try{var T=s.lastRenderedState,E=b(T,h);if(_.hasEagerState=!0,_.eagerState=E,En(E,T))return ac(o,s,_,0),oe===null&&ic(),!1}catch{}finally{}if(h=og(o,s,_,g),h!==null)return pn(h,o,g),bx(h,s,g),!0}return!1}function Ug(o,s,h,g){if(g={lane:2,revertLane:xp(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},Mc(o)){if(s)throw Error(r(479))}else s=og(o,h,g,2),s!==null&&pn(s,o,2)}function Mc(o){var s=o.alternate;return o===zt||s!==null&&s===zt}function xx(o,s){ol=yc=!0;var h=o.pending;h===null?s.next=s:(s.next=h.next,h.next=s),o.pending=s}function bx(o,s,h){if((h&4194048)!==0){var g=s.lanes;g&=o.pendingLanes,h|=g,s.lanes=h,AS(o,h)}}var ks={readContext:He,use:xc,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useLayoutEffect:ye,useInsertionEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useSyncExternalStore:ye,useId:ye,useHostTransitionStatus:ye,useFormState:ye,useActionState:ye,useOptimistic:ye,useMemoCache:ye,useCacheRefresh:ye};ks.useEffectEvent=ye;var Cx={readContext:He,use:xc,useCallback:function(o,s){return Ke().memoizedState=[o,s===void 0?null:s],o},useContext:He,useEffect:ox,useImperativeHandle:function(o,s,h){h=h!=null?h.concat([o]):null,wc(4194308,4,fx.bind(null,s,o),h)},useLayoutEffect:function(o,s){return wc(4194308,4,o,s)},useInsertionEffect:function(o,s){wc(4,2,o,s)},useMemo:function(o,s){var h=Ke();s=s===void 0?null:s;var g=o();if(Za){zi(!0);try{o()}finally{zi(!1)}}return h.memoizedState=[g,s],g},useReducer:function(o,s,h){var g=Ke();if(h!==void 0){var _=h(s);if(Za){zi(!0);try{h(s)}finally{zi(!1)}}}else _=s;return g.memoizedState=g.baseState=_,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:_},g.queue=o,o=o.dispatch=HO.bind(null,zt,o),[g.memoizedState,o]},useRef:function(o){var s=Ke();return o={current:o},s.memoizedState=o},useState:function(o){o=Bg(o);var s=o.queue,h=Sx.bind(null,zt,s);return s.dispatch=h,[o.memoizedState,h]},useDebugValue:Hg,useDeferredValue:function(o,s){var h=Ke();return Vg(h,o,s)},useTransition:function(){var o=Bg(!1);return o=gx.bind(null,zt,o.queue,!0,!1),Ke().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,s,h){var g=zt,_=Ke();if(Ut){if(h===void 0)throw Error(r(407));h=h()}else{if(h=s(),oe===null)throw Error(r(349));(Ft&127)!==0||j1(g,s,h)}_.memoizedState=h;var b={value:h,getSnapshot:s};return _.queue=b,ox(q1.bind(null,g,b,o),[o]),g.flags|=2048,sl(9,{destroy:void 0},Y1.bind(null,g,b,h,s),null),h},useId:function(){var o=Ke(),s=oe.identifierPrefix;if(Ut){var h=Er,g=Rr;h=(g&~(1<<32-Rn(g)-1)).toString(32)+h,s="_"+s+"R_"+h,h=_c++,0<h&&(s+="H"+h.toString(32)),s+="_"}else h=OO++,s="_"+s+"r_"+h.toString(32)+"_";return o.memoizedState=s},useHostTransitionStatus:Gg,useFormState:ex,useActionState:ex,useOptimistic:function(o){var s=Ke();s.memoizedState=s.baseState=o;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=h,s=Ug.bind(null,zt,!0,h),h.dispatch=s,[o,s]},useMemoCache:zg,useCacheRefresh:function(){return Ke().memoizedState=kO.bind(null,zt)},useEffectEvent:function(o){var s=Ke(),h={impl:o};return s.memoizedState=h,function(){if((Qt&2)!==0)throw Error(r(440));return h.impl.apply(void 0,arguments)}}},jg={readContext:He,use:xc,useCallback:hx,useContext:He,useEffect:kg,useImperativeHandle:cx,useInsertionEffect:sx,useLayoutEffect:ux,useMemo:dx,useReducer:bc,useRef:ax,useState:function(){return bc(ii)},useDebugValue:Hg,useDeferredValue:function(o,s){var h=Ce();return vx(h,re.memoizedState,o,s)},useTransition:function(){var o=bc(ii)[0],s=Ce().memoizedState;return[typeof o=="boolean"?o:Bs(o),s]},useSyncExternalStore:U1,useId:yx,useHostTransitionStatus:Gg,useFormState:nx,useActionState:nx,useOptimistic:function(o,s){var h=Ce();return $1(h,re,o,s)},useMemoCache:zg,useCacheRefresh:_x};jg.useEffectEvent=lx;var Mx={readContext:He,use:xc,useCallback:hx,useContext:He,useEffect:kg,useImperativeHandle:cx,useInsertionEffect:sx,useLayoutEffect:ux,useMemo:dx,useReducer:Ig,useRef:ax,useState:function(){return Ig(ii)},useDebugValue:Hg,useDeferredValue:function(o,s){var h=Ce();return re===null?Vg(h,o,s):vx(h,re.memoizedState,o,s)},useTransition:function(){var o=Ig(ii)[0],s=Ce().memoizedState;return[typeof o=="boolean"?o:Bs(o),s]},useSyncExternalStore:U1,useId:yx,useHostTransitionStatus:Gg,useFormState:ix,useActionState:ix,useOptimistic:function(o,s){var h=Ce();return re!==null?$1(h,re,o,s):(h.baseState=o,[o,h.queue.dispatch])},useMemoCache:zg,useCacheRefresh:_x};Mx.useEffectEvent=lx;function Yg(o,s,h,g){s=o.memoizedState,h=h(g,s),h=h==null?s:v({},s,h),o.memoizedState=h,o.lanes===0&&(o.updateQueue.baseState=h)}var qg={enqueueSetState:function(o,s,h){o=o._reactInternals;var g=Bn(),_=Fi(g);_.payload=s,h!=null&&(_.callback=h),s=Gi(o,_,g),s!==null&&(pn(s,o,g),Os(s,o,g))},enqueueReplaceState:function(o,s,h){o=o._reactInternals;var g=Bn(),_=Fi(g);_.tag=1,_.payload=s,h!=null&&(_.callback=h),s=Gi(o,_,g),s!==null&&(pn(s,o,g),Os(s,o,g))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var h=Bn(),g=Fi(h);g.tag=2,s!=null&&(g.callback=s),s=Gi(o,g,h),s!==null&&(pn(s,o,h),Os(s,o,h))}};function Tx(o,s,h,g,_,b,T){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(g,b,T):s.prototype&&s.prototype.isPureReactComponent?!Cs(h,g)||!Cs(_,b):!0}function Ax(o,s,h,g){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(h,g),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(h,g),s.state!==o&&qg.enqueueReplaceState(s,s.state,null)}function $a(o,s){var h=s;if("ref"in s){h={};for(var g in s)g!=="ref"&&(h[g]=s[g])}if(o=o.defaultProps){h===s&&(h=v({},h));for(var _ in o)h[_]===void 0&&(h[_]=o[_])}return h}function Dx(o){rc(o)}function Rx(o){console.error(o)}function Ex(o){rc(o)}function Tc(o,s){try{var h=o.onUncaughtError;h(s.value,{componentStack:s.stack})}catch(g){setTimeout(function(){throw g})}}function Lx(o,s,h){try{var g=o.onCaughtError;g(h.value,{componentStack:h.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(_){setTimeout(function(){throw _})}}function Xg(o,s,h){return h=Fi(h),h.tag=3,h.payload={element:null},h.callback=function(){Tc(o,s)},h}function Ox(o){return o=Fi(o),o.tag=3,o}function zx(o,s,h,g){var _=h.type.getDerivedStateFromError;if(typeof _=="function"){var b=g.value;o.payload=function(){return _(b)},o.callback=function(){Lx(s,h,g)}}var T=h.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(o.callback=function(){Lx(s,h,g),typeof _!="function"&&(Zi===null?Zi=new Set([this]):Zi.add(this));var E=g.stack;this.componentDidCatch(g.value,{componentStack:E!==null?E:""})})}function VO(o,s,h,g,_){if(h.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(s=h.alternate,s!==null&&tl(s,h,_,!0),h=On.current,h!==null){switch(h.tag){case 31:case 13:return $n===null?kc():h.alternate===null&&_e===0&&(_e=3),h.flags&=-257,h.flags|=65536,h.lanes=_,g===dc?h.flags|=16384:(s=h.updateQueue,s===null?h.updateQueue=new Set([g]):s.add(g),yp(o,g,_)),!1;case 22:return h.flags|=65536,g===dc?h.flags|=16384:(s=h.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([g])},h.updateQueue=s):(h=s.retryQueue,h===null?s.retryQueue=new Set([g]):h.add(g)),yp(o,g,_)),!1}throw Error(r(435,h.tag))}return yp(o,g,_),kc(),!1}if(Ut)return s=On.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=_,g!==hg&&(o=Error(r(422),{cause:g}),As(Yn(o,h)))):(g!==hg&&(s=Error(r(423),{cause:g}),As(Yn(s,h))),o=o.current.alternate,o.flags|=65536,_&=-_,o.lanes|=_,g=Yn(g,h),_=Xg(o.stateNode,g,_),wg(o,_),_e!==4&&(_e=2)),!1;var b=Error(r(520),{cause:g});if(b=Yn(b,h),qs===null?qs=[b]:qs.push(b),_e!==4&&(_e=2),s===null)return!0;g=Yn(g,h),h=s;do{switch(h.tag){case 3:return h.flags|=65536,o=_&-_,h.lanes|=o,o=Xg(h.stateNode,g,o),wg(h,o),!1;case 1:if(s=h.type,b=h.stateNode,(h.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Zi===null||!Zi.has(b))))return h.flags|=65536,_&=-_,h.lanes|=_,_=Ox(_),zx(_,o,h,g),wg(h,_),!1}h=h.return}while(h!==null);return!1}var Zg=Error(r(461)),De=!1;function Ve(o,s,h,g){s.child=o===null?B1(s,null,h,g):Xa(s,o.child,h,g)}function Nx(o,s,h,g,_){h=h.render;var b=s.ref;if("ref"in g){var T={};for(var E in g)E!=="ref"&&(T[E]=g[E])}else T=g;return Ua(s),g=Rg(o,s,h,T,b,_),E=Eg(),o!==null&&!De?(Lg(o,s,_),ai(o,s,_)):(Ut&&E&&fg(s),s.flags|=1,Ve(o,s,g,_),s.child)}function Ix(o,s,h,g,_){if(o===null){var b=h.type;return typeof b=="function"&&!lg(b)&&b.defaultProps===void 0&&h.compare===null?(s.tag=15,s.type=b,Bx(o,s,b,g,_)):(o=lc(h.type,null,g,s,s.mode,_),o.ref=s.ref,o.return=s,s.child=o)}if(b=o.child,!np(o,_)){var T=b.memoizedProps;if(h=h.compare,h=h!==null?h:Cs,h(T,g)&&o.ref===s.ref)return ai(o,s,_)}return s.flags|=1,o=Jr(b,g),o.ref=s.ref,o.return=s,s.child=o}function Bx(o,s,h,g,_){if(o!==null){var b=o.memoizedProps;if(Cs(b,g)&&o.ref===s.ref)if(De=!1,s.pendingProps=g=b,np(o,_))(o.flags&131072)!==0&&(De=!0);else return s.lanes=o.lanes,ai(o,s,_)}return $g(o,s,h,g,_)}function Px(o,s,h,g){var _=g.children,b=o!==null?o.memoizedState:null;if(o===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),g.mode==="hidden"){if((s.flags&128)!==0){if(b=b!==null?b.baseLanes|h:h,o!==null){for(g=s.child=o.child,_=0;g!==null;)_=_|g.lanes|g.childLanes,g=g.sibling;g=_&~b}else g=0,s.child=null;return kx(o,s,b,h,g)}if((h&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},o!==null&&cc(s,b!==null?b.cachePool:null),b!==null?H1(s,b):Mg(),V1(s);else return g=s.lanes=536870912,kx(o,s,b!==null?b.baseLanes|h:h,h,g)}else b!==null?(cc(s,b.cachePool),H1(s,b),ji(),s.memoizedState=null):(o!==null&&cc(s,null),Mg(),ji());return Ve(o,s,_,h),s.child}function Hs(o,s){return o!==null&&o.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function kx(o,s,h,g,_){var b=_g();return b=b===null?null:{parent:Te._currentValue,pool:b},s.memoizedState={baseLanes:h,cachePool:b},o!==null&&cc(s,null),Mg(),V1(s),o!==null&&tl(o,s,g,!0),s.childLanes=_,null}function Ac(o,s){return s=Rc({mode:s.mode,children:s.children},o.mode),s.ref=o.ref,o.child=s,s.return=o,s}function Hx(o,s,h){return Xa(s,o.child,null,h),o=Ac(s,s.pendingProps),o.flags|=2,zn(s),s.memoizedState=null,o}function FO(o,s,h){var g=s.pendingProps,_=(s.flags&128)!==0;if(s.flags&=-129,o===null){if(Ut){if(g.mode==="hidden")return o=Ac(s,g),s.lanes=536870912,Hs(null,o);if(Ag(s),(o=ue)?(o=Qb(o,Zn),o=o!==null&&o.data==="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Bi!==null?{id:Rr,overflow:Er}:null,retryLane:536870912,hydrationErrors:null},h=x1(o),h.return=s,s.child=h,ke=s,ue=null)):o=null,o===null)throw ki(s);return s.lanes=536870912,null}return Ac(s,g)}var b=o.memoizedState;if(b!==null){var T=b.dehydrated;if(Ag(s),_)if(s.flags&256)s.flags&=-257,s=Hx(o,s,h);else if(s.memoizedState!==null)s.child=o.child,s.flags|=128,s=null;else throw Error(r(558));else if(De||tl(o,s,h,!1),_=(h&o.childLanes)!==0,De||_){if(g=oe,g!==null&&(T=DS(g,h),T!==0&&T!==b.retryLane))throw b.retryLane=T,Ha(o,T),pn(g,o,T),Zg;kc(),s=Hx(o,s,h)}else o=b.treeContext,ue=Wn(T.nextSibling),ke=s,Ut=!0,Pi=null,Zn=!1,o!==null&&C1(s,o),s=Ac(s,g),s.flags|=4096;return s}return o=Jr(o.child,{mode:g.mode,children:g.children}),o.ref=s.ref,s.child=o,o.return=s,o}function Dc(o,s){var h=s.ref;if(h===null)o!==null&&o.ref!==null&&(s.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(o===null||o.ref!==h)&&(s.flags|=4194816)}}function $g(o,s,h,g,_){return Ua(s),h=Rg(o,s,h,g,void 0,_),g=Eg(),o!==null&&!De?(Lg(o,s,_),ai(o,s,_)):(Ut&&g&&fg(s),s.flags|=1,Ve(o,s,h,_),s.child)}function Vx(o,s,h,g,_,b){return Ua(s),s.updateQueue=null,h=G1(s,g,h,_),F1(o),g=Eg(),o!==null&&!De?(Lg(o,s,b),ai(o,s,b)):(Ut&&g&&fg(s),s.flags|=1,Ve(o,s,h,b),s.child)}function Fx(o,s,h,g,_){if(Ua(s),s.stateNode===null){var b=Wo,T=h.contextType;typeof T=="object"&&T!==null&&(b=He(T)),b=new h(g,b),s.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=qg,s.stateNode=b,b._reactInternals=s,b=s.stateNode,b.props=g,b.state=s.memoizedState,b.refs={},xg(s),T=h.contextType,b.context=typeof T=="object"&&T!==null?He(T):Wo,b.state=s.memoizedState,T=h.getDerivedStateFromProps,typeof T=="function"&&(Yg(s,h,T,g),b.state=s.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(T=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),T!==b.state&&qg.enqueueReplaceState(b,b.state,null),Ns(s,g,b,_),zs(),b.state=s.memoizedState),typeof b.componentDidMount=="function"&&(s.flags|=4194308),g=!0}else if(o===null){b=s.stateNode;var E=s.memoizedProps,k=$a(h,E);b.props=k;var X=b.context,tt=h.contextType;T=Wo,typeof tt=="object"&&tt!==null&&(T=He(tt));var nt=h.getDerivedStateFromProps;tt=typeof nt=="function"||typeof b.getSnapshotBeforeUpdate=="function",E=s.pendingProps!==E,tt||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(E||X!==T)&&Ax(s,b,g,T),Vi=!1;var Z=s.memoizedState;b.state=Z,Ns(s,g,b,_),zs(),X=s.memoizedState,E||Z!==X||Vi?(typeof nt=="function"&&(Yg(s,h,nt,g),X=s.memoizedState),(k=Vi||Tx(s,h,k,g,Z,X,T))?(tt||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(s.flags|=4194308)):(typeof b.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=g,s.memoizedState=X),b.props=g,b.state=X,b.context=T,g=k):(typeof b.componentDidMount=="function"&&(s.flags|=4194308),g=!1)}else{b=s.stateNode,bg(o,s),T=s.memoizedProps,tt=$a(h,T),b.props=tt,nt=s.pendingProps,Z=b.context,X=h.contextType,k=Wo,typeof X=="object"&&X!==null&&(k=He(X)),E=h.getDerivedStateFromProps,(X=typeof E=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(T!==nt||Z!==k)&&Ax(s,b,g,k),Vi=!1,Z=s.memoizedState,b.state=Z,Ns(s,g,b,_),zs();var Q=s.memoizedState;T!==nt||Z!==Q||Vi||o!==null&&o.dependencies!==null&&uc(o.dependencies)?(typeof E=="function"&&(Yg(s,h,E,g),Q=s.memoizedState),(tt=Vi||Tx(s,h,tt,g,Z,Q,k)||o!==null&&o.dependencies!==null&&uc(o.dependencies))?(X||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(g,Q,k),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(g,Q,k)),typeof b.componentDidUpdate=="function"&&(s.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof b.componentDidUpdate!="function"||T===o.memoizedProps&&Z===o.memoizedState||(s.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||T===o.memoizedProps&&Z===o.memoizedState||(s.flags|=1024),s.memoizedProps=g,s.memoizedState=Q),b.props=g,b.state=Q,b.context=k,g=tt):(typeof b.componentDidUpdate!="function"||T===o.memoizedProps&&Z===o.memoizedState||(s.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||T===o.memoizedProps&&Z===o.memoizedState||(s.flags|=1024),g=!1)}return b=g,Dc(o,s),g=(s.flags&128)!==0,b||g?(b=s.stateNode,h=g&&typeof h.getDerivedStateFromError!="function"?null:b.render(),s.flags|=1,o!==null&&g?(s.child=Xa(s,o.child,null,_),s.child=Xa(s,null,h,_)):Ve(o,s,h,_),s.memoizedState=b.state,o=s.child):o=ai(o,s,_),o}function Gx(o,s,h,g){return Fa(),s.flags|=256,Ve(o,s,h,g),s.child}var Wg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qg(o){return{baseLanes:o,cachePool:E1()}}function Kg(o,s,h){return o=o!==null?o.childLanes&~h:0,s&&(o|=In),o}function Ux(o,s,h){var g=s.pendingProps,_=!1,b=(s.flags&128)!==0,T;if((T=b)||(T=o!==null&&o.memoizedState===null?!1:(we.current&2)!==0),T&&(_=!0,s.flags&=-129),T=(s.flags&32)!==0,s.flags&=-33,o===null){if(Ut){if(_?Ui(s):ji(),(o=ue)?(o=Qb(o,Zn),o=o!==null&&o.data!=="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Bi!==null?{id:Rr,overflow:Er}:null,retryLane:536870912,hydrationErrors:null},h=x1(o),h.return=s,s.child=h,ke=s,ue=null)):o=null,o===null)throw ki(s);return Np(o)?s.lanes=32:s.lanes=536870912,null}var E=g.children;return g=g.fallback,_?(ji(),_=s.mode,E=Rc({mode:"hidden",children:E},_),g=Va(g,_,h,null),E.return=s,g.return=s,E.sibling=g,s.child=E,g=s.child,g.memoizedState=Qg(h),g.childLanes=Kg(o,T,h),s.memoizedState=Wg,Hs(null,g)):(Ui(s),Jg(s,E))}var k=o.memoizedState;if(k!==null&&(E=k.dehydrated,E!==null)){if(b)s.flags&256?(Ui(s),s.flags&=-257,s=tp(o,s,h)):s.memoizedState!==null?(ji(),s.child=o.child,s.flags|=128,s=null):(ji(),E=g.fallback,_=s.mode,g=Rc({mode:"visible",children:g.children},_),E=Va(E,_,h,null),E.flags|=2,g.return=s,E.return=s,g.sibling=E,s.child=g,Xa(s,o.child,null,h),g=s.child,g.memoizedState=Qg(h),g.childLanes=Kg(o,T,h),s.memoizedState=Wg,s=Hs(null,g));else if(Ui(s),Np(E)){if(T=E.nextSibling&&E.nextSibling.dataset,T)var X=T.dgst;T=X,g=Error(r(419)),g.stack="",g.digest=T,As({value:g,source:null,stack:null}),s=tp(o,s,h)}else if(De||tl(o,s,h,!1),T=(h&o.childLanes)!==0,De||T){if(T=oe,T!==null&&(g=DS(T,h),g!==0&&g!==k.retryLane))throw k.retryLane=g,Ha(o,g),pn(T,o,g),Zg;zp(E)||kc(),s=tp(o,s,h)}else zp(E)?(s.flags|=192,s.child=o.child,s=null):(o=k.treeContext,ue=Wn(E.nextSibling),ke=s,Ut=!0,Pi=null,Zn=!1,o!==null&&C1(s,o),s=Jg(s,g.children),s.flags|=4096);return s}return _?(ji(),E=g.fallback,_=s.mode,k=o.child,X=k.sibling,g=Jr(k,{mode:"hidden",children:g.children}),g.subtreeFlags=k.subtreeFlags&65011712,X!==null?E=Jr(X,E):(E=Va(E,_,h,null),E.flags|=2),E.return=s,g.return=s,g.sibling=E,s.child=g,Hs(null,g),g=s.child,E=o.child.memoizedState,E===null?E=Qg(h):(_=E.cachePool,_!==null?(k=Te._currentValue,_=_.parent!==k?{parent:k,pool:k}:_):_=E1(),E={baseLanes:E.baseLanes|h,cachePool:_}),g.memoizedState=E,g.childLanes=Kg(o,T,h),s.memoizedState=Wg,Hs(o.child,g)):(Ui(s),h=o.child,o=h.sibling,h=Jr(h,{mode:"visible",children:g.children}),h.return=s,h.sibling=null,o!==null&&(T=s.deletions,T===null?(s.deletions=[o],s.flags|=16):T.push(o)),s.child=h,s.memoizedState=null,h)}function Jg(o,s){return s=Rc({mode:"visible",children:s},o.mode),s.return=o,o.child=s}function Rc(o,s){return o=Ln(22,o,null,s),o.lanes=0,o}function tp(o,s,h){return Xa(s,o.child,null,h),o=Jg(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function jx(o,s,h){o.lanes|=s;var g=o.alternate;g!==null&&(g.lanes|=s),gg(o.return,s,h)}function ep(o,s,h,g,_,b){var T=o.memoizedState;T===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:g,tail:h,tailMode:_,treeForkCount:b}:(T.isBackwards=s,T.rendering=null,T.renderingStartTime=0,T.last=g,T.tail=h,T.tailMode=_,T.treeForkCount=b)}function Yx(o,s,h){var g=s.pendingProps,_=g.revealOrder,b=g.tail;g=g.children;var T=we.current,E=(T&2)!==0;if(E?(T=T&1|2,s.flags|=128):T&=1,at(we,T),Ve(o,s,g,h),g=Ut?Ts:0,!E&&o!==null&&(o.flags&128)!==0)t:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&jx(o,h,s);else if(o.tag===19)jx(o,h,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break t;for(;o.sibling===null;){if(o.return===null||o.return===s)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(_){case"forwards":for(h=s.child,_=null;h!==null;)o=h.alternate,o!==null&&mc(o)===null&&(_=h),h=h.sibling;h=_,h===null?(_=s.child,s.child=null):(_=h.sibling,h.sibling=null),ep(s,!1,_,h,b,g);break;case"backwards":case"unstable_legacy-backwards":for(h=null,_=s.child,s.child=null;_!==null;){if(o=_.alternate,o!==null&&mc(o)===null){s.child=_;break}o=_.sibling,_.sibling=h,h=_,_=o}ep(s,!0,h,null,b,g);break;case"together":ep(s,!1,null,null,void 0,g);break;default:s.memoizedState=null}return s.child}function ai(o,s,h){if(o!==null&&(s.dependencies=o.dependencies),Xi|=s.lanes,(h&s.childLanes)===0)if(o!==null){if(tl(o,s,h,!1),(h&s.childLanes)===0)return null}else return null;if(o!==null&&s.child!==o.child)throw Error(r(153));if(s.child!==null){for(o=s.child,h=Jr(o,o.pendingProps),s.child=h,h.return=s;o.sibling!==null;)o=o.sibling,h=h.sibling=Jr(o,o.pendingProps),h.return=s;h.sibling=null}return s.child}function np(o,s){return(o.lanes&s)!==0?!0:(o=o.dependencies,!!(o!==null&&uc(o)))}function GO(o,s,h){switch(s.tag){case 3:Bt(s,s.stateNode.containerInfo),Hi(s,Te,o.memoizedState.cache),Fa();break;case 27:case 5:Yt(s);break;case 4:Bt(s,s.stateNode.containerInfo);break;case 10:Hi(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Ag(s),null;break;case 13:var g=s.memoizedState;if(g!==null)return g.dehydrated!==null?(Ui(s),s.flags|=128,null):(h&s.child.childLanes)!==0?Ux(o,s,h):(Ui(s),o=ai(o,s,h),o!==null?o.sibling:null);Ui(s);break;case 19:var _=(o.flags&128)!==0;if(g=(h&s.childLanes)!==0,g||(tl(o,s,h,!1),g=(h&s.childLanes)!==0),_){if(g)return Yx(o,s,h);s.flags|=128}if(_=s.memoizedState,_!==null&&(_.rendering=null,_.tail=null,_.lastEffect=null),at(we,we.current),g)break;return null;case 22:return s.lanes=0,Px(o,s,h,s.pendingProps);case 24:Hi(s,Te,o.memoizedState.cache)}return ai(o,s,h)}function qx(o,s,h){if(o!==null)if(o.memoizedProps!==s.pendingProps)De=!0;else{if(!np(o,h)&&(s.flags&128)===0)return De=!1,GO(o,s,h);De=(o.flags&131072)!==0}else De=!1,Ut&&(s.flags&1048576)!==0&&w1(s,Ts,s.index);switch(s.lanes=0,s.tag){case 16:t:{var g=s.pendingProps;if(o=Ya(s.elementType),s.type=o,typeof o=="function")lg(o)?(g=$a(o,g),s.tag=1,s=Fx(null,s,o,g,h)):(s.tag=0,s=$g(null,s,o,g,h));else{if(o!=null){var _=o.$$typeof;if(_===A){s.tag=11,s=Nx(null,s,o,g,h);break t}else if(_===L){s.tag=14,s=Ix(null,s,o,g,h);break t}}throw s=W(o)||o,Error(r(306,s,""))}}return s;case 0:return $g(o,s,s.type,s.pendingProps,h);case 1:return g=s.type,_=$a(g,s.pendingProps),Fx(o,s,g,_,h);case 3:t:{if(Bt(s,s.stateNode.containerInfo),o===null)throw Error(r(387));g=s.pendingProps;var b=s.memoizedState;_=b.element,bg(o,s),Ns(s,g,null,h);var T=s.memoizedState;if(g=T.cache,Hi(s,Te,g),g!==b.cache&&pg(s,[Te],h,!0),zs(),g=T.element,b.isDehydrated)if(b={element:g,isDehydrated:!1,cache:T.cache},s.updateQueue.baseState=b,s.memoizedState=b,s.flags&256){s=Gx(o,s,g,h);break t}else if(g!==_){_=Yn(Error(r(424)),s),As(_),s=Gx(o,s,g,h);break t}else{switch(o=s.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(ue=Wn(o.firstChild),ke=s,Ut=!0,Pi=null,Zn=!0,h=B1(s,null,g,h),s.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(Fa(),g===_){s=ai(o,s,h);break t}Ve(o,s,g,h)}s=s.child}return s;case 26:return Dc(o,s),o===null?(h=rw(s.type,null,s.pendingProps,null))?s.memoizedState=h:Ut||(h=s.type,o=s.pendingProps,g=Yc(dt.current).createElement(h),g[Pe]=s,g[fn]=o,Fe(g,h,o),Ne(g),s.stateNode=g):s.memoizedState=rw(s.type,o.memoizedProps,s.pendingProps,o.memoizedState),null;case 27:return Yt(s),o===null&&Ut&&(g=s.stateNode=tw(s.type,s.pendingProps,dt.current),ke=s,Zn=!0,_=ue,Ki(s.type)?(Ip=_,ue=Wn(g.firstChild)):ue=_),Ve(o,s,s.pendingProps.children,h),Dc(o,s),o===null&&(s.flags|=4194304),s.child;case 5:return o===null&&Ut&&((_=g=ue)&&(g=yz(g,s.type,s.pendingProps,Zn),g!==null?(s.stateNode=g,ke=s,ue=Wn(g.firstChild),Zn=!1,_=!0):_=!1),_||ki(s)),Yt(s),_=s.type,b=s.pendingProps,T=o!==null?o.memoizedProps:null,g=b.children,Ep(_,b)?g=null:T!==null&&Ep(_,T)&&(s.flags|=32),s.memoizedState!==null&&(_=Rg(o,s,zO,null,null,h),tu._currentValue=_),Dc(o,s),Ve(o,s,g,h),s.child;case 6:return o===null&&Ut&&((o=h=ue)&&(h=_z(h,s.pendingProps,Zn),h!==null?(s.stateNode=h,ke=s,ue=null,o=!0):o=!1),o||ki(s)),null;case 13:return Ux(o,s,h);case 4:return Bt(s,s.stateNode.containerInfo),g=s.pendingProps,o===null?s.child=Xa(s,null,g,h):Ve(o,s,g,h),s.child;case 11:return Nx(o,s,s.type,s.pendingProps,h);case 7:return Ve(o,s,s.pendingProps,h),s.child;case 8:return Ve(o,s,s.pendingProps.children,h),s.child;case 12:return Ve(o,s,s.pendingProps.children,h),s.child;case 10:return g=s.pendingProps,Hi(s,s.type,g.value),Ve(o,s,g.children,h),s.child;case 9:return _=s.type._context,g=s.pendingProps.children,Ua(s),_=He(_),g=g(_),s.flags|=1,Ve(o,s,g,h),s.child;case 14:return Ix(o,s,s.type,s.pendingProps,h);case 15:return Bx(o,s,s.type,s.pendingProps,h);case 19:return Yx(o,s,h);case 31:return FO(o,s,h);case 22:return Px(o,s,h,s.pendingProps);case 24:return Ua(s),g=He(Te),o===null?(_=_g(),_===null&&(_=oe,b=mg(),_.pooledCache=b,b.refCount++,b!==null&&(_.pooledCacheLanes|=h),_=b),s.memoizedState={parent:g,cache:_},xg(s),Hi(s,Te,_)):((o.lanes&h)!==0&&(bg(o,s),Ns(s,null,null,h),zs()),_=o.memoizedState,b=s.memoizedState,_.parent!==g?(_={parent:g,cache:g},s.memoizedState=_,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=_),Hi(s,Te,g)):(g=b.cache,Hi(s,Te,g),g!==_.cache&&pg(s,[Te],h,!0))),Ve(o,s,s.pendingProps.children,h),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function oi(o){o.flags|=4}function rp(o,s,h,g,_){if((s=(o.mode&32)!==0)&&(s=!1),s){if(o.flags|=16777216,(_&335544128)===_)if(o.stateNode.complete)o.flags|=8192;else if(_b())o.flags|=8192;else throw qa=dc,Sg}else o.flags&=-16777217}function Xx(o,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!sw(s))if(_b())o.flags|=8192;else throw qa=dc,Sg}function Ec(o,s){s!==null&&(o.flags|=4),o.flags&16384&&(s=o.tag!==22?MS():536870912,o.lanes|=s,hl|=s)}function Vs(o,s){if(!Ut)switch(o.tailMode){case"hidden":s=o.tail;for(var h=null;s!==null;)s.alternate!==null&&(h=s),s=s.sibling;h===null?o.tail=null:h.sibling=null;break;case"collapsed":h=o.tail;for(var g=null;h!==null;)h.alternate!==null&&(g=h),h=h.sibling;g===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:g.sibling=null}}function fe(o){var s=o.alternate!==null&&o.alternate.child===o.child,h=0,g=0;if(s)for(var _=o.child;_!==null;)h|=_.lanes|_.childLanes,g|=_.subtreeFlags&65011712,g|=_.flags&65011712,_.return=o,_=_.sibling;else for(_=o.child;_!==null;)h|=_.lanes|_.childLanes,g|=_.subtreeFlags,g|=_.flags,_.return=o,_=_.sibling;return o.subtreeFlags|=g,o.childLanes=h,s}function UO(o,s,h){var g=s.pendingProps;switch(cg(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fe(s),null;case 1:return fe(s),null;case 3:return h=s.stateNode,g=null,o!==null&&(g=o.memoizedState.cache),s.memoizedState.cache!==g&&(s.flags|=2048),ni(Te),xt(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(o===null||o.child===null)&&(Jo(s)?oi(s):o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,dg())),fe(s),null;case 26:var _=s.type,b=s.memoizedState;return o===null?(oi(s),b!==null?(fe(s),Xx(s,b)):(fe(s),rp(s,_,null,g,h))):b?b!==o.memoizedState?(oi(s),fe(s),Xx(s,b)):(fe(s),s.flags&=-16777217):(o=o.memoizedProps,o!==g&&oi(s),fe(s),rp(s,_,o,g,h)),null;case 27:if(yt(s),h=dt.current,_=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==g&&oi(s);else{if(!g){if(s.stateNode===null)throw Error(r(166));return fe(s),null}o=ot.current,Jo(s)?M1(s):(o=tw(_,g,h),s.stateNode=o,oi(s))}return fe(s),null;case 5:if(yt(s),_=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==g&&oi(s);else{if(!g){if(s.stateNode===null)throw Error(r(166));return fe(s),null}if(b=ot.current,Jo(s))M1(s);else{var T=Yc(dt.current);switch(b){case 1:b=T.createElementNS("http://www.w3.org/2000/svg",_);break;case 2:b=T.createElementNS("http://www.w3.org/1998/Math/MathML",_);break;default:switch(_){case"svg":b=T.createElementNS("http://www.w3.org/2000/svg",_);break;case"math":b=T.createElementNS("http://www.w3.org/1998/Math/MathML",_);break;case"script":b=T.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof g.is=="string"?T.createElement("select",{is:g.is}):T.createElement("select"),g.multiple?b.multiple=!0:g.size&&(b.size=g.size);break;default:b=typeof g.is=="string"?T.createElement(_,{is:g.is}):T.createElement(_)}}b[Pe]=s,b[fn]=g;t:for(T=s.child;T!==null;){if(T.tag===5||T.tag===6)b.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===s)break t;for(;T.sibling===null;){if(T.return===null||T.return===s)break t;T=T.return}T.sibling.return=T.return,T=T.sibling}s.stateNode=b;t:switch(Fe(b,_,g),_){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break t;case"img":g=!0;break t;default:g=!1}g&&oi(s)}}return fe(s),rp(s,s.type,o===null?null:o.memoizedProps,s.pendingProps,h),null;case 6:if(o&&s.stateNode!=null)o.memoizedProps!==g&&oi(s);else{if(typeof g!="string"&&s.stateNode===null)throw Error(r(166));if(o=dt.current,Jo(s)){if(o=s.stateNode,h=s.memoizedProps,g=null,_=ke,_!==null)switch(_.tag){case 27:case 5:g=_.memoizedProps}o[Pe]=s,o=!!(o.nodeValue===h||g!==null&&g.suppressHydrationWarning===!0||Ub(o.nodeValue,h)),o||ki(s,!0)}else o=Yc(o).createTextNode(g),o[Pe]=s,s.stateNode=o}return fe(s),null;case 31:if(h=s.memoizedState,o===null||o.memoizedState!==null){if(g=Jo(s),h!==null){if(o===null){if(!g)throw Error(r(318));if(o=s.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[Pe]=s}else Fa(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;fe(s),o=!1}else h=dg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=h),o=!0;if(!o)return s.flags&256?(zn(s),s):(zn(s),null);if((s.flags&128)!==0)throw Error(r(558))}return fe(s),null;case 13:if(g=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(_=Jo(s),g!==null&&g.dehydrated!==null){if(o===null){if(!_)throw Error(r(318));if(_=s.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(r(317));_[Pe]=s}else Fa(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;fe(s),_=!1}else _=dg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=_),_=!0;if(!_)return s.flags&256?(zn(s),s):(zn(s),null)}return zn(s),(s.flags&128)!==0?(s.lanes=h,s):(h=g!==null,o=o!==null&&o.memoizedState!==null,h&&(g=s.child,_=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(_=g.alternate.memoizedState.cachePool.pool),b=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(b=g.memoizedState.cachePool.pool),b!==_&&(g.flags|=2048)),h!==o&&h&&(s.child.flags|=8192),Ec(s,s.updateQueue),fe(s),null);case 4:return xt(),o===null&&Mp(s.stateNode.containerInfo),fe(s),null;case 10:return ni(s.type),fe(s),null;case 19:if(U(we),g=s.memoizedState,g===null)return fe(s),null;if(_=(s.flags&128)!==0,b=g.rendering,b===null)if(_)Vs(g,!1);else{if(_e!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(b=mc(o),b!==null){for(s.flags|=128,Vs(g,!1),o=b.updateQueue,s.updateQueue=o,Ec(s,o),s.subtreeFlags=0,o=h,h=s.child;h!==null;)S1(h,o),h=h.sibling;return at(we,we.current&1|2),Ut&&ti(s,g.treeForkCount),s.child}o=o.sibling}g.tail!==null&&An()>Ic&&(s.flags|=128,_=!0,Vs(g,!1),s.lanes=4194304)}else{if(!_)if(o=mc(b),o!==null){if(s.flags|=128,_=!0,o=o.updateQueue,s.updateQueue=o,Ec(s,o),Vs(g,!0),g.tail===null&&g.tailMode==="hidden"&&!b.alternate&&!Ut)return fe(s),null}else 2*An()-g.renderingStartTime>Ic&&h!==536870912&&(s.flags|=128,_=!0,Vs(g,!1),s.lanes=4194304);g.isBackwards?(b.sibling=s.child,s.child=b):(o=g.last,o!==null?o.sibling=b:s.child=b,g.last=b)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=An(),o.sibling=null,h=we.current,at(we,_?h&1|2:h&1),Ut&&ti(s,g.treeForkCount),o):(fe(s),null);case 22:case 23:return zn(s),Tg(),g=s.memoizedState!==null,o!==null?o.memoizedState!==null!==g&&(s.flags|=8192):g&&(s.flags|=8192),g?(h&536870912)!==0&&(s.flags&128)===0&&(fe(s),s.subtreeFlags&6&&(s.flags|=8192)):fe(s),h=s.updateQueue,h!==null&&Ec(s,h.retryQueue),h=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),g=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==h&&(s.flags|=2048),o!==null&&U(ja),null;case 24:return h=null,o!==null&&(h=o.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),ni(Te),fe(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function jO(o,s){switch(cg(s),s.tag){case 1:return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return ni(Te),xt(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 26:case 27:case 5:return yt(s),null;case 31:if(s.memoizedState!==null){if(zn(s),s.alternate===null)throw Error(r(340));Fa()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 13:if(zn(s),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Fa()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return U(we),null;case 4:return xt(),null;case 10:return ni(s.type),null;case 22:case 23:return zn(s),Tg(),o!==null&&U(ja),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 24:return ni(Te),null;case 25:return null;default:return null}}function Zx(o,s){switch(cg(s),s.tag){case 3:ni(Te),xt();break;case 26:case 27:case 5:yt(s);break;case 4:xt();break;case 31:s.memoizedState!==null&&zn(s);break;case 13:zn(s);break;case 19:U(we);break;case 10:ni(s.type);break;case 22:case 23:zn(s),Tg(),o!==null&&U(ja);break;case 24:ni(Te)}}function Fs(o,s){try{var h=s.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var _=g.next;h=_;do{if((h.tag&o)===o){g=void 0;var b=h.create,T=h.inst;g=b(),T.destroy=g}h=h.next}while(h!==_)}}catch(E){ne(s,s.return,E)}}function Yi(o,s,h){try{var g=s.updateQueue,_=g!==null?g.lastEffect:null;if(_!==null){var b=_.next;g=b;do{if((g.tag&o)===o){var T=g.inst,E=T.destroy;if(E!==void 0){T.destroy=void 0,_=s;var k=h,X=E;try{X()}catch(tt){ne(_,k,tt)}}}g=g.next}while(g!==b)}}catch(tt){ne(s,s.return,tt)}}function $x(o){var s=o.updateQueue;if(s!==null){var h=o.stateNode;try{k1(s,h)}catch(g){ne(o,o.return,g)}}}function Wx(o,s,h){h.props=$a(o.type,o.memoizedProps),h.state=o.memoizedState;try{h.componentWillUnmount()}catch(g){ne(o,s,g)}}function Gs(o,s){try{var h=o.ref;if(h!==null){switch(o.tag){case 26:case 27:case 5:var g=o.stateNode;break;case 30:g=o.stateNode;break;default:g=o.stateNode}typeof h=="function"?o.refCleanup=h(g):h.current=g}}catch(_){ne(o,s,_)}}function Lr(o,s){var h=o.ref,g=o.refCleanup;if(h!==null)if(typeof g=="function")try{g()}catch(_){ne(o,s,_)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(_){ne(o,s,_)}else h.current=null}function Qx(o){var s=o.type,h=o.memoizedProps,g=o.stateNode;try{t:switch(s){case"button":case"input":case"select":case"textarea":h.autoFocus&&g.focus();break t;case"img":h.src?g.src=h.src:h.srcSet&&(g.srcset=h.srcSet)}}catch(_){ne(o,o.return,_)}}function ip(o,s,h){try{var g=o.stateNode;hz(g,o.type,h,s),g[fn]=s}catch(_){ne(o,o.return,_)}}function Kx(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Ki(o.type)||o.tag===4}function ap(o){t:for(;;){for(;o.sibling===null;){if(o.return===null||Kx(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Ki(o.type)||o.flags&2||o.child===null||o.tag===4)continue t;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function op(o,s,h){var g=o.tag;if(g===5||g===6)o=o.stateNode,s?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(o,s):(s=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,s.appendChild(o),h=h._reactRootContainer,h!=null||s.onclick!==null||(s.onclick=Qr));else if(g!==4&&(g===27&&Ki(o.type)&&(h=o.stateNode,s=null),o=o.child,o!==null))for(op(o,s,h),o=o.sibling;o!==null;)op(o,s,h),o=o.sibling}function Lc(o,s,h){var g=o.tag;if(g===5||g===6)o=o.stateNode,s?h.insertBefore(o,s):h.appendChild(o);else if(g!==4&&(g===27&&Ki(o.type)&&(h=o.stateNode),o=o.child,o!==null))for(Lc(o,s,h),o=o.sibling;o!==null;)Lc(o,s,h),o=o.sibling}function Jx(o){var s=o.stateNode,h=o.memoizedProps;try{for(var g=o.type,_=s.attributes;_.length;)s.removeAttributeNode(_[0]);Fe(s,g,h),s[Pe]=o,s[fn]=h}catch(b){ne(o,o.return,b)}}var li=!1,Re=!1,lp=!1,tb=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function YO(o,s){if(o=o.containerInfo,Dp=Kc,o=c1(o),tg(o)){if("selectionStart"in o)var h={start:o.selectionStart,end:o.selectionEnd};else t:{h=(h=o.ownerDocument)&&h.defaultView||window;var g=h.getSelection&&h.getSelection();if(g&&g.rangeCount!==0){h=g.anchorNode;var _=g.anchorOffset,b=g.focusNode;g=g.focusOffset;try{h.nodeType,b.nodeType}catch{h=null;break t}var T=0,E=-1,k=-1,X=0,tt=0,nt=o,Z=null;e:for(;;){for(var Q;nt!==h||_!==0&&nt.nodeType!==3||(E=T+_),nt!==b||g!==0&&nt.nodeType!==3||(k=T+g),nt.nodeType===3&&(T+=nt.nodeValue.length),(Q=nt.firstChild)!==null;)Z=nt,nt=Q;for(;;){if(nt===o)break e;if(Z===h&&++X===_&&(E=T),Z===b&&++tt===g&&(k=T),(Q=nt.nextSibling)!==null)break;nt=Z,Z=nt.parentNode}nt=Q}h=E===-1||k===-1?null:{start:E,end:k}}else h=null}h=h||{start:0,end:0}}else h=null;for(Rp={focusedElem:o,selectionRange:h},Kc=!1,Ie=s;Ie!==null;)if(s=Ie,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,Ie=o;else for(;Ie!==null;){switch(s=Ie,b=s.alternate,o=s.flags,s.tag){case 0:if((o&4)!==0&&(o=s.updateQueue,o=o!==null?o.events:null,o!==null))for(h=0;h<o.length;h++)_=o[h],_.ref.impl=_.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&b!==null){o=void 0,h=s,_=b.memoizedProps,b=b.memoizedState,g=h.stateNode;try{var ht=$a(h.type,_);o=g.getSnapshotBeforeUpdate(ht,b),g.__reactInternalSnapshotBeforeUpdate=o}catch(wt){ne(h,h.return,wt)}}break;case 3:if((o&1024)!==0){if(o=s.stateNode.containerInfo,h=o.nodeType,h===9)Op(o);else if(h===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Op(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=s.sibling,o!==null){o.return=s.return,Ie=o;break}Ie=s.return}}function eb(o,s,h){var g=h.flags;switch(h.tag){case 0:case 11:case 15:ui(o,h),g&4&&Fs(5,h);break;case 1:if(ui(o,h),g&4)if(o=h.stateNode,s===null)try{o.componentDidMount()}catch(T){ne(h,h.return,T)}else{var _=$a(h.type,s.memoizedProps);s=s.memoizedState;try{o.componentDidUpdate(_,s,o.__reactInternalSnapshotBeforeUpdate)}catch(T){ne(h,h.return,T)}}g&64&&$x(h),g&512&&Gs(h,h.return);break;case 3:if(ui(o,h),g&64&&(o=h.updateQueue,o!==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{k1(o,s)}catch(T){ne(h,h.return,T)}}break;case 27:s===null&&g&4&&Jx(h);case 26:case 5:ui(o,h),s===null&&g&4&&Qx(h),g&512&&Gs(h,h.return);break;case 12:ui(o,h);break;case 31:ui(o,h),g&4&&ib(o,h);break;case 13:ui(o,h),g&4&&ab(o,h),g&64&&(o=h.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(h=tz.bind(null,h),Sz(o,h))));break;case 22:if(g=h.memoizedState!==null||li,!g){s=s!==null&&s.memoizedState!==null||Re,_=li;var b=Re;li=g,(Re=s)&&!b?fi(o,h,(h.subtreeFlags&8772)!==0):ui(o,h),li=_,Re=b}break;case 30:break;default:ui(o,h)}}function nb(o){var s=o.alternate;s!==null&&(o.alternate=null,nb(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&Pv(s)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var pe=null,hn=!1;function si(o,s,h){for(h=h.child;h!==null;)rb(o,s,h),h=h.sibling}function rb(o,s,h){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(hs,h)}catch{}switch(h.tag){case 26:Re||Lr(h,s),si(o,s,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:Re||Lr(h,s);var g=pe,_=hn;Ki(h.type)&&(pe=h.stateNode,hn=!1),si(o,s,h),Qs(h.stateNode),pe=g,hn=_;break;case 5:Re||Lr(h,s);case 6:if(g=pe,_=hn,pe=null,si(o,s,h),pe=g,hn=_,pe!==null)if(hn)try{(pe.nodeType===9?pe.body:pe.nodeName==="HTML"?pe.ownerDocument.body:pe).removeChild(h.stateNode)}catch(b){ne(h,s,b)}else try{pe.removeChild(h.stateNode)}catch(b){ne(h,s,b)}break;case 18:pe!==null&&(hn?(o=pe,$b(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,h.stateNode),Sl(o)):$b(pe,h.stateNode));break;case 4:g=pe,_=hn,pe=h.stateNode.containerInfo,hn=!0,si(o,s,h),pe=g,hn=_;break;case 0:case 11:case 14:case 15:Yi(2,h,s),Re||Yi(4,h,s),si(o,s,h);break;case 1:Re||(Lr(h,s),g=h.stateNode,typeof g.componentWillUnmount=="function"&&Wx(h,s,g)),si(o,s,h);break;case 21:si(o,s,h);break;case 22:Re=(g=Re)||h.memoizedState!==null,si(o,s,h),Re=g;break;default:si(o,s,h)}}function ib(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Sl(o)}catch(h){ne(s,s.return,h)}}}function ab(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Sl(o)}catch(h){ne(s,s.return,h)}}function qO(o){switch(o.tag){case 31:case 13:case 19:var s=o.stateNode;return s===null&&(s=o.stateNode=new tb),s;case 22:return o=o.stateNode,s=o._retryCache,s===null&&(s=o._retryCache=new tb),s;default:throw Error(r(435,o.tag))}}function Oc(o,s){var h=qO(o);s.forEach(function(g){if(!h.has(g)){h.add(g);var _=ez.bind(null,o,g);g.then(_,_)}})}function dn(o,s){var h=s.deletions;if(h!==null)for(var g=0;g<h.length;g++){var _=h[g],b=o,T=s,E=T;t:for(;E!==null;){switch(E.tag){case 27:if(Ki(E.type)){pe=E.stateNode,hn=!1;break t}break;case 5:pe=E.stateNode,hn=!1;break t;case 3:case 4:pe=E.stateNode.containerInfo,hn=!0;break t}E=E.return}if(pe===null)throw Error(r(160));rb(b,T,_),pe=null,hn=!1,b=_.alternate,b!==null&&(b.return=null),_.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)ob(s,o),s=s.sibling}var gr=null;function ob(o,s){var h=o.alternate,g=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:dn(s,o),vn(o),g&4&&(Yi(3,o,o.return),Fs(3,o),Yi(5,o,o.return));break;case 1:dn(s,o),vn(o),g&512&&(Re||h===null||Lr(h,h.return)),g&64&&li&&(o=o.updateQueue,o!==null&&(g=o.callbacks,g!==null&&(h=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=h===null?g:h.concat(g))));break;case 26:var _=gr;if(dn(s,o),vn(o),g&512&&(Re||h===null||Lr(h,h.return)),g&4){var b=h!==null?h.memoizedState:null;if(g=o.memoizedState,h===null)if(g===null)if(o.stateNode===null){t:{g=o.type,h=o.memoizedProps,_=_.ownerDocument||_;e:switch(g){case"title":b=_.getElementsByTagName("title")[0],(!b||b[gs]||b[Pe]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=_.createElement(g),_.head.insertBefore(b,_.querySelector("head > title"))),Fe(b,g,h),b[Pe]=o,Ne(b),g=b;break t;case"link":var T=ow("link","href",_).get(g+(h.href||""));if(T){for(var E=0;E<T.length;E++)if(b=T[E],b.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&b.getAttribute("rel")===(h.rel==null?null:h.rel)&&b.getAttribute("title")===(h.title==null?null:h.title)&&b.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){T.splice(E,1);break e}}b=_.createElement(g),Fe(b,g,h),_.head.appendChild(b);break;case"meta":if(T=ow("meta","content",_).get(g+(h.content||""))){for(E=0;E<T.length;E++)if(b=T[E],b.getAttribute("content")===(h.content==null?null:""+h.content)&&b.getAttribute("name")===(h.name==null?null:h.name)&&b.getAttribute("property")===(h.property==null?null:h.property)&&b.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&b.getAttribute("charset")===(h.charSet==null?null:h.charSet)){T.splice(E,1);break e}}b=_.createElement(g),Fe(b,g,h),_.head.appendChild(b);break;default:throw Error(r(468,g))}b[Pe]=o,Ne(b),g=b}o.stateNode=g}else lw(_,o.type,o.stateNode);else o.stateNode=aw(_,g,o.memoizedProps);else b!==g?(b===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):b.count--,g===null?lw(_,o.type,o.stateNode):aw(_,g,o.memoizedProps)):g===null&&o.stateNode!==null&&ip(o,o.memoizedProps,h.memoizedProps)}break;case 27:dn(s,o),vn(o),g&512&&(Re||h===null||Lr(h,h.return)),h!==null&&g&4&&ip(o,o.memoizedProps,h.memoizedProps);break;case 5:if(dn(s,o),vn(o),g&512&&(Re||h===null||Lr(h,h.return)),o.flags&32){_=o.stateNode;try{Uo(_,"")}catch(ht){ne(o,o.return,ht)}}g&4&&o.stateNode!=null&&(_=o.memoizedProps,ip(o,_,h!==null?h.memoizedProps:_)),g&1024&&(lp=!0);break;case 6:if(dn(s,o),vn(o),g&4){if(o.stateNode===null)throw Error(r(162));g=o.memoizedProps,h=o.stateNode;try{h.nodeValue=g}catch(ht){ne(o,o.return,ht)}}break;case 3:if(Zc=null,_=gr,gr=qc(s.containerInfo),dn(s,o),gr=_,vn(o),g&4&&h!==null&&h.memoizedState.isDehydrated)try{Sl(s.containerInfo)}catch(ht){ne(o,o.return,ht)}lp&&(lp=!1,lb(o));break;case 4:g=gr,gr=qc(o.stateNode.containerInfo),dn(s,o),vn(o),gr=g;break;case 12:dn(s,o),vn(o);break;case 31:dn(s,o),vn(o),g&4&&(g=o.updateQueue,g!==null&&(o.updateQueue=null,Oc(o,g)));break;case 13:dn(s,o),vn(o),o.child.flags&8192&&o.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(Nc=An()),g&4&&(g=o.updateQueue,g!==null&&(o.updateQueue=null,Oc(o,g)));break;case 22:_=o.memoizedState!==null;var k=h!==null&&h.memoizedState!==null,X=li,tt=Re;if(li=X||_,Re=tt||k,dn(s,o),Re=tt,li=X,vn(o),g&8192)t:for(s=o.stateNode,s._visibility=_?s._visibility&-2:s._visibility|1,_&&(h===null||k||li||Re||Wa(o)),h=null,s=o;;){if(s.tag===5||s.tag===26){if(h===null){k=h=s;try{if(b=k.stateNode,_)T=b.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{E=k.stateNode;var nt=k.memoizedProps.style,Z=nt!=null&&nt.hasOwnProperty("display")?nt.display:null;E.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(ht){ne(k,k.return,ht)}}}else if(s.tag===6){if(h===null){k=s;try{k.stateNode.nodeValue=_?"":k.memoizedProps}catch(ht){ne(k,k.return,ht)}}}else if(s.tag===18){if(h===null){k=s;try{var Q=k.stateNode;_?Wb(Q,!0):Wb(k.stateNode,!1)}catch(ht){ne(k,k.return,ht)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===o)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break t;for(;s.sibling===null;){if(s.return===null||s.return===o)break t;h===s&&(h=null),s=s.return}h===s&&(h=null),s.sibling.return=s.return,s=s.sibling}g&4&&(g=o.updateQueue,g!==null&&(h=g.retryQueue,h!==null&&(g.retryQueue=null,Oc(o,h))));break;case 19:dn(s,o),vn(o),g&4&&(g=o.updateQueue,g!==null&&(o.updateQueue=null,Oc(o,g)));break;case 30:break;case 21:break;default:dn(s,o),vn(o)}}function vn(o){var s=o.flags;if(s&2){try{for(var h,g=o.return;g!==null;){if(Kx(g)){h=g;break}g=g.return}if(h==null)throw Error(r(160));switch(h.tag){case 27:var _=h.stateNode,b=ap(o);Lc(o,b,_);break;case 5:var T=h.stateNode;h.flags&32&&(Uo(T,""),h.flags&=-33);var E=ap(o);Lc(o,E,T);break;case 3:case 4:var k=h.stateNode.containerInfo,X=ap(o);op(o,X,k);break;default:throw Error(r(161))}}catch(tt){ne(o,o.return,tt)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function lb(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var s=o;lb(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),o=o.sibling}}function ui(o,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)eb(o,s.alternate,s),s=s.sibling}function Wa(o){for(o=o.child;o!==null;){var s=o;switch(s.tag){case 0:case 11:case 14:case 15:Yi(4,s,s.return),Wa(s);break;case 1:Lr(s,s.return);var h=s.stateNode;typeof h.componentWillUnmount=="function"&&Wx(s,s.return,h),Wa(s);break;case 27:Qs(s.stateNode);case 26:case 5:Lr(s,s.return),Wa(s);break;case 22:s.memoizedState===null&&Wa(s);break;case 30:Wa(s);break;default:Wa(s)}o=o.sibling}}function fi(o,s,h){for(h=h&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var g=s.alternate,_=o,b=s,T=b.flags;switch(b.tag){case 0:case 11:case 15:fi(_,b,h),Fs(4,b);break;case 1:if(fi(_,b,h),g=b,_=g.stateNode,typeof _.componentDidMount=="function")try{_.componentDidMount()}catch(X){ne(g,g.return,X)}if(g=b,_=g.updateQueue,_!==null){var E=g.stateNode;try{var k=_.shared.hiddenCallbacks;if(k!==null)for(_.shared.hiddenCallbacks=null,_=0;_<k.length;_++)P1(k[_],E)}catch(X){ne(g,g.return,X)}}h&&T&64&&$x(b),Gs(b,b.return);break;case 27:Jx(b);case 26:case 5:fi(_,b,h),h&&g===null&&T&4&&Qx(b),Gs(b,b.return);break;case 12:fi(_,b,h);break;case 31:fi(_,b,h),h&&T&4&&ib(_,b);break;case 13:fi(_,b,h),h&&T&4&&ab(_,b);break;case 22:b.memoizedState===null&&fi(_,b,h),Gs(b,b.return);break;case 30:break;default:fi(_,b,h)}s=s.sibling}}function sp(o,s){var h=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==h&&(o!=null&&o.refCount++,h!=null&&Ds(h))}function up(o,s){o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&Ds(o))}function pr(o,s,h,g){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)sb(o,s,h,g),s=s.sibling}function sb(o,s,h,g){var _=s.flags;switch(s.tag){case 0:case 11:case 15:pr(o,s,h,g),_&2048&&Fs(9,s);break;case 1:pr(o,s,h,g);break;case 3:pr(o,s,h,g),_&2048&&(o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&Ds(o)));break;case 12:if(_&2048){pr(o,s,h,g),o=s.stateNode;try{var b=s.memoizedProps,T=b.id,E=b.onPostCommit;typeof E=="function"&&E(T,s.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(k){ne(s,s.return,k)}}else pr(o,s,h,g);break;case 31:pr(o,s,h,g);break;case 13:pr(o,s,h,g);break;case 23:break;case 22:b=s.stateNode,T=s.alternate,s.memoizedState!==null?b._visibility&2?pr(o,s,h,g):Us(o,s):b._visibility&2?pr(o,s,h,g):(b._visibility|=2,ul(o,s,h,g,(s.subtreeFlags&10256)!==0||!1)),_&2048&&sp(T,s);break;case 24:pr(o,s,h,g),_&2048&&up(s.alternate,s);break;default:pr(o,s,h,g)}}function ul(o,s,h,g,_){for(_=_&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var b=o,T=s,E=h,k=g,X=T.flags;switch(T.tag){case 0:case 11:case 15:ul(b,T,E,k,_),Fs(8,T);break;case 23:break;case 22:var tt=T.stateNode;T.memoizedState!==null?tt._visibility&2?ul(b,T,E,k,_):Us(b,T):(tt._visibility|=2,ul(b,T,E,k,_)),_&&X&2048&&sp(T.alternate,T);break;case 24:ul(b,T,E,k,_),_&&X&2048&&up(T.alternate,T);break;default:ul(b,T,E,k,_)}s=s.sibling}}function Us(o,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var h=o,g=s,_=g.flags;switch(g.tag){case 22:Us(h,g),_&2048&&sp(g.alternate,g);break;case 24:Us(h,g),_&2048&&up(g.alternate,g);break;default:Us(h,g)}s=s.sibling}}var js=8192;function fl(o,s,h){if(o.subtreeFlags&js)for(o=o.child;o!==null;)ub(o,s,h),o=o.sibling}function ub(o,s,h){switch(o.tag){case 26:fl(o,s,h),o.flags&js&&o.memoizedState!==null&&Oz(h,gr,o.memoizedState,o.memoizedProps);break;case 5:fl(o,s,h);break;case 3:case 4:var g=gr;gr=qc(o.stateNode.containerInfo),fl(o,s,h),gr=g;break;case 22:o.memoizedState===null&&(g=o.alternate,g!==null&&g.memoizedState!==null?(g=js,js=16777216,fl(o,s,h),js=g):fl(o,s,h));break;default:fl(o,s,h)}}function fb(o){var s=o.alternate;if(s!==null&&(o=s.child,o!==null)){s.child=null;do s=o.sibling,o.sibling=null,o=s;while(o!==null)}}function Ys(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var h=0;h<s.length;h++){var g=s[h];Ie=g,hb(g,o)}fb(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)cb(o),o=o.sibling}function cb(o){switch(o.tag){case 0:case 11:case 15:Ys(o),o.flags&2048&&Yi(9,o,o.return);break;case 3:Ys(o);break;case 12:Ys(o);break;case 22:var s=o.stateNode;o.memoizedState!==null&&s._visibility&2&&(o.return===null||o.return.tag!==13)?(s._visibility&=-3,zc(o)):Ys(o);break;default:Ys(o)}}function zc(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var h=0;h<s.length;h++){var g=s[h];Ie=g,hb(g,o)}fb(o)}for(o=o.child;o!==null;){switch(s=o,s.tag){case 0:case 11:case 15:Yi(8,s,s.return),zc(s);break;case 22:h=s.stateNode,h._visibility&2&&(h._visibility&=-3,zc(s));break;default:zc(s)}o=o.sibling}}function hb(o,s){for(;Ie!==null;){var h=Ie;switch(h.tag){case 0:case 11:case 15:Yi(8,h,s);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var g=h.memoizedState.cachePool.pool;g!=null&&g.refCount++}break;case 24:Ds(h.memoizedState.cache)}if(g=h.child,g!==null)g.return=h,Ie=g;else t:for(h=o;Ie!==null;){g=Ie;var _=g.sibling,b=g.return;if(nb(g),g===h){Ie=null;break t}if(_!==null){_.return=b,Ie=_;break t}Ie=b}}}var XO={getCacheForType:function(o){var s=He(Te),h=s.data.get(o);return h===void 0&&(h=o(),s.data.set(o,h)),h},cacheSignal:function(){return He(Te).controller.signal}},ZO=typeof WeakMap=="function"?WeakMap:Map,Qt=0,oe=null,Ht=null,Ft=0,ee=0,Nn=null,qi=!1,cl=!1,fp=!1,ci=0,_e=0,Xi=0,Qa=0,cp=0,In=0,hl=0,qs=null,gn=null,hp=!1,Nc=0,db=0,Ic=1/0,Bc=null,Zi=null,Le=0,$i=null,dl=null,hi=0,dp=0,vp=null,vb=null,Xs=0,gp=null;function Bn(){return(Qt&2)!==0&&Ft!==0?Ft&-Ft:V.T!==null?xp():RS()}function gb(){if(In===0)if((Ft&536870912)===0||Ut){var o=jf;jf<<=1,(jf&3932160)===0&&(jf=262144),In=o}else In=536870912;return o=On.current,o!==null&&(o.flags|=32),In}function pn(o,s,h){(o===oe&&(ee===2||ee===9)||o.cancelPendingCommit!==null)&&(vl(o,0),Wi(o,Ft,In,!1)),vs(o,h),((Qt&2)===0||o!==oe)&&(o===oe&&((Qt&2)===0&&(Qa|=h),_e===4&&Wi(o,Ft,In,!1)),Or(o))}function pb(o,s,h){if((Qt&6)!==0)throw Error(r(327));var g=!h&&(s&127)===0&&(s&o.expiredLanes)===0||ds(o,s),_=g?QO(o,s):mp(o,s,!0),b=g;do{if(_===0){cl&&!g&&Wi(o,s,0,!1);break}else{if(h=o.current.alternate,b&&!$O(h)){_=mp(o,s,!1),b=!1;continue}if(_===2){if(b=s,o.errorRecoveryDisabledLanes&b)var T=0;else T=o.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){s=T;t:{var E=o;_=qs;var k=E.current.memoizedState.isDehydrated;if(k&&(vl(E,T).flags|=256),T=mp(E,T,!1),T!==2){if(fp&&!k){E.errorRecoveryDisabledLanes|=b,Qa|=b,_=4;break t}b=gn,gn=_,b!==null&&(gn===null?gn=b:gn.push.apply(gn,b))}_=T}if(b=!1,_!==2)continue}}if(_===1){vl(o,0),Wi(o,s,0,!0);break}t:{switch(g=o,b=_,b){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Wi(g,s,In,!qi);break t;case 2:gn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(_=Nc+300-An(),10<_)){if(Wi(g,s,In,!qi),qf(g,0,!0)!==0)break t;hi=s,g.timeoutHandle=Xb(mb.bind(null,g,h,gn,Bc,hp,s,In,Qa,hl,qi,b,"Throttled",-0,0),_);break t}mb(g,h,gn,Bc,hp,s,In,Qa,hl,qi,b,null,-0,0)}}break}while(!0);Or(o)}function mb(o,s,h,g,_,b,T,E,k,X,tt,nt,Z,Q){if(o.timeoutHandle=-1,nt=s.subtreeFlags,nt&8192||(nt&16785408)===16785408){nt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qr},ub(s,b,nt);var ht=(b&62914560)===b?Nc-An():(b&4194048)===b?db-An():0;if(ht=zz(nt,ht),ht!==null){hi=b,o.cancelPendingCommit=ht(Mb.bind(null,o,s,b,h,g,_,T,E,k,tt,nt,null,Z,Q)),Wi(o,b,T,!X);return}}Mb(o,s,b,h,g,_,T,E,k)}function $O(o){for(var s=o;;){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 g=0;g<h.length;g++){var _=h[g],b=_.getSnapshot;_=_.value;try{if(!En(b(),_))return!1}catch{return!1}}if(h=s.child,s.subtreeFlags&16384&&h!==null)h.return=s,s=h;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Wi(o,s,h,g){s&=~cp,s&=~Qa,o.suspendedLanes|=s,o.pingedLanes&=~s,g&&(o.warmLanes|=s),g=o.expirationTimes;for(var _=s;0<_;){var b=31-Rn(_),T=1<<b;g[b]=-1,_&=~T}h!==0&&TS(o,h,s)}function Pc(){return(Qt&6)===0?(Zs(0),!1):!0}function pp(){if(Ht!==null){if(ee===0)var o=Ht.return;else o=Ht,ei=Ga=null,Og(o),il=null,Es=0,o=Ht;for(;o!==null;)Zx(o.alternate,o),o=o.return;Ht=null}}function vl(o,s){var h=o.timeoutHandle;h!==-1&&(o.timeoutHandle=-1,gz(h)),h=o.cancelPendingCommit,h!==null&&(o.cancelPendingCommit=null,h()),hi=0,pp(),oe=o,Ht=h=Jr(o.current,null),Ft=s,ee=0,Nn=null,qi=!1,cl=ds(o,s),fp=!1,hl=In=cp=Qa=Xi=_e=0,gn=qs=null,hp=!1,(s&8)!==0&&(s|=s&32);var g=o.entangledLanes;if(g!==0)for(o=o.entanglements,g&=s;0<g;){var _=31-Rn(g),b=1<<_;s|=o[_],g&=~b}return ci=s,ic(),h}function yb(o,s){zt=null,V.H=ks,s===rl||s===hc?(s=z1(),ee=3):s===Sg?(s=z1(),ee=4):ee=s===Zg?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Nn=s,Ht===null&&(_e=1,Tc(o,Yn(s,o.current)))}function _b(){var o=On.current;return o===null?!0:(Ft&4194048)===Ft?$n===null:(Ft&62914560)===Ft||(Ft&536870912)!==0?o===$n:!1}function Sb(){var o=V.H;return V.H=ks,o===null?ks:o}function xb(){var o=V.A;return V.A=XO,o}function kc(){_e=4,qi||(Ft&4194048)!==Ft&&On.current!==null||(cl=!0),(Xi&134217727)===0&&(Qa&134217727)===0||oe===null||Wi(oe,Ft,In,!1)}function mp(o,s,h){var g=Qt;Qt|=2;var _=Sb(),b=xb();(oe!==o||Ft!==s)&&(Bc=null,vl(o,s)),s=!1;var T=_e;t:do try{if(ee!==0&&Ht!==null){var E=Ht,k=Nn;switch(ee){case 8:pp(),T=6;break t;case 3:case 2:case 9:case 6:On.current===null&&(s=!0);var X=ee;if(ee=0,Nn=null,gl(o,E,k,X),h&&cl){T=0;break t}break;default:X=ee,ee=0,Nn=null,gl(o,E,k,X)}}WO(),T=_e;break}catch(tt){yb(o,tt)}while(!0);return s&&o.shellSuspendCounter++,ei=Ga=null,Qt=g,V.H=_,V.A=b,Ht===null&&(oe=null,Ft=0,ic()),T}function WO(){for(;Ht!==null;)bb(Ht)}function QO(o,s){var h=Qt;Qt|=2;var g=Sb(),_=xb();oe!==o||Ft!==s?(Bc=null,Ic=An()+500,vl(o,s)):cl=ds(o,s);t:do try{if(ee!==0&&Ht!==null){s=Ht;var b=Nn;e:switch(ee){case 1:ee=0,Nn=null,gl(o,s,b,1);break;case 2:case 9:if(L1(b)){ee=0,Nn=null,wb(s);break}s=function(){ee!==2&&ee!==9||oe!==o||(ee=7),Or(o)},b.then(s,s);break t;case 3:ee=7;break t;case 4:ee=5;break t;case 7:L1(b)?(ee=0,Nn=null,wb(s)):(ee=0,Nn=null,gl(o,s,b,7));break;case 5:var T=null;switch(Ht.tag){case 26:T=Ht.memoizedState;case 5:case 27:var E=Ht;if(T?sw(T):E.stateNode.complete){ee=0,Nn=null;var k=E.sibling;if(k!==null)Ht=k;else{var X=E.return;X!==null?(Ht=X,Hc(X)):Ht=null}break e}}ee=0,Nn=null,gl(o,s,b,5);break;case 6:ee=0,Nn=null,gl(o,s,b,6);break;case 8:pp(),_e=6;break t;default:throw Error(r(462))}}KO();break}catch(tt){yb(o,tt)}while(!0);return ei=Ga=null,V.H=g,V.A=_,Qt=h,Ht!==null?0:(oe=null,Ft=0,ic(),_e)}function KO(){for(;Ht!==null&&!Ff();)bb(Ht)}function bb(o){var s=qx(o.alternate,o,ci);o.memoizedProps=o.pendingProps,s===null?Hc(o):Ht=s}function wb(o){var s=o,h=s.alternate;switch(s.tag){case 15:case 0:s=Vx(h,s,s.pendingProps,s.type,void 0,Ft);break;case 11:s=Vx(h,s,s.pendingProps,s.type.render,s.ref,Ft);break;case 5:Og(s);default:Zx(h,s),s=Ht=S1(s,ci),s=qx(h,s,ci)}o.memoizedProps=o.pendingProps,s===null?Hc(o):Ht=s}function gl(o,s,h,g){ei=Ga=null,Og(s),il=null,Es=0;var _=s.return;try{if(VO(o,_,s,h,Ft)){_e=1,Tc(o,Yn(h,o.current)),Ht=null;return}}catch(b){if(_!==null)throw Ht=_,b;_e=1,Tc(o,Yn(h,o.current)),Ht=null;return}s.flags&32768?(Ut||g===1?o=!0:cl||(Ft&536870912)!==0?o=!1:(qi=o=!0,(g===2||g===9||g===3||g===6)&&(g=On.current,g!==null&&g.tag===13&&(g.flags|=16384))),Cb(s,o)):Hc(s)}function Hc(o){var s=o;do{if((s.flags&32768)!==0){Cb(s,qi);return}o=s.return;var h=UO(s.alternate,s,ci);if(h!==null){Ht=h;return}if(s=s.sibling,s!==null){Ht=s;return}Ht=s=o}while(s!==null);_e===0&&(_e=5)}function Cb(o,s){do{var h=jO(o.alternate,o);if(h!==null){h.flags&=32767,Ht=h;return}if(h=o.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!s&&(o=o.sibling,o!==null)){Ht=o;return}Ht=o=h}while(o!==null);_e=6,Ht=null}function Mb(o,s,h,g,_,b,T,E,k){o.cancelPendingCommit=null;do Vc();while(Le!==0);if((Qt&6)!==0)throw Error(r(327));if(s!==null){if(s===o.current)throw Error(r(177));if(b=s.lanes|s.childLanes,b|=ag,LL(o,h,b,T,E,k),o===oe&&(Ht=oe=null,Ft=0),dl=s,$i=o,hi=h,dp=b,vp=_,vb=g,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,nz(Gf,function(){return Eb(),null})):(o.callbackNode=null,o.callbackPriority=0),g=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||g){g=V.T,V.T=null,_=K.p,K.p=2,T=Qt,Qt|=4;try{YO(o,s,h)}finally{Qt=T,K.p=_,V.T=g}}Le=1,Tb(),Ab(),Db()}}function Tb(){if(Le===1){Le=0;var o=$i,s=dl,h=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||h){h=V.T,V.T=null;var g=K.p;K.p=2;var _=Qt;Qt|=4;try{ob(s,o);var b=Rp,T=c1(o.containerInfo),E=b.focusedElem,k=b.selectionRange;if(T!==E&&E&&E.ownerDocument&&f1(E.ownerDocument.documentElement,E)){if(k!==null&&tg(E)){var X=k.start,tt=k.end;if(tt===void 0&&(tt=X),"selectionStart"in E)E.selectionStart=X,E.selectionEnd=Math.min(tt,E.value.length);else{var nt=E.ownerDocument||document,Z=nt&&nt.defaultView||window;if(Z.getSelection){var Q=Z.getSelection(),ht=E.textContent.length,wt=Math.min(k.start,ht),ae=k.end===void 0?wt:Math.min(k.end,ht);!Q.extend&&wt>ae&&(T=ae,ae=wt,wt=T);var G=u1(E,wt),F=u1(E,ae);if(G&&F&&(Q.rangeCount!==1||Q.anchorNode!==G.node||Q.anchorOffset!==G.offset||Q.focusNode!==F.node||Q.focusOffset!==F.offset)){var Y=nt.createRange();Y.setStart(G.node,G.offset),Q.removeAllRanges(),wt>ae?(Q.addRange(Y),Q.extend(F.node,F.offset)):(Y.setEnd(F.node,F.offset),Q.addRange(Y))}}}}for(nt=[],Q=E;Q=Q.parentNode;)Q.nodeType===1&&nt.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<nt.length;E++){var et=nt[E];et.element.scrollLeft=et.left,et.element.scrollTop=et.top}}Kc=!!Dp,Rp=Dp=null}finally{Qt=_,K.p=g,V.T=h}}o.current=s,Le=2}}function Ab(){if(Le===2){Le=0;var o=$i,s=dl,h=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||h){h=V.T,V.T=null;var g=K.p;K.p=2;var _=Qt;Qt|=4;try{eb(o,s.alternate,s)}finally{Qt=_,K.p=g,V.T=h}}Le=3}}function Db(){if(Le===4||Le===3){Le=0,cs();var o=$i,s=dl,h=hi,g=vb;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Le=5:(Le=0,dl=$i=null,Rb(o,o.pendingLanes));var _=o.pendingLanes;if(_===0&&(Zi=null),Iv(h),s=s.stateNode,Dn&&typeof Dn.onCommitFiberRoot=="function")try{Dn.onCommitFiberRoot(hs,s,void 0,(s.current.flags&128)===128)}catch{}if(g!==null){s=V.T,_=K.p,K.p=2,V.T=null;try{for(var b=o.onRecoverableError,T=0;T<g.length;T++){var E=g[T];b(E.value,{componentStack:E.stack})}}finally{V.T=s,K.p=_}}(hi&3)!==0&&Vc(),Or(o),_=o.pendingLanes,(h&261930)!==0&&(_&42)!==0?o===gp?Xs++:(Xs=0,gp=o):Xs=0,Zs(0)}}function Rb(o,s){(o.pooledCacheLanes&=s)===0&&(s=o.pooledCache,s!=null&&(o.pooledCache=null,Ds(s)))}function Vc(){return Tb(),Ab(),Db(),Eb()}function Eb(){if(Le!==5)return!1;var o=$i,s=dp;dp=0;var h=Iv(hi),g=V.T,_=K.p;try{K.p=32>h?32:h,V.T=null,h=vp,vp=null;var b=$i,T=hi;if(Le=0,dl=$i=null,hi=0,(Qt&6)!==0)throw Error(r(331));var E=Qt;if(Qt|=4,cb(b.current),sb(b,b.current,T,h),Qt=E,Zs(0,!1),Dn&&typeof Dn.onPostCommitFiberRoot=="function")try{Dn.onPostCommitFiberRoot(hs,b)}catch{}return!0}finally{K.p=_,V.T=g,Rb(o,s)}}function Lb(o,s,h){s=Yn(h,s),s=Xg(o.stateNode,s,2),o=Gi(o,s,2),o!==null&&(vs(o,2),Or(o))}function ne(o,s,h){if(o.tag===3)Lb(o,o,h);else for(;s!==null;){if(s.tag===3){Lb(s,o,h);break}else if(s.tag===1){var g=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(Zi===null||!Zi.has(g))){o=Yn(h,o),h=Ox(2),g=Gi(s,h,2),g!==null&&(zx(h,g,s,o),vs(g,2),Or(g));break}}s=s.return}}function yp(o,s,h){var g=o.pingCache;if(g===null){g=o.pingCache=new ZO;var _=new Set;g.set(s,_)}else _=g.get(s),_===void 0&&(_=new Set,g.set(s,_));_.has(h)||(fp=!0,_.add(h),o=JO.bind(null,o,s,h),s.then(o,o))}function JO(o,s,h){var g=o.pingCache;g!==null&&g.delete(s),o.pingedLanes|=o.suspendedLanes&h,o.warmLanes&=~h,oe===o&&(Ft&h)===h&&(_e===4||_e===3&&(Ft&62914560)===Ft&&300>An()-Nc?(Qt&2)===0&&vl(o,0):cp|=h,hl===Ft&&(hl=0)),Or(o)}function Ob(o,s){s===0&&(s=MS()),o=Ha(o,s),o!==null&&(vs(o,s),Or(o))}function tz(o){var s=o.memoizedState,h=0;s!==null&&(h=s.retryLane),Ob(o,h)}function ez(o,s){var h=0;switch(o.tag){case 31:case 13:var g=o.stateNode,_=o.memoizedState;_!==null&&(h=_.retryLane);break;case 19:g=o.stateNode;break;case 22:g=o.stateNode._retryCache;break;default:throw Error(r(314))}g!==null&&g.delete(s),Ob(o,h)}function nz(o,s){return fs(o,s)}var Fc=null,pl=null,_p=!1,Gc=!1,Sp=!1,Qi=0;function Or(o){o!==pl&&o.next===null&&(pl===null?Fc=pl=o:pl=pl.next=o),Gc=!0,_p||(_p=!0,iz())}function Zs(o,s){if(!Sp&&Gc){Sp=!0;do for(var h=!1,g=Fc;g!==null;){if(o!==0){var _=g.pendingLanes;if(_===0)var b=0;else{var T=g.suspendedLanes,E=g.pingedLanes;b=(1<<31-Rn(42|o)+1)-1,b&=_&~(T&~E),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(h=!0,Bb(g,b))}else b=Ft,b=qf(g,g===oe?b:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(b&3)===0||ds(g,b)||(h=!0,Bb(g,b));g=g.next}while(h);Sp=!1}}function rz(){zb()}function zb(){Gc=_p=!1;var o=0;Qi!==0&&vz()&&(o=Qi);for(var s=An(),h=null,g=Fc;g!==null;){var _=g.next,b=Nb(g,s);b===0?(g.next=null,h===null?Fc=_:h.next=_,_===null&&(pl=h)):(h=g,(o!==0||(b&3)!==0)&&(Gc=!0)),g=_}Le!==0&&Le!==5||Zs(o),Qi!==0&&(Qi=0)}function Nb(o,s){for(var h=o.suspendedLanes,g=o.pingedLanes,_=o.expirationTimes,b=o.pendingLanes&-62914561;0<b;){var T=31-Rn(b),E=1<<T,k=_[T];k===-1?((E&h)===0||(E&g)!==0)&&(_[T]=EL(E,s)):k<=s&&(o.expiredLanes|=E),b&=~E}if(s=oe,h=Ft,h=qf(o,o===s?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),g=o.callbackNode,h===0||o===s&&(ee===2||ee===9)||o.cancelPendingCommit!==null)return g!==null&&g!==null&&$r(g),o.callbackNode=null,o.callbackPriority=0;if((h&3)===0||ds(o,h)){if(s=h&-h,s===o.callbackPriority)return s;switch(g!==null&&$r(g),Iv(h)){case 2:case 8:h=wS;break;case 32:h=Gf;break;case 268435456:h=CS;break;default:h=Gf}return g=Ib.bind(null,o),h=fs(h,g),o.callbackPriority=s,o.callbackNode=h,s}return g!==null&&g!==null&&$r(g),o.callbackPriority=2,o.callbackNode=null,2}function Ib(o,s){if(Le!==0&&Le!==5)return o.callbackNode=null,o.callbackPriority=0,null;var h=o.callbackNode;if(Vc()&&o.callbackNode!==h)return null;var g=Ft;return g=qf(o,o===oe?g:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),g===0?null:(pb(o,g,s),Nb(o,An()),o.callbackNode!=null&&o.callbackNode===h?Ib.bind(null,o):null)}function Bb(o,s){if(Vc())return null;pb(o,s,!0)}function iz(){pz(function(){(Qt&6)!==0?fs(bS,rz):zb()})}function xp(){if(Qi===0){var o=el;o===0&&(o=Uf,Uf<<=1,(Uf&261888)===0&&(Uf=256)),Qi=o}return Qi}function Pb(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Wf(""+o)}function kb(o,s){var h=s.ownerDocument.createElement("input");return h.name=s.name,h.value=s.value,o.id&&h.setAttribute("form",o.id),s.parentNode.insertBefore(h,s),o=new FormData(o),h.parentNode.removeChild(h),o}function az(o,s,h,g,_){if(s==="submit"&&h&&h.stateNode===_){var b=Pb((_[fn]||null).action),T=g.submitter;T&&(s=(s=T[fn]||null)?Pb(s.formAction):T.getAttribute("formAction"),s!==null&&(b=s,T=null));var E=new tc("action","action",null,g,_);o.push({event:E,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(Qi!==0){var k=T?kb(_,T):new FormData(_);Fg(h,{pending:!0,data:k,method:_.method,action:b},null,k)}}else typeof b=="function"&&(E.preventDefault(),k=T?kb(_,T):new FormData(_),Fg(h,{pending:!0,data:k,method:_.method,action:b},b,k))},currentTarget:_}]})}}for(var bp=0;bp<ig.length;bp++){var wp=ig[bp],oz=wp.toLowerCase(),lz=wp[0].toUpperCase()+wp.slice(1);vr(oz,"on"+lz)}vr(v1,"onAnimationEnd"),vr(g1,"onAnimationIteration"),vr(p1,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(wO,"onTransitionRun"),vr(CO,"onTransitionStart"),vr(MO,"onTransitionCancel"),vr(m1,"onTransitionEnd"),Fo("onMouseEnter",["mouseout","mouseover"]),Fo("onMouseLeave",["mouseout","mouseover"]),Fo("onPointerEnter",["pointerout","pointerover"]),Fo("onPointerLeave",["pointerout","pointerover"]),Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $s="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(" "),sz=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($s));function Hb(o,s){s=(s&4)!==0;for(var h=0;h<o.length;h++){var g=o[h],_=g.event;g=g.listeners;t:{var b=void 0;if(s)for(var T=g.length-1;0<=T;T--){var E=g[T],k=E.instance,X=E.currentTarget;if(E=E.listener,k!==b&&_.isPropagationStopped())break t;b=E,_.currentTarget=X;try{b(_)}catch(tt){rc(tt)}_.currentTarget=null,b=k}else for(T=0;T<g.length;T++){if(E=g[T],k=E.instance,X=E.currentTarget,E=E.listener,k!==b&&_.isPropagationStopped())break t;b=E,_.currentTarget=X;try{b(_)}catch(tt){rc(tt)}_.currentTarget=null,b=k}}}}function Vt(o,s){var h=s[Bv];h===void 0&&(h=s[Bv]=new Set);var g=o+"__bubble";h.has(g)||(Vb(s,o,2,!1),h.add(g))}function Cp(o,s,h){var g=0;s&&(g|=4),Vb(h,o,g,s)}var Uc="_reactListening"+Math.random().toString(36).slice(2);function Mp(o){if(!o[Uc]){o[Uc]=!0,OS.forEach(function(h){h!=="selectionchange"&&(sz.has(h)||Cp(h,!1,o),Cp(h,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Uc]||(s[Uc]=!0,Cp("selectionchange",!1,s))}}function Vb(o,s,h,g){switch(gw(s)){case 2:var _=Bz;break;case 8:_=Pz;break;default:_=Vp}h=_.bind(null,s,h,o),_=void 0,!Yv||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(_=!0),g?_!==void 0?o.addEventListener(s,h,{capture:!0,passive:_}):o.addEventListener(s,h,!0):_!==void 0?o.addEventListener(s,h,{passive:_}):o.addEventListener(s,h,!1)}function Tp(o,s,h,g,_){var b=g;if((s&1)===0&&(s&2)===0&&g!==null)t:for(;;){if(g===null)return;var T=g.tag;if(T===3||T===4){var E=g.stateNode.containerInfo;if(E===_)break;if(T===4)for(T=g.return;T!==null;){var k=T.tag;if((k===3||k===4)&&T.stateNode.containerInfo===_)return;T=T.return}for(;E!==null;){if(T=ko(E),T===null)return;if(k=T.tag,k===5||k===6||k===26||k===27){g=b=T;continue t}E=E.parentNode}}g=g.return}jS(function(){var X=b,tt=Uv(h),nt=[];t:{var Z=y1.get(o);if(Z!==void 0){var Q=tc,ht=o;switch(o){case"keypress":if(Kf(h)===0)break t;case"keydown":case"keyup":Q=eO;break;case"focusin":ht="focus",Q=$v;break;case"focusout":ht="blur",Q=$v;break;case"beforeblur":case"afterblur":Q=$v;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":Q=XS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=UL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=iO;break;case v1:case g1:case p1:Q=qL;break;case m1:Q=oO;break;case"scroll":case"scrollend":Q=FL;break;case"wheel":Q=sO;break;case"copy":case"cut":case"paste":Q=ZL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=$S;break;case"toggle":case"beforetoggle":Q=fO}var wt=(s&4)!==0,ae=!wt&&(o==="scroll"||o==="scrollend"),G=wt?Z!==null?Z+"Capture":null:Z;wt=[];for(var F=X,Y;F!==null;){var et=F;if(Y=et.stateNode,et=et.tag,et!==5&&et!==26&&et!==27||Y===null||G===null||(et=ms(F,G),et!=null&&wt.push(Ws(F,et,Y))),ae)break;F=F.return}0<wt.length&&(Z=new Q(Z,ht,null,h,tt),nt.push({event:Z,listeners:wt}))}}if((s&7)===0){t:{if(Z=o==="mouseover"||o==="pointerover",Q=o==="mouseout"||o==="pointerout",Z&&h!==Gv&&(ht=h.relatedTarget||h.fromElement)&&(ko(ht)||ht[Po]))break t;if((Q||Z)&&(Z=tt.window===tt?tt:(Z=tt.ownerDocument)?Z.defaultView||Z.parentWindow:window,Q?(ht=h.relatedTarget||h.toElement,Q=X,ht=ht?ko(ht):null,ht!==null&&(ae=a(ht),wt=ht.tag,ht!==ae||wt!==5&&wt!==27&&wt!==6)&&(ht=null)):(Q=null,ht=X),Q!==ht)){if(wt=XS,et="onMouseLeave",G="onMouseEnter",F="mouse",(o==="pointerout"||o==="pointerover")&&(wt=$S,et="onPointerLeave",G="onPointerEnter",F="pointer"),ae=Q==null?Z:ps(Q),Y=ht==null?Z:ps(ht),Z=new wt(et,F+"leave",Q,h,tt),Z.target=ae,Z.relatedTarget=Y,et=null,ko(tt)===X&&(wt=new wt(G,F+"enter",ht,h,tt),wt.target=Y,wt.relatedTarget=ae,et=wt),ae=et,Q&&ht)e:{for(wt=uz,G=Q,F=ht,Y=0,et=G;et;et=wt(et))Y++;et=0;for(var _t=F;_t;_t=wt(_t))et++;for(;0<Y-et;)G=wt(G),Y--;for(;0<et-Y;)F=wt(F),et--;for(;Y--;){if(G===F||F!==null&&G===F.alternate){wt=G;break e}G=wt(G),F=wt(F)}wt=null}else wt=null;Q!==null&&Fb(nt,Z,Q,wt,!1),ht!==null&&ae!==null&&Fb(nt,ae,ht,wt,!0)}}t:{if(Z=X?ps(X):window,Q=Z.nodeName&&Z.nodeName.toLowerCase(),Q==="select"||Q==="input"&&Z.type==="file")var Zt=r1;else if(e1(Z))if(i1)Zt=SO;else{Zt=yO;var vt=mO}else Q=Z.nodeName,!Q||Q.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?X&&Fv(X.elementType)&&(Zt=r1):Zt=_O;if(Zt&&(Zt=Zt(o,X))){n1(nt,Zt,h,tt);break t}vt&&vt(o,Z,X),o==="focusout"&&X&&Z.type==="number"&&X.memoizedProps.value!=null&&Vv(Z,"number",Z.value)}switch(vt=X?ps(X):window,o){case"focusin":(e1(vt)||vt.contentEditable==="true")&&(Xo=vt,eg=X,Ms=null);break;case"focusout":Ms=eg=Xo=null;break;case"mousedown":ng=!0;break;case"contextmenu":case"mouseup":case"dragend":ng=!1,h1(nt,h,tt);break;case"selectionchange":if(bO)break;case"keydown":case"keyup":h1(nt,h,tt)}var Nt;if(Qv)t:{switch(o){case"compositionstart":var Gt="onCompositionStart";break t;case"compositionend":Gt="onCompositionEnd";break t;case"compositionupdate":Gt="onCompositionUpdate";break t}Gt=void 0}else qo?JS(o,h)&&(Gt="onCompositionEnd"):o==="keydown"&&h.keyCode===229&&(Gt="onCompositionStart");Gt&&(WS&&h.locale!=="ko"&&(qo||Gt!=="onCompositionStart"?Gt==="onCompositionEnd"&&qo&&(Nt=YS()):(Ii=tt,qv="value"in Ii?Ii.value:Ii.textContent,qo=!0)),vt=jc(X,Gt),0<vt.length&&(Gt=new ZS(Gt,o,null,h,tt),nt.push({event:Gt,listeners:vt}),Nt?Gt.data=Nt:(Nt=t1(h),Nt!==null&&(Gt.data=Nt)))),(Nt=hO?dO(o,h):vO(o,h))&&(Gt=jc(X,"onBeforeInput"),0<Gt.length&&(vt=new ZS("onBeforeInput","beforeinput",null,h,tt),nt.push({event:vt,listeners:Gt}),vt.data=Nt)),az(nt,o,X,h,tt)}Hb(nt,s)})}function Ws(o,s,h){return{instance:o,listener:s,currentTarget:h}}function jc(o,s){for(var h=s+"Capture",g=[];o!==null;){var _=o,b=_.stateNode;if(_=_.tag,_!==5&&_!==26&&_!==27||b===null||(_=ms(o,h),_!=null&&g.unshift(Ws(o,_,b)),_=ms(o,s),_!=null&&g.push(Ws(o,_,b))),o.tag===3)return g;o=o.return}return[]}function uz(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Fb(o,s,h,g,_){for(var b=s._reactName,T=[];h!==null&&h!==g;){var E=h,k=E.alternate,X=E.stateNode;if(E=E.tag,k!==null&&k===g)break;E!==5&&E!==26&&E!==27||X===null||(k=X,_?(X=ms(h,b),X!=null&&T.unshift(Ws(h,X,k))):_||(X=ms(h,b),X!=null&&T.push(Ws(h,X,k)))),h=h.return}T.length!==0&&o.push({event:s,listeners:T})}var fz=/\r\n?/g,cz=/\u0000|\uFFFD/g;function Gb(o){return(typeof o=="string"?o:""+o).replace(fz,`
49
+ `).replace(cz,"")}function Ub(o,s){return s=Gb(s),Gb(o)===s}function ie(o,s,h,g,_,b){switch(h){case"children":typeof g=="string"?s==="body"||s==="textarea"&&g===""||Uo(o,g):(typeof g=="number"||typeof g=="bigint")&&s!=="body"&&Uo(o,""+g);break;case"className":Zf(o,"class",g);break;case"tabIndex":Zf(o,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":Zf(o,h,g);break;case"style":GS(o,g,b);break;case"data":if(s!=="object"){Zf(o,"data",g);break}case"src":case"href":if(g===""&&(s!=="a"||h!=="href")){o.removeAttribute(h);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){o.removeAttribute(h);break}g=Wf(""+g),o.setAttribute(h,g);break;case"action":case"formAction":if(typeof g=="function"){o.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 b=="function"&&(h==="formAction"?(s!=="input"&&ie(o,s,"name",_.name,_,null),ie(o,s,"formEncType",_.formEncType,_,null),ie(o,s,"formMethod",_.formMethod,_,null),ie(o,s,"formTarget",_.formTarget,_,null)):(ie(o,s,"encType",_.encType,_,null),ie(o,s,"method",_.method,_,null),ie(o,s,"target",_.target,_,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){o.removeAttribute(h);break}g=Wf(""+g),o.setAttribute(h,g);break;case"onClick":g!=null&&(o.onclick=Qr);break;case"onScroll":g!=null&&Vt("scroll",o);break;case"onScrollEnd":g!=null&&Vt("scrollend",o);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(h=g.__html,h!=null){if(_.children!=null)throw Error(r(60));o.innerHTML=h}}break;case"multiple":o.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":o.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){o.removeAttribute("xlink:href");break}h=Wf(""+g),o.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":g!=null&&typeof g!="function"&&typeof g!="symbol"?o.setAttribute(h,""+g):o.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":g&&typeof g!="function"&&typeof g!="symbol"?o.setAttribute(h,""):o.removeAttribute(h);break;case"capture":case"download":g===!0?o.setAttribute(h,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?o.setAttribute(h,g):o.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?o.setAttribute(h,g):o.removeAttribute(h);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?o.removeAttribute(h):o.setAttribute(h,g);break;case"popover":Vt("beforetoggle",o),Vt("toggle",o),Xf(o,"popover",g);break;case"xlinkActuate":Wr(o,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":Wr(o,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":Wr(o,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":Wr(o,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":Wr(o,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":Wr(o,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":Wr(o,"http://www.w3.org/XML/1998/namespace","xml:base",g);break;case"xmlLang":Wr(o,"http://www.w3.org/XML/1998/namespace","xml:lang",g);break;case"xmlSpace":Wr(o,"http://www.w3.org/XML/1998/namespace","xml:space",g);break;case"is":Xf(o,"is",g);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=HL.get(h)||h,Xf(o,h,g))}}function Ap(o,s,h,g,_,b){switch(h){case"style":GS(o,g,b);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(h=g.__html,h!=null){if(_.children!=null)throw Error(r(60));o.innerHTML=h}}break;case"children":typeof g=="string"?Uo(o,g):(typeof g=="number"||typeof g=="bigint")&&Uo(o,""+g);break;case"onScroll":g!=null&&Vt("scroll",o);break;case"onScrollEnd":g!=null&&Vt("scrollend",o);break;case"onClick":g!=null&&(o.onclick=Qr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zS.hasOwnProperty(h))t:{if(h[0]==="o"&&h[1]==="n"&&(_=h.endsWith("Capture"),s=h.slice(2,_?h.length-7:void 0),b=o[fn]||null,b=b!=null?b[h]:null,typeof b=="function"&&o.removeEventListener(s,b,_),typeof g=="function")){typeof b!="function"&&b!==null&&(h in o?o[h]=null:o.hasAttribute(h)&&o.removeAttribute(h)),o.addEventListener(s,g,_);break t}h in o?o[h]=g:g===!0?o.setAttribute(h,""):Xf(o,h,g)}}}function Fe(o,s,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Vt("error",o),Vt("load",o);var g=!1,_=!1,b;for(b in h)if(h.hasOwnProperty(b)){var T=h[b];if(T!=null)switch(b){case"src":g=!0;break;case"srcSet":_=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:ie(o,s,b,T,h,null)}}_&&ie(o,s,"srcSet",h.srcSet,h,null),g&&ie(o,s,"src",h.src,h,null);return;case"input":Vt("invalid",o);var E=b=T=_=null,k=null,X=null;for(g in h)if(h.hasOwnProperty(g)){var tt=h[g];if(tt!=null)switch(g){case"name":_=tt;break;case"type":T=tt;break;case"checked":k=tt;break;case"defaultChecked":X=tt;break;case"value":b=tt;break;case"defaultValue":E=tt;break;case"children":case"dangerouslySetInnerHTML":if(tt!=null)throw Error(r(137,s));break;default:ie(o,s,g,tt,h,null)}}kS(o,b,E,k,X,T,_,!1);return;case"select":Vt("invalid",o),g=T=b=null;for(_ in h)if(h.hasOwnProperty(_)&&(E=h[_],E!=null))switch(_){case"value":b=E;break;case"defaultValue":T=E;break;case"multiple":g=E;default:ie(o,s,_,E,h,null)}s=b,h=T,o.multiple=!!g,s!=null?Go(o,!!g,s,!1):h!=null&&Go(o,!!g,h,!0);return;case"textarea":Vt("invalid",o),b=_=g=null;for(T in h)if(h.hasOwnProperty(T)&&(E=h[T],E!=null))switch(T){case"value":g=E;break;case"defaultValue":_=E;break;case"children":b=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:ie(o,s,T,E,h,null)}VS(o,g,_,b);return;case"option":for(k in h)if(h.hasOwnProperty(k)&&(g=h[k],g!=null))switch(k){case"selected":o.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:ie(o,s,k,g,h,null)}return;case"dialog":Vt("beforetoggle",o),Vt("toggle",o),Vt("cancel",o),Vt("close",o);break;case"iframe":case"object":Vt("load",o);break;case"video":case"audio":for(g=0;g<$s.length;g++)Vt($s[g],o);break;case"image":Vt("error",o),Vt("load",o);break;case"details":Vt("toggle",o);break;case"embed":case"source":case"link":Vt("error",o),Vt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in h)if(h.hasOwnProperty(X)&&(g=h[X],g!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:ie(o,s,X,g,h,null)}return;default:if(Fv(s)){for(tt in h)h.hasOwnProperty(tt)&&(g=h[tt],g!==void 0&&Ap(o,s,tt,g,h,void 0));return}}for(E in h)h.hasOwnProperty(E)&&(g=h[E],g!=null&&ie(o,s,E,g,h,null))}function hz(o,s,h,g){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var _=null,b=null,T=null,E=null,k=null,X=null,tt=null;for(Q in h){var nt=h[Q];if(h.hasOwnProperty(Q)&&nt!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":k=nt;default:g.hasOwnProperty(Q)||ie(o,s,Q,null,g,nt)}}for(var Z in g){var Q=g[Z];if(nt=h[Z],g.hasOwnProperty(Z)&&(Q!=null||nt!=null))switch(Z){case"type":b=Q;break;case"name":_=Q;break;case"checked":X=Q;break;case"defaultChecked":tt=Q;break;case"value":T=Q;break;case"defaultValue":E=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,s));break;default:Q!==nt&&ie(o,s,Z,Q,g,nt)}}Hv(o,T,E,k,X,tt,b,_);return;case"select":Q=T=E=Z=null;for(b in h)if(k=h[b],h.hasOwnProperty(b)&&k!=null)switch(b){case"value":break;case"multiple":Q=k;default:g.hasOwnProperty(b)||ie(o,s,b,null,g,k)}for(_ in g)if(b=g[_],k=h[_],g.hasOwnProperty(_)&&(b!=null||k!=null))switch(_){case"value":Z=b;break;case"defaultValue":E=b;break;case"multiple":T=b;default:b!==k&&ie(o,s,_,b,g,k)}s=E,h=T,g=Q,Z!=null?Go(o,!!h,Z,!1):!!g!=!!h&&(s!=null?Go(o,!!h,s,!0):Go(o,!!h,h?[]:"",!1));return;case"textarea":Q=Z=null;for(E in h)if(_=h[E],h.hasOwnProperty(E)&&_!=null&&!g.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:ie(o,s,E,null,g,_)}for(T in g)if(_=g[T],b=h[T],g.hasOwnProperty(T)&&(_!=null||b!=null))switch(T){case"value":Z=_;break;case"defaultValue":Q=_;break;case"children":break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(91));break;default:_!==b&&ie(o,s,T,_,g,b)}HS(o,Z,Q);return;case"option":for(var ht in h)if(Z=h[ht],h.hasOwnProperty(ht)&&Z!=null&&!g.hasOwnProperty(ht))switch(ht){case"selected":o.selected=!1;break;default:ie(o,s,ht,null,g,Z)}for(k in g)if(Z=g[k],Q=h[k],g.hasOwnProperty(k)&&Z!==Q&&(Z!=null||Q!=null))switch(k){case"selected":o.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:ie(o,s,k,Z,g,Q)}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 wt in h)Z=h[wt],h.hasOwnProperty(wt)&&Z!=null&&!g.hasOwnProperty(wt)&&ie(o,s,wt,null,g,Z);for(X in g)if(Z=g[X],Q=h[X],g.hasOwnProperty(X)&&Z!==Q&&(Z!=null||Q!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(r(137,s));break;default:ie(o,s,X,Z,g,Q)}return;default:if(Fv(s)){for(var ae in h)Z=h[ae],h.hasOwnProperty(ae)&&Z!==void 0&&!g.hasOwnProperty(ae)&&Ap(o,s,ae,void 0,g,Z);for(tt in g)Z=g[tt],Q=h[tt],!g.hasOwnProperty(tt)||Z===Q||Z===void 0&&Q===void 0||Ap(o,s,tt,Z,g,Q);return}}for(var G in h)Z=h[G],h.hasOwnProperty(G)&&Z!=null&&!g.hasOwnProperty(G)&&ie(o,s,G,null,g,Z);for(nt in g)Z=g[nt],Q=h[nt],!g.hasOwnProperty(nt)||Z===Q||Z==null&&Q==null||ie(o,s,nt,Z,g,Q)}function jb(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dz(){if(typeof performance.getEntriesByType=="function"){for(var o=0,s=0,h=performance.getEntriesByType("resource"),g=0;g<h.length;g++){var _=h[g],b=_.transferSize,T=_.initiatorType,E=_.duration;if(b&&E&&jb(T)){for(T=0,E=_.responseEnd,g+=1;g<h.length;g++){var k=h[g],X=k.startTime;if(X>E)break;var tt=k.transferSize,nt=k.initiatorType;tt&&jb(nt)&&(k=k.responseEnd,T+=tt*(k<E?1:(E-X)/(k-X)))}if(--g,s+=8*(b+T)/(_.duration/1e3),o++,10<o)break}}if(0<o)return s/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Dp=null,Rp=null;function Yc(o){return o.nodeType===9?o:o.ownerDocument}function Yb(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function qb(o,s){if(o===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&s==="foreignObject"?0:o}function Ep(o,s){return o==="textarea"||o==="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 Lp=null;function vz(){var o=window.event;return o&&o.type==="popstate"?o===Lp?!1:(Lp=o,!0):(Lp=null,!1)}var Xb=typeof setTimeout=="function"?setTimeout:void 0,gz=typeof clearTimeout=="function"?clearTimeout:void 0,Zb=typeof Promise=="function"?Promise:void 0,pz=typeof queueMicrotask=="function"?queueMicrotask:typeof Zb<"u"?function(o){return Zb.resolve(null).then(o).catch(mz)}:Xb;function mz(o){setTimeout(function(){throw o})}function Ki(o){return o==="head"}function $b(o,s){var h=s,g=0;do{var _=h.nextSibling;if(o.removeChild(h),_&&_.nodeType===8)if(h=_.data,h==="/$"||h==="/&"){if(g===0){o.removeChild(_),Sl(s);return}g--}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")g++;else if(h==="html")Qs(o.ownerDocument.documentElement);else if(h==="head"){h=o.ownerDocument.head,Qs(h);for(var b=h.firstChild;b;){var T=b.nextSibling,E=b.nodeName;b[gs]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&b.rel.toLowerCase()==="stylesheet"||h.removeChild(b),b=T}}else h==="body"&&Qs(o.ownerDocument.body);h=_}while(h);Sl(s)}function Wb(o,s){var h=o;o=0;do{var g=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||""),g&&g.nodeType===8)if(h=g.data,h==="/$"){if(o===0)break;o--}else h!=="$"&&h!=="$?"&&h!=="$~"&&h!=="$!"||o++;h=g}while(h)}function Op(o){var s=o.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":Op(h),Pv(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}o.removeChild(h)}}function yz(o,s,h,g){for(;o.nodeType===1;){var _=h;if(o.nodeName.toLowerCase()!==s.toLowerCase()){if(!g&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(g){if(!o[gs])switch(s){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(b=o.getAttribute("rel"),b==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(b!==_.rel||o.getAttribute("href")!==(_.href==null||_.href===""?null:_.href)||o.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin)||o.getAttribute("title")!==(_.title==null?null:_.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(b=o.getAttribute("src"),(b!==(_.src==null?null:_.src)||o.getAttribute("type")!==(_.type==null?null:_.type)||o.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin))&&b&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(s==="input"&&o.type==="hidden"){var b=_.name==null?null:""+_.name;if(_.type==="hidden"&&o.getAttribute("name")===b)return o}else return o;if(o=Wn(o.nextSibling),o===null)break}return null}function _z(o,s,h){if(s==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!h||(o=Wn(o.nextSibling),o===null))return null;return o}function Qb(o,s){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=Wn(o.nextSibling),o===null))return null;return o}function zp(o){return o.data==="$?"||o.data==="$~"}function Np(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function Sz(o,s){var h=o.ownerDocument;if(o.data==="$~")o._reactRetry=s;else if(o.data!=="$?"||h.readyState!=="loading")s();else{var g=function(){s(),h.removeEventListener("DOMContentLoaded",g)};h.addEventListener("DOMContentLoaded",g),o._reactRetry=g}}function Wn(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return o}var Ip=null;function Kb(o){o=o.nextSibling;for(var s=0;o;){if(o.nodeType===8){var h=o.data;if(h==="/$"||h==="/&"){if(s===0)return Wn(o.nextSibling);s--}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||s++}o=o.nextSibling}return null}function Jb(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var h=o.data;if(h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"){if(s===0)return o;s--}else h!=="/$"&&h!=="/&"||s++}o=o.previousSibling}return null}function tw(o,s,h){switch(s=Yc(h),o){case"html":if(o=s.documentElement,!o)throw Error(r(452));return o;case"head":if(o=s.head,!o)throw Error(r(453));return o;case"body":if(o=s.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Qs(o){for(var s=o.attributes;s.length;)o.removeAttributeNode(s[0]);Pv(o)}var Qn=new Map,ew=new Set;function qc(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var di=K.d;K.d={f:xz,r:bz,D:wz,C:Cz,L:Mz,m:Tz,X:Dz,S:Az,M:Rz};function xz(){var o=di.f(),s=Pc();return o||s}function bz(o){var s=Ho(o);s!==null&&s.tag===5&&s.type==="form"?mx(s):di.r(o)}var ml=typeof document>"u"?null:document;function nw(o,s,h){var g=ml;if(g&&typeof s=="string"&&s){var _=Un(s);_='link[rel="'+o+'"][href="'+_+'"]',typeof h=="string"&&(_+='[crossorigin="'+h+'"]'),ew.has(_)||(ew.add(_),o={rel:o,crossOrigin:h,href:s},g.querySelector(_)===null&&(s=g.createElement("link"),Fe(s,"link",o),Ne(s),g.head.appendChild(s)))}}function wz(o){di.D(o),nw("dns-prefetch",o,null)}function Cz(o,s){di.C(o,s),nw("preconnect",o,s)}function Mz(o,s,h){di.L(o,s,h);var g=ml;if(g&&o&&s){var _='link[rel="preload"][as="'+Un(s)+'"]';s==="image"&&h&&h.imageSrcSet?(_+='[imagesrcset="'+Un(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(_+='[imagesizes="'+Un(h.imageSizes)+'"]')):_+='[href="'+Un(o)+'"]';var b=_;switch(s){case"style":b=yl(o);break;case"script":b=_l(o)}Qn.has(b)||(o=v({rel:"preload",href:s==="image"&&h&&h.imageSrcSet?void 0:o,as:s},h),Qn.set(b,o),g.querySelector(_)!==null||s==="style"&&g.querySelector(Ks(b))||s==="script"&&g.querySelector(Js(b))||(s=g.createElement("link"),Fe(s,"link",o),Ne(s),g.head.appendChild(s)))}}function Tz(o,s){di.m(o,s);var h=ml;if(h&&o){var g=s&&typeof s.as=="string"?s.as:"script",_='link[rel="modulepreload"][as="'+Un(g)+'"][href="'+Un(o)+'"]',b=_;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=_l(o)}if(!Qn.has(b)&&(o=v({rel:"modulepreload",href:o},s),Qn.set(b,o),h.querySelector(_)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(Js(b)))return}g=h.createElement("link"),Fe(g,"link",o),Ne(g),h.head.appendChild(g)}}}function Az(o,s,h){di.S(o,s,h);var g=ml;if(g&&o){var _=Vo(g).hoistableStyles,b=yl(o);s=s||"default";var T=_.get(b);if(!T){var E={loading:0,preload:null};if(T=g.querySelector(Ks(b)))E.loading=5;else{o=v({rel:"stylesheet",href:o,"data-precedence":s},h),(h=Qn.get(b))&&Bp(o,h);var k=T=g.createElement("link");Ne(k),Fe(k,"link",o),k._p=new Promise(function(X,tt){k.onload=X,k.onerror=tt}),k.addEventListener("load",function(){E.loading|=1}),k.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Xc(T,s,g)}T={type:"stylesheet",instance:T,count:1,state:E},_.set(b,T)}}}function Dz(o,s){di.X(o,s);var h=ml;if(h&&o){var g=Vo(h).hoistableScripts,_=_l(o),b=g.get(_);b||(b=h.querySelector(Js(_)),b||(o=v({src:o,async:!0},s),(s=Qn.get(_))&&Pp(o,s),b=h.createElement("script"),Ne(b),Fe(b,"link",o),h.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},g.set(_,b))}}function Rz(o,s){di.M(o,s);var h=ml;if(h&&o){var g=Vo(h).hoistableScripts,_=_l(o),b=g.get(_);b||(b=h.querySelector(Js(_)),b||(o=v({src:o,async:!0,type:"module"},s),(s=Qn.get(_))&&Pp(o,s),b=h.createElement("script"),Ne(b),Fe(b,"link",o),h.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},g.set(_,b))}}function rw(o,s,h,g){var _=(_=dt.current)?qc(_):null;if(!_)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(s=yl(h.href),h=Vo(_).hoistableStyles,g=h.get(s),g||(g={type:"style",instance:null,count:0,state:null},h.set(s,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){o=yl(h.href);var b=Vo(_).hoistableStyles,T=b.get(o);if(T||(_=_.ownerDocument||_,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(o,T),(b=_.querySelector(Ks(o)))&&!b._p&&(T.instance=b,T.state.loading=5),Qn.has(o)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},Qn.set(o,h),b||Ez(_,o,h,T.state))),s&&g===null)throw Error(r(528,""));return T}if(s&&g!==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=_l(h),h=Vo(_).hoistableScripts,g=h.get(s),g||(g={type:"script",instance:null,count:0,state:null},h.set(s,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function yl(o){return'href="'+Un(o)+'"'}function Ks(o){return'link[rel="stylesheet"]['+o+"]"}function iw(o){return v({},o,{"data-precedence":o.precedence,precedence:null})}function Ez(o,s,h,g){o.querySelector('link[rel="preload"][as="style"]['+s+"]")?g.loading=1:(s=o.createElement("link"),g.preload=s,s.addEventListener("load",function(){return g.loading|=1}),s.addEventListener("error",function(){return g.loading|=2}),Fe(s,"link",h),Ne(s),o.head.appendChild(s))}function _l(o){return'[src="'+Un(o)+'"]'}function Js(o){return"script[async]"+o}function aw(o,s,h){if(s.count++,s.instance===null)switch(s.type){case"style":var g=o.querySelector('style[data-href~="'+Un(h.href)+'"]');if(g)return s.instance=g,Ne(g),g;var _=v({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return g=(o.ownerDocument||o).createElement("style"),Ne(g),Fe(g,"style",_),Xc(g,h.precedence,o),s.instance=g;case"stylesheet":_=yl(h.href);var b=o.querySelector(Ks(_));if(b)return s.state.loading|=4,s.instance=b,Ne(b),b;g=iw(h),(_=Qn.get(_))&&Bp(g,_),b=(o.ownerDocument||o).createElement("link"),Ne(b);var T=b;return T._p=new Promise(function(E,k){T.onload=E,T.onerror=k}),Fe(b,"link",g),s.state.loading|=4,Xc(b,h.precedence,o),s.instance=b;case"script":return b=_l(h.src),(_=o.querySelector(Js(b)))?(s.instance=_,Ne(_),_):(g=h,(_=Qn.get(b))&&(g=v({},h),Pp(g,_)),o=o.ownerDocument||o,_=o.createElement("script"),Ne(_),Fe(_,"link",g),o.head.appendChild(_),s.instance=_);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(g=s.instance,s.state.loading|=4,Xc(g,h.precedence,o));return s.instance}function Xc(o,s,h){for(var g=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),_=g.length?g[g.length-1]:null,b=_,T=0;T<g.length;T++){var E=g[T];if(E.dataset.precedence===s)b=E;else if(b!==_)break}b?b.parentNode.insertBefore(o,b.nextSibling):(s=h.nodeType===9?h.head:h,s.insertBefore(o,s.firstChild))}function Bp(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.title==null&&(o.title=s.title)}function Pp(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.integrity==null&&(o.integrity=s.integrity)}var Zc=null;function ow(o,s,h){if(Zc===null){var g=new Map,_=Zc=new Map;_.set(h,g)}else _=Zc,g=_.get(h),g||(g=new Map,_.set(h,g));if(g.has(o))return g;for(g.set(o,null),h=h.getElementsByTagName(o),_=0;_<h.length;_++){var b=h[_];if(!(b[gs]||b[Pe]||o==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var T=b.getAttribute(s)||"";T=o+T;var E=g.get(T);E?E.push(b):g.set(T,[b])}}return g}function lw(o,s,h){o=o.ownerDocument||o,o.head.insertBefore(h,s==="title"?o.querySelector("head > title"):null)}function Lz(o,s,h){if(h===1||s.itemProp!=null)return!1;switch(o){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 o=s.disabled,typeof s.precedence=="string"&&o==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 sw(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function Oz(o,s,h,g){if(h.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var _=yl(g.href),b=s.querySelector(Ks(_));if(b){s=b._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(o.count++,o=$c.bind(o),s.then(o,o)),h.state.loading|=4,h.instance=b,Ne(b);return}b=s.ownerDocument||s,g=iw(g),(_=Qn.get(_))&&Bp(g,_),b=b.createElement("link"),Ne(b);var T=b;T._p=new Promise(function(E,k){T.onload=E,T.onerror=k}),Fe(b,"link",g),h.instance=b}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(h,s),(s=h.state.preload)&&(h.state.loading&3)===0&&(o.count++,h=$c.bind(o),s.addEventListener("load",h),s.addEventListener("error",h))}}var kp=0;function zz(o,s){return o.stylesheets&&o.count===0&&Qc(o,o.stylesheets),0<o.count||0<o.imgCount?function(h){var g=setTimeout(function(){if(o.stylesheets&&Qc(o,o.stylesheets),o.unsuspend){var b=o.unsuspend;o.unsuspend=null,b()}},6e4+s);0<o.imgBytes&&kp===0&&(kp=62500*dz());var _=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Qc(o,o.stylesheets),o.unsuspend)){var b=o.unsuspend;o.unsuspend=null,b()}},(o.imgBytes>kp?50:800)+s);return o.unsuspend=h,function(){o.unsuspend=null,clearTimeout(g),clearTimeout(_)}}:null}function $c(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qc(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Wc=null;function Qc(o,s){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Wc=new Map,s.forEach(Nz,o),Wc=null,$c.call(o))}function Nz(o,s){if(!(s.state.loading&4)){var h=Wc.get(o);if(h)var g=h.get(null);else{h=new Map,Wc.set(o,h);for(var _=o.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<_.length;b++){var T=_[b];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(h.set(T.dataset.precedence,T),g=T)}g&&h.set(null,g)}_=s.instance,T=_.getAttribute("data-precedence"),b=h.get(T)||g,b===g&&h.set(null,_),h.set(T,_),this.count++,g=$c.bind(this),_.addEventListener("load",g),_.addEventListener("error",g),b?b.parentNode.insertBefore(_,b.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(_,o.firstChild)),s.state.loading|=4}}var tu={$$typeof:M,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function Iz(o,s,h,g,_,b,T,E,k){this.tag=1,this.containerInfo=o,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=zv(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zv(0),this.hiddenUpdates=zv(null),this.identifierPrefix=g,this.onUncaughtError=_,this.onCaughtError=b,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function uw(o,s,h,g,_,b,T,E,k,X,tt,nt){return o=new Iz(o,s,h,T,k,X,tt,nt,E),s=1,b===!0&&(s|=24),b=Ln(3,null,null,s),o.current=b,b.stateNode=o,s=mg(),s.refCount++,o.pooledCache=s,s.refCount++,b.memoizedState={element:g,isDehydrated:h,cache:s},xg(b),o}function fw(o){return o?(o=Wo,o):Wo}function cw(o,s,h,g,_,b){_=fw(_),g.context===null?g.context=_:g.pendingContext=_,g=Fi(s),g.payload={element:h},b=b===void 0?null:b,b!==null&&(g.callback=b),h=Gi(o,g,s),h!==null&&(pn(h,o,s),Os(h,o,s))}function hw(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var h=o.retryLane;o.retryLane=h!==0&&h<s?h:s}}function Hp(o,s){hw(o,s),(o=o.alternate)&&hw(o,s)}function dw(o){if(o.tag===13||o.tag===31){var s=Ha(o,67108864);s!==null&&pn(s,o,67108864),Hp(o,67108864)}}function vw(o){if(o.tag===13||o.tag===31){var s=Bn();s=Nv(s);var h=Ha(o,s);h!==null&&pn(h,o,s),Hp(o,s)}}var Kc=!0;function Bz(o,s,h,g){var _=V.T;V.T=null;var b=K.p;try{K.p=2,Vp(o,s,h,g)}finally{K.p=b,V.T=_}}function Pz(o,s,h,g){var _=V.T;V.T=null;var b=K.p;try{K.p=8,Vp(o,s,h,g)}finally{K.p=b,V.T=_}}function Vp(o,s,h,g){if(Kc){var _=Fp(g);if(_===null)Tp(o,s,g,Jc,h),pw(o,g);else if(Hz(_,o,s,h,g))g.stopPropagation();else if(pw(o,g),s&4&&-1<kz.indexOf(o)){for(;_!==null;){var b=Ho(_);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var T=Na(b.pendingLanes);if(T!==0){var E=b;for(E.pendingLanes|=2,E.entangledLanes|=2;T;){var k=1<<31-Rn(T);E.entanglements[1]|=k,T&=~k}Or(b),(Qt&6)===0&&(Ic=An()+500,Zs(0))}}break;case 31:case 13:E=Ha(b,2),E!==null&&pn(E,b,2),Pc(),Hp(b,2)}if(b=Fp(g),b===null&&Tp(o,s,g,Jc,h),b===_)break;_=b}_!==null&&g.stopPropagation()}else Tp(o,s,g,null,h)}}function Fp(o){return o=Uv(o),Gp(o)}var Jc=null;function Gp(o){if(Jc=null,o=ko(o),o!==null){var s=a(o);if(s===null)o=null;else{var h=s.tag;if(h===13){if(o=l(s),o!==null)return o;o=null}else if(h===31){if(o=u(s),o!==null)return o;o=null}else if(h===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null)}}return Jc=o,null}function gw(o){switch(o){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(wL()){case bS:return 2;case wS:return 8;case Gf:case CL:return 32;case CS:return 268435456;default:return 32}default:return 32}}var Up=!1,Ji=null,ta=null,ea=null,eu=new Map,nu=new Map,na=[],kz="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 pw(o,s){switch(o){case"focusin":case"focusout":Ji=null;break;case"dragenter":case"dragleave":ta=null;break;case"mouseover":case"mouseout":ea=null;break;case"pointerover":case"pointerout":eu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":nu.delete(s.pointerId)}}function ru(o,s,h,g,_,b){return o===null||o.nativeEvent!==b?(o={blockedOn:s,domEventName:h,eventSystemFlags:g,nativeEvent:b,targetContainers:[_]},s!==null&&(s=Ho(s),s!==null&&dw(s)),o):(o.eventSystemFlags|=g,s=o.targetContainers,_!==null&&s.indexOf(_)===-1&&s.push(_),o)}function Hz(o,s,h,g,_){switch(s){case"focusin":return Ji=ru(Ji,o,s,h,g,_),!0;case"dragenter":return ta=ru(ta,o,s,h,g,_),!0;case"mouseover":return ea=ru(ea,o,s,h,g,_),!0;case"pointerover":var b=_.pointerId;return eu.set(b,ru(eu.get(b)||null,o,s,h,g,_)),!0;case"gotpointercapture":return b=_.pointerId,nu.set(b,ru(nu.get(b)||null,o,s,h,g,_)),!0}return!1}function mw(o){var s=ko(o.target);if(s!==null){var h=a(s);if(h!==null){if(s=h.tag,s===13){if(s=l(h),s!==null){o.blockedOn=s,ES(o.priority,function(){vw(h)});return}}else if(s===31){if(s=u(h),s!==null){o.blockedOn=s,ES(o.priority,function(){vw(h)});return}}else if(s===3&&h.stateNode.current.memoizedState.isDehydrated){o.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}o.blockedOn=null}function th(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var h=Fp(o.nativeEvent);if(h===null){h=o.nativeEvent;var g=new h.constructor(h.type,h);Gv=g,h.target.dispatchEvent(g),Gv=null}else return s=Ho(h),s!==null&&dw(s),o.blockedOn=h,!1;s.shift()}return!0}function yw(o,s,h){th(o)&&h.delete(s)}function Vz(){Up=!1,Ji!==null&&th(Ji)&&(Ji=null),ta!==null&&th(ta)&&(ta=null),ea!==null&&th(ea)&&(ea=null),eu.forEach(yw),nu.forEach(yw)}function eh(o,s){o.blockedOn===s&&(o.blockedOn=null,Up||(Up=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Vz)))}var nh=null;function _w(o){nh!==o&&(nh=o,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){nh===o&&(nh=null);for(var s=0;s<o.length;s+=3){var h=o[s],g=o[s+1],_=o[s+2];if(typeof g!="function"){if(Gp(g||h)===null)continue;break}var b=Ho(h);b!==null&&(o.splice(s,3),s-=3,Fg(b,{pending:!0,data:_,method:h.method,action:g},g,_))}}))}function Sl(o){function s(k){return eh(k,o)}Ji!==null&&eh(Ji,o),ta!==null&&eh(ta,o),ea!==null&&eh(ea,o),eu.forEach(s),nu.forEach(s);for(var h=0;h<na.length;h++){var g=na[h];g.blockedOn===o&&(g.blockedOn=null)}for(;0<na.length&&(h=na[0],h.blockedOn===null);)mw(h),h.blockedOn===null&&na.shift();if(h=(o.ownerDocument||o).$$reactFormReplay,h!=null)for(g=0;g<h.length;g+=3){var _=h[g],b=h[g+1],T=_[fn]||null;if(typeof b=="function")T||_w(h);else if(T){var E=null;if(b&&b.hasAttribute("formAction")){if(_=b,T=b[fn]||null)E=T.formAction;else if(Gp(_)!==null)continue}else E=T.action;typeof E=="function"?h[g+1]=E:(h.splice(g,3),g-=3),_w(h)}}}function Sw(){function o(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(T){return _=T})},focusReset:"manual",scroll:"manual"})}function s(){_!==null&&(_(),_=null),g||setTimeout(h,20)}function h(){if(!g&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var g=!1,_=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(h,100),function(){g=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),_!==null&&(_(),_=null)}}}function jp(o){this._internalRoot=o}rh.prototype.render=jp.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(r(409));var h=s.current,g=Bn();cw(h,g,o,s,null,null)},rh.prototype.unmount=jp.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;cw(o.current,2,null,o,null,null),Pc(),s[Po]=null}};function rh(o){this._internalRoot=o}rh.prototype.unstable_scheduleHydration=function(o){if(o){var s=RS();o={blockedOn:null,target:o,priority:s};for(var h=0;h<na.length&&s!==0&&s<na[h].priority;h++);na.splice(h,0,o),h===0&&mw(o)}};var xw=e.version;if(xw!=="19.2.4")throw Error(r(527,xw,"19.2.4"));K.findDOMNode=function(o){var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=c(s),o=o!==null?d(o):null,o=o===null?null:o.stateNode,o};var Fz={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ih=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ih.isDisabled&&ih.supportsFiber)try{hs=ih.inject(Fz),Dn=ih}catch{}}return au.createRoot=function(o,s){if(!i(o))throw Error(r(299));var h=!1,g="",_=Dx,b=Rx,T=Ex;return s!=null&&(s.unstable_strictMode===!0&&(h=!0),s.identifierPrefix!==void 0&&(g=s.identifierPrefix),s.onUncaughtError!==void 0&&(_=s.onUncaughtError),s.onCaughtError!==void 0&&(b=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError)),s=uw(o,1,!1,null,null,h,g,null,_,b,T,Sw),o[Po]=s.current,Mp(o),new jp(s)},au.hydrateRoot=function(o,s,h){if(!i(o))throw Error(r(299));var g=!1,_="",b=Dx,T=Rx,E=Ex,k=null;return h!=null&&(h.unstable_strictMode===!0&&(g=!0),h.identifierPrefix!==void 0&&(_=h.identifierPrefix),h.onUncaughtError!==void 0&&(b=h.onUncaughtError),h.onCaughtError!==void 0&&(T=h.onCaughtError),h.onRecoverableError!==void 0&&(E=h.onRecoverableError),h.formState!==void 0&&(k=h.formState)),s=uw(o,1,!0,s,h??null,g,_,k,b,T,E,Sw),s.context=fw(null),h=s.current,g=Bn(),g=Nv(g),_=Fi(g),_.callback=null,Gi(h,_,g),h=g,s.current.lanes=h,vs(s,h),Or(s),o[Po]=s.current,Mp(o),new rh(s)},au.version="19.2.4",au}var Lw;function Qz(){if(Lw)return Xp.exports;Lw=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(),Xp.exports=Wz(),Xp.exports}var Kz=Qz();const Jz=Q0(Kz),Ow="".replace(/\/$/,"");function hd(t){return Ow?`${Ow}${t}`:t}async function ia(t){const e=await fetch(hd(t));if(!e.ok)throw new Error(`API error: ${e.status}`);return e.json()}async function t3(t){const e=await fetch(hd(t),{method:"POST"});if(!e.ok)throw new Error(`API error: ${e.status}`);return e.json()}const zr={url:hd,progress:()=>ia("/api/progress"),overview:()=>ia("/api/overview"),repos:()=>ia("/api/repos"),models:()=>ia("/api/models"),daily:()=>ia("/api/daily"),sessions:(t="")=>ia(`/api/sessions${t?`?q=${encodeURIComponent(t)}`:""}`),heatmap:()=>ia("/api/heatmap"),families:()=>ia("/api/families"),live:()=>new EventSource(hd("/api/live")),rerun:()=>t3("/api/rerun")};function vi(t,e=180){const[n,r]=mt.useState(t??0),i=mt.useRef(t??0),a=mt.useRef(0);return mt.useEffect(()=>{if(i.current=t??0,a.current)return;const l=()=>{r(u=>{const f=i.current,c=f-u;return Math.abs(c)<.5?(a.current=0,f):(a.current=requestAnimationFrame(l),u+c*Math.min(1,16/Math.max(e,16)))})};return a.current=requestAnimationFrame(l),()=>{a.current&&cancelAnimationFrame(a.current),a.current=0}},[t,e]),n}var ah={};/*! *****************************************************************************
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 Ny=function(t,e){return Ny=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Ny(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");Ny(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Iy=function(){return Iy=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Iy.apply(this,arguments)};function e3(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 i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function n3(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(l=t[u])&&(a=(i<3?l(a):i>3?l(e,n,a):l(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function r3(t,e){return function(n,r){e(n,r,t)}}function i3(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function a3(t,e,n,r){function i(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function u(d){try{c(r.next(d))}catch(v){l(v)}}function f(d){try{c(r.throw(d))}catch(v){l(v)}}function c(d){d.done?a(d.value):i(d.value).then(u,f)}c((r=r.apply(t,e||[])).next())})}function o3(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,l;return l={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function u(c){return function(d){return f([c,d])}}function f(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(d){c=[6,d],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var J0=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 l3(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&J0(e,t,n)}function By(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 $A(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],l;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(u){l={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return a}function s3(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat($A(arguments[e]));return t}function u3(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var a=arguments[e],l=0,u=a.length;l<u;l++,i++)r[i]=a[l];return r}function f3(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return t.concat(a||e)}function rf(t){return this instanceof rf?(this.v=t,this):new rf(t)}function c3(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,a=[];return i={},l("next"),l("throw"),l("return"),i[Symbol.asyncIterator]=function(){return this},i;function l(m){r[m]&&(i[m]=function(p){return new Promise(function(y,S){a.push([m,p,y,S])>1||u(m,p)})})}function u(m,p){try{f(r[m](p))}catch(y){v(a[0][3],y)}}function f(m){m.value instanceof rf?Promise.resolve(m.value.v).then(c,d):v(a[0][2],m)}function c(m){u("next",m)}function d(m){u("throw",m)}function v(m,p){m(p),a.shift(),a.length&&u(a[0][0],a[0][1])}}function h3(t){var e,n;return e={},r("next"),r("throw",function(i){throw i}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(i,a){e[i]=t[i]?function(l){return(n=!n)?{value:rf(t[i](l)),done:i==="return"}:a?a(l):l}:a}}function d3(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 By=="function"?By(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=t[a]&&function(l){return new Promise(function(u,f){l=t[a](l),i(u,f,l.done,l.value)})}}function i(a,l,u,f){Promise.resolve(f).then(function(c){a({value:c,done:u})},l)}}function v3(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var g3=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e};function p3(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)&&J0(e,t,n);return g3(e,t),e}function m3(t){return t&&t.__esModule?t:{default:t}}function y3(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 _3(t,e,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n}const S3=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Iy},__asyncDelegator:h3,__asyncGenerator:c3,__asyncValues:d3,__await:rf,__awaiter:a3,__classPrivateFieldGet:y3,__classPrivateFieldSet:_3,__createBinding:J0,__decorate:n3,__exportStar:l3,__extends:ut,__generator:o3,__importDefault:m3,__importStar:p3,__makeTemplateObject:v3,__metadata:i3,__param:r3,__read:$A,__rest:e3,__spread:s3,__spreadArray:f3,__spreadArrays:u3,__values:By},Symbol.toStringTag,{value:"Module"})),WA=Uz(S3);var gi={},pi={},Qp={},zw;function x3(){return zw||(zw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=1;t.default=function(){return"".concat(e++)}})(Qp)),Qp}var ou={},lu={},Kp={},Nw;function QA(){return Nw||(Nw=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,i=null;return function(){for(var a=this,l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];clearTimeout(i),i=setTimeout(function(){n.apply(a,u)},r)}}})(Kp)),Kp}var mi={},Iw;function t_(){return Iw||(Iw=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.SizeSensorId=mi.SensorTabIndex=mi.SensorClassName=void 0,mi.SizeSensorId="size-sensor-id",mi.SensorClassName="size-sensor-object",mi.SensorTabIndex="-1"),mi}var Bw;function b3(){if(Bw)return lu;Bw=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.createSensor=void 0;var t=n(QA()),e=t_();function n(r){return r&&r.__esModule?r:{default:r}}return lu.createSensor=function(i,a){var l=void 0,u=[],f=function(){getComputedStyle(i).position==="static"&&(i.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",i.appendChild(y),y.data="about:blank",y},c=(0,t.default)(function(){u.forEach(function(p){p(i)})}),d=function(y){l||(l=f()),u.indexOf(y)===-1&&u.push(y)},v=function(){l&&l.parentNode&&(l.contentDocument&&l.contentDocument.defaultView.removeEventListener("resize",c),l.parentNode.removeChild(l),i.removeAttribute(e.SizeSensorId),l=void 0,u=[],a&&a())},m=function(y){var S=u.indexOf(y);S!==-1&&u.splice(S,1),u.length===0&&l&&v()};return{element:i,bind:d,destroy:v,unbind:m}},lu}var su={},Pw;function w3(){if(Pw)return su;Pw=1,Object.defineProperty(su,"__esModule",{value:!0}),su.createSensor=void 0;var t=t_(),e=n(QA());function n(r){return r&&r.__esModule?r:{default:r}}return su.createSensor=function(i,a){var l=void 0,u=[],f=(0,e.default)(function(){u.forEach(function(p){p(i)})}),c=function(){var y=new ResizeObserver(f);return y.observe(i),f(),y},d=function(y){l||(l=c()),u.indexOf(y)===-1&&u.push(y)},v=function(){l&&l.disconnect(),u=[],l=void 0,i.removeAttribute(t.SizeSensorId),a&&a()},m=function(y){var S=u.indexOf(y);S!==-1&&u.splice(S,1),u.length===0&&l&&v()};return{element:i,bind:d,destroy:v,unbind:m}},su}var kw;function C3(){if(kw)return ou;kw=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.createSensor=void 0;var t=b3(),e=w3();return ou.createSensor=typeof ResizeObserver<"u"?e.createSensor:t.createSensor,ou}var Hw;function M3(){if(Hw)return pi;Hw=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.removeSensor=pi.getSensor=pi.Sensors=void 0;var t=r(x3()),e=C3(),n=t_();function r(l){return l&&l.__esModule?l:{default:l}}var i=pi.Sensors={};function a(l){l&&i[l]&&delete i[l]}return pi.getSensor=function(u){var f=u.getAttribute(n.SizeSensorId);if(f&&i[f])return i[f];var c=(0,t.default)();u.setAttribute(n.SizeSensorId,c);var d=(0,e.createSensor)(u,function(){return a(c)});return i[c]=d,d},pi.removeSensor=function(u){var f=u.element.getAttribute(n.SizeSensorId);u.destroy(),a(f)},pi}var Vw;function T3(){if(Vw)return gi;Vw=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.ver=gi.clear=gi.bind=void 0;var t=M3();return gi.bind=function(n,r){var i=(0,t.getSensor)(n);return i.bind(r),function(){i.unbind(r)}},gi.clear=function(n){var r=(0,t.getSensor)(n);(0,t.removeSensor)(r)},gi.ver="1.0.3",gi}var uu={},Fw;function A3(){if(Fw)return uu;Fw=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.pick=void 0;function t(e,n){var r={};return n.forEach(function(i){r[i]=e[i]}),r}return uu.pick=t,uu}var fu={},Gw;function D3(){if(Gw)return fu;Gw=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.isFunction=void 0;function t(e){return typeof e=="function"}return fu.isFunction=t,fu}var cu={},Uw;function R3(){if(Uw)return cu;Uw=1,Object.defineProperty(cu,"__esModule",{value:!0}),cu.isString=void 0;function t(e){return typeof e=="string"}return cu.isString=t,cu}var hu={},Jp,jw;function E3(){return jw||(jw=1,Jp=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,i,a;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))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(a=Object.keys(e),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var l=a[i];if(!t(e[l],n[l]))return!1}return!0}return e!==e&&n!==n}),Jp}var Yw;function L3(){if(Yw)return hu;Yw=1,Object.defineProperty(hu,"__esModule",{value:!0}),hu.isEqual=void 0;var t=WA,e=t.__importDefault(E3());return hu.isEqual=e.default,hu}var qw;function O3(){if(qw)return ah;qw=1,Object.defineProperty(ah,"__esModule",{value:!0});var t=WA,e=t.__importStar(Yd()),n=T3(),r=A3(),i=D3(),a=R3(),l=L3(),u=(function(f){t.__extends(c,f);function c(d){var v=f.call(this,d)||this;return v.echarts=d.echarts,v.ele=null,v.isInitialResize=!0,v.eventHandlerRefs={},v}return c.prototype.componentDidMount=function(){this.renderNewEcharts()},c.prototype.componentDidUpdate=function(d){var v=this.props.shouldSetOption;if(!((0,i.isFunction)(v)&&!v(d,this.props))){if(!(0,l.isEqual)(d.theme,this.props.theme)||!(0,l.isEqual)(d.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var m=this.getEchartsInstance();(0,l.isEqual)(d.onEvents,this.props.onEvents)||(this.unbindEvents(m),this.bindEvents(m,this.props.onEvents));var p=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];(0,l.isEqual)((0,r.pick)(this.props,p),(0,r.pick)(d,p))||this.updateEChartsOption(),(!(0,l.isEqual)(d.style,this.props.style)||!(0,l.isEqual)(d.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 d=this;return t.__generator(this,function(v){return[2,new Promise(function(m){d.echarts.init(d.ele,d.props.theme,d.props.opts);var p=d.getEchartsInstance();p.on("finished",function(){var y=d.ele.clientWidth,S=d.ele.clientHeight;d.echarts.dispose(d.ele);var x=t.__assign({width:y,height:S},d.props.opts);m(d.echarts.init(d.ele,d.props.theme,x))})})]})})},c.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},c.prototype.dispose=function(){if(this.ele){try{(0,n.clear)(this.ele)}catch(d){console.warn(d)}this.echarts.dispose(this.ele)}},c.prototype.renderNewEcharts=function(){return t.__awaiter(this,void 0,void 0,function(){var d,v,m,p,y,S,x=this;return t.__generator(this,function(w){switch(w.label){case 0:return d=this.props,v=d.onEvents,m=d.onChartReady,p=d.autoResize,y=p===void 0?!0:p,[4,this.initEchartsInstance()];case 1:return w.sent(),S=this.updateEChartsOption(),this.bindEvents(S,v||{}),(0,i.isFunction)(m)&&m(S),this.ele&&y&&(0,n.bind)(this.ele,function(){x.resize()}),[2]}})})},c.prototype.bindEvents=function(d,v){var m=this,p=function(S,x){if((0,a.isString)(S)&&(0,i.isFunction)(x)){var w=function(C){x(C,d)};d.on(S,w),m.eventHandlerRefs[S]=w}};for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&p(y,v[y])},c.prototype.unbindEvents=function(d){for(var v=0,m=Object.entries(this.eventHandlerRefs);v<m.length;v++){var p=m[v],y=p[0],S=p[1];d.off(y,S)}this.eventHandlerRefs={}},c.prototype.updateEChartsOption=function(){var d=this.props,v=d.option,m=d.notMerge,p=m===void 0?!1:m,y=d.replaceMerge,S=y===void 0?null:y,x=d.lazyUpdate,w=x===void 0?!1:x,C=d.showLoading,M=d.loadingOption,A=M===void 0?null:M,R=this.getEchartsInstance();return R.setOption(v,{notMerge:p,replaceMerge:S,lazyUpdate:w}),C?R.showLoading(A):R.hideLoading(),R},c.prototype.resize=function(){var d=this.getEchartsInstance();if(!this.isInitialResize)try{d.resize({width:"auto",height:"auto"})}catch(v){console.warn(v)}this.isInitialResize=!1},c.prototype.render=function(){var d=this,v=this.props,m=v.style,p=v.className,y=p===void 0?"":p;v.echarts,v.option,v.theme,v.notMerge,v.replaceMerge,v.lazyUpdate,v.showLoading,v.loadingOption,v.opts,v.onChartReady,v.onEvents,v.shouldSetOption,v.autoResize;var S=t.__rest(v,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),x=t.__assign({height:300},m);return e.default.createElement("div",t.__assign({ref:function(w){d.ele=w},style:x,className:"echarts-for-react ".concat(y)},S))},c})(e.PureComponent);return ah.default=u,ah}var z3=O3();const wn=Q0(z3);var N3=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),I3=(function(){function t(){this.browser=new N3,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 I3;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):B3(navigator.userAgent,Dt);function B3(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),l=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),l&&(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 e_=12,P3="sans-serif",zo=e_+"px "+P3,k3=20,H3=100,V3="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function F3(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-k3)/H3;e[r]=i}return e}var G3=F3(V3),Di={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(n,r){if(!t){var i=Di.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==r&&(e=t.font=r||zo),t.measureText(n);n=n||"",r=r||zo;var a=/((?:\d+)?\.?\d*)px/.exec(r),l=a&&+a[1]||e_,u=0;if(r.indexOf("mono")>=0)u=l*n.length;else for(var f=0;f<n.length;f++){var c=G3[n[f]];u+=c==null?l:c*l}return{width:u}}})(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function KA(t){for(var e in Di)t[e]&&(Di[e]=t[e])}var JA=Gr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),t2=Gr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),as=Object.prototype.toString,qd=Array.prototype,U3=qd.forEach,j3=qd.filter,n_=qd.slice,Y3=qd.map,Xw=(function(){}).constructor,oh=Xw?Xw.prototype:null,r_="__proto__",q3=2311;function i_(){return q3++}function Xd(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function kt(t){if(t==null||typeof t!="object")return t;var e=t,n=as.call(t);if(n==="[object Array]"){if(!ql(t)){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=kt(t[r])}}else if(t2[n]){if(!ql(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var r=0,i=t.length;r<i;r++)e[r]=t[r]}}}else if(!JA[n]&&!ql(t)&&!Ql(t)){e={};for(var l in t)t.hasOwnProperty(l)&&l!==r_&&(e[l]=kt(t[l]))}return e}function jt(t,e,n){if(!bt(e)||!bt(t))return n?kt(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==r_){var i=t[r],a=e[r];bt(a)&&bt(i)&&!ft(a)&&!ft(i)&&!Ql(a)&&!Ql(i)&&!Py(a)&&!Py(i)&&!ql(a)&&!ql(i)?jt(i,a,n):(n||!(r in t))&&(t[r]=kt(e[r]))}return t}function X3(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=jt(n,t[r],e);return n}function lt(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==r_&&(t[n]=e[n]);return t}function Kt(t,e,n){for(var r=de(e),i=0,a=r.length;i<a;i++){var l=r[i];(n?e[l]!=null:t[l]==null)&&(t[l]=e[l])}return t}var Z3=Di.createCanvas;function Wt(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 a_(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var i in n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}function cr(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),i=0;i<r.length;i++){var a=r[i];a!=="constructor"&&(n?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else Kt(t,e,n)}function ln(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function I(t,e,n){if(t&&e)if(t.forEach&&t.forEach===U3)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function St(t,e,n){if(!t)return[];if(!e)return Zd(t);if(t.map&&t.map===Y3)return t.map(e,n);for(var r=[],i=0,a=t.length;i<a;i++)r.push(e.call(n,t[i],i,t));return r}function Gr(t,e,n,r){if(t&&e){for(var i=0,a=t.length;i<a;i++)n=e.call(r,n,t[i],i,t);return n}}function Ee(t,e,n){if(!t)return[];if(!e)return Zd(t);if(t.filter&&t.filter===j3)return t.filter(e,n);for(var r=[],i=0,a=t.length;i<a;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function $3(t,e,n){if(t&&e){for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}}function de(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 W3(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(n_.call(arguments)))}}var Tt=oh&&It(oh.bind)?oh.call.bind(oh.bind):W3;function ce(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(n_.call(arguments)))}}function ft(t){return Array.isArray?Array.isArray(t):as.call(t)==="[object Array]"}function It(t){return typeof t=="function"}function gt(t){return typeof t=="string"}function dd(t){return as.call(t)==="[object String]"}function ve(t){return typeof t=="number"}function bt(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Py(t){return!!JA[as.call(t)]}function sn(t){return!!t2[as.call(t)]}function Ql(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Tf(t){return t.colorStops!=null}function e2(t){return t.image!=null}function Q3(t){return as.call(t)==="[object RegExp]"}function af(t){return t!==t}function Kl(){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 Yl(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 n_.apply(t,e)}function o_(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 Ur(t,e){if(!t)throw new Error(e)}function wr(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var n2="__ec_primitive__";function vd(t){t[n2]=!0}function ql(t){return t[n2]}var K3=(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 de(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t})(),r2=typeof Map=="function";function J3(){return r2?new Map:new K3}var i2=(function(){function t(e){var n=ft(e);this.data=J3();var r=this;e instanceof t?e.each(i):e&&I(e,i);function i(a,l){n?r.set(a,l):r.set(l,a)}}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,i){e.call(n,r,i)})},t.prototype.keys=function(){var e=this.data.keys();return r2?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function At(t){return new i2(t)}function a2(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var i=t.length,r=0;r<e.length;r++)n[r+i]=e[r];return n}function Af(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&lt(n,e),n}function l_(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Ta(t,e){return t.hasOwnProperty(e)}function We(){}var o2=180/Math.PI;const tN=Object.freeze(Object.defineProperty({__proto__:null,HashMap:i2,RADIAN_TO_DEGREE:o2,assert:Ur,bind:Tt,clone:kt,concatArray:a2,createCanvas:Z3,createHashMap:At,createObject:Af,curry:ce,defaults:Kt,disableUserSelect:l_,each:I,eqNaN:af,extend:lt,filter:Ee,find:$3,guid:i_,hasOwn:Ta,indexOf:Wt,inherits:a_,isArray:ft,isArrayLike:ln,isBuiltInObject:Py,isDom:Ql,isFunction:It,isGradientObject:Tf,isImagePatternObject:e2,isNumber:ve,isObject:bt,isPrimitive:ql,isRegExp:Q3,isString:gt,isStringSafe:dd,isTypedArray:sn,keys:de,logError:Xd,map:St,merge:jt,mergeAll:X3,mixin:cr,noop:We,normalizeCssArray:o_,reduce:Gr,retrieve:Kl,retrieve2:Pt,retrieve3:Yl,setAsPrimitive:vd,slice:Zd,trim:wr},Symbol.toStringTag,{value:"Module"}));function No(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function eN(t,e){return t[0]=e[0],t[1]=e[1],t}function l2(t){return[t[0],t[1]]}function nN(t,e,n){return t[0]=e,t[1]=n,t}function ky(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function rN(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function s2(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s_(t){return Math.sqrt(u_(t))}var iN=s_;function u_(t){return t[0]*t[0]+t[1]*t[1]}var aN=u_;function oN(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function lN(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function sN(t,e){return t[0]*e[0]+t[1]*e[1]}function Wh(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function u2(t,e){var n=s_(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function gd(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var pd=gd;function f2(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var To=f2;function uN(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Qh(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 an(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function ha(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function da(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}const fN=Object.freeze(Object.defineProperty({__proto__:null,add:ky,applyTransform:an,clone:l2,copy:eN,create:No,dist:pd,distSquare:To,distance:gd,distanceSquare:f2,div:lN,dot:sN,len:s_,lenSquare:u_,length:iN,lengthSquare:aN,lerp:Qh,max:da,min:ha,mul:oN,negate:uN,normalize:u2,scale:Wh,scaleAndAdd:rN,set:nN,sub:s2},Symbol.toStringTag,{value:"Module"}));var xl=(function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t})(),cN=(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 xl(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,i=e.offsetY,a=r-this._x,l=i-this._y;this._x=r,this._y=i,n.drift(a,l,e),this.handler.dispatchToElement(new xl(n,e),"drag",e.event);var u=this.handler.findHover(r,i,n).target,f=this._dropTarget;this._dropTarget=u,n!==u&&(f&&u!==f&&this.handler.dispatchToElement(new xl(f,e),"dragleave",e.event),u&&u!==f&&this.handler.dispatchToElement(new xl(u,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new xl(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new xl(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),Tr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!e)return this;var l=this._$eventProcessor;n!=null&&l&&l.normalizeQuery&&(n=l.normalizeQuery(n)),a[e]||(a[e]=[]);for(var u=0;u<a[e].length;u++)if(a[e][u].h===r)return this;var f={h:r,query:n,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},c=a[e].length-1,d=a[e][c];return d&&d.callAtLast?a[e].splice(c,0,f):a[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 i=[],a=0,l=r[e].length;a<l;a++)r[e][a].h!==n&&i.push(r[e][a]);r[e]=i}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 i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var l=n.length,u=i.length,f=0;f<u;f++){var c=i[f];if(!(a&&a.filter&&c.query!=null&&!a.filter(e,c.query)))switch(l){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 a&&a.afterTrigger&&a.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 i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var l=n.length,u=n[l-1],f=i.length,c=0;c<f;c++){var d=i[c];if(!(a&&a.filter&&d.query!=null&&!a.filter(e,d.query)))switch(l){case 0:d.h.call(u);break;case 1:d.h.call(u,n[0]);break;case 2:d.h.call(u,n[0],n[1]);break;default:d.h.apply(u,n.slice(1,l-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),hN=Math.log(2);function Hy(t,e,n,r,i,a){var l=r+"-"+i,u=t.length;if(a.hasOwnProperty(l))return a[l];if(e===1){var f=Math.round(Math.log((1<<u)-1&~i)/hN);return t[n][f]}for(var c=r|1<<n,d=n+1;r&1<<d;)d++;for(var v=0,m=0,p=0;m<u;m++){var y=1<<m;y&i||(v+=(p%2?-1:1)*t[n][m]*Hy(t,e-1,d,c,i|y,a),p++)}return a[l]=v,v}function Zw(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={},i=Hy(n,8,0,0,0,r);if(i!==0){for(var a=[],l=0;l<8;l++)for(var u=0;u<8;u++)a[u]==null&&(a[u]=0),a[u]+=((l+u)%2?-1:1)*Hy(n,7,l===0?1:0,1<<l,1<<u,r)/i*e[l];return function(f,c,d){var v=c*a[6]+d*a[7]+1;f[0]=(c*a[0]+d*a[1]+a[2])/v,f[1]=(c*a[3]+d*a[4]+a[5])/v}}}var $w="___zrEVENTSAVED",tm=[];function dN(t,e,n,r,i){return Vy(tm,e,r,i,!0)&&Vy(t,n,tm[0],tm[1])}function Vy(t,e,n,r,i){if(e.getBoundingClientRect&&Dt.domSupported&&!c2(e)){var a=e[$w]||(e[$w]={}),l=vN(e,a),u=gN(l,a,i);if(u)return u(t,n,r),!0}return!1}function vN(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],a=0;a<4;a++){var l=document.createElement("div"),u=l.style,f=a%2,c=(a>>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",i[c]+":0",r[1-f]+":auto",i[1-c]+":auto",""].join("!important;"),t.appendChild(l),n.push(l)}return n}function gN(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],a=e.srcCoords,l=[],u=[],f=!0,c=0;c<4;c++){var d=t[c].getBoundingClientRect(),v=2*c,m=d.left,p=d.top;l.push(m,p),f=f&&a&&m===a[v]&&p===a[v+1],u.push(t[c].offsetLeft,t[c].offsetTop)}return f&&i?i:(e.srcCoords=l,e[r]=n?Zw(u,l):Zw(l,u))}function c2(t){return t.nodeName.toUpperCase()==="CANVAS"}var pN=/([&<>"'])/g,mN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function nn(t){return t==null?"":(t+"").replace(pN,function(e,n){return mN[n]})}var yN=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,em=[],_N=Dt.browser.firefox&&+Dt.browser.version.split(".")[0]<39;function Fy(t,e,n,r){return n=n||{},r?Ww(t,e,n):_N&&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):Ww(t,e,n),n}function Ww(t,e,n){if(Dt.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(c2(t)){var a=t.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(Vy(em,t,r,i)){n.zrX=em[0],n.zrY=em[1];return}}n.zrX=n.zrY=0}function f_(t){return t||window.event}function er(t,e,n){if(e=f_(e),e.zrX!=null)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var l=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];l&&Fy(t,l,e,n)}else{Fy(t,e,e,n);var a=SN(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var u=e.button;return e.which==null&&u!==void 0&&yN.test(e.type)&&(e.which=u&1?1:u&2?3:u&4?2:0),e}function SN(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var i=Math.abs(r!==0?r:n),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function xN(t,e,n,r){t.addEventListener(e,n,r)}function bN(t,e,n,r){t.removeEventListener(e,n,r)}var Jl=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Qw(t){return t.which===2||t.which===3}var wN=(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 i=e.touches;if(i){for(var a={points:[],touches:[],target:n,event:e},l=0,u=i.length;l<u;l++){var f=i[l],c=Fy(r,f,{});a.points.push([c.zrX,c.zrY]),a.touches.push(f)}this._track.push(a)}},t.prototype._recognize=function(e){for(var n in nm)if(nm.hasOwnProperty(n)){var r=nm[n](this._track,e);if(r)return r}},t})();function Kw(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function CN(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var nm={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Kw(r)/Kw(i);!isFinite(a)&&(a=1),e.pinchScale=a;var l=CN(r);return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}};function xa(){return[1,0,0,1,0,0]}function Df(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function c_(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 ba(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],a=e[0]*n[2]+e[2]*n[3],l=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]=i,t[2]=a,t[3]=l,t[4]=u,t[5]=f,t}function md(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 $d(t,e,n,r){r===void 0&&(r=[0,0]);var i=e[0],a=e[2],l=e[4],u=e[1],f=e[3],c=e[5],d=Math.sin(n),v=Math.cos(n);return t[0]=i*v+u*d,t[1]=-i*d+u*v,t[2]=a*v+f*d,t[3]=-a*d+v*f,t[4]=v*(l-r[0])+d*(c-r[1])+r[0],t[5]=v*(c-r[1])-d*(l-r[0])+r[1],t}function h2(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Rf(t,e){var n=e[0],r=e[2],i=e[4],a=e[1],l=e[3],u=e[5],f=n*l-a*r;return f?(f=1/f,t[0]=l*f,t[1]=-a*f,t[2]=-r*f,t[3]=n*f,t[4]=(r*u-l*i)*f,t[5]=(a*i-n*u)*f,t):null}function MN(t){var e=xa();return c_(e,t),e}const TN=Object.freeze(Object.defineProperty({__proto__:null,clone:MN,copy:c_,create:xa,identity:Df,invert:Rf,mul:ba,rotate:$d,scale:h2,translate:md},Symbol.toStringTag,{value:"Module"}));var Rt=(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,i){e.x=n.x+r.x*i,e.y=n.y+r.y*i},t.lerp=function(e,n,r,i){var a=1-i;e.x=a*n.x+i*r.x,e.y=a*n.y+i*r.y},t})(),lh=Math.min,sh=Math.max,Ka=new Rt,Ja=new Rt,to=new Rt,eo=new Rt,du=new Rt,vu=new Rt,Xt=(function(){function t(e,n,r,i){r<0&&(e=e+r,r=-r),i<0&&(n=n+i,i=-i),this.x=e,this.y=n,this.width=r,this.height=i}return t.prototype.union=function(e){var n=lh(e.x,this.x),r=lh(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=sh(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=sh(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,i=e.height/n.height,a=xa();return md(a,a,[-n.x,-n.y]),h2(a,a,[r,i]),md(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,a=r.x+r.width,l=r.y,u=r.y+r.height,f=e.x,c=e.x+e.width,d=e.y,v=e.y+e.height,m=!(a<f||c<i||u<d||v<l);if(n){var p=1/0,y=0,S=Math.abs(a-f),x=Math.abs(c-i),w=Math.abs(u-d),C=Math.abs(v-l),M=Math.min(S,x),A=Math.min(w,C);a<f||c<i?M>y&&(y=M,S<x?Rt.set(vu,-S,0):Rt.set(vu,x,0)):M<p&&(p=M,S<x?Rt.set(du,S,0):Rt.set(du,-x,0)),u<d||v<l?A>y&&(y=A,w<C?Rt.set(vu,0,-w):Rt.set(vu,0,C)):M<p&&(p=M,w<C?Rt.set(du,0,w):Rt.set(du,0,-C))}return n&&Rt.copy(n,m?du:vu),m},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 i=r[0],a=r[3],l=r[4],u=r[5];e.x=n.x*i+l,e.y=n.y*a+u,e.width=n.width*i,e.height=n.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ka.x=to.x=n.x,Ka.y=eo.y=n.y,Ja.x=eo.x=n.x+n.width,Ja.y=to.y=n.y+n.height,Ka.transform(r),eo.transform(r),Ja.transform(r),to.transform(r),e.x=lh(Ka.x,Ja.x,to.x,eo.x),e.y=lh(Ka.y,Ja.y,to.y,eo.y);var f=sh(Ka.x,Ja.x,to.x,eo.x),c=sh(Ka.y,Ja.y,to.y,eo.y);e.width=f-e.x,e.height=c-e.y},t})(),d2="silent";function AN(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:DN}}function DN(){Jl(this.event)}var RN=(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})(Tr),gu=(function(){function t(e,n){this.x=e,this.y=n}return t})(),EN=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],rm=new Xt(0,0,0,0),v2=(function(t){ut(e,t);function e(n,r,i,a,l){var u=t.call(this)||this;return u._hovered=new gu(0,0),u.storage=n,u.painter=r,u.painterRoot=a,u._pointerSize=l,i=i||new RN,u.proxy=null,u.setHandlerProxy(i),u._draggingMgr=new cN(u),u}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(I(EN,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,i=n.zrY,a=g2(this,r,i),l=this._hovered,u=l.target;u&&!u.__zr&&(l=this.findHover(l.x,l.y),u=l.target);var f=this._hovered=a?new gu(r,i):this.findHover(r,i),c=f.target,d=this.proxy;d.setCursor&&d.setCursor(c?c.cursor:"default"),u&&c!==u&&this.dispatchToElement(l,"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 gu(0,0)},e.prototype.dispatch=function(n,r){var i=this[n];i&&i.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,i){n=n||{};var a=n.target;if(!(a&&a.silent)){for(var l="on"+r,u=AN(r,n,i);a&&(a[l]&&(u.cancelBubble=!!a[l].call(a,u)),a.trigger(r,u),a=a.__hostTarget?a.__hostTarget:a.parent,!u.cancelBubble););u.cancelBubble||(this.trigger(r,u),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[l]=="function"&&f[l].call(f,u),f.trigger&&f.trigger(r,u)}))}},e.prototype.findHover=function(n,r,i){var a=this.storage.getDisplayList(),l=new gu(n,r);if(Jw(a,l,n,r,i),this._pointerSize&&!l.target){for(var u=[],f=this._pointerSize,c=f/2,d=new Xt(n-c,r-c,f,f),v=a.length-1;v>=0;v--){var m=a[v];m!==i&&!m.ignore&&!m.ignoreCoarsePointer&&(!m.parent||!m.parent.ignoreCoarsePointer)&&(rm.copy(m.getBoundingRect()),m.transform&&rm.applyTransform(m.transform),rm.intersect(d)&&u.push(m))}if(u.length)for(var p=4,y=Math.PI/12,S=Math.PI*2,x=0;x<c;x+=p)for(var w=0;w<S;w+=y){var C=n+x*Math.cos(w),M=r+x*Math.sin(w);if(Jw(u,l,C,M,i),l.target)return l}}return l},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new wN);var i=this._gestureMgr;r==="start"&&i.clear();var a=i.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),a){var l=a.type;n.gestureEvent=l;var u=new gu;u.target=a.target,this.dispatchToElement(u,l,a.event)}},e})(Tr);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){v2.prototype[t]=function(e){var n=e.zrX,r=e.zrY,i=g2(this,n,r),a,l;if((t!=="mouseup"||!i)&&(a=this.findHover(n,r),l=a.target),t==="mousedown")this._downEl=l,this._downPoint=[e.zrX,e.zrY],this._upEl=l;else if(t==="mouseup")this._upEl=l;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||pd(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function LN(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var l=r.getClipPath();if(l&&!l.contain(e,n))return!1}r.silent&&(i=!0);var u=r.__hostTarget;r=u||r.parent}return i?d2:!0}return!1}function Jw(t,e,n,r,i){for(var a=t.length-1;a>=0;a--){var l=t[a],u=void 0;if(l!==i&&!l.ignore&&(u=LN(l,n,r))&&(!e.topTarget&&(e.topTarget=l),u!==d2)){e.target=l;break}}}function g2(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var p2=32,pu=7;function ON(t){for(var e=0;t>=p2;)e|=t&1,t>>=1;return t+e}function tC(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i<n&&r(t[i],t[i-1])<0;)i++;zN(t,e,i)}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function zN(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function eC(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var a=t[r],l=e,u=r,f;l<u;)f=l+u>>>1,i(a,t[f])<0?u=f:l=f+1;var c=r-l;switch(c){case 3:t[l+3]=t[l+2];case 2:t[l+2]=t[l+1];case 1:t[l+1]=t[l];break;default:for(;c>0;)t[l+c]=t[l+c-1],c--}t[l]=a}}function im(t,e,n,r,i,a){var l=0,u=0,f=1;if(a(t,e[n+i])>0){for(u=r-i;f<u&&a(t,e[n+i+f])>0;)l=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u),l+=i,f+=i}else{for(u=i+1;f<u&&a(t,e[n+i-f])<=0;)l=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u);var c=l;l=i-f,f=i-c}for(l++;l<f;){var d=l+(f-l>>>1);a(t,e[n+d])>0?l=d+1:f=d}return f}function am(t,e,n,r,i,a){var l=0,u=0,f=1;if(a(t,e[n+i])<0){for(u=i+1;f<u&&a(t,e[n+i-f])<0;)l=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u);var c=l;l=i-f,f=i-c}else{for(u=r-i;f<u&&a(t,e[n+i+f])>=0;)l=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u),l+=i,f+=i}for(l++;l<f;){var d=l+(f-l>>>1);a(t,e[n+d])<0?f=d:l=d+1}return f}function NN(t,e){var n=pu,r,i,a=0,l=[];r=[],i=[];function u(p,y){r[a]=p,i[a]=y,a+=1}function f(){for(;a>1;){var p=a-2;if(p>=1&&i[p-1]<=i[p]+i[p+1]||p>=2&&i[p-2]<=i[p]+i[p-1])i[p-1]<i[p+1]&&p--;else if(i[p]>i[p+1])break;d(p)}}function c(){for(;a>1;){var p=a-2;p>0&&i[p-1]<i[p+1]&&p--,d(p)}}function d(p){var y=r[p],S=i[p],x=r[p+1],w=i[p+1];i[p]=S+w,p===a-3&&(r[p+1]=r[p+2],i[p+1]=i[p+2]),a--;var C=am(t[x],t,y,S,0,e);y+=C,S-=C,S!==0&&(w=im(t[y+S-1],t,x,w,w-1,e),w!==0&&(S<=w?v(y,S,x,w):m(y,S,x,w)))}function v(p,y,S,x){var w=0;for(w=0;w<y;w++)l[w]=t[p+w];var C=0,M=S,A=p;if(t[A++]=t[M++],--x===0){for(w=0;w<y;w++)t[A+w]=l[C+w];return}if(y===1){for(w=0;w<x;w++)t[A+w]=t[M+w];t[A+x]=l[C];return}for(var R=n,D,L,O;;){D=0,L=0,O=!1;do if(e(t[M],l[C])<0){if(t[A++]=t[M++],L++,D=0,--x===0){O=!0;break}}else if(t[A++]=l[C++],D++,L=0,--y===1){O=!0;break}while((D|L)<R);if(O)break;do{if(D=am(t[M],l,C,y,0,e),D!==0){for(w=0;w<D;w++)t[A+w]=l[C+w];if(A+=D,C+=D,y-=D,y<=1){O=!0;break}}if(t[A++]=t[M++],--x===0){O=!0;break}if(L=im(l[C],t,M,x,0,e),L!==0){for(w=0;w<L;w++)t[A+w]=t[M+w];if(A+=L,M+=L,x-=L,x===0){O=!0;break}}if(t[A++]=l[C++],--y===1){O=!0;break}R--}while(D>=pu||L>=pu);if(O)break;R<0&&(R=0),R+=2}if(n=R,n<1&&(n=1),y===1){for(w=0;w<x;w++)t[A+w]=t[M+w];t[A+x]=l[C]}else{if(y===0)throw new Error;for(w=0;w<y;w++)t[A+w]=l[C+w]}}function m(p,y,S,x){var w=0;for(w=0;w<x;w++)l[w]=t[S+w];var C=p+y-1,M=x-1,A=S+x-1,R=0,D=0;if(t[A--]=t[C--],--y===0){for(R=A-(x-1),w=0;w<x;w++)t[R+w]=l[w];return}if(x===1){for(A-=y,C-=y,D=A+1,R=C+1,w=y-1;w>=0;w--)t[D+w]=t[R+w];t[A]=l[M];return}for(var L=n;;){var O=0,B=0,H=!1;do if(e(l[M],t[C])<0){if(t[A--]=t[C--],O++,B=0,--y===0){H=!0;break}}else if(t[A--]=l[M--],B++,O=0,--x===1){H=!0;break}while((O|B)<L);if(H)break;do{if(O=y-am(l[M],t,p,y,y-1,e),O!==0){for(A-=O,C-=O,y-=O,D=A+1,R=C+1,w=O-1;w>=0;w--)t[D+w]=t[R+w];if(y===0){H=!0;break}}if(t[A--]=l[M--],--x===1){H=!0;break}if(B=x-im(t[C],l,0,x,x-1,e),B!==0){for(A-=B,M-=B,x-=B,D=A+1,R=M+1,w=0;w<B;w++)t[D+w]=l[R+w];if(x<=1){H=!0;break}}if(t[A--]=t[C--],--y===0){H=!0;break}L--}while(O>=pu||B>=pu);if(H)break;L<0&&(L=0),L+=2}if(n=L,n<1&&(n=1),x===1){for(A-=y,C-=y,D=A+1,R=C+1,w=y-1;w>=0;w--)t[D+w]=t[R+w];t[A]=l[M]}else{if(x===0)throw new Error;for(R=A-(x-1),w=0;w<x;w++)t[R+w]=l[w]}}return{mergeRuns:f,forceMergeRuns:c,pushRun:u}}function Kh(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var a=0;if(i<p2){a=tC(t,n,r,e),eC(t,n,r,n+a,e);return}var l=NN(t,e),u=ON(i);do{if(a=tC(t,n,r,e),a<u){var f=i;f>u&&(f=u),eC(t,n,n+f,n+a,e),a=f}l.pushRun(n,a),l.mergeRuns(),i-=a,n+=a}while(i!==0);l.forceMergeRuns()}}var Pn=1,Pu=2,kl=4,nC=!1;function om(){nC||(nC=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function rC(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var IN=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rC}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,i=0,a=n.length;i<a;i++)this._updateAndAddDisplayable(n[i],null,e);r.length=this._displayListLen,Kh(r,rC)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)n=null;else if(i){n?n=n.slice():n=[];for(var a=i,l=e;a;)a.parent=l,a.updateTransform(),n.push(a),l=a,a=a.getClipPath()}if(e.childrenRef){for(var u=e.childrenRef(),f=0;f<u.length;f++){var c=u[f];e.__dirty&&(c.__dirty|=Pn),this._updateAndAddDisplayable(c,n,r)}e.__dirty=0}else{var d=e;n&&n.length?d.__clipPaths=n:d.__clipPaths&&d.__clipPaths.length>0&&(d.__clipPaths=[]),isNaN(d.z)&&(om(),d.z=0),isNaN(d.z2)&&(om(),d.z2=0),isNaN(d.zlevel)&&(om(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,n,r);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,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 i=Wt(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),yd;yd=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 Yu={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-Yu.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?Yu.bounceIn(t*2)*.5:Yu.bounceOut(t*2-1)*.5+.5}},uh=Math.pow,wa=Math.sqrt,_d=1e-8,m2=1e-4,iC=wa(3),fh=1/3,kr=No(),ir=No(),Xl=No();function va(t){return t>-_d&&t<_d}function y2(t){return t>_d||t<-_d}function rn(t,e,n,r,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*r+3*a*n)}function aC(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)}function _2(t,e,n,r,i,a){var l=r+3*(e-n)-t,u=3*(n-e*2+t),f=3*(e-t),c=t-i,d=u*u-3*l*f,v=u*f-9*l*c,m=f*f-3*u*c,p=0;if(va(d)&&va(v))if(va(u))a[0]=0;else{var y=-f/u;y>=0&&y<=1&&(a[p++]=y)}else{var S=v*v-4*d*m;if(va(S)){var x=v/d,y=-u/l+x,w=-x/2;y>=0&&y<=1&&(a[p++]=y),w>=0&&w<=1&&(a[p++]=w)}else if(S>0){var C=wa(S),M=d*u+1.5*l*(-v+C),A=d*u+1.5*l*(-v-C);M<0?M=-uh(-M,fh):M=uh(M,fh),A<0?A=-uh(-A,fh):A=uh(A,fh);var y=(-u-(M+A))/(3*l);y>=0&&y<=1&&(a[p++]=y)}else{var R=(2*d*u-3*l*v)/(2*wa(d*d*d)),D=Math.acos(R)/3,L=wa(d),O=Math.cos(D),y=(-u-2*L*O)/(3*l),w=(-u+L*(O+iC*Math.sin(D)))/(3*l),B=(-u+L*(O-iC*Math.sin(D)))/(3*l);y>=0&&y<=1&&(a[p++]=y),w>=0&&w<=1&&(a[p++]=w),B>=0&&B<=1&&(a[p++]=B)}}return p}function S2(t,e,n,r,i){var a=6*n-12*e+6*t,l=9*e+3*r-3*t-9*n,u=3*e-3*t,f=0;if(va(l)){if(y2(a)){var c=-u/a;c>=0&&c<=1&&(i[f++]=c)}}else{var d=a*a-4*l*u;if(va(d))i[0]=-a/(2*l);else if(d>0){var v=wa(d),c=(-a+v)/(2*l),m=(-a-v)/(2*l);c>=0&&c<=1&&(i[f++]=c),m>=0&&m<=1&&(i[f++]=m)}}return f}function Sd(t,e,n,r,i,a){var l=(e-t)*i+t,u=(n-e)*i+e,f=(r-n)*i+n,c=(u-l)*i+l,d=(f-u)*i+u,v=(d-c)*i+c;a[0]=t,a[1]=l,a[2]=c,a[3]=v,a[4]=v,a[5]=d,a[6]=f,a[7]=r}function BN(t,e,n,r,i,a,l,u,f,c,d){var v,m=.005,p=1/0,y,S,x,w;kr[0]=f,kr[1]=c;for(var C=0;C<1;C+=.05)ir[0]=rn(t,n,i,l,C),ir[1]=rn(e,r,a,u,C),x=To(kr,ir),x<p&&(v=C,p=x);p=1/0;for(var M=0;M<32&&!(m<m2);M++)y=v-m,S=v+m,ir[0]=rn(t,n,i,l,y),ir[1]=rn(e,r,a,u,y),x=To(ir,kr),y>=0&&x<p?(v=y,p=x):(Xl[0]=rn(t,n,i,l,S),Xl[1]=rn(e,r,a,u,S),w=To(Xl,kr),S<=1&&w<p?(v=S,p=w):m*=.5);return wa(p)}function PN(t,e,n,r,i,a,l,u,f){for(var c=t,d=e,v=0,m=1/f,p=1;p<=f;p++){var y=p*m,S=rn(t,n,i,l,y),x=rn(e,r,a,u,y),w=S-c,C=x-d;v+=Math.sqrt(w*w+C*C),c=S,d=x}return v}function _n(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function oC(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function kN(t,e,n,r,i){var a=t-2*e+n,l=2*(e-t),u=t-r,f=0;if(va(a)){if(y2(l)){var c=-u/l;c>=0&&c<=1&&(i[f++]=c)}}else{var d=l*l-4*a*u;if(va(d)){var c=-l/(2*a);c>=0&&c<=1&&(i[f++]=c)}else if(d>0){var v=wa(d),c=(-l+v)/(2*a),m=(-l-v)/(2*a);c>=0&&c<=1&&(i[f++]=c),m>=0&&m<=1&&(i[f++]=m)}}return f}function x2(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function xd(t,e,n,r,i){var a=(e-t)*r+t,l=(n-e)*r+e,u=(l-a)*r+a;i[0]=t,i[1]=a,i[2]=u,i[3]=u,i[4]=l,i[5]=n}function HN(t,e,n,r,i,a,l,u,f){var c,d=.005,v=1/0;kr[0]=l,kr[1]=u;for(var m=0;m<1;m+=.05){ir[0]=_n(t,n,i,m),ir[1]=_n(e,r,a,m);var p=To(kr,ir);p<v&&(c=m,v=p)}v=1/0;for(var y=0;y<32&&!(d<m2);y++){var S=c-d,x=c+d;ir[0]=_n(t,n,i,S),ir[1]=_n(e,r,a,S);var p=To(ir,kr);if(S>=0&&p<v)c=S,v=p;else{Xl[0]=_n(t,n,i,x),Xl[1]=_n(e,r,a,x);var w=To(Xl,kr);x<=1&&w<v?(c=x,v=w):d*=.5}}return wa(v)}function VN(t,e,n,r,i,a,l){for(var u=t,f=e,c=0,d=1/l,v=1;v<=l;v++){var m=v*d,p=_n(t,n,i,m),y=_n(e,r,a,m),S=p-u,x=y-f;c+=Math.sqrt(S*S+x*x),u=p,f=y}return c}var FN=/cubic-bezier\(([0-9,\.e ]+)\)/;function b2(t){var e=t&&FN.exec(t);if(e){var n=e[1].split(","),r=+wr(n[0]),i=+wr(n[1]),a=+wr(n[2]),l=+wr(n[3]);if(isNaN(r+i+a+l))return;var u=[];return function(f){return f<=0?0:f>=1?1:_2(0,r,a,1,f,u)&&rn(0,i,l,1,u[0])}}}var GN=(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||We,this.ondestroy=e.ondestroy||We,this.onrestart=e.onrestart||We,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,i=e-this._startTime-this._pausedTime,a=i/r;a<0&&(a=0),a=Math.min(a,1);var l=this.easingFunc,u=l?l(a):a;if(this.onframe(u),a===1)if(this.loop){var f=i%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=It(e)?e:Yu[e]||b2(e)},t})(),w2=(function(){function t(e){this.value=e}return t})(),UN=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new w2(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})(),Ef=(function(){function t(e){this._list=new UN,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,i=this._map,a=null;if(i[e]==null){var l=r.len(),u=this._lastRemovedEntry;if(l>=this._maxSize&&l>0){var f=r.head;r.remove(f),delete i[f.key],a=f.value,this._lastRemovedEntry=f}u?u.value=n:u=new w2(n),u.key=e,r.insertEntry(u),i[e]=u}return a},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})(),lC={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 Cr(t){return t=Math.round(t),t<0?0:t>255?255:t}function jN(t){return t=Math.round(t),t<0?0:t>360?360:t}function of(t){return t<0?0:t>1?1:t}function lm(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Cr(parseFloat(e)/100*255):Cr(parseInt(e,10))}function Ao(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?of(parseFloat(e)/100):of(parseFloat(e))}function sm(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 ga(t,e,n){return t+(e-t)*n}function tr(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function Gy(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var C2=new Ef(20),ch=null;function bl(t,e){ch&&Gy(ch,e),ch=C2.put(t,ch||e.slice())}function kn(t,e){if(t){e=e||[];var n=C2.get(t);if(n)return Gy(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in lC)return Gy(e,lC[r]),bl(t,e),e;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){tr(e,0,0,0,1);return}return tr(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),bl(t,e),e}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){tr(e,0,0,0,1);return}return tr(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),bl(t,e),e}return}var l=r.indexOf("("),u=r.indexOf(")");if(l!==-1&&u+1===i){var f=r.substr(0,l),c=r.substr(l+1,u-(l+1)).split(","),d=1;switch(f){case"rgba":if(c.length!==4)return c.length===3?tr(e,+c[0],+c[1],+c[2],1):tr(e,0,0,0,1);d=Ao(c.pop());case"rgb":if(c.length>=3)return tr(e,lm(c[0]),lm(c[1]),lm(c[2]),c.length===3?d:Ao(c[3])),bl(t,e),e;tr(e,0,0,0,1);return;case"hsla":if(c.length!==4){tr(e,0,0,0,1);return}return c[3]=Ao(c[3]),Uy(c,e),bl(t,e),e;case"hsl":if(c.length!==3){tr(e,0,0,0,1);return}return Uy(c,e),bl(t,e),e;default:return}}tr(e,0,0,0,1)}}function Uy(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Ao(t[1]),i=Ao(t[2]),a=i<=.5?i*(r+1):i+r-i*r,l=i*2-a;return e=e||[],tr(e,Cr(sm(l,a,n+1/3)*255),Cr(sm(l,a,n)*255),Cr(sm(l,a,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function YN(t){if(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),a=Math.max(e,n,r),l=a-i,u=(a+i)/2,f,c;if(l===0)f=0,c=0;else{u<.5?c=l/(a+i):c=l/(2-a-i);var d=((a-e)/6+l/2)/l,v=((a-n)/6+l/2)/l,m=((a-r)/6+l/2)/l;e===a?f=m-v:n===a?f=1/3+d-m:r===a&&(f=2/3+v-d),f<0&&(f+=1),f>1&&(f-=1)}var p=[f*360,c,u];return t[3]!=null&&p.push(t[3]),p}}function jy(t,e){var n=kn(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 Ea(n,n.length===4?"rgba":"rgb")}}function qN(t){var e=kn(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function M2(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){n=n||[];var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=e[i],u=e[a],f=r-i;return n[0]=Cr(ga(l[0],u[0],f)),n[1]=Cr(ga(l[1],u[1],f)),n[2]=Cr(ga(l[2],u[2],f)),n[3]=of(ga(l[3],u[3],f)),n}}var XN=M2;function T2(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=kn(e[i]),u=kn(e[a]),f=r-i,c=Ea([Cr(ga(l[0],u[0],f)),Cr(ga(l[1],u[1],f)),Cr(ga(l[2],u[2],f)),of(ga(l[3],u[3],f))],"rgba");return n?{color:c,leftIndex:i,rightIndex:a,value:r}:c}}var ZN=T2;function $N(t,e,n,r){var i=kn(t);if(t)return i=YN(i),e!=null&&(i[0]=jN(e)),n!=null&&(i[1]=Ao(n)),r!=null&&(i[2]=Ao(r)),Ea(Uy(i),"rgba")}function WN(t,e){var n=kn(t);if(n&&e!=null)return n[3]=of(e),Ea(n,"rgba")}function Ea(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 lf(t,e){var n=kn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function QN(){return Ea([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var sC=new Ef(100);function Yy(t){if(gt(t)){var e=sC.get(t);return e||(e=jy(t,-.1),sC.put(t,e)),e}else if(Tf(t)){var n=lt({},t);return n.colorStops=St(t.colorStops,function(r){return{offset:r.offset,color:jy(r.color,-.1)}}),n}return t}const KN=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:M2,fastMapToColor:XN,lerp:T2,lift:jy,liftColor:Yy,lum:lf,mapToColor:ZN,modifyAlpha:WN,modifyHSL:$N,parse:kn,random:QN,stringify:Ea,toHex:qN},Symbol.toStringTag,{value:"Module"}));function JN(t){return t.type==="linear"}function t5(t){return t.type==="radial"}(function(){return Dt.hasGlobalWindow&&It(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 qy=Array.prototype.slice;function xi(t,e,n){return(e-t)*n+t}function um(t,e,n,r){for(var i=e.length,a=0;a<i;a++)t[a]=xi(e[a],n[a],r);return t}function e5(t,e,n,r){for(var i=e.length,a=i&&e[0].length,l=0;l<i;l++){t[l]||(t[l]=[]);for(var u=0;u<a;u++)t[l][u]=xi(e[l][u],n[l][u],r)}return t}function hh(t,e,n,r){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+n[a]*r;return t}function uC(t,e,n,r){for(var i=e.length,a=i&&e[0].length,l=0;l<i;l++){t[l]||(t[l]=[]);for(var u=0;u<a;u++)t[l][u]=e[l][u]+n[l][u]*r}return t}function n5(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,a=Math.min(n,r),l=i[a-1]||{color:[0,0,0,0],offset:0},u=a;u<Math.max(n,r);u++)i.push({offset:l.offset,color:l.color.slice()})}function r5(t,e,n){var r=t,i=e;if(!(!r.push||!i.push)){var a=r.length,l=i.length;if(a!==l){var u=a>l;if(u)r.length=l;else for(var f=a;f<l;f++)r.push(n===1?i[f]:qy.call(i[f]))}for(var c=r[0]&&r[0].length,f=0;f<r.length;f++)if(n===1)isNaN(r[f])&&(r[f]=i[f]);else for(var d=0;d<c;d++)isNaN(r[f][d])&&(r[f][d]=i[f][d])}}function Jh(t){if(ln(t)){var e=t.length;if(ln(t[0])){for(var n=[],r=0;r<e;r++)n.push(qy.call(t[r]));return n}return qy.call(t)}return t}function td(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 i5(t){return ln(t&&t[0])?2:1}var dh=0,ed=1,A2=2,ku=3,Xy=4,Zy=5,fC=6;function cC(t){return t===Xy||t===Zy}function vh(t){return t===ed||t===A2}var mu=[0,0,0,0],a5=(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 i=this.keyframes,a=i.length,l=!1,u=fC,f=n;if(ln(n)){var c=i5(n);u=c,(c===1&&!ve(n[0])||c===2&&!ve(n[0][0]))&&(l=!0)}else if(ve(n)&&!af(n))u=dh;else if(gt(n))if(!isNaN(+n))u=dh;else{var d=kn(n);d&&(f=d,u=ku)}else if(Tf(n)){var v=lt({},f);v.colorStops=St(n.colorStops,function(p){return{offset:p.offset,color:kn(p.color)}}),JN(n)?u=Xy:t5(n)&&(u=Zy),f=v}a===0?this.valType=u:(u!==this.valType||u===fC)&&(l=!0),this.discrete=this.discrete||l;var m={time:e,value:f,rawValue:n,percent:0};return r&&(m.easing=r,m.easingFunc=It(r)?r:Yu[r]||b2(r)),i.push(m),m},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(S,x){return S.time-x.time});for(var i=this.valType,a=r.length,l=r[a-1],u=this.discrete,f=vh(i),c=cC(i),d=0;d<a;d++){var v=r[d],m=v.value,p=l.value;v.percent=v.time/e,u||(f&&d!==a-1?r5(m,p,i):c&&n5(m.colorStops,p.colorStops))}if(!u&&i!==Zy&&n&&this.needsAnimate()&&n.needsAnimate()&&i===n.valType&&!n._finished){this._additiveTrack=n;for(var y=r[0].value,d=0;d<a;d++)i===dh?r[d].additiveValue=r[d].value-y:i===ku?r[d].additiveValue=hh([],r[d].value,y,-1):vh(i)&&(r[d].additiveValue=i===ed?hh([],r[d].value,y,-1):uC([],r[d].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,i=r?"additiveValue":"value",a=this.valType,l=this.keyframes,u=l.length,f=this.propName,c=a===ku,d,v=this._lastFr,m=Math.min,p,y;if(u===1)p=y=l[0];else{if(n<0)d=0;else if(n<this._lastFrP){var S=m(v+1,u-1);for(d=S;d>=0&&!(l[d].percent<=n);d--);d=m(d,u-2)}else{for(d=v;d<u&&!(l[d].percent>n);d++);d=m(d-1,u-2)}y=l[d+1],p=l[d]}if(p&&y){this._lastFr=d,this._lastFrP=n;var x=y.percent-p.percent,w=x===0?1:m((n-p.percent)/x,1);y.easingFunc&&(w=y.easingFunc(w));var C=r?this._additiveValue:c?mu:e[f];if((vh(a)||c)&&!C&&(C=this._additiveValue=[]),this.discrete)e[f]=w<1?p.rawValue:y.rawValue;else if(vh(a))a===ed?um(C,p[i],y[i],w):e5(C,p[i],y[i],w);else if(cC(a)){var M=p[i],A=y[i],R=a===Xy;e[f]={type:R?"linear":"radial",x:xi(M.x,A.x,w),y:xi(M.y,A.y,w),colorStops:St(M.colorStops,function(L,O){var B=A.colorStops[O];return{offset:xi(L.offset,B.offset,w),color:td(um([],L.color,B.color,w))}}),global:A.global},R?(e[f].x2=xi(M.x2,A.x2,w),e[f].y2=xi(M.y2,A.y2,w)):e[f].r=xi(M.r,A.r,w)}else if(c)um(C,p[i],y[i],w),r||(e[f]=td(C));else{var D=xi(p[i],y[i],w);r?this._additiveValue=D:e[f]=D}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,i=this._additiveValue;n===dh?e[r]=e[r]+i:n===ku?(kn(e[r],mu),hh(mu,mu,i,1),e[r]=td(mu)):n===ed?hh(e[r],e[r],i,1):n===A2&&uC(e[r],e[r],i,1)},t})(),h_=(function(){function t(e,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&i){Xd("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,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,de(n),r)},t.prototype.whenWithKeys=function(e,n,r,i){for(var a=this._tracks,l=0;l<r.length;l++){var u=r[l],f=a[u];if(!f){f=a[u]=new a5(u);var c=void 0,d=this._getAdditiveTrack(u);if(d){var v=d.keyframes,m=v[v.length-1];c=m&&m.value,d.valType===ku&&c&&(c=td(c))}else c=this._target[u];if(c==null)continue;e>0&&f.addKeyframe(0,Jh(c),i),this._trackKeys.push(u)}f.addKeyframe(e,Jh(n[u]),i)}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 i=0;i<r.length;i++){var a=r[i].getTrack(e);a&&(n=a)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var l=this._trackKeys[a],u=this._tracks[l],f=this._getAdditiveTrack(l),c=u.keyframes,d=c.length;if(u.prepare(i,f),u.needsAnimate())if(!this._allowDiscrete&&u.discrete){var v=c[d-1];v&&(n._target[u.propName]=v.rawValue),u.setFinished()}else r.push(u)}if(r.length||this._force){var m=new GN({life:i,loop:this._loop,delay:this._delay||0,onframe:function(p){n._started=2;var y=n._additiveAnimators;if(y){for(var S=!1,x=0;x<y.length;x++)if(y[x]._clip){S=!0;break}S||(n._additiveAnimators=null)}for(var x=0;x<r.length;x++)r[x].step(n._target,p);var w=n._onframeCbs;if(w)for(var x=0;x<w.length;x++)w[x](n._target,p)},ondestroy:function(){n._doneCallback()}});this._clip=m,this.animation&&this.animation.addClip(m),e&&m.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 St(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,i=this._trackKeys,a=0;a<e.length;a++){var l=r[e[a]];l&&!l.isFinished()&&(n?l.step(this._target,1):this._started===1&&l.step(this._target,0),l.setFinished())}for(var u=!0,a=0;a<i.length;a++)if(!r[i[a]].isFinished()){u=!1;break}return u&&this._abortedCallback(),u},t.prototype.saveTo=function(e,n,r){if(e){n=n||this._trackKeys;for(var i=0;i<n.length;i++){var a=n[i],l=this._tracks[a];if(!(!l||l.isFinished())){var u=l.keyframes,f=u[r?0:u.length-1];f&&(e[a]=Jh(f.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||de(e);for(var r=0;r<n.length;r++){var i=n[r],a=this._tracks[i];if(a){var l=a.keyframes;if(l.length>1){var u=l.pop();a.addKeyframe(u.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})();function Fl(){return new Date().getTime()}var o5=(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,i=n.next;r?r.next=i:this._head=i,i?i.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=Fl()-this._pausedTime,i=r-this._time,a=this._head;a;){var l=a.next,u=a.step(r,i);u&&(a.ondestroy(),this.removeClip(a)),a=l}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(yd(r),!n._paused&&n.update())}yd(r)},e.prototype.start=function(){this._running||(this._time=Fl(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Fl(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Fl()-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 i=new h_(n,r.loop);return this.addAnimator(i),i},e})(Tr),l5=300,fm=Dt.domSupported,cm=(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=St(t,function(i){var a=i.replace("mouse","pointer");return n.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:r}})(),hC={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},dC=!1;function $y(t){var e=t.pointerType;return e==="pen"||e==="touch"}function s5(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 hm(t){t&&(t.zrByTouch=!0)}function u5(t,e){return er(t.dom,new f5(t,e),!0)}function D2(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 f5=(function(){function t(e,n){this.stopPropagation=We,this.stopImmediatePropagation=We,this.preventDefault=We,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t})(),xr={mousedown:function(t){t=er(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=er(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=er(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=er(this.dom,t);var e=t.toElement||t.relatedTarget;D2(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){dC=!0,t=er(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){dC||(t=er(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=er(this.dom,t),hm(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),xr.mousemove.call(this,t),xr.mousedown.call(this,t)},touchmove:function(t){t=er(this.dom,t),hm(t),this.handler.processGesture(t,"change"),xr.mousemove.call(this,t)},touchend:function(t){t=er(this.dom,t),hm(t),this.handler.processGesture(t,"end"),xr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<l5&&xr.click.call(this,t)},pointerdown:function(t){xr.mousedown.call(this,t)},pointermove:function(t){$y(t)||xr.mousemove.call(this,t)},pointerup:function(t){xr.mouseup.call(this,t)},pointerout:function(t){$y(t)||xr.mouseout.call(this,t)}};I(["click","dblclick","contextmenu"],function(t){xr[t]=function(e){e=er(this.dom,e),this.trigger(t,e)}});var Wy={pointermove:function(t){$y(t)||Wy.mousemove.call(this,t)},pointerup:function(t){Wy.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 c5(t,e){var n=e.domHandlers;Dt.pointerEventsSupported?I(cm.pointer,function(r){nd(e,r,function(i){n[r].call(t,i)})}):(Dt.touchEventsSupported&&I(cm.touch,function(r){nd(e,r,function(i){n[r].call(t,i),s5(e)})}),I(cm.mouse,function(r){nd(e,r,function(i){i=f_(i),e.touching||n[r].call(t,i)})}))}function h5(t,e){Dt.pointerEventsSupported?I(hC.pointer,n):Dt.touchEventsSupported||I(hC.mouse,n);function n(r){function i(a){a=f_(a),D2(t,a.target)||(a=u5(t,a),e.domHandlers[r].call(t,a))}nd(e,r,i,{capture:!0})}}function nd(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,xN(t.domTarget,e,n,r)}function dm(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&bN(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var vC=(function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t})(),d5=(function(t){ut(e,t);function e(n,r){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=n,i.painterRoot=r,i._localHandlerScope=new vC(n,xr),fm&&(i._globalHandlerScope=new vC(document,Wy)),c5(i,i._localHandlerScope),i}return e.prototype.dispose=function(){dm(this._localHandlerScope),fm&&dm(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,fm&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?h5(this,r):dm(r)}},e})(Tr),R2=1;Dt.hasGlobalWindow&&(R2=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var bd=R2,Qy=.4,Ky="#333",Jy="#ccc",v5="#eee",gC=Df,pC=5e-5;function no(t){return t>pC||t<-pC}var ro=[],wl=[],vm=xa(),gm=Math.abs,d_=(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 no(this.rotation)||no(this.x)||no(this.y)||no(this.scaleX-1)||no(this.scaleY-1)||no(this.skewX)||no(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(gC(r),this.invTransform=null);return}r=r||xa(),n?this.getLocalTransform(r):gC(r),e&&(n?ba(r,e,r):c_(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(ro);var r=ro[0]<0?-1:1,i=ro[1]<0?-1:1,a=((ro[0]-r)*n+r)/ro[0]||0,l=((ro[1]-i)*n+i)/ro[1]||0;e[0]*=a,e[1]*=a,e[2]*=l,e[3]*=l}this.invTransform=this.invTransform||xa(),Rf(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],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(a),n=Math.sqrt(n),this.skewX=a,this.skewY=0,this.rotation=-i,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||xa(),ba(wl,e.invTransform,n),n=wl);var r=this.originX,i=this.originY;(r||i)&&(vm[4]=r,vm[5]=i,ba(wl,n,vm),wl[4]-=r,wl[5]-=i,n=wl),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],i=this.invTransform;return i&&an(r,r,i),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],i=this.transform;return i&&an(r,r,i),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&gm(e[0]-1)>1e-10&&gm(e[3]-1)>1e-10?Math.sqrt(gm(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){g5(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,i=e.originY||0,a=e.scaleX,l=e.scaleY,u=e.anchorX,f=e.anchorY,c=e.rotation||0,d=e.x,v=e.y,m=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(r||i||u||f){var y=r+u,S=i+f;n[4]=-y*a-m*S*l,n[5]=-S*l-p*y*a}else n[4]=n[5]=0;return n[0]=a,n[3]=l,n[1]=p*a,n[2]=m*l,c&&$d(n,n,c),n[4]+=r+d,n[5]+=i+v,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})(),sf=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function g5(t,e){for(var n=0;n<sf.length;n++){var r=sf[n];t[r]=e[r]}}var mC={};function Hn(t,e){e=e||zo;var n=mC[e];n||(n=mC[e]=new Ef(500));var r=n.get(t);return r==null&&(r=Di.measureText(t,e).width,n.put(t,r)),r}function yC(t,e,n,r){var i=Hn(t,e),a=g_(e),l=Hu(0,i,n),u=Hl(0,a,r),f=new Xt(l,u,i,a);return f}function v_(t,e,n,r){var i=((t||"")+"").split(`
63
+ `),a=i.length;if(a===1)return yC(i[0],e,n,r);for(var l=new Xt(0,0,0,0),u=0;u<i.length;u++){var f=yC(i[u],e,n,r);u===0?l.copy(f):l.union(f)}return l}function Hu(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function Hl(t,e,n){return n==="middle"?t-=e/2:n==="bottom"&&(t-=e),t}function g_(t){return Hn("国",t)}function Aa(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function wd(t,e,n){var r=e.position||"inside",i=e.distance!=null?e.distance:5,a=n.height,l=n.width,u=a/2,f=n.x,c=n.y,d="left",v="top";if(r instanceof Array)f+=Aa(r[0],n.width),c+=Aa(r[1],n.height),d=null,v=null;else switch(r){case"left":f-=i,c+=u,d="right",v="middle";break;case"right":f+=i+l,c+=u,v="middle";break;case"top":f+=l/2,c-=i,d="center",v="bottom";break;case"bottom":f+=l/2,c+=a+i,d="center";break;case"inside":f+=l/2,c+=u,d="center",v="middle";break;case"insideLeft":f+=i,c+=u,v="middle";break;case"insideRight":f+=l-i,c+=u,d="right",v="middle";break;case"insideTop":f+=l/2,c+=i,d="center";break;case"insideBottom":f+=l/2,c+=a-i,d="center",v="bottom";break;case"insideTopLeft":f+=i,c+=i;break;case"insideTopRight":f+=l-i,c+=i,d="right";break;case"insideBottomLeft":f+=i,c+=a-i,v="bottom";break;case"insideBottomRight":f+=l-i,c+=a-i,d="right",v="bottom";break}return t=t||{},t.x=f,t.y=c,t.align=d,t.verticalAlign=v,t}var pm="__zr_normal__",mm=sf.concat(["ignore"]),p5=Gr(sf,function(t,e){return t[e]=!0,t},{ignore:!1}),Cl={},m5=new Xt(0,0,0,0),Wd=(function(){function t(e){this.id=i_(),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 i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[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,i=r.local,a=n.innerTransformable,l=void 0,u=void 0,f=!1;a.parent=i?this:null;var c=!1;if(a.copyTransform(n),r.position!=null){var d=m5;r.layoutRect?d.copy(r.layoutRect):d.copy(this.getBoundingRect()),i||d.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Cl,r,d):wd(Cl,r,d),a.x=Cl.x,a.y=Cl.y,l=Cl.align,u=Cl.verticalAlign;var v=r.origin;if(v&&r.rotation!=null){var m=void 0,p=void 0;v==="center"?(m=d.width*.5,p=d.height*.5):(m=Aa(v[0],d.width),p=Aa(v[1],d.height)),c=!0,a.originX=-a.x+m+(i?0:d.x),a.originY=-a.y+p+(i?0:d.y)}}r.rotation!=null&&(a.rotation=r.rotation);var y=r.offset;y&&(a.x+=y[0],a.y+=y[1],c||(a.originX=-y[0],a.originY=-y[1]));var S=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,x=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),w=void 0,C=void 0,M=void 0;S&&this.canBeInsideText()?(w=r.insideFill,C=r.insideStroke,(w==null||w==="auto")&&(w=this.getInsideTextFill()),(C==null||C==="auto")&&(C=this.getInsideTextStroke(w),M=!0)):(w=r.outsideFill,C=r.outsideStroke,(w==null||w==="auto")&&(w=this.getOutsideFill()),(C==null||C==="auto")&&(C=this.getOutsideStroke(w),M=!0)),w=w||"#000",(w!==x.fill||C!==x.stroke||M!==x.autoStroke||l!==x.align||u!==x.verticalAlign)&&(f=!0,x.fill=w,x.stroke=C,x.autoStroke=M,x.align=l,x.verticalAlign=u,n.setDefaultTextStyle(x)),n.__dirty|=Pn,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()?Jy:Ky},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&kn(n);r||(r=[255,255,255,1]);for(var i=r[3],a=this.__zr.isDarkMode(),l=0;l<3;l++)r[l]=r[l]*i+(a?0:255)*(1-i);return r[3]=1,Ea(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||{},lt(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(bt(e))for(var r=e,i=de(r),a=0;a<i.length;a++){var l=i[a];this.attrKV(l,e[l])}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 i=this.animators[r],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==pm)){var l=i.targetName,u=l?n[l]:n;i.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,mm)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var i=0;i<r.length;i++){var a=r[i];e[a]!=null&&!(a in n)&&(n[a]=this[a])}},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(pm,!1,e)},t.prototype.useState=function(e,n,r,i){var a=e===pm,l=this.hasState();if(!(!l&&a)){var u=this.currentStates,f=this.stateTransition;if(!(Wt(u,e)>=0&&(n||u.length===1))){var c;if(this.stateProxy&&!a&&(c=this.stateProxy(e)),c||(c=this.states&&this.states[e]),!c&&!a){Xd("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(c);var d=!!(c&&c.hoverLayer||i);d&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,c,this._normalState,n,!r&&!this.__inHover&&f&&f.duration>0,f);var v=this._textContent,m=this._textGuide;return v&&v.useState(e,n,r,d),m&&m.useState(e,n,r,d),a?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Pn),c}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,l=e.length,u=l===a.length;if(u){for(var f=0;f<l;f++)if(e[f]!==a[f]){u=!1;break}}if(u)return;for(var f=0;f<l;f++){var c=e[f],d=void 0;this.stateProxy&&(d=this.stateProxy(c,e)),d||(d=this.states[c]),d&&i.push(d)}var v=i[l-1],m=!!(v&&v.hoverLayer||r);m&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),y=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!n&&!this.__inHover&&y&&y.duration>0,y);var S=this._textContent,x=this._textGuide;S&&S.useStates(e,n,m),x&&x.useStates(e,n,m),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!m&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Pn)}},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=Wt(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 i=this.currentStates.slice(),a=Wt(i,e),l=Wt(i,n)>=0;a>=0?l?i.splice(a,1):i[a]=n:r&&!l&&i.push(n),this.useStates(i)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,i=0;i<e.length;i++){var a=e[i];lt(n,a),a.textConfig&&(r=r||{},lt(r,a.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,i,a,l){var u=!(n&&i);n&&n.textConfig?(this.textConfig=lt({},i?this.textConfig:r.textConfig),lt(this.textConfig,n.textConfig)):u&&r.textConfig&&(this.textConfig=r.textConfig);for(var f={},c=!1,d=0;d<mm.length;d++){var v=mm[d],m=a&&p5[v];n&&n[v]!=null?m?(c=!0,f[v]=n[v]):this[v]=n[v]:u&&r[v]!=null&&(m?(c=!0,f[v]=r[v]):this[v]=r[v])}if(!a)for(var d=0;d<this.animators.length;d++){var p=this.animators[d],y=p.targetName;p.getLoop()||p.__changeFinalValue(y?(n||r)[y]:n||r)}c&&this._transitionState(e,f,l)},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 d_,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),lt(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|=Pn;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 i=e?this[e]:this,a=new h_(i,n,r);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,n){var r=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(n)}).done(function(){var a=i.animators,l=Wt(a,e);l>=0&&a.splice(l,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,i=r.length,a=[],l=0;l<i;l++){var u=r[l];!e||e===u.scope?u.stop(n):a.push(u)}return this.animators=a,this},t.prototype.animateTo=function(e,n,r){ym(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){ym(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,i){for(var a=ym(this,n,r,i),l=0;l<a.length;l++)a[l].__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=Pn;function n(r,i,a,l){Object.defineProperty(e,r,{get:function(){if(!this[i]){var f=this[i]=[];u(this,f)}return this[i]},set:function(f){this[a]=f[0],this[l]=f[1],this[i]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[a]},set:function(d){f[a]=d}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(d){f[l]=d}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();cr(Wd,Tr);cr(Wd,d_);function ym(t,e,n,r,i){n=n||{};var a=[];E2(t,"",t,e,n,r,a,i);var l=a.length,u=!1,f=n.done,c=n.aborted,d=function(){u=!0,l--,l<=0&&(u?f&&f():c&&c())},v=function(){l--,l<=0&&(u?f&&f():c&&c())};l||f&&f(),a.length>0&&n.during&&a[0].during(function(y,S){n.during(S)});for(var m=0;m<a.length;m++){var p=a[m];d&&p.done(d),v&&p.aborted(v),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function _m(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function y5(t){return ln(t[0])}function _5(t,e,n){if(ln(e[n]))if(ln(t[n])||(t[n]=[]),sn(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),_m(t[n],e[n],r))}else{var i=e[n],a=t[n],l=i.length;if(y5(i))for(var u=i[0].length,f=0;f<l;f++)a[f]?_m(a[f],i[f],u):a[f]=Array.prototype.slice.call(i[f]);else _m(a,i,l);a.length=i.length}else t[n]=e[n]}function S5(t,e){return t===e||ln(t)&&ln(e)&&x5(t,e)}function x5(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 E2(t,e,n,r,i,a,l,u){for(var f=de(r),c=i.duration,d=i.delay,v=i.additive,m=i.setToFinal,p=!bt(a),y=t.animators,S=[],x=0;x<f.length;x++){var w=f[x],C=r[w];if(C!=null&&n[w]!=null&&(p||a[w]))if(bt(C)&&!ln(C)&&!Tf(C)){if(e){u||(n[w]=C,t.updateDuringAnimation(e));continue}E2(t,w,n[w],C,i,a&&a[w],l,u)}else S.push(w);else u||(n[w]=C,t.updateDuringAnimation(e),S.push(w))}var M=S.length;if(!v&&M)for(var A=0;A<y.length;A++){var R=y[A];if(R.targetName===e){var D=R.stopTracks(S);if(D){var L=Wt(y,R);y.splice(L,1)}}}if(i.force||(S=Ee(S,function(P){return!S5(r[P],n[P])}),M=S.length),M>0||i.force&&!l.length){var O=void 0,B=void 0,H=void 0;if(u){B={},m&&(O={});for(var A=0;A<M;A++){var w=S[A];B[w]=n[w],m?O[w]=r[w]:n[w]=r[w]}}else if(m){H={};for(var A=0;A<M;A++){var w=S[A];H[w]=Jh(n[w]),_5(n,r,w)}}var R=new h_(n,!1,!1,v?Ee(y,function(q){return q.targetName===e}):null);R.targetName=e,i.scope&&(R.scope=i.scope),m&&O&&R.whenWithKeys(0,O,S),H&&R.whenWithKeys(0,H,S),R.whenWithKeys(c??500,u?B:r,S).delay(d||0),t.addAnimator(R,e),l.push(R)}}var Qe=(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,i=0;i<r.length;i++)if(r[i].name===n)return r[i]},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 i=this._children,a=i.indexOf(r);a>=0&&(i.splice(a,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var i=Wt(this._children,n);return i>=0&&this.replaceAt(r,i),this},e.prototype.replaceAt=function(n,r){var i=this._children,a=i[r];if(n&&n!==this&&n.parent!==this&&n!==a){i[r]=n,a.parent=null;var l=this.__zr;l&&a.removeSelfFromZr(l),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,i=this._children,a=Wt(i,n);return a<0?this:(i.splice(a,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;i<n.length;i++){var a=n[i];r&&a.removeSelfFromZr(r),a.parent=null}return n.length=0,this},e.prototype.eachChild=function(n,r){for(var i=this._children,a=0;a<i.length;a++){var l=i[a];n.call(r,l,a)}return this},e.prototype.traverse=function(n,r){for(var i=0;i<this._children.length;i++){var a=this._children[i],l=n.call(r,a);a.isGroup&&!l&&a.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 i=this._children[r];i.addSelfToZr(n)}},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(n)}},e.prototype.getBoundingRect=function(n){for(var r=new Xt(0,0,0,0),i=n||this._children,a=[],l=null,u=0;u<i.length;u++){var f=i[u];if(!(f.ignore||f.invisible)){var c=f.getBoundingRect(),d=f.getLocalTransform(a);d?(Xt.applyTransform(r,c,d),l=l||r.clone(),l.union(r)):(l=l||c.clone(),l.union(c))}}return l||r},e})(Wd);Qe.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 rd={},xo={};function b5(t){delete xo[t]}function w5(t){if(!t)return!1;if(typeof t=="string")return lf(t,1)<Qy;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=lf(e[i].color,1);return n/=r,n<Qy}return!1}var C5=(function(){function t(e,n,r){var i=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 a=new IN,l=r.renderer||"canvas";rd[l]||(l=de(rd)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var u=new rd[l](n,a,r,e),f=r.ssr||u.ssrOnly;this.storage=a,this.painter=u;var c=!Dt.node&&!Dt.worker&&!f?new d5(u.getViewportRoot(),u.root):null,d=r.useCoarsePointer,v=d==null||d==="auto"?Dt.touchEventsSupported:!!d,m=44,p;v&&(p=Pt(r.pointerSize,m)),this.handler=new v2(a,u,c,u.root,p),this.animation=new o5({stage:{update:f?null:function(){return i._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=w5(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=Fl();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var i=Fl();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-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 Qe&&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,b5(this.id))},t})();function t0(t,e){var n=new C5(i_(),t,e);return xo[n.id]=n,n}function M5(t){t.dispose()}function T5(){for(var t in xo)xo.hasOwnProperty(t)&&xo[t].dispose();xo={}}function A5(t){return xo[t]}function L2(t,e){rd[t]=e}var e0;function D5(t){if(typeof e0=="function")return e0(t)}function O2(t){e0=t}var R5="5.6.1";const E5=Object.freeze(Object.defineProperty({__proto__:null,dispose:M5,disposeAll:T5,getElementSSRData:D5,getInstance:A5,init:t0,registerPainter:L2,registerSSRDataGetter:O2,version:R5},Symbol.toStringTag,{value:"Module"}));var _C=1e-4,z2=20;function L5(t){return t.replace(/^\s+|\s+$/g,"")}function Be(t,e,n,r){var i=e[0],a=e[1],l=n[0],u=n[1],f=a-i,c=u-l;if(f===0)return c===0?l:(l+u)/2;if(r)if(f>0){if(t<=i)return l;if(t>=a)return u}else{if(t>=i)return l;if(t<=a)return u}else{if(t===i)return l;if(t===a)return u}return(t-i)/f*c+l}function se(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 gt(t)?L5(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Oe(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),z2),t=(+t).toFixed(e),n?t:+t}function Gl(t){return t.sort(function(e,n){return e-n}),t}function ts(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 N2(t)}function N2(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,a=e.indexOf("."),l=a<0?0:i-1-a;return Math.max(0,l-r)}function p_(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),a=Math.round(n(Math.abs(e[1]-e[0]))/r),l=Math.min(Math.max(-i+a,0),20);return isFinite(l)?l:20}function O5(t,e,n){if(!t[e])return 0;var r=I2(t,n);return r[e]||0}function I2(t,e){var n=Gr(t,function(p,y){return p+(isNaN(y)?0:y)},0);if(n===0)return[];for(var r=Math.pow(10,e),i=St(t,function(p){return(isNaN(p)?0:p)/n*r*100}),a=r*100,l=St(i,function(p){return Math.floor(p)}),u=Gr(l,function(p,y){return p+y},0),f=St(i,function(p,y){return p-l[y]});u<a;){for(var c=Number.NEGATIVE_INFINITY,d=null,v=0,m=f.length;v<m;++v)f[v]>c&&(c=f[v],d=v);++l[d],f[d]=0,++u}return St(l,function(p){return p/r})}function z5(t,e){var n=Math.max(ts(t),ts(e)),r=t+e;return n>z2?r:Oe(r,n)}var N5=9007199254740991;function m_(t){var e=Math.PI*2;return(t%e+e)%e}function uf(t){return t>-_C&&t<_C}var I5=/^(?:(\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 ur(t){if(t instanceof Date)return t;if(gt(t)){var e=I5.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 B2(t){return Math.pow(10,Qd(t))}function Qd(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 y_(t,e){var n=Qd(t),r=Math.pow(10,n),i=t/r,a;return e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,t=a*r,n>=-20?+t.toFixed(n<0?-n:0):t}function B5(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],a=n-r;return a?i+a*(t[r]-i):i}function P5(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 i=t[r].interval,a=t[r].close,l=0;l<2;l++)i[l]<=e&&(i[l]=e,a[l]=l?1:1-n),e=i[l],n=a[l];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(r,1):r++}return t;function u(f,c,d){return f.interval[d]<c.interval[d]||f.interval[d]===c.interval[d]&&(f.close[d]-c.close[d]===(d?-1:1)||!d&&u(f,c,1))}}function ff(t){var e=parseFloat(t);return e==t&&(e!==0||!gt(t)||t.indexOf("x")<=0)?e:NaN}function P2(t){return!isNaN(ff(t))}function k2(){return Math.round(Math.random()*9)}function H2(t,e){return e===0?t:H2(e,t%e)}function SC(t,e){return t==null?e:e==null?t:t*e/H2(t,e)}function Sn(t){throw new Error(t)}var V2="series\0",k5="\0_ec_\0";function on(t){return t instanceof Array?t:t==null?[]:[t]}function n0(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var xC=["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 Lf(t){return bt(t)&&!ft(t)&&!(t instanceof Date)?t.value:t}function H5(t){return bt(t)&&!(t instanceof Array)}function V5(t,e,n){var r=n==="normalMerge",i=n==="replaceMerge",a=n==="replaceAll";t=t||[],e=(e||[]).slice();var l=At();I(e,function(f,c){if(!bt(f)){e[c]=null;return}});var u=F5(t,l,n);return(r||i)&&G5(u,t,l,e),r&&U5(u,e),r||i?j5(u,e,i):a&&Y5(u,e),q5(u),u}function F5(t,e,n){var r=[];if(n==="replaceAll")return r;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),r.push({existing:n==="replaceMerge"||cf(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function G5(t,e,n,r){I(r,function(i,a){if(!(!i||i.id==null)){var l=qu(i.id),u=n.get(l);if(u!=null){var f=t[u];Ur(!f.newOption,'Duplicated option on id "'+l+'".'),f.newOption=i,f.existing=e[u],r[a]=null}}})}function U5(t,e){I(e,function(n,r){if(!(!n||n.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||n.id==null)&&!cf(n)&&!cf(a)&&F2("name",a,n)){t[i].newOption=n,e[r]=null;return}}})}function j5(t,e,n){I(e,function(r){if(r){for(var i,a=0;(i=t[a])&&(i.newOption||cf(i.existing)||i.existing&&r.id!=null&&!F2("id",r,i.existing));)a++;i?(i.newOption=r,i.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),a++}})}function Y5(t,e){I(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function q5(t){var e=At();I(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),I(t,function(n){var r=n.newOption;Ur(!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={})}),I(t,function(n,r){var i=n.existing,a=n.newOption,l=n.keyInfo;if(bt(a)){if(l.name=a.name!=null?qu(a.name):i?i.name:V2+r,i)l.id=qu(i.id);else if(a.id!=null)l.id=qu(a.id);else{var u=0;do l.id="\0"+l.name+"\0"+u++;while(e.get(l.id))}e.set(l.id,n)}})}function F2(t,e,n){var r=Fr(e[t],null),i=Fr(n[t],null);return r!=null&&i!=null&&r===i}function qu(t){return Fr(t,"")}function Fr(t,e){return t==null?e:gt(t)?t:ve(t)||dd(t)?t+"":e}function __(t){var e=t.name;return!!(e&&e.indexOf(V2))}function cf(t){return t&&t.id!=null&&qu(t.id).indexOf(k5)===0}function X5(t,e,n){I(t,function(r){var i=r.newOption;bt(i)&&(r.keyInfo.mainType=e,r.keyInfo.subType=Z5(e,i,r.existing,n))})}function Z5(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function Of(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return ft(e.dataIndex)?St(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return ft(e.name)?St(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function xe(){var t="__ec_inner_"+$5++;return function(e){return e[t]||(e[t]={})}}var $5=k2();function Sm(t,e,n){var r=S_(e,n),i=r.mainTypeSpecified,a=r.queryOptionMap,l=r.others,u=l,f=n?n.defaultMainType:null;return!i&&f&&a.set(f,{}),a.each(function(c,d){var v=zf(t,d,c,{useDefault:f===d,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});u[d+"Models"]=v.models,u[d+"Model"]=v.models[0]}),u}function S_(t,e){var n;if(gt(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=At(),a={},l=!1;return I(n,function(u,f){if(f==="dataIndex"||f==="dataIndexInside"){a[f]=u;return}var c=f.match(/^(\w+)(Index|Id|Name)$/)||[],d=c[1],v=(c[2]||"").toLowerCase();if(!(!d||!v||e&&e.includeMainTypes&&Wt(e.includeMainTypes,d)<0)){l=l||!!d;var m=i.get(d)||i.set(d,{});m[v]=u}}),{mainTypeSpecified:l,queryOptionMap:i,others:a}}var bn={useDefault:!0,enableAll:!1,enableNone:!1},W5={useDefault:!1,enableAll:!0,enableNone:!0};function zf(t,e,n,r){r=r||bn;var i=n.index,a=n.id,l=n.name,u={models:null,specified:i!=null||a!=null||l!=null};if(!u.specified){var f=void 0;return u.models=r.useDefault&&(f=t.getComponent(e))?[f]:[],u}return i==="none"||i===!1?(Ur(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),u.models=[],u):(i==="all"&&(Ur(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=l=null),u.models=t.queryComponents({mainType:e,index:i,id:a,name:l}),u)}function G2(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Q5(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function K5(t){return t==="auto"?Dt.domSupported?"html":"richText":t||"html"}var J5=".",io="___EC__COMPONENT__CONTAINER___",U2="___EC__EXTENDED_CLASS___";function Vr(t){var e={main:"",sub:""};if(t){var n=t.split(J5);e.main=n[0]||"",e.sub=n[1]||""}return e}function tI(t){Ur(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function eI(t){return!!(t&&t[U2])}function x_(t,e){t.$constructor=t,t.extend=function(n){var r=this,i;return nI(r)?i=(function(a){ut(l,a);function l(){return a.apply(this,arguments)||this}return l})(r):(i=function(){(n.$constructor||r).apply(this,arguments)},a_(i,this)),lt(i.prototype,n),i[U2]=!0,i.extend=this.extend,i.superCall=aI,i.superApply=oI,i.superClass=r,i}}function nI(t){return It(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function j2(t,e){t.extend=e.extend}var rI=Math.round(Math.random()*10);function iI(t){var e=["__\0is_clz",rI++].join("_");t.prototype[e]=!0,t.isInstance=function(n){return!!(n&&n[e])}}function aI(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 oI(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Kd(t){var e={};t.registerClass=function(r){var i=r.type||r.prototype.type;if(i){tI(i),r.prototype.type=i;var a=Vr(i);if(!a.sub)e[a.main]=r;else if(a.sub!==io){var l=n(a);l[a.sub]=r}}return r},t.getClass=function(r,i,a){var l=e[r];if(l&&l[io]&&(l=i?l[i]:null),a&&!l)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return l},t.getClassesByMainType=function(r){var i=Vr(r),a=[],l=e[i.main];return l&&l[io]?I(l,function(u,f){f!==io&&a.push(u)}):a.push(l),a},t.hasClass=function(r){var i=Vr(r);return!!e[i.main]},t.getAllClassMainTypes=function(){var r=[];return I(e,function(i,a){r.push(a)}),r},t.hasSubTypes=function(r){var i=Vr(r),a=e[i.main];return a&&a[io]};function n(r){var i=e[r.main];return(!i||!i[io])&&(i=e[r.main]={},i[io]=!0),i}}function hf(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,i,a){for(var l={},u=0;u<t.length;u++){var f=t[u][1];if(!(i&&Wt(i,f)>=0||a&&Wt(a,f)<0)){var c=r.getShallow(f,e);c!=null&&(l[t[u][0]]=c)}}return l}}var lI=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],sI=hf(lI),uI=(function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return sI(this,e,n)},t})(),r0=new Ef(50);function fI(t){if(typeof t=="string"){var e=r0.get(t);return e&&e.image}else return t}function Y2(t,e,n,r,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var a=r0.get(t),l={hostEl:n,cb:r,cbPayload:i};return a?(e=a.image,!Jd(e)&&a.pending.push(l)):(e=Di.loadImage(t,bC,bC),e.__zrImageSrc=t,r0.put(t,e.__cachedImgObj={image:e,pending:[l]})),e}else return t;else return e}function bC(){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 Jd(t){return t&&t.width&&t.height}var xm=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function cI(t,e,n,r,i){var a={};return q2(a,t,e,n,r,i),a.text}function q2(t,e,n,r,i,a){if(!n){t.text="",t.isTruncated=!1;return}var l=(e+"").split(`
72
+ `);a=X2(n,r,i,a);for(var u=!1,f={},c=0,d=l.length;c<d;c++)Z2(f,l[c],a),l[c]=f.textLine,u=u||f.isTruncated;t.text=l.join(`
73
+ `),t.isTruncated=u}function X2(t,e,n,r){r=r||{};var i=lt({},r);i.font=e,n=Pt(n,"..."),i.maxIterations=Pt(r.maxIterations,2);var a=i.minChar=Pt(r.minChar,0);i.cnCharWidth=Hn("国",e);var l=i.ascCharWidth=Hn("a",e);i.placeholder=Pt(r.placeholder,"");for(var u=t=Math.max(0,t-1),f=0;f<a&&u>=l;f++)u-=l;var c=Hn(n,e);return c>u&&(n="",c=0),u=t-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=u,i.containerWidth=t,i}function Z2(t,e,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r){t.textLine="",t.isTruncated=!1;return}var l=Hn(e,i);if(l<=r){t.textLine=e,t.isTruncated=!1;return}for(var u=0;;u++){if(l<=a||u>=n.maxIterations){e+=n.ellipsis;break}var f=u===0?hI(e,a,n.ascCharWidth,n.cnCharWidth):l>0?Math.floor(e.length*a/l):0;e=e.substr(0,f),l=Hn(e,i)}e===""&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function hI(t,e,n,r){for(var i=0,a=0,l=t.length;a<l&&i<e;a++){var u=t.charCodeAt(a);i+=0<=u&&u<=127?n:r}return a}function dI(t,e){t!=null&&(t+="");var n=e.overflow,r=e.padding,i=e.font,a=n==="truncate",l=g_(i),u=Pt(e.lineHeight,l),f=!!e.backgroundColor,c=e.lineOverflow==="truncate",d=!1,v=e.width,m;v!=null&&(n==="break"||n==="breakAll")?m=t?$2(t,e.font,v,n==="breakAll",0).lines:[]:m=t?t.split(`
74
+ `):[];var p=m.length*u,y=Pt(e.height,p);if(p>y&&c){var S=Math.floor(y/u);d=d||m.length>S,m=m.slice(0,S)}if(t&&a&&v!=null)for(var x=X2(v,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),w={},C=0;C<m.length;C++)Z2(w,m[C],x),m[C]=w.textLine,d=d||w.isTruncated;for(var M=y,A=0,C=0;C<m.length;C++)A=Math.max(Hn(m[C],i),A);v==null&&(v=A);var R=A;return r&&(M+=r[0]+r[2],R+=r[1]+r[3],v+=r[1]+r[3]),f&&(R=v),{lines:m,height:y,outerWidth:R,outerHeight:M,lineHeight:u,calculatedLineHeight:l,contentWidth:A,contentHeight:p,width:v,isTruncated:d}}var vI=(function(){function t(){}return t})(),wC=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),gI=(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 pI(t,e){var n=new gI;if(t!=null&&(t+=""),!t)return n;for(var r=e.width,i=e.height,a=e.overflow,l=(a==="break"||a==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:a==="breakAll"}:null,u=xm.lastIndex=0,f;(f=xm.exec(t))!=null;){var c=f.index;c>u&&bm(n,t.substring(u,c),e,l),bm(n,f[2],e,l,f[1]),u=xm.lastIndex}u<t.length&&bm(n,t.substring(u,t.length),e,l);var d=[],v=0,m=0,p=e.padding,y=a==="truncate",S=e.lineOverflow==="truncate",x={};function w(it,N,U){it.width=N,it.lineHeight=U,v+=U,m=Math.max(m,N)}t:for(var C=0;C<n.lines.length;C++){for(var M=n.lines[C],A=0,R=0,D=0;D<M.tokens.length;D++){var L=M.tokens[D],O=L.styleName&&e.rich[L.styleName]||{},B=L.textPadding=O.padding,H=B?B[1]+B[3]:0,P=L.font=O.font||e.font;L.contentHeight=g_(P);var q=Pt(O.height,L.contentHeight);if(L.innerHeight=q,B&&(q+=B[0]+B[2]),L.height=q,L.lineHeight=Yl(O.lineHeight,e.lineHeight,q),L.align=O&&O.align||e.align,L.verticalAlign=O&&O.verticalAlign||"middle",S&&i!=null&&v+L.lineHeight>i){var $=n.lines.length;D>0?(M.tokens=M.tokens.slice(0,D),w(M,R,A),n.lines=n.lines.slice(0,C+1)):n.lines=n.lines.slice(0,C),n.isTruncated=n.isTruncated||n.lines.length<$;break t}var W=O.width,J=W==null||W==="auto";if(typeof W=="string"&&W.charAt(W.length-1)==="%")L.percentWidth=W,d.push(L),L.contentWidth=Hn(L.text,P);else{if(J){var V=O.backgroundColor,K=V&&V.image;K&&(K=fI(K),Jd(K)&&(L.width=Math.max(L.width,K.width*q/K.height)))}var j=y&&r!=null?r-R:null;j!=null&&j<L.width?!J||j<H?(L.text="",L.width=L.contentWidth=0):(q2(x,L.text,j-H,P,e.ellipsis,{minChar:e.truncateMinChar}),L.text=x.text,n.isTruncated=n.isTruncated||x.isTruncated,L.width=L.contentWidth=Hn(L.text,P)):L.contentWidth=Hn(L.text,P)}L.width+=H,R+=L.width,O&&(A=Math.max(A,L.lineHeight))}w(M,R,A)}n.outerWidth=n.width=Pt(r,m),n.outerHeight=n.height=Pt(i,v),n.contentHeight=v,n.contentWidth=m,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(var C=0;C<d.length;C++){var L=d[C],rt=L.percentWidth;L.width=parseInt(rt,10)/100*n.width}return n}function bm(t,e,n,r,i){var a=e==="",l=i&&n.rich[i]||{},u=t.lines,f=l.font||n.font,c=!1,d,v;if(r){var m=l.padding,p=m?m[1]+m[3]:0;if(l.width!=null&&l.width!=="auto"){var y=Aa(l.width,r.width)+p;u.length>0&&y+r.accumWidth>r.width&&(d=e.split(`
75
+ `),c=!0),r.accumWidth=y}else{var S=$2(e,f,r.width,r.breakAll,r.accumWidth);r.accumWidth=S.accumWidth+p,v=S.linesWidths,d=S.lines}}else d=e.split(`
76
+ `);for(var x=0;x<d.length;x++){var w=d[x],C=new vI;if(C.styleName=i,C.text=w,C.isLineHolder=!w&&!a,typeof l.width=="number"?C.width=l.width:C.width=v?v[x]:Hn(w,f),!x&&!c){var M=(u[u.length-1]||(u[0]=new wC)).tokens,A=M.length;A===1&&M[0].isLineHolder?M[0]=C:(w||!A||a)&&M.push(C)}else u.push(new wC([C]))}}function mI(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var yI=Gr(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function _I(t){return mI(t)?!!yI[t]:!0}function $2(t,e,n,r,i){for(var a=[],l=[],u="",f="",c=0,d=0,v=0;v<t.length;v++){var m=t.charAt(v);if(m===`
77
+ `){f&&(u+=f,d+=c),a.push(u),l.push(d),u="",f="",c=0,d=0;continue}var p=Hn(m,e),y=r?!1:!_I(m);if(a.length?d+p>n:i+d+p>n){d?(u||f)&&(y?(u||(u=f,f="",c=0,d=c),a.push(u),l.push(d-c),f+=m,c+=p,u="",d=c):(f&&(u+=f,f="",c=0),a.push(u),l.push(d),u=m,d=p)):y?(a.push(f),l.push(c),f=m,c=p):(a.push(m),l.push(p));continue}d+=p,y?(f+=m,c+=p):(f&&(u+=f,f="",c=0),u+=m)}return!a.length&&!u&&(u=t,f="",c=0),f&&(u+=f),u&&(a.push(u),l.push(d)),a.length===1&&(d+=i),{accumWidth:d,lines:a,linesWidths:l}}var i0="__zr_style_"+Math.round(Math.random()*10),Do={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},tv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Do[i0]=!0;var CC=["z","z2","invisible"],SI=["invisible"],Nf=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=de(n),i=0;i<r.length;i++){var a=r[i];a==="style"?this.useStyle(n[a]):t.prototype.attrKV.call(this,a,n[a])}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,i,a){var l=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&xI(this,n,r)||l&&!l[0]&&!l[3])return!1;if(i&&this.__clipPaths){for(var u=0;u<this.__clipPaths.length;++u)if(this.__clipPaths[u].isZeroArea())return!1}if(a&&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 i=this.transformCoordToLocal(n,r),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,i=this.getBoundingRect(),a=this.style,l=a.shadowBlur||0,u=a.shadowOffsetX||0,f=a.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Xt(0,0,0,0)),r?Xt.applyTransform(n,i,r):n.copy(i),(l||u||f)&&(n.width+=l*2+Math.abs(u),n.height+=l*2+Math.abs(f),n.x=Math.min(n.x,n.x+u-l),n.y=Math.min(n.y,n.y+f-l));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 Xt(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:lt(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=Pu,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Pu)},e.prototype.styleUpdated=function(){this.__dirty&=~Pu},e.prototype.createStyle=function(n){return Af(Do,n)},e.prototype.useStyle=function(n){n[i0]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[i0]},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,CC)},e.prototype._applyStateObj=function(n,r,i,a,l,u){t.prototype._applyStateObj.call(this,n,r,i,a,l,u);var f=!(r&&a),c;if(r&&r.style?l?a?c=r.style:(c=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(c,r.style)):(c=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(c,r.style)):f&&(c=i.style),c)if(l){var d=this.style;if(this.style=this.createStyle(f?{}:d),f)for(var v=de(d),m=0;m<v.length;m++){var p=v[m];p in c&&(c[p]=c[p],this.style[p]=d[p])}for(var y=de(c),m=0;m<y.length;m++){var p=y[m];this.style[p]=this.style[p]}this._transitionState(n,{style:c},u,this.getAnimationStyleProps())}else this.useStyle(c);for(var S=this.__inHover?SI:CC,m=0;m<S.length;m++){var p=S[m];r&&r[p]!=null?this[p]=r[p]:f&&i[p]!=null&&(this[p]=i[p])}},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),i,a=0;a<n.length;a++){var l=n[a];l.style&&(i=i||{},this._mergeStyle(i,l.style))}return i&&(r.style=i),r},e.prototype._mergeStyle=function(n,r){return lt(n,r),n},e.prototype.getAnimationStyleProps=function(){return tv},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=Pn|Pu})(),e})(Wd),wm=new Xt(0,0,0,0),Cm=new Xt(0,0,0,0);function xI(t,e,n){return wm.copy(t.getBoundingRect()),t.transform&&wm.applyTransform(t.transform),Cm.width=e,Cm.height=n,!wm.intersect(Cm)}var ar=Math.min,or=Math.max,Mm=Math.sin,Tm=Math.cos,ao=Math.PI*2,gh=No(),ph=No(),mh=No();function MC(t,e,n,r,i,a){i[0]=ar(t,n),i[1]=ar(e,r),a[0]=or(t,n),a[1]=or(e,r)}var TC=[],AC=[];function bI(t,e,n,r,i,a,l,u,f,c){var d=S2,v=rn,m=d(t,n,i,l,TC);f[0]=1/0,f[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var p=0;p<m;p++){var y=v(t,n,i,l,TC[p]);f[0]=ar(y,f[0]),c[0]=or(y,c[0])}m=d(e,r,a,u,AC);for(var p=0;p<m;p++){var S=v(e,r,a,u,AC[p]);f[1]=ar(S,f[1]),c[1]=or(S,c[1])}f[0]=ar(t,f[0]),c[0]=or(t,c[0]),f[0]=ar(l,f[0]),c[0]=or(l,c[0]),f[1]=ar(e,f[1]),c[1]=or(e,c[1]),f[1]=ar(u,f[1]),c[1]=or(u,c[1])}function wI(t,e,n,r,i,a,l,u){var f=x2,c=_n,d=or(ar(f(t,n,i),1),0),v=or(ar(f(e,r,a),1),0),m=c(t,n,i,d),p=c(e,r,a,v);l[0]=ar(t,i,m),l[1]=ar(e,a,p),u[0]=or(t,i,m),u[1]=or(e,a,p)}function CI(t,e,n,r,i,a,l,u,f){var c=ha,d=da,v=Math.abs(i-a);if(v%ao<1e-4&&v>1e-4){u[0]=t-n,u[1]=e-r,f[0]=t+n,f[1]=e+r;return}if(gh[0]=Tm(i)*n+t,gh[1]=Mm(i)*r+e,ph[0]=Tm(a)*n+t,ph[1]=Mm(a)*r+e,c(u,gh,ph),d(f,gh,ph),i=i%ao,i<0&&(i=i+ao),a=a%ao,a<0&&(a=a+ao),i>a&&!l?a+=ao:i<a&&l&&(i+=ao),l){var m=a;a=i,i=m}for(var p=0;p<a;p+=Math.PI/2)p>i&&(mh[0]=Tm(p)*n+t,mh[1]=Mm(p)*r+e,c(u,mh,u),d(f,mh,f))}var Jt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},oo=[],lo=[],Nr=[],aa=[],Ir=[],Br=[],Am=Math.min,Dm=Math.max,so=Math.cos,uo=Math.sin,yi=Math.abs,a0=Math.PI,fa=a0*2,Rm=typeof Float32Array<"u",yu=[];function Em(t){var e=Math.round(t/a0*1e8)/1e8;return e%2*a0}function W2(t,e){var n=Em(t[0]);n<0&&(n+=fa);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=fa?i=n+fa:e&&n-i>=fa?i=n-fa:!e&&n>i?i=n+(fa-Em(n-i)):e&&n<i&&(i=n-(fa-Em(i-n))),t[0]=n,t[1]=i}var es=(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=yi(r/bd/e)||0,this._uy=yi(r/bd/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(Jt.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=yi(e-this._xi),i=yi(n-this._yi),a=r>this._ux||i>this._uy;if(this.addData(Jt.L,e,n),this._ctx&&a&&this._ctx.lineTo(e,n),a)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var l=r*r+i*i;l>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=l)}return this},t.prototype.bezierCurveTo=function(e,n,r,i,a,l){return this._drawPendingPt(),this.addData(Jt.C,e,n,r,i,a,l),this._ctx&&this._ctx.bezierCurveTo(e,n,r,i,a,l),this._xi=a,this._yi=l,this},t.prototype.quadraticCurveTo=function(e,n,r,i){return this._drawPendingPt(),this.addData(Jt.Q,e,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(e,n,r,i),this._xi=r,this._yi=i,this},t.prototype.arc=function(e,n,r,i,a,l){this._drawPendingPt(),yu[0]=i,yu[1]=a,W2(yu,l),i=yu[0],a=yu[1];var u=a-i;return this.addData(Jt.A,e,n,r,r,i,u,0,l?0:1),this._ctx&&this._ctx.arc(e,n,r,i,a,l),this._xi=so(a)*r+e,this._yi=uo(a)*r+n,this},t.prototype.arcTo=function(e,n,r,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,i,a),this},t.prototype.rect=function(e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,i),this.addData(Jt.R,e,n,r,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Jt.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)&&Rm&&(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,i=this._len,a=0;a<n;a++)r+=e[a].len();Rm&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var a=0;a<n;a++)for(var l=e[a].data,u=0;u<l.length;u++)this.data[i++]=l[u];this._len=i},t.prototype.addData=function(e,n,r,i,a,l,u,f,c){if(this._saveData){var d=this.data;this._len+arguments.length>d.length&&(this._expandData(),d=this.data);for(var v=0;v<arguments.length;v++)d[this._len++]=arguments[v]}},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,Rm&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Nr[0]=Nr[1]=Ir[0]=Ir[1]=Number.MAX_VALUE,aa[0]=aa[1]=Br[0]=Br[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,i=0,a=0,l;for(l=0;l<this._len;){var u=e[l++],f=l===1;switch(f&&(n=e[l],r=e[l+1],i=n,a=r),u){case Jt.M:n=i=e[l++],r=a=e[l++],Ir[0]=i,Ir[1]=a,Br[0]=i,Br[1]=a;break;case Jt.L:MC(n,r,e[l],e[l+1],Ir,Br),n=e[l++],r=e[l++];break;case Jt.C:bI(n,r,e[l++],e[l++],e[l++],e[l++],e[l],e[l+1],Ir,Br),n=e[l++],r=e[l++];break;case Jt.Q:wI(n,r,e[l++],e[l++],e[l],e[l+1],Ir,Br),n=e[l++],r=e[l++];break;case Jt.A:var c=e[l++],d=e[l++],v=e[l++],m=e[l++],p=e[l++],y=e[l++]+p;l+=1;var S=!e[l++];f&&(i=so(p)*v+c,a=uo(p)*m+d),CI(c,d,v,m,p,y,S,Ir,Br),n=so(y)*v+c,r=uo(y)*m+d;break;case Jt.R:i=n=e[l++],a=r=e[l++];var x=e[l++],w=e[l++];MC(i,a,i+x,a+w,Ir,Br);break;case Jt.Z:n=i,r=a;break}ha(Nr,Nr,Ir),da(aa,aa,Br)}return l===0&&(Nr[0]=Nr[1]=aa[0]=aa[1]=0),new Xt(Nr[0],Nr[1],aa[0]-Nr[0],aa[1]-Nr[1])},t.prototype._calculateLength=function(){var e=this.data,n=this._len,r=this._ux,i=this._uy,a=0,l=0,u=0,f=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,d=0,v=0,m=0;m<n;){var p=e[m++],y=m===1;y&&(a=e[m],l=e[m+1],u=a,f=l);var S=-1;switch(p){case Jt.M:a=u=e[m++],l=f=e[m++];break;case Jt.L:{var x=e[m++],w=e[m++],C=x-a,M=w-l;(yi(C)>r||yi(M)>i||m===n-1)&&(S=Math.sqrt(C*C+M*M),a=x,l=w);break}case Jt.C:{var A=e[m++],R=e[m++],x=e[m++],w=e[m++],D=e[m++],L=e[m++];S=PN(a,l,A,R,x,w,D,L,10),a=D,l=L;break}case Jt.Q:{var A=e[m++],R=e[m++],x=e[m++],w=e[m++];S=VN(a,l,A,R,x,w,10),a=x,l=w;break}case Jt.A:var O=e[m++],B=e[m++],H=e[m++],P=e[m++],q=e[m++],$=e[m++],W=$+q;m+=1,y&&(u=so(q)*H+O,f=uo(q)*P+B),S=Dm(H,P)*Am(fa,Math.abs($)),a=so(W)*H+O,l=uo(W)*P+B;break;case Jt.R:{u=a=e[m++],f=l=e[m++];var J=e[m++],V=e[m++];S=J*2+V*2;break}case Jt.Z:{var C=u-a,M=f-l;S=Math.sqrt(C*C+M*M),a=u,l=f;break}}S>=0&&(c[v++]=S,d+=S)}return this._pathLen=d,d},t.prototype.rebuildPath=function(e,n){var r=this.data,i=this._ux,a=this._uy,l=this._len,u,f,c,d,v,m,p=n<1,y,S,x=0,w=0,C,M=0,A,R;if(!(p&&(this._pathSegLen||this._calculateLength(),y=this._pathSegLen,S=this._pathLen,C=n*S,!C)))t:for(var D=0;D<l;){var L=r[D++],O=D===1;switch(O&&(c=r[D],d=r[D+1],u=c,f=d),L!==Jt.L&&M>0&&(e.lineTo(A,R),M=0),L){case Jt.M:u=c=r[D++],f=d=r[D++],e.moveTo(c,d);break;case Jt.L:{v=r[D++],m=r[D++];var B=yi(v-c),H=yi(m-d);if(B>i||H>a){if(p){var P=y[w++];if(x+P>C){var q=(C-x)/P;e.lineTo(c*(1-q)+v*q,d*(1-q)+m*q);break t}x+=P}e.lineTo(v,m),c=v,d=m,M=0}else{var $=B*B+H*H;$>M&&(A=v,R=m,M=$)}break}case Jt.C:{var W=r[D++],J=r[D++],V=r[D++],K=r[D++],j=r[D++],rt=r[D++];if(p){var P=y[w++];if(x+P>C){var q=(C-x)/P;Sd(c,W,V,j,q,oo),Sd(d,J,K,rt,q,lo),e.bezierCurveTo(oo[1],lo[1],oo[2],lo[2],oo[3],lo[3]);break t}x+=P}e.bezierCurveTo(W,J,V,K,j,rt),c=j,d=rt;break}case Jt.Q:{var W=r[D++],J=r[D++],V=r[D++],K=r[D++];if(p){var P=y[w++];if(x+P>C){var q=(C-x)/P;xd(c,W,V,q,oo),xd(d,J,K,q,lo),e.quadraticCurveTo(oo[1],lo[1],oo[2],lo[2]);break t}x+=P}e.quadraticCurveTo(W,J,V,K),c=V,d=K;break}case Jt.A:var it=r[D++],N=r[D++],U=r[D++],at=r[D++],ot=r[D++],ct=r[D++],dt=r[D++],st=!r[D++],Bt=U>at?U:at,xt=yi(U-at)>.001,Yt=ot+ct,yt=!1;if(p){var P=y[w++];x+P>C&&(Yt=ot+ct*(C-x)/P,yt=!0),x+=P}if(xt&&e.ellipse?e.ellipse(it,N,U,at,dt,ot,Yt,st):e.arc(it,N,Bt,ot,Yt,st),yt)break t;O&&(u=so(ot)*U+it,f=uo(ot)*at+N),c=so(Yt)*U+it,d=uo(Yt)*at+N;break;case Jt.R:u=c=r[D],f=d=r[D+1],v=r[D++],m=r[D++];var Et=r[D++],Ot=r[D++];if(p){var P=y[w++];if(x+P>C){var pt=C-x;e.moveTo(v,m),e.lineTo(v+Am(pt,Et),m),pt-=Et,pt>0&&e.lineTo(v+Et,m+Am(pt,Ot)),pt-=Ot,pt>0&&e.lineTo(v+Dm(Et-pt,0),m+Ot),pt-=Et,pt>0&&e.lineTo(v,m+Dm(Ot-pt,0));break t}x+=P}e.rect(v,m,Et,Ot);break;case Jt.Z:if(p){var P=y[w++];if(x+P>C){var q=(C-x)/P;e.lineTo(c*(1-q)+u*q,d*(1-q)+f*q);break t}x+=P}e.closePath(),c=u,d=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=Jt,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function Ml(t,e,n,r,i,a,l){if(i===0)return!1;var u=i,f=0,c=t;if(l>e+u&&l>r+u||l<e-u&&l<r-u||a>t+u&&a>n+u||a<t-u&&a<n-u)return!1;if(t!==n)f=(e-r)/(t-n),c=(t*r-n*e)/(t-n);else return Math.abs(a-t)<=u/2;var d=f*a-l+c,v=d*d/(f*f+1);return v<=u/2*u/2}function MI(t,e,n,r,i,a,l,u,f,c,d){if(f===0)return!1;var v=f;if(d>e+v&&d>r+v&&d>a+v&&d>u+v||d<e-v&&d<r-v&&d<a-v&&d<u-v||c>t+v&&c>n+v&&c>i+v&&c>l+v||c<t-v&&c<n-v&&c<i-v&&c<l-v)return!1;var m=BN(t,e,n,r,i,a,l,u,c,d);return m<=v/2}function TI(t,e,n,r,i,a,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>r+c&&f>a+c||f<e-c&&f<r-c&&f<a-c||u>t+c&&u>n+c&&u>i+c||u<t-c&&u<n-c&&u<i-c)return!1;var d=HN(t,e,n,r,i,a,u,f);return d<=c/2}var DC=Math.PI*2;function yh(t){return t%=DC,t<0&&(t+=DC),t}var _u=Math.PI*2;function AI(t,e,n,r,i,a,l,u,f){if(l===0)return!1;var c=l;u-=t,f-=e;var d=Math.sqrt(u*u+f*f);if(d-c>n||d+c<n)return!1;if(Math.abs(r-i)%_u<1e-4)return!0;if(a){var v=r;r=yh(i),i=yh(v)}else r=yh(r),i=yh(i);r>i&&(i+=_u);var m=Math.atan2(f,u);return m<0&&(m+=_u),m>=r&&m<=i||m+_u>=r&&m+_u<=i}function bi(t,e,n,r,i,a){if(a>e&&a>r||a<e&&a<r||r===e)return 0;var l=(a-e)/(r-e),u=r<e?1:-1;(l===1||l===0)&&(u=r<e?.5:-.5);var f=l*(n-t)+t;return f===i?1/0:f>i?u:0}var oa=es.CMD,fo=Math.PI*2,DI=1e-4;function RI(t,e){return Math.abs(t-e)<DI}var Je=[-1,-1,-1],rr=[-1,-1];function EI(){var t=rr[0];rr[0]=rr[1],rr[1]=t}function LI(t,e,n,r,i,a,l,u,f,c){if(c>e&&c>r&&c>a&&c>u||c<e&&c<r&&c<a&&c<u)return 0;var d=_2(e,r,a,u,c,Je);if(d===0)return 0;for(var v=0,m=-1,p=void 0,y=void 0,S=0;S<d;S++){var x=Je[S],w=x===0||x===1?.5:1,C=rn(t,n,i,l,x);C<f||(m<0&&(m=S2(e,r,a,u,rr),rr[1]<rr[0]&&m>1&&EI(),p=rn(e,r,a,u,rr[0]),m>1&&(y=rn(e,r,a,u,rr[1]))),m===2?x<rr[0]?v+=p<e?w:-w:x<rr[1]?v+=y<p?w:-w:v+=u<y?w:-w:x<rr[0]?v+=p<e?w:-w:v+=u<p?w:-w)}return v}function OI(t,e,n,r,i,a,l,u){if(u>e&&u>r&&u>a||u<e&&u<r&&u<a)return 0;var f=kN(e,r,a,u,Je);if(f===0)return 0;var c=x2(e,r,a);if(c>=0&&c<=1){for(var d=0,v=_n(e,r,a,c),m=0;m<f;m++){var p=Je[m]===0||Je[m]===1?.5:1,y=_n(t,n,i,Je[m]);y<l||(Je[m]<c?d+=v<e?p:-p:d+=a<v?p:-p)}return d}else{var p=Je[0]===0||Je[0]===1?.5:1,y=_n(t,n,i,Je[0]);return y<l?0:a<e?p:-p}}function zI(t,e,n,r,i,a,l,u){if(u-=e,u>n||u<-n)return 0;var f=Math.sqrt(n*n-u*u);Je[0]=-f,Je[1]=f;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=fo-1e-4){r=0,i=fo;var d=a?1:-1;return l>=Je[0]+t&&l<=Je[1]+t?d:0}if(r>i){var v=r;r=i,i=v}r<0&&(r+=fo,i+=fo);for(var m=0,p=0;p<2;p++){var y=Je[p];if(y+t>l){var S=Math.atan2(u,y),d=a?1:-1;S<0&&(S=fo+S),(S>=r&&S<=i||S+fo>=r&&S+fo<=i)&&(S>Math.PI/2&&S<Math.PI*1.5&&(d=-d),m+=d)}}return m}function Q2(t,e,n,r,i){for(var a=t.data,l=t.len(),u=0,f=0,c=0,d=0,v=0,m,p,y=0;y<l;){var S=a[y++],x=y===1;switch(S===oa.M&&y>1&&(n||(u+=bi(f,c,d,v,r,i))),x&&(f=a[y],c=a[y+1],d=f,v=c),S){case oa.M:d=a[y++],v=a[y++],f=d,c=v;break;case oa.L:if(n){if(Ml(f,c,a[y],a[y+1],e,r,i))return!0}else u+=bi(f,c,a[y],a[y+1],r,i)||0;f=a[y++],c=a[y++];break;case oa.C:if(n){if(MI(f,c,a[y++],a[y++],a[y++],a[y++],a[y],a[y+1],e,r,i))return!0}else u+=LI(f,c,a[y++],a[y++],a[y++],a[y++],a[y],a[y+1],r,i)||0;f=a[y++],c=a[y++];break;case oa.Q:if(n){if(TI(f,c,a[y++],a[y++],a[y],a[y+1],e,r,i))return!0}else u+=OI(f,c,a[y++],a[y++],a[y],a[y+1],r,i)||0;f=a[y++],c=a[y++];break;case oa.A:var w=a[y++],C=a[y++],M=a[y++],A=a[y++],R=a[y++],D=a[y++];y+=1;var L=!!(1-a[y++]);m=Math.cos(R)*M+w,p=Math.sin(R)*A+C,x?(d=m,v=p):u+=bi(f,c,m,p,r,i);var O=(r-w)*A/M+w;if(n){if(AI(w,C,A,R,R+D,L,e,O,i))return!0}else u+=zI(w,C,A,R,R+D,L,O,i);f=Math.cos(R+D)*M+w,c=Math.sin(R+D)*A+C;break;case oa.R:d=f=a[y++],v=c=a[y++];var B=a[y++],H=a[y++];if(m=d+B,p=v+H,n){if(Ml(d,v,m,v,e,r,i)||Ml(m,v,m,p,e,r,i)||Ml(m,p,d,p,e,r,i)||Ml(d,p,d,v,e,r,i))return!0}else u+=bi(m,v,m,p,r,i),u+=bi(d,p,d,v,r,i);break;case oa.Z:if(n){if(Ml(f,c,d,v,e,r,i))return!0}else u+=bi(f,c,d,v,r,i);f=d,c=v;break}}return!n&&!RI(c,v)&&(u+=bi(f,c,d,v,r,i)||0),u!==0}function NI(t,e,n){return Q2(t,0,!1,e,n)}function II(t,e,n,r){return Q2(t,e,!0,n,r)}var K2=Kt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Do),BI={style:Kt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},tv.style)},Lm=sf.concat(["invisible","culling","z","z2","zlevel","parent"]),le=(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 i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(f){n.buildPath(f,n.shape)}),i.silent=!0;var a=i.style;for(var l in r)a[l]!==r[l]&&(a[l]=r[l]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var u=0;u<Lm.length;++u)i[Lm[u]]=this[Lm[u]];i.__dirty|=Pn}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=de(n);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<r.length;a++){var l=r[a],u=n[l];l==="style"?this.style?lt(this.style,u):this.useStyle(u):l==="shape"?lt(this.shape,u):t.prototype.attrKV.call(this,l,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(gt(n)){var r=lf(n,0);return r>.5?Ky:r>.2?v5:Jy}else if(n)return Jy}return Ky},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(gt(r)){var i=this.__zr,a=!!(i&&i.isDarkMode()),l=lf(n,0)<Qy;if(a===l)return r}},e.prototype.buildPath=function(n,r,i){},e.prototype.pathUpdated=function(){this.__dirty&=~kl},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 es(!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,i=!n;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var l=this.path;(a||this.__dirty&kl)&&(l.beginPath(),this.buildPath(l,this.shape,!1),this.pathUpdated()),n=l.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var u=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){u.copy(n);var f=r.strokeNoScale?this.getLineScale():1,c=r.lineWidth;if(!this.hasFill()){var d=this.strokeContainThreshold;c=Math.max(c,d??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 i=this.transformCoordToLocal(n,r),a=this.getBoundingRect(),l=this.style;if(n=i[0],r=i[1],a.contain(n,r)){var u=this.path;if(this.hasStroke()){var f=l.lineWidth,c=l.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),II(u,f/c,n,r)))return!0}if(this.hasFill())return NI(u,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=kl,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 i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:lt(i,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&kl)},e.prototype.createStyle=function(n){return Af(K2,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=lt({},this.shape))},e.prototype._applyStateObj=function(n,r,i,a,l,u){t.prototype._applyStateObj.call(this,n,r,i,a,l,u);var f=!(r&&a),c;if(r&&r.shape?l?a?c=r.shape:(c=lt({},i.shape),lt(c,r.shape)):(c=lt({},a?this.shape:i.shape),lt(c,r.shape)):f&&(c=i.shape),c)if(l){this.shape=lt({},this.shape);for(var d={},v=de(c),m=0;m<v.length;m++){var p=v[m];typeof c[p]=="object"?this.shape[p]=c[p]:d[p]=c[p]}this._transitionState(n,{shape:d},u)}else this.shape=c,this.dirtyShape()},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),i,a=0;a<n.length;a++){var l=n[a];l.shape&&(i=i||{},this._mergeStyle(i,l.shape))}return i&&(r.shape=i),r},e.prototype.getAnimationStyleProps=function(){return BI},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=(function(a){ut(l,a);function l(u){var f=a.call(this,u)||this;return n.init&&n.init.call(f,u),f}return l.prototype.getDefaultStyle=function(){return kt(n.style)},l.prototype.getDefaultShape=function(){return kt(n.shape)},l})(e);for(var i in n)typeof n[i]=="function"&&(r.prototype[i]=n[i]);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=Pn|Pu|kl})(),e})(Nf),PI=Kt({strokeFirst:!0,font:zo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},K2),Cd=(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 Af(PI,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 i=v_(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var a=n.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=(function(){var n=e.prototype;n.dirtyRectTolerance=10})(),e})(Nf);Cd.prototype.type="tspan";var kI=Kt({x:0,y:0},Do),HI={style:Kt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},tv.style)};function VI(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var La=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return Af(kI,n)},e.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var a=VI(r.image)?r.image:this.__image;if(!a)return 0;var l=n==="width"?"height":"width",u=r[l];return u==null?a[n]:a[n]/a[l]*u},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return HI},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Xt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Nf);La.prototype.type="image";function FI(t,e){var n=e.x,r=e.y,i=e.width,a=e.height,l=e.r,u,f,c,d;i<0&&(n=n+i,i=-i),a<0&&(r=r+a,a=-a),typeof l=="number"?u=f=c=d=l:l instanceof Array?l.length===1?u=f=c=d=l[0]:l.length===2?(u=c=l[0],f=d=l[1]):l.length===3?(u=l[0],f=d=l[1],c=l[2]):(u=l[0],f=l[1],c=l[2],d=l[3]):u=f=c=d=0;var v;u+f>i&&(v=u+f,u*=i/v,f*=i/v),c+d>i&&(v=c+d,c*=i/v,d*=i/v),f+c>a&&(v=f+c,f*=a/v,c*=a/v),u+d>a&&(v=u+d,u*=a/v,d*=a/v),t.moveTo(n+u,r),t.lineTo(n+i-f,r),f!==0&&t.arc(n+i-f,r+f,f,-Math.PI/2,0),t.lineTo(n+i,r+a-c),c!==0&&t.arc(n+i-c,r+a-c,c,0,Math.PI/2),t.lineTo(n+d,r+a),d!==0&&t.arc(n+d,r+a-d,d,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 Ul=Math.round;function J2(t,e,n){if(e){var r=e.x1,i=e.x2,a=e.y1,l=e.y2;t.x1=r,t.x2=i,t.y1=a,t.y2=l;var u=n&&n.lineWidth;return u&&(Ul(r*2)===Ul(i*2)&&(t.x1=t.x2=bo(r,u,!0)),Ul(a*2)===Ul(l*2)&&(t.y1=t.y2=bo(a,u,!0))),t}}function tD(t,e,n){if(e){var r=e.x,i=e.y,a=e.width,l=e.height;t.x=r,t.y=i,t.width=a,t.height=l;var u=n&&n.lineWidth;return u&&(t.x=bo(r,u,!0),t.y=bo(i,u,!0),t.width=Math.max(bo(r+a,u,!1)-t.x,a===0?0:1),t.height=Math.max(bo(i+l,u,!1)-t.y,l===0?0:1)),t}}function bo(t,e,n){if(!e)return t;var r=Ul(t*2);return(r+Ul(e))%2===0?r/2:(r+(n?1:-1))/2}var GI=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),UI={},ge=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new GI},e.prototype.buildPath=function(n,r){var i,a,l,u;if(this.subPixelOptimize){var f=tD(UI,r,this.style);i=f.x,a=f.y,l=f.width,u=f.height,f.r=r.r,r=f}else i=r.x,a=r.y,l=r.width,u=r.height;r.r?FI(n,r):n.rect(i,a,l,u)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(le);ge.prototype.type="rect";var RC={fill:"#000"},EC=2,jI={style:Kt({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},tv.style)},ze=(function(t){ut(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=RC,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,$I(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 Xt(0,0,0,0),r=this._children,i=[],a=null,l=0;l<r.length;l++){var u=r[l],f=u.getBoundingRect(),c=u.getLocalTransform(i);c?(n.copy(f),n.applyTransform(c),a=a||n.clone(),a.union(n)):(a=a||f.clone(),a.union(f))}this._rect=a||n}return this._rect},e.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||RC},e.prototype.setTextContent=function(n){},e.prototype._mergeStyle=function(n,r){if(!r)return n;var i=r.rich,a=n.rich||i&&{};return lt(n,r),i&&a?(this._mergeRich(a,i),n.rich=a):a&&(n.rich=a),n},e.prototype._mergeRich=function(n,r){for(var i=de(r),a=0;a<i.length;a++){var l=i[a];n[l]=n[l]||{},lt(n[l],r[l])}},e.prototype.getAnimationStyleProps=function(){return jI},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||zo,i=n.padding,a=PC(n),l=dI(a,n),u=Om(n),f=!!n.backgroundColor,c=l.outerHeight,d=l.outerWidth,v=l.contentWidth,m=l.lines,p=l.lineHeight,y=this._defaultStyle;this.isTruncated=!!l.isTruncated;var S=n.x||0,x=n.y||0,w=n.align||y.align||"left",C=n.verticalAlign||y.verticalAlign||"top",M=S,A=Hl(x,l.contentHeight,C);if(u||i){var R=Hu(S,d,w),D=Hl(x,c,C);u&&this._renderBackground(n,n,R,D,d,c)}A+=p/2,i&&(M=BC(S,w,i),C==="top"?A+=i[0]:C==="bottom"&&(A-=i[2]));for(var L=0,O=!1,B=IC("fill"in n?n.fill:(O=!0,y.fill)),H=NC("stroke"in n?n.stroke:!f&&(!y.autoStroke||O)?(L=EC,y.stroke):null),P=n.textShadowBlur>0,q=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),$=l.calculatedLineHeight,W=0;W<m.length;W++){var J=this._getOrCreateChild(Cd),V=J.createStyle();J.useStyle(V),V.text=m[W],V.x=M,V.y=A,V.textAlign=w,V.textBaseline="middle",V.opacity=n.opacity,V.strokeFirst=!0,P&&(V.shadowBlur=n.textShadowBlur||0,V.shadowColor=n.textShadowColor||"transparent",V.shadowOffsetX=n.textShadowOffsetX||0,V.shadowOffsetY=n.textShadowOffsetY||0),V.stroke=H,V.fill=B,H&&(V.lineWidth=n.lineWidth||L,V.lineDash=n.lineDash,V.lineDashOffset=n.lineDashOffset||0),V.font=r,OC(V,n),A+=p,q&&J.setBoundingRect(new Xt(Hu(V.x,v,V.textAlign),Hl(V.y,$,V.textBaseline),v,$))}},e.prototype._updateRichTexts=function(){var n=this.style,r=PC(n),i=pI(r,n),a=i.width,l=i.outerWidth,u=i.outerHeight,f=n.padding,c=n.x||0,d=n.y||0,v=this._defaultStyle,m=n.align||v.align,p=n.verticalAlign||v.verticalAlign;this.isTruncated=!!i.isTruncated;var y=Hu(c,l,m),S=Hl(d,u,p),x=y,w=S;f&&(x+=f[3],w+=f[0]);var C=x+a;Om(n)&&this._renderBackground(n,n,y,S,l,u);for(var M=!!n.backgroundColor,A=0;A<i.lines.length;A++){for(var R=i.lines[A],D=R.tokens,L=D.length,O=R.lineHeight,B=R.width,H=0,P=x,q=C,$=L-1,W=void 0;H<L&&(W=D[H],!W.align||W.align==="left");)this._placeToken(W,n,O,w,P,"left",M),B-=W.width,P+=W.width,H++;for(;$>=0&&(W=D[$],W.align==="right");)this._placeToken(W,n,O,w,q,"right",M),B-=W.width,q-=W.width,$--;for(P+=(a-(P-x)-(C-q)-B)/2;H<=$;)W=D[H],this._placeToken(W,n,O,w,P+W.width/2,"center",M),P+=W.width,H++;w+=O}},e.prototype._placeToken=function(n,r,i,a,l,u,f){var c=r.rich[n.styleName]||{};c.text=n.text;var d=n.verticalAlign,v=a+i/2;d==="top"?v=a+n.height/2:d==="bottom"&&(v=a+i-n.height/2);var m=!n.isLineHolder&&Om(c);m&&this._renderBackground(c,r,u==="right"?l-n.width:u==="center"?l-n.width/2:l,v-n.height/2,n.width,n.height);var p=!!c.backgroundColor,y=n.textPadding;y&&(l=BC(l,u,y),v-=n.height/2-y[0]-n.innerHeight/2);var S=this._getOrCreateChild(Cd),x=S.createStyle();S.useStyle(x);var w=this._defaultStyle,C=!1,M=0,A=IC("fill"in c?c.fill:"fill"in r?r.fill:(C=!0,w.fill)),R=NC("stroke"in c?c.stroke:"stroke"in r?r.stroke:!p&&!f&&(!w.autoStroke||C)?(M=EC,w.stroke):null),D=c.textShadowBlur>0||r.textShadowBlur>0;x.text=n.text,x.x=l,x.y=v,D&&(x.shadowBlur=c.textShadowBlur||r.textShadowBlur||0,x.shadowColor=c.textShadowColor||r.textShadowColor||"transparent",x.shadowOffsetX=c.textShadowOffsetX||r.textShadowOffsetX||0,x.shadowOffsetY=c.textShadowOffsetY||r.textShadowOffsetY||0),x.textAlign=u,x.textBaseline="middle",x.font=n.font||zo,x.opacity=Yl(c.opacity,r.opacity,1),OC(x,c),R&&(x.lineWidth=Yl(c.lineWidth,r.lineWidth,M),x.lineDash=Pt(c.lineDash,r.lineDash),x.lineDashOffset=r.lineDashOffset||0,x.stroke=R),A&&(x.fill=A);var L=n.contentWidth,O=n.contentHeight;S.setBoundingRect(new Xt(Hu(x.x,L,x.textAlign),Hl(x.y,O,x.textBaseline),L,O))},e.prototype._renderBackground=function(n,r,i,a,l,u){var f=n.backgroundColor,c=n.borderWidth,d=n.borderColor,v=f&&f.image,m=f&&!v,p=n.borderRadius,y=this,S,x;if(m||n.lineHeight||c&&d){S=this._getOrCreateChild(ge),S.useStyle(S.createStyle()),S.style.fill=null;var w=S.shape;w.x=i,w.y=a,w.width=l,w.height=u,w.r=p,S.dirtyShape()}if(m){var C=S.style;C.fill=f||null,C.fillOpacity=Pt(n.fillOpacity,1)}else if(v){x=this._getOrCreateChild(La),x.onload=function(){y.dirtyStyle()};var M=x.style;M.image=f.image,M.x=i,M.y=a,M.width=l,M.height=u}if(c&&d){var C=S.style;C.lineWidth=c,C.stroke=d,C.strokeOpacity=Pt(n.strokeOpacity,1),C.lineDash=n.borderDash,C.lineDashOffset=n.borderDashOffset||0,S.strokeContainThreshold=0,S.hasFill()&&S.hasStroke()&&(C.strokeFirst=!0,C.lineWidth*=2)}var A=(S||x).style;A.shadowBlur=n.shadowBlur||0,A.shadowColor=n.shadowColor||"transparent",A.shadowOffsetX=n.shadowOffsetX||0,A.shadowOffsetY=n.shadowOffsetY||0,A.opacity=Yl(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return ZI(n)&&(r=[n.fontStyle,n.fontWeight,XI(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&wr(r)||n.textFont||n.font},e})(Nf),YI={left:!0,right:1,center:1},qI={top:1,bottom:1,middle:1},LC=["fontStyle","fontWeight","fontSize","fontFamily"];function XI(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?e_+"px":t+"px"}function OC(t,e){for(var n=0;n<LC.length;n++){var r=LC[n],i=e[r];i!=null&&(t[r]=i)}}function ZI(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function $I(t){return zC(t),I(t.rich,zC),t}function zC(t){if(t){t.font=ze.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||YI[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||qI[n]?n:"top";var r=t.padding;r&&(t.padding=o_(t.padding))}}function NC(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function IC(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function BC(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function PC(t){var e=t.text;return e!=null&&(e+=""),e}function Om(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var te=xe(),WI=function(t,e,n,r){if(r){var i=te(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",r.type==="group"&&r.traverse(function(a){var l=te(a);l.seriesIndex=t,l.dataIndex=n,l.dataType=e,l.ssrType="chart"})}},kC=1,HC={},eD=xe(),b_=xe(),nD=0,w_=1,C_=2,jr=["emphasis","blur","select"],Md=["normal","emphasis","blur","select"],QI=10,KI=9,Ro="highlight",id="downplay",Xu="select",ad="unselect",Zu="toggleSelect";function Tl(t){return t!=null&&t!=="none"}function ev(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function rD(t){ev(t,"emphasis",C_)}function iD(t){t.hoverState===C_&&ev(t,"normal",nD)}function M_(t){ev(t,"blur",w_)}function aD(t){t.hoverState===w_&&ev(t,"normal",nD)}function JI(t){t.selected=!0}function tB(t){t.selected=!1}function VC(t,e,n){e(t,n)}function Li(t,e,n){VC(t,e,n),t.isGroup&&t.traverse(function(r){VC(r,e,n)})}function eB(t,e,n,r){for(var i=t.style,a={},l=0;l<e.length;l++){var u=e[l],f=i[u];a[u]=f??(r&&r[u])}for(var l=0;l<t.animators.length;l++){var c=t.animators[l];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName==="style"&&c.saveTo(a,e)}return a}function nB(t,e,n,r){var i=n&&Wt(n,"select")>=0,a=!1;if(t instanceof le){var l=eD(t),u=i&&l.selectFill||l.normalFill,f=i&&l.selectStroke||l.normalStroke;if(Tl(u)||Tl(f)){r=r||{};var c=r.style||{};c.fill==="inherit"?(a=!0,r=lt({},r),c=lt({},c),c.fill=u):!Tl(c.fill)&&Tl(u)?(a=!0,r=lt({},r),c=lt({},c),c.fill=Yy(u)):!Tl(c.stroke)&&Tl(f)&&(a||(r=lt({},r),c=lt({},c)),c.stroke=Yy(f)),r.style=c}}if(r&&r.z2==null){a||(r=lt({},r));var d=t.z2EmphasisLift;r.z2=t.z2+(d??QI)}return r}function rB(t,e,n){if(n&&n.z2==null){n=lt({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??KI)}return n}function iB(t,e,n){var r=Wt(t.currentStates,e)>=0,i=t.style.opacity,a=r?null:eB(t,["opacity"],e,{opacity:1});n=n||{};var l=n.style||{};return l.opacity==null&&(n=lt({},n),l=lt({opacity:r?i:a.opacity*.1},l),n.style=l),n}function zm(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return nB(this,t,e,n);if(t==="blur")return iB(this,t,n);if(t==="select")return rB(this,t,n)}return n}function aB(t){t.stateProxy=zm;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=zm),n&&(n.stateProxy=zm)}function FC(t,e){!uD(t,e)&&!t.__highByOuter&&Li(t,rD)}function GC(t,e){!uD(t,e)&&!t.__highByOuter&&Li(t,iD)}function o0(t,e){t.__highByOuter|=1<<(e||0),Li(t,rD)}function l0(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Li(t,iD)}function oB(t){Li(t,M_)}function oD(t){Li(t,aD)}function lD(t){Li(t,JI)}function sD(t){Li(t,tB)}function uD(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function fD(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(i,a){var l=b_(a),u=i==="series",f=u?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!u&&r.push(f),l.isBlured&&(f.group.traverse(function(c){aD(c)}),u&&n.push(a)),l.isBlured=!1}),I(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,e)})}function s0(t,e,n,r){var i=r.getModel();n=n||"coordinateSystem";function a(c,d){for(var v=0;v<d.length;v++){var m=c.getItemGraphicEl(d[v]);m&&oD(m)}}if(t!=null&&!(!e||e==="none")){var l=i.getSeriesByIndex(t),u=l.coordinateSystem;u&&u.master&&(u=u.master);var f=[];i.eachSeries(function(c){var d=l===c,v=c.coordinateSystem;v&&v.master&&(v=v.master);var m=v&&u?v===u:d;if(!(n==="series"&&!d||n==="coordinateSystem"&&!m||e==="series"&&d)){var p=r.getViewOfSeriesModel(c);if(p.group.traverse(function(x){x.__highByOuter&&d&&e==="self"||M_(x)}),ln(e))a(c.getData(),e);else if(bt(e))for(var y=de(e),S=0;S<y.length;S++)a(c.getData(y[S]),e[y[S]]);f.push(c),b_(c).isBlured=!0}}),i.eachComponent(function(c,d){if(c!=="series"){var v=r.getViewOfComponentModel(d);v&&v.toggleBlurSeries&&v.toggleBlurSeries(f,!0,i)}})}}function u0(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){b_(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(a){M_(a)})}}}function lB(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=Of(i,e);a=(ft(a)?a[0]:a)||0;var l=i.getItemGraphicEl(a);if(!l)for(var u=i.count(),f=0;!l&&f<u;)l=i.getItemGraphicEl(f++);if(l){var c=te(l);s0(r,c.focus,c.blurScope,n)}else{var d=t.get(["emphasis","focus"]),v=t.get(["emphasis","blurScope"]);d!=null&&s0(r,d,v,n)}}}function T_(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||n==null)return i;var a=r.getModel().getComponent(t,e);if(!a)return i;var l=r.getViewOfComponentModel(a);if(!l||!l.findHighDownDispatchers)return i;for(var u=l.findHighDownDispatchers(n),f,c=0;c<u.length;c++)if(te(u[c]).focus==="self"){f=!0;break}return{focusSelf:f,dispatchers:u}}function sB(t,e,n){var r=te(t),i=T_(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,l=i.focusSelf;a?(l&&u0(r.componentMainType,r.componentIndex,n),I(a,function(u){return FC(u,e)})):(s0(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&u0(r.componentMainType,r.componentIndex,n),FC(t,e))}function uB(t,e,n){fD(n);var r=te(t),i=T_(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?I(i,function(a){return GC(a,e)}):GC(t,e)}function fB(t,e,n){if(c0(e)){var r=e.dataType,i=t.getData(r),a=Of(i,e);ft(a)||(a=[a]),t[e.type===Zu?"toggleSelect":e.type===Xu?"select":"unselect"](a,r)}}function UC(t){var e=t.getAllData();I(e,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(a,l){t.isSelected(l,i)?lD(a):sD(a)})})}function cB(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();I(r,function(i){i.data;var a=i.type,l=n.getSelectedDataIndices();if(l.length>0){var u={dataIndex:l,seriesIndex:n.seriesIndex};a!=null&&(u.dataType=a),e.push(u)}})}),e}function df(t,e,n){dD(t,!0),Li(t,aB),dB(t,e,n)}function hB(t){dD(t,!1)}function cD(t,e,n,r){r?hB(t):df(t,e,n)}function dB(t,e,n){var r=te(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var jC=["emphasis","blur","select"],vB={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function hD(t,e,n,r){n=n||"itemStyle";for(var i=0;i<jC.length;i++){var a=jC[i],l=e.getModel([a,n]),u=t.ensureState(a);u.style=l[vB[n]]()}}function dD(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 f0(t){return!!(t&&t.__highDownDispatcher)}function gB(t){var e=HC[t];return e==null&&kC<=32&&(e=HC[t]=kC++),e}function c0(t){var e=t.type;return e===Xu||e===ad||e===Zu}function YC(t){var e=t.type;return e===Ro||e===id}function pB(t){var e=eD(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 Al=es.CMD,mB=[[],[],[]],qC=Math.sqrt,yB=Math.atan2;function _B(t,e){if(e){var n=t.data,r=t.len(),i,a,l,u,f,c,d=Al.M,v=Al.C,m=Al.L,p=Al.R,y=Al.A,S=Al.Q;for(l=0,u=0;l<r;){switch(i=n[l++],u=l,a=0,i){case d:a=1;break;case m:a=1;break;case v:a=3;break;case S:a=2;break;case y:var x=e[4],w=e[5],C=qC(e[0]*e[0]+e[1]*e[1]),M=qC(e[2]*e[2]+e[3]*e[3]),A=yB(-e[1]/M,e[0]/C);n[l]*=C,n[l++]+=x,n[l]*=M,n[l++]+=w,n[l++]*=C,n[l++]*=M,n[l++]+=A,n[l++]+=A,l+=2,u=l;break;case p:c[0]=n[l++],c[1]=n[l++],an(c,c,e),n[u++]=c[0],n[u++]=c[1],c[0]+=n[l++],c[1]+=n[l++],an(c,c,e),n[u++]=c[0],n[u++]=c[1]}for(f=0;f<a;f++){var R=mB[f];R[0]=n[l++],R[1]=n[l++],an(R,R,e),n[u++]=R[0],n[u++]=R[1]}}t.increaseVersion()}}var Nm=Math.sqrt,_h=Math.sin,Sh=Math.cos,Su=Math.PI;function XC(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function h0(t,e){return(t[0]*e[0]+t[1]*e[1])/(XC(t)*XC(e))}function ZC(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(h0(t,e))}function $C(t,e,n,r,i,a,l,u,f,c,d){var v=f*(Su/180),m=Sh(v)*(t-n)/2+_h(v)*(e-r)/2,p=-1*_h(v)*(t-n)/2+Sh(v)*(e-r)/2,y=m*m/(l*l)+p*p/(u*u);y>1&&(l*=Nm(y),u*=Nm(y));var S=(i===a?-1:1)*Nm((l*l*(u*u)-l*l*(p*p)-u*u*(m*m))/(l*l*(p*p)+u*u*(m*m)))||0,x=S*l*p/u,w=S*-u*m/l,C=(t+n)/2+Sh(v)*x-_h(v)*w,M=(e+r)/2+_h(v)*x+Sh(v)*w,A=ZC([1,0],[(m-x)/l,(p-w)/u]),R=[(m-x)/l,(p-w)/u],D=[(-1*m-x)/l,(-1*p-w)/u],L=ZC(R,D);if(h0(R,D)<=-1&&(L=Su),h0(R,D)>=1&&(L=0),L<0){var O=Math.round(L/Su*1e6)/1e6;L=Su*2+O%2*Su}d.addData(c,C,M,l,u,A,L,v,a)}var SB=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,xB=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bB(t){var e=new es;if(!t)return e;var n=0,r=0,i=n,a=r,l,u=es.CMD,f=t.match(SB);if(!f)return e;for(var c=0;c<f.length;c++){for(var d=f[c],v=d.charAt(0),m=void 0,p=d.match(xB)||[],y=p.length,S=0;S<y;S++)p[S]=parseFloat(p[S]);for(var x=0;x<y;){var w=void 0,C=void 0,M=void 0,A=void 0,R=void 0,D=void 0,L=void 0,O=n,B=r,H=void 0,P=void 0;switch(v){case"l":n+=p[x++],r+=p[x++],m=u.L,e.addData(m,n,r);break;case"L":n=p[x++],r=p[x++],m=u.L,e.addData(m,n,r);break;case"m":n+=p[x++],r+=p[x++],m=u.M,e.addData(m,n,r),i=n,a=r,v="l";break;case"M":n=p[x++],r=p[x++],m=u.M,e.addData(m,n,r),i=n,a=r,v="L";break;case"h":n+=p[x++],m=u.L,e.addData(m,n,r);break;case"H":n=p[x++],m=u.L,e.addData(m,n,r);break;case"v":r+=p[x++],m=u.L,e.addData(m,n,r);break;case"V":r=p[x++],m=u.L,e.addData(m,n,r);break;case"C":m=u.C,e.addData(m,p[x++],p[x++],p[x++],p[x++],p[x++],p[x++]),n=p[x-2],r=p[x-1];break;case"c":m=u.C,e.addData(m,p[x++]+n,p[x++]+r,p[x++]+n,p[x++]+r,p[x++]+n,p[x++]+r),n+=p[x-2],r+=p[x-1];break;case"S":w=n,C=r,H=e.len(),P=e.data,l===u.C&&(w+=n-P[H-4],C+=r-P[H-3]),m=u.C,O=p[x++],B=p[x++],n=p[x++],r=p[x++],e.addData(m,w,C,O,B,n,r);break;case"s":w=n,C=r,H=e.len(),P=e.data,l===u.C&&(w+=n-P[H-4],C+=r-P[H-3]),m=u.C,O=n+p[x++],B=r+p[x++],n+=p[x++],r+=p[x++],e.addData(m,w,C,O,B,n,r);break;case"Q":O=p[x++],B=p[x++],n=p[x++],r=p[x++],m=u.Q,e.addData(m,O,B,n,r);break;case"q":O=p[x++]+n,B=p[x++]+r,n+=p[x++],r+=p[x++],m=u.Q,e.addData(m,O,B,n,r);break;case"T":w=n,C=r,H=e.len(),P=e.data,l===u.Q&&(w+=n-P[H-4],C+=r-P[H-3]),n=p[x++],r=p[x++],m=u.Q,e.addData(m,w,C,n,r);break;case"t":w=n,C=r,H=e.len(),P=e.data,l===u.Q&&(w+=n-P[H-4],C+=r-P[H-3]),n+=p[x++],r+=p[x++],m=u.Q,e.addData(m,w,C,n,r);break;case"A":M=p[x++],A=p[x++],R=p[x++],D=p[x++],L=p[x++],O=n,B=r,n=p[x++],r=p[x++],m=u.A,$C(O,B,n,r,D,L,M,A,R,m,e);break;case"a":M=p[x++],A=p[x++],R=p[x++],D=p[x++],L=p[x++],O=n,B=r,n+=p[x++],r+=p[x++],m=u.A,$C(O,B,n,r,D,L,M,A,R,m,e);break}}(v==="z"||v==="Z")&&(m=u.Z,e.addData(m),n=i,r=a),l=m}return e.toStatic(),e}var vD=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e})(le);function gD(t){return t.setData!=null}function pD(t,e){var n=bB(t),r=lt({},e);return r.buildPath=function(i){if(gD(i)){i.setData(n.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;n.rebuildPath(a,1)}},r.applyTransform=function(i){_B(n,i),this.dirtyShape()},r}function wB(t,e){return new vD(pD(t,e))}function CB(t,e){var n=pD(t,e),r=(function(i){ut(a,i);function a(l){var u=i.call(this,l)||this;return u.applyTransform=n.applyTransform,u.buildPath=n.buildPath,u}return a})(vD);return r}function MB(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var a=t[i];n.push(a.getUpdatedPathProxy(!0))}var l=new le(e);return l.createPathProxy(),l.buildPath=function(u){if(gD(u)){u.appendPath(n);var f=u.getContext();f&&u.rebuildPath(f,1)}},l}var TB=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),If=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new TB},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})(le);If.prototype.type="circle";var AB=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),nv=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new AB},e.prototype.buildPath=function(n,r){var i=.5522848,a=r.cx,l=r.cy,u=r.rx,f=r.ry,c=u*i,d=f*i;n.moveTo(a-u,l),n.bezierCurveTo(a-u,l-d,a-c,l-f,a,l-f),n.bezierCurveTo(a+c,l-f,a+u,l-d,a+u,l),n.bezierCurveTo(a+u,l+d,a+c,l+f,a,l+f),n.bezierCurveTo(a-c,l+f,a-u,l+d,a-u,l),n.closePath()},e})(le);nv.prototype.type="ellipse";var mD=Math.PI,Im=mD*2,co=Math.sin,Dl=Math.cos,DB=Math.acos,Ye=Math.atan2,WC=Math.abs,$u=Math.sqrt,Vu=Math.max,Pr=Math.min,Sr=1e-4;function RB(t,e,n,r,i,a,l,u){var f=n-t,c=r-e,d=l-i,v=u-a,m=v*f-d*c;if(!(m*m<Sr))return m=(d*(e-a)-v*(t-i))/m,[t+m*f,e+m*c]}function xh(t,e,n,r,i,a,l){var u=t-n,f=e-r,c=(l?a:-a)/$u(u*u+f*f),d=c*f,v=-c*u,m=t+d,p=e+v,y=n+d,S=r+v,x=(m+y)/2,w=(p+S)/2,C=y-m,M=S-p,A=C*C+M*M,R=i-a,D=m*S-y*p,L=(M<0?-1:1)*$u(Vu(0,R*R*A-D*D)),O=(D*M-C*L)/A,B=(-D*C-M*L)/A,H=(D*M+C*L)/A,P=(-D*C+M*L)/A,q=O-x,$=B-w,W=H-x,J=P-w;return q*q+$*$>W*W+J*J&&(O=H,B=P),{cx:O,cy:B,x0:-d,y0:-v,x1:O*(i/R-1),y1:B*(i/R-1)}}function EB(t){var e;if(ft(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 LB(t,e){var n,r=Vu(e.r,0),i=Vu(e.r0||0,0),a=r>0,l=i>0;if(!(!a&&!l)){if(a||(r=i,i=0),i>r){var u=r;r=i,i=u}var f=e.startAngle,c=e.endAngle;if(!(isNaN(f)||isNaN(c))){var d=e.cx,v=e.cy,m=!!e.clockwise,p=WC(c-f),y=p>Im&&p%Im;if(y>Sr&&(p=y),!(r>Sr))t.moveTo(d,v);else if(p>Im-Sr)t.moveTo(d+r*Dl(f),v+r*co(f)),t.arc(d,v,r,f,c,!m),i>Sr&&(t.moveTo(d+i*Dl(c),v+i*co(c)),t.arc(d,v,i,c,f,m));else{var S=void 0,x=void 0,w=void 0,C=void 0,M=void 0,A=void 0,R=void 0,D=void 0,L=void 0,O=void 0,B=void 0,H=void 0,P=void 0,q=void 0,$=void 0,W=void 0,J=r*Dl(f),V=r*co(f),K=i*Dl(c),j=i*co(c),rt=p>Sr;if(rt){var it=e.cornerRadius;it&&(n=EB(it),S=n[0],x=n[1],w=n[2],C=n[3]);var N=WC(r-i)/2;if(M=Pr(N,w),A=Pr(N,C),R=Pr(N,S),D=Pr(N,x),B=L=Vu(M,A),H=O=Vu(R,D),(L>Sr||O>Sr)&&(P=r*Dl(c),q=r*co(c),$=i*Dl(f),W=i*co(f),p<mD)){var U=RB(J,V,$,W,P,q,K,j);if(U){var at=J-U[0],ot=V-U[1],ct=P-U[0],dt=q-U[1],st=1/co(DB((at*ct+ot*dt)/($u(at*at+ot*ot)*$u(ct*ct+dt*dt)))/2),Bt=$u(U[0]*U[0]+U[1]*U[1]);B=Pr(L,(r-Bt)/(st+1)),H=Pr(O,(i-Bt)/(st-1))}}}if(!rt)t.moveTo(d+J,v+V);else if(B>Sr){var xt=Pr(w,B),Yt=Pr(C,B),yt=xh($,W,J,V,r,xt,m),Et=xh(P,q,K,j,r,Yt,m);t.moveTo(d+yt.cx+yt.x0,v+yt.cy+yt.y0),B<L&&xt===Yt?t.arc(d+yt.cx,v+yt.cy,B,Ye(yt.y0,yt.x0),Ye(Et.y0,Et.x0),!m):(xt>0&&t.arc(d+yt.cx,v+yt.cy,xt,Ye(yt.y0,yt.x0),Ye(yt.y1,yt.x1),!m),t.arc(d,v,r,Ye(yt.cy+yt.y1,yt.cx+yt.x1),Ye(Et.cy+Et.y1,Et.cx+Et.x1),!m),Yt>0&&t.arc(d+Et.cx,v+Et.cy,Yt,Ye(Et.y1,Et.x1),Ye(Et.y0,Et.x0),!m))}else t.moveTo(d+J,v+V),t.arc(d,v,r,f,c,!m);if(!(i>Sr)||!rt)t.lineTo(d+K,v+j);else if(H>Sr){var xt=Pr(S,H),Yt=Pr(x,H),yt=xh(K,j,P,q,i,-Yt,m),Et=xh(J,V,$,W,i,-xt,m);t.lineTo(d+yt.cx+yt.x0,v+yt.cy+yt.y0),H<O&&xt===Yt?t.arc(d+yt.cx,v+yt.cy,H,Ye(yt.y0,yt.x0),Ye(Et.y0,Et.x0),!m):(Yt>0&&t.arc(d+yt.cx,v+yt.cy,Yt,Ye(yt.y0,yt.x0),Ye(yt.y1,yt.x1),!m),t.arc(d,v,i,Ye(yt.cy+yt.y1,yt.cx+yt.x1),Ye(Et.cy+Et.y1,Et.cx+Et.x1),m),xt>0&&t.arc(d+Et.cx,v+Et.cy,xt,Ye(Et.y1,Et.x1),Ye(Et.y0,Et.x0),!m))}else t.lineTo(d+K,v+j),t.arc(d,v,i,c,f,m)}t.closePath()}}}var OB=(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})(),Oi=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new OB},e.prototype.buildPath=function(n,r){LB(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(le);Oi.prototype.type="sector";var zB=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),rv=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new zB},e.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,l=Math.PI*2;n.moveTo(i+r.r,a),n.arc(i,a,r.r,0,l,!1),n.moveTo(i+r.r0,a),n.arc(i,a,r.r0,0,l,!0)},e})(le);rv.prototype.type="ring";function NB(t,e,n,r){var i=[],a=[],l=[],u=[],f,c,d,v;if(r){d=[1/0,1/0],v=[-1/0,-1/0];for(var m=0,p=t.length;m<p;m++)ha(d,d,t[m]),da(v,v,t[m]);ha(d,d,r[0]),da(v,v,r[1])}for(var m=0,p=t.length;m<p;m++){var y=t[m];if(n)f=t[m?m-1:p-1],c=t[(m+1)%p];else if(m===0||m===p-1){i.push(l2(t[m]));continue}else f=t[m-1],c=t[m+1];s2(a,c,f),Wh(a,a,e);var S=gd(y,f),x=gd(y,c),w=S+x;w!==0&&(S/=w,x/=w),Wh(l,a,-S),Wh(u,a,x);var C=ky([],y,l),M=ky([],y,u);r&&(da(C,C,d),ha(C,C,v),da(M,M,d),ha(M,M,v)),i.push(C),i.push(M)}return n&&i.push(i.shift()),i}function yD(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var a=NB(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var l=i.length,u=0;u<(n?l:l-1);u++){var f=a[u*2],c=a[u*2+1],d=i[(u+1)%l];t.bezierCurveTo(f[0],f[1],c[0],c[1],d[0],d[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var u=1,v=i.length;u<v;u++)t.lineTo(i[u][0],i[u][1])}n&&t.closePath()}}var IB=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Bf=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new IB},e.prototype.buildPath=function(n,r){yD(n,r,!0)},e})(le);Bf.prototype.type="polygon";var BB=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),Io=(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 BB},e.prototype.buildPath=function(n,r){yD(n,r,!1)},e})(le);Io.prototype.type="polyline";var PB={},kB=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Ri=(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 kB},e.prototype.buildPath=function(n,r){var i,a,l,u;if(this.subPixelOptimize){var f=J2(PB,r,this.style);i=f.x1,a=f.y1,l=f.x2,u=f.y2}else i=r.x1,a=r.y1,l=r.x2,u=r.y2;var c=r.percent;c!==0&&(n.moveTo(i,a),c<1&&(l=i*(1-c)+l*c,u=a*(1-c)+u*c),n.lineTo(l,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})(le);Ri.prototype.type="line";var mn=[],HB=(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 QC(t,e,n){var r=t.cpx2,i=t.cpy2;return r!=null||i!=null?[(n?aC:rn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?aC:rn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?oC:_n)(t.x1,t.cpx1,t.x2,e),(n?oC:_n)(t.y1,t.cpy1,t.y2,e)]}var iv=(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 HB},e.prototype.buildPath=function(n,r){var i=r.x1,a=r.y1,l=r.x2,u=r.y2,f=r.cpx1,c=r.cpy1,d=r.cpx2,v=r.cpy2,m=r.percent;m!==0&&(n.moveTo(i,a),d==null||v==null?(m<1&&(xd(i,f,l,m,mn),f=mn[1],l=mn[2],xd(a,c,u,m,mn),c=mn[1],u=mn[2]),n.quadraticCurveTo(f,c,l,u)):(m<1&&(Sd(i,f,d,l,m,mn),f=mn[1],d=mn[2],l=mn[3],Sd(a,c,v,u,m,mn),c=mn[1],v=mn[2],u=mn[3]),n.bezierCurveTo(f,c,d,v,l,u)))},e.prototype.pointAt=function(n){return QC(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=QC(this.shape,n,!0);return u2(r,r)},e})(le);iv.prototype.type="bezier-curve";var VB=(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})(),Pf=(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 VB},e.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,l=Math.max(r.r,0),u=r.startAngle,f=r.endAngle,c=r.clockwise,d=Math.cos(u),v=Math.sin(u);n.moveTo(d*l+i,v*l+a),n.arc(i,a,l,u,f,!c)},e})(le);Pf.prototype.type="arc";var _D=(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(),i=0;i<n.length;i++)r=r||n[i].shapeChanged();r&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),i=0;i<n.length;i++)n[i].path||n[i].createPathProxy(),n[i].path.setScale(r[0],r[1],n[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(n,r){for(var i=r.paths||[],a=0;a<i.length;a++)i[a].buildPath(n,i[a].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),le.prototype.getBoundingRect.call(this)},e})(le),SD=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t})(),xD=(function(t){ut(e,t);function e(n,r,i,a,l,u){var f=t.call(this,l)||this;return f.x=n??0,f.y=r??0,f.x2=i??1,f.y2=a??0,f.type="linear",f.global=u||!1,f}return e})(SD),bD=(function(t){ut(e,t);function e(n,r,i,a,l){var u=t.call(this,a)||this;return u.x=n??.5,u.y=r??.5,u.r=i??.5,u.type="radial",u.global=l||!1,u}return e})(SD),ho=[0,0],vo=[0,0],bh=new Rt,wh=new Rt,Td=(function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Rt;for(var r=0;r<2;r++)this._axes[r]=new Rt;e&&this.fromBoundingRect(e,n)}return t.prototype.fromBoundingRect=function(e,n){var r=this._corners,i=this._axes,a=e.x,l=e.y,u=a+e.width,f=l+e.height;if(r[0].set(a,l),r[1].set(u,l),r[2].set(u,f),r[3].set(a,f),n)for(var c=0;c<4;c++)r[c].transform(n);Rt.sub(i[0],r[1],r[0]),Rt.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var c=0;c<2;c++)this._origin[c]=i[c].dot(r[0])},t.prototype.intersect=function(e,n){var r=!0,i=!n;return bh.set(1/0,1/0),wh.set(0,0),!this._intersectCheckOneSide(this,e,bh,wh,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,bh,wh,i,-1)&&(r=!1,i)||i||Rt.copy(n,r?bh:wh),r},t.prototype._intersectCheckOneSide=function(e,n,r,i,a,l){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,a)return u;var d=Math.abs(vo[0]-ho[1]),v=Math.abs(ho[0]-vo[1]);Math.min(d,v)>i.len()&&(d<v?Rt.scale(i,c,-d*l):Rt.scale(i,c,v*l))}else if(r){var d=Math.abs(vo[0]-ho[1]),v=Math.abs(ho[0]-vo[1]);Math.min(d,v)<r.len()&&(d<v?Rt.scale(r,c,d*l):Rt.scale(r,c,-v*l))}}return u},t.prototype._getProjMinMaxOnAxis=function(e,n,r){for(var i=this._axes[e],a=this._origin,l=n[0].dot(i)+a[e],u=l,f=l,c=1;c<n.length;c++){var d=n[c].dot(i)+a[e];u=Math.min(d,u),f=Math.max(d,f)}r[0]=u,r[1]=f},t})(),FB=[],wD=(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 i=0;i<n.length;i++)this.addDisplayable(n[i],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 Xt(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(FB)),n.union(a)}this._rect=n}return this._rect},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var l=0;l<this._displayables.length;l++){var u=this._displayables[l];if(u.contain(n,r))return!0}return!1},e})(Nf),GB=xe();function UB(t,e,n,r,i){var a;if(e&&e.ecModel){var l=e.ecModel.getUpdatePayload();a=l&&l.animation}var u=e&&e.isAnimationEnabled(),f=t==="update";if(u){var c=void 0,d=void 0,v=void 0;r?(c=Pt(r.duration,200),d=Pt(r.easing,"cubicOut"),v=0):(c=e.getShallow(f?"animationDurationUpdate":"animationDuration"),d=e.getShallow(f?"animationEasingUpdate":"animationEasing"),v=e.getShallow(f?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(c=a.duration),a.easing!=null&&(d=a.easing),a.delay!=null&&(v=a.delay)),It(v)&&(v=v(n,i)),It(c)&&(c=c(n));var m={duration:c||0,delay:v,easing:d};return m}else return null}function A_(t,e,n,r,i,a,l){var u=!1,f;It(i)?(l=a,a=i,i=null):bt(i)&&(a=i.cb,l=i.during,u=i.isFrom,f=i.removeOpt,i=i.dataIndex);var c=t==="leave";c||e.stopAnimation("leave");var d=UB(t,r,i,c?f||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(d&&d.duration>0){var v=d.duration,m=d.delay,p=d.easing,y={duration:v,delay:m||0,easing:p,done:a,force:!!a||!!l,setToFinal:!c,scope:t,during:l};u?e.animateFrom(n,y):e.animateTo(n,y)}else e.stopAnimation(),!u&&e.attr(n),l&&l(1),a&&a()}function fr(t,e,n,r,i,a){A_("update",t,e,n,r,i,a)}function Ti(t,e,n,r,i,a){A_("enter",t,e,n,r,i,a)}function Wu(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 CD(t,e,n,r,i,a){Wu(t)||A_("leave",t,e,n,r,i,a)}function KC(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),CD(t,{style:{opacity:0}},e,n,r)}function Ad(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||KC(i,e,n,r)}):KC(t,e,n,r)}function MD(t){GB(t).oldStyle=t.style}var Dd=Math.max,Rd=Math.min,d0={};function TD(t){return le.extend(t)}var jB=CB;function AD(t,e){return jB(t,e)}function hr(t,e){d0[t]=e}function DD(t){if(d0.hasOwnProperty(t))return d0[t]}function av(t,e,n,r){var i=wB(t,e);return n&&(r==="center"&&(n=RD(n,i.getBoundingRect())),R_(i,n)),i}function D_(t,e,n){var r=new La({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(n==="center"){var a={width:i.width,height:i.height};r.setStyle(RD(e,a))}}});return r}function RD(t,e){var n=e.width/e.height,r=t.height*n,i;r<=t.width?i=t.height:(r=t.width,i=r/n);var a=t.x+t.width/2,l=t.y+t.height/2;return{x:a-r/2,y:l-i/2,width:r,height:i}}var ED=MB;function R_(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function vf(t,e){return J2(t,t,{lineWidth:e}),t}function YB(t){return tD(t.shape,t.shape,t.style),t}var qB=bo;function E_(t,e){for(var n=Df([]);t&&t!==e;)ba(n,t.getLocalTransform(),n),t=t.parent;return n}function gf(t,e,n){return e&&!ln(e)&&(e=d_.getLocalTransform(e)),n&&(e=Rf([],e)),an([],t,e)}function LD(t,e,n){var r=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),a=[t==="left"?-r:t==="right"?r:0,t==="top"?-i:t==="bottom"?i:0];return a=gf(a,e,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function JC(t){return!t.isGroup}function XB(t){return t.shape!=null}function OD(t,e,n){if(!t||!e)return;function r(l){var u={};return l.traverse(function(f){JC(f)&&f.anid&&(u[f.anid]=f)}),u}function i(l){var u={x:l.x,y:l.y,rotation:l.rotation};return XB(l)&&(u.shape=lt({},l.shape)),u}var a=r(t);e.traverse(function(l){if(JC(l)&&l.anid){var u=a[l.anid];if(u){var f=i(l);l.attr(i(u)),fr(l,f,n,te(l).dataIndex)}}})}function zD(t,e){return St(t,function(n){var r=n[0];r=Dd(r,e.x),r=Rd(r,e.x+e.width);var i=n[1];return i=Dd(i,e.y),i=Rd(i,e.y+e.height),[r,i]})}function ND(t,e){var n=Dd(t.x,e.x),r=Rd(t.x+t.width,e.x+e.width),i=Dd(t.y,e.y),a=Rd(t.y+t.height,e.y+e.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function ov(t,e,n){var r=lt({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),Kt(i,n),new La(r)):av(t.replace("path://",""),r,n,"center")}function ZB(t,e,n,r,i){for(var a=0,l=i[i.length-1];a<i.length;a++){var u=i[a];if(ID(t,e,n,r,u[0],u[1],l[0],l[1]))return!0;l=u}}function ID(t,e,n,r,i,a,l,u){var f=n-t,c=r-e,d=l-i,v=u-a,m=Bm(d,v,f,c);if($B(m))return!1;var p=t-i,y=e-a,S=Bm(p,y,f,c)/m;if(S<0||S>1)return!1;var x=Bm(p,y,d,v)/m;return!(x<0||x>1)}function Bm(t,e,n,r){return t*r-n*e}function $B(t){return t<=1e-6&&t>=-1e-6}function lv(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=gt(e)?{formatter:e}:e,a=n.mainType,l=n.componentIndex,u={componentType:a,name:r,$vars:["name"]};u[a+"Index"]=l;var f=t.formatterParamsExtra;f&&I(de(f),function(d){Ta(u,d)||(u[d]=f[d],u.$vars.push(d))});var c=te(t.el);c.componentMainType=a,c.componentIndex=l,c.tooltipConfig={name:r,option:Kt({content:r,encodeHTMLContent:!0,formatterParams:u},i)}}function tM(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function L_(t,e){if(t)if(ft(t))for(var n=0;n<t.length;n++)tM(t[n],e);else tM(t,e)}hr("circle",If);hr("ellipse",nv);hr("sector",Oi);hr("ring",rv);hr("polygon",Bf);hr("polyline",Io);hr("rect",ge);hr("line",Ri);hr("bezierCurve",iv);hr("arc",Pf);const WB=Object.freeze(Object.defineProperty({__proto__:null,Arc:Pf,BezierCurve:iv,BoundingRect:Xt,Circle:If,CompoundPath:_D,Ellipse:nv,Group:Qe,Image:La,IncrementalDisplayable:wD,Line:Ri,LinearGradient:xD,OrientedBoundingRect:Td,Path:le,Point:Rt,Polygon:Bf,Polyline:Io,RadialGradient:bD,Rect:ge,Ring:rv,Sector:Oi,Text:ze,applyTransform:gf,clipPointsByRect:zD,clipRectByRect:ND,createIcon:ov,extendPath:AD,extendShape:TD,getShapeClass:DD,getTransform:E_,groupTransition:OD,initProps:Ti,isElementRemoved:Wu,lineLineIntersect:ID,linePolygonIntersect:ZB,makeImage:D_,makePath:av,mergePath:ED,registerShape:hr,removeElement:CD,removeElementWithFadeOut:Ad,resizePath:R_,setTooltipConfig:lv,subPixelOptimize:qB,subPixelOptimizeLine:vf,subPixelOptimizeRect:YB,transformDirection:LD,traverseElements:L_,updateProps:fr},Symbol.toStringTag,{value:"Module"}));var sv={};function QB(t,e){for(var n=0;n<jr.length;n++){var r=jr[n],i=e[r],a=t.ensureState(r);a.style=a.style||{},a.style.text=i}var l=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(l,!0)}function eM(t,e,n){var r=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,l=e.normal,u;r&&(u=r.getFormattedLabel(i,"normal",null,a,l&&l.get("formatter"),n!=null?{interpolatedValue:n}:null)),u==null&&(u=It(t.defaultText)?t.defaultText(i,t,n):t.defaultText);for(var f={normal:u},c=0;c<jr.length;c++){var d=jr[c],v=e[d];f[d]=Pt(r?r.getFormattedLabel(i,d,null,a,v&&v.get("formatter")):null,u)}return f}function O_(t,e,n,r){n=n||sv;for(var i=t instanceof ze,a=!1,l=0;l<Md.length;l++){var u=e[Md[l]];if(u&&u.getShallow("show")){a=!0;break}}var f=i?t:t.getTextContent();if(a){i||(f||(f=new ze,t.setTextContent(f)),t.stateProxy&&(f.stateProxy=t.stateProxy));var c=eM(n,e),d=e.normal,v=!!d.getShallow("show"),m=Yr(d,r,n,!1,!i);m.text=c.normal,i||t.setTextConfig(nM(d,n,!1));for(var l=0;l<jr.length;l++){var p=jr[l],u=e[p];if(u){var y=f.ensureState(p),S=!!Pt(u.getShallow("show"),v);if(S!==v&&(y.ignore=!S),y.style=Yr(u,r,n,!0,!i),y.style.text=c[p],!i){var x=t.ensureState(p);x.textConfig=nM(u,n,!0)}}}f.silent=!!d.getShallow("silent"),f.style.x!=null&&(m.x=f.style.x),f.style.y!=null&&(m.y=f.style.y),f.ignore=!v,f.useStyle(m),f.dirty(),n.enableTextSetter&&(z_(f).setLabelText=function(w){var C=eM(n,e,w);QB(f,C)})}else f&&(f.ignore=!0);t.dirty()}function BD(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<jr.length;r++){var i=jr[r];n[i]=t.getModel([i,e])}return n}function Yr(t,e,n,r,i){var a={};return KB(a,t,n,r,i),e&&lt(a,e),a}function nM(t,e,n){e=e||{};var r={},i,a=t.getShallow("rotate"),l=Pt(t.getShallow("distance"),n?null:5),u=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(r.position=i),u!=null&&(r.offset=u),a!=null&&(a*=Math.PI/180,r.rotation=a),l!=null&&(r.distance=l),r.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",r}function KB(t,e,n,r,i){n=n||sv;var a=e.ecModel,l=a&&a.option.textStyle,u=JB(e),f;if(u){f={};for(var c in u)if(u.hasOwnProperty(c)){var d=e.getModel(["rich",c]);oM(f[c]={},d,l,n,r,i,!1,!0)}}f&&(t.rich=f);var v=e.get("overflow");v&&(t.overflow=v);var m=e.get("minMargin");m!=null&&(t.margin=m),oM(t,e,l,n,r,i,!0,!1)}function JB(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||sv).rich;if(n){e=e||{};for(var r=de(n),i=0;i<r.length;i++){var a=r[i];e[a]=1}}t=t.parentModel}return e}var rM=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],iM=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],aM=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function oM(t,e,n,r,i,a,l,u){n=!i&&n||sv;var f=r&&r.inheritColor,c=e.getShallow("color"),d=e.getShallow("textBorderColor"),v=Pt(e.getShallow("opacity"),n.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(d==="inherit"||d==="auto")&&(f?d=f:d=null),a||(c=c||n.color,d=d||n.textBorderColor),c!=null&&(t.fill=c),d!=null&&(t.stroke=d);var m=Pt(e.getShallow("textBorderWidth"),n.textBorderWidth);m!=null&&(t.lineWidth=m);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),!i&&v==null&&!u&&(v=r&&r.defaultOpacity),v!=null&&(t.opacity=v),!i&&!a&&t.fill==null&&r.inheritColor&&(t.fill=r.inheritColor);for(var S=0;S<rM.length;S++){var x=rM[S],w=Pt(e.getShallow(x),n[x]);w!=null&&(t[x]=w)}for(var S=0;S<iM.length;S++){var x=iM[S],w=e.getShallow(x);w!=null&&(t[x]=w)}if(t.verticalAlign==null){var C=e.getShallow("baseline");C!=null&&(t.verticalAlign=C)}if(!l||!r.disableBox){for(var S=0;S<aM.length;S++){var x=aM[S],w=e.getShallow(x);w!=null&&(t[x]=w)}var M=e.getShallow("borderType");M!=null&&(t.borderDash=M),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function t4(t,e){var n=e&&e.getModel("textStyle");return wr([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 z_=xe();function e4(t,e,n,r){if(t){var i=z_(t);i.prevValue=i.value,i.value=n;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}var n4=["textStyle","color"],Pm=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],km=new ze,r4=(function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(n4):null)},t.prototype.getFont=function(){return t4({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<Pm.length;r++)n[Pm[r]]=this.getShallow(Pm[r]);return km.useStyle(n),km.update(),km.getBoundingRect()},t})(),PD=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],i4=hf(PD),a4=(function(){function t(){}return t.prototype.getLineStyle=function(e){return i4(this,e)},t})(),kD=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o4=hf(kD),l4=(function(){function t(){}return t.prototype.getItemStyle=function(e,n){return o4(this,e,n)},t})(),he=(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){jt(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,i=r==null?r:r[e];if(i==null&&!n){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,n){var r=e!=null,i=r?this.parsePath(e):null,a=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,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(kt(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 i=0;i<e.length&&!(e[i]&&(r=r&&typeof r=="object"?r[e[i]]:null,r==null));i++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(e),n.parentModel)),r},t})();x_(he);iI(he);cr(he,a4);cr(he,l4);cr(he,uI);cr(he,r4);var s4=Math.round(Math.random()*10);function uv(t){return[t||"",s4++].join("_")}function u4(t){var e={};t.registerSubTypeDefaulter=function(n,r){var i=Vr(n);e[i.main]=r},t.determineSubType=function(n,r){var i=r.type;if(!i){var a=Vr(n).main;t.hasSubTypes(n)&&e[a]&&(i=e[a](r))}return i}}function f4(t,e){t.topologicalTravel=function(a,l,u,f){if(!a.length)return;var c=n(l),d=c.graph,v=c.noEntryList,m={};for(I(a,function(C){m[C]=!0});v.length;){var p=v.pop(),y=d[p],S=!!m[p];S&&(u.call(f,p,y.originalDeps.slice()),delete m[p]),I(y.successor,S?w:x)}I(m,function(){var C="";throw new Error(C)});function x(C){d[C].entryCount--,d[C].entryCount===0&&v.push(C)}function w(C){m[C]=!0,x(C)}};function n(a){var l={},u=[];return I(a,function(f){var c=r(l,f),d=c.originalDeps=e(f),v=i(d,a);c.entryCount=v.length,c.entryCount===0&&u.push(f),I(v,function(m){Wt(c.predecessor,m)<0&&c.predecessor.push(m);var p=r(l,m);Wt(p.successor,m)<0&&p.successor.push(f)})}),{graph:l,noEntryList:u}}function r(a,l){return a[l]||(a[l]={predecessor:[],successor:[]}),a[l]}function i(a,l){var u=[];return I(a,function(f){Wt(l,f)>=0&&u.push(f)}),u}}function fv(t,e){return jt(jt({},t,!0),e,!0)}const c4={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:". "}}}},h4={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 Ed="ZH",N_="EN",Zl=N_,od={},I_={},HD=Dt.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Zl).toUpperCase();return t.indexOf(Ed)>-1?Ed:Zl})():Zl;function B_(t,e){t=t.toUpperCase(),I_[t]=new he(e),od[t]=e}function d4(t){if(gt(t)){var e=od[t.toUpperCase()]||{};return t===Ed||t===N_?kt(e):jt(kt(e),kt(od[Zl]),!1)}else return jt(kt(t),kt(od[Zl]),!1)}function v4(t){return I_[t]}function g4(){return I_[Zl]}B_(N_,c4);B_(Ed,h4);var P_=1e3,k_=P_*60,Qu=k_*60,lr=Qu*24,lM=lr*365,Fu={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}"},Ch="{yyyy}-{MM}-{dd}",sM={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ch,hour:Ch+" "+Fu.hour,minute:Ch+" "+Fu.minute,second:Ch+" "+Fu.second,millisecond:Fu.none},Hm=["year","month","day","hour","minute","second","millisecond"],VD=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function tn(t,e){return t+="","0000".substr(0,e-t.length)+t}function $l(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 p4(t){return t===$l(t)}function m4(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function kf(t,e,n,r){var i=ur(t),a=i[H_(n)](),l=i[Wl(n)]()+1,u=Math.floor((l-1)/3)+1,f=i[cv(n)](),c=i["get"+(n?"UTC":"")+"Day"](),d=i[pf(n)](),v=(d-1)%12+1,m=i[hv(n)](),p=i[dv(n)](),y=i[vv(n)](),S=d>=12?"pm":"am",x=S.toUpperCase(),w=r instanceof he?r:v4(r||HD)||g4(),C=w.getModel("time"),M=C.get("month"),A=C.get("monthAbbr"),R=C.get("dayOfWeek"),D=C.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,S+"").replace(/{A}/g,x+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,tn(a%100+"",2)).replace(/{Q}/g,u+"").replace(/{MMMM}/g,M[l-1]).replace(/{MMM}/g,A[l-1]).replace(/{MM}/g,tn(l,2)).replace(/{M}/g,l+"").replace(/{dd}/g,tn(f,2)).replace(/{d}/g,f+"").replace(/{eeee}/g,R[c]).replace(/{ee}/g,D[c]).replace(/{e}/g,c+"").replace(/{HH}/g,tn(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,tn(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,tn(m,2)).replace(/{m}/g,m+"").replace(/{ss}/g,tn(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,tn(y,3)).replace(/{S}/g,y+"")}function y4(t,e,n,r,i){var a=null;if(gt(n))a=n;else if(It(n))a=n(t.value,e,{level:t.level});else{var l=lt({},Fu);if(t.level>0)for(var u=0;u<Hm.length;++u)l[Hm[u]]="{primary|"+l[Hm[u]]+"}";var f=n?n.inherit===!1?n:Kt(n,l):l,c=FD(t.value,i);if(f[c])a=f[c];else if(f.inherit){for(var d=VD.indexOf(c),u=d-1;u>=0;--u)if(f[c]){a=f[c];break}a=a||l.none}if(ft(a)){var v=t.level==null?0:t.level>=0?t.level:a.length+t.level;v=Math.min(v,a.length-1),a=a[v]}}return kf(new Date(t.value),a,i,r)}function FD(t,e){var n=ur(t),r=n[Wl(e)]()+1,i=n[cv(e)](),a=n[pf(e)](),l=n[hv(e)](),u=n[dv(e)](),f=n[vv(e)](),c=f===0,d=c&&u===0,v=d&&l===0,m=v&&a===0,p=m&&i===1,y=p&&r===1;return y?"year":p?"month":m?"day":v?"hour":d?"minute":c?"second":"millisecond"}function uM(t,e,n){var r=ve(t)?ur(t):t;switch(e=e||FD(t,n),e){case"year":return r[H_(n)]();case"half-year":return r[Wl(n)]()>=6?1:0;case"quarter":return Math.floor((r[Wl(n)]()+1)/4);case"month":return r[Wl(n)]();case"day":return r[cv(n)]();case"half-day":return r[pf(n)]()/24;case"hour":return r[pf(n)]();case"minute":return r[hv(n)]();case"second":return r[dv(n)]();case"millisecond":return r[vv(n)]()}}function H_(t){return t?"getUTCFullYear":"getFullYear"}function Wl(t){return t?"getUTCMonth":"getMonth"}function cv(t){return t?"getUTCDate":"getDate"}function pf(t){return t?"getUTCHours":"getHours"}function hv(t){return t?"getUTCMinutes":"getMinutes"}function dv(t){return t?"getUTCSeconds":"getSeconds"}function vv(t){return t?"getUTCMilliseconds":"getMilliseconds"}function _4(t){return t?"setUTCFullYear":"setFullYear"}function GD(t){return t?"setUTCMonth":"setMonth"}function UD(t){return t?"setUTCDate":"setDate"}function jD(t){return t?"setUTCHours":"setHours"}function YD(t){return t?"setUTCMinutes":"setMinutes"}function qD(t){return t?"setUTCSeconds":"setSeconds"}function XD(t){return t?"setUTCMilliseconds":"setMilliseconds"}function S4(t,e,n,r,i,a,l,u){var f=new ze({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:a,overflow:l?"truncate":null,lineHeight:u}});return f.getBoundingRect()}function V_(t){if(!P2(t))return gt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function F_(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 Hf=o_;function v0(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(d){return d&&wr(d)?d:"-"}function a(d){return!!(d!=null&&!isNaN(d)&&isFinite(d))}var l=e==="time",u=t instanceof Date;if(l||u){var f=l?ur(t):t;if(isNaN(+f)){if(u)return"-"}else return kf(f,r,n)}if(e==="ordinal")return dd(t)?i(t):ve(t)&&a(t)?t+"":"-";var c=ff(t);return a(c)?V_(c):dd(t)?i(t):typeof t=="boolean"?t+"":"-"}var fM=["a","b","c","d","e","f","g"],Vm=function(t,e){return"{"+t+(e??"")+"}"};function G_(t,e,n){ft(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var l=fM[a];t=t.replace(Vm(l),Vm(l,0))}for(var u=0;u<r;u++)for(var f=0;f<i.length;f++){var c=e[u][i[f]];t=t.replace(Vm(fM[f],u),n?nn(c):c)}return t}function ZD(t,e){var n=gt(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var a=n.renderMode||"html";if(!r)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+nn(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+nn(r)+";"+(e||"")+'"></span>';var l=n.markerId||"markerX";return{renderMode:a,content:"{"+l+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function x4(t,e,n){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
78
+ yyyy`);var r=ur(e),i=n?"getUTC":"get",a=r[i+"FullYear"](),l=r[i+"Month"]()+1,u=r[i+"Date"](),f=r[i+"Hours"](),c=r[i+"Minutes"](),d=r[i+"Seconds"](),v=r[i+"Milliseconds"]();return t=t.replace("MM",tn(l,2)).replace("M",l).replace("yyyy",a).replace("yy",tn(a%100+"",2)).replace("dd",tn(u,2)).replace("d",u).replace("hh",tn(f,2)).replace("h",f).replace("mm",tn(c,2)).replace("m",c).replace("ss",tn(d,2)).replace("s",d).replace("SSS",tn(v,3)),t}function b4(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function mf(t,e){return e=e||"transparent",gt(t)?t:bt(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function cM(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var ld=I,w4=["left","right","top","bottom","width","height"],Mh=[["width","left","right"],["height","top","bottom"]];function U_(t,e,n,r,i){var a=0,l=0;r==null&&(r=1/0),i==null&&(i=1/0);var u=0;e.eachChild(function(f,c){var d=f.getBoundingRect(),v=e.childAt(c+1),m=v&&v.getBoundingRect(),p,y;if(t==="horizontal"){var S=d.width+(m?-m.x+d.x:0);p=a+S,p>r||f.newline?(a=0,p=S,l+=u+n,u=d.height):u=Math.max(u,d.height)}else{var x=d.height+(m?-m.y+d.y:0);y=l+x,y>i||f.newline?(a+=u+n,l=0,y=x,u=d.width):u=Math.max(u,d.width)}f.newline||(f.x=a,f.y=l,f.markRedraw(),t==="horizontal"?a=p+n:l=y+n)})}var Ku=U_;ce(U_,"vertical");ce(U_,"horizontal");function Da(t,e,n){n=Hf(n||0);var r=e.width,i=e.height,a=se(t.left,r),l=se(t.top,i),u=se(t.right,r),f=se(t.bottom,i),c=se(t.width,r),d=se(t.height,i),v=n[2]+n[0],m=n[1]+n[3],p=t.aspect;switch(isNaN(c)&&(c=r-u-m-a),isNaN(d)&&(d=i-f-v-l),p!=null&&(isNaN(c)&&isNaN(d)&&(p>r/i?c=r*.8:d=i*.8),isNaN(c)&&(c=p*d),isNaN(d)&&(d=c/p)),isNaN(a)&&(a=r-u-c-m),isNaN(l)&&(l=i-f-d-v),t.left||t.right){case"center":a=r/2-c/2-n[3];break;case"right":a=r-c-m;break}switch(t.top||t.bottom){case"middle":case"center":l=i/2-d/2-n[0];break;case"bottom":l=i-d-v;break}a=a||0,l=l||0,isNaN(c)&&(c=r-m-a-(u||0)),isNaN(d)&&(d=i-v-l-(f||0));var y=new Xt(a+n[3],l+n[0],c,d);return y.margin=n,y}function yf(t){var e=t.layoutMode||t.constructor.layoutMode;return bt(e)?e:e?{type:e}:null}function ns(t,e,n){var r=n&&n.ignoreSize;!ft(r)&&(r=[r,r]);var i=l(Mh[0],0),a=l(Mh[1],1);c(Mh[0],t,i),c(Mh[1],t,a);function l(d,v){var m={},p=0,y={},S=0,x=2;if(ld(d,function(M){y[M]=t[M]}),ld(d,function(M){u(e,M)&&(m[M]=y[M]=e[M]),f(m,M)&&p++,f(y,M)&&S++}),r[v])return f(e,d[1])?y[d[2]]=null:f(e,d[2])&&(y[d[1]]=null),y;if(S===x||!p)return y;if(p>=x)return m;for(var w=0;w<d.length;w++){var C=d[w];if(!u(m,C)&&u(t,C)){m[C]=t[C];break}}return m}function u(d,v){return d.hasOwnProperty(v)}function f(d,v){return d[v]!=null&&d[v]!=="auto"}function c(d,v,m){ld(d,function(p){v[p]=m[p]})}}function Vf(t){return C4({},t)}function C4(t,e){return e&&t&&ld(w4,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var M4=xe(),qt=(function(t){ut(e,t);function e(n,r,i){var a=t.call(this,n,r,i)||this;return a.uid=uv("ec_cpt_model"),a}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},e.prototype.mergeDefaultAndTheme=function(n,r){var i=yf(this),a=i?Vf(n):{},l=r.getTheme();jt(n,l.get(this.mainType)),jt(n,this.getDefaultOption()),i&&ns(n,a,i)},e.prototype.mergeOption=function(n,r){jt(this.option,n,!0);var i=yf(this);i&&ns(this.option,n,i)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!eI(n))return n.defaultOption;var r=M4(this);if(!r.defaultOption){for(var i=[],a=n;a;){var l=a.prototype.defaultOption;l&&i.push(l),a=a.superClass}for(var u={},f=i.length-1;f>=0;f--)u=jt(u,i[f],!0);r.defaultOption=u}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var i=n+"Index",a=n+"Id";return zf(this.ecModel,n,{index:this.get(i,!0),id:this.get(a,!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})(he);j2(qt,he);Kd(qt);u4(qt);f4(qt,T4);function T4(t){var e=[];return I(qt.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=St(e,function(n){return Vr(n).main}),t!=="dataset"&&Wt(e,"dataset")<=0&&e.unshift("dataset"),e}var $D="";typeof navigator<"u"&&($D=navigator.platform||"");var Rl="rgba(0, 0, 0, 0.2)";const A4={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Rl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Rl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Rl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Rl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Rl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Rl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:$D.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 WD=At(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),dr="original",Mn="arrayRows",Ar="objectRows",qr="keyedColumns",Ca="typedArray",QD="unknown",Ai="column",os="row",Ge={Must:1,Might:2,Not:3},KD=xe();function D4(t){KD(t).datasetMap=At()}function R4(t,e,n){var r={},i=j_(e);if(!i||!t)return r;var a=[],l=[],u=e.ecModel,f=KD(u).datasetMap,c=i.uid+"_"+n.seriesLayoutBy,d,v;t=t.slice(),I(t,function(S,x){var w=bt(S)?S:t[x]={name:S};w.type==="ordinal"&&d==null&&(d=x,v=y(w)),r[w.name]=[]});var m=f.get(c)||f.set(c,{categoryWayDim:v,valueWayDim:0});I(t,function(S,x){var w=S.name,C=y(S);if(d==null){var M=m.valueWayDim;p(r[w],M,C),p(l,M,C),m.valueWayDim+=C}else if(d===x)p(r[w],0,C),p(a,0,C);else{var M=m.categoryWayDim;p(r[w],M,C),p(l,M,C),m.categoryWayDim+=C}});function p(S,x,w){for(var C=0;C<w;C++)S.push(x+C)}function y(S){var x=S.dimsDef;return x?x.length:1}return a.length&&(r.itemName=a),l.length&&(r.seriesName=l),r}function E4(t,e,n){var r={},i=j_(t);if(!i)return r;var a=e.sourceFormat,l=e.dimensionsDefine,u;(a===Ar||a===qr)&&I(l,function(d,v){(bt(d)?d.name:d)==="name"&&(u=v)});var f=(function(){for(var d={},v={},m=[],p=0,y=Math.min(5,n);p<y;p++){var S=tR(e.data,a,e.seriesLayoutBy,l,e.startIndex,p);m.push(S);var x=S===Ge.Not;if(x&&d.v==null&&p!==u&&(d.v=p),(d.n==null||d.n===d.v||!x&&m[d.n]===Ge.Not)&&(d.n=p),w(d)&&m[d.n]!==Ge.Not)return d;x||(S===Ge.Might&&v.v==null&&p!==u&&(v.v=p),(v.n==null||v.n===v.v)&&(v.n=p))}function w(C){return C.v!=null&&C.n!=null}return w(d)?d:w(v)?v:null})();if(f){r.value=[f.v];var c=u??f.n;r.itemName=[c],r.seriesName=[c]}return r}function j_(t){var e=t.get("data",!0);if(!e)return zf(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},bn).models[0]}function L4(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:zf(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},bn).models}function JD(t,e){return tR(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function tR(t,e,n,r,i,a){var l,u=5;if(sn(t))return Ge.Not;var f,c;if(r){var d=r[a];bt(d)?(f=d.name,c=d.type):gt(d)&&(f=d)}if(c!=null)return c==="ordinal"?Ge.Must:Ge.Not;if(e===Mn){var v=t;if(n===os){for(var m=v[a],p=0;p<(m||[]).length&&p<u;p++)if((l=A(m[i+p]))!=null)return l}else for(var p=0;p<v.length&&p<u;p++){var y=v[i+p];if(y&&(l=A(y[a]))!=null)return l}}else if(e===Ar){var S=t;if(!f)return Ge.Not;for(var p=0;p<S.length&&p<u;p++){var x=S[p];if(x&&(l=A(x[f]))!=null)return l}}else if(e===qr){var w=t;if(!f)return Ge.Not;var m=w[f];if(!m||sn(m))return Ge.Not;for(var p=0;p<m.length&&p<u;p++)if((l=A(m[p]))!=null)return l}else if(e===dr)for(var C=t,p=0;p<C.length&&p<u;p++){var x=C[p],M=Lf(x);if(!ft(M))return Ge.Not;if((l=A(M[a]))!=null)return l}function A(R){var D=gt(R);if(R!=null&&Number.isFinite(Number(R))&&R!=="")return D?Ge.Might:Ge.Not;if(D&&R!=="-")return Ge.Must}return Ge.Not}var O4=At();function z4(t,e,n){var r=O4.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}var hM=xe();xe();var Y_=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var i=on(this.get("color",!0)),a=this.get("colorLayer",!0);return I4(this,hM,i,a,e,n,r)},t.prototype.clearColorPalette=function(){B4(this,hM)},t})();function N4(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 I4(t,e,n,r,i,a,l){a=a||t;var u=e(a),f=u.paletteIdx||0,c=u.paletteNameMap=u.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var d=l==null||!r?n:N4(r,l);if(d=d||n,!(!d||!d.length)){var v=d[f];return i&&(c[i]=v),u.paletteIdx=(f+1)%d.length,v}}function B4(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Th,xu,dM,vM="\0_ec_inner",P4=1,q_=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,i,a,l,u){a=a||{},this.option=null,this._theme=new he(a),this._locale=new he(l),this._optionManager=u},e.prototype.setOption=function(n,r,i){var a=mM(r);this._optionManager.setOption(n,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(n,r){return this._resetOption(n,mM(r))},e.prototype._resetOption=function(n,r){var i=!1,a=this._optionManager;if(!n||n==="recreate"){var l=a.mountOption(n==="recreate");!this.option||n==="recreate"?dM(this,l):(this.restoreData(),this._mergeOption(l,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var u=a.getTimelineOption(this);u&&(i=!0,this._mergeOption(u,r))}if(!n||n==="recreate"||n==="media"){var f=a.getMediaOption(this);f.length&&I(f,function(c){i=!0,this._mergeOption(c,r)},this)}return i},e.prototype.mergeOption=function(n){this._mergeOption(n,null)},e.prototype._mergeOption=function(n,r){var i=this.option,a=this._componentsMap,l=this._componentsCount,u=[],f=At(),c=r&&r.replaceMergeMainTypeMap;D4(this),I(n,function(v,m){v!=null&&(qt.hasClass(m)?m&&(u.push(m),f.set(m,!0)):i[m]=i[m]==null?kt(v):jt(i[m],v,!0))}),c&&c.each(function(v,m){qt.hasClass(m)&&!f.get(m)&&(u.push(m),f.set(m,!0))}),qt.topologicalTravel(u,qt.getAllClassMainTypes(),d,this);function d(v){var m=z4(this,v,on(n[v])),p=a.get(v),y=p?c&&c.get(v)?"replaceMerge":"normalMerge":"replaceAll",S=V5(p,m,y);X5(S,v,qt),i[v]=null,a.set(v,null),l.set(v,0);var x=[],w=[],C=0,M;I(S,function(A,R){var D=A.existing,L=A.newOption;if(!L)D&&(D.mergeOption({},this),D.optionUpdated({},!1));else{var O=v==="series",B=qt.getClass(v,A.keyInfo.subType,!O);if(!B)return;if(v==="tooltip"){if(M)return;M=!0}if(D&&D.constructor===B)D.name=A.keyInfo.name,D.mergeOption(L,this),D.optionUpdated(L,!1);else{var H=lt({componentIndex:R},A.keyInfo);D=new B(L,this,this,H),lt(D,H),A.brandNew&&(D.__requireNewView=!0),D.init(L,this,this),D.optionUpdated(null,!0)}}D?(x.push(D.option),w.push(D),C++):(x.push(void 0),w.push(void 0))},this),i[v]=x,a.set(v,w),l.set(v,C),v==="series"&&Th(this)}this._seriesIndices||Th(this)},e.prototype.getOption=function(){var n=kt(this.option);return I(n,function(r,i){if(qt.hasClass(i)){for(var a=on(r),l=a.length,u=!1,f=l-1;f>=0;f--)a[f]&&!cf(a[f])?u=!0:(a[f]=null,!u&&l--);a.length=l,n[i]=a}}),delete n[vM],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 i=this._componentsMap.get(n);if(i){var a=i[r||0];if(a)return a;if(r==null){for(var l=0;l<i.length;l++)if(i[l])return i[l]}}},e.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var i=n.index,a=n.id,l=n.name,u=this._componentsMap.get(r);if(!u||!u.length)return[];var f;return i!=null?(f=[],I(on(i),function(c){u[c]&&f.push(u[c])})):a!=null?f=gM("id",a,u):l!=null?f=gM("name",l,u):f=Ee(u,function(c){return!!c}),pM(f,n)},e.prototype.findComponents=function(n){var r=n.query,i=n.mainType,a=u(r),l=a?this.queryComponents(a):Ee(this._componentsMap.get(i),function(c){return!!c});return f(pM(l,n));function u(c){var d=i+"Index",v=i+"Id",m=i+"Name";return c&&(c[d]!=null||c[v]!=null||c[m]!=null)?{mainType:i,index:c[d],id:c[v],name:c[m]}:null}function f(c){return n.filter?Ee(c,n.filter):c}},e.prototype.eachComponent=function(n,r,i){var a=this._componentsMap;if(It(n)){var l=r,u=n;a.each(function(v,m){for(var p=0;v&&p<v.length;p++){var y=v[p];y&&u.call(l,m,y,y.componentIndex)}})}else for(var f=gt(n)?a.get(n):bt(n)?this.findComponents(n):null,c=0;f&&c<f.length;c++){var d=f[c];d&&r.call(i,d,d.componentIndex)}},e.prototype.getSeriesByName=function(n){var r=Fr(n,null);return Ee(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},e.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},e.prototype.getSeriesByType=function(n){return Ee(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return Ee(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){xu(this),I(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];n.call(r,a,i)},this)},e.prototype.eachRawSeries=function(n,r){I(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,i){xu(this),I(this._seriesIndices,function(a){var l=this._componentsMap.get("series")[a];l.subType===n&&r.call(i,l,a)},this)},e.prototype.eachRawSeriesByType=function(n,r,i){return I(this.getSeriesByType(n),r,i)},e.prototype.isSeriesFiltered=function(n){return xu(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){xu(this);var i=[];I(this._seriesIndices,function(a){var l=this._componentsMap.get("series")[a];n.call(r,l,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=At(i)},e.prototype.restoreData=function(n){Th(this);var r=this._componentsMap,i=[];r.each(function(a,l){qt.hasClass(l)&&i.push(l)}),qt.topologicalTravel(i,qt.getAllClassMainTypes(),function(a){I(r.get(a),function(l){l&&(a!=="series"||!k4(l,n))&&l.restoreData()})})},e.internalField=(function(){Th=function(n){var r=n._seriesIndices=[];I(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=At(r)},xu=function(n){},dM=function(n,r){n.option={},n.option[vM]=P4,n._componentsMap=At({series:[]}),n._componentsCount=At();var i=r.aria;bt(i)&&i.enabled==null&&(i.enabled=!0),H4(r,n._theme.option),jt(r,A4,!1),n._mergeOption(r,null)}})(),e})(he);function k4(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return n!=null&&t.componentIndex!==n||r!=null&&t.id!==r||i!=null&&t.name!==i}}function H4(t,e){var n=t.color&&!t.colorLayer;I(e,function(r,i){i==="colorLayer"&&n||qt.hasClass(i)||(typeof r=="object"?t[i]=t[i]?jt(t[i],r,!1):kt(r):t[i]==null&&(t[i]=r))})}function gM(t,e,n){if(ft(e)){var r=At();return I(e,function(a){if(a!=null){var l=Fr(a,null);l!=null&&r.set(a,!0)}}),Ee(n,function(a){return a&&r.get(a[t])})}else{var i=Fr(e,null);return Ee(n,function(a){return a&&i!=null&&a[t]===i})}}function pM(t,e){return e.hasOwnProperty("subType")?Ee(t,function(n){return n&&n.subType===e.subType}):t}function mM(t){var e=At();return t&&I(on(t.replaceMerge),function(n){e.set(n,!0)}),{replaceMergeMainTypeMap:e}}cr(q_,Y_);var V4=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],eR=(function(){function t(e){I(V4,function(n){this[n]=Tt(e[n],e)},this)}return t})(),Fm={},gv=(function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,n){var r=[];I(Fm,function(i,a){var l=i.create(e,n);r=r.concat(l||[])}),this._coordinateSystems=r},t.prototype.update=function(e,n){I(this._coordinateSystems,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,n){Fm[e]=n},t.get=function(e){return Fm[e]},t})(),F4=/^(min|max)?(.+)$/,G4=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(I(on(e.series),function(l){l&&l.data&&sn(l.data)&&vd(l.data)}),I(on(e.dataset),function(l){l&&l.source&&sn(l.source)&&vd(l.source)})),e=kt(e);var i=this._optionBackup,a=U4(e,n,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],kt(e?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var n,r=this._timelineOptions;if(r.length){var i=e.getComponent("timeline");i&&(n=kt(r[i.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(e){var n=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,l=[],u=[];if(!i.length&&!a)return u;for(var f=0,c=i.length;f<c;f++)j4(i[f].query,n,r)&&l.push(f);return!l.length&&a&&(l=[-1]),l.length&&!q4(l,this._currentMediaIndices)&&(u=St(l,function(d){return kt(d===-1?a.option:i[d].option)})),this._currentMediaIndices=l,u},t})();function U4(t,e,n){var r=[],i,a,l=t.baseOption,u=t.timeline,f=t.options,c=t.media,d=!!t.media,v=!!(f||u||l&&l.timeline);l?(a=l,a.timeline||(a.timeline=u)):((v||d)&&(t.options=t.media=null),a=t),d&&ft(c)&&I(c,function(p){p&&p.option&&(p.query?r.push(p):i||(i=p))}),m(a),I(f,function(p){return m(p)}),I(r,function(p){return m(p.option)});function m(p){I(e,function(y){y(p,n)})}return{baseOption:a,timelineOptions:f||[],mediaDefault:i,mediaList:r}}function j4(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return I(t,function(a,l){var u=l.match(F4);if(!(!u||!u[1]||!u[2])){var f=u[1],c=u[2].toLowerCase();Y4(r[c],a,f)||(i=!1)}}),i}function Y4(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function q4(t,e){return t.join(",")===e.join(",")}var mr=I,_f=bt,yM=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Gm(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=yM.length;n<r;n++){var i=yM[n],a=e.normal,l=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?jt(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),l&&l[i]&&(t[i]=t[i]||{},t[i].emphasis?jt(t[i].emphasis,l[i]):t[i].emphasis=l[i],l[i]=null)}}function $e(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,Kt(t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Gu(t){$e(t,"itemStyle"),$e(t,"lineStyle"),$e(t,"areaStyle"),$e(t,"label"),$e(t,"labelLine"),$e(t,"upperLabel"),$e(t,"edgeLabel")}function Me(t,e){var n=_f(t)&&t[e],r=_f(n)&&n.textStyle;if(r)for(var i=0,a=xC.length;i<a;i++){var l=xC[i];r.hasOwnProperty(l)&&(n[l]=r[l])}}function nr(t){t&&(Gu(t),Me(t,"label"),t.emphasis&&Me(t.emphasis,"label"))}function X4(t){if(_f(t)){Gm(t),Gu(t),Me(t,"label"),Me(t,"upperLabel"),Me(t,"edgeLabel"),t.emphasis&&(Me(t.emphasis,"label"),Me(t.emphasis,"upperLabel"),Me(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Gm(e),nr(e));var n=t.markLine;n&&(Gm(n),nr(n));var r=t.markArea;r&&nr(r);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!sn(a))for(var l=0;l<a.length;l++)nr(a[l]);I(t.categories,function(c){Gu(c)})}if(i&&!sn(i))for(var l=0;l<i.length;l++)nr(i[l]);if(e=t.markPoint,e&&e.data)for(var u=e.data,l=0;l<u.length;l++)nr(u[l]);if(n=t.markLine,n&&n.data)for(var f=n.data,l=0;l<f.length;l++)ft(f[l])?(nr(f[l][0]),nr(f[l][1])):nr(f[l]);t.type==="gauge"?(Me(t,"axisLabel"),Me(t,"title"),Me(t,"detail")):t.type==="treemap"?($e(t.breadcrumb,"itemStyle"),I(t.levels,function(c){Gu(c)})):t.type==="tree"&&Gu(t.leaves)}}function _i(t){return ft(t)?t:t?[t]:[]}function _M(t){return(ft(t)?t[0]:t)||{}}function Z4(t,e){mr(_i(t.series),function(r){_f(r)&&X4(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),mr(n,function(r){mr(_i(t[r]),function(i){i&&(Me(i,"axisLabel"),Me(i.axisPointer,"label"))})}),mr(_i(t.parallel),function(r){var i=r&&r.parallelAxisDefault;Me(i,"axisLabel"),Me(i&&i.axisPointer,"label")}),mr(_i(t.calendar),function(r){$e(r,"itemStyle"),Me(r,"dayLabel"),Me(r,"monthLabel"),Me(r,"yearLabel")}),mr(_i(t.radar),function(r){Me(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)}),mr(_i(t.geo),function(r){_f(r)&&(nr(r),mr(_i(r.regions),function(i){nr(i)}))}),mr(_i(t.timeline),function(r){nr(r),$e(r,"label"),$e(r,"itemStyle"),$e(r,"controlStyle",!0);var i=r.data;ft(i)&&I(i,function(a){bt(a)&&($e(a,"label"),$e(a,"itemStyle"))})}),mr(_i(t.toolbox),function(r){$e(r,"iconStyle"),mr(r.feature,function(i){$e(i,"iconStyle")})}),Me(_M(t.axisPointer),"label"),Me(_M(t.tooltip).axisPointer,"label")}function $4(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function W4(t,e,n,r){for(var i=e.split(","),a=t,l,u=0;u<i.length-1;u++)l=i[u],a[l]==null&&(a[l]={}),a=a[l];a[i[u]]==null&&(a[i[u]]=n)}function SM(t){t&&I(Q4,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var Q4=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],K4=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Um=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function bu(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Um.length;n++){var r=Um[n][1],i=Um[n][0];e[r]!=null&&(e[i]=e[r])}}function xM(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function bM(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function J4(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function nR(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&nR(t[n].children,e)}function rR(t,e){Z4(t,e),t.series=on(t.series),I(t.series,function(n){if(bt(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),xM(n.label);var i=n.data;if(i&&!sn(i))for(var a=0;a<i.length;a++)xM(i[a]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var l=$4(n,"pointer.color");l!=null&&W4(n,"itemStyle.color",l)}else if(r==="bar"){bu(n),bu(n.backgroundStyle),bu(n.emphasis);var i=n.data;if(i&&!sn(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(bu(i[a]),bu(i[a]&&i[a].emphasis))}else if(r==="sunburst"){var u=n.highlightPolicy;u&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=u)),bM(n),nR(n.data,bM)}else r==="graph"||r==="sankey"?J4(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&Kt(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),SM(n)}}),t.dataRange&&(t.visualMap=t.dataRange),I(K4,function(n){var r=t[n];r&&(ft(r)||(r=[r]),I(r,function(i){SM(i)}))})}function tP(t){var e=At();t.eachSeries(function(n){var r=n.get("stack");if(r){var i=e.get(r)||e.set(r,[]),a=n.getData(),l={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:n};if(!l.stackedDimension||!(l.isStackedByIndex||l.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(l)}}),e.each(eP)}function eP(t){I(t,function(e,n){var r=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],l=e.data,u=e.isStackedByIndex,f=e.seriesModel.get("stackStrategy")||"samesign";l.modify(a,function(c,d,v){var m=l.get(e.stackedDimension,v);if(isNaN(m))return i;var p,y;u?y=l.getRawIndex(v):p=l.get(e.stackedByDimension,v);for(var S=NaN,x=n-1;x>=0;x--){var w=t[x];if(u||(y=w.data.rawIndexOf(w.stackedByDimension,p)),y>=0){var C=w.data.getByRawIndex(w.stackResultDimension,y);if(f==="all"||f==="positive"&&C>0||f==="negative"&&C<0||f==="samesign"&&m>=0&&C>0||f==="samesign"&&m<=0&&C<0){m=z5(m,C),S=C;break}}}return r[0]=m,r[1]=S,r})})}var pv=(function(){function t(e){this.data=e.data||(e.sourceFormat===qr?{}:[]),this.sourceFormat=e.sourceFormat||QD,this.seriesLayoutBy=e.seriesLayoutBy||Ai,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 i=n[r];i.type==null&&JD(this,r)===Ge.Must&&(i.type="ordinal")}}return t})();function X_(t){return t instanceof pv}function g0(t,e,n){n=n||aR(t);var r=e.seriesLayoutBy,i=rP(t,n,r,e.sourceHeader,e.dimensions),a=new pv({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:kt(e)});return a}function iR(t){return new pv({data:t,sourceFormat:sn(t)?Ca:dr})}function nP(t){return new pv({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:kt(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function aR(t){var e=QD;if(sn(t))e=Ca;else if(ft(t)){t.length===0&&(e=Mn);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(i!=null){if(ft(i)||sn(i)){e=Mn;break}else if(bt(i)){e=Ar;break}}}}else if(bt(t)){for(var a in t)if(Ta(t,a)&&ln(t[a])){e=qr;break}}return e}function rP(t,e,n,r,i){var a,l;if(!t)return{dimensionsDefine:wM(i),startIndex:l,dimensionsDetectedCount:a};if(e===Mn){var u=t;r==="auto"||r==null?CM(function(c){c!=null&&c!=="-"&&(gt(c)?l==null&&(l=1):l=0)},n,u,10):l=ve(r)?r:r?1:0,!i&&l===1&&(i=[],CM(function(c,d){i[d]=c!=null?c+"":""},n,u,1/0)),a=i?i.length:n===os?u.length:u[0]?u[0].length:null}else if(e===Ar)i||(i=iP(t));else if(e===qr)i||(i=[],I(t,function(c,d){i.push(d)}));else if(e===dr){var f=Lf(t[0]);a=ft(f)&&f.length||1}return{startIndex:l,dimensionsDefine:wM(i),dimensionsDetectedCount:a}}function iP(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n)return de(n)}function wM(t){if(t){var e=At();return St(t,function(n,r){n=bt(n)?n:{name:n};var i={name:n.name,displayName:n.displayName,type:n.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function CM(t,e,n,r){if(e===os)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)t(a[i],i)}function oR(t){var e=t.sourceFormat;return e===Ar||e===qr}var go,po,mo,MM,TM,lR=(function(){function t(e,n){var r=X_(e)?e:iR(e);this._source=r;var i=this._data=r.data;r.sourceFormat===Ca&&(this._offset=0,this._dimSize=n,this._data=i),TM(this,i,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;TM=function(l,u,f){var c=f.sourceFormat,d=f.seriesLayoutBy,v=f.startIndex,m=f.dimensionsDefine,p=MM[Z_(c,d)];if(lt(l,p),c===Ca)l.getItem=n,l.count=i,l.fillStorage=r;else{var y=sR(c,d);l.getItem=Tt(y,null,u,v,m);var S=uR(c,d);l.count=Tt(S,null,u,v,m)}};var n=function(l,u){l=l-this._offset,u=u||[];for(var f=this._data,c=this._dimSize,d=c*l,v=0;v<c;v++)u[v]=f[d+v];return u},r=function(l,u,f,c){for(var d=this._data,v=this._dimSize,m=0;m<v;m++){for(var p=c[m],y=p[0]==null?1/0:p[0],S=p[1]==null?-1/0:p[1],x=u-l,w=f[m],C=0;C<x;C++){var M=d[C*v+m];w[l+C]=M,M<y&&(y=M),M>S&&(S=M)}p[0]=y,p[1]=S}},i=function(){return this._data?this._data.length/this._dimSize:0};MM=(e={},e[Mn+"_"+Ai]={pure:!0,appendData:a},e[Mn+"_"+os]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ar]={pure:!0,appendData:a},e[qr]={pure:!0,appendData:function(l){var u=this._data;I(l,function(f,c){for(var d=u[c]||(u[c]=[]),v=0;v<(f||[]).length;v++)d.push(f[v])})}},e[dr]={appendData:a},e[Ca]={persistent:!1,pure:!0,appendData:function(l){this._data=l},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(l){for(var u=0;u<l.length;u++)this._data.push(l[u])}})(),t})(),AM=function(t,e,n,r){return t[r]},aP=(go={},go[Mn+"_"+Ai]=function(t,e,n,r){return t[r+e]},go[Mn+"_"+os]=function(t,e,n,r,i){r+=e;for(var a=i||[],l=t,u=0;u<l.length;u++){var f=l[u];a[u]=f?f[r]:null}return a},go[Ar]=AM,go[qr]=function(t,e,n,r,i){for(var a=i||[],l=0;l<n.length;l++){var u=n[l].name,f=t[u];a[l]=f?f[r]:null}return a},go[dr]=AM,go);function sR(t,e){var n=aP[Z_(t,e)];return n}var DM=function(t,e,n){return t.length},oP=(po={},po[Mn+"_"+Ai]=function(t,e,n){return Math.max(0,t.length-e)},po[Mn+"_"+os]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},po[Ar]=DM,po[qr]=function(t,e,n){var r=n[0].name,i=t[r];return i?i.length:0},po[dr]=DM,po);function uR(t,e){var n=oP[Z_(t,e)];return n}var jm=function(t,e,n){return t[e]},lP=(mo={},mo[Mn]=jm,mo[Ar]=function(t,e,n){return t[n]},mo[qr]=jm,mo[dr]=function(t,e,n){var r=Lf(t);return r instanceof Array?r[e]:r},mo[Ca]=jm,mo);function fR(t){var e=lP[t];return e}function Z_(t,e){return t===Mn?t+"_"+e:t}function rs(t,e,n){if(t){var r=t.getRawDataItem(e);if(r!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(n!=null){var l=t.getDimensionIndex(n),u=i.getDimensionProperty(l);return fR(a)(r,l,u)}else{var f=r;return a===dr&&(f=Lf(r)),f}}}}var sP=/\{@(.+?)\}/g,uP=(function(){function t(){}return t.prototype.getDataParams=function(e,n){var r=this.getData(n),i=this.getRawValue(e,n),a=r.getRawIndex(e),l=r.getName(e),u=r.getRawDataItem(e),f=r.getItemVisual(e,"style"),c=f&&f[r.getItemVisual(e,"drawType")||"fill"],d=f&&f.stroke,v=this.mainType,m=v==="series",p=r.userOutput&&r.userOutput.get();return{componentType:v,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:m?this.subType:null,seriesIndex:this.seriesIndex,seriesId:m?this.id:null,seriesName:m?this.name:null,name:l,dataIndex:a,data:u,dataType:n,value:i,color:c,borderColor:d,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,n,r,i,a,l){n=n||"normal";var u=this.getData(r),f=this.getDataParams(e,r);if(l&&(f.value=l.interpolatedValue),i!=null&&ft(f.value)&&(f.value=f.value[i]),!a){var c=u.getItemModel(e);a=c.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(It(a))return f.status=n,f.dimensionIndex=i,a(f);if(gt(a)){var d=G_(a,f);return d.replace(sP,function(v,m){var p=m.length,y=m;y.charAt(0)==="["&&y.charAt(p-1)==="]"&&(y=+y.slice(1,p-1));var S=rs(u,e,y);if(l&&ft(l.interpolatedValue)){var x=u.getDimensionIndex(y);x>=0&&(S=l.interpolatedValue[x])}return S!=null?S+"":""})}},t.prototype.getRawValue=function(e,n){return rs(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t})();function RM(t){var e,n;return bt(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Ju(t){return new fP(t)}var fP=(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 i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!r&&(a=this._plan(this.context));var l=d(this._modBy),u=this._modDataCount||0,f=d(e&&e.modBy),c=e&&e.modDataCount||0;(l!==f||u!==c)&&(a="reset");function d(C){return!(C>=1)&&(C=1),C}var v;(this._dirty||a==="reset")&&(this._dirty=!1,v=this._doReset(r)),this._modBy=f,this._modDataCount=c;var m=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(m!=null?this._dueIndex+m:1/0,this._dueEnd);if(!r&&(v||p<y)){var S=this._progress;if(ft(S))for(var x=0;x<S.length;x++)this._doProgress(S[x],p,y,f,c);else this._doProgress(S,p,y,f,c)}this._dueIndex=y;var w=this._settedOutputEnd!=null?this._settedOutputEnd:y;this._outputDueEnd=w}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,i,a){EM.reset(n,r,i,a),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:EM.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),ft(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.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})(),EM=(function(){var t,e,n,r,i,a={reset:function(f,c,d,v){e=f,t=c,n=d,r=v,i=Math.ceil(r/n),a.next=n>1&&r>0?u:l}};return a;function l(){return e<t?e++:null}function u(){var f=e%i*n+Math.ceil(e/i),c=e>=t?null:f<r?f:e;return e++,c}})();function sd(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!ve(t)&&t!=null&&t!=="-"&&(t=+ur(t)),t==null||t===""?NaN:Number(t))}At({number:function(t){return parseFloat(t)},time:function(t){return+ur(t)},trim:function(t){return gt(t)?wr(t):t}});var cP=(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=ve(e)?e:ff(e),i=ve(n)?n:ff(n),a=isNaN(r),l=isNaN(i);if(a&&(r=this._incomparable),l&&(i=this._incomparable),a&&l){var u=gt(e),f=gt(n);u&&(r=f?e:0),f&&(i=u?n:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},t})(),hP=(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 sd(e,n)},t})();function dP(t,e){var n=new hP,r=t.data,i=n.sourceFormat=t.sourceFormat,a=t.startIndex,l="";t.seriesLayoutBy!==Ai&&Sn(l);var u=[],f={},c=t.dimensionsDefine;if(c)I(c,function(S,x){var w=S.name,C={index:x,name:w,displayName:S.displayName};if(u.push(C),w!=null){var M="";Ta(f,w)&&Sn(M),f[w]=C}});else for(var d=0;d<t.dimensionsDetectedCount;d++)u.push({index:d});var v=sR(i,Ai);e.__isBuiltIn&&(n.getRawDataItem=function(S){return v(r,a,u,S)},n.getRawData=Tt(vP,null,t)),n.cloneRawData=Tt(gP,null,t);var m=uR(i,Ai);n.count=Tt(m,null,r,a,u);var p=fR(i);n.retrieveValue=function(S,x){var w=v(r,a,u,S);return y(w,x)};var y=n.retrieveValueFromItem=function(S,x){if(S!=null){var w=u[x];if(w)return p(S,x,w.name)}};return n.getDimensionInfo=Tt(pP,null,u,f),n.cloneAllDimensionInfo=Tt(mP,null,u),n}function vP(t){var e=t.sourceFormat;if(!$_(e)){var n="";Sn(n)}return t.data}function gP(t){var e=t.sourceFormat,n=t.data;if(!$_(e)){var r="";Sn(r)}if(e===Mn){for(var i=[],a=0,l=n.length;a<l;a++)i.push(n[a].slice());return i}else if(e===Ar){for(var i=[],a=0,l=n.length;a<l;a++)i.push(lt({},n[a]));return i}}function pP(t,e,n){if(n!=null){if(ve(n)||!isNaN(n)&&!Ta(e,n))return t[n];if(Ta(e,n))return e[n]}}function mP(t){return kt(t)}var cR=At();function yP(t){t=kt(t);var e=t.type,n="";e||Sn(n);var r=e.split(":");r.length!==2&&Sn(n);var i=!1;r[0]==="echarts"&&(e=r[1],i=!0),t.__isBuiltIn=i,cR.set(e,t)}function _P(t,e,n){var r=on(t),i=r.length,a="";i||Sn(a);for(var l=0,u=i;l<u;l++){var f=r[l];e=SP(f,e),l!==u-1&&(e.length=Math.max(e.length,1))}return e}function SP(t,e,n,r){var i="";e.length||Sn(i),bt(t)||Sn(i);var a=t.type,l=cR.get(a);l||Sn(i);var u=St(e,function(c){return dP(c,l)}),f=on(l.transform({upstream:u[0],upstreamList:u,config:kt(t.config)}));return St(f,function(c,d){var v="";bt(c)||Sn(v),c.data||Sn(v);var m=aR(c.data);$_(m)||Sn(v);var p,y=e[0];if(y&&d===0&&!c.dimensions){var S=y.startIndex;S&&(c.data=y.data.slice(0,S).concat(c.data)),p={seriesLayoutBy:Ai,sourceHeader:S,dimensions:y.metaRawOption.dimensions}}else p={seriesLayoutBy:Ai,sourceHeader:0,dimensions:c.dimensions};return g0(c.data,p,null)})}function $_(t){return t===Mn||t===Ar}var mv="undefined",xP=typeof Uint32Array===mv?Array:Uint32Array,bP=typeof Uint16Array===mv?Array:Uint16Array,hR=typeof Int32Array===mv?Array:Int32Array,LM=typeof Float64Array===mv?Array:Float64Array,dR={float:LM,int:hR,ordinal:Array,number:Array,time:LM},Ym;function El(t){return t>65535?xP:bP}function Ll(){return[1/0,-1/0]}function wP(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function OM(t,e,n,r,i){var a=dR[n||"float"];if(i){var l=t[e],u=l&&l.length;if(u!==r){for(var f=new a(r),c=0;c<u;c++)f[c]=l[c];t[e]=f}}else t[e]=new a(r)}var p0=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=At()}return t.prototype.initData=function(e,n,r){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=Ym[i.sourceFormat];this._dimValueGetter=r||a,this._rawExtent=[],oR(i),this._dimensions=St(n,function(l){return{type:l.type,property:l.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,i=this._dimensions,a=r.get(e);if(a!=null){if(i[a].type===n)return a}else a=i.length;return i[a]={type:n},r.set(e,a),this._chunks[a]=new dR[n||"float"](this._rawCount),this._rawExtent[a]=Ll(),a},t.prototype.collectOrdinalMeta=function(e,n){var r=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,l=i.ordinalOffset||0,u=r.length;l===0&&(a[e]=Ll());for(var f=a[e],c=l;c<u;c++){var d=r[c]=n.parseAndCollect(r[c]);isNaN(d)||(f[0]=Math.min(d,f[0]),f[1]=Math.max(d,f[1]))}i.ordinalMeta=n,i.ordinalOffset=u,i.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 i=n.count();return n.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},t.prototype.appendValues=function(e,n){for(var r=this._chunks,i=this._dimensions,a=i.length,l=this._rawExtent,u=this.count(),f=u+Math.max(e.length,n||0),c=0;c<a;c++){var d=i[c];OM(r,c,d.type,f,!0)}for(var v=[],m=u;m<f;m++)for(var p=m-u,y=0;y<a;y++){var d=i[y],S=Ym.arrayRows.call(this,e[p]||v,d.property,p,y);r[y][m]=S;var x=l[y];S<x[0]&&(x[0]=S),S>x[1]&&(x[1]=S)}return this._rawCount=this._count=f,{start:u,end:f}},t.prototype._initDataFromProvider=function(e,n,r){for(var i=this._provider,a=this._chunks,l=this._dimensions,u=l.length,f=this._rawExtent,c=St(l,function(C){return C.property}),d=0;d<u;d++){var v=l[d];f[d]||(f[d]=Ll()),OM(a,d,v.type,n,r)}if(i.fillStorage)i.fillStorage(e,n,a,f);else for(var m=[],p=e;p<n;p++){m=i.getItem(p,m);for(var y=0;y<u;y++){var S=a[y],x=this._dimValueGetter(m,c[y],p,y);S[p]=x;var w=f[y];x<w[0]&&(w[0]=x),x>w[1]&&(w[1]=x)}}!i.persistent&&i.clean&&i.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=[],i=[];if(n==null){n=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,l=i.length;a<l;a++)r.push(this.get(i[a],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 i=0,a=this.count();i<a;i++){var l=this.get(e,i);isNaN(l)||(r+=l)}return r},t.prototype.getMedian=function(e){var n=[];this.each([e],function(a){isNaN(a)||n.push(a)});var r=n.sort(function(a,l){return a-l}),i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/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 i=0,a=this._count-1;i<=a;){var l=(i+a)/2|0;if(n[l]<e)i=l+1;else if(n[l]>e)a=l-1;else return l}return-1},t.prototype.indicesOfNearest=function(e,n,r){var i=this._chunks,a=i[e],l=[];if(!a)return l;r==null&&(r=1/0);for(var u=1/0,f=-1,c=0,d=0,v=this.count();d<v;d++){var m=this.getRawIndex(d),p=n-a[m],y=Math.abs(p);y<=r&&((y<u||y===u&&p>=0&&f<0)&&(u=y,f=p,c=0),p===f&&(l[c++]=d))}return l.length=c,l},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){e=new r(i);for(var a=0;a<i;a++)e[a]=n[a]}else e=new r(n.buffer,0,i)}else{var r=El(this._rawCount);e=new r(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,n){if(!this._count)return this;for(var r=this.clone(),i=r.count(),a=El(r._rawCount),l=new a(i),u=[],f=e.length,c=0,d=e[0],v=r._chunks,m=0;m<i;m++){var p=void 0,y=r.getRawIndex(m);if(f===0)p=n(m);else if(f===1){var S=v[d][y];p=n(S,m)}else{for(var x=0;x<f;x++)u[x]=v[e[x]][y];u[x]=m,p=n.apply(null,u)}p&&(l[c++]=y)}return c<i&&(r._indices=l),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 i=de(e),a=i.length;if(!a)return this;var l=n.count(),u=El(n._rawCount),f=new u(l),c=0,d=i[0],v=e[d][0],m=e[d][1],p=n._chunks,y=!1;if(!n._indices){var S=0;if(a===1){for(var x=p[i[0]],w=0;w<r;w++){var C=x[w];(C>=v&&C<=m||isNaN(C))&&(f[c++]=S),S++}y=!0}else if(a===2){for(var x=p[i[0]],M=p[i[1]],A=e[i[1]][0],R=e[i[1]][1],w=0;w<r;w++){var C=x[w],D=M[w];(C>=v&&C<=m||isNaN(C))&&(D>=A&&D<=R||isNaN(D))&&(f[c++]=S),S++}y=!0}}if(!y)if(a===1)for(var w=0;w<l;w++){var L=n.getRawIndex(w),C=p[i[0]][L];(C>=v&&C<=m||isNaN(C))&&(f[c++]=L)}else for(var w=0;w<l;w++){for(var O=!0,L=n.getRawIndex(w),B=0;B<a;B++){var H=i[B],C=p[H][L];(C<e[H][0]||C>e[H][1])&&(O=!1)}O&&(f[c++]=n.getRawIndex(w))}return c<l&&(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 i=e._chunks,a=[],l=n.length,u=e.count(),f=[],c=e._rawExtent,d=0;d<n.length;d++)c[n[d]]=Ll();for(var v=0;v<u;v++){for(var m=e.getRawIndex(v),p=0;p<l;p++)f[p]=i[n[p]][m];f[l]=v;var y=r&&r.apply(null,f);if(y!=null){typeof y!="object"&&(a[0]=y,y=a);for(var d=0;d<y.length;d++){var S=n[d],x=y[d],w=c[S],C=i[S];C&&(C[m]=x),x<w[0]&&(w[0]=x),x>w[1]&&(w[1]=x)}}}},t.prototype.lttbDownSample=function(e,n){var r=this.clone([e],!0),i=r._chunks,a=i[e],l=this.count(),u=0,f=Math.floor(1/n),c=this.getRawIndex(0),d,v,m,p=new(El(this._rawCount))(Math.min((Math.ceil(l/f)+2)*2,l));p[u++]=c;for(var y=1;y<l-1;y+=f){for(var S=Math.min(y+f,l-1),x=Math.min(y+f*2,l),w=(x+S)/2,C=0,M=S;M<x;M++){var A=this.getRawIndex(M),R=a[A];isNaN(R)||(C+=R)}C/=x-S;var D=y,L=Math.min(y+f,l),O=y-1,B=a[c];d=-1,m=D;for(var H=-1,P=0,M=D;M<L;M++){var A=this.getRawIndex(M),R=a[A];if(isNaN(R)){P++,H<0&&(H=A);continue}v=Math.abs((O-w)*(R-B)-(O-M)*(C-B)),v>d&&(d=v,m=A)}P>0&&P<L-D&&(p[u++]=Math.min(H,m),m=Math.max(H,m)),p[u++]=m,c=m}return p[u++]=this.getRawIndex(l-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),i=r._chunks,a=Math.floor(1/n),l=i[e],u=this.count(),f=new(El(this._rawCount))(Math.ceil(u/a)*2),c=0,d=0;d<u;d+=a){var v=d,m=l[this.getRawIndex(v)],p=d,y=l[this.getRawIndex(p)],S=a;d+a>u&&(S=u-d);for(var x=0;x<S;x++){var w=this.getRawIndex(d+x),C=l[w];C<m&&(m=C,v=d+x),C>y&&(y=C,p=d+x)}var M=this.getRawIndex(v),A=this.getRawIndex(p);v<p?(f[c++]=M,f[c++]=A):(f[c++]=A,f[c++]=M)}return r._count=c,r._indices=f,r._updateGetRawIdx(),r},t.prototype.downSample=function(e,n,r,i){for(var a=this.clone([e],!0),l=a._chunks,u=[],f=Math.floor(1/n),c=l[e],d=this.count(),v=a._rawExtent[e]=Ll(),m=new(El(this._rawCount))(Math.ceil(d/f)),p=0,y=0;y<d;y+=f){f>d-y&&(f=d-y,u.length=f);for(var S=0;S<f;S++){var x=this.getRawIndex(y+S);u[S]=c[x]}var w=r(u),C=this.getRawIndex(Math.min(y+i(u,w)||0,d-1));c[C]=w,w<v[0]&&(v[0]=w),w>v[1]&&(v[1]=w),m[p++]=C}return a._count=p,a._indices=m,a._updateGetRawIdx(),a},t.prototype.each=function(e,n){if(this._count)for(var r=e.length,i=this._chunks,a=0,l=this.count();a<l;a++){var u=this.getRawIndex(a);switch(r){case 0:n(a);break;case 1:n(i[e[0]][u],a);break;case 2:n(i[e[0]][u],i[e[1]][u],a);break;default:for(var f=0,c=[];f<r;f++)c[f]=i[e[f]][u];c[f]=a,n.apply(null,c)}}},t.prototype.getDataExtent=function(e){var n=this._chunks[e],r=Ll();if(!n)return r;var i=this.count(),a=!this._indices,l;if(a)return this._rawExtent[e].slice();if(l=this._extent[e],l)return l.slice();l=r;for(var u=l[0],f=l[1],c=0;c<i;c++){var d=this.getRawIndex(c),v=n[d];v<u&&(u=v),v>f&&(f=v)}return l=[u,f],this._extent[e]=l,l},t.prototype.getRawDataItem=function(e){var n=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,a=0;a<i.length;a++)r.push(i[a][n]);return r},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,a=e&&Gr(e,function(u,f){return u[f]=!0,u},{});if(a)for(var l=0;l<i.length;l++)r._chunks[l]=a[l]?wP(i[l]):i[l];else r._chunks=i;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=kt(this._extent),e._rawExtent=kt(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 i=0;i<r;i++)n[i]=this._indices[i]}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,i,a){return sd(n[a],this._dimensions[a])}Ym={arrayRows:e,objectRows:function(n,r,i,a){return sd(n[r],this._dimensions[a])},keyedColumns:e,original:function(n,r,i,a){var l=n&&(n.value==null?n:n.value);return sd(l instanceof Array?l[a]:l,this._dimensions[a])},typedArray:function(n,r,i,a){return n[a]}}})(),t})(),CP=(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,i,a;if(Ah(e)){var l=e,u=void 0,f=void 0,c=void 0;if(r){var d=n[0];d.prepareSource(),c=d.getSource(),u=c.data,f=c.sourceFormat,a=[d._getVersionSign()]}else u=l.get("data",!0),f=sn(u)?Ca:dr,a=[];var v=this._getSourceMetaRawOption()||{},m=c&&c.metaRawOption||{},p=Pt(v.seriesLayoutBy,m.seriesLayoutBy)||null,y=Pt(v.sourceHeader,m.sourceHeader),S=Pt(v.dimensions,m.dimensions),x=p!==m.seriesLayoutBy||!!y!=!!m.sourceHeader||S;i=x?[g0(u,{seriesLayoutBy:p,sourceHeader:y,dimensions:S},f)]:[]}else{var w=e;if(r){var C=this._applyTransform(n);i=C.sourceList,a=C.upstreamSignList}else{var M=w.get("source",!0);i=[g0(M,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&zM(a)}var l,u=[],f=[];return I(e,function(c){c.prepareSource();var d=c.getSource(i||0),v="";i!=null&&!d&&zM(v),u.push(d),f.push(c._getVersionSign())}),r?l=_P(r,u,{datasetIndex:n.componentIndex}):i!=null&&(l=[nP(u[0])]),{sourceList:l,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 i=0,a=this._storeList,l=a[i];l||(l=a[i]={});var u=l[r];if(!u){var f=this._getUpstreamSourceManagers()[0];Ah(this._sourceHost)&&f?u=f._innerGetDataStore(e,n,r):(u=new p0,u.initData(new lR(n,e.length),e)),l[r]=u}return u},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ah(e)){var n=j_(e);return n?[n.getSourceManager()]:[]}else return St(L4(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,i;if(Ah(e))n=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;n=a.get("seriesLayoutBy",!0),r=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:i}},t})();function Ah(t){return t.mainType==="series"}function zM(t){throw new Error(t)}var MP="line-height:1";function vR(t){var e=t.lineHeight;return e==null?MP:"line-height:"+nn(e+"")+"px"}function gR(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",a=t.color||"#464646",l=t.fontSize||14,u=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+nn(r+"")+"px;color:"+nn(n)+";font-weight:"+nn(i+""),valueStyle:"font-size:"+nn(l+"")+"px;color:"+nn(a)+";font-weight:"+nn(u+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:l,fill:a,fontWeight:u}}}var TP=[0,10,20,30],AP=["",`
79
+ `,`
80
+
81
+ `,`
82
+
83
+
84
+ `];function Sf(t,e){return e.type=t,e}function m0(t){return t.type==="section"}function pR(t){return m0(t)?DP:RP}function mR(t){if(m0(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return I(t.blocks,function(i){var a=mR(i);a>=e&&(e=a+ +(r&&(!a||m0(i)&&!i.noHeader)))}),e}return 0}function DP(t,e,n,r){var i=e.noHeader,a=EP(mR(e)),l=[],u=e.blocks||[];Ur(!u||ft(u)),u=u||[];var f=t.orderMode;if(e.sortBlocks&&f){u=u.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Ta(c,f)){var d=new cP(c[f],null);u.sort(function(S,x){return d.evaluate(S.sortParam,x.sortParam)})}else f==="seriesDesc"&&u.reverse()}I(u,function(S,x){var w=e.valueFormatter,C=pR(S)(w?lt(lt({},t),{valueFormatter:w}):t,S,x>0?a.html:0,r);C!=null&&l.push(C)});var v=t.renderMode==="richText"?l.join(a.richText):y0(r,l.join(""),i?n:a.html);if(i)return v;var m=v0(e.header,"ordinal",t.useUTC),p=gR(r,t.renderMode).nameStyle,y=vR(r);return t.renderMode==="richText"?yR(t,m,p)+a.richText+v:y0(r,'<div style="'+p+";"+y+';">'+nn(m)+"</div>"+v,n)}function RP(t,e,n,r){var i=t.renderMode,a=e.noName,l=e.noValue,u=!e.markerType,f=e.name,c=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(A){return A=ft(A)?A:[A],St(A,function(R,D){return v0(R,ft(p)?p[D]:p,c)})};if(!(a&&l)){var v=u?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),m=a?"":v0(f,"ordinal",c),p=e.valueType,y=l?[]:d(e.value,e.dataIndex),S=!u||!a,x=!u&&a,w=gR(r,i),C=w.nameStyle,M=w.valueStyle;return i==="richText"?(u?"":v)+(a?"":yR(t,m,C))+(l?"":zP(t,y,S,x,M)):y0(r,(u?"":v)+(a?"":LP(m,!u,C))+(l?"":OP(y,S,x,M)),n)}}function NM(t,e,n,r,i,a){if(t){var l=pR(t),u={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return l(u,t,0,a)}}function EP(t){return{html:TP[t],richText:AP[t]}}function y0(t,e,n){var r='<div style="clear:both"></div>',i="margin: "+n+"px 0 0",a=vR(t);return'<div style="'+i+";"+a+';">'+e+r+"</div>"}function LP(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+nn(t)+"</span>"}function OP(t,e,n,r){var i=n?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=ft(t)?t:[t],'<span style="'+a+";"+r+'">'+St(t,function(l){return nn(l)}).join("&nbsp;&nbsp;")+"</span>"}function yR(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function zP(t,e,n,r,i){var a=[i],l=r?10:20;return n&&a.push({padding:[0,0,0,l],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(ft(e)?e.join(" "):e,a)}function NP(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return mf(r)}function _R(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var qm=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=k2()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,n,r){var i=r==="richText"?this._generateStyleName():null,a=ZD({color:n,type:e,renderMode:r,markerId:i});return gt(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};ft(n)?I(n,function(a){return lt(r,a)}):lt(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+e+"}"},t})();function IP(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),l=a.length,u=e.getRawValue(n),f=ft(u),c=NP(e,n),d,v,m,p;if(l>1||f&&!l){var y=BP(u,e,n,a,c);d=y.inlineValues,v=y.inlineValueTypes,m=y.blocks,p=y.inlineValues[0]}else if(l){var S=i.getDimensionInfo(a[0]);p=d=rs(i,n,a[0]),v=S.type}else p=d=f?u[0]:u;var x=__(e),w=x&&e.name||"",C=i.getName(n),M=r?w:C;return Sf("section",{header:w,noHeader:r||!x,sortParam:p,blocks:[Sf("nameValue",{markerType:"item",markerColor:c,name:M,noName:!wr(M),value:d,valueType:v,dataIndex:n})].concat(m||[])})}function BP(t,e,n,r,i){var a=e.getData(),l=Gr(t,function(v,m,p){var y=a.getDimensionInfo(p);return v=v||y&&y.tooltip!==!1&&y.displayName!=null},!1),u=[],f=[],c=[];r.length?I(r,function(v){d(rs(a,n,v),v)}):I(t,d);function d(v,m){var p=a.getDimensionInfo(m);!p||p.otherDims.tooltip===!1||(l?c.push(Sf("nameValue",{markerType:"subItem",markerColor:i,name:p.displayName,value:v,valueType:p.type})):(u.push(v),f.push(p.type)))}return{inlineValues:u,inlineValueTypes:f,blocks:c}}var la=xe();function Dh(t,e){return t.getName(e)||t.getId(e)}var PP="__universalTransitionEnabled",Vn=(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,i){this.seriesIndex=this.componentIndex,this.dataTask=Ju({count:HP,reset:VP}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var a=la(this).sourceManager=new CP(this);a.prepareSource();var l=this.getInitialData(n,i);BM(l,this),this.dataTask.context.data=l,la(this).dataBeforeProcessed=l,IM(this),this._initSelectedMapFromData(l)},e.prototype.mergeDefaultAndTheme=function(n,r){var i=yf(this),a=i?Vf(n):{},l=this.subType;qt.hasClass(l)&&(l+="Series"),jt(n,r.getTheme().get(this.subType)),jt(n,this.getDefaultOption()),n0(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&ns(n,a,i)},e.prototype.mergeOption=function(n,r){n=jt(this.option,n,!0),this.fillDataTextStyle(n.data);var i=yf(this);i&&ns(this.option,n,i);var a=la(this).sourceManager;a.dirty(),a.prepareSource();var l=this.getInitialData(n,r);BM(l,this),this.dataTask.dirty(),this.dataTask.context.data=l,la(this).dataBeforeProcessed=l,IM(this),this._initSelectedMapFromData(l)},e.prototype.fillDataTextStyle=function(n){if(n&&!sn(n))for(var r=["show"],i=0;i<n.length;i++)n[i]&&n[i].label&&n0(n[i],"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=_0(this);if(r){var i=r.context.data;return n==null||!i.getLinkedData?i:i.getLinkedData(n)}else return la(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=_0(this);if(r){var i=r.context;i.outputData=n,r!==this.dataTask&&(i.data=n)}la(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return At(n)},e.prototype.getSourceManager=function(){return la(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return la(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,i){return IP({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,i){var a=this.ecModel,l=Y_.prototype.getColorFromPalette.call(this,n,r,i);return l||(l=a.getColorFromPalette(n,r,i)),l},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 i=this.option.selectedMap;if(i){var a=this.option.selectedMode,l=this.getData(r);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var u=0;u<n.length;u++){var f=n[u],c=Dh(l,f);i[c]=!1,this._selectedDataIndicesMap[c]=-1}}},e.prototype.toggleSelect=function(n,r){for(var i=[],a=0;a<n.length;a++)i[0]=n[a],this.isSelected(n[a],r)?this.unselect(i,r):this.select(i,r)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=de(n),i=[],a=0;a<r.length;a++){var l=n[r[a]];l>=0&&i.push(l)}return i},e.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(r);return(i==="all"||i[Dh(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[PP])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.prototype._innerSelect=function(n,r){var i,a,l=this.option,u=l.selectedMode,f=r.length;if(!(!u||!f)){if(u==="series")l.selectedMap="all";else if(u==="multiple"){bt(l.selectedMap)||(l.selectedMap={});for(var c=l.selectedMap,d=0;d<f;d++){var v=r[d],m=Dh(n,v);c[m]=!0,this._selectedDataIndicesMap[m]=n.getRawIndex(v)}}else if(u==="single"||u===!0){var p=r[f-1],m=Dh(n,p);l.selectedMap=(i={},i[m]=!0,i),this._selectedDataIndicesMap=(a={},a[m]=n.getRawIndex(p),a)}}},e.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(i){var a=n.getRawDataItem(i);a&&a.selected&&r.push(i)}),r.length>0&&this._innerSelect(n,r)}},e.registerClass=function(n){return qt.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})(qt);cr(Vn,uP);cr(Vn,Y_);j2(Vn,qt);function IM(t){var e=t.name;__(t)||(t.name=kP(t)||e)}function kP(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return I(n,function(i){var a=e.getDimensionInfo(i);a.displayName&&r.push(a.displayName)}),r.join(" ")}function HP(t){return t.model.getRawData().count()}function VP(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),FP}function FP(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function BM(t,e){I(a2(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,ce(GP,e))})}function GP(t,e){var n=_0(t);return n&&n.setOutputEnd((e||this).count()),e}function _0(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}var un=(function(){function t(){this.group=new Qe,this.uid=uv("viewComponent")}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,i){},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,i){},t.prototype.updateLayout=function(e,n,r,i){},t.prototype.updateVisual=function(e,n,r,i){},t.prototype.toggleBlurSeries=function(e,n,r){},t.prototype.eachRendered=function(e){var n=this.group;n&&n.traverse(e)},t})();x_(un);Kd(un);function SR(){var t=xe();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,a=!!n.progressiveRender,l=n.large=!!(r&&r.large),u=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==l||a!==u)&&"reset"}}var xR=xe(),UP=SR(),sr=(function(){function t(){this.group=new Qe,this.uid=uv("viewChart"),this.renderTask=Ju({plan:jP,reset:YP}),this.renderTask.context={view:this}}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,i){},t.prototype.highlight=function(e,n,r,i){var a=e.getData(i&&i.dataType);a&&kM(a,i,"emphasis")},t.prototype.downplay=function(e,n,r,i){var a=e.getData(i&&i.dataType);a&&kM(a,i,"normal")},t.prototype.remove=function(e,n){this.group.removeAll()},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.updateLayout=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.updateVisual=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.eachRendered=function(e){L_(this.group,e)},t.markUpdateMethod=function(e,n){xR(e).updateMethod=n},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function PM(t,e,n){t&&f0(t)&&(e==="emphasis"?o0:l0)(t,n)}function kM(t,e,n){var r=Of(t,e),i=e&&e.highlightKey!=null?gB(e.highlightKey):null;r!=null?I(on(r),function(a){PM(t.getItemGraphicEl(a),n,i)}):t.eachItemGraphicEl(function(a){PM(a,n,i)})}x_(sr);Kd(sr);function jP(t){return UP(t.model)}function YP(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,l=t.view,u=i&&xR(i).updateMethod,f=a?"incrementalPrepareRender":u&&l[u]?u:"render";return f!=="render"&&l[f](e,n,r,i),qP[f]}var qP={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)}}},Ld="\0__throttleOriginMethod",HM="\0__throttleRate",VM="\0__throttleType";function yv(t,e,n){var r,i=0,a=0,l=null,u,f,c,d;e=e||0;function v(){a=new Date().getTime(),l=null,t.apply(f,c||[])}var m=function(){for(var p=[],y=0;y<arguments.length;y++)p[y]=arguments[y];r=new Date().getTime(),f=this,c=p;var S=d||e,x=d||n;d=null,u=r-(x?i:a)-S,clearTimeout(l),x?l=setTimeout(v,S):u>=0?v():l=setTimeout(v,-u),i=r};return m.clear=function(){l&&(clearTimeout(l),l=null)},m.debounceNextCall=function(p){d=p},m}function _v(t,e,n,r){var i=t[e];if(i){var a=i[Ld]||i,l=i[VM],u=i[HM];if(u!==n||l!==r){if(n==null||!r)return t[e]=a;i=t[e]=yv(a,n,r==="debounce"),i[Ld]=a,i[VM]=r,i[HM]=n}return i}}function Od(t,e){var n=t[e];n&&n[Ld]&&(n.clear&&n.clear(),t[e]=n[Ld])}var FM=xe(),GM={itemStyle:hf(kD,!0),lineStyle:hf(PD,!0)},XP={lineStyle:"stroke",itemStyle:"fill"};function bR(t,e){var n=t.visualStyleMapper||GM[e];return n||(console.warn("Unknown style type '"+e+"'."),GM.itemStyle)}function wR(t,e){var n=t.visualDrawType||XP[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var ZP={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),a=bR(t,r),l=a(i),u=i.getShallow("decal");u&&(n.setVisual("decal",u),u.dirty=!0);var f=wR(t,r),c=l[f],d=It(c)?c:null,v=l.fill==="auto"||l.stroke==="auto";if(!l[f]||d||v){var m=t.getColorFromPalette(t.name,null,e.getSeriesCount());l[f]||(l[f]=m,n.setVisual("colorFromPalette",!0)),l.fill=l.fill==="auto"||It(l.fill)?m:l.fill,l.stroke=l.stroke==="auto"||It(l.stroke)?m:l.stroke}if(n.setVisual("style",l),n.setVisual("drawType",f),!e.isSeriesFiltered(t)&&d)return n.setVisual("colorFromPalette",!1),{dataEach:function(p,y){var S=t.getDataParams(y),x=lt({},l);x[f]=d(S),p.setItemVisual(y,"style",x)}}}},wu=new he,$P={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=bR(t,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(l,u){var f=l.getRawDataItem(u);if(f&&f[r]){wu.option=f[r];var c=i(wu),d=l.ensureUniqueItemVisual(u,"style");lt(d,c),wu.option.decal&&(l.setItemVisual(u,"decal",wu.option.decal),wu.option.decal.dirty=!0),a in c&&l.setItemVisual(u,"colorFromPalette",!1)}}:null}}}},WP={performRawSeries:!0,overallReset:function(t){var e=At();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,a=e.get(i);a||(a={},e.set(i,a)),FM(n).scope=a}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),i={},a=n.getData(),l=FM(n).scope,u=n.visualStyleAccessPath||"itemStyle",f=wR(n,u);a.each(function(c){var d=a.getRawIndex(c);i[d]=c}),r.each(function(c){var d=i[c],v=a.getItemVisual(d,"colorFromPalette");if(v){var m=a.ensureUniqueItemVisual(d,"style"),p=r.getName(c)||c+"",y=r.count();m[f]=n.getColorFromPalette(p,l,y)}})}})}},Rh=Math.PI;function QP(t,e){e=e||{},Kt(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 Qe,r=new ge({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i=new ze({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new ge({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(a);var l;return e.showSpinner&&(l=new Pf({shape:{startAngle:-Rh/2,endAngle:-Rh/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),l.animateShape(!0).when(1e3,{endAngle:Rh*3/2}).start("circularInOut"),l.animateShape(!0).when(1e3,{startAngle:Rh*3/2}).delay(300).start("circularInOut"),n.add(l)),n.resize=function(){var u=i.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),d=t.getHeight()/2;e.showSpinner&&l.setShape({cx:c,cy:d}),a.setShape({x:c-f,y:d-f,width:f*2,height:f*2}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var CR=(function(){function t(e,n,r,i){this._stageTaskMap=At(),this.ecInstance=e,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return t.prototype.restoreData=function(e,n){e.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,n){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),i=r.context,a=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>r.blockIndex,l=a?r.step:null,u=i&&i.modDataCount,f=u!=null?Math.ceil(u/l):null;return{step:l,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),i=e.getData(),a=i.count(),l=r.progressiveEnabled&&n.incrementalPrepareRender&&a>=r.threshold,u=e.get("large")&&a>=e.get("largeThreshold"),f=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=r.context={progressiveRender:l,modDataCount:f,large:u}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=At();e.eachSeries(function(i){var a=i.getProgressive(),l=i.uid;r.set(l,{id:l,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),n._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;I(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),l="";Ur(!(i.reset&&i.overallReset),l),i.reset&&this._createSeriesStageTask(i,a,n,r),i.overallReset&&this._createOverallStageTask(i,a,n,r)},this)},t.prototype.prepareView=function(e,n,r,i){var a=e.renderTask,l=a.context;l.model=n,l.ecModel=r,l.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(n,a)},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,i){i=i||{};var a=!1,l=this;I(e,function(f,c){if(!(i.visualType&&i.visualType!==f.visualType)){var d=l._stageTaskMap.get(f.uid),v=d.seriesTaskMap,m=d.overallTask;if(m){var p,y=m.agentStubMap;y.each(function(x){u(i,x)&&(x.dirty(),p=!0)}),p&&m.dirty(),l.updatePayload(m,r);var S=l.getPerformArgs(m,i.block);y.each(function(x){x.perform(S)}),m.perform(S)&&(a=!0)}else v&&v.each(function(x,w){u(i,x)&&x.dirty();var C=l.getPerformArgs(x,i.block);C.skip=!f.performRawSeries&&n.isSeriesFiltered(x.context.model),l.updatePayload(x,r),x.perform(C)&&(a=!0)})}});function u(f,c){return f.setDirty&&(!f.dirtyMap||f.dirtyMap.get(c.__pipeline.id))}this.unfinished=a||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,i){var a=this,l=n.seriesTaskMap,u=n.seriesTaskMap=At(),f=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(d):f?r.eachRawSeriesByType(f,d):c&&c(r,i).each(d);function d(v){var m=v.uid,p=u.set(m,l&&l.get(m)||Ju({plan:nk,reset:rk,count:ak}));p.context={model:v,ecModel:r,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(v,p)}},t.prototype._createOverallStageTask=function(e,n,r,i){var a=this,l=n.overallTask=n.overallTask||Ju({reset:KP});l.context={ecModel:r,api:i,overallReset:e.overallReset,scheduler:a};var u=l.agentStubMap,f=l.agentStubMap=At(),c=e.seriesType,d=e.getTargetSeries,v=!0,m=!1,p="";Ur(!e.createOnAllSeries,p),c?r.eachRawSeriesByType(c,y):d?d(r,i).each(y):(v=!1,I(r.getSeries(),y));function y(S){var x=S.uid,w=f.set(x,u&&u.get(x)||(m=!0,Ju({reset:JP,onDirty:ek})));w.context={model:S,overallProgress:v},w.agent=l,w.__block=v,a._pipe(S,w)}m&&l.dirty()},t.prototype._pipe=function(e,n){var r=e.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},t.wrapStageHandler=function(e,n){return It(e)&&(e={overallReset:e,seriesType:ok(e)}),e.uid=uv("stageHandler"),n&&(e.visualType=n),e},t})();function KP(t){t.overallReset(t.ecModel,t.api,t.payload)}function JP(t){return t.overallProgress&&tk}function tk(){this.agent.dirty(),this.getDownstream().dirty()}function ek(){this.agent&&this.agent.dirty()}function nk(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function rk(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=on(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?St(e,function(n,r){return MR(r)}):ik}var ik=MR(0);function MR(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(e,r)}}function ak(t){return t.data.count()}function ok(t){zd=null;try{t(xf,TR)}catch{}return zd}var xf={},TR={},zd;AR(xf,q_);AR(TR,eR);xf.eachSeriesByType=xf.eachRawSeriesByType=function(t){zd=t};xf.eachComponent=function(t){t.mainType==="series"&&t.subType&&(zd=t.subType)};function AR(t,e){for(var n in e.prototype)t[n]=We}var UM=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const lk={color:UM,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],UM]};var Ze="#B9B8CE",jM="#100C2A",Eh=function(){return{axisLine:{lineStyle:{color:Ze}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},YM=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],DR={darkMode:!0,color:YM,backgroundColor:jM,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ze},pageTextStyle:{color:Ze}},textStyle:{color:Ze},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ze}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ze},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:Ze}},timeline:{lineStyle:{color:Ze},label:{color:Ze},controlStyle:{color:Ze,borderColor:Ze}},calendar:{itemStyle:{color:jM},dayLabel:{color:Ze},monthLabel:{color:Ze},yearLabel:{color:Ze}},timeAxis:Eh(),logAxis:Eh(),valueAxis:Eh(),categoryAxis:Eh(),line:{symbol:"circle"},graph:{color:YM},gauge:{title:{color:Ze},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ze},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};DR.categoryAxis.splitLine.show=!1;var sk=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},i={};if(gt(e)){var a=Vr(e);n.mainType=a.main||null,n.subType=a.sub||null}else{var l=["Index","Name","Id"],u={name:1,dataIndex:1,dataType:1};I(e,function(f,c){for(var d=!1,v=0;v<l.length;v++){var m=l[v],p=c.lastIndexOf(m);if(p>0&&p===c.length-m.length){var y=c.slice(0,p);y!=="data"&&(n.mainType=y,n[m.toLowerCase()]=f,d=!0)}}u.hasOwnProperty(c)&&(r[c]=f,d=!0),d||(i[c]=f)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},t.prototype.filter=function(e,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,a=r.packedEvent,l=r.model,u=r.view;if(!l||!u)return!0;var f=n.cptQuery,c=n.dataQuery;return d(f,l,"mainType")&&d(f,l,"subType")&&d(f,l,"index","componentIndex")&&d(f,l,"name")&&d(f,l,"id")&&d(c,a,"name")&&d(c,a,"dataIndex")&&d(c,a,"dataType")&&(!u.filterForExposedEvent||u.filterForExposedEvent(e,n.otherQuery,i,a));function d(v,m,p,y){return v[p]==null||m[y||p]===v[p]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),S0=["symbol","symbolSize","symbolRotate","symbolOffset"],qM=S0.concat(["symbolKeepAspect"]),uk={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={},i={},a=!1,l=0;l<S0.length;l++){var u=S0[l],f=t.get(u);It(f)?(a=!0,i[u]=f):r[u]=f}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(lt({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var c=de(i);function d(v,m){for(var p=t.getRawValue(m),y=t.getDataParams(m),S=0;S<c.length;S++){var x=c[S];v.setItemVisual(m,x,i[x](p,y))}}return{dataEach:a?d:null}}},fk={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var n=t.getData();function r(i,a){for(var l=i.getItemModel(a),u=0;u<qM.length;u++){var f=qM[u],c=l.getShallow(f,!0);c!=null&&i.setItemVisual(a,f,c)}}return{dataEach:n.hasItemOption?r:null}}};function ck(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 hk(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 dk(t,e){function n(r,i){var a=[];return r.eachComponent({mainType:"series",subType:t,query:i},function(l){a.push(l.seriesIndex)}),a}I([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(r){e(r[0],function(i,a,l){i=lt({},i),l.dispatchAction(lt(i,{type:r[1],seriesIndex:n(a,i)}))})})}function Ol(t,e,n,r,i){var a=t+e;n.isSilent(a)||r.eachComponent({mainType:"series",subType:"pie"},function(l){for(var u=l.seriesIndex,f=l.option.selectedMap,c=i.selected,d=0;d<c.length;d++)if(c[d].seriesIndex===u){var v=l.getData(),m=Of(v,i.fromActionPayload);n.trigger(a,{type:a,seriesId:l.id,name:ft(m)?v.getName(m[0]):v.getName(m),selected:gt(f)?f:lt({},f)})}})}function vk(t,e,n){t.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(Ol("map","selectchanged",e,i,r),Ol("pie","selectchanged",e,i,r)):r.fromAction==="select"?(Ol("map","selected",e,i,r),Ol("pie","selected",e,i,r)):r.fromAction==="unselect"&&(Ol("map","unselected",e,i,r),Ol("pie","unselected",e,i,r))})}function Uu(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var gk=Math.round(Math.random()*9),pk=typeof Object.defineProperty=="function",mk=(function(){function t(){this._id="__ec_inner_"+gk++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return pk?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})(),yk=le.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,a=e.height/2;t.moveTo(n,r-a),t.lineTo(n+i,r+a),t.lineTo(n-i,r+a),t.closePath()}}),_k=le.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,a=e.height/2;t.moveTo(n,r-a),t.lineTo(n+i,r),t.lineTo(n,r+a),t.lineTo(n-i,r),t.closePath()}}),Sk=le.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,a=Math.max(i,e.height),l=i/2,u=l*l/(a-l),f=r-a+l+u,c=Math.asin(u/l),d=Math.cos(c)*l,v=Math.sin(c),m=Math.cos(c),p=l*.6,y=l*.7;t.moveTo(n-d,f+u),t.arc(n,f,l,Math.PI-c,Math.PI*2+c),t.bezierCurveTo(n+d-v*p,f+u+m*p,n,r-y,n,r),t.bezierCurveTo(n,r-y,n-d+v*p,f+u+m*p,n-d,f+u),t.closePath()}}),xk=le.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,a=e.y,l=r/3*2;t.moveTo(i,a),t.lineTo(i+l,a+n),t.lineTo(i,a+n/4*3),t.lineTo(i-l,a+n),t.lineTo(i,a),t.closePath()}}),bk={line:Ri,rect:ge,roundRect:ge,square:ge,circle:If,diamond:_k,pin:Sk,arrow:xk,triangle:yk},wk={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var a=Math.min(n,r);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},Nd={};I(bk,function(t,e){Nd[e]=new t});var Ck=le.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=wd(t,e,n),i=this.shape;return i&&i.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 i=Nd[r];i||(r="rect",i=Nd[r]),wk[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function Mk(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 is(t,e,n,r,i,a,l){var u=t.indexOf("empty")===0;u&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var f;return t.indexOf("image://")===0?f=D_(t.slice(8),new Xt(e,n,r,i),l?"center":"cover"):t.indexOf("path://")===0?f=av(t.slice(7),{},new Xt(e,n,r,i),l?"center":"cover"):f=new Ck({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),f.__isEmptyBrush=u,f.setColor=Mk,a&&f.setColor(a),f}function Tk(t,e){if(t!=null)return ft(t)||(t=[t,t]),[se(t[0],e[0])||0,se(Pt(t[1],t[0]),e[1])||0]}function wo(t){return isFinite(t)}function Ak(t,e,n){var r=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,l=e.y2==null?0:e.y2;e.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,l=l*n.height+n.y),r=wo(r)?r:0,i=wo(i)?i:1,a=wo(a)?a:0,l=wo(l)?l:0;var u=t.createLinearGradient(r,a,i,l);return u}function Dk(t,e,n){var r=n.width,i=n.height,a=Math.min(r,i),l=e.x==null?.5:e.x,u=e.y==null?.5:e.y,f=e.r==null?.5:e.r;e.global||(l=l*r+n.x,u=u*i+n.y,f=f*a),l=wo(l)?l:.5,u=wo(u)?u:.5,f=f>=0&&wo(f)?f:.5;var c=t.createRadialGradient(l,u,0,l,u,f);return c}function x0(t,e,n){for(var r=e.type==="radial"?Dk(t,e,n):Ak(t,e,n),i=e.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function Rk(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 Lh(t){return parseInt(t,10)}function Oh(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],l=["paddingRight","paddingBottom"][e];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var u=document.defaultView.getComputedStyle(t);return(t[i]||Lh(u[r])||Lh(t.style[r]))-(Lh(u[a])||0)-(Lh(u[l])||0)|0}function Ek(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:ve(t)?[t]:ft(t)?t:null}function RR(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&Ek(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(n=St(n,function(a){return a/i}),r/=i)}return[n,r]}var Lk=new es(!0);function Id(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function XM(t){return typeof t=="string"&&t!=="none"}function Bd(t){var e=t.fill;return e!=null&&e!=="none"}function ZM(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 $M(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 b0(t,e,n){var r=Y2(e.image,e.__image,n);if(Jd(r)){var i=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*o2),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function Ok(t,e,n,r){var i,a=Id(n),l=Bd(n),u=n.strokePercent,f=u<1,c=!e.path;(!e.silent||f)&&c&&e.createPathProxy();var d=e.path||Lk,v=e.__dirty;if(!r){var m=n.fill,p=n.stroke,y=l&&!!m.colorStops,S=a&&!!p.colorStops,x=l&&!!m.image,w=a&&!!p.image,C=void 0,M=void 0,A=void 0,R=void 0,D=void 0;(y||S)&&(D=e.getBoundingRect()),y&&(C=v?x0(t,m,D):e.__canvasFillGradient,e.__canvasFillGradient=C),S&&(M=v?x0(t,p,D):e.__canvasStrokeGradient,e.__canvasStrokeGradient=M),x&&(A=v||!e.__canvasFillPattern?b0(t,m,e):e.__canvasFillPattern,e.__canvasFillPattern=A),w&&(R=v||!e.__canvasStrokePattern?b0(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=A),y?t.fillStyle=C:x&&(A?t.fillStyle=A:l=!1),S?t.strokeStyle=M:w&&(R?t.strokeStyle=R:a=!1)}var L=e.getGlobalScale();d.setScale(L[0],L[1],e.segmentIgnoreThreshold);var O,B;t.setLineDash&&n.lineDash&&(i=RR(e),O=i[0],B=i[1]);var H=!0;(c||v&kl)&&(d.setDPR(t.dpr),f?d.setContext(null):(d.setContext(t),H=!1),d.reset(),e.buildPath(d,e.shape,r),d.toStatic(),e.pathUpdated()),H&&d.rebuildPath(t,f?u:1),O&&(t.setLineDash(O),t.lineDashOffset=B),r||(n.strokeFirst?(a&&$M(t,n),l&&ZM(t,n)):(l&&ZM(t,n),a&&$M(t,n))),O&&t.setLineDash([])}function zk(t,e,n){var r=e.__image=Y2(n.image,e.__image,e,e.onload);if(!(!r||!Jd(r))){var i=n.x||0,a=n.y||0,l=e.getWidth(),u=e.getHeight(),f=r.width/r.height;if(l==null&&u!=null?l=u*f:u==null&&l!=null?u=l/f:l==null&&u==null&&(l=r.width,u=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,d=n.sy||0;t.drawImage(r,c,d,n.sWidth,n.sHeight,i,a,l,u)}else if(n.sx&&n.sy){var c=n.sx,d=n.sy,v=l-c,m=u-d;t.drawImage(r,c,d,v,m,i,a,l,u)}else t.drawImage(r,i,a,l,u)}}function Nk(t,e,n){var r,i=n.text;if(i!=null&&(i+=""),i){t.font=n.font||zo,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var a=void 0,l=void 0;t.setLineDash&&n.lineDash&&(r=RR(e),a=r[0],l=r[1]),a&&(t.setLineDash(a),t.lineDashOffset=l),n.strokeFirst?(Id(n)&&t.strokeText(i,n.x,n.y),Bd(n)&&t.fillText(i,n.x,n.y)):(Bd(n)&&t.fillText(i,n.x,n.y),Id(n)&&t.strokeText(i,n.x,n.y)),a&&t.setLineDash([])}}var WM=["shadowBlur","shadowOffsetX","shadowOffsetY"],QM=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ER(t,e,n,r,i){var a=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){xn(t,i),a=!0;var l=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(l)?Do.opacity:l}(r||e.blend!==n.blend)&&(a||(xn(t,i),a=!0),t.globalCompositeOperation=e.blend||Do.blend);for(var u=0;u<WM.length;u++){var f=WM[u];(r||e[f]!==n[f])&&(a||(xn(t,i),a=!0),t[f]=t.dpr*(e[f]||0))}return(r||e.shadowColor!==n.shadowColor)&&(a||(xn(t,i),a=!0),t.shadowColor=e.shadowColor||Do.shadowColor),a}function KM(t,e,n,r,i){var a=bf(e,i.inHover),l=r?null:n&&bf(n,i.inHover)||{};if(a===l)return!1;var u=ER(t,a,l,r,i);if((r||a.fill!==l.fill)&&(u||(xn(t,i),u=!0),XM(a.fill)&&(t.fillStyle=a.fill)),(r||a.stroke!==l.stroke)&&(u||(xn(t,i),u=!0),XM(a.stroke)&&(t.strokeStyle=a.stroke)),(r||a.opacity!==l.opacity)&&(u||(xn(t,i),u=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var f=a.lineWidth,c=f/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==c&&(u||(xn(t,i),u=!0),t.lineWidth=c)}for(var d=0;d<QM.length;d++){var v=QM[d],m=v[0];(r||a[m]!==l[m])&&(u||(xn(t,i),u=!0),t[m]=a[m]||v[1])}return u}function Ik(t,e,n,r,i){return ER(t,bf(e,i.inHover),n&&bf(n,i.inHover),r,i)}function LR(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 Bk(t,e,n){for(var r=!1,i=0;i<t.length;i++){var a=t[i];r=r||a.isZeroArea(),LR(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}n.allClipped=r}function Pk(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 JM=1,tT=2,eT=3,nT=4;function kk(t){var e=Bd(t),n=Id(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 xn(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function bf(t,e){return e&&t.__hoverStyle||t.style}function W_(t,e){Co(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Co(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~Pn,e.__isRendered=!1;return}var a=e.__clipPaths,l=n.prevElClipPaths,u=!1,f=!1;if((!l||Rk(a,l))&&(l&&l.length&&(xn(t,n),t.restore(),f=u=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(xn(t,n),t.save(),Bk(a,t,n),u=!0),n.prevElClipPaths=a),n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var c=n.prevEl;c||(f=u=!0);var d=e instanceof le&&e.autoBatch&&kk(e.style);u||Pk(i,c.transform)?(xn(t,n),LR(t,e)):d||xn(t,n);var v=bf(e,n.inHover);e instanceof le?(n.lastDrawType!==JM&&(f=!0,n.lastDrawType=JM),KM(t,e,c,f,n),(!d||!n.batchFill&&!n.batchStroke)&&t.beginPath(),Ok(t,e,v,d),d&&(n.batchFill=v.fill||"",n.batchStroke=v.stroke||"")):e instanceof Cd?(n.lastDrawType!==eT&&(f=!0,n.lastDrawType=eT),KM(t,e,c,f,n),Nk(t,e,v)):e instanceof La?(n.lastDrawType!==tT&&(f=!0,n.lastDrawType=tT),Ik(t,e,c,f,n),zk(t,e,v)):e.getTemporalDisplayables&&(n.lastDrawType!==nT&&(f=!0,n.lastDrawType=nT),Hk(t,e,n)),d&&r&&xn(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Hk(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},l,u;for(l=e.getCursor(),u=r.length;l<u;l++){var f=r[l];f.beforeBrush&&f.beforeBrush(),f.innerBeforeBrush(),Co(t,f,a,l===u-1),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),a.prevEl=f}for(var c=0,d=i.length;c<d;c++){var f=i[c];f.beforeBrush&&f.beforeBrush(),f.innerBeforeBrush(),Co(t,f,a,c===d-1),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),a.prevEl=f}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Xm=new mk,rT=new Ef(100),iT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function w0(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i=r.painter.type==="svg";t.dirty&&Xm.delete(t);var a=Xm.get(t);if(a)return a;var l=Kt(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});l.backgroundColor==="none"&&(l.backgroundColor=null);var u={repeat:"repeat"};return f(u),u.rotation=l.rotation,u.scaleX=u.scaleY=i?1:1/n,Xm.set(t,u),t.dirty=!1,u;function f(c){for(var d=[n],v=!0,m=0;m<iT.length;++m){var p=l[iT[m]];if(p!=null&&!ft(p)&&!gt(p)&&!ve(p)&&typeof p!="boolean"){v=!1;break}d.push(p)}var y;if(v){y=d.join(",")+(i?"-svg":"");var S=rT.get(y);S&&(i?c.svgElement=S:c.image=S)}var x=zR(l.dashArrayX),w=Vk(l.dashArrayY),C=OR(l.symbol),M=Fk(x),A=NR(w),R=!i&&Di.createCanvas(),D=i&&{tag:"g",attrs:{},key:"dcl",children:[]},L=B(),O;R&&(R.width=L.width*n,R.height=L.height*n,O=R.getContext("2d")),H(),v&&rT.put(y,R||D),c.image=R,c.svgElement=D,c.svgWidth=L.width,c.svgHeight=L.height;function B(){for(var P=1,q=0,$=M.length;q<$;++q)P=SC(P,M[q]);for(var W=1,q=0,$=C.length;q<$;++q)W=SC(W,C[q].length);P*=W;var J=A*M.length*C.length;return{width:Math.max(1,Math.min(P,l.maxTileWidth)),height:Math.max(1,Math.min(J,l.maxTileHeight))}}function H(){O&&(O.clearRect(0,0,R.width,R.height),l.backgroundColor&&(O.fillStyle=l.backgroundColor,O.fillRect(0,0,R.width,R.height)));for(var P=0,q=0;q<w.length;++q)P+=w[q];if(P<=0)return;for(var $=-A,W=0,J=0,V=0;$<L.height;){if(W%2===0){for(var K=J/2%C.length,j=0,rt=0,it=0;j<L.width*2;){for(var N=0,q=0;q<x[V].length;++q)N+=x[V][q];if(N<=0)break;if(rt%2===0){var U=(1-l.symbolSize)*.5,at=j+x[V][rt]*U,ot=$+w[W]*U,ct=x[V][rt]*l.symbolSize,dt=w[W]*l.symbolSize,st=it/2%C[K].length;Bt(at,ot,ct,dt,C[K][st])}j+=x[V][rt],++it,++rt,rt===x[V].length&&(rt=0)}++V,V===x.length&&(V=0)}$+=w[W],++J,++W,W===w.length&&(W=0)}function Bt(xt,Yt,yt,Et,Ot){var pt=i?1:n,me=is(Ot,xt*pt,Yt*pt,yt*pt,Et*pt,l.color,l.symbolKeepAspect);if(i){var be=r.painter.renderOneToVNode(me);be&&D.children.push(be)}else W_(O,me)}}}}function OR(t){if(!t||t.length===0)return[["rect"]];if(gt(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!gt(t[n])){e=!1;break}if(e)return OR([t]);for(var r=[],n=0;n<t.length;++n)gt(t[n])?r.push([t[n]]):r.push(t[n]);return r}function zR(t){if(!t||t.length===0)return[[0,0]];if(ve(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!ve(t[r])){n=!1;break}if(n)return zR([t]);for(var i=[],r=0;r<t.length;++r)if(ve(t[r])){var e=Math.ceil(t[r]);i.push([e,e])}else{var e=St(t[r],function(u){return Math.ceil(u)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function Vk(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(ve(t)){var e=Math.ceil(t);return[e,e]}var n=St(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function Fk(t){return St(t,function(e){return NR(e)})}function NR(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function Gk(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(l){var u=r.getItemVisual(l,"decal");if(u){var f=r.ensureUniqueItemVisual(l,"style");f.decal=w0(u,e)}});var i=r.getVisual("decal");if(i){var a=r.getVisual("style");a.decal=w0(i,e)}}})}var br=new Tr,IR={};function Uk(t,e){IR[t]=e}function BR(t){return IR[t]}var jk="5.6.0",Yk={zrender:"5.6.1"},qk=1,Xk=800,Zk=900,$k=1e3,Wk=2e3,Qk=5e3,PR=1e3,Kk=1100,Q_=2e3,kR=3e3,Jk=4e3,Sv=4500,tH=4600,eH=5e3,nH=6e3,HR=7e3,VR={PROCESSOR:{FILTER:$k,SERIES_FILTER:Xk,STATISTIC:Qk},VISUAL:{LAYOUT:PR,PROGRESSIVE_LAYOUT:Kk,GLOBAL:Q_,CHART:kR,POST_CHART_LAYOUT:tH,COMPONENT:Jk,BRUSH:eH,CHART_ITEM:Sv,ARIA:nH,DECAL:HR}},qe="__flagInMainProcess",yn="__pendingUpdate",Zm="__needsUpdateStatus",aT=/^[a-zA-Z0-9_]+$/,$m="__connectUpdateStatus",oT=0,rH=1,iH=2;function FR(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){this.id;return}return UR(this,t,e)}}function GR(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return UR(this,t,e)}}function UR(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Tr.prototype[e].apply(t,n)}var jR=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Tr),YR=jR.prototype;YR.on=GR("on");YR.off=GR("off");var zl,Wm,zh,sa,Qm,Km,Jm,Cu,Mu,lT,sT,ty,uT,Nh,fT,qR,Kn,cT,Pd=(function(t){ut(e,t);function e(n,r,i){var a=t.call(this,new sk)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},gt(r)&&(r=XR[r]),a._dom=n;var l="canvas",u="auto",f=!1;i.ssr&&O2(function(m){var p=te(m),y=p.dataIndex;if(y!=null){var S=At();return S.set("series_index",p.seriesIndex),S.set("data_index",y),p.ssrType&&S.set("ssr_type",p.ssrType),S}});var c=a._zr=t0(n,{renderer:i.renderer||l,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Pt(i.useDirtyRect,f),useCoarsePointer:Pt(i.useCoarsePointer,u),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=yv(Tt(c.flush,c),17),r=kt(r),r&&rR(r,!0),a._theme=r,a._locale=d4(i.locale||HD),a._coordSysMgr=new gv;var d=a._api=fT(a);function v(m,p){return m.__prio-p.__prio}return Kh(Hd,v),Kh(C0,v),a._scheduler=new CR(a,d,C0,Hd),a._messageCenter=new jR,a._initEvents(),a.resize=Tt(a.resize,a),c.animation.on("frame",a._onframe,a),lT(c,a),sT(c,a),vd(a),a}return e.prototype._onframe=function(){if(!this._disposed){cT(this);var n=this._scheduler;if(this[yn]){var r=this[yn].silent;this[qe]=!0;try{zl(this),sa.update.call(this,null,this[yn].updateParams)}catch(f){throw this[qe]=!1,this[yn]=null,f}this._zr.flush(),this[qe]=!1,this[yn]=null,Cu.call(this,r),Mu.call(this,r)}else if(n.unfinished){var i=qk,a=this._model,l=this._api;n.unfinished=!1;do{var u=+new Date;n.performSeriesTasks(a),n.performDataProcessorTasks(a),Km(this,a),n.performVisualTasks(a),Nh(this,this._model,l,"remain",{}),i-=+new Date-u}while(i>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,i){if(!this[qe]){if(this._disposed){this.id;return}var a,l,u;if(bt(r)&&(i=r.lazyUpdate,a=r.silent,l=r.replaceMerge,u=r.transition,r=r.notMerge),this[qe]=!0,!this._model||r){var f=new G4(this._api),c=this._theme,d=this._model=new q_;d.scheduler=this._scheduler,d.ssr=this._ssr,d.init(null,null,null,c,this._locale,f)}this._model.setOption(n,{replaceMerge:l},M0);var v={seriesTransition:u,optionChanged:!0};if(i)this[yn]={silent:a,updateParams:v},this[qe]=!1,this.getZr().wakeUp();else{try{zl(this),sa.update.call(this,null,v)}catch(m){throw this[yn]=null,this[qe]=!1,m}this._ssr||this._zr.flush(),this[yn]=null,this[qe]=!1,Cu.call(this,a),Mu.call(this,a)}}},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 I(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},e.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,a=[],l=this;I(r,function(f){i.eachComponent({mainType:f},function(c){var d=l._componentsMap[c.__viewId];d.group.ignore||(a.push(d),d.group.ignore=!0)})});var u=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return I(a,function(f){f.group.ignore=!1}),u},e.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,a=Math.min,l=Math.max,u=1/0;if(Vd[i]){var f=u,c=u,d=-u,v=-u,m=[],p=n&&n.pixelRatio||this.getDevicePixelRatio();I(Eo,function(M,A){if(M.group===i){var R=r?M.getZr().painter.getSvgDom().innerHTML:M.renderToCanvas(kt(n)),D=M.getDom().getBoundingClientRect();f=a(D.left,f),c=a(D.top,c),d=l(D.right,d),v=l(D.bottom,v),m.push({dom:R,left:D.left,top:D.top})}}),f*=p,c*=p,d*=p,v*=p;var y=d-f,S=v-c,x=Di.createCanvas(),w=t0(x,{renderer:r?"svg":"canvas"});if(w.resize({width:y,height:S}),r){var C="";return I(m,function(M){var A=M.left-f,R=M.top-c;C+='<g transform="translate('+A+","+R+')">'+M.dom+"</g>"}),w.painter.getSvgRoot().innerHTML=C,n.connectedBackgroundColor&&w.painter.setBackgroundColor(n.connectedBackgroundColor),w.refreshImmediately(),w.painter.toDataURL()}else return n.connectedBackgroundColor&&w.add(new ge({shape:{x:0,y:0,width:y,height:S},style:{fill:n.connectedBackgroundColor}})),I(m,function(M){var A=new La({style:{x:M.left*p-f,y:M.top*p-c,image:M.dom}});w.add(A)}),w.refreshImmediately(),x.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return Qm(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return Qm(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,a,l=Sm(i,n);return I(l,function(u,f){f.indexOf("Models")>=0&&I(u,function(c){var d=c.coordinateSystem;if(d&&d.containPoint)a=a||!!d.containPoint(r);else if(f==="seriesModels"){var v=this._chartsMap[c.__viewId];v&&v.containPoint&&(a=a||v.containPoint(r,c))}},this)},this),!!a},e.prototype.getVisual=function(n,r){var i=this._model,a=Sm(i,n,{defaultMainType:"series"}),l=a.seriesModel,u=l.getData(),f=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?u.indexOfRawIndex(a.dataIndex):null;return f!=null?ck(u,f,r):hk(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;I(aH,function(r){var i=function(a){var l=n.getModel(),u=a.target,f,c=r==="globalout";if(c?f={}:u&&Uu(u,function(y){var S=te(y);if(S&&S.dataIndex!=null){var x=S.dataModel||l.getSeriesByIndex(S.seriesIndex);return f=x&&x.getDataParams(S.dataIndex,S.dataType,u)||{},!0}else if(S.eventData)return f=lt({},S.eventData),!0},!0),f){var d=f.componentType,v=f.componentIndex;(d==="markLine"||d==="markPoint"||d==="markArea")&&(d="series",v=f.seriesIndex);var m=d&&v!=null&&l.getComponent(d,v),p=m&&n[m.mainType==="series"?"_chartsMap":"_componentsMap"][m.__viewId];f.event=a,f.type=r,n._$eventProcessor.eventInfo={targetEl:u,packedEvent:f,model:m,view:p},n.trigger(r,f)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),I(tf,function(r,i){n._messageCenter.on(i,function(a){this.trigger(i,a)},n)}),I(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),vk(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&&G2(this.getDom(),J_,"");var r=this,i=r._api,a=r._model;I(r._componentsViews,function(l){l.dispose(a,i)}),I(r._chartsViews,function(l){l.dispose(a,i)}),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 Eo[r.id]},e.prototype.resize=function(n){if(!this[qe]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),a=n&&n.silent;this[yn]&&(a==null&&(a=this[yn].silent),i=!0,this[yn]=null),this[qe]=!0;try{i&&zl(this),sa.update.call(this,{type:"resize",animation:lt({duration:0},n&&n.animation)})}catch(l){throw this[qe]=!1,l}this[qe]=!1,Cu.call(this,a),Mu.call(this,a)}}},e.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(bt(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!T0[n]){var i=T0[n](this._api,r),a=this._zr;this._loadingFX=i,a.add(i)}},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=lt({},n);return r.type=tf[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(bt(r)||(r={silent:!!r}),!!kd[n.type]&&this._model){if(this[qe]){this._pendingActions.push(n);return}var i=r.silent;Jm.call(this,n,i);var a=r.flush;a?this._zr.flush():a!==!1&&Dt.browser.weChat&&this._throttledZrFlush(),Cu.call(this,i),Mu.call(this,i)}},e.prototype.updateLabelLayout=function(){br.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(r);a.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){zl=function(v){var m=v._scheduler;m.restorePipelines(v._model),m.prepareStageTasks(),Wm(v,!0),Wm(v,!1),m.plan()},Wm=function(v,m){for(var p=v._model,y=v._scheduler,S=m?v._componentsViews:v._chartsViews,x=m?v._componentsMap:v._chartsMap,w=v._zr,C=v._api,M=0;M<S.length;M++)S[M].__alive=!1;m?p.eachComponent(function(D,L){D!=="series"&&A(L)}):p.eachSeries(A);function A(D){var L=D.__requireNewView;D.__requireNewView=!1;var O="_ec_"+D.id+"_"+D.type,B=!L&&x[O];if(!B){var H=Vr(D.type),P=m?un.getClass(H.main,H.sub):sr.getClass(H.sub);B=new P,B.init(p,C),x[O]=B,S.push(B),w.add(B.group)}D.__viewId=B.__id=O,B.__alive=!0,B.__model=D,B.group.__ecComponentInfo={mainType:D.mainType,index:D.componentIndex},!m&&y.prepareView(B,D,p,C)}for(var M=0;M<S.length;){var R=S[M];R.__alive?M++:(!m&&R.renderTask.dispose(),w.remove(R.group),R.dispose(p,C),S.splice(M,1),x[R.__id]===R&&delete x[R.__id],R.__id=R.group.__ecComponentInfo=null)}},zh=function(v,m,p,y,S){var x=v._model;if(x.setUpdatePayload(p),!y){I([].concat(v._componentsViews).concat(v._chartsViews),R);return}var w={};w[y+"Id"]=p[y+"Id"],w[y+"Index"]=p[y+"Index"],w[y+"Name"]=p[y+"Name"];var C={mainType:y,query:w};S&&(C.subType=S);var M=p.excludeSeriesId,A;M!=null&&(A=At(),I(on(M),function(D){var L=Fr(D,null);L!=null&&A.set(L,!0)})),x&&x.eachComponent(C,function(D){var L=A&&A.get(D.id)!=null;if(!L)if(YC(p))if(D instanceof Vn)p.type===Ro&&!p.notBlur&&!D.get(["emphasis","disabled"])&&lB(D,p,v._api);else{var O=T_(D.mainType,D.componentIndex,p.name,v._api),B=O.focusSelf,H=O.dispatchers;p.type===Ro&&B&&!p.notBlur&&u0(D.mainType,D.componentIndex,v._api),H&&I(H,function(P){p.type===Ro?o0(P):l0(P)})}else c0(p)&&D instanceof Vn&&(fB(D,p,v._api),UC(D),Kn(v))},v),x&&x.eachComponent(C,function(D){var L=A&&A.get(D.id)!=null;L||R(v[y==="series"?"_chartsMap":"_componentsMap"][D.__viewId])},v);function R(D){D&&D.__alive&&D[m]&&D[m](D.__model,x,v._api,p)}},sa={prepareAndUpdate:function(v){zl(this),sa.update.call(this,v,{optionChanged:v.newOption!=null})},update:function(v,m){var p=this._model,y=this._api,S=this._zr,x=this._coordSysMgr,w=this._scheduler;if(p){p.setUpdatePayload(v),w.restoreData(p,v),w.performSeriesTasks(p),x.create(p,y),w.performDataProcessorTasks(p,v),Km(this,p),x.update(p,y),n(p),w.performVisualTasks(p,v),ty(this,p,y,v,m);var C=p.get("backgroundColor")||"transparent",M=p.get("darkMode");S.setBackgroundColor(C),M!=null&&M!=="auto"&&S.setDarkMode(M),br.trigger("afterupdate",p,y)}},updateTransform:function(v){var m=this,p=this._model,y=this._api;if(p){p.setUpdatePayload(v);var S=[];p.eachComponent(function(w,C){if(w!=="series"){var M=m.getViewOfComponentModel(C);if(M&&M.__alive)if(M.updateTransform){var A=M.updateTransform(C,p,y,v);A&&A.update&&S.push(M)}else S.push(M)}});var x=At();p.eachSeries(function(w){var C=m._chartsMap[w.__viewId];if(C.updateTransform){var M=C.updateTransform(w,p,y,v);M&&M.update&&x.set(w.uid,1)}else x.set(w.uid,1)}),n(p),this._scheduler.performVisualTasks(p,v,{setDirty:!0,dirtyMap:x}),Nh(this,p,y,v,{},x),br.trigger("afterupdate",p,y)}},updateView:function(v){var m=this._model;m&&(m.setUpdatePayload(v),sr.markUpdateMethod(v,"updateView"),n(m),this._scheduler.performVisualTasks(m,v,{setDirty:!0}),ty(this,m,this._api,v,{}),br.trigger("afterupdate",m,this._api))},updateVisual:function(v){var m=this,p=this._model;p&&(p.setUpdatePayload(v),p.eachSeries(function(y){y.getData().clearAllVisual()}),sr.markUpdateMethod(v,"updateVisual"),n(p),this._scheduler.performVisualTasks(p,v,{visualType:"visual",setDirty:!0}),p.eachComponent(function(y,S){if(y!=="series"){var x=m.getViewOfComponentModel(S);x&&x.__alive&&x.updateVisual(S,p,m._api,v)}}),p.eachSeries(function(y){var S=m._chartsMap[y.__viewId];S.updateVisual(y,p,m._api,v)}),br.trigger("afterupdate",p,this._api))},updateLayout:function(v){sa.update.call(this,v)}},Qm=function(v,m,p,y){if(v._disposed){v.id;return}for(var S=v._model,x=v._coordSysMgr.getCoordinateSystems(),w,C=Sm(S,p),M=0;M<x.length;M++){var A=x[M];if(A[m]&&(w=A[m](S,C,y))!=null)return w}},Km=function(v,m){var p=v._chartsMap,y=v._scheduler;m.eachSeries(function(S){y.updateStreamModes(S,p[S.__viewId])})},Jm=function(v,m){var p=this,y=this.getModel(),S=v.type,x=v.escapeConnect,w=kd[S],C=w.actionInfo,M=(C.update||"update").split(":"),A=M.pop(),R=M[0]!=null&&Vr(M[0]);this[qe]=!0;var D=[v],L=!1;v.batch&&(L=!0,D=St(v.batch,function(W){return W=Kt(lt({},W),v),W.batch=null,W}));var O=[],B,H=c0(v),P=YC(v);if(P&&fD(this._api),I(D,function(W){if(B=w.action(W,p._model,p._api),B=B||lt({},W),B.type=C.event||B.type,O.push(B),P){var J=S_(v),V=J.queryOptionMap,K=J.mainTypeSpecified,j=K?V.keys()[0]:"series";zh(p,A,W,j),Kn(p)}else H?(zh(p,A,W,"series"),Kn(p)):R&&zh(p,A,W,R.main,R.sub)}),A!=="none"&&!P&&!H&&!R)try{this[yn]?(zl(this),sa.update.call(this,v),this[yn]=null):sa[A].call(this,v)}catch(W){throw this[qe]=!1,W}if(L?B={type:C.event||S,escapeConnect:x,batch:O}:B=O[0],this[qe]=!1,!m){var q=this._messageCenter;if(q.trigger(B.type,B),H){var $={type:"selectchanged",escapeConnect:x,selected:cB(y),isFromClick:v.isFromClick||!1,fromAction:v.type,fromActionPayload:v};q.trigger($.type,$)}}},Cu=function(v){for(var m=this._pendingActions;m.length;){var p=m.shift();Jm.call(this,p,v)}},Mu=function(v){!v&&this.trigger("updated")},lT=function(v,m){v.on("rendered",function(p){m.trigger("rendered",p),v.animation.isFinished()&&!m[yn]&&!m._scheduler.unfinished&&!m._pendingActions.length&&m.trigger("finished")})},sT=function(v,m){v.on("mouseover",function(p){var y=p.target,S=Uu(y,f0);S&&(sB(S,p,m._api),Kn(m))}).on("mouseout",function(p){var y=p.target,S=Uu(y,f0);S&&(uB(S,p,m._api),Kn(m))}).on("click",function(p){var y=p.target,S=Uu(y,function(C){return te(C).dataIndex!=null},!0);if(S){var x=S.selected?"unselect":"select",w=te(S);m._api.dispatchAction({type:x,dataType:w.dataType,dataIndexInside:w.dataIndex,seriesIndex:w.seriesIndex,isFromClick:!0})}})};function n(v){v.clearColorPalette(),v.eachSeries(function(m){m.clearColorPalette()})}function r(v){var m=[],p=[],y=!1;if(v.eachComponent(function(C,M){var A=M.get("zlevel")||0,R=M.get("z")||0,D=M.getZLevelKey();y=y||!!D,(C==="series"?p:m).push({zlevel:A,z:R,idx:M.componentIndex,type:C,key:D})}),y){var S=m.concat(p),x,w;Kh(S,function(C,M){return C.zlevel===M.zlevel?C.z-M.z:C.zlevel-M.zlevel}),I(S,function(C){var M=v.getComponent(C.type,C.idx),A=C.zlevel,R=C.key;x!=null&&(A=Math.max(x,A)),R?(A===x&&R!==w&&A++,w=R):w&&(A===x&&A++,w=""),x=A,M.setZLevel(A)})}}ty=function(v,m,p,y,S){r(m),uT(v,m,p,y,S),I(v._chartsViews,function(x){x.__alive=!1}),Nh(v,m,p,y,S),I(v._chartsViews,function(x){x.__alive||x.remove(m,p)})},uT=function(v,m,p,y,S,x){I(x||v._componentsViews,function(w){var C=w.__model;c(C,w),w.render(C,m,p,y),u(C,w),d(C,w)})},Nh=function(v,m,p,y,S,x){var w=v._scheduler;S=lt(S||{},{updatedSeries:m.getSeries()}),br.trigger("series:beforeupdate",m,p,S);var C=!1;m.eachSeries(function(M){var A=v._chartsMap[M.__viewId];A.__alive=!0;var R=A.renderTask;w.updatePayload(R,y),c(M,A),x&&x.get(M.uid)&&R.dirty(),R.perform(w.getPerformArgs(R))&&(C=!0),A.group.silent=!!M.get("silent"),l(M,A),UC(M)}),w.unfinished=C||w.unfinished,br.trigger("series:layoutlabels",m,p,S),br.trigger("series:transition",m,p,S),m.eachSeries(function(M){var A=v._chartsMap[M.__viewId];u(M,A),d(M,A)}),a(v,m),br.trigger("series:afterupdate",m,p,S)},Kn=function(v){v[Zm]=!0,v.getZr().wakeUp()},cT=function(v){v[Zm]&&(v.getZr().storage.traverse(function(m){Wu(m)||i(m)}),v[Zm]=!1)};function i(v){for(var m=[],p=v.currentStates,y=0;y<p.length;y++){var S=p[y];S==="emphasis"||S==="blur"||S==="select"||m.push(S)}v.selected&&v.states.select&&m.push("select"),v.hoverState===C_&&v.states.emphasis?m.push("emphasis"):v.hoverState===w_&&v.states.blur&&m.push("blur"),v.useStates(m)}function a(v,m){var p=v._zr,y=p.storage,S=0;y.traverse(function(x){x.isGroup||S++}),S>m.get("hoverLayerThreshold")&&!Dt.node&&!Dt.worker&&m.eachSeries(function(x){if(!x.preventUsingHoverLayer){var w=v._chartsMap[x.__viewId];w.__alive&&w.eachRendered(function(C){C.states.emphasis&&(C.states.emphasis.hoverLayer=!0)})}})}function l(v,m){var p=v.get("blendMode")||null;m.eachRendered(function(y){y.isGroup||(y.style.blend=p)})}function u(v,m){if(!v.preventAutoZ){var p=v.get("z")||0,y=v.get("zlevel")||0;m.eachRendered(function(S){return f(S,p,y,-1/0),!0})}}function f(v,m,p,y){var S=v.getTextContent(),x=v.getTextGuideLine(),w=v.isGroup;if(w)for(var C=v.childrenRef(),M=0;M<C.length;M++)y=Math.max(f(C[M],m,p,y),y);else v.z=m,v.zlevel=p,y=Math.max(v.z2,y);if(S&&(S.z=m,S.zlevel=p,isFinite(y)&&(S.z2=y+2)),x){var A=v.textGuideLineConfig;x.z=m,x.zlevel=p,isFinite(y)&&(x.z2=y+(A&&A.showAbove?1:-1))}return y}function c(v,m){m.eachRendered(function(p){if(!Wu(p)){var y=p.getTextContent(),S=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),S&&S.stateTransition&&(S.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function d(v,m){var p=v.getModel("stateAnimation"),y=v.isAnimationEnabled(),S=p.get("duration"),x=S>0?{duration:S,delay:p.get("delay"),easing:p.get("easing")}:null;m.eachRendered(function(w){if(w.states&&w.states.emphasis){if(Wu(w))return;if(w instanceof le&&pB(w),w.__dirty){var C=w.prevStates;C&&w.useStates(C)}if(y){w.stateTransition=x;var M=w.getTextContent(),A=w.getTextGuideLine();M&&(M.stateTransition=x),A&&(A.stateTransition=x)}w.__dirty&&i(w)}})}fT=function(v){return new((function(m){ut(p,m);function p(){return m!==null&&m.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(y){for(;y;){var S=y.__ecComponentInfo;if(S!=null)return v._model.getComponent(S.mainType,S.index);y=y.parent}},p.prototype.enterEmphasis=function(y,S){o0(y,S),Kn(v)},p.prototype.leaveEmphasis=function(y,S){l0(y,S),Kn(v)},p.prototype.enterBlur=function(y){oB(y),Kn(v)},p.prototype.leaveBlur=function(y){oD(y),Kn(v)},p.prototype.enterSelect=function(y){lD(y),Kn(v)},p.prototype.leaveSelect=function(y){sD(y),Kn(v)},p.prototype.getModel=function(){return v.getModel()},p.prototype.getViewOfComponentModel=function(y){return v.getViewOfComponentModel(y)},p.prototype.getViewOfSeriesModel=function(y){return v.getViewOfSeriesModel(y)},p})(eR))(v)},qR=function(v){function m(p,y){for(var S=0;S<p.length;S++){var x=p[S];x[$m]=y}}I(tf,function(p,y){v._messageCenter.on(y,function(S){if(Vd[v.group]&&v[$m]!==oT){if(S&&S.escapeConnect)return;var x=v.makeActionFromEvent(S),w=[];I(Eo,function(C){C!==v&&C.group===v.group&&w.push(C)}),m(w,oT),I(w,function(C){C[$m]!==rH&&C.dispatchAction(x)}),m(w,iH)}})})}})(),e})(Tr),K_=Pd.prototype;K_.on=FR("on");K_.off=FR("off");K_.one=function(t,e,n){var r=this;function i(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];e&&e.apply&&e.apply(this,a),r.off(t,i)}this.on.call(this,t,i,n)};var aH=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var kd={},tf={},C0=[],M0=[],Hd=[],XR={},T0={},Eo={},Vd={},oH=+new Date-0,lH=+new Date-0,J_="_echarts_instance_";function sH(t,e,n){var r=!(n&&n.ssr);if(r){var i=tS(t);if(i)return i}var a=new Pd(t,e,n);return a.id="ec_"+oH++,Eo[a.id]=a,r&&G2(t,J_,a.id),qR(a),br.trigger("afterinit",a),a}function uH(t){if(ft(t)){var e=t;t=null,I(e,function(n){n.group!=null&&(t=n.group)}),t=t||"g_"+lH++,I(e,function(n){n.group=t})}return Vd[t]=!0,t}function ZR(t){Vd[t]=!1}var fH=ZR;function cH(t){gt(t)?t=Eo[t]:t instanceof Pd||(t=tS(t)),t instanceof Pd&&!t.isDisposed()&&t.dispose()}function tS(t){return Eo[Q5(t,J_)]}function hH(t){return Eo[t]}function eS(t,e){XR[t]=e}function nS(t){Wt(M0,t)<0&&M0.push(t)}function rS(t,e){iS(C0,t,e,Wk)}function $R(t){xv("afterinit",t)}function WR(t){xv("afterupdate",t)}function xv(t,e){br.on(t,e)}function Oa(t,e,n){It(e)&&(n=e,e="");var r=bt(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,!tf[e]&&(Ur(aT.test(r)&&aT.test(e)),kd[r]||(kd[r]={action:n,actionInfo:t}),tf[e]=r)}function QR(t,e){gv.register(t,e)}function dH(t){var e=gv.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function KR(t,e){iS(Hd,t,e,PR,"layout")}function za(t,e){iS(Hd,t,e,kR,"visual")}var hT=[];function iS(t,e,n,r,i){if((It(e)||bt(e))&&(n=e,e=r),!(Wt(hT,n)>=0)){hT.push(n);var a=CR.wrapStageHandler(n,i);a.__prio=e,a.__raw=n,t.push(a)}}function aS(t,e){T0[t]=e}function vH(t){KA({createCanvas:t})}function JR(t,e,n){var r=BR("registerMap");r&&r(t,e,n)}function gH(t){var e=BR("getMap");return e&&e(t)}var tE=yP;za(Q_,ZP);za(Sv,$P);za(Sv,WP);za(Q_,uk);za(Sv,fk);za(HR,Gk);nS(rR);rS(Zk,tP);aS("default",QP);Oa({type:Ro,event:Ro,update:Ro},We);Oa({type:id,event:id,update:id},We);Oa({type:Xu,event:Xu,update:Xu},We);Oa({type:ad,event:ad,update:ad},We);Oa({type:Zu,event:Zu,update:Zu},We);eS("light",lk);eS("dark",DR);var pH={};function Tu(t){return t==null?0:t.length||1}function dT(t){return t}var mH=(function(){function t(e,n,r,i,a,l){this._old=e,this._new=n,this._oldKeyGetter=r||dT,this._newKeyGetter=i||dT,this.context=a,this._diffModeMultiple=l==="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={},i=new Array(e.length),a=new Array(n.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,a,"_newKeyGetter");for(var l=0;l<e.length;l++){var u=i[l],f=r[u],c=Tu(f);if(c>1){var d=f.shift();f.length===1&&(r[u]=f[0]),this._update&&this._update(d,l)}else c===1?(r[u]=null,this._update&&this._update(f,l)):this._remove&&this._remove(l)}this._performRestAdd(a,r)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},i={},a=[],l=[];this._initIndexMap(e,r,a,"_oldKeyGetter"),this._initIndexMap(n,i,l,"_newKeyGetter");for(var u=0;u<a.length;u++){var f=a[u],c=r[f],d=i[f],v=Tu(c),m=Tu(d);if(v>1&&m===1)this._updateManyToOne&&this._updateManyToOne(d,c),i[f]=null;else if(v===1&&m>1)this._updateOneToMany&&this._updateOneToMany(d,c),i[f]=null;else if(v===1&&m===1)this._update&&this._update(d,c),i[f]=null;else if(v>1&&m>1)this._updateManyToMany&&this._updateManyToMany(d,c),i[f]=null;else if(v>1)for(var p=0;p<v;p++)this._remove&&this._remove(c[p]);else this._remove&&this._remove(c)}this._performRestAdd(l,i)},t.prototype._performRestAdd=function(e,n){for(var r=0;r<e.length;r++){var i=e[r],a=n[i],l=Tu(a);if(l>1)for(var u=0;u<l;u++)this._add&&this._add(a[u]);else l===1&&this._add&&this._add(a);n[i]=null}},t.prototype._initIndexMap=function(e,n,r,i){for(var a=this._diffModeMultiple,l=0;l<e.length;l++){var u="_ec_"+this[i](e[l],l);if(a||(r[l]=u),!!n){var f=n[u],c=Tu(f);c===0?(n[u]=l,a&&r.push(u)):c===1?n[u]=[f,l]:f.push(l)}}},t})(),yH=(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 _H(t,e){var n={},r=n.encode={},i=At(),a=[],l=[],u={};I(t.dimensions,function(m){var p=t.getDimensionInfo(m),y=p.coordDim;if(y){var S=p.coordDimIndex;ey(r,y)[S]=m,p.isExtraCoord||(i.set(y,1),xH(p.type)&&(a[0]=m),ey(u,y)[S]=t.getDimensionIndex(p.name)),p.defaultTooltip&&l.push(m)}WD.each(function(x,w){var C=ey(r,w),M=p.otherDims[w];M!=null&&M!==!1&&(C[M]=p.name)})});var f=[],c={};i.each(function(m,p){var y=r[p];c[p]=y[0],f=f.concat(y)}),n.dataDimsOnCoord=f,n.dataDimIndicesOnCoord=St(f,function(m){return t.getDimensionInfo(m).storeDimIndex}),n.encodeFirstDimNotExtra=c;var d=r.label;d&&d.length&&(a=d.slice());var v=r.tooltip;return v&&v.length?l=v.slice():l.length||(l=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=l,n.userOutput=new yH(u,e),n}function ey(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function SH(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function xH(t){return!(t==="ordinal"||t==="time")}var ud=(function(){function t(e){this.otherDims={},e!=null&&lt(this,e)}return t})(),bH=xe(),wH={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},eE=(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=iE(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=oR(this.source),r=!aE(e),i="",a=[],l=0,u=0;l<e;l++){var f=void 0,c=void 0,d=void 0,v=this.dimensions[u];if(v&&v.storeDimIndex===l)f=n?v.name:null,c=v.type,d=v.ordinalMeta,u++;else{var m=this.getSourceDimension(l);m&&(f=n?m.name:null,c=m.type)}a.push({property:f,type:c,ordinalMeta:d}),n&&f!=null&&(!v||!v.isCalculationCoord)&&(i+=r?f.replace(/\`/g,"`1").replace(/\$/g,"`2"):f),i+="$",i+=wH[c]||"f",d&&(i+=d.uid),i+="$"}var p=this.source,y=[p.seriesLayoutBy,p.startIndex,i].join("$$");return{dimensions:a,hash:y}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],n=0,r=0;n<this._fullDimCount;n++){var i=void 0,a=this.dimensions[r];if(a&&a.storeDimIndex===n)a.isCalculationCoord||(i=a.name),r++;else{var l=this.getSourceDimension(n);l&&(i=l.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function nE(t){return t instanceof eE}function rE(t){for(var e=At(),n=0;n<(t||[]).length;n++){var r=t[n],i=bt(r)?r.name:r;i!=null&&e.get(i)==null&&e.set(i,n)}return e}function iE(t){var e=bH(t);return e.dimNameMap||(e.dimNameMap=rE(t.dimensionsDefine))}function aE(t){return t>30}var Au=bt,ua=St,CH=typeof Int32Array>"u"?Array:Int32Array,MH="e\0\0",vT=-1,TH=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],AH=["_approximateExtent"],gT,Ih,Du,Ru,ny,Eu,ry,oS=(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,i=!1;nE(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,r=e),r=r||["x","y"];for(var a={},l=[],u={},f=!1,c={},d=0;d<r.length;d++){var v=r[d],m=gt(v)?new ud({name:v}):v instanceof ud?v:new ud(v),p=m.name;m.type=m.type||"float",m.coordDim||(m.coordDim=p,m.coordDimIndex=0);var y=m.otherDims=m.otherDims||{};l.push(p),a[p]=m,c[p]!=null&&(f=!0),m.createInvertedIndices&&(u[p]=[]),y.itemName===0&&(this._nameDimIdx=d),y.itemId===0&&(this._idDimIdx=d),i&&(m.storeDimIndex=d)}if(this.dimensions=l,this._dimInfos=a,this._initGetDimensionInfo(f),this.hostModel=n,this._invertedIndicesMap=u,this._dimOmitted){var S=this._dimIdxToName=At();I(l,function(x){S.set(a[x].storeDimIndex,x)})}}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 i=this._schema.getSourceDimension(n);if(i)return i.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(ve(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 i=r.encode[e];return i?i[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 i=this,a;if(e instanceof p0&&(a=e),!a){var l=this.dimensions,u=X_(e)||ln(e)?new lR(e,l.length):e;a=new p0;var f=ua(l,function(c){return{type:i._dimInfos[c].type,property:c}});a.initData(u,f,r)}this._store=a,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=_H(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),i=r.start,a=r.end,l=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var u=i;u<a;u++){var f=u-i;this._nameList[u]=n[f],l&&ry(this,u)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,n=this.dimensions,r=0;r<n.length;r++){var i=this._dimInfos[n[r]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Ca&&!e.fillStorage},t.prototype._doInit=function(e,n){if(!(e>=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var a=this._nameList,l=this._idList,u=i.getSource().sourceFormat,f=u===dr;if(f&&!i.pure)for(var c=[],d=e;d<n;d++){var v=i.getItem(d,c);if(!this.hasItemOption&&H5(v)&&(this.hasItemOption=!0),v){var m=v.name;a[d]==null&&m!=null&&(a[d]=Fr(m,null));var p=v.id;l[d]==null&&p!=null&&(l[d]=Fr(p,null))}}if(this._shouldMakeIdFromName())for(var d=e;d<n;d++)ry(this,d);gT(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){Au(e)?lt(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=Du(this,this._nameDimIdx,n)),r==null&&(r=""),r},t.prototype._getCategory=function(e,n){var r=this._store.get(e,n),i=this._store.getOrdinalMeta(e);return i?i.categories[r]:r},t.prototype.getId=function(e){return Ih(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,n){var r=this._store,i=this._dimInfos[e];if(i)return r.get(i.storeDimIndex,n)},t.prototype.getByRawIndex=function(e,n){var r=this._store,i=this._dimInfos[e];if(i)return r.getByRawIndex(i.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,i=this._store;return ft(e)?i.getValues(ua(e,function(a){return r._getStoreDimIndex(a)}),n):i.getValues(e)},t.prototype.hasValue=function(e){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,i=n.length;r<i;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],i=r&&r[n];return i==null||isNaN(i)?vT:i},t.prototype.indicesOfNearest=function(e,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),n,r)},t.prototype.each=function(e,n,r){It(e)&&(r=n,n=e,e=[]);var i=r||this,a=ua(Ru(e),this._getStoreDimIndex,this);this._store.each(a,i?Tt(n,i):n)},t.prototype.filterSelf=function(e,n,r){It(e)&&(r=n,n=e,e=[]);var i=r||this,a=ua(Ru(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Tt(n,i):n),this},t.prototype.selectRange=function(e){var n=this,r={},i=de(e);return I(i,function(a){var l=n._getStoreDimIndex(a);r[l]=e[a]}),this._store=this._store.selectRange(r),this},t.prototype.mapArray=function(e,n,r){It(e)&&(r=n,n=e,e=[]),r=r||this;var i=[];return this.each(e,function(){i.push(n&&n.apply(this,arguments))},r),i},t.prototype.map=function(e,n,r,i){var a=r||i||this,l=ua(Ru(e),this._getStoreDimIndex,this),u=Eu(this);return u._store=this._store.map(l,a?Tt(n,a):n),u},t.prototype.modify=function(e,n,r,i){var a=r||i||this,l=ua(Ru(e),this._getStoreDimIndex,this);this._store.modify(l,a?Tt(n,a):n)},t.prototype.downSample=function(e,n,r,i){var a=Eu(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),n,r,i),a},t.prototype.minmaxDownSample=function(e,n){var r=Eu(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),n),r},t.prototype.lttbDownSample=function(e,n){var r=Eu(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 he(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new mH(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return Ih(e,r)},function(r){return Ih(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||{},Au(e)?lt(this._visual,e):this._visual[e]=n},t.prototype.getItemVisual=function(e,n){var r=this._itemVisuals[e],i=r&&r[n];return i??this.getVisual(n)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,n){var r=this._itemVisuals,i=r[e];i||(i=r[e]={});var a=i[n];return a==null&&(a=this.getVisual(n),ft(a)?a=a.slice():Au(a)&&(a=lt({},a)),i[n]=a),a},t.prototype.setItemVisual=function(e,n,r){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Au(n)?lt(i,n):i[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){Au(e)?lt(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?lt(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;WI(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){I(this._graphicEls,function(r,i){r&&e&&e.call(n,r,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:ua(this.dimensions,this._getDimInfo,this),this.hostModel)),ny(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];It(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(Zd(arguments)))})},t.internalField=(function(){gT=function(e){var n=e._invertedIndicesMap;I(n,function(r,i){var a=e._dimInfos[i],l=a.ordinalMeta,u=e._store;if(l){r=n[i]=new CH(l.categories.length);for(var f=0;f<r.length;f++)r[f]=vT;for(var f=0;f<u.count();f++)r[u.get(a.storeDimIndex,f)]=f}})},Du=function(e,n,r){return Fr(e._getCategory(n,r),null)},Ih=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=Du(e,e._idDimIdx,n)),r==null&&(r=MH+n),r},Ru=function(e){return ft(e)||(e=e!=null?[e]:[]),e},Eu=function(e){var n=new t(e._schema?e._schema:ua(e.dimensions,e._getDimInfo,e),e.hostModel);return ny(n,e),n},ny=function(e,n){I(TH.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,I(AH,function(r){e[r]=kt(n[r])}),e._calculationInfo=lt({},n._calculationInfo)},ry=function(e,n){var r=e._nameList,i=e._idList,a=e._nameDimIdx,l=e._idDimIdx,u=r[n],f=i[n];if(u==null&&a!=null&&(r[n]=u=Du(e,a,n)),f==null&&l!=null&&(i[n]=f=Du(e,l,n)),f==null&&u!=null){var c=e._nameRepeatCount,d=c[u]=(c[u]||0)+1;f=u,d>1&&(f+="__ec__"+d),i[n]=f}}})(),t})();function DH(t,e){return lS(t,e).dimensions}function lS(t,e){X_(t)||(t=iR(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=At(),a=[],l=EH(t,n,r,e.dimensionsCount),u=e.canOmitUnusedDimensions&&aE(l),f=r===t.dimensionsDefine,c=f?iE(t):rE(r),d=e.encodeDefine;!d&&e.encodeDefaulter&&(d=e.encodeDefaulter(t,l));for(var v=At(d),m=new hR(l),p=0;p<m.length;p++)m[p]=-1;function y(B){var H=m[B];if(H<0){var P=r[B],q=bt(P)?P:{name:P},$=new ud,W=q.name;W!=null&&c.get(W)!=null&&($.name=$.displayName=W),q.type!=null&&($.type=q.type),q.displayName!=null&&($.displayName=q.displayName);var J=a.length;return m[B]=J,$.storeDimIndex=B,a.push($),$}return a[H]}if(!u)for(var p=0;p<l;p++)y(p);v.each(function(B,H){var P=on(B).slice();if(P.length===1&&!gt(P[0])&&P[0]<0){v.set(H,!1);return}var q=v.set(H,[]);I(P,function($,W){var J=gt($)?c.get($):$;J!=null&&J<l&&(q[W]=J,x(y(J),H,W))})});var S=0;I(n,function(B){var H,P,q,$;if(gt(B))H=B,$={};else{$=B,H=$.name;var W=$.ordinalMeta;$.ordinalMeta=null,$=lt({},$),$.ordinalMeta=W,P=$.dimsDef,q=$.otherDims,$.name=$.coordDim=$.coordDimIndex=$.dimsDef=$.otherDims=null}var J=v.get(H);if(J!==!1){if(J=on(J),!J.length)for(var V=0;V<(P&&P.length||1);V++){for(;S<l&&y(S).coordDim!=null;)S++;S<l&&J.push(S++)}I(J,function(K,j){var rt=y(K);if(f&&$.type!=null&&(rt.type=$.type),x(Kt(rt,$),H,j),rt.name==null&&P){var it=P[j];!bt(it)&&(it={name:it}),rt.name=rt.displayName=it.name,rt.defaultTooltip=it.defaultTooltip}q&&Kt(rt.otherDims,q)})}});function x(B,H,P){WD.get(H)!=null?B.otherDims[H]=P:(B.coordDim=H,B.coordDimIndex=P,i.set(H,!0))}var w=e.generateCoord,C=e.generateCoordCount,M=C!=null;C=w?C||1:0;var A=w||"value";function R(B){B.name==null&&(B.name=B.coordDim)}if(u)I(a,function(B){R(B)}),a.sort(function(B,H){return B.storeDimIndex-H.storeDimIndex});else for(var D=0;D<l;D++){var L=y(D),O=L.coordDim;O==null&&(L.coordDim=LH(A,i,M),L.coordDimIndex=0,(!w||C<=0)&&(L.isExtraCoord=!0),C--),R(L),L.type==null&&(JD(t,D)===Ge.Must||L.isExtraCoord&&(L.otherDims.itemName!=null||L.otherDims.seriesName!=null))&&(L.type="ordinal")}return RH(a),new eE({source:t,dimensions:a,fullDimensionCount:l,dimensionOmitted:u})}function RH(t){for(var e=At(),n=0;n<t.length;n++){var r=t[n],i=r.name,a=e.get(i)||0;a>0&&(r.name=i+(a-1)),a++,e.set(i,a)}}function EH(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return I(e,function(a){var l;bt(a)&&(l=a.dimsDef)&&(i=Math.max(i,l.length))}),i}function LH(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 OH=(function(){function t(e){this.coordSysDims=[],this.axisMap=At(),this.categoryAxisMap=At(),this.coordSysName=e}return t})();function zH(t){var e=t.get("coordinateSystem"),n=new OH(e),r=NH[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var NH={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",bn).models[0],a=t.getReferringComponents("yAxis",bn).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),Nl(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Nl(a)&&(r.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",bn).models[0];e.coordSysDims=["single"],n.set("single",i),Nl(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",bn).models[0],a=i.findAxisModel("radiusAxis"),l=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",l),Nl(a)&&(r.set("radius",a),e.firstCategoryDimIndex=0),Nl(l)&&(r.set("angle",l),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),l=e.coordSysDims=a.dimensions.slice();I(a.parallelAxisIndex,function(u,f){var c=i.getComponent("parallelAxis",u),d=l[f];n.set(d,c),Nl(c)&&(r.set(d,c),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=f))})}};function Nl(t){return t.get("type")==="category"}function oE(t,e,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,a,l,u;IH(e)?a=e:(l=e.schema,a=l.dimensions,u=e.store);var f=!!(t&&t.get("stack")),c,d,v,m;if(I(a,function(C,M){gt(C)&&(a[M]=C={name:C}),f&&!C.isExtraCoord&&(!r&&!c&&C.ordinalMeta&&(c=C),!d&&C.type!=="ordinal"&&C.type!=="time"&&(!i||i===C.coordDim)&&(d=C))}),d&&!r&&!c&&(r=!0),d){v="__\0ecstackresult_"+t.id,m="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var p=d.coordDim,y=d.type,S=0;I(a,function(C){C.coordDim===p&&S++});var x={name:v,coordDim:p,coordDimIndex:S,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},w={name:m,coordDim:m,coordDimIndex:S+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};l?(u&&(x.storeDimIndex=u.ensureCalculationDimension(m,y),w.storeDimIndex=u.ensureCalculationDimension(v,y)),l.appendCalculationDimension(x),l.appendCalculationDimension(w)):(a.push(x),a.push(w))}return{stackedDimension:d&&d.name,stackedByDimension:c&&c.name,isStackedByIndex:r,stackedOverDimension:m,stackResultDimension:v}}function IH(t){return!nE(t.schema)}function sS(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function lE(t,e){return sS(t,e)?t.getCalculationInfo("stackResultDimension"):e}function BH(t,e){var n=t.get("coordinateSystem"),r=gv.get(n),i;return e&&e.coordSysDims&&(i=St(e.coordSysDims,function(a){var l={name:a},u=e.axisMap.get(a);if(u){var f=u.get("type");l.type=SH(f)}return l})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function PH(t,e,n){var r,i;return n&&I(t,function(a,l){var u=a.coordDim,f=n.categoryAxisMap.get(u);f&&(r==null&&(r=l),a.ordinalMeta=f.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(t[r].otherDims.itemName=0),r}function uS(t,e,n){n=n||{};var r=e.getSourceManager(),i,a=!1;i=r.getSource(),a=i.sourceFormat===dr;var l=zH(e),u=BH(e,l),f=n.useEncodeDefaulter,c=It(f)?f:f?ce(R4,u,e):null,d={coordDimensions:u,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!a},v=lS(i,d),m=PH(v.dimensions,n.createInvertedIndices,l),p=a?null:r.getSharedDataStore(v),y=oE(e,{schema:v,store:p}),S=new oS(v,e);S.setCalculationInfo(y);var x=m!=null&&kH(i)?function(w,C,M,A){return A===m?M:this.defaultDimValueGetter(w,C,M,A)}:null;return S.hasItemOption=!1,S.initData(a?i:p,null,x),S}function kH(t){if(t.sourceFormat===dr){var e=HH(t.data||[]);return!ft(Lf(e))}}function HH(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var Xr=(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(Xr);var VH=0,A0=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++VH}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&St(r,FH);return new t({categories:i,needCollect:!i,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(!gt(e)&&!r)return e;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,n;var i=this._getOrCreateMap();return n=i.get(e),n==null&&(r?(n=this.categories.length,this.categories[n]=e,i.set(e,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=At(this.categories))},t})();function FH(t){return bt(t)&&t.value!=null?t.value:t+""}function D0(t){return t.type==="interval"||t.type==="log"}function GH(t,e,n,r){var i={},a=t[1]-t[0],l=i.interval=y_(a/e,!0);n!=null&&l<n&&(l=i.interval=n),r!=null&&l>r&&(l=i.interval=r);var u=i.intervalPrecision=sE(l),f=i.niceTickExtent=[Oe(Math.ceil(t[0]/l)*l,u),Oe(Math.floor(t[1]/l)*l,u)];return UH(f,t),i}function iy(t){var e=Math.pow(10,Qd(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Oe(n*e)}function sE(t){return ts(t)+2}function pT(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function UH(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),pT(t,0,e),pT(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function bv(t,e){return t>=e[0]&&t<=e[1]}function wv(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Cv(t,e){return t*(e[1]-e[0])+e[0]}var fS=(function(t){ut(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new A0({})),ft(i)&&(i=new A0({categories:St(i,function(a){return bt(a)?a.value:a})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:gt(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),bv(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),wv(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(Cv(n,this._extent)),this.getRawOrdinalNumber(n)},e.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;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,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],l=0,u=this._ordinalMeta.categories.length,f=Math.min(u,r.length);l<f;++l){var c=r[l];i[l]=c,a[c]=l}for(var d=0;l<u;++l){for(;a[d]!=null;)d++;i.push(d),a[d]=l}},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),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},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})(Xr);Xr.registerClass(fS);var yo=Oe,ls=(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 bv(n,this._extent)},e.prototype.normalize=function(n){return wv(n,this._extent)},e.prototype.scale=function(n){return Cv(n,this._extent)},e.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[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=sE(n)},e.prototype.getTicks=function(n){var r=this._interval,i=this._extent,a=this._niceExtent,l=this._intervalPrecision,u=[];if(!r)return u;var f=1e4;i[0]<a[0]&&(n?u.push({value:yo(a[0]-r,l)}):u.push({value:i[0]}));for(var c=a[0];c<=a[1]&&(u.push({value:c}),c=yo(c+r,l),c!==u[u.length-1].value);)if(u.length>f)return[];var d=u.length?u[u.length-1].value:a[1];return i[1]>d&&(n?u.push({value:yo(d+r,l)}):u.push({value:i[1]})),u},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],a=this.getExtent(),l=1;l<r.length;l++){for(var u=r[l],f=r[l-1],c=0,d=[],v=u.value-f.value,m=v/n;c<n-1;){var p=yo(f.value+(c+1)*m);p>a[0]&&p<a[1]&&d.push(p),c++}i.push(d)}return i},e.prototype.getLabel=function(n,r){if(n==null)return"";var i=r&&r.precision;i==null?i=ts(n.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=yo(n.value,i,!0);return V_(a)},e.prototype.calcNiceTicks=function(n,r,i){n=n||5;var a=this._extent,l=a[1]-a[0];if(isFinite(l)){l<0&&(l=-l,a.reverse());var u=GH(a,n,r,i);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 i=Math.abs(r[0]);n.fixMax||(r[1]+=i/2),r[0]-=i/2}else r[1]=1;var a=r[1]-r[0];isFinite(a)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var l=this._interval;n.fixMin||(r[0]=yo(Math.floor(r[0]/l)*l)),n.fixMax||(r[1]=yo(Math.ceil(r[1]/l)*l))},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e})(Xr);Xr.registerClass(ls);var uE=typeof Float32Array<"u",jH=uE?Float32Array:Array;function ay(t){return ft(t)?uE?new Float32Array(t):t:new jH(t)}var YH="__ec_stack_";function fE(t){return t.get("stack")||YH+t.seriesIndex}function cS(t){return t.dim+t.index}function cE(t,e){var n=[];return e.eachSeriesByType(t,function(r){dE(r)&&n.push(r)}),n}function qH(t){var e={};I(t,function(f){var c=f.coordinateSystem,d=c.getBaseAxis();if(!(d.type!=="time"&&d.type!=="value"))for(var v=f.getData(),m=d.dim+"_"+d.index,p=v.getDimensionIndex(v.mapDimension(d.dim)),y=v.getStore(),S=0,x=y.count();S<x;++S){var w=y.get(p,S);e[m]?e[m].push(w):e[m]=[w]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort(function(f,c){return f-c});for(var a=null,l=1;l<i.length;++l){var u=i[l]-i[l-1];u>0&&(a=a===null?u:Math.min(a,u))}n[r]=a}}return n}function hE(t){var e=qH(t),n=[];return I(t,function(r){var i=r.coordinateSystem,a=i.getBaseAxis(),l=a.getExtent(),u;if(a.type==="category")u=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var f=a.dim+"_"+a.index,c=e[f],d=Math.abs(l[1]-l[0]),v=a.scale.getExtent(),m=Math.abs(v[1]-v[0]);u=c?d/m*c:d}else{var p=r.getData();u=Math.abs(l[1]-l[0])/p.count()}var y=se(r.get("barWidth"),u),S=se(r.get("barMaxWidth"),u),x=se(r.get("barMinWidth")||(vE(r)?.5:1),u),w=r.get("barGap"),C=r.get("barCategoryGap");n.push({bandWidth:u,barWidth:y,barMaxWidth:S,barMinWidth:x,barGap:w,barCategoryGap:C,axisKey:cS(a),stackId:fE(r)})}),XH(n)}function XH(t){var e={};I(t,function(r,i){var a=r.axisKey,l=r.bandWidth,u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},f=u.stacks;e[a]=u;var c=r.stackId;f[c]||u.autoWidthCount++,f[c]=f[c]||{width:0,maxWidth:0};var d=r.barWidth;d&&!f[c].width&&(f[c].width=d,d=Math.min(u.remainedWidth,d),u.remainedWidth-=d);var v=r.barMaxWidth;v&&(f[c].maxWidth=v);var m=r.barMinWidth;m&&(f[c].minWidth=m);var p=r.barGap;p!=null&&(u.gap=p);var y=r.barCategoryGap;y!=null&&(u.categoryGap=y)});var n={};return I(e,function(r,i){n[i]={};var a=r.stacks,l=r.bandWidth,u=r.categoryGap;if(u==null){var f=de(a).length;u=Math.max(35-f*4,15)+"%"}var c=se(u,l),d=se(r.gap,1),v=r.remainedWidth,m=r.autoWidthCount,p=(v-c)/(m+(m-1)*d);p=Math.max(p,0),I(a,function(w){var C=w.maxWidth,M=w.minWidth;if(w.width){var A=w.width;C&&(A=Math.min(A,C)),M&&(A=Math.max(A,M)),w.width=A,v-=A+d*A,m--}else{var A=p;C&&C<A&&(A=Math.min(C,v)),M&&M>A&&(A=M),A!==p&&(w.width=A,v-=A+d*A,m--)}}),p=(v-c)/(m+(m-1)*d),p=Math.max(p,0);var y=0,S;I(a,function(w,C){w.width||(w.width=p),S=w,y+=w.width*(1+d)}),S&&(y-=S.width*d);var x=-y/2;I(a,function(w,C){n[i][C]=n[i][C]||{bandWidth:l,offset:x,width:w.width},x+=w.width*(1+d)})}),n}function ZH(t,e,n){if(t&&e){var r=t[cS(e)];return r}}function $H(t,e){var n=cE(t,e),r=hE(n);I(n,function(i){var a=i.getData(),l=i.coordinateSystem,u=l.getBaseAxis(),f=fE(i),c=r[cS(u)][f],d=c.offset,v=c.width;a.setLayout({bandWidth:c.bandWidth,offset:d,size:v})})}function WH(t){return{seriesType:t,plan:SR(),reset:function(e){if(dE(e)){var n=e.getData(),r=e.coordinateSystem,i=r.getBaseAxis(),a=r.getOtherAxis(i),l=n.getDimensionIndex(n.mapDimension(a.dim)),u=n.getDimensionIndex(n.mapDimension(i.dim)),f=e.get("showBackground",!0),c=n.mapDimension(a.dim),d=n.getCalculationInfo("stackResultDimension"),v=sS(n,c)&&!!n.getCalculationInfo("stackedOnSeries"),m=a.isHorizontal(),p=QH(i,a),y=vE(e),S=e.get("barMinHeight")||0,x=d&&n.getDimensionIndex(d),w=n.getLayout("size"),C=n.getLayout("offset");return{progress:function(M,A){for(var R=M.count,D=y&&ay(R*3),L=y&&f&&ay(R*3),O=y&&ay(R),B=r.master.getRect(),H=m?B.width:B.height,P,q=A.getStore(),$=0;(P=M.next())!=null;){var W=q.get(v?x:l,P),J=q.get(u,P),V=p,K=void 0;v&&(K=+W-q.get(l,P));var j=void 0,rt=void 0,it=void 0,N=void 0;if(m){var U=r.dataToPoint([W,J]);if(v){var at=r.dataToPoint([K,J]);V=at[0]}j=V,rt=U[1]+C,it=U[0]-V,N=w,Math.abs(it)<S&&(it=(it<0?-1:1)*S)}else{var U=r.dataToPoint([J,W]);if(v){var at=r.dataToPoint([J,K]);V=at[1]}j=U[0]+C,rt=V,it=w,N=U[1]-V,Math.abs(N)<S&&(N=(N<=0?-1:1)*S)}y?(D[$]=j,D[$+1]=rt,D[$+2]=m?it:N,L&&(L[$]=m?B.x:j,L[$+1]=m?rt:B.y,L[$+2]=H),O[P]=P):A.setItemLayout(P,{x:j,y:rt,width:it,height:N}),$+=3}y&&A.setLayout({largePoints:D,largeDataIndices:O,largeBackgroundPoints:L,valueAxisHorizontal:m})}}}}}}function dE(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function vE(t){return t.pipelineContext&&t.pipelineContext.large}function QH(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 KH=function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},gE=(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 kf(n.value,sM[m4($l(this._minLevelUnit))]||sM.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,i){var a=this.getSetting("useUTC"),l=this.getSetting("locale");return y4(n,r,i,l,a)},e.prototype.getTicks=function(){var n=this._interval,r=this._extent,i=[];if(!n)return i;i.push({value:r[0],level:0});var a=this.getSetting("useUTC"),l=a6(this._minLevelUnit,this._approxInterval,a,r);return i=i.concat(l),i.push({value:r[1],level:0}),i},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=lr,r[1]+=lr),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-lr}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},e.prototype.calcNiceTicks=function(n,r,i){n=n||10;var a=this._extent,l=a[1]-a[0];this._approxInterval=l/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var u=Bh.length,f=Math.min(KH(Bh,this._approxInterval,0,u),u-1);this._interval=Bh[f][1],this._minLevelUnit=Bh[Math.max(f-1,0)][0]},e.prototype.parse=function(n){return ve(n)?n:+ur(n)},e.prototype.contain=function(n){return bv(this.parse(n),this._extent)},e.prototype.normalize=function(n){return wv(this.parse(n),this._extent)},e.prototype.scale=function(n){return Cv(n,this._extent)},e.type="time",e})(ls),Bh=[["second",P_],["minute",k_],["hour",Qu],["quarter-day",Qu*6],["half-day",Qu*12],["day",lr*1.2],["half-week",lr*3.5],["week",lr*7],["month",lr*31],["quarter",lr*95],["half-year",lM/2],["year",lM]];function JH(t,e,n,r){var i=ur(e),a=ur(n),l=function(y){return uM(i,y,r)===uM(a,y,r)},u=function(){return l("year")},f=function(){return u()&&l("month")},c=function(){return f()&&l("day")},d=function(){return c()&&l("hour")},v=function(){return d()&&l("minute")},m=function(){return v()&&l("second")},p=function(){return m()&&l("millisecond")};switch(t){case"year":return u();case"month":return f();case"day":return c();case"hour":return d();case"minute":return v();case"second":return m();case"millisecond":return p()}}function t6(t,e){return t/=lr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function e6(t){var e=30*lr;return t/=e,t>6?6:t>3?3:t>2?2:1}function n6(t){return t/=Qu,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function mT(t,e){return t/=e?k_:P_,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function r6(t){return y_(t,!0)}function i6(t,e,n){var r=new Date(t);switch($l(e)){case"year":case"month":r[GD(n)](0);case"day":r[UD(n)](1);case"hour":r[jD(n)](0);case"minute":r[YD(n)](0);case"second":r[qD(n)](0),r[XD(n)](0)}return r.getTime()}function a6(t,e,n,r){var i=1e4,a=VD,l=0;function u(H,P,q,$,W,J,V){for(var K=new Date(P),j=P,rt=K[$]();j<q&&j<=r[1];)V.push({value:j}),rt+=H,K[W](rt),j=K.getTime();V.push({value:j,notAdd:!0})}function f(H,P,q){var $=[],W=!P.length;if(!JH($l(H),r[0],r[1],n)){W&&(P=[{value:i6(new Date(r[0]),H,n)},{value:r[1]}]);for(var J=0;J<P.length-1;J++){var V=P[J].value,K=P[J+1].value;if(V!==K){var j=void 0,rt=void 0,it=void 0,N=!1;switch(H){case"year":j=Math.max(1,Math.round(e/lr/365)),rt=H_(n),it=_4(n);break;case"half-year":case"quarter":case"month":j=e6(e),rt=Wl(n),it=GD(n);break;case"week":case"half-week":case"day":j=t6(e),rt=cv(n),it=UD(n),N=!0;break;case"half-day":case"quarter-day":case"hour":j=n6(e),rt=pf(n),it=jD(n);break;case"minute":j=mT(e,!0),rt=hv(n),it=YD(n);break;case"second":j=mT(e,!1),rt=dv(n),it=qD(n);break;case"millisecond":j=r6(e),rt=vv(n),it=XD(n);break}u(j,V,K,rt,it,N,$),H==="year"&&q.length>1&&J===0&&q.unshift({value:q[0].value-j})}}for(var J=0;J<$.length;J++)q.push($[J]);return $}}for(var c=[],d=[],v=0,m=0,p=0;p<a.length&&l++<i;++p){var y=$l(a[p]);if(p4(a[p])){f(a[p],c[c.length-1]||[],d);var S=a[p+1]?$l(a[p+1]):null;if(y!==S){if(d.length){m=v,d.sort(function(H,P){return H.value-P.value});for(var x=[],w=0;w<d.length;++w){var C=d[w].value;(w===0||d[w-1].value!==C)&&(x.push(d[w]),C>=r[0]&&C<=r[1]&&v++)}var M=(r[1]-r[0])/e;if(v>M*1.5&&m>M/1.5||(c.push(x),v>M||t===a[p]))break}d=[]}}}for(var A=Ee(St(c,function(H){return Ee(H,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(H){return H.length>0}),R=[],D=A.length-1,p=0;p<A.length;++p)for(var L=A[p],O=0;O<L.length;++O)R.push({value:L[O].value,level:D-p});R.sort(function(H,P){return H.value-P.value});for(var B=[],p=0;p<R.length;++p)(p===0||R[p].value!==R[p-1].value)&&B.push(R[p]);return B}Xr.registerClass(gE);var yT=Xr.prototype,ef=ls.prototype,o6=Oe,l6=Math.floor,s6=Math.ceil,Ph=Math.pow,yr=Math.log,hS=(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 ls,n._interval=0,n}return e.prototype.getTicks=function(n){var r=this._originalScale,i=this._extent,a=r.getExtent(),l=ef.getTicks.call(this,n);return St(l,function(u){var f=u.value,c=Oe(Ph(this.base,f));return c=f===i[0]&&this._fixMin?kh(c,a[0]):c,c=f===i[1]&&this._fixMax?kh(c,a[1]):c,{value:c}},this)},e.prototype.setExtent=function(n,r){var i=yr(this.base);n=yr(Math.max(0,n))/i,r=yr(Math.max(0,r))/i,ef.setExtent.call(this,n,r)},e.prototype.getExtent=function(){var n=this.base,r=yT.getExtent.call(this);r[0]=Ph(n,r[0]),r[1]=Ph(n,r[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(r[0]=kh(r[0],a[0])),this._fixMax&&(r[1]=kh(r[1],a[1])),r},e.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=yr(n[0])/yr(r),n[1]=yr(n[1])/yr(r),yT.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,i=r[1]-r[0];if(!(i===1/0||i<=0)){var a=B2(i),l=n/i*a;for(l<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var u=[Oe(s6(r[0]/a)*a),Oe(l6(r[1]/a)*a)];this._interval=a,this._niceExtent=u}},e.prototype.calcNiceExtent=function(n){ef.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=yr(n)/yr(this.base),bv(n,this._extent)},e.prototype.normalize=function(n){return n=yr(n)/yr(this.base),wv(n,this._extent)},e.prototype.scale=function(n){return n=Cv(n,this._extent),Ph(this.base,n)},e.type="log",e})(Xr),pE=hS.prototype;pE.getMinorTicks=ef.getMinorTicks;pE.getLabel=ef.getLabel;function kh(t,e){return o6(t,ts(e))}Xr.registerClass(hS);var u6=(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 i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var a=n.get("min",!0);a==null&&(a=n.get("startValue",!0));var l=this._modelMinRaw=a;It(l)?this._modelMinNum=Hh(e,l({min:r[0],max:r[1]})):l!=="dataMin"&&(this._modelMinNum=Hh(e,l));var u=this._modelMaxRaw=n.get("max",!0);if(It(u)?this._modelMaxNum=Hh(e,u({min:r[0],max:r[1]})):u!=="dataMax"&&(this._modelMaxNum=Hh(e,u)),i)this._axisDataLen=n.getCategories().length;else{var f=n.get("boundaryGap"),c=ft(f)?f:[f||0,f||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Aa(c[0],1),Aa(c[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,n=this._dataMin,r=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,l=e?null:r-n||Math.abs(n),u=this._modelMinRaw==="dataMin"?n:this._modelMinNum,f=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,c=u!=null,d=f!=null;u==null&&(u=e?i?0:NaN:n-a[0]*l),f==null&&(f=e?i?i-1:NaN:r+a[1]*l),(u==null||!isFinite(u))&&(u=NaN),(f==null||!isFinite(f))&&(f=NaN);var v=af(u)||af(f)||e&&!i;this._needCrossZero&&(u>0&&f>0&&!c&&(u=0),u<0&&f<0&&!d&&(f=0));var m=this._determinedMin,p=this._determinedMax;return m!=null&&(u=m,c=!0),p!=null&&(f=p,d=!0),{min:u,max:f,minFixed:c,maxFixed:d,isBlank:v}},t.prototype.modifyDataMinMax=function(e,n){this[c6[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=f6[e];this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t})(),f6={min:"_determinedMin",max:"_determinedMax"},c6={min:"_dataMin",max:"_dataMax"};function mE(t,e,n){var r=t.rawExtentInfo;return r||(r=new u6(t,e,n),t.rawExtentInfo=r,r)}function Hh(t,e){return e==null?null:af(e)?NaN:t.parse(e)}function yE(t,e){var n=t.type,r=mE(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,a=r.max,l=e.ecModel;if(l&&n==="time"){var u=cE("bar",l),f=!1;if(I(u,function(v){f=f||v.getBaseAxis()===e.axis}),f){var c=hE(u),d=h6(i,a,e,c);i=d.min,a=d.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function h6(t,e,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),l=ZH(r,n.axis);if(l===void 0)return{min:t,max:e};var u=1/0;I(l,function(p){u=Math.min(p.offset,u)});var f=-1/0;I(l,function(p){f=Math.max(p.offset+p.width,f)}),u=Math.abs(u),f=Math.abs(f);var c=u+f,d=e-t,v=1-(u+f)/a,m=d/v-d;return e+=m*(f/c),t-=m*(u/c),{min:t,max:e}}function R0(t,e){var n=e,r=yE(t,n),i=r.extent,a=n.get("splitNumber");t instanceof hS&&(t.base=n.get("logBase"));var l=t.type,u=n.get("interval"),f=l==="interval"||l==="time";t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,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 _E(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new fS({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new gE({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Xr.getClass(e)||ls)}}function d6(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function ss(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(i,a){return t.scale.getFormattedLabel(i,a,r)}})(e):gt(e)?(function(r){return function(i){var a=t.scale.getLabel(i),l=r.replace("{value}",a??"");return l}})(e):It(e)?(function(r){return function(i,a){return n!=null&&(a=i.value-n),r(dS(t,i),a,i.level!=null?{level:i.level}:null)}})(e):function(r){return t.scale.getLabel(r)}}function dS(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function v6(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,i,a=n.getExtent();n instanceof fS?i=n.count():(r=n.getTicks(),i=r.length);var l=t.getLabelModel(),u=ss(t),f,c=1;i>40&&(c=Math.ceil(i/40));for(var d=0;d<i;d+=c){var v=r?r[d]:{value:a[0]+d},m=u(v,d),p=l.getTextRect(m),y=g6(p,l.get("rotate")||0);f?f.union(y):f=y}return f}}function g6(t,e){var n=e*Math.PI/180,r=t.width,i=t.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),l=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),u=new Xt(t.x,t.y,a,l);return u}function vS(t){var e=t.get("interval");return e??"auto"}function SE(t){return t.type==="category"&&vS(t.getLabelModel())===0}function xE(t,e){var n={};return I(t.mapDimensionsAll(e),function(r){n[lE(t,r)]=!0}),de(n)}function p6(t,e,n){e&&I(xE(e,n),function(r){var i=e.getApproximateExtent(r);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])})}var bE=(function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t})();function m6(t){return uS(null,t)}var y6={isDimensionStacked:sS,enableDataStack:oE,getStackedDimension:lE};function _6(t,e){var n=e;e instanceof he||(n=new he(e));var r=_E(n);return r.setExtent(t[0],t[1]),R0(r,n),r}function S6(t){cr(t,bE)}function x6(t,e){return e=e||{},Yr(t,null,null,e.state!=="normal")}const b6=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:DH,createList:m6,createScale:_6,createSymbol:is,createTextStyle:x6,dataStack:y6,enableHoverEmphasis:df,getECData:te,getLayoutRect:Da,mixinAxisModelCommonMethods:S6},Symbol.toStringTag,{value:"Module"}));var _T=[],w6={registerPreprocessor:nS,registerProcessor:rS,registerPostInit:$R,registerPostUpdate:WR,registerUpdateLifecycle:xv,registerAction:Oa,registerCoordinateSystem:QR,registerLayout:KR,registerVisual:za,registerTransform:tE,registerLoading:aS,registerMap:JR,registerImpl:Uk,PRIORITY:VR,ComponentModel:qt,ComponentView:un,SeriesModel:Vn,ChartView:sr,registerComponentModel:function(t){qt.registerClass(t)},registerComponentView:function(t){un.registerClass(t)},registerSeriesModel:function(t){Vn.registerClass(t)},registerChartView:function(t){sr.registerClass(t)},registerSubTypeDefaulter:function(t,e){qt.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){L2(t,e)}};function Tn(t){if(ft(t)){I(t,function(e){Tn(e)});return}Wt(_T,t)>=0||(_T.push(t),It(t)&&(t={install:t}),t.install(w6))}var C6=1e-8;function ST(t,e){return Math.abs(t-e)<C6}function xT(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var l=t[a];r+=bi(i[0],i[1],l[0],l[1],e,n),i=l}var u=t[0];return(!ST(i[0],u[0])||!ST(i[1],u[1]))&&(r+=bi(i[0],i[1],u[0],u[1],e,n)),r!==0}var M6=[];function oy(t,e){for(var n=0;n<t.length;n++)an(t[n],t[n],e)}function bT(t,e,n,r){for(var i=0;i<t.length;i++){var a=t[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(ha(e,e,a),da(n,n,a))}}function T6(t){for(var e=0,n=0,r=0,i=t.length,a=t[i-1][0],l=t[i-1][1],u=0;u<i;u++){var f=t[u][0],c=t[u][1],d=a*c-f*l;e+=d,n+=(a+f)*d,r+=(l+c)*d,a=f,l=c}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var wE=(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})(),wT=(function(){function t(e,n){this.type="polygon",this.exterior=e,this.interiors=n}return t})(),CT=(function(){function t(e){this.type="linestring",this.points=e}return t})(),A6=(function(t){ut(e,t);function e(n,r,i){var a=t.call(this,n)||this;return a.type="geoJSON",a.geometries=r,a._center=i&&[i[0],i[1]],a}return e.prototype.calcCenter=function(){for(var n=this.geometries,r,i=0,a=0;a<n.length;a++){var l=n[a],u=l.exterior,f=u&&u.length;f>i&&(r=l,i=f)}if(r)return T6(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 i=[1/0,1/0],a=[-1/0,-1/0],l=this.geometries;return I(l,function(u){u.type==="polygon"?bT(u.exterior,i,a,n):I(u.points,function(f){bT(f,i,a,n)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),r=new Xt(i[0],i[1],a[0]-i[0],a[1]-i[1]),n||(this._rect=r),r},e.prototype.contain=function(n){var r=this.getBoundingRect(),i=this.geometries;if(!r.contain(n[0],n[1]))return!1;t:for(var a=0,l=i.length;a<l;a++){var u=i[a];if(u.type==="polygon"){var f=u.exterior,c=u.interiors;if(xT(f,n[0],n[1])){for(var d=0;d<(c?c.length:0);d++)if(xT(c[d],n[0],n[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(n,r,i,a){var l=this.getBoundingRect(),u=l.width/l.height;i?a||(a=i/u):i=u*a;for(var f=new Xt(n,r,i,a),c=l.calculateTransform(f),d=this.geometries,v=0;v<d.length;v++){var m=d[v];m.type==="polygon"?(oy(m.exterior,c),I(m.interiors,function(p){oy(p,c)})):I(m.points,function(p){oy(p,c)})}l=this._rect,l.copy(f),this._center=[l.x+l.width/2,l.y+l.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})(wE);(function(t){ut(e,t);function e(n,r){var i=t.call(this,n)||this;return i.type="geoSVG",i._elOnlyForCalculate=r,i}return e.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),i=[r.x+r.width/2,r.y+r.height/2],a=Df(M6),l=n;l&&!l.isGeoSVGGraphicRoot;)ba(a,l.getLocalTransform(),a),l=l.parent;return Rf(a,a),an(i,i,a),i},e})(wE);function D6(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;n==null&&(n=1024);var r=e.features;return I(r,function(i){var a=i.geometry,l=a.encodeOffsets,u=a.coordinates;if(l)switch(a.type){case"LineString":a.coordinates=CE(u,l,n);break;case"Polygon":ly(u,l,n);break;case"MultiLineString":ly(u,l,n);break;case"MultiPolygon":I(u,function(f,c){return ly(f,l[c],n)})}}),e.UTF8Encoding=!1,e}function ly(t,e,n){for(var r=0;r<t.length;r++)t[r]=CE(t[r],e[r],n)}function CE(t,e,n){for(var r=[],i=e[0],a=e[1],l=0;l<t.length;l+=2){var u=t.charCodeAt(l)-64,f=t.charCodeAt(l+1)-64;u=u>>1^-(u&1),f=f>>1^-(f&1),u+=i,f+=a,i=u,a=f,r.push([u/n,f/n])}return r}function MT(t,e){return t=D6(t),St(Ee(t.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,i=n.geometry,a=[];switch(i.type){case"Polygon":var l=i.coordinates;a.push(new wT(l[0],l.slice(1)));break;case"MultiPolygon":I(i.coordinates,function(f){f[0]&&a.push(new wT(f[0],f.slice(1)))});break;case"LineString":a.push(new CT([i.coordinates]));break;case"MultiLineString":a.push(new CT(i.coordinates))}var u=new A6(r[e||"name"],a,r.cp);return u.properties=r,u})}const R6=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:N5,asc:Gl,getPercentWithPrecision:O5,getPixelPrecision:p_,getPrecision:ts,getPrecisionSafe:N2,isNumeric:P2,isRadianAroundZero:uf,linearMap:Be,nice:y_,numericToNumber:ff,parseDate:ur,quantile:B5,quantity:B2,quantityExponent:Qd,reformIntervals:P5,remRadian:m_,round:Oe},Symbol.toStringTag,{value:"Module"})),E6=Object.freeze(Object.defineProperty({__proto__:null,format:kf,parse:ur},Symbol.toStringTag,{value:"Module"})),L6=Object.freeze(Object.defineProperty({__proto__:null,Arc:Pf,BezierCurve:iv,BoundingRect:Xt,Circle:If,CompoundPath:_D,Ellipse:nv,Group:Qe,Image:La,IncrementalDisplayable:wD,Line:Ri,LinearGradient:xD,Polygon:Bf,Polyline:Io,RadialGradient:bD,Rect:ge,Ring:rv,Sector:Oi,Text:ze,clipPointsByRect:zD,clipRectByRect:ND,createIcon:ov,extendPath:AD,extendShape:TD,getShapeClass:DD,getTransform:E_,initProps:Ti,makeImage:D_,makePath:av,mergePath:ED,registerShape:hr,resizePath:R_,updateProps:fr},Symbol.toStringTag,{value:"Module"})),O6=Object.freeze(Object.defineProperty({__proto__:null,addCommas:V_,capitalFirst:b4,encodeHTML:nn,formatTime:x4,formatTpl:G_,getTextRect:S4,getTooltipMarker:ZD,normalizeCssArray:Hf,toCamelCase:F_,truncateText:cI},Symbol.toStringTag,{value:"Module"})),z6=Object.freeze(Object.defineProperty({__proto__:null,bind:Tt,clone:kt,curry:ce,defaults:Kt,each:I,extend:lt,filter:Ee,indexOf:Wt,inherits:a_,isArray:ft,isFunction:It,isObject:bt,isString:gt,map:St,merge:jt,reduce:Gr},Symbol.toStringTag,{value:"Module"}));var wf=xe();function ME(t,e){var n=St(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 N6(t){var e=t.getLabelModel().get("customValues");if(e){var n=ss(t),r=t.scale.getExtent(),i=ME(t,e),a=Ee(i,function(l){return l>=r[0]&&l<=r[1]});return{labels:St(a,function(l){var u={value:l};return{formattedLabel:n(u),rawLabel:t.scale.getLabel(u),tickValue:l}})}}return t.type==="category"?B6(t):k6(t)}function I6(t,e){var n=t.getTickModel().get("customValues");if(n){var r=t.scale.getExtent(),i=ME(t,n);return{ticks:Ee(i,function(a){return a>=r[0]&&a<=r[1]})}}return t.type==="category"?P6(t,e):{ticks:St(t.scale.getTicks(),function(a){return a.value})}}function B6(t){var e=t.getLabelModel(),n=TE(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function TE(t,e){var n=AE(t,"labels"),r=vS(e),i=DE(n,r);if(i)return i;var a,l;return It(r)?a=LE(t,r):(l=r==="auto"?H6(t):r,a=EE(t,l)),RE(n,r,{labels:a,labelCategoryInterval:l})}function P6(t,e){var n=AE(t,"ticks"),r=vS(e),i=DE(n,r);if(i)return i;var a,l;if((!e.get("show")||t.scale.isBlank())&&(a=[]),It(r))a=LE(t,r,!0);else if(r==="auto"){var u=TE(t,t.getLabelModel());l=u.labelCategoryInterval,a=St(u.labels,function(f){return f.tickValue})}else l=r,a=EE(t,l,!0);return RE(n,r,{ticks:a,tickCategoryInterval:l})}function k6(t){var e=t.scale.getTicks(),n=ss(t);return{labels:St(e,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function AE(t,e){return wf(t)[e]||(wf(t)[e]=[])}function DE(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function RE(t,e,n){return t.push({key:e,value:n}),n}function H6(t){var e=wf(t).autoInterval;return e??(wf(t).autoInterval=t.calculateCategoryInterval())}function V6(t){var e=F6(t),n=ss(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,a=i.getExtent(),l=i.count();if(a[1]-a[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var f=a[0],c=t.dataToCoord(f+1)-t.dataToCoord(f),d=Math.abs(c*Math.cos(r)),v=Math.abs(c*Math.sin(r)),m=0,p=0;f<=a[1];f+=u){var y=0,S=0,x=v_(n({value:f}),e.font,"center","top");y=x.width*1.3,S=x.height*1.3,m=Math.max(m,y,7),p=Math.max(p,S,7)}var w=m/d,C=p/v;isNaN(w)&&(w=1/0),isNaN(C)&&(C=1/0);var M=Math.max(0,Math.floor(Math.min(w,C))),A=wf(t.model),R=t.getExtent(),D=A.lastAutoInterval,L=A.lastTickCount;return D!=null&&L!=null&&Math.abs(D-M)<=1&&Math.abs(L-l)<=1&&D>M&&A.axisExtent0===R[0]&&A.axisExtent1===R[1]?M=D:(A.lastTickCount=l,A.lastAutoInterval=M,A.axisExtent0=R[0],A.axisExtent1=R[1]),M}function F6(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 EE(t,e,n){var r=ss(t),i=t.scale,a=i.getExtent(),l=t.getLabelModel(),u=[],f=Math.max((e||0)+1,1),c=a[0],d=i.count();c!==0&&f>1&&d/f>2&&(c=Math.round(Math.ceil(c/f)*f));var v=SE(t),m=l.get("showMinLabel")||v,p=l.get("showMaxLabel")||v;m&&c!==a[0]&&S(a[0]);for(var y=c;y<=a[1];y+=f)S(y);p&&y-f!==a[1]&&S(a[1]);function S(x){var w={value:x};u.push(n?x:{formattedLabel:r(w),rawLabel:i.getLabel(w),tickValue:x})}return u}function LE(t,e,n){var r=t.scale,i=ss(t),a=[];return I(r.getTicks(),function(l){var u=r.getLabel(l),f=l.value;e(l.value,u)&&a.push(n?f:{formattedLabel:i(l),rawLabel:u,tickValue:f})}),a}var TT=[0,1],OE=(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]),i=Math.max(n[0],n[1]);return e>=r&&e<=i},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return p_(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,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(r=r.slice(),AT(r,i.count())),Be(e,TT,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),AT(r,i.count()));var a=Be(e,r,TT,n);return this.scale.scale(a)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=I6(this,n),i=r.ticks,a=St(i,function(u){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(u):u),tickValue:u}},this),l=n.get("alignWithLabel");return G6(this,a,l,e.clamp),a},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),i=St(r,function(a){return St(a,function(l){return{coord:this.dataToCoord(l),tickValue:l}},this)},this);return i},t.prototype.getViewLabels=function(){return N6(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 i=Math.abs(e[1]-e[0]);return Math.abs(i)/r},t.prototype.calculateCategoryInterval=function(){return V6(this)},t})();function AT(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function G6(t,e,n,r){var i=e.length;if(!t.onBand||n||!i)return;var a=t.getExtent(),l,u;if(i===1)e[0].coord=a[0],l=e[1]={coord:a[1],tickValue:e[0].tickValue};else{var f=e[i-1].tickValue-e[0].tickValue,c=(e[i-1].coord-e[0].coord)/f;I(e,function(p){p.coord-=c/2});var d=t.scale.getExtent();u=1+d[1]-e[i-1].tickValue,l={coord:e[i-1].coord+c*u,tickValue:d[1]+1},e.push(l)}var v=a[0]>a[1];m(e[0].coord,a[0])&&(r?e[0].coord=a[0]:e.shift()),r&&m(a[0],e[0].coord)&&e.unshift({coord:a[0]}),m(a[1],l.coord)&&(r?l.coord=a[1]:e.pop()),r&&m(l.coord,a[1])&&e.push({coord:a[1]});function m(p,y){return p=Oe(p),y=Oe(y),v?p>y:p<y}}function U6(t){var e=qt.extend(t);return qt.registerClass(e),e}function j6(t){var e=un.extend(t);return un.registerClass(e),e}function Y6(t){var e=Vn.extend(t);return Vn.registerClass(e),e}function q6(t){var e=sr.extend(t);return sr.registerClass(e),e}function zE(t,e,n,r,i,a,l,u){var f=i-t,c=a-e,d=n-t,v=r-e,m=Math.sqrt(d*d+v*v);d/=m,v/=m;var p=f*d+c*v,y=p/m;y*=m;var S=l[0]=t+y*d,x=l[1]=e+y*v;return Math.sqrt((S-i)*(S-i)+(x-a)*(x-a))}var pa=new Rt,Se=new Rt,Ue=new Rt,ma=new Rt,Hr=new Rt,Fd=[],en=new Rt;function X6(t,e){if(e<=180&&e>0){e=e/180*Math.PI,pa.fromArray(t[0]),Se.fromArray(t[1]),Ue.fromArray(t[2]),Rt.sub(ma,pa,Se),Rt.sub(Hr,Ue,Se);var n=ma.len(),r=Hr.len();if(!(n<.001||r<.001)){ma.scale(1/n),Hr.scale(1/r);var i=ma.dot(Hr),a=Math.cos(e);if(a<i){var l=zE(Se.x,Se.y,Ue.x,Ue.y,pa.x,pa.y,Fd);en.fromArray(Fd),en.scaleAndAdd(Hr,l/Math.tan(Math.PI-e));var u=Ue.x!==Se.x?(en.x-Se.x)/(Ue.x-Se.x):(en.y-Se.y)/(Ue.y-Se.y);if(isNaN(u))return;u<0?Rt.copy(en,Se):u>1&&Rt.copy(en,Ue),en.toArray(t[1])}}}}function Z6(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,pa.fromArray(t[0]),Se.fromArray(t[1]),Ue.fromArray(t[2]),Rt.sub(ma,Se,pa),Rt.sub(Hr,Ue,Se);var r=ma.len(),i=Hr.len();if(!(r<.001||i<.001)){ma.scale(1/r),Hr.scale(1/i);var a=ma.dot(e),l=Math.cos(n);if(a<l){var u=zE(Se.x,Se.y,Ue.x,Ue.y,pa.x,pa.y,Fd);en.fromArray(Fd);var f=Math.PI/2,c=Math.acos(Hr.dot(e)),d=f+c-n;if(d>=f)Rt.copy(en,Ue);else{en.scaleAndAdd(Hr,u/Math.tan(Math.PI/2-d));var v=Ue.x!==Se.x?(en.x-Se.x)/(Ue.x-Se.x):(en.y-Se.y)/(Ue.y-Se.y);if(isNaN(v))return;v<0?Rt.copy(en,Se):v>1&&Rt.copy(en,Ue)}en.toArray(t[1])}}}}function sy(t,e,n,r){var i=n==="normal",a=i?t:t.ensureState(n);a.ignore=e;var l=r.get("smooth");l&&l===!0&&(l=.3),a.shape=a.shape||{},l>0&&(a.shape.smooth=l);var u=r.getModel("lineStyle").getLineStyle();i?t.useStyle(u):a.style=u}function $6(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 i=pd(r[0],r[1]),a=pd(r[1],r[2]);if(!i||!a){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var l=Math.min(i,a)*n,u=Qh([],r[1],r[0],l/i),f=Qh([],r[1],r[2],l/a),c=Qh([],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 d=1;d<r.length;d++)t.lineTo(r[d][0],r[d][1])}function W6(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(!i){r&&t.removeTextGuideLine();return}for(var a=e.normal,l=a.get("show"),u=i.ignore,f=0;f<Md.length;f++){var c=Md[f],d=e[c],v=c==="normal";if(d){var m=d.get("show"),p=v?u:Pt(i.states[c]&&i.states[c].ignore,u);if(p||!Pt(m,l)){var y=v?r:r&&r.states[c];y&&(y.ignore=!0),r&&sy(r,!0,c,d);continue}r||(r=new Io,t.setTextGuideLine(r),!v&&(u||!l)&&sy(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),sy(r,!1,c,d)}}if(r){Kt(r.style,n),r.style.fill=null;var S=a.get("showAbove"),x=t.textGuideLineConfig=t.textGuideLineConfig||{};x.showAbove=S||!1,r.buildPath=$6}}function Q6(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<jr.length;r++){var i=jr[r];n[i]=t.getModel([i,e])}return n}function K6(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,a=i.getComputedTransform(),l=i.getBoundingRect(),u=!a||a[1]<1e-5&&a[2]<1e-5,f=i.style.margin||0,c=l.clone();c.applyTransform(a),c.x-=f/2,c.y-=f/2,c.width+=f,c.height+=f;var d=u?new Td(l,a):null;e.push({label:i,labelLine:r.labelLine,rect:c,localRect:l,obb:d,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:u,transform:a})}}return e}function J6(t,e,n,r,i,a){var l=t.length;if(l<2)return;t.sort(function(D,L){return D.rect[e]-L.rect[e]});for(var u=0,f,c=!1,d=0;d<l;d++){var v=t[d],m=v.rect;f=m[e]-u,f<0&&(m[e]-=f,v.label[e]-=f,c=!0),u=m[e]+m[n]}var p=t[0],y=t[l-1],S,x;w(),S<0&&A(-S,.8),x<0&&A(x,.8),w(),C(S,x,1),C(x,S,-1),w(),S<0&&R(-S),x<0&&R(x);function w(){S=p.rect[e]-r,x=i-y.rect[e]-y.rect[n]}function C(D,L,O){if(D<0){var B=Math.min(L,-D);if(B>0){M(B*O,0,l);var H=B+D;H<0&&A(-H*O,1)}else A(-D*O,1)}}function M(D,L,O){D!==0&&(c=!0);for(var B=L;B<O;B++){var H=t[B],P=H.rect;P[e]+=D,H.label[e]+=D}}function A(D,L){for(var O=[],B=0,H=1;H<l;H++){var P=t[H-1].rect,q=Math.max(t[H].rect[e]-P[e]-P[n],0);O.push(q),B+=q}if(B){var $=Math.min(Math.abs(D)/B,L);if(D>0)for(var H=0;H<l-1;H++){var W=O[H]*$;M(W,0,H+1)}else for(var H=l-1;H>0;H--){var W=O[H-1]*$;M(-W,H,l)}}}function R(D){var L=D<0?-1:1;D=Math.abs(D);for(var O=Math.ceil(D/(l-1)),B=0;B<l-1;B++)if(L>0?M(O,0,B+1):M(-O,l-B-1,l),D-=O,D<=0)return}return c}function tV(t,e,n,r){return J6(t,"y","height",e,n)}function eV(t){var e=[];t.sort(function(S,x){return x.priority-S.priority});var n=new Xt(0,0,0,0);function r(S){if(!S.ignore){var x=S.ensureState("emphasis");x.ignore==null&&(x.ignore=!1)}S.ignore=!0}for(var i=0;i<t.length;i++){var a=t[i],l=a.axisAligned,u=a.localRect,f=a.transform,c=a.label,d=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var v=a.obb,m=!1,p=0;p<e.length;p++){var y=e[p];if(n.intersect(y.rect)){if(l&&y.axisAligned){m=!0;break}if(y.obb||(y.obb=new Td(y.localRect,y.transform)),v||(v=new Td(u,f)),v.intersect(y.obb)){m=!0;break}}}m?(r(c),d&&r(d)):(c.attr("ignore",a.defaultAttr.ignore),d&&d.attr("ignore",a.defaultAttr.labelGuideIgnore),e.push(a))}}const Cn=Object.freeze(Object.defineProperty({__proto__:null,Axis:OE,ChartView:sr,ComponentModel:qt,ComponentView:un,List:oS,Model:he,PRIORITY:VR,SeriesModel:Vn,color:KN,connect:uH,dataTool:pH,dependencies:Yk,disConnect:fH,disconnect:ZR,dispose:cH,env:Dt,extendChartView:q6,extendComponentModel:U6,extendComponentView:j6,extendSeriesModel:Y6,format:O6,getCoordinateSystemDimensions:dH,getInstanceByDom:tS,getInstanceById:hH,getMap:gH,graphic:L6,helper:b6,init:sH,innerDrawElementOnCanvas:W_,matrix:TN,number:R6,parseGeoJSON:MT,parseGeoJson:MT,registerAction:Oa,registerCoordinateSystem:QR,registerLayout:KR,registerLoading:aS,registerLocale:B_,registerMap:JR,registerPostInit:$R,registerPostUpdate:WR,registerPreprocessor:nS,registerProcessor:rS,registerTheme:eS,registerTransform:tE,registerUpdateLifecycle:xv,registerVisual:za,setCanvasCreator:vH,setPlatformAPI:KA,throttle:yv,time:E6,use:Tn,util:z6,vector:fN,version:jk,zrUtil:tN,zrender:E5},Symbol.toStringTag,{value:"Module"}));function nV(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=rs(t,e,n[0]);return i!=null?i+"":null}else if(r){for(var a=[],l=0;l<n.length;l++)a.push(rs(t,e,n[l]));return a.join(" ")}}function rV(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!ft(e))return e+"";for(var r=[],i=0;i<n.length;i++){var a=t.getDimensionIndex(n[i]);a>=0&&r.push(e[a])}return r.join(" ")}function iV(t,e,n,r,i){var a=t.getArea(),l=a.x,u=a.y,f=a.width,c=a.height,d=n.get(["lineStyle","width"])||0;l-=d/2,u-=d/2,f+=d,c+=d,f=Math.ceil(f),l!==Math.floor(l)&&(l=Math.floor(l),f++);var v=new ge({shape:{x:l,y:u,width:f,height:c}});return v}function aV(t,e,n){var r=t.getArea(),i=Oe(r.r0,1),a=Oe(r.r,1),l=new Oi({shape:{cx:Oe(t.cx,1),cy:Oe(t.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return l}function oV(t,e,n,r,i){if(t){if(t.type==="polar")return aV(t);if(t.type==="cartesian2d")return iV(t,e,n)}else return null;return null}function NE(t,e){return t.type===e}var lV={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]}},sV=function(t){return Math.round(t.length/2)};function uV(t){return{seriesType:t,reset:function(e,n,r){var i=e.getData(),a=e.get("sampling"),l=e.coordinateSystem,u=i.count();if(u>10&&l.type==="cartesian2d"&&a){var f=l.getBaseAxis(),c=l.getOtherAxis(f),d=f.getExtent(),v=r.getDevicePixelRatio(),m=Math.abs(d[1]-d[0])*(v||1),p=Math.round(u/m);if(isFinite(p)&&p>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(c.dim),1/p)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(c.dim),1/p));var y=void 0;gt(a)?y=lV[a]:It(a)&&(y=a),y&&e.setData(i.downSample(i.mapDimension(c.dim),1/p,y,sV))}}}}}var E0=(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 uS(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,i){var a=this.coordinateSystem;if(a&&a.clampData){var l=a.clampData(n),u=a.dataToPoint(l);if(i)I(a.getAxes(),function(m,p){if(m.type==="category"&&r!=null){var y=m.getTicksCoords(),S=m.getTickModel().get("alignWithLabel"),x=l[p],w=r[p]==="x1"||r[p]==="y1";if(w&&!S&&(x+=1),y.length<2)return;if(y.length===2){u[p]=m.toGlobalCoord(m.getExtent()[w?1:0]);return}for(var C=void 0,M=void 0,A=1,R=0;R<y.length;R++){var D=y[R].coord,L=R===y.length-1?y[R-1].tickValue+A:y[R].tickValue;if(L===x){M=D;break}else if(L<x)C=D;else if(C!=null&&L>x){M=(D+C)/2;break}R===1&&(A=L-y[0].tickValue)}M==null&&(C?C&&(M=y[y.length-1].coord):M=y[0].coord),u[p]=m.toGlobalCoord(M)}});else{var f=this.getData(),c=f.getLayout("offset"),d=f.getLayout("size"),v=a.getBaseAxis().isHorizontal()?0:1;u[v]+=c+d/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})(Vn);Vn.registerClass(E0);var fV=(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 uS(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,i){return i.rect(r.getItemLayout(n))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=fv(E0.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})(E0),cV=(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})(),DT=(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 cV},e.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,l=Math.max(r.r0||0,0),u=Math.max(r.r,0),f=(u-l)*.5,c=l+f,d=r.startAngle,v=r.endAngle,m=r.clockwise,p=Math.PI*2,y=m?v-d<p:d-v<p;y||(d=v-(m?p:-p));var S=Math.cos(d),x=Math.sin(d),w=Math.cos(v),C=Math.sin(v);y?(n.moveTo(S*l+i,x*l+a),n.arc(S*c+i,x*c+a,f,-Math.PI+d,d,!m)):n.moveTo(S*u+i,x*u+a),n.arc(i,a,u,d,v,!m),n.arc(w*c+i,C*c+a,f,v-Math.PI*2,v-Math.PI,!m),l!==0&&n.arc(i,a,l,v,d,m)},e})(le);function hV(t,e){e=e||{};var n=e.isRoundCap;return function(r,i,a){var l=i.position;if(!l||l instanceof Array)return wd(r,i,a);var u=t(l),f=i.distance!=null?i.distance:5,c=this.shape,d=c.cx,v=c.cy,m=c.r,p=c.r0,y=(m+p)/2,S=c.startAngle,x=c.endAngle,w=(S+x)/2,C=n?Math.abs(m-p)/2:0,M=Math.cos,A=Math.sin,R=d+m*M(S),D=v+m*A(S),L="left",O="top";switch(u){case"startArc":R=d+(p-f)*M(w),D=v+(p-f)*A(w),L="center",O="top";break;case"insideStartArc":R=d+(p+f)*M(w),D=v+(p+f)*A(w),L="center",O="bottom";break;case"startAngle":R=d+y*M(S)+Vh(S,f+C,!1),D=v+y*A(S)+Fh(S,f+C,!1),L="right",O="middle";break;case"insideStartAngle":R=d+y*M(S)+Vh(S,-f+C,!1),D=v+y*A(S)+Fh(S,-f+C,!1),L="left",O="middle";break;case"middle":R=d+y*M(w),D=v+y*A(w),L="center",O="middle";break;case"endArc":R=d+(m+f)*M(w),D=v+(m+f)*A(w),L="center",O="bottom";break;case"insideEndArc":R=d+(m-f)*M(w),D=v+(m-f)*A(w),L="center",O="top";break;case"endAngle":R=d+y*M(x)+Vh(x,f+C,!0),D=v+y*A(x)+Fh(x,f+C,!0),L="left",O="middle";break;case"insideEndAngle":R=d+y*M(x)+Vh(x,-f+C,!0),D=v+y*A(x)+Fh(x,-f+C,!0),L="right",O="middle";break;default:return wd(r,i,a)}return r=r||{},r.x=R,r.y=D,r.align=L,r.verticalAlign=O,r}}function dV(t,e,n,r){if(ve(r)){t.setTextConfig({rotation:r});return}else if(ft(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,l=i.clockwise?i.endAngle:i.startAngle,u=(a+l)/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=a;break;case"endAngle":case"insideEndAngle":f=l;break;default:t.setTextConfig({rotation:0});return}var d=Math.PI*1.5-f;c==="middle"&&d>Math.PI/2&&d<Math.PI*1.5&&(d-=Math.PI),t.setTextConfig({rotation:d})}function Vh(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Fh(t,e,n){return e*Math.cos(t)*(n?1:-1)}function ju(t,e,n){var r=t.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;ft(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:St(r,function(a){return Aa(a,i)})}}var uy=Math.max,fy=Math.min;function vV(t,e){var n=t.getArea&&t.getArea();if(NE(t,"cartesian2d")){var r=t.getBaseAxis();if(r.type!=="category"||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=i*2):(n.y-=i,n.height+=i*2)}}return n}var gV=(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,i,a){this._model=n,this._removeOnRenderedListener(i),this._updateDrawMode(n);var l=n.get("coordinateSystem");(l==="cartesian2d"||l==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,i):this._renderNormal(n,r,i,a))},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){L_(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,i,a){var l=this.group,u=n.getData(),f=this._data,c=n.coordinateSystem,d=c.getBaseAxis(),v;c.type==="cartesian2d"?v=d.isHorizontal():c.type==="polar"&&(v=d.dim==="angle");var m=n.isAnimationEnabled()?n:null,p=pV(n,c);p&&this._enableRealtimeSort(p,u,i);var y=n.get("clip",!0)||p,S=vV(c,u);l.removeClipPath();var x=n.get("roundCap",!0),w=n.get("showBackground",!0),C=n.getModel("backgroundStyle"),M=C.get("borderRadius")||0,A=[],R=this._backgroundEls,D=a&&a.isInitSort,L=a&&a.type==="changeAxisOrder";function O(P){var q=Gh[c.type](u,P),$=wV(c,v,q);return $.useStyle(C.getItemStyle()),c.type==="cartesian2d"?$.setShape("r",M):$.setShape("cornerRadius",M),A[P]=$,$}u.diff(f).add(function(P){var q=u.getItemModel(P),$=Gh[c.type](u,P,q);if(w&&O(P),!(!u.hasValue(P)||!zT[c.type]($))){var W=!1;y&&(W=RT[c.type](S,$));var J=ET[c.type](n,u,P,$,v,m,d.model,!1,x);p&&(J.forceLabelAnimation=!0),NT(J,u,P,q,$,n,v,c.type==="polar"),D?J.attr({shape:$}):p?LT(p,m,J,$,P,v,!1,!1):Ti(J,{shape:$},n,P),u.setItemGraphicEl(P,J),l.add(J),J.ignore=W}}).update(function(P,q){var $=u.getItemModel(P),W=Gh[c.type](u,P,$);if(w){var J=void 0;R.length===0?J=O(q):(J=R[q],J.useStyle(C.getItemStyle()),c.type==="cartesian2d"?J.setShape("r",M):J.setShape("cornerRadius",M),A[P]=J);var V=Gh[c.type](u,P),K=BE(v,V,c);fr(J,{shape:K},m,P)}var j=f.getItemGraphicEl(q);if(!u.hasValue(P)||!zT[c.type](W)){l.remove(j);return}var rt=!1;if(y&&(rt=RT[c.type](S,W),rt&&l.remove(j)),j?MD(j):j=ET[c.type](n,u,P,W,v,m,d.model,!!j,x),p&&(j.forceLabelAnimation=!0),L){var it=j.getTextContent();if(it){var N=z_(it);N.prevValue!=null&&(N.prevValue=N.value)}}else NT(j,u,P,$,W,n,v,c.type==="polar");D?j.attr({shape:W}):p?LT(p,m,j,W,P,v,!0,L):fr(j,{shape:W},n,P,null),u.setItemGraphicEl(P,j),j.ignore=rt,l.add(j)}).remove(function(P){var q=f.getItemGraphicEl(P);q&&Ad(q,n,P)}).execute();var B=this._backgroundGroup||(this._backgroundGroup=new Qe);B.removeAll();for(var H=0;H<A.length;++H)B.add(A[H]);l.add(B),this._backgroundEls=A,this._data=u},e.prototype._renderLarge=function(n,r,i){this._clear(),BT(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),BT(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&oV(n.coordinateSystem,!1,n),i=this.group;r?i.setClipPath(r):i.removeClipPath()},e.prototype._enableRealtimeSort=function(n,r,i){var a=this;if(r.count()){var l=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,i),this._isFirstFrame=!1;else{var u=function(f){var c=r.getItemGraphicEl(f),d=c&&c.shape;return d&&Math.abs(l.isHorizontal()?d.height:d.width)||0};this._onRendered=function(){a._updateSortWithinSameData(r,u,l,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(n,r,i){var a=[];return n.each(n.mapDimension(r.dim),function(l,u){var f=i(u);f=f??NaN,a.push({dataIndex:u,mappedValue:f,ordinalNumber:l})}),a.sort(function(l,u){return u.mappedValue-l.mappedValue}),{ordinalNumbers:St(a,function(l){return l.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(n,r,i){for(var a=i.scale,l=n.mapDimension(i.dim),u=Number.MAX_VALUE,f=0,c=a.getOrdinalMeta().categories.length;f<c;++f){var d=n.rawIndexOf(l,a.getRawOrdinalNumber(f)),v=d<0?Number.MIN_VALUE:r(n.indexOfRawIndex(d));if(v>u)return!0;u=v}return!1},e.prototype._isOrderDifferentInView=function(n,r){for(var i=r.scale,a=i.getExtent(),l=Math.max(0,a[0]),u=Math.min(a[1],i.getOrdinalMeta().categories.length-1);l<=u;++l)if(n.ordinalNumbers[l]!==i.getRawOrdinalNumber(l))return!0},e.prototype._updateSortWithinSameData=function(n,r,i,a){if(this._isOrderChangedWithinSameData(n,r,i)){var l=this._dataSort(n,i,r);this._isOrderDifferentInView(l,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:l}))}},e.prototype._dispatchInitSort=function(n,r,i){var a=r.baseAxis,l=this._dataSort(n,a,function(u){return n.get(n.mapDimension(r.otherAxis.dim),u)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:l})},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,i=this._data;n&&n.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ad(a,n,te(a).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})(sr),RT={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 i=t.x+t.width,a=t.y+t.height,l=uy(e.x,t.x),u=fy(e.x+e.width,i),f=uy(e.y,t.y),c=fy(e.y+e.height,a),d=u<l,v=c<f;return e.x=d&&l>i?u:l,e.y=v&&f>a?c:f,e.width=d?0:u-l,e.height=v?0:c-f,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),d||v},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 i=fy(e.r,t.r),a=uy(e.r0,t.r0);e.r=i,e.r0=a;var l=i-a<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return l}},ET={cartesian2d:function(t,e,n,r,i,a,l,u,f){var c=new ge({shape:lt({},r),z2:1});if(c.__dataIndex=n,c.name="item",a){var d=c.shape,v=i?"height":"width";d[v]=0}return c},polar:function(t,e,n,r,i,a,l,u,f){var c=!i&&f?DT:Oi,d=new c({shape:r,z2:1});d.name="item";var v=IE(i);if(d.calculateTextPosition=hV(v,{isRoundCap:c===DT}),a){var m=d.shape,p=i?"r":"endAngle",y={};m[p]=i?r.r0:r.startAngle,y[p]=r[p],(u?fr:Ti)(d,{shape:y},a)}return d}};function pV(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 LT(t,e,n,r,i,a,l,u){var f,c;a?(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||(l?fr:Ti)(n,{shape:f},e,i,null);var d=e?t.baseAxis.model:null;(l?fr:Ti)(n,{shape:c},d,i)}function OT(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var mV=["x","y","width","height"],yV=["cx","cy","r","startAngle","endAngle"],zT={cartesian2d:function(t){return!OT(t,mV)},polar:function(t){return!OT(t,yV)}},Gh={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?SV(n,r):0,a=r.width>0?1:-1,l=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+l*i/2,width:r.width-a*i,height:r.height-l*i}},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 _V(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function IE(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 NT(t,e,n,r,i,a,l,u){var f=e.getItemVisual(n,"style");if(u){if(!a.get("roundCap")){var d=t.shape,v=ju(r.getModel("itemStyle"),d,!0);lt(d,v),t.setShape(d)}}else{var c=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(f);var m=r.getShallow("cursor");m&&t.attr("cursor",m);var p=u?l?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":l?i.height>=0?"bottom":"top":i.width>=0?"right":"left",y=BD(r);O_(t,y,{labelFetcher:a,labelDataIndex:n,defaultText:nV(a.getData(),n),inheritColor:f.fill,defaultOpacity:f.opacity,defaultOutsidePosition:p});var S=t.getTextContent();if(u&&S){var x=r.get(["label","position"]);t.textConfig.inside=x==="middle"?!0:null,dV(t,x==="outside"?p:x,IE(l),r.get(["label","rotate"]))}e4(S,y,a.getRawValue(n),function(C){return rV(e,C)});var w=r.getModel(["emphasis"]);cD(t,w.get("focus"),w.get("blurScope"),w.get("disabled")),hD(t,r),_V(i)&&(t.style.fill="none",t.style.stroke="none",I(t.states,function(C){C.style&&(C.style.fill=C.style.stroke="none")}))}function SV(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,a)}var xV=(function(){function t(){}return t})(),IT=(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 xV},e.prototype.buildPath=function(n,r){for(var i=r.points,a=this.baseDimIdx,l=1-this.baseDimIdx,u=[],f=[],c=this.barWidth,d=0;d<i.length;d+=3)f[a]=c,f[l]=i[d+2],u[a]=i[d+a],u[l]=i[d+l],n.rect(u[0],u[1],f[0],f[1])},e})(le);function BT(t,e,n,r){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,l=i.getLayout("largeDataIndices"),u=i.getLayout("size"),f=t.getModel("backgroundStyle"),c=i.getLayout("largeBackgroundPoints");if(c){var d=new IT({shape:{points:c},incremental:!!r,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=l,d.barWidth=u,d.useStyle(f.getItemStyle()),e.add(d),n&&n.push(d)}var v=new IT({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=a,v.largeDataIndices=l,v.barWidth=u,e.add(v),v.useStyle(i.getVisual("style")),v.style.stroke=null,te(v).seriesIndex=t.seriesIndex,t.get("silent")||(v.on("mousedown",PT),v.on("mousemove",PT)),n&&n.push(v)}var PT=yv(function(t){var e=this,n=bV(e,t.offsetX,t.offsetY);te(e).dataIndex=n>=0?n:null},30,!1);function bV(t,e,n){for(var r=t.baseDimIdx,i=1-r,a=t.shape.points,l=t.largeDataIndices,u=[],f=[],c=t.barWidth,d=0,v=a.length/3;d<v;d++){var m=d*3;if(f[r]=c,f[i]=a[m+2],u[r]=a[m+r],u[i]=a[m+i],f[i]<0&&(u[i]+=f[i],f[i]=-f[i]),e>=u[0]&&e<=u[0]+f[0]&&n>=u[1]&&n<=u[1]+f[1])return l[d]}return-1}function BE(t,e,n){if(NE(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}else{var i=n.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function wV(t,e,n){var r=t.type==="polar"?Oi:ge;return new r({shape:BE(e,n,t),silent:!0,z2:0})}function Mv(t){t.registerChartView(gV),t.registerSeriesModel(fV),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,ce($H,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WH("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,uV("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,n){var r=e.componentType||"series";n.eachComponent({mainType:r,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var kT=Math.PI*2,Uh=Math.PI/180;function PE(t,e){return Da(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function kE(t,e){var n=PE(t,e),r=t.get("center"),i=t.get("radius");ft(i)||(i=[0,i]);var a=se(n.width,e.getWidth()),l=se(n.height,e.getHeight()),u=Math.min(a,l),f=se(i[0],u/2),c=se(i[1],u/2),d,v,m=t.coordinateSystem;if(m){var p=m.dataToPoint(r);d=p[0]||0,v=p[1]||0}else ft(r)||(r=[r,r]),d=se(r[0],a)+n.x,v=se(r[1],l)+n.y;return{cx:d,cy:v,r0:f,r:c}}function CV(t,e,n){e.eachSeriesByType(t,function(r){var i=r.getData(),a=i.mapDimension("value"),l=PE(r,n),u=kE(r,n),f=u.cx,c=u.cy,d=u.r,v=u.r0,m=-r.get("startAngle")*Uh,p=r.get("endAngle"),y=r.get("padAngle")*Uh;p=p==="auto"?m-kT:-p*Uh;var S=r.get("minAngle")*Uh,x=S+y,w=0;i.each(a,function(K){!isNaN(K)&&w++});var C=i.getSum(a),M=Math.PI/(C||w)*2,A=r.get("clockwise"),R=r.get("roseType"),D=r.get("stillShowZeroSum"),L=i.getDataExtent(a);L[0]=0;var O=A?1:-1,B=[m,p],H=O*y/2;W2(B,!A),m=B[0],p=B[1];var P=HE(r);P.startAngle=m,P.endAngle=p,P.clockwise=A;var q=Math.abs(p-m),$=q,W=0,J=m;if(i.setLayout({viewRect:l,r:d}),i.each(a,function(K,j){var rt;if(isNaN(K)){i.setItemLayout(j,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:A,cx:f,cy:c,r0:v,r:R?NaN:d});return}R!=="area"?rt=C===0&&D?M:K*M:rt=q/w,rt<x?(rt=x,$-=x):W+=K;var it=J+O*rt,N=0,U=0;y>rt?(N=J+O*rt/2,U=N):(N=J+H,U=it-H),i.setItemLayout(j,{angle:rt,startAngle:N,endAngle:U,clockwise:A,cx:f,cy:c,r0:v,r:R?Be(K,L,[v,d]):d}),J=it}),$<kT&&w)if($<=.001){var V=q/w;i.each(a,function(K,j){if(!isNaN(K)){var rt=i.getItemLayout(j);rt.angle=V;var it=0,N=0;V<y?(it=m+O*(j+1/2)*V,N=it):(it=m+O*j*V+H,N=m+O*(j+1)*V-H),rt.startAngle=it,rt.endAngle=N}})}else M=$/W,J=m,i.each(a,function(K,j){if(!isNaN(K)){var rt=i.getItemLayout(j),it=rt.angle===x?x:K*M,N=0,U=0;it<y?(N=J+O*it/2,U=N):(N=J+H,U=J+O*it-H),rt.startAngle=N,rt.endAngle=U,J+=O*it}})})}var HE=xe();function MV(t){return{seriesType:t,reset:function(e,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var i=e.getData();i.filterSelf(function(a){for(var l=i.getName(a),u=0;u<r.length;u++)if(!r[u].isSelected(l))return!1;return!0})}}}}var TV=Math.PI/180;function HT(t,e,n,r,i,a,l,u,f,c){if(t.length<2)return;function d(S){for(var x=S.rB,w=x*x,C=0;C<S.list.length;C++){var M=S.list[C],A=Math.abs(M.label.y-n),R=r+M.len,D=R*R,L=Math.sqrt(Math.abs((1-A*A/w)*D)),O=e+(L+M.len2)*i,B=O-M.label.x,H=M.targetTextWidth-B*i;VE(M,H,!0),M.label.x=O}}function v(S){for(var x={list:[],maxY:0},w={list:[],maxY:0},C=0;C<S.length;C++)if(S[C].labelAlignTo==="none"){var M=S[C],A=M.label.y>n?w:x,R=Math.abs(M.label.y-n);if(R>=A.maxY){var D=M.label.x-e-M.len2*i,L=r+M.len,O=Math.abs(D)<L?Math.sqrt(R*R/(1-D*D/L/L)):L;A.rB=O,A.maxY=R}A.list.push(M)}d(x),d(w)}for(var m=t.length,p=0;p<m;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}tV(t,f,f+l)&&v(t)}function AV(t,e,n,r,i,a,l,u){for(var f=[],c=[],d=Number.MAX_VALUE,v=-Number.MAX_VALUE,m=0;m<t.length;m++){var p=t[m].label;cy(t[m])||(p.x<e?(d=Math.min(d,p.x),f.push(t[m])):(v=Math.max(v,p.x),c.push(t[m])))}for(var m=0;m<t.length;m++){var y=t[m];if(!cy(y)&&y.linePoints){if(y.labelStyleWidth!=null)continue;var p=y.label,S=y.linePoints,x=void 0;y.labelAlignTo==="edge"?p.x<e?x=S[2][0]-y.labelDistance-l-y.edgeDistance:x=l+i-y.edgeDistance-S[2][0]-y.labelDistance:y.labelAlignTo==="labelLine"?p.x<e?x=d-l-y.bleedMargin:x=l+i-v-y.bleedMargin:p.x<e?x=p.x-l-y.bleedMargin:x=l+i-p.x-y.bleedMargin,y.targetTextWidth=x,VE(y,x)}}HT(c,e,n,r,1,i,a,l,u,v),HT(f,e,n,r,-1,i,a,l,u,d);for(var m=0;m<t.length;m++){var y=t[m];if(!cy(y)&&y.linePoints){var p=y.label,S=y.linePoints,w=y.labelAlignTo==="edge",C=p.style.padding,M=C?C[1]+C[3]:0,A=p.style.backgroundColor?0:M,R=y.rect.width+A,D=S[1][0]-S[2][0];w?p.x<e?S[2][0]=l+y.edgeDistance+R+y.labelDistance:S[2][0]=l+i-y.edgeDistance-R-y.labelDistance:(p.x<e?S[2][0]=p.x+y.labelDistance:S[2][0]=p.x-y.labelDistance,S[1][0]=S[2][0]+D),S[1][1]=S[2][1]=p.y}}}function VE(t,e,n){if(n===void 0&&(n=!1),t.labelStyleWidth==null){var r=t.label,i=r.style,a=t.rect,l=i.backgroundColor,u=i.padding,f=u?u[1]+u[3]:0,c=i.overflow,d=a.width+(l?0:f);if(e<d||n){var v=a.height;if(c&&c.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-f);var m=r.getBoundingRect();r.setStyle("width",Math.ceil(m.width)),r.setStyle("backgroundColor",l)}else{var p=e-f,y=e<d?p:n?p>t.unconstrainedWidth?null:p:null;r.setStyle("width",y)}var S=r.getBoundingRect();a.width=S.width;var x=(r.style.margin||0)+2.1;a.height=S.height+x,a.y-=(a.height-v)/2}}}function cy(t){return t.position==="center"}function DV(t){var e=t.getData(),n=[],r,i,a=!1,l=(t.get("minShowLabelAngle")||0)*TV,u=e.getLayout("viewRect"),f=e.getLayout("r"),c=u.width,d=u.x,v=u.y,m=u.height;function p(D){D.ignore=!0}function y(D){if(!D.ignore)return!0;for(var L in D.states)if(D.states[L].ignore===!1)return!0;return!1}e.each(function(D){var L=e.getItemGraphicEl(D),O=L.shape,B=L.getTextContent(),H=L.getTextGuideLine(),P=e.getItemModel(D),q=P.getModel("label"),$=q.get("position")||P.get(["emphasis","label","position"]),W=q.get("distanceToLabelLine"),J=q.get("alignTo"),V=se(q.get("edgeDistance"),c),K=q.get("bleedMargin"),j=P.getModel("labelLine"),rt=j.get("length");rt=se(rt,c);var it=j.get("length2");if(it=se(it,c),Math.abs(O.endAngle-O.startAngle)<l){I(B.states,p),B.ignore=!0,H&&(I(H.states,p),H.ignore=!0);return}if(y(B)){var N=(O.startAngle+O.endAngle)/2,U=Math.cos(N),at=Math.sin(N),ot,ct,dt,st;r=O.cx,i=O.cy;var Bt=$==="inside"||$==="inner";if($==="center")ot=O.cx,ct=O.cy,st="center";else{var xt=(Bt?(O.r+O.r0)/2*U:O.r*U)+r,Yt=(Bt?(O.r+O.r0)/2*at:O.r*at)+i;if(ot=xt+U*3,ct=Yt+at*3,!Bt){var yt=xt+U*(rt+f-O.r),Et=Yt+at*(rt+f-O.r),Ot=yt+(U<0?-1:1)*it,pt=Et;J==="edge"?ot=U<0?d+V:d+c-V:ot=Ot+(U<0?-W:W),ct=pt,dt=[[xt,Yt],[yt,Et],[Ot,pt]]}st=Bt?"center":J==="edge"?U>0?"right":"left":U>0?"left":"right"}var me=Math.PI,be=0,Zr=q.get("rotate");if(ve(Zr))be=Zr*(me/180);else if($==="center")be=0;else if(Zr==="radial"||Zr===!0){var Bo=U<0?-N+me:-N;be=Bo}else if(Zr==="tangential"&&$!=="outside"&&$!=="outer"){var Dr=Math.atan2(U,at);Dr<0&&(Dr=me*2+Dr);var fs=at>0;fs&&(Dr=me+Dr),be=Dr-me}if(a=!!be,B.x=ot,B.y=ct,B.rotation=be,B.setStyle({verticalAlign:"middle"}),Bt){B.setStyle({align:st});var cs=B.states.select;cs&&(cs.x+=B.x,cs.y+=B.y)}else{var $r=B.getBoundingRect().clone();$r.applyTransform(B.getComputedTransform());var Ff=(B.style.margin||0)+2.1;$r.y-=Ff/2,$r.height+=Ff,n.push({label:B,labelLine:H,position:$,len:rt,len2:it,minTurnAngle:j.get("minTurnAngle"),maxSurfaceAngle:j.get("maxSurfaceAngle"),surfaceNormal:new Rt(U,at),linePoints:dt,textAlign:st,labelDistance:W,labelAlignTo:J,edgeDistance:V,bleedMargin:K,rect:$r,unconstrainedWidth:$r.width,labelStyleWidth:B.style.width})}L.setTextConfig({inside:Bt})}}),!a&&t.get("avoidLabelOverlap")&&AV(n,r,i,f,c,m,d,v);for(var S=0;S<n.length;S++){var x=n[S],w=x.label,C=x.labelLine,M=isNaN(w.x)||isNaN(w.y);if(w){w.setStyle({align:x.textAlign}),M&&(I(w.states,p),w.ignore=!0);var A=w.states.select;A&&(A.x+=w.x,A.y+=w.y)}if(C){var R=x.linePoints;M||!R?(I(C.states,p),C.ignore=!0):(X6(R,x.minTurnAngle),Z6(R,x.surfaceNormal,x.maxSurfaceAngle),C.setShape({points:R}),w.__hostTarget.textGuideLineConfig={anchor:new Rt(R[0][0],R[0][1])})}}}var RV=(function(t){ut(e,t);function e(n,r,i){var a=t.call(this)||this;a.z2=2;var l=new ze;return a.setTextContent(l),a.updateData(n,r,i,!0),a}return e.prototype.updateData=function(n,r,i,a){var l=this,u=n.hostModel,f=n.getItemModel(r),c=f.getModel("emphasis"),d=n.getItemLayout(r),v=lt(ju(f.getModel("itemStyle"),d,!0),d);if(isNaN(v.startAngle)){l.setShape(v);return}if(a){l.setShape(v);var m=u.getShallow("animationType");u.ecModel.ssr?(Ti(l,{scaleX:0,scaleY:0},u,{dataIndex:r,isFrom:!0}),l.originX=v.cx,l.originY=v.cy):m==="scale"?(l.shape.r=d.r0,Ti(l,{shape:{r:d.r}},u,r)):i!=null?(l.setShape({startAngle:i,endAngle:i}),Ti(l,{shape:{startAngle:d.startAngle,endAngle:d.endAngle}},u,r)):(l.shape.endAngle=d.startAngle,fr(l,{shape:{endAngle:d.endAngle}},u,r))}else MD(l),fr(l,{shape:v},u,r);l.useStyle(n.getItemVisual(r,"style")),hD(l,f);var p=(d.startAngle+d.endAngle)/2,y=u.get("selectedOffset"),S=Math.cos(p)*y,x=Math.sin(p)*y,w=f.getShallow("cursor");w&&l.attr("cursor",w),this._updateLabel(u,n,r),l.ensureState("emphasis").shape=lt({r:d.r+(c.get("scale")&&c.get("scaleSize")||0)},ju(c.getModel("itemStyle"),d)),lt(l.ensureState("select"),{x:S,y:x,shape:ju(f.getModel(["select","itemStyle"]),d)}),lt(l.ensureState("blur"),{shape:ju(f.getModel(["blur","itemStyle"]),d)});var C=l.getTextGuideLine(),M=l.getTextContent();C&&lt(C.ensureState("select"),{x:S,y:x}),lt(M.ensureState("select"),{x:S,y:x}),cD(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(n,r,i){var a=this,l=r.getItemModel(i),u=l.getModel("labelLine"),f=r.getItemVisual(i,"style"),c=f&&f.fill,d=f&&f.opacity;O_(a,BD(l),{labelFetcher:r.hostModel,labelDataIndex:i,inheritColor:c,defaultOpacity:d,defaultText:n.getFormattedLabel(i,"normal")||r.getName(i)});var v=a.getTextContent();a.setTextConfig({position:null,rotation:null}),v.attr({z2:10});var m=n.get(["label","position"]);if(m!=="outside"&&m!=="outer")a.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Io,this.setTextGuideLine(p)),W6(this,Q6(l),{stroke:c,opacity:Yl(u.get(["lineStyle","opacity"]),d,1)})}},e})(Oi),EV=(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,i,a){var l=n.getData(),u=this._data,f=this.group,c;if(!u&&l.count()>0){for(var d=l.getItemLayout(0),v=1;isNaN(d&&d.startAngle)&&v<l.count();++v)d=l.getItemLayout(v);d&&(c=d.startAngle)}if(this._emptyCircleSector&&f.remove(this._emptyCircleSector),l.count()===0&&n.get("showEmptyCircle")){var m=HE(n),p=new Oi({shape:lt(kE(n,i),m)});p.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,f.add(p)}l.diff(u).add(function(y){var S=new RV(l,y,c);l.setItemGraphicEl(y,S),f.add(S)}).update(function(y,S){var x=u.getItemGraphicEl(S);x.updateData(l,y,c),x.off("click"),f.add(x),l.setItemGraphicEl(y,x)}).remove(function(y){var S=u.getItemGraphicEl(y);Ad(S,n,y)}).execute(),DV(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=l)},e.prototype.dispose=function(){},e.prototype.containPoint=function(n,r){var i=r.getData(),a=i.getItemLayout(0);if(a){var l=n[0]-a.cx,u=n[1]-a.cy,f=Math.sqrt(l*l+u*u);return f<=a.r&&f>=a.r0}},e.type="pie",e})(sr);function LV(t,e,n){e=ft(e)&&{coordDimensions:e}||lt({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=lS(r,e).dimensions,a=new oS(i,t);return a.initData(r,n),a}var OV=(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})(),zV=xe(),NV=(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 OV(Tt(this.getData,this),Tt(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return LV(this,{coordDimensions:["value"],encodeDefaulter:ce(E4,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),i=zV(r),a=i.seats;if(!a){var l=[];r.each(r.mapDimension("value"),function(f){l.push(f)}),a=i.seats=I2(l,r.hostModel.get("percentPrecision"))}var u=t.prototype.getDataParams.call(this,n);return u.percent=a[n]||0,u.$vars.push("percent"),u},e.prototype._defaultLabelLine=function(n){n0(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.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})(Vn);function IV(t){return{seriesType:t,reset:function(e,n){var r=e.getData();r.filterSelf(function(i){var a=r.mapDimension("value"),l=r.get(a,i);return!(ve(l)&&!isNaN(l)&&l<0)})}}}function Tv(t){t.registerChartView(EV),t.registerSeriesModel(NV),dk("pie",t.registerAction),t.registerLayout(ce(CV,"pie")),t.registerProcessor(MV("pie")),t.registerProcessor(IV("pie"))}var BV=(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})(qt),L0=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",bn).models[0]},e.type="cartesian2dAxis",e})(qt);cr(L0,bE);var FE={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)"]}}},PV=jt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},FE),gS=jt({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}}},FE),kV=jt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},gS),HV=Kt({logBase:10},gS);const VV={category:PV,value:gS,time:kV,log:HV};var FV={value:1,category:1,time:1,log:1};function VT(t,e,n,r){I(FV,function(i,a){var l=jt(jt({},VV[a],!0),r,!0),u=(function(f){ut(c,f);function c(){var d=f!==null&&f.apply(this,arguments)||this;return d.type=e+"Axis."+a,d}return c.prototype.mergeDefaultAndTheme=function(d,v){var m=yf(this),p=m?Vf(d):{},y=v.getTheme();jt(d,y.get(a+"Axis")),jt(d,this.getDefaultOption()),d.type=FT(d),m&&ns(d,p,m)},c.prototype.optionUpdated=function(){var d=this.option;d.type==="category"&&(this.__ordinalMeta=A0.createByAxisModel(this))},c.prototype.getCategories=function(d){var v=this.option;if(v.type==="category")return d?v.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=e+"Axis."+a,c.defaultOption=l,c})(n);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(e+"Axis",FT)}function FT(t){return t.type||(t.data?"category":"value")}var GV=(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 St(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ee(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})(),O0=["x","y"];function GT(t){return t.type==="interval"||t.type==="time"}var UV=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=O0,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!GT(n)||!GT(r))){var i=n.getExtent(),a=r.getExtent(),l=this.dataToPoint([i[0],a[0]]),u=this.dataToPoint([i[1],a[1]]),f=i[1]-i[0],c=a[1]-a[0];if(!(!f||!c)){var d=(u[0]-l[0])/f,v=(u[1]-l[1])/c,m=l[0]-i[0]*d,p=l[1]-a[0]*v,y=this._transform=[d,0,0,v,m,p];this._invTransform=Rf([],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"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.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 i=this.dataToPoint(n),a=this.dataToPoint(r),l=this.getArea(),u=new Xt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return l.intersect(u)},e.prototype.dataToPoint=function(n,r,i){i=i||[];var a=n[0],l=n[1];if(this._transform&&a!=null&&isFinite(a)&&l!=null&&isFinite(l))return an(i,n,this._transform);var u=this.getAxis("x"),f=this.getAxis("y");return i[0]=u.toGlobalCoord(u.dataToCoord(a,r)),i[1]=f.toGlobalCoord(f.dataToCoord(l,r)),i},e.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,l=i.getExtent(),u=a.getExtent(),f=i.parse(n[0]),c=a.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(l[0],l[1]),f),Math.max(l[0],l[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 i=[];if(this._invTransform)return an(i,n,this._invTransform);var a=this.getAxis("x"),l=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(n[0]),r),i[1]=l.coordToData(l.toLocalCoord(n[1]),r),i},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(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1])-n,l=Math.min(i[0],i[1])-n,u=Math.max(r[0],r[1])-a+n,f=Math.max(i[0],i[1])-l+n;return new Xt(a,l,u,f)},e})(GV),jV=(function(t){ut(e,t);function e(n,r,i,a,l){var u=t.call(this,n,r,i)||this;return u.index=0,u.type=a||"value",u.position=l||"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})(OE);function z0(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,a={},l=i.getAxesOnZeroOf()[0],u=i.position,f=l?"onZero":u,c=i.dim,d=r.getRect(),v=[d.x,d.x+d.width,d.y,d.y+d.height],m={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,y=c==="x"?[v[2]-p,v[3]+p]:[v[0]-p,v[1]+p];if(l){var S=l.toGlobalCoord(l.dataToCoord(0));y[m.onZero]=Math.max(Math.min(S,y[1]),y[0])}a.position=[c==="y"?y[m[f]]:v[0],c==="x"?y[m[f]]:v[3]],a.rotation=Math.PI/2*(c==="x"?0:1);var x={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=x[u],a.labelOffset=l?y[m[u]]-y[m.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Kl(n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var w=e.get(["axisLabel","rotate"]);return a.labelRotate=f==="top"?-w:w,a.z2=1,a}function UT(t){return t.get("coordinateSystem")==="cartesian2d"}function jT(t){var e={xAxisModel:null,yAxisModel:null};return I(e,function(n,r){var i=r.replace(/Model$/,""),a=t.getReferringComponents(i,bn).models[0];e[r]=a}),e}var hy=Math.log;function YV(t,e,n){var r=ls.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,!0),l=i.length-1,u=r.getInterval.call(n),f=yE(t,e),c=f.extent,d=f.fixMin,v=f.fixMax;if(t.type==="log"){var m=hy(t.base);c=[hy(c[0])/m,hy(c[1])/m]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:l,fixMin:d,fixMax:v});var p=r.getExtent.call(t);d&&(c[0]=p[0]),v&&(c[1]=p[1]);var y=r.getInterval.call(t),S=c[0],x=c[1];if(d&&v)y=(x-S)/l;else if(d)for(x=c[0]+y*l;x<c[1]&&isFinite(x)&&isFinite(c[1]);)y=iy(y),x=c[0]+y*l;else if(v)for(S=c[1]-y*l;S>c[0]&&isFinite(S)&&isFinite(c[0]);)y=iy(y),S=c[1]-y*l;else{var w=t.getTicks().length-1;w>l&&(y=iy(y));var C=y*l;x=Math.ceil(c[1]/y)*y,S=Oe(x-C),S<0&&c[0]>=0?(S=0,x=Oe(C)):x>0&&c[1]<=0&&(x=0,S=-Oe(C))}var M=(i[0].value-a[0].value)/u,A=(i[l].value-a[l].value)/u;r.setExtent.call(t,S+y*M,x+y*A),r.setInterval.call(t,y),(M||A)&&r.setNiceExtent.call(t,S+y,x-y)}var qV=(function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=O0,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 i(l){var u,f=de(l),c=f.length;if(c){for(var d=[],v=c-1;v>=0;v--){var m=+f[v],p=l[m],y=p.model,S=p.scale;D0(S)&&y.get("alignTicks")&&y.get("interval")==null?d.push(p):(R0(S,y),D0(S)&&(u=p))}d.length&&(u||(u=d.pop(),R0(u.scale,u.model)),I(d,function(x){YV(x.scale,x.model,u.scale)}))}}i(r.x),i(r.y);var a={};I(r.x,function(l){YT(r,"y",l,a)}),I(r.y,function(l){YT(r,"x",l,a)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var i=e.getBoxLayoutParams(),a=!r&&e.get("containLabel"),l=Da(i,{width:n.getWidth(),height:n.getHeight()});this._rect=l;var u=this._axesList;f(),a&&(I(u,function(c){if(!c.model.get(["axisLabel","inside"])){var d=v6(c);if(d){var v=c.isHorizontal()?"height":"width",m=c.model.get(["axisLabel","margin"]);l[v]-=d[v]+m,c.position==="top"?l.y+=d.height+m:c.position==="left"&&(l.x+=d.width+m)}}}),f()),I(this._coordsList,function(c){c.calcAffineTransform()});function f(){I(u,function(c){var d=c.isHorizontal(),v=d?[0,l.width]:[0,l.height],m=c.inverse?1:0;c.setExtent(v[m],v[1-m]),XV(c,d?l.x:l.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]}bt(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===n)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},t.prototype.convertFromPixel=function(e,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},t.prototype._findConvertTarget=function(e){var n=e.seriesModel,r=e.xAxisModel||n&&n.getReferringComponents("xAxis",bn).models[0],i=e.yAxisModel||n&&n.getReferringComponents("yAxis",bn).models[0],a=e.gridModel,l=this._coordsList,u,f;if(n)u=n.coordinateSystem,Wt(l,u)<0&&(u=null);else if(r&&i)u=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)f=this.getAxis("x",r.componentIndex);else if(i)f=this.getAxis("y",i.componentIndex);else if(a){var c=a.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 i=this,a=this,l={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,I(u.x,function(d,v){I(u.y,function(m,p){var y="x"+v+"y"+p,S=new UV(y);S.master=i,S.model=e,i._coordsMap[y]=S,i._coordsList.push(S),S.addAxis(d),S.addAxis(m)})});function c(d){return function(v,m){if(dy(v,e)){var p=v.get("position");d==="x"?p!=="top"&&p!=="bottom"&&(p=l.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=l.left?"right":"left"),l[p]=!0;var y=new jV(d,_E(v),[0,0],v.get("type"),p),S=y.type==="category";y.onBand=S&&v.get("boundaryGap"),y.inverse=v.get("inverse"),v.axis=y,y.model=v,y.grid=a,y.index=m,a._axesList.push(y),u[d][m]=y,f[d]++}}}},t.prototype._updateScale=function(e,n){I(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(UT(i)){var a=jT(i),l=a.xAxisModel,u=a.yAxisModel;if(!dy(l,n)||!dy(u,n))return;var f=this.getCartesian(l.componentIndex,u.componentIndex),c=i.getData(),d=f.getAxis("x"),v=f.getAxis("y");r(c,d),r(c,v)}},this);function r(i,a){I(xE(i,a.dim),function(l){a.scale.unionExtentFromData(i,l)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return I(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),l=i.getOtherAxis(a);Wt(n,a)<0&&n.push(a),Wt(r,l)<0&&r.push(l)}),{baseAxes:n,otherAxes:r}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(i,a){var l=new t(i,e,n);l.name="grid_"+a,l.resize(i,n,!0),i.coordinateSystem=l,r.push(l)}),e.eachSeries(function(i){if(UT(i)){var a=jT(i),l=a.xAxisModel,u=a.yAxisModel,f=l.getCoordSysModel(),c=f.coordinateSystem;i.coordinateSystem=c.getCartesian(l.componentIndex,u.componentIndex)}}),r},t.dimensions=O0,t})();function dy(t,e){return t.getCoordSysModel()===e}function YT(t,e,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,l=n.model,u=l.get(["axisLine","onZero"]),f=l.get(["axisLine","onZeroAxisIndex"]);if(!u)return;if(f!=null)qT(i[f])&&(a=i[f]);else for(var c in i)if(i.hasOwnProperty(c)&&qT(i[c])&&!r[d(i[c])]){a=i[c];break}a&&(r[d(a)]=!0);function d(v){return v.dim+"_"+v.index}}function qT(t){return t&&t.type!=="category"&&t.type!=="time"&&d6(t)}function XV(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return r-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return r-i+e}}var ya=Math.PI,Ma=(function(){function t(e,n){this.group=new Qe,this.opt=n,this.axisModel=e,Kt(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Qe({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return t.prototype.hasBuilder=function(e){return!!XT[e]},t.prototype.add=function(e){XT[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,n,r){var i=m_(n-e),a,l;return uf(i)?(l=r>0?"top":"bottom",a="center"):uf(i-ya)?(l=r>0?"bottom":"top",a="center"):(l="middle",i>0&&i<ya?a=r>0?"right":"left":a=r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:l}},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})(),XT={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),l=r.transform,u=[a[0],0],f=[a[1],0],c=u[0]>f[0];l&&(an(u,u,l),an(f,f,l));var d=lt({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new Ri({shape:{x1:u[0],y1:u[1],x2:f[0],y2:f[1]},style:d,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});vf(v.shape,v.style.lineWidth),v.anid="line",n.add(v);var m=e.get(["axisLine","symbol"]);if(m!=null){var p=e.get(["axisLine","symbolSize"]);gt(m)&&(m=[m,m]),(gt(p)||ve(p))&&(p=[p,p]);var y=Tk(e.get(["axisLine","symbolOffset"])||0,p),S=p[0],x=p[1];I([{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(w,C){if(m[C]!=="none"&&m[C]!=null){var M=is(m[C],-S/2,-x/2,S,x,d.stroke,!0),A=w.r+w.offset,R=c?f:u;M.attr({rotation:w.rotate,x:R[0]+A*Math.cos(t.rotation),y:R[1]-A*Math.sin(t.rotation),silent:!0,z2:11}),n.add(M)}})}}},axisTickLabel:function(t,e,n,r){var i=WV(n,r,e,t),a=KV(n,r,e,t);if($V(e,a,i),QV(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var l=K6(St(a,function(u){return{label:u,priority:u.z2,defaultAttr:{ignore:u.ignore}}}));eV(l)}},axisName:function(t,e,n,r){var i=Kl(t.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),f=e.get("nameGap")||0,c=e.axis.getExtent(),d=c[0]>c[1]?-1:1,v=[a==="start"?c[0]-d*f:a==="end"?c[1]+d*f:(c[0]+c[1])/2,$T(a)?t.labelOffset+l*f:0],m,p=e.get("nameRotate");p!=null&&(p=p*ya/180);var y;$T(a)?m=Ma.innerTextLayout(t.rotation,p??t.rotation,l):(m=ZV(t.rotation,a,p||0,c),y=t.axisNameAvailableWidth,y!=null&&(y=Math.abs(y/Math.sin(m.rotation)),!isFinite(y)&&(y=null)));var S=u.getFont(),x=e.get("nameTruncate",!0)||{},w=x.ellipsis,C=Kl(t.nameTruncateMaxWidth,x.maxWidth,y),M=new ze({x:v[0],y:v[1],rotation:m.rotation,silent:Ma.isLabelSilent(e),style:Yr(u,{text:i,font:S,overflow:"truncate",width:C,ellipsis:w,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||m.textAlign,verticalAlign:u.get("verticalAlign")||m.textVerticalAlign}),z2:1});if(lv({el:M,componentModel:e,itemName:i}),M.__fullText=i,M.anid="name",e.get("triggerEvent")){var A=Ma.makeAxisEventDataBase(e);A.targetType="axisName",A.name=i,te(M).eventData=A}r.add(M),M.updateTransform(),n.add(M),M.decomposeTransform()}}};function ZV(t,e,n,r){var i=m_(n-t),a,l,u=r[0]>r[1],f=e==="start"&&!u||e!=="start"&&u;return uf(i-ya/2)?(l=f?"bottom":"top",a="center"):uf(i-ya*1.5)?(l=f?"top":"bottom",a="center"):(l="middle",i<ya*1.5&&i>ya/2?a=f?"left":"right":a=f?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:l}}function $V(t,e,n){if(!SE(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var a=e[0],l=e[1],u=e[e.length-1],f=e[e.length-2],c=n[0],d=n[1],v=n[n.length-1],m=n[n.length-2];r===!1?(Jn(a),Jn(c)):ZT(a,l)&&(r?(Jn(l),Jn(d)):(Jn(a),Jn(c))),i===!1?(Jn(u),Jn(v)):ZT(f,u)&&(i?(Jn(f),Jn(m)):(Jn(u),Jn(v)))}}function Jn(t){t&&(t.ignore=!0)}function ZT(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var i=Df([]);return $d(i,i,-t.rotation),n.applyTransform(ba([],i,t.getLocalTransform())),r.applyTransform(ba([],i,e.getLocalTransform())),n.intersect(r)}}function $T(t){return t==="middle"||t==="center"}function GE(t,e,n,r,i){for(var a=[],l=[],u=[],f=0;f<t.length;f++){var c=t[f].coord;l[0]=c,l[1]=0,u[0]=c,u[1]=n,e&&(an(l,l,e),an(u,u,e));var d=new Ri({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:r,z2:2,autoBatch:!0,silent:!0});vf(d.shape,d.style.lineWidth),d.anid=i+"_"+t[f].tickValue,a.push(d)}return a}function WV(t,e,n,r){var i=n.axis,a=n.getModel("axisTick"),l=a.get("show");if(l==="auto"&&r.handleAutoShown&&(l=r.handleAutoShown("axisTick")),!(!l||i.scale.isBlank())){for(var u=a.getModel("lineStyle"),f=r.tickDirection*a.get("length"),c=i.getTicksCoords(),d=GE(c,e.transform,f,Kt(u.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<d.length;v++)t.add(d[v]);return d}}function QV(t,e,n,r){var i=n.axis,a=n.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var l=i.getMinorTicksCoords();if(l.length)for(var u=a.getModel("lineStyle"),f=r*a.get("length"),c=Kt(u.getLineStyle(),Kt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),d=0;d<l.length;d++)for(var v=GE(l[d],e.transform,f,c,"minorticks_"+d),m=0;m<v.length;m++)t.add(v[m])}}function KV(t,e,n,r){var i=n.axis,a=Kl(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var l=n.getModel("axisLabel"),u=l.get("margin"),f=i.getViewLabels(),c=(Kl(r.labelRotate,l.get("rotate"))||0)*ya/180,d=Ma.innerTextLayout(r.rotation,c,r.labelDirection),v=n.getCategories&&n.getCategories(!0),m=[],p=Ma.isLabelSilent(n),y=n.get("triggerEvent");return I(f,function(S,x){var w=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,C=S.formattedLabel,M=S.rawLabel,A=l;if(v&&v[w]){var R=v[w];bt(R)&&R.textStyle&&(A=new he(R.textStyle,l,n.ecModel))}var D=A.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=i.dataToCoord(w),O=A.getShallow("align",!0)||d.textAlign,B=Pt(A.getShallow("alignMinLabel",!0),O),H=Pt(A.getShallow("alignMaxLabel",!0),O),P=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||d.textVerticalAlign,q=Pt(A.getShallow("verticalAlignMinLabel",!0),P),$=Pt(A.getShallow("verticalAlignMaxLabel",!0),P),W=new ze({x:L,y:r.labelOffset+r.labelDirection*u,rotation:d.rotation,silent:p,z2:10+(S.level||0),style:Yr(A,{text:C,align:x===0?B:x===f.length-1?H:O,verticalAlign:x===0?q:x===f.length-1?$:P,fill:It(D)?D(i.type==="category"?M:i.type==="value"?w+"":w,x):D})});if(W.anid="label_"+w,lv({el:W,componentModel:n,itemName:C,formatterParamsExtra:{isTruncated:function(){return W.isTruncated},value:M,tickIndex:x}}),y){var J=Ma.makeAxisEventDataBase(n);J.targetType="axisLabel",J.value=M,J.tickIndex=x,i.type==="category"&&(J.dataIndex=w),te(W).eventData=J}e.add(W),W.updateTransform(),m.push(W),t.add(W),W.decomposeTransform()}),m}}function JV(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return tF(n,t,e),n.seriesInvolved&&nF(n,t),n}function tF(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],l=[];I(n.getCoordinateSystems(),function(u){if(!u.axisPointerEnabled)return;var f=Cf(u.model),c=t.coordSysAxesInfo[f]={};t.coordSysMap[f]=u;var d=u.model,v=d.getModel("tooltip",r);if(I(u.getAxes(),ce(S,!1,null)),u.getTooltipAxes&&r&&v.get("show")){var m=v.get("trigger")==="axis",p=v.get(["axisPointer","type"])==="cross",y=u.getTooltipAxes(v.get(["axisPointer","axis"]));(m||p)&&I(y.baseAxes,ce(S,p?"cross":!0,m)),p&&I(y.otherAxes,ce(S,"cross",!1))}function S(x,w,C){var M=C.model.getModel("axisPointer",i),A=M.get("show");if(!(!A||A==="auto"&&!x&&!N0(M))){w==null&&(w=M.get("triggerTooltip")),M=x?eF(C,v,i,e,x,w):M;var R=M.get("snap"),D=M.get("triggerEmphasis"),L=Cf(C.model),O=w||R||C.type==="category",B=t.axesInfo[L]={key:L,axis:C,coordSys:u,axisPointerModel:M,triggerTooltip:w,triggerEmphasis:D,involveSeries:O,snap:R,useHandle:N0(M),seriesModels:[],linkGroup:null};c[L]=B,t.seriesInvolved=t.seriesInvolved||O;var H=rF(a,C);if(H!=null){var P=l[H]||(l[H]={axesInfo:{}});P.axesInfo[L]=B,P.mapper=a[H].mapper,B.linkGroup=P}}}})}function eF(t,e,n,r,i,a){var l=e.getModel("axisPointer"),u=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],f={};I(u,function(m){f[m]=kt(l.get(m))}),f.snap=t.type!=="category"&&!!a,l.get("type")==="cross"&&(f.type="line");var c=f.label||(f.label={});if(c.show==null&&(c.show=!1),i==="cross"){var d=l.get(["label","show"]);if(c.show=d??!0,!a){var v=f.lineStyle=l.get("crossStyle");v&&Kt(c,v.textStyle)}}return t.model.getModel("axisPointer",new he(f,n,r))}function nF(t,e){e.eachSeries(function(n){var r=n.coordinateSystem,i=n.get(["tooltip","trigger"],!0),a=n.get(["tooltip","show"],!0);!r||i==="none"||i===!1||i==="item"||a===!1||n.get(["axisPointer","show"],!0)===!1||I(t.coordSysAxesInfo[Cf(r.model)],function(l){var u=l.axis;r.getAxis(u.dim)===u&&(l.seriesModels.push(n),l.seriesDataCount==null&&(l.seriesDataCount=0),l.seriesDataCount+=n.getData().count())})})}function rF(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(vy(a[r+"AxisId"],n.id)||vy(a[r+"AxisIndex"],n.componentIndex)||vy(a[r+"AxisName"],n.name))return i}}function vy(t,e){return t==="all"||ft(t)&&Wt(t,e)>=0||t===e}function iF(t){var e=pS(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,a=n.get("status"),l=n.get("value");l!=null&&(l=r.parse(l));var u=N0(n);a==null&&(i.status=u?"show":"hide");var f=r.getExtent().slice();f[0]>f[1]&&f.reverse(),(l==null||l>f[1])&&(l=f[1]),l<f[0]&&(l=f[0]),i.value=l,u&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function pS(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Cf(t)]}function aF(t){var e=pS(t);return e&&e.axisPointerModel}function N0(t){return!!t.get(["handle","show"])}function Cf(t){return t.type+"||"+t.id}var WT={},UE=(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,i,a){this.axisPointerClass&&iF(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,i,!0)},e.prototype.updateAxisPointer=function(n,r,i,a){this._doUpdateAxisPointerClass(n,i,!1)},e.prototype.remove=function(n,r){var i=this._axisPointer;i&&i.remove(r)},e.prototype.dispose=function(n,r){this._disposeAxisPointer(r),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(n,r,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var l=aF(n);l?(this._axisPointer||(this._axisPointer=new a)).render(n,l,r,i):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},e.registerAxisPointerClass=function(n,r){WT[n]=r},e.getAxisPointerClass=function(n){return n&&WT[n]},e.type="axis",e})(un),I0=xe();function oF(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitArea"),l=a.getModel("areaStyle"),u=l.get("color"),f=r.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:a,clamp:!0});if(c.length){var d=u.length,v=I0(t).splitAreaColors,m=At(),p=0;if(v)for(var y=0;y<c.length;y++){var S=v.get(c[y].tickValue);if(S!=null){p=(S+(d-1)*y)%d;break}}var x=i.toGlobalCoord(c[0].coord),w=l.getAreaStyle();u=ft(u)?u:[u];for(var y=1;y<c.length;y++){var C=i.toGlobalCoord(c[y].coord),M=void 0,A=void 0,R=void 0,D=void 0;i.isHorizontal()?(M=x,A=f.y,R=C-M,D=f.height,x=M+R):(M=f.x,A=x,R=f.width,D=C-A,x=A+D);var L=c[y-1].tickValue;L!=null&&m.set(L,p),e.add(new ge({anid:L!=null?"area_"+L:null,shape:{x:M,y:A,width:R,height:D},style:Kt({fill:u[p]},w),autoBatch:!0,silent:!0})),p=(p+1)%d}I0(t).splitAreaColors=m}}}function lF(t){I0(t).splitAreaColors=null}var sF=["axisLine","axisTickLabel","axisName"],uF=["splitArea","splitLine","minorSplitLine"],jE=(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,i,a){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new Qe,this.group.add(this._axisGroup),!!n.get("show")){var u=n.getCoordSysModel(),f=z0(u,n),c=new Ma(n,lt({handleAutoShown:function(v){for(var m=u.coordinateSystem.getCartesians(),p=0;p<m.length;p++)if(D0(m[p].getOtherAxis(n.axis).scale))return!0;return!1}},f));I(sF,c.add,c),this._axisGroup.add(c.getGroup()),I(uF,function(v){n.get([v,"show"])&&fF[v](this,this._axisGroup,n,u)},this);var d=a&&a.type==="changeAxisOrder"&&a.isInitSort;d||OD(l,this._axisGroup,n),t.prototype.render.call(this,n,r,i,a)}},e.prototype.remove=function(){lF(this)},e.type="cartesianAxis",e})(UE),fF={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),l=a.getModel("lineStyle"),u=l.get("color"),f=a.get("showMinLine")!==!1,c=a.get("showMaxLine")!==!1;u=ft(u)?u:[u];for(var d=r.coordinateSystem.getRect(),v=i.isHorizontal(),m=0,p=i.getTicksCoords({tickModel:a}),y=[],S=[],x=l.getLineStyle(),w=0;w<p.length;w++){var C=i.toGlobalCoord(p[w].coord);if(!(w===0&&!f||w===p.length-1&&!c)){var M=p[w].tickValue;v?(y[0]=C,y[1]=d.y,S[0]=C,S[1]=d.y+d.height):(y[0]=d.x,y[1]=C,S[0]=d.x+d.width,S[1]=C);var A=m++%u.length,R=new Ri({anid:M!=null?"line_"+M:null,autoBatch:!0,shape:{x1:y[0],y1:y[1],x2:S[0],y2:S[1]},style:Kt({stroke:u[A]},x),silent:!0});vf(R.shape,x.lineWidth),e.add(R)}}}},minorSplitLine:function(t,e,n,r){var i=n.axis,a=n.getModel("minorSplitLine"),l=a.getModel("lineStyle"),u=r.coordinateSystem.getRect(),f=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var d=[],v=[],m=l.getLineStyle(),p=0;p<c.length;p++)for(var y=0;y<c[p].length;y++){var S=i.toGlobalCoord(c[p][y].coord);f?(d[0]=S,d[1]=u.y,v[0]=S,v[1]=u.y+u.height):(d[0]=u.x,d[1]=S,v[0]=u.x+u.width,v[1]=S);var x=new Ri({anid:"minor_line_"+c[p][y].tickValue,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:v[0],y2:v[1]},style:m,silent:!0});vf(x.shape,m.lineWidth),e.add(x)}},splitArea:function(t,e,n,r){oF(t,e,n,r)}},YE=(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})(jE),cF=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=YE.type,n}return e.type="yAxis",e})(jE),hF=(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 ge({shape:n.coordinateSystem.getRect(),style:Kt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(un),QT={offset:0};function dF(t){t.registerComponentView(hF),t.registerComponentModel(BV),t.registerCoordinateSystem("cartesian2d",qV),VT(t,"x",L0,QT),VT(t,"y",L0,QT),t.registerComponentView(YE),t.registerComponentView(cF),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var KT="\0_ec_interaction_mutex";function JT(t,e){return!!vF(t)[e]}function vF(t){return t[KT]||(t[KT]={})}Oa({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},We);var gF=(function(t){ut(e,t);function e(n){var r=t.call(this)||this;r._zr=n;var i=Tt(r._mousedownHandler,r),a=Tt(r._mousemoveHandler,r),l=Tt(r._mouseupHandler,r),u=Tt(r._mousewheelHandler,r),f=Tt(r._pinchHandler,r);return r.enable=function(c,d){this.disable(),this._opt=Kt(kt(d)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),c==null&&(c=!0),(c===!0||c==="move"||c==="pan")&&(n.on("mousedown",i),n.on("mousemove",a),n.on("mouseup",l)),(c===!0||c==="scale"||c==="zoom")&&(n.on("mousewheel",u),n.on("pinch",f))},r.disable=function(){n.off("mousedown",i),n.off("mousemove",a),n.off("mouseup",l),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(!Qw(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=n.offsetX,a=n.offsetY;this.pointerChecker&&this.pointerChecker(n,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!fd("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||JT(this._zr,"globalPan"))){var r=n.offsetX,i=n.offsetY,a=this._x,l=this._y,u=r-a,f=i-l;this._x=r,this._y=i,this._opt.preventDefaultMouseMove&&Jl(n.event),qE(this,"pan","moveOnMouseMove",n,{dx:u,dy:f,oldX:a,oldY:l,newX:r,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(n){Qw(n)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(n){var r=fd("zoomOnMouseWheel",n,this._opt),i=fd("moveOnMouseWheel",n,this._opt),a=n.wheelDelta,l=Math.abs(a),u=n.offsetX,f=n.offsetY;if(!(a===0||!r&&!i)){if(r){var c=l>3?1.4:l>1?1.2:1.1,d=a>0?c:1/c;gy(this,"zoom","zoomOnMouseWheel",n,{scale:d,originX:u,originY:f,isAvailableBehavior:null})}if(i){var v=Math.abs(a),m=(a>0?1:-1)*(v>3?.4:v>1?.15:.05);gy(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:m,originX:u,originY:f,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(n){if(!JT(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;gy(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},e})(Tr);function gy(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(Jl(r.event),qE(t,e,n,r,i))}function qE(t,e,n,r,i){i.isAvailableBehavior=Tt(fd,null,n,r),t.trigger(e,i)}function fd(t,e,n){var r=n[t];return!t||r&&(!gt(r)||e.event[r+"Key"])}function Av(t,e,n,r,i,a){t=t||0;var l=n[1]-n[0];if(i!=null&&(i=Il(i,[0,l])),a!=null&&(a=Math.max(a,i??0)),r==="all"){var u=Math.abs(e[1]-e[0]);u=Il(u,[0,l]),i=a=Il(u,[i,a]),r=0}e[0]=Il(e[0],n),e[1]=Il(e[1],n);var f=py(e,r);e[r]+=t;var c=i||0,d=n.slice();f.sign<0?d[0]+=c:d[1]-=c,e[r]=Il(e[r],d);var v;return v=py(e,r),i!=null&&(v.sign!==f.sign||v.span<i)&&(e[1-r]=e[r]+f.sign*i),v=py(e,r),a!=null&&v.span>a&&(e[1-r]=e[r]+v.sign*a),e}function py(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 Il(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var So=xe(),tA=kt,my=Tt,pF=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,n,r,i){var a=n.get("value"),l=n.get("status");if(this._axisModel=e,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===a&&this._lastStatus===l)){this._lastValue=a,this._lastStatus=l;var u=this._group,f=this._handle;if(!l||l==="hide"){u&&u.hide(),f&&f.hide();return}u&&u.show(),f&&f.show();var c={};this.makeElOption(c,a,e,n,r);var d=c.graphicKey;d!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=d;var v=this._moveAnimation=this.determineAnimation(e,n);if(!u)u=this._group=new Qe,this.createPointerEl(u,c,e,n),this.createLabelEl(u,c,e,n),r.getZr().add(u);else{var m=ce(eA,n,v);this.updatePointerEl(u,c,m),this.updateLabelEl(u,c,m,n)}rA(u,n,!0),this._renderHandle(a)}},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"),i=e.axis,a=i.type==="category",l=n.get("snap");if(!l&&!a)return!1;if(r==="auto"||r==null){var u=this.animationThreshold;if(a&&i.getBandWidth()>u)return!0;if(l){var f=pS(e).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/f>u}return!1}return r===!0},t.prototype.makeElOption=function(e,n,r,i,a){},t.prototype.createPointerEl=function(e,n,r,i){var a=n.pointer;if(a){var l=So(e).pointerEl=new WB[a.type](tA(n.pointer));e.add(l)}},t.prototype.createLabelEl=function(e,n,r,i){if(n.label){var a=So(e).labelEl=new ze(tA(n.label));e.add(a),nA(a,i)}},t.prototype.updatePointerEl=function(e,n,r){var i=So(e).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(e,n,r,i){var a=So(e).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),nA(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),l=n.get("status");if(!a.get("show")||!l||l==="hide"){i&&r.remove(i),this._handle=null;return}var u;this._handle||(u=!0,i=this._handle=ov(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){Jl(c.event)},onmousedown:my(this._onHandleDragMove,this,0,0),drift:my(this._onHandleDragMove,this),ondragend:my(this._onHandleDragEnd,this)}),r.add(i)),rA(i,n,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var f=a.get("size");ft(f)||(f=[f,f]),i.scaleX=f[0]/2,i.scaleY=f[1]/2,_v(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,u)}},t.prototype._moveHandleToValue=function(e,n){eA(this._axisPointerModel,!n&&this._moveAnimation,this._handle,yy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(yy(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(yy(i)),So(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,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Od(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 eA(t,e,n,r){XE(So(n).lastProp,r)||(So(n).lastProp=r,e?fr(n,r,t):(n.stopAnimation(),n.attr(r)))}function XE(t,e){if(bt(t)&&bt(e)){var n=!0;return I(e,function(r,i){n=n&&XE(t[i],r)}),!!n}else return t===e}function nA(t,e){t[e.get(["label","show"])?"show":"hide"]()}function yy(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function rA(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(r!=null&&(a.z=r),i!=null&&(a.zlevel=i),a.silent=n)})}function mF(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 yF(t,e,n,r,i){var a=n.get("value"),l=ZE(a,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),u=n.getModel("label"),f=Hf(u.get("padding")||0),c=u.getFont(),d=v_(l,c),v=i.position,m=d.width+f[1]+f[3],p=d.height+f[0]+f[2],y=i.align;y==="right"&&(v[0]-=m),y==="center"&&(v[0]-=m/2);var S=i.verticalAlign;S==="bottom"&&(v[1]-=p),S==="middle"&&(v[1]-=p/2),_F(v,m,p,r);var x=u.get("backgroundColor");(!x||x==="auto")&&(x=e.get(["axisLine","lineStyle","color"])),t.label={x:v[0],y:v[1],style:Yr(u,{text:l,font:c,fill:u.getTextColor(),padding:f,backgroundColor:x}),z2:10}}function _F(t,e,n,r){var i=r.getWidth(),a=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function ZE(t,e,n,r,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),l=i.formatter;if(l){var u={value:dS(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};I(r,function(f){var c=n.getSeriesByIndex(f.seriesIndex),d=f.dataIndexInside,v=c&&c.getDataParams(d);v&&u.seriesData.push(v)}),gt(l)?a=l.replace("{value}",a):It(l)&&(a=l(u))}return a}function $E(t,e,n){var r=xa();return $d(r,r,n.rotation),md(r,r,n.position),gf([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function SF(t,e,n,r,i,a){var l=Ma.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),yF(e,r,i,a,{position:$E(r.axis,t,n),align:l.textAlign,verticalAlign:l.textVerticalAlign})}function xF(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function bF(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}var wF=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,a,l){var u=i.axis,f=u.grid,c=a.get("type"),d=iA(f,u).getOtherAxis(u).getGlobalExtent(),v=u.toGlobalCoord(u.dataToCoord(r,!0));if(c&&c!=="none"){var m=mF(a),p=CF[c](u,v,d);p.style=m,n.graphicKey=p.type,n.pointer=p}var y=z0(f.model,i);SF(r,n,y,i,a,l)},e.prototype.getHandleTransform=function(n,r,i){var a=z0(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var l=$E(r.axis,n,a);return{x:l[0],y:l[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,i,a){var l=i.axis,u=l.grid,f=l.getGlobalExtent(!0),c=iA(u,l).getOtherAxis(l).getGlobalExtent(),d=l.dim==="x"?0:1,v=[n.x,n.y];v[d]+=r[d],v[d]=Math.min(f[1],v[d]),v[d]=Math.max(f[0],v[d]);var m=(c[1]+c[0])/2,p=[m,m];p[d]=v[d];var y=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:n.rotation,cursorPoint:p,tooltipOption:y[d]}},e})(pF);function iA(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var CF={line:function(t,e,n){var r=xF([e,n[0]],[e,n[1]],aA(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:bF([e-r/2,n[0]],[r,i],aA(t))}}};function aA(t){return t.dim==="x"?0:1}var MF=(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})(qt),Mi=xe(),TF=I;function WE(t,e,n){if(!Dt.node){var r=e.getZr();Mi(r).records||(Mi(r).records={}),AF(r,e);var i=Mi(r).records[t]||(Mi(r).records[t]={});i.handler=n}}function AF(t,e){if(Mi(t).initialized)return;Mi(t).initialized=!0,n("click",ce(oA,"click")),n("mousemove",ce(oA,"mousemove")),n("globalout",RF);function n(r,i){t.on(r,function(a){var l=EF(e);TF(Mi(t).records,function(u){u&&i(u,a,l.dispatchAction)}),DF(l.pendings,e)})}}function DF(t,e){var n=t.showTip.length,r=t.hideTip.length,i;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function RF(t,e,n){t.handler("leave",null,n)}function oA(t,e,n,r){e.handler(t,n,r)}function EF(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function B0(t,e){if(!Dt.node){var n=e.getZr(),r=(Mi(n).records||{})[t];r&&(Mi(n).records[t]=null)}}var LF=(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,i){var a=r.getComponent("tooltip"),l=n.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";WE("axisPointer",i,function(u,f,c){l!=="none"&&(u==="leave"||l.indexOf(u)>=0)&&c({type:"updateAxisPointer",currTrigger:u,x:f&&f.offsetX,y:f&&f.offsetY})})},e.prototype.remove=function(n,r){B0("axisPointer",r)},e.prototype.dispose=function(n,r){B0("axisPointer",r)},e.type="axisPointer",e})(un);function QE(t,e){var n=[],r=t.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),l=Of(a,t);if(l==null||l<0||ft(l))return{point:[]};var u=a.getItemGraphicEl(l),f=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(l)||[];else if(f&&f.dataToPoint)if(t.isStacked){var c=f.getBaseAxis(),d=f.getOtherAxis(c),v=d.dim,m=c.dim,p=v==="x"||v==="radius"?1:0,y=a.mapDimension(m),S=[];S[p]=a.get(y,l),S[1-p]=a.get(a.getCalculationInfo("stackResultDimension"),l),n=f.dataToPoint(S)||[]}else n=f.dataToPoint(a.getValues(St(f.dimensions,function(w){return a.mapDimension(w)}),l))||[];else if(u){var x=u.getBoundingRect().clone();x.applyTransform(u.transform),n=[x.x+x.width/2,x.y+x.height/2]}return{point:n,el:u}}var lA=xe();function OF(t,e,n){var r=t.currTrigger,i=[t.x,t.y],a=t,l=t.dispatchAction||Tt(n.dispatchAction,n),u=e.getComponent("axisPointer").coordSysAxesInfo;if(u){cd(i)&&(i=QE({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var f=cd(i),c=a.axesInfo,d=u.axesInfo,v=r==="leave"||cd(i),m={},p={},y={list:[],map:{}},S={showPointer:ce(NF,p),showTooltip:ce(IF,y)};I(u.coordSysMap,function(w,C){var M=f||w.containPoint(i);I(u.coordSysAxesInfo[C],function(A,R){var D=A.axis,L=HF(c,A);if(!v&&M&&(!c||L)){var O=L&&L.value;O==null&&!f&&(O=D.pointToData(i)),O!=null&&sA(A,O,S,!1,m)}})});var x={};return I(d,function(w,C){var M=w.linkGroup;M&&!p[C]&&I(M.axesInfo,function(A,R){var D=p[R];if(A!==w&&D){var L=D.value;M.mapper&&(L=w.axis.scale.parse(M.mapper(L,uA(A),uA(w)))),x[w.key]=L}})}),I(x,function(w,C){sA(d[C],w,S,!0,m)}),BF(p,d,m),PF(y,i,t,l),kF(d,l,n),m}}function sA(t,e,n,r,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){n.showPointer(t,e);return}var l=zF(e,t),u=l.payloadBatch,f=l.snapToValue;u[0]&&i.seriesIndex==null&&lt(i,u[0]),!r&&t.snap&&a.containData(f)&&f!=null&&(e=f),n.showPointer(t,e,u),n.showTooltip(t,l,f)}}function zF(t,e){var n=e.axis,r=n.dim,i=t,a=[],l=Number.MAX_VALUE,u=-1;return I(e.seriesModels,function(f,c){var d=f.getData().mapDimensionsAll(r),v,m;if(f.getAxisTooltipData){var p=f.getAxisTooltipData(d,t,n);m=p.dataIndices,v=p.nestestValue}else{if(m=f.getData().indicesOfNearest(d[0],t,n.type==="category"?.5:null),!m.length)return;v=f.getData().get(d[0],m[0])}if(!(v==null||!isFinite(v))){var y=t-v,S=Math.abs(y);S<=l&&((S<l||y>=0&&u<0)&&(l=S,u=y,i=v,a.length=0),I(m,function(x){a.push({seriesIndex:f.seriesIndex,dataIndexInside:x,dataIndex:f.getData().getRawIndex(x)})}))}}),{payloadBatch:a,snapToValue:i}}function NF(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function IF(t,e,n,r){var i=n.payloadBatch,a=e.axis,l=a.model,u=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var f=e.coordSys.model,c=Cf(f),d=t.map[c];d||(d=t.map[c]={coordSysId:f.id,coordSysIndex:f.componentIndex,coordSysType:f.type,coordSysMainType:f.mainType,dataByAxis:[]},t.list.push(d)),d.dataByAxis.push({axisDim:a.dim,axisIndex:l.componentIndex,axisType:l.type,axisId:l.id,value:r,valueLabelOpt:{precision:u.get(["label","precision"]),formatter:u.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function BF(t,e,n){var r=n.axesInfo=[];I(e,function(i,a){var l=i.axisPointerModel.option,u=t[a];u?(!i.useHandle&&(l.status="show"),l.value=u.value,l.seriesDataIndices=(u.payloadBatch||[]).slice()):!i.useHandle&&(l.status="hide"),l.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:l.value})})}function PF(t,e,n,r){if(cd(e)||!t.list.length){r({type:"hideTip"});return}var i=((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:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function kF(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",a=lA(r)[i]||{},l=lA(r)[i]={};I(t,function(c,d){var v=c.axisPointerModel.option;v.status==="show"&&c.triggerEmphasis&&I(v.seriesDataIndices,function(m){var p=m.seriesIndex+" | "+m.dataIndex;l[p]=m})});var u=[],f=[];I(a,function(c,d){!l[d]&&f.push(c)}),I(l,function(c,d){!a[d]&&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 HF(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 uA(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 cd(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function KE(t){UE.registerAxisPointerClass("CartesianAxisPointer",wF),t.registerComponentModel(MF),t.registerComponentView(LF),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!ft(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=JV(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},OF)}function Dv(t){Tn(dF),Tn(KE)}var fA=["x","y","radius","angle","single"],VF=["cartesian2d","polar","singleAxis"];function FF(t){var e=t.get("coordinateSystem");return Wt(VF,e)>=0}function _a(t){return t+"Axis"}function GF(t,e){var n=At(),r=[],i=At();t.eachComponent({mainType:"dataZoom",query:e},function(d){i.get(d.uid)||u(d)});var a;do a=!1,t.eachComponent("dataZoom",l);while(a);function l(d){!i.get(d.uid)&&f(d)&&(u(d),a=!0)}function u(d){i.set(d.uid,!0),r.push(d),c(d)}function f(d){var v=!1;return d.eachTargetAxis(function(m,p){var y=n.get(m);y&&y[p]&&(v=!0)}),v}function c(d){d.eachTargetAxis(function(v,m){(n.get(v)||n.set(v,[]))[m]=!0})}return r}function JE(t){var e=t.ecModel,n={infoList:[],infoMap:At()};return t.eachTargetAxis(function(r,i){var a=e.getComponent(_a(r),i);if(a){var l=a.getCoordSysModel();if(l){var u=l.uid,f=n.infoMap.get(u);f||(f={model:l,axisModels:[]},n.infoList.push(f),n.infoMap.set(u,f)),f.axisModels.push(a)}}}),n}var _y=(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})(),Gd=(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,i){var a=cA(n);this.settledOption=a,this.mergeDefaultAndTheme(n,i),this._doInit(a)},e.prototype.mergeOption=function(n){var r=cA(n);jt(this.option,n,!0),jt(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var i=this.settledOption;I([["start","startValue"],["end","endValue"]],function(a,l){this._rangePropMode[l]==="value"&&(r[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=At(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return I(fA,function(i){var a=this.getReferringComponents(_a(i),W5);if(a.specified){r=!0;var l=new _y;I(a.models,function(u){l.add(u.componentIndex)}),n.set(i,l)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(n,r){var i=this.ecModel,a=!0;if(a){var l=r==="vertical"?"y":"x",u=i.findComponents({mainType:l+"Axis"});f(u,l)}if(a){var u=i.findComponents({mainType:"singleAxis",filter:function(d){return d.get("orient",!0)===r}});f(u,"single")}function f(c,d){var v=c[0];if(v){var m=new _y;if(m.add(v.componentIndex),n.set(d,m),a=!1,d==="x"||d==="y"){var p=v.getReferringComponents("grid",bn).models[0];p&&I(c,function(y){v.componentIndex!==y.componentIndex&&p===y.getReferringComponents("grid",bn).models[0]&&m.add(y.componentIndex)})}}}a&&I(fA,function(c){if(a){var d=i.findComponents({mainType:_a(c),filter:function(m){return m.get("type",!0)==="category"}});if(d[0]){var v=new _y;v.add(d[0].componentIndex),n.set(c,v),a=!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,i=this.get("rangeMode");I([["start","startValue"],["end","endValue"]],function(a,l){var u=n[a[0]]!=null,f=n[a[1]]!=null;u&&!f?r[l]="percent":!u&&f?r[l]="value":i?r[l]=i[l]:u&&(r[l]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,i){n==null&&(n=this.ecModel.getComponent(_a(r),i))},this),n},e.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(i,a){I(i.indexList,function(l){n.call(r,a,l)})})},e.prototype.getAxisProxy=function(n,r){var i=this.getAxisModel(n,r);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(n,r){var i=this._targetAxisInfoMap.get(n);if(i&&i.indexMap[r])return this.ecModel.getComponent(_a(n),r)},e.prototype.setRawRange=function(n){var r=this.option,i=this.settledOption;I([["start","startValue"],["end","endValue"]],function(a){(n[a[0]]!=null||n[a[1]]!=null)&&(r[a[0]]=i[a[0]]=n[a[0]],r[a[1]]=i[a[1]]=n[a[1]])},this),this._updateRangeUse(n)},e.prototype.setCalculatedRange=function(n){var r=this.option;I(["start","startValue","end","endValue"],function(i){r[i]=n[i]})},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 i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var l=i[a],u=this._targetAxisInfoMap.get(l),f=0;f<u.indexList.length;f++){var c=this.getAxisProxy(l,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})(qt);function cA(t){var e={};return I(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var tL=(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,i,a){this.dataZoomModel=n,this.ecModel=r,this.api=i},e.type="dataZoom",e})(un),Vl=I,hA=Gl,UF=(function(){function t(e,n,r,i){this._dimName=e,this._axisIndex=n,this.ecModel=i,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(FF(n)){var r=_a(this._dimName),i=n.getReferringComponents(r,bn).models[0];i&&this._axisIndex===i.componentIndex&&e.push(n)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return kt(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,a=this._dataZoomModel.getRangePropMode(),l=[0,100],u=[],f=[],c;Vl(["start","end"],function(m,p){var y=e[m],S=e[m+"Value"];a[p]==="percent"?(y==null&&(y=l[p]),S=i.parse(Be(y,l,n))):(c=!0,S=S==null?n[p]:i.parse(S),y=Be(S,n,l)),f[p]=S==null||isNaN(S)?n[p]:S,u[p]=y==null||isNaN(y)?l[p]:y}),hA(f),hA(u);var d=this._minMaxSpan;c?v(f,u,n,l,!1):v(u,f,l,n,!0);function v(m,p,y,S,x){var w=x?"Span":"ValueSpan";Av(0,m,y,"all",d["min"+w],d["max"+w]);for(var C=0;C<2;C++)p[C]=Be(m[C],y,S,!0),x&&(p[C]=i.parse(p[C]))}return{valueWindow:f,percentWindow:u}},t.prototype.reset=function(e){if(e===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=jF(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,i=this.getTargetSeriesModels(),a=e.get("filterMode"),l=this._valueWindow;if(a==="none")return;Vl(i,function(f){var c=f.getData(),d=c.mapDimensionsAll(r);if(d.length){if(a==="weakFilter"){var v=c.getStore(),m=St(d,function(p){return c.getDimensionIndex(p)},c);c.filterSelf(function(p){for(var y,S,x,w=0;w<d.length;w++){var C=v.get(m[w],p),M=!isNaN(C),A=C<l[0],R=C>l[1];if(M&&!A&&!R)return!0;M&&(x=!0),A&&(y=!0),R&&(S=!0)}return x&&y&&S})}else Vl(d,function(p){if(a==="empty")f.setData(c=c.map(p,function(S){return u(S)?S:NaN}));else{var y={};y[p]=l,c.selectRange(y)}});Vl(d,function(p){c.setApproximateExtent(l,p)})}});function u(f){return f>=l[0]&&f<=l[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;Vl(["min","max"],function(i){var a=n.get(i+"Span"),l=n.get(i+"ValueSpan");l!=null&&(l=this.getAxisModel().axis.scale.parse(l)),l!=null?a=Be(r[0]+l,r,[0,100],!0):a!=null&&(l=Be(a,[0,100],r,!0)-r[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=l},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var i=p_(r,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;n[0]!==0&&a.setDeterminedMinMax("min",+r[0].toFixed(i)),n[1]!==100&&a.setDeterminedMinMax("max",+r[1].toFixed(i)),a.freeze()}},t})();function jF(t,e,n){var r=[1/0,-1/0];Vl(n,function(l){p6(r,l.getData(),e)});var i=t.getAxisModel(),a=mE(i.axis.scale,i,r).calculate();return[a.min,a.max]}var YF={getTargetSeries:function(t){function e(i){t.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(l,u){var f=t.getComponent(_a(l),u);i(l,u,f,a)})})}e(function(i,a,l,u){l.__dzAxisProxy=null});var n=[];e(function(i,a,l,u){l.__dzAxisProxy||(l.__dzAxisProxy=new UF(i,a,u,t),n.push(l.__dzAxisProxy))});var r=At();return I(n,function(i){I(i.getTargetSeriesModels(),function(a){r.set(a.uid,a)})}),r},overallReset:function(t,e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).reset(n)}),n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).filterData(n,e)})}),t.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),a=r.getDataValueWindow();n.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function qF(t){t.registerAction("dataZoom",function(e,n){var r=GF(n,e);I(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var dA=!1;function eL(t){dA||(dA=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,YF),qF(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function XF(t,e){var n=Hf(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new ge({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 ZF=(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})(qt);function nL(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function rL(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 iL=rL(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),$F=rL(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function aL(t,e){if(!t)return e;e=F_(e,!0);var n=t.indexOf(e);return t=n===-1?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function WF(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?n[e]:null}var QF=aL($F,"transition"),mS=aL(iL,"transform"),KF="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Dt.transform3dSupported?"will-change:transform;":"");function JF(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function tG(t,e,n){if(!gt(n)||n==="inside")return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=mf(e);var a=JF(n),l=Math.max(Math.round(i)*1.5,6),u="",f=mS+":",c;Wt(["left","right"],a)>-1?(u+="top:50%",f+="translateY(-50%) rotate("+(c=a==="left"?-225:-45)+"deg)"):(u+="left:50%",f+="translateX(-50%) rotate("+(c=a==="top"?225:45)+"deg)");var d=c*Math.PI/180,v=l+i,m=v*Math.abs(Math.cos(d))+v*Math.abs(Math.sin(d)),p=Math.round(((m-Math.SQRT2*i)/2+Math.SQRT2*i-(m-v)/2)*100)/100;u+=";"+a+":-"+p+"px";var y=e+" solid "+i+"px;",S=["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",u+";"+f+";","border-bottom:"+y,"border-right:"+y,"background-color:"+r+";"];return'<div style="'+S.join("")+'"></div>'}function eG(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=Dt.transformSupported?","+mS+r:",left"+r+",top"+r),QF+":"+i}function vA(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!Dt.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=Dt.transform3dSupported,l="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+mS+":"+l+";":[["top",0],["left",0],[iL,l]]}function nG(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont());var i=Pt(t.get("lineHeight"),Math.round(n*3/2));n&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),l=t.get("textShadowBlur")||0,u=t.get("textShadowOffsetX")||0,f=t.get("textShadowOffsetY")||0;return a&&l&&e.push("text-shadow:"+u+"px "+f+"px "+l+"px "+a),I(["decoration","align"],function(c){var d=t.get(c);d&&e.push("text-"+c+":"+d)}),e.join(";")}function rG(t,e,n){var r=[],i=t.get("transitionDuration"),a=t.get("backgroundColor"),l=t.get("shadowBlur"),u=t.get("shadowColor"),f=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),d=t.getModel("textStyle"),v=_R(t,"html"),m=f+"px "+c+"px "+l+"px "+u;return r.push("box-shadow:"+m),e&&i&&r.push(eG(i,n)),a&&r.push("background-color:"+a),I(["width","color","radius"],function(p){var y="border-"+p,S=F_(y),x=t.get(S);x!=null&&r.push(y+":"+x+(p==="color"?"":"px"))}),r.push(nG(d)),v!=null&&r.push("padding:"+Hf(v).join("px ")+"px"),r.join(";")+";"}function gA(t,e,n,r,i){var a=e&&e.painter;if(n){var l=a&&a.getViewportRoot();l&&dN(t,l,n,r,i)}else{t[0]=r,t[1]=i;var u=a&&a.getViewportRootOffset();u&&(t[0]+=u.offsetLeft,t[1]+=u.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var iG=(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 i=this._zr=e.getZr(),a=n.appendTo,l=a&&(gt(a)?document.querySelector(a):Ql(a)?a:It(a)&&a(e.getDom()));gA(this._styleCoord,i,l,e.getWidth()/2,e.getHeight()/2),(l||e.getDom()).appendChild(r),this._api=e,this._container=l;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=i.handler,d=i.painter.getViewportRoot();er(d,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=WF(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},t.prototype.show=function(e,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,a=this._styleCoord;r.innerHTML?i.cssText=KF+rG(e,!this._firstShow,this._longHide)+vA(a[0],a[1],!0)+("border-color:"+mf(n)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,n,r,i,a){var l=this.el;if(e==null){l.innerHTML="";return}var u="";if(gt(a)&&r.get("trigger")==="item"&&!nL(r)&&(u=tG(r,i,a)),gt(e))l.innerHTML=e+u;else if(e){l.innerHTML="",ft(e)||(e=[e]);for(var f=0;f<e.length;f++)Ql(e[f])&&e[f].parentNode!==l&&l.appendChild(e[f]);if(u&&l.childNodes.length){var c=document.createElement("div");c.innerHTML=u,l.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(gA(r,this._zr,this._container,e,n),r[0]!=null&&r[1]!=null){var i=this.el.style,a=vA(r[0],r[1]);I(a,function(l){i[l[0]]=l[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(Tt(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})(),aG=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),mA(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,i,a){var l=this;bt(e)&&Sn(""),this.el&&this._zr.remove(this.el);var u=r.getModel("textStyle");this.el=new ze({style:{rich:n.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:u.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:_R(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),I(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){l.el.style[c]=r.get(c)}),I(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){l.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=pA(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 i=this._styleCoord;mA(i,this._zr,e,n),e=i[0],n=i[1];var a=r.style,l=ca(a.borderWidth||0),u=pA(a);r.x=e+l+u.left,r.y=n+l+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(Tt(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function ca(t){return Math.max(0,t)}function pA(t){var e=ca(t.shadowBlur||0),n=ca(t.shadowOffsetX||0),r=ca(t.shadowOffsetY||0);return{left:ca(e-n),right:ca(e+n),top:ca(e-r),bottom:ca(e+r)}}function mA(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var oG=new ge({shape:{x:-1,y:-1,width:2,height:2}}),lG=(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 i=n.getComponent("tooltip"),a=this._renderMode=K5(i.get("renderMode"));this._tooltipContent=a==="richText"?new aG(r):new iG(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(n,r,i){if(!(Dt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=i;var a=this._tooltipContent;a.update(n),a.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?_v(this,"_updatePosition",50,"fixRate"):Od(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");WE("itemTooltip",this._api,Tt(function(i,a,l){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(a,l):i==="leave"&&this._hide(l))},this))},e.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,a=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var l=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&l.manuallyShowTip(n,r,i,{x:l._lastX,y:l._lastY,dataByCoordSys:l._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(n,r,i,a){if(!(a.from===this.uid||Dt.node||!i.getDom())){var l=yA(a,i);this._ticket="";var u=a.dataByCoordSys,f=cG(a,r,i);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:a.position,positionDefault:"bottom"},l)}else if(a.tooltip&&a.x!=null&&a.y!=null){var d=oG;d.x=a.x,d.y=a.y,d.update(),te(d).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:d},l)}else if(u)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:u,tooltipOption:a.tooltipOption},l);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,a))return;var v=QE(a,r),m=v.point[0],p=v.point[1];m!=null&&p!=null&&this._tryShow({offsetX:m,offsetY:p,target:v.el,position:a.position,positionDefault:"bottom"},l)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},l))}},e.prototype.manuallyHideTip=function(n,r,i,a){var l=this._tooltipContent;this._tooltipModel&&l.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(yA(a,i))},e.prototype._manuallyAxisShowTip=function(n,r,i,a){var l=a.seriesIndex,u=a.dataIndex,f=r.getComponent("axisPointer").coordSysAxesInfo;if(!(l==null||u==null||f==null)){var c=r.getSeriesByIndex(l);if(c){var d=c.getData(),v=Lu([d.getItemModel(u),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:l,dataIndex:u,position:a.position}),!0}}},e.prototype._tryShow=function(n,r){var i=n.target,a=this._tooltipModel;if(a){this._lastX=n.offsetX,this._lastY=n.offsetY;var l=n.dataByCoordSys;if(l&&l.length)this._showAxisTooltip(l,n);else if(i){var u=te(i);if(u.ssrType==="legend")return;this._lastDataByCoordSys=null;var f,c;Uu(i,function(d){if(te(d).dataIndex!=null)return f=d,!0;if(te(d).tooltipConfig!=null)return c=d,!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 i=n.get("showDelay");r=Tt(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},e.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,a=this._tooltipModel,l=[r.offsetX,r.offsetY],u=Lu([r.tooltipOption],a),f=this._renderMode,c=[],d=Sf("section",{blocks:[],noHeader:!0}),v=[],m=new qm;I(n,function(C){I(C.dataByAxis,function(M){var A=i.getComponent(M.axisDim+"Axis",M.axisIndex),R=M.value;if(!(!A||R==null)){var D=ZE(R,A.axis,i,M.seriesDataIndices,M.valueLabelOpt),L=Sf("section",{header:D,noHeader:!wr(D),sortBlocks:!0,blocks:[]});d.blocks.push(L),I(M.seriesDataIndices,function(O){var B=i.getSeriesByIndex(O.seriesIndex),H=O.dataIndexInside,P=B.getDataParams(H);if(!(P.dataIndex<0)){P.axisDim=M.axisDim,P.axisIndex=M.axisIndex,P.axisType=M.axisType,P.axisId=M.axisId,P.axisValue=dS(A.axis,{value:R}),P.axisValueLabel=D,P.marker=m.makeTooltipMarker("item",mf(P.color),f);var q=RM(B.formatTooltip(H,!0,null)),$=q.frag;if($){var W=Lu([B],a).get("valueFormatter");L.blocks.push(W?lt({valueFormatter:W},$):$)}q.text&&v.push(q.text),c.push(P)}})}})}),d.blocks.reverse(),v.reverse();var p=r.position,y=u.get("order"),S=NM(d,m,f,y,i.get("useUTC"),u.get("textStyle"));S&&v.unshift(S);var x=f==="richText"?`
85
+
86
+ `:"<br/>",w=v.join(x);this._showOrMove(u,function(){this._updateContentNotChangedOnAxis(n,c)?this._updatePosition(u,p,l[0],l[1],this._tooltipContent,c):this._showTooltipContent(u,w,c,Math.random()+"",l[0],l[1],p,null,m)})},e.prototype._showSeriesItemTooltip=function(n,r,i){var a=this._ecModel,l=te(r),u=l.seriesIndex,f=a.getSeriesByIndex(u),c=l.dataModel||f,d=l.dataIndex,v=l.dataType,m=c.getData(v),p=this._renderMode,y=n.positionDefault,S=Lu([m.getItemModel(d),c,f&&(f.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),x=S.get("trigger");if(!(x!=null&&x!=="item")){var w=c.getDataParams(d,v),C=new qm;w.marker=C.makeTooltipMarker("item",mf(w.color),p);var M=RM(c.formatTooltip(d,!1,v)),A=S.get("order"),R=S.get("valueFormatter"),D=M.frag,L=D?NM(R?lt({valueFormatter:R},D):D,C,p,A,a.get("useUTC"),S.get("textStyle")):M.text,O="item_"+c.name+"_"+d;this._showOrMove(S,function(){this._showTooltipContent(S,L,w,O,n.offsetX,n.offsetY,n.position,n.target,C)}),i({type:"showTip",dataIndexInside:d,dataIndex:m.getRawIndex(d),seriesIndex:u,from:this.uid})}},e.prototype._showComponentItemTooltip=function(n,r,i){var a=this._renderMode==="html",l=te(r),u=l.tooltipConfig,f=u.option||{},c=f.encodeHTMLContent;if(gt(f)){var d=f;f={content:d,formatter:d},c=!0}c&&a&&f.content&&(f=kt(f),f.content=nn(f.content));var v=[f],m=this._ecModel.getComponent(l.componentMainType,l.componentIndex);m&&v.push(m),v.push({formatter:f.content});var p=n.positionDefault,y=Lu(v,this._tooltipModel,p?{position:p}:null),S=y.get("content"),x=Math.random()+"",w=new qm;this._showOrMove(y,function(){var C=kt(y.get("formatterParams")||{});this._showTooltipContent(y,S,C,x,n.offsetX,n.offsetY,n.position,r,w)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,i,a,l,u,f,c,d){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var v=this._tooltipContent;v.setEnterable(n.get("enterable"));var m=n.get("formatter");f=f||n.get("position");var p=r,y=this._getNearestPoint([l,u],i,n.get("trigger"),n.get("borderColor")),S=y.color;if(m)if(gt(m)){var x=n.ecModel.get("useUTC"),w=ft(i)?i[0]:i,C=w&&w.axisType&&w.axisType.indexOf("time")>=0;p=m,C&&(p=kf(w.axisValue,p,x)),p=G_(p,i,!0)}else if(It(m)){var M=Tt(function(A,R){A===this._ticket&&(v.setContent(R,d,n,S,f),this._updatePosition(n,f,l,u,v,i,c))},this);this._ticket=a,p=m(i,a,M)}else p=m;v.setContent(p,d,n,S,f),v.show(n,S),this._updatePosition(n,f,l,u,v,i,c)}},e.prototype._getNearestPoint=function(n,r,i,a){if(i==="axis"||ft(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ft(r))return{color:a||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,i,a,l,u,f){var c=this._api.getWidth(),d=this._api.getHeight();r=r||n.get("position");var v=l.getSize(),m=n.get("align"),p=n.get("verticalAlign"),y=f&&f.getBoundingRect().clone();if(f&&y.applyTransform(f.transform),It(r)&&(r=r([i,a],u,l.el,y,{viewSize:[c,d],contentSize:v.slice()})),ft(r))i=se(r[0],c),a=se(r[1],d);else if(bt(r)){var S=r;S.width=v[0],S.height=v[1];var x=Da(S,{width:c,height:d});i=x.x,a=x.y,m=null,p=null}else if(gt(r)&&f){var w=fG(r,y,v,n.get("borderWidth"));i=w[0],a=w[1]}else{var w=sG(i,a,l,c,d,m?null:20,p?null:20);i=w[0],a=w[1]}if(m&&(i-=_A(m)?v[0]/2:m==="right"?v[0]:0),p&&(a-=_A(p)?v[1]/2:p==="bottom"?v[1]:0),nL(n)){var w=uG(i,a,l,c,d);i=w[0],a=w[1]}l.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,a=this._cbParamsList,l=!!i&&i.length===n.length;return l&&I(i,function(u,f){var c=u.dataByAxis||[],d=n[f]||{},v=d.dataByAxis||[];l=l&&c.length===v.length,l&&I(c,function(m,p){var y=v[p]||{},S=m.seriesDataIndices||[],x=y.seriesDataIndices||[];l=l&&m.value===y.value&&m.axisType===y.axisType&&m.axisId===y.axisId&&S.length===x.length,l&&I(S,function(w,C){var M=x[C];l=l&&w.seriesIndex===M.seriesIndex&&w.dataIndex===M.dataIndex}),a&&I(m.seriesDataIndices,function(w){var C=w.seriesIndex,M=r[C],A=a[C];M&&A&&A.data!==M.data&&(l=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!l},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){Dt.node||!r.getDom()||(Od(this,"_updatePosition"),this._tooltipContent.dispose(),B0("itemTooltip",r))},e.type="tooltip",e})(un);function Lu(t,e,n){var r=e.ecModel,i;n?(i=new he(n,r,r),i=new he(e.option,i,r)):i=e;for(var a=t.length-1;a>=0;a--){var l=t[a];l&&(l instanceof he&&(l=l.get("tooltip",!0)),gt(l)&&(l={formatter:l}),l&&(i=new he(l,i,r)))}return i}function yA(t,e){return t.dispatchAction||Tt(e.dispatchAction,e)}function sG(t,e,n,r,i,a,l){var u=n.getSize(),f=u[0],c=u[1];return a!=null&&(t+f+a+2>r?t-=f+a:t+=a),l!=null&&(e+c+l>i?e-=c+l:e+=l),[t,e]}function uG(t,e,n,r,i){var a=n.getSize(),l=a[0],u=a[1];return t=Math.min(t+l,r)-l,e=Math.min(e+u,i)-u,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function fG(t,e,n,r){var i=n[0],a=n[1],l=Math.ceil(Math.SQRT2*r)+8,u=0,f=0,c=e.width,d=e.height;switch(t){case"inside":u=e.x+c/2-i/2,f=e.y+d/2-a/2;break;case"top":u=e.x+c/2-i/2,f=e.y-a-l;break;case"bottom":u=e.x+c/2-i/2,f=e.y+d+l;break;case"left":u=e.x-i-l,f=e.y+d/2-a/2;break;case"right":u=e.x+c+l,f=e.y+d/2-a/2}return[u,f]}function _A(t){return t==="center"||t==="middle"}function cG(t,e,n){var r=S_(t).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var a=zf(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),l=a.models[0];if(l){var u=n.getViewOfComponentModel(l),f;if(u.group.traverse(function(c){var d=te(c).tooltipConfig;if(d&&d.name===t.name)return f=c,!0}),f)return{componentMainType:i,componentIndex:l.componentIndex,el:f}}}}function Rv(t){Tn(KE),t.registerComponentModel(ZF),t.registerComponentView(lG),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},We),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},We)}var hG=(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})(qt),dG=(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,i){if(this.group.removeAll(),!!n.get("show")){var a=this.group,l=n.getModel("textStyle"),u=n.getModel("subtextStyle"),f=n.get("textAlign"),c=Pt(n.get("textBaseline"),n.get("textVerticalAlign")),d=new ze({style:Yr(l,{text:n.get("text"),fill:l.getTextColor()},{disableBox:!0}),z2:10}),v=d.getBoundingRect(),m=n.get("subtext"),p=new ze({style:Yr(u,{text:m,fill:u.getTextColor(),y:v.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=n.get("link"),S=n.get("sublink"),x=n.get("triggerEvent",!0);d.silent=!y&&!x,p.silent=!S&&!x,y&&d.on("click",function(){cM(y,"_"+n.get("target"))}),S&&p.on("click",function(){cM(S,"_"+n.get("subtarget"))}),te(d).eventData=te(p).eventData=x?{componentType:"title",componentIndex:n.componentIndex}:null,a.add(d),m&&a.add(p);var w=a.getBoundingRect(),C=n.getBoxLayoutParams();C.width=w.width,C.height=w.height;var M=Da(C,{width:i.getWidth(),height:i.getHeight()},n.get("padding"));f||(f=n.get("left")||n.get("right"),f==="middle"&&(f="center"),f==="right"?M.x+=M.width:f==="center"&&(M.x+=M.width/2)),c||(c=n.get("top")||n.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?M.y+=M.height:c==="middle"&&(M.y+=M.height/2),c=c||"top"),a.x=M.x,a.y=M.y,a.markRedraw();var A={align:f,verticalAlign:c};d.setStyle(A),p.setStyle(A),w=a.getBoundingRect();var R=M.margin,D=n.getItemStyle(["color","opacity"]);D.fill=n.get("backgroundColor");var L=new ge({shape:{x:w.x-R[3],y:w.y-R[0],width:w.width+R[1]+R[3],height:w.height+R[0]+R[2],r:n.get("borderRadius")},style:D,subPixelOptimize:!0,silent:!0});a.add(L)}},e.type="title",e})(un);function Ev(t){t.registerComponentModel(hG),t.registerComponentView(dG)}var vG=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"])}},P0=(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,i){this.mergeDefaultAndTheme(n,i),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,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),ft(r)&&I(r,function(a,l){gt(a)&&(a={type:a}),r[l]=jt(a,vG(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i<n.length;i++){var a=n[i].get("name");if(this.isSelected(a)){this.select(a),r=!0;break}}!r&&this.select(n[0].get("name"))}},e.prototype._updateData=function(n){var r=[],i=[];n.eachRawSeries(function(f){var c=f.name;i.push(c);var d;if(f.legendVisualProvider){var v=f.legendVisualProvider,m=v.getAllNames();n.isSeriesFiltered(f)||(i=i.concat(m)),m.length?r=r.concat(m):d=!0}else d=!0;d&&__(f)&&r.push(f.name)}),this._availableNames=i;var a=this.get("data")||r,l=At(),u=St(a,function(f){return(gt(f)||ve(f))&&(f={name:f}),l.get(f.name)?null:(l.set(f.name,!0),new he(f,this,this.ecModel))},this);this._data=Ee(u,function(f){return!!f})},e.prototype.getData=function(){return this._data},e.prototype.select=function(n){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;I(a,function(l){r[l.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;I(n,function(i){r[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;I(n,function(i){var a=i.get("name",!0);r.hasOwnProperty(a)||(r[a]=!0),r[a]=!r[a]})},e.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&Wt(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})(qt),Bl=ce,k0=I,jh=Qe,oL=(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 jh),this.group.add(this._selectorGroup=new jh),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(n,r,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var l=n.get("align"),u=n.get("orient");(!l||l==="auto")&&(l=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(l,n,r,i,f,u,c);var d=n.getBoxLayoutParams(),v={width:i.getWidth(),height:i.getHeight()},m=n.get("padding"),p=Da(d,v,m),y=this.layoutInner(n,l,p,a,f,c),S=Da(Kt({width:y.width,height:y.height},d),v,m);this.group.x=S.x-y.x,this.group.y=S.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=XF(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,i,a,l,u,f){var c=this.getContentGroup(),d=At(),v=r.get("selectedMode"),m=[];i.eachRawSeries(function(p){!p.get("legendHoverLink")&&m.push(p.id)}),k0(r.getData(),function(p,y){var S=p.get("name");if(!this.newlineDisabled&&(S===""||S===`
87
+ `)){var x=new jh;x.newline=!0,c.add(x);return}var w=i.getSeriesByName(S)[0];if(!d.get(S))if(w){var C=w.getData(),M=C.getVisual("legendLineStyle")||{},A=C.getVisual("legendIcon"),R=C.getVisual("style"),D=this._createItem(w,S,y,p,r,n,M,R,A,v,a);D.on("click",Bl(SA,S,null,a,m)).on("mouseover",Bl(H0,w.name,null,a,m)).on("mouseout",Bl(V0,w.name,null,a,m)),i.ssr&&D.eachChild(function(L){var O=te(L);O.seriesIndex=w.seriesIndex,O.dataIndex=y,O.ssrType="legend"}),d.set(S,!0)}else i.eachRawSeries(function(L){if(!d.get(S)&&L.legendVisualProvider){var O=L.legendVisualProvider;if(!O.containName(S))return;var B=O.indexOfName(S),H=O.getItemVisual(B,"style"),P=O.getItemVisual(B,"legendIcon"),q=kn(H.fill);q&&q[3]===0&&(q[3]=.2,H=lt(lt({},H),{fill:Ea(q,"rgba")}));var $=this._createItem(L,S,y,p,r,n,{},H,P,v,a);$.on("click",Bl(SA,null,S,a,m)).on("mouseover",Bl(H0,null,S,a,m)).on("mouseout",Bl(V0,null,S,a,m)),i.ssr&&$.eachChild(function(W){var J=te(W);J.seriesIndex=L.seriesIndex,J.dataIndex=y,J.ssrType="legend"}),d.set(S,!0)}},this)},this),l&&this._createSelector(l,r,a,u,f)},e.prototype._createSelector=function(n,r,i,a,l){var u=this.getSelectorGroup();k0(n,function(c){var d=c.type,v=new ze({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:d==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});u.add(v);var m=r.getModel("selectorLabel"),p=r.getModel(["emphasis","selectorLabel"]);O_(v,{normal:m,emphasis:p},{defaultText:c.title}),df(v)})},e.prototype._createItem=function(n,r,i,a,l,u,f,c,d,v,m){var p=n.visualDrawType,y=l.get("itemWidth"),S=l.get("itemHeight"),x=l.isSelected(r),w=a.get("symbolRotate"),C=a.get("symbolKeepAspect"),M=a.get("icon");d=M||d||"roundRect";var A=gG(d,a,f,c,p,x,m),R=new jh,D=a.getModel("textStyle");if(It(n.getLegendIcon)&&(!M||M==="inherit"))R.add(n.getLegendIcon({itemWidth:y,itemHeight:S,icon:d,iconRotate:w,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:C}));else{var L=M==="inherit"&&n.getData().getVisual("symbol")?w==="inherit"?n.getData().getVisual("symbolRotate"):w:0;R.add(pG({itemWidth:y,itemHeight:S,icon:d,iconRotate:L,itemStyle:A.itemStyle,symbolKeepAspect:C}))}var O=u==="left"?y+5:-5,B=u,H=l.get("formatter"),P=r;gt(H)&&H?P=H.replace("{name}",r??""):It(H)&&(P=H(r));var q=x?D.getTextColor():a.get("inactiveColor");R.add(new ze({style:Yr(D,{text:P,x:O,y:S/2,fill:q,align:B,verticalAlign:"middle"},{inheritColor:q})}));var $=new ge({shape:R.getBoundingRect(),style:{fill:"transparent"}}),W=a.getModel("tooltip");return W.get("show")&&lv({el:$,componentModel:l,itemName:r,itemTooltipOption:W.option}),R.add($),R.eachChild(function(J){J.silent=!0}),$.silent=!v,this.getContentGroup().add(R),df(R),R.__legendDataIndex=i,R},e.prototype.layoutInner=function(n,r,i,a,l,u){var f=this.getContentGroup(),c=this.getSelectorGroup();Ku(n.get("orient"),f,n.get("itemGap"),i.width,i.height);var d=f.getBoundingRect(),v=[-d.x,-d.y];if(c.markRedraw(),f.markRedraw(),l){Ku("horizontal",c,n.get("selectorItemGap",!0));var m=c.getBoundingRect(),p=[-m.x,-m.y],y=n.get("selectorButtonGap",!0),S=n.getOrient().index,x=S===0?"width":"height",w=S===0?"height":"width",C=S===0?"y":"x";u==="end"?p[S]+=d[x]+y:v[S]+=m[x]+y,p[1-S]+=d[w]/2-m[w]/2,c.x=p[0],c.y=p[1],f.x=v[0],f.y=v[1];var M={x:0,y:0};return M[x]=d[x]+y+m[x],M[w]=Math.max(d[w],m[w]),M[C]=Math.min(0,m[C]+p[1-S]),M}else return f.x=v[0],f.y=v[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(un);function gG(t,e,n,r,i,a,l){function u(x,w){x.lineWidth==="auto"&&(x.lineWidth=w.lineWidth>0?2:0),k0(x,function(C,M){x[M]==="inherit"&&(x[M]=w[M])})}var f=e.getModel("itemStyle"),c=f.getItemStyle(),d=t.lastIndexOf("empty",0)===0?"fill":"stroke",v=f.getShallow("decal");c.decal=!v||v==="inherit"?r.decal:w0(v,l),c.fill==="inherit"&&(c.fill=r[i]),c.stroke==="inherit"&&(c.stroke=r[d]),c.opacity==="inherit"&&(c.opacity=(i==="fill"?r:n).opacity),u(c,r);var m=e.getModel("lineStyle"),p=m.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),!a){var y=e.get("inactiveBorderWidth"),S=c[d];c.lineWidth=y==="auto"?r.lineWidth>0&&S?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),p.stroke=m.get("inactiveColor"),p.lineWidth=m.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}function pG(t){var e=t.icon||"roundRect",n=is(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 SA(t,e,n,r){V0(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),H0(t,e,n,r)}function lL(t){for(var e=t.getZr().storage.getDisplayList(),n,r=0,i=e.length;r<i&&!(n=e[r].states.emphasis);)r++;return n&&n.hoverLayer}function H0(t,e,n,r){lL(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function V0(t,e,n,r){lL(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}function mG(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 Ou(t,e,n){var r=t==="allSelect"||t==="inverseSelect",i={},a=[];n.eachComponent({mainType:"legend",query:e},function(u){r?u[t]():u[t](e.name),xA(u,i),a.push(u.componentIndex)});var l={};return n.eachComponent("legend",function(u){I(i,function(f,c){u[f?"select":"unSelect"](c)}),xA(u,l)}),r?{selected:l,legendIndex:a}:{name:e.name,selected:l}}function xA(t,e){var n=e||{};return I(t.getData(),function(r){var i=r.get("name");if(!(i===`
88
+ `||i==="")){var a=t.isSelected(i);Ta(n,i)?n[i]=n[i]&&a:n[i]=a}}),n}function yG(t){t.registerAction("legendToggleSelect","legendselectchanged",ce(Ou,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",ce(Ou,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",ce(Ou,"inverseSelect")),t.registerAction("legendSelect","legendselected",ce(Ou,"select")),t.registerAction("legendUnSelect","legendunselected",ce(Ou,"unSelect"))}function sL(t){t.registerComponentModel(P0),t.registerComponentView(oL),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,mG),t.registerSubTypeDefaulter("legend",function(){return"plain"}),yG(t)}var _G=(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,i){var a=Vf(n);t.prototype.init.call(this,n,r,i),bA(this,n,a)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),bA(this,this.option,n)},e.type="legend.scroll",e.defaultOption=fv(P0.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})(P0);function bA(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,ns(e,n,{type:"box",ignoreSize:!!i})}var wA=Qe,Sy=["width","height"],xy=["x","y"],SG=(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 wA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new wA)},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,i,a,l,u,f){var c=this;t.prototype.renderInner.call(this,n,r,i,a,l,u,f);var d=this._controllerGroup,v=r.get("pageIconSize",!0),m=ft(v)?v:[v,v];y("pagePrev",0);var p=r.getModel("pageTextStyle");d.add(new ze({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1);function y(S,x){var w=S+"DataIndex",C=ov(r.get("pageIcons",!0)[r.getOrient().name][x],{onclick:Tt(c._pageGo,c,w,r,a)},{x:-m[0]/2,y:-m[1]/2,width:m[0],height:m[1]});C.name=S,d.add(C)}},e.prototype.layoutInner=function(n,r,i,a,l,u){var f=this.getSelectorGroup(),c=n.getOrient().index,d=Sy[c],v=xy[c],m=Sy[1-c],p=xy[1-c];l&&Ku("horizontal",f,n.get("selectorItemGap",!0));var y=n.get("selectorButtonGap",!0),S=f.getBoundingRect(),x=[-S.x,-S.y],w=kt(i);l&&(w[d]=i[d]-S[d]-y);var C=this._layoutContentAndController(n,a,w,c,d,m,p,v);if(l){if(u==="end")x[c]+=C[d]+y;else{var M=S[d]+y;x[c]-=M,C[v]-=M}C[d]+=S[d]+y,x[1-c]+=C[p]+C[m]/2-S[m]/2,C[m]=Math.max(C[m],S[m]),C[p]=Math.min(C[p],S[p]+x[1-c]),f.x=x[0],f.y=x[1],f.markRedraw()}return C},e.prototype._layoutContentAndController=function(n,r,i,a,l,u,f,c){var d=this.getContentGroup(),v=this._containerGroup,m=this._controllerGroup;Ku(n.get("orient"),d,n.get("itemGap"),a?i.width:null,a?null:i.height),Ku("horizontal",m,n.get("pageButtonItemGap",!0));var p=d.getBoundingRect(),y=m.getBoundingRect(),S=this._showController=p[l]>i[l],x=[-p.x,-p.y];r||(x[a]=d[c]);var w=[0,0],C=[-y.x,-y.y],M=Pt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(S){var A=n.get("pageButtonPosition",!0);A==="end"?C[a]+=i[l]-y[l]:w[a]+=y[l]+M}C[1-a]+=p[u]/2-y[u]/2,d.setPosition(x),v.setPosition(w),m.setPosition(C);var R={x:0,y:0};if(R[l]=S?i[l]:p[l],R[u]=Math.max(p[u],y[u]),R[f]=Math.min(0,y[f]+C[1-a]),v.__rectSize=i[l],S){var D={x:0,y:0};D[l]=Math.max(i[l]-y[l]-M,0),D[u]=R[u],v.setClipPath(new ge({shape:D})),v.__rectSize=D[l]}else m.eachChild(function(O){O.attr({invisible:!0,silent:!0})});var L=this._getPageInfo(n);return L.pageIndex!=null&&fr(d,{x:L.contentPosition[0],y:L.contentPosition[1]},S?n:null),this._updatePageInfoView(n,L),R},e.prototype._pageGo=function(n,r,i){var a=this._getPageInfo(r)[n];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:r.id})},e.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;I(["pagePrev","pageNext"],function(d){var v=d+"DataIndex",m=r[v]!=null,p=i.childOfName(d);p&&(p.setStyle("fill",m?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),p.cursor=m?"pointer":"default")});var a=i.childOfName("pageText"),l=n.get("pageFormatter"),u=r.pageIndex,f=u!=null?u+1:0,c=r.pageCount;a&&l&&a.setStyle("text",gt(l)?l.replace("{current}",f==null?"":f+"").replace("{total}",c==null?"":c+""):l({current:f,total:c}))},e.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,l=n.getOrient().index,u=Sy[l],f=xy[l],c=this._findTargetItemIndex(r),d=i.children(),v=d[c],m=d.length,p=m?1:0,y={contentPosition:[i.x,i.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return y;var S=A(v);y.contentPosition[l]=-S.s;for(var x=c+1,w=S,C=S,M=null;x<=m;++x)M=A(d[x]),(!M&&C.e>w.s+a||M&&!R(M,w.s))&&(C.i>w.i?w=C:w=M,w&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=w.i),++y.pageCount)),C=M;for(var x=c-1,w=S,C=S,M=null;x>=-1;--x)M=A(d[x]),(!M||!R(C,M.s))&&w.i<C.i&&(C=w,y.pagePrevDataIndex==null&&(y.pagePrevDataIndex=w.i),++y.pageCount,++y.pageIndex),w=M;return y;function A(D){if(D){var L=D.getBoundingRect(),O=L[f]+D[f];return{s:O,e:O+L[u],i:D.__legendDataIndex}}}function R(D,L){return D.e>=L&&D.s<=L+a}},e.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),a;return i.eachChild(function(l,u){var f=l.__legendDataIndex;a==null&&f!=null&&(a=u),f===n&&(r=u)}),r??a},e.type="legend.scroll",e})(oL);function xG(t){t.registerAction("legendScroll","legendscroll",function(e,n){var r=e.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(r)})})}function bG(t){Tn(sL),t.registerComponentModel(_G),t.registerComponentView(SG),xG(t)}function uL(t){Tn(sL),Tn(bG)}var wG=(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=fv(Gd.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Gd),yS=xe();function CG(t,e,n){yS(t).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}function MG(t,e){for(var n=yS(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],l=n.get(a),u=l.dataZoomInfoMap;if(u){var f=e.uid,c=u.get(f);c&&(u.removeKey(f),u.keys().length||fL(n,l))}}}function fL(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function TG(t,e){var n={model:e,containsPoint:ce(DG,e),dispatchAction:ce(AG,t),dataZoomInfoMap:null,controller:null},r=n.controller=new gF(t.getZr());return I(["pan","zoom","scrollMove"],function(i){r.on(i,function(a){var l=[];n.dataZoomInfoMap.each(function(u){if(a.isAvailableBehavior(u.model.option)){var f=(u.getRange||{})[i],c=f&&f(u.dzReferCoordSysInfo,n.model.mainType,n.controller,a);!u.model.get("disabled",!0)&&c&&l.push({dataZoomId:u.model.id,start:c[0],end:c[1]})}}),l.length&&n.dispatchAction(l)})}),n}function AG(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function DG(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function RG(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each(function(a){var l=a.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;r[n+u]>r[n+e]&&(e=u),i=i&&l.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function EG(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,n){var r=yS(n),i=r.coordSysRecordMap||(r.coordSysRecordMap=At());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var l=JE(a);I(l.infoList,function(u){var f=u.model.uid,c=i.get(f)||i.set(f,TG(n,u.model)),d=c.dataZoomInfoMap||(c.dataZoomInfoMap=At());d.set(a.uid,{dzReferCoordSysInfo:u,model:a,getRange:null})})}),i.each(function(a){var l=a.controller,u,f=a.dataZoomInfoMap;if(f){var c=f.keys()[0];c!=null&&(u=f.get(c))}if(!u){fL(i,a);return}var d=RG(f);l.enable(d.controlType,d.opt),l.setPointerChecker(a.containsPoint),_v(a,"dispatchAction",u.model.get("throttle",!0),"fixRate")})})}var LG=(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,i){if(t.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),CG(i,n,{pan:Tt(by.pan,this),zoom:Tt(by.zoom,this),scrollMove:Tt(by.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){MG(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(tL),by={zoom:function(t,e,n,r){var i=this.range,a=i.slice(),l=t.axisModels[0];if(l){var u=wy[e](null,[r.originX,r.originY],l,n,t),f=(u.signal>0?u.pixelStart+u.pixelLength-u.pixel:u.pixel-u.pixelStart)/u.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/r.scale,0);a[0]=(a[0]-f)*c+f,a[1]=(a[1]-f)*c+f;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Av(0,a,[0,100],0,d.minSpan,d.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:CA(function(t,e,n,r,i,a){var l=wy[r]([a.oldX,a.oldY],[a.newX,a.newY],e,i,n);return l.signal*(t[1]-t[0])*l.pixel/l.pixelLength}),scrollMove:CA(function(t,e,n,r,i,a){var l=wy[r]([0,0],[a.scrollDelta,a.scrollDelta],e,i,n);return l.signal*(t[1]-t[0])*a.scrollDelta})};function CA(t){return function(e,n,r,i){var a=this.range,l=a.slice(),u=e.axisModels[0];if(u){var f=t(l,u,e,n,r,i);if(Av(f,l,[0,100],"all"),this.range=l,a[0]!==l[0]||a[1]!==l[1])return l}}}var wy={grid:function(t,e,n,r,i){var a=n.axis,l={},u=i.model.coordinateSystem.getRect();return t=t||[0,0],a.dim==="x"?(l.pixel=e[0]-t[0],l.pixelLength=u.width,l.pixelStart=u.x,l.signal=a.inverse?1:-1):(l.pixel=e[1]-t[1],l.pixelLength=u.height,l.pixelStart=u.y,l.signal=a.inverse?-1:1),l},polar:function(t,e,n,r,i){var a=n.axis,l={},u=i.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"?(l.pixel=e[0]-t[0],l.pixelLength=f[1]-f[0],l.pixelStart=f[0],l.signal=a.inverse?1:-1):(l.pixel=e[1]-t[1],l.pixelLength=c[1]-c[0],l.pixelStart=c[0],l.signal=a.inverse?-1:1),l},singleAxis:function(t,e,n,r,i){var a=n.axis,l=i.model.coordinateSystem.getRect(),u={};return t=t||[0,0],a.orient==="horizontal"?(u.pixel=e[0]-t[0],u.pixelLength=l.width,u.pixelStart=l.x,u.signal=a.inverse?1:-1):(u.pixel=e[1]-t[1],u.pixelLength=l.height,u.pixelStart=l.y,u.signal=a.inverse?-1:1),u}};function OG(t){eL(t),t.registerComponentModel(wG),t.registerComponentView(LG),EG(t)}var zG=(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=fv(Gd.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})(Gd),zu=ge,MA=7,NG=1,Cy=30,IG=7,Nu="horizontal",TA="vertical",BG=5,PG=["line","bar","candlestick","scatter"],kG={easing:"cubicOut",duration:100,delay:0},HG=(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=Tt(this._onBrush,this),this._onBrushEnd=Tt(this._onBrushEnd,this)},e.prototype.render=function(n,r,i,a){if(t.prototype.render.apply(this,arguments),_v(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}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Od(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 Qe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,i=n.get("brushSelect"),a=i?IG:0,l=this._findCoordRect(),u={width:r.getWidth(),height:r.getHeight()},f=this._orient===Nu?{right:u.width-l.x-l.width,top:u.height-Cy-MA-a,width:l.width,height:Cy}:{right:MA,top:l.y,width:Cy,height:l.height},c=Vf(n.option);I(["right","top","width","height"],function(v){c[v]==="ph"&&(c[v]=f[v])});var d=Da(c,u);this._location={x:d.x,y:d.y},this._size=[d.width,d.height],this._orient===TA&&this._size.reverse()},e.prototype._positionGroup=function(){var n=this.group,r=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),l=a&&a.get("inverse"),u=this._displayables.sliderGroup,f=(this._dataShadowInfo||{}).otherAxisInverse;u.attr(i===Nu&&!l?{scaleY:f?1:-1,scaleX:1}:i===Nu&&l?{scaleY:f?1:-1,scaleX:-1}:i===TA&&!l?{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,i=this._displayables.sliderGroup,a=n.get("brushSelect");i.add(new zu({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var l=new zu({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Tt(this._onClickPanel,this)}),u=this.api.getZr();a?(l.on("mousedown",this._onBrushStart,this),l.cursor="crosshair",u.on("mousemove",this._onBrush),u.on("mouseup",this._onBrushEnd)):(u.off("mousemove",this._onBrush),u.off("mouseup",this._onBrushEnd)),i.add(l)},e.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,i=this._shadowSize||[],a=n.series,l=a.getRawData(),u=a.getShadowDim&&a.getShadowDim(),f=u&&l.getDimensionInfo(u)?a.getShadowDim():n.otherDim;if(f==null)return;var c=this._shadowPolygonPts,d=this._shadowPolylinePts;if(l!==this._shadowData||f!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var v=l.getDataExtent(f),m=(v[1]-v[0])*.3;v=[v[0]-m,v[1]+m];var p=[0,r[1]],y=[0,r[0]],S=[[r[0],0],[0,0]],x=[],w=y[1]/(l.count()-1),C=0,M=Math.round(l.count()/r[0]),A;l.each([f],function(B,H){if(M>0&&H%M){C+=w;return}var P=B==null||isNaN(B)||B==="",q=P?0:Be(B,v,p,!0);P&&!A&&H?(S.push([S[S.length-1][0],0]),x.push([x[x.length-1][0],0])):!P&&A&&(S.push([C,0]),x.push([C,0])),S.push([C,q]),x.push([C,q]),C+=w,A=P}),c=this._shadowPolygonPts=S,d=this._shadowPolylinePts=x}this._shadowData=l,this._shadowDim=f,this._shadowSize=[r[0],r[1]];var R=this.dataZoomModel;function D(B){var H=R.getModel(B?"selectedDataBackground":"dataBackground"),P=new Qe,q=new Bf({shape:{points:c},segmentIgnoreThreshold:1,style:H.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),$=new Io({shape:{points:d},segmentIgnoreThreshold:1,style:H.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(q),P.add($),P}for(var L=0;L<3;L++){var O=D(L===1);this._displayables.sliderGroup.add(O),this._displayables.dataShadowSegs.push(O)}},e.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var i,a=this.ecModel;return n.eachTargetAxis(function(l,u){var f=n.getAxisProxy(l,u).getTargetSeriesModels();I(f,function(c){if(!i&&!(r!==!0&&Wt(PG,c.get("type"))<0)){var d=a.getComponent(_a(l),u).axis,v=VG(l),m,p=c.coordinateSystem;v!=null&&p.getOtherAxis&&(m=p.getOtherAxis(d).inverse),v=c.getData().mapDimension(v),i={thisAxis:d,series:c,thisDim:l,otherDim:v,otherAxisInverse:m}}},this)},this),i}},e.prototype._renderHandle=function(){var n=this.group,r=this._displayables,i=r.handles=[null,null],a=r.handleLabels=[null,null],l=this._displayables.sliderGroup,u=this._size,f=this.dataZoomModel,c=this.api,d=f.get("borderRadius")||0,v=f.get("brushSelect"),m=r.filler=new zu({silent:v,style:{fill:f.get("fillerColor")},textConfig:{position:"inside"}});l.add(m),l.add(new zu({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:u[0],height:u[1],r:d},style:{stroke:f.get("dataBackgroundColor")||f.get("borderColor"),lineWidth:NG,fill:"rgba(0,0,0,0)"}})),I([0,1],function(M){var A=f.get("handleIcon");!Nd[A]&&A.indexOf("path://")<0&&A.indexOf("image://")<0&&(A="path://"+A);var R=is(A,-1,0,2,2,null,!0);R.attr({cursor:AA(this._orient),draggable:!0,drift:Tt(this._onDragMove,this,M),ondragend:Tt(this._onDragEnd,this),onmouseover:Tt(this._showDataInfo,this,!0),onmouseout:Tt(this._showDataInfo,this,!1),z2:5});var D=R.getBoundingRect(),L=f.get("handleSize");this._handleHeight=se(L,this._size[1]),this._handleWidth=D.width/D.height*this._handleHeight,R.setStyle(f.getModel("handleStyle").getItemStyle()),R.style.strokeNoScale=!0,R.rectHover=!0,R.ensureState("emphasis").style=f.getModel(["emphasis","handleStyle"]).getItemStyle(),df(R);var O=f.get("handleColor");O!=null&&(R.style.fill=O),l.add(i[M]=R);var B=f.getModel("textStyle"),H=f.get("handleLabel")||{},P=H.show||!1;n.add(a[M]=new ze({silent:!0,invisible:!P,style:Yr(B,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:B.getTextColor(),font:B.getFont()}),z2:10}))},this);var p=m;if(v){var y=se(f.get("moveHandleSize"),u[1]),S=r.moveHandle=new ge({style:f.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:u[1]-.5,height:y}}),x=y*.8,w=r.moveHandleIcon=is(f.get("moveHandleIcon"),-x/2,-x/2,x,x,"#fff",!0);w.silent=!0,w.y=u[1]+y/2-.5,S.ensureState("emphasis").style=f.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var C=Math.min(u[1]/2,Math.max(y,10));p=r.moveZone=new ge({invisible:!0,shape:{y:u[1]-C,height:y+C}}),p.on("mouseover",function(){c.enterEmphasis(S)}).on("mouseout",function(){c.leaveEmphasis(S)}),l.add(S),l.add(w),l.add(p)}p.attr({draggable:!0,cursor:AA(this._orient),drift:Tt(this._onDragMove,this,"all"),ondragstart:Tt(this._showDataInfo,this,!0),ondragend:Tt(this._onDragEnd,this),onmouseover:Tt(this._showDataInfo,this,!0),onmouseout:Tt(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[Be(n[0],[0,100],r,!0),Be(n[1],[0,100],r,!0)]},e.prototype._updateInterval=function(n,r){var i=this.dataZoomModel,a=this._handleEnds,l=this._getViewExtent(),u=i.findRepresentativeAxisProxy().getMinMaxSpan(),f=[0,100];Av(r,a,l,i.get("zoomLock")?"all":n,u.minSpan!=null?Be(u.minSpan,f,l,!0):null,u.maxSpan!=null?Be(u.maxSpan,f,l,!0):null);var c=this._range,d=this._range=Gl([Be(a[0],l,f,!0),Be(a[1],l,f,!0)]);return!c||c[0]!==d[0]||c[1]!==d[1]},e.prototype._updateView=function(n){var r=this._displayables,i=this._handleEnds,a=Gl(i.slice()),l=this._size;I([0,1],function(p){var y=r.handles[p],S=this._handleHeight;y.attr({scaleX:S/2,scaleY:S/2,x:i[p]+(p?-1:1),y:l[1]/2-S/2})},this),r.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:l[1]});var u={x:a[0],width:a[1]-a[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,a[0],a[1],l[0]],d=0;d<f.length;d++){var v=f[d],m=v.getClipPath();m||(m=new ge,v.setClipPath(m)),m.setShape({x:c[d],y:0,width:c[d+1]-c[d],height:l[1]})}this._updateDataInfo(n)},e.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,i=this._displayables,a=i.handleLabels,l=this._orient,u=["",""];if(r.get("showDetail")){var f=r.findRepresentativeAxisProxy();if(f){var c=f.getAxisModel().axis,d=this._range,v=n?f.calculateDataWindow({start:d[0],end:d[1]}).valueWindow:f.getDataValueWindow();u=[this._formatLabel(v[0],c),this._formatLabel(v[1],c)]}}var m=Gl(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(y){var S=E_(i.handles[y].parent,this.group),x=LD(y===0?"right":"left",S),w=this._handleWidth/2+BG,C=gf([m[y]+(y===0?-w:w),this._size[1]/2],S);a[y].setStyle({x:C[0],y:C[1],verticalAlign:l===Nu?"middle":x,align:l===Nu?x:"center",text:u[y]})}},e.prototype._formatLabel=function(n,r){var i=this.dataZoomModel,a=i.get("labelFormatter"),l=i.get("labelPrecision");(l==null||l==="auto")&&(l=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(l,20));return It(a)?a(n,u):gt(a)?a.replace("{value}",u):u},e.prototype._showDataInfo=function(n){var r=this.dataZoomModel.get("handleLabel")||{},i=r.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),l=a.get("show")||!1,u=n||this._dragging?l:i,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,i,a){this._dragging=!0,Jl(a.event);var l=this._displayables.sliderGroup.getLocalTransform(),u=gf([r,i],l,!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,i=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(i[0]<0||i[0]>r[0]||i[1]<0||i[1]>r[1])){var a=this._handleEnds,l=(a[0]+a[1])/2,u=this._updateInterval("all",i[0]-l);this._updateView(),u&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(n){var r=n.offsetX,i=n.offsetY;this._brushStart=new Rt(r,i),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 i=r.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var l=this._getViewExtent(),u=[0,100];this._range=Gl([Be(i.x,l,u,!0),Be(i.x+i.width,l,u,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(n){this._brushing&&(Jl(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},e.prototype._updateBrushRect=function(n,r){var i=this._displayables,a=this.dataZoomModel,l=i.brushRect;l||(l=i.brushRect=new zu({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(l)),l.attr("ignore",!1);var u=this._brushStart,f=this._displayables.sliderGroup,c=f.transformCoordToLocal(n,r),d=f.transformCoordToLocal(u.x,u.y),v=this._size;c[0]=Math.max(Math.min(v[0],c[0]),0),l.setShape({x:d[0],y:0,width:c[0]-d[0],height:v[1]})},e.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?kG:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var n,r=JE(this.dataZoomModel).infoList;if(!n&&r.length){var i=r[0].model.coordinateSystem;n=i.getRect&&i.getRect()}if(!n){var a=this.api.getWidth(),l=this.api.getHeight();n={x:a*.2,y:l*.2,width:a*.6,height:l*.6}}return n},e.type="dataZoom.slider",e})(tL);function VG(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function AA(t){return t==="vertical"?"ns-resize":"ew-resize"}function FG(t){t.registerComponentModel(zG),t.registerComponentView(HG),eL(t)}function GG(t){Tn(OG),Tn(FG)}function DA(t,e,n){var r=Di.createCanvas(),i=e.getWidth(),a=e.getHeight(),l=r.style;return l&&(l.position="absolute",l.left="0",l.top="0",l.width=i+"px",l.height=a+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=a*n,r}var My=(function(t){ut(e,t);function e(n,r,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var l;i=i||bd,typeof n=="string"?l=DA(n,r,i):bt(n)&&(l=n,n=l.id),a.id=n,a.dom=l;var u=l.style;return u&&(l_(l),l.onselectstart=function(){return!1},u.padding="0",u.margin="0",u.borderWidth="0"),a.painter=r,a.dpr=i,a}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=DA("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,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var l=[],u=this.maxRepaintRectCount,f=!1,c=new Xt(0,0,0,0);function d(C){if(!(!C.isFinite()||C.isZero()))if(l.length===0){var M=new Xt(0,0,0,0);M.copy(C),l.push(M)}else{for(var A=!1,R=1/0,D=0,L=0;L<l.length;++L){var O=l[L];if(O.intersect(C)){var B=new Xt(0,0,0,0);B.copy(O),B.union(C),l[L]=B,A=!0;break}else if(f){c.copy(C),c.union(O);var H=C.width*C.height,P=O.width*O.height,q=c.width*c.height,$=q-H-P;$<R&&(R=$,D=L)}}if(f&&(l[D].union(C),A=!0),!A){var M=new Xt(0,0,0,0);M.copy(C),l.push(M)}f||(f=l.length>=u)}}for(var v=this.__startIndex;v<this.__endIndex;++v){var m=n[v];if(m){var p=m.shouldBePainted(i,a,!0,!0),y=m.__isRendered&&(m.__dirty&Pn||!p)?m.getPrevPaintRect():null;y&&d(y);var S=p&&(m.__dirty&Pn||!m.__isRendered)?m.getPaintRect():null;S&&d(S)}}for(var v=this.__prevStartIndex;v<this.__prevEndIndex;++v){var m=r[v],p=m&&m.shouldBePainted(i,a,!0,!0);if(m&&(!p||!m.__zr)&&m.__isRendered){var y=m.getPrevPaintRect();y&&d(y)}}var x;do{x=!1;for(var v=0;v<l.length;){if(l[v].isZero()){l.splice(v,1);continue}for(var w=v+1;w<l.length;)l[v].intersect(l[w])?(x=!0,l[v].union(l[w]),l.splice(w,1)):w++;v++}}while(x);return this._paintRects=l,l},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(n,r){var i=this.dpr,a=this.dom,l=a.style,u=this.domBack;l&&(l.width=n+"px",l.height=r+"px"),a.width=n*i,a.height=r*i,u&&(u.width=n*i,u.height=r*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(n,r,i){var a=this.dom,l=this.ctx,u=a.width,f=a.height;r=r||this.clearColor;var c=this.motionBlur&&!n,d=this.lastFrameAlpha,v=this.dpr,m=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,u/v,f/v));var p=this.domBack;function y(S,x,w,C){if(l.clearRect(S,x,w,C),r&&r!=="transparent"){var M=void 0;if(Tf(r)){var A=r.global||r.__width===w&&r.__height===C;M=A&&r.__canvasGradient||x0(l,r,{x:0,y:0,width:w,height:C}),r.__canvasGradient=M,r.__width=w,r.__height=C}else e2(r)&&(r.scaleX=r.scaleX||v,r.scaleY=r.scaleY||v,M=b0(l,r,{dirty:function(){m.setUnpainted(),m.painter.refresh()}}));l.save(),l.fillStyle=M||r,l.fillRect(S,x,w,C),l.restore()}c&&(l.save(),l.globalAlpha=d,l.drawImage(p,S,x,w,C),l.restore())}!i||c?y(0,0,u,f):i.length&&I(i,function(S){y(S.x*v,S.y*v,S.width*v,S.height*v)})},e})(Tr),RA=1e5,_o=314159,Yh=.01,UG=.001;function jG(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function YG(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 qG=(function(){function t(e,n,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=lt({},r||{}),this.dpr=r.devicePixelRatio||bd,this._singleCanvas=a,this.root=e;var l=e.style;l&&(l_(e),e.innerHTML=""),this.storage=n;var u=this._zlevelList;this._prevDisplayList=[];var f=this._layers;if(a){var d=e,v=d.width,m=d.height;r.width!=null&&(v=r.width),r.height!=null&&(m=r.height),this.dpr=r.devicePixelRatio||1,d.width=v*this.dpr,d.height=m*this.dpr,this._width=v,this._height=m;var p=new My(d,this,this.dpr);p.__builtin__=!0,p.initContext(),f[_o]=p,p.zlevel=_o,u.push(_o),this._domRoot=e}else{this._width=Oh(e,0,r),this._height=Oh(e,1,r);var c=this._domRoot=YG(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,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,e,this._redrawId);for(var a=0;a<i.length;a++){var l=i[a],u=this._layers[l];if(!u.__builtin__&&u.refresh){var f=a===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 i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,l=0;l<n;l++){var u=e[l];u.__inHover&&(r||(r=this._hoverlayer=this.getLayer(RA)),a||(a=r.ctx,a.save()),Co(a,u,i,l===n-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(RA)},t.prototype.paintOne=function(e,n){W_(e,n)},t.prototype._paintList=function(e,n,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,n,r),l=a.finished,u=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),u&&this._paintHoverList(e),l)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var f=this;yd(function(){f._paintList(e,n,r,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(_o).ctx,n=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,n,r),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,n,r)})},t.prototype._doPaintList=function(e,n,r){for(var i=this,a=[],l=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)&&a.push(c)}for(var d=!0,v=!1,m=function(S){var x=a[S],w=x.ctx,C=l&&x.createRepaintRects(e,n,p._width,p._height),M=r?x.__startIndex:x.__drawIndex,A=!r&&x.incremental&&Date.now,R=A&&Date.now(),D=x.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(x.__startIndex===x.__endIndex)x.clear(!1,D,C);else if(M===x.__startIndex){var L=e[M];(!L.incremental||!L.notClear||r)&&x.clear(!1,D,C)}M===-1&&(console.error("For some unknown reason. drawIndex is -1"),M=x.__startIndex);var O,B=function($){var W={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(O=M;O<x.__endIndex;O++){var J=e[O];if(J.__inHover&&(v=!0),i._doPaintEl(J,x,l,$,W,O===x.__endIndex-1),A){var V=Date.now()-R;if(V>15)break}}W.prevElClipPaths&&w.restore()};if(C)if(C.length===0)O=x.__endIndex;else for(var H=p.dpr,P=0;P<C.length;++P){var q=C[P];w.save(),w.beginPath(),w.rect(q.x*H,q.y*H,q.width*H,q.height*H),w.clip(),B(q),w.restore()}else w.save(),B(),w.restore();x.__drawIndex=O,x.__drawIndex<x.__endIndex&&(d=!1)},p=this,y=0;y<a.length;y++)m(y);return Dt.wxa&&I(this._layers,function(S){S&&S.ctx&&S.ctx.draw&&S.ctx.draw()}),{finished:d,needsRefreshHover:v}},t.prototype._doPaintEl=function(e,n,r,i,a,l){var u=n.ctx;if(r){var f=e.getPaintRect();(!i||f&&f.intersect(i))&&(Co(u,e,a,l),e.setPrevPaintRect(f))}else Co(u,e,a,l)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=_o);var r=this._layers[e];return r||(r=new My("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?jt(r,this._layerConfig[e],!0):this._layerConfig[e-Yh]&&jt(r,this._layerConfig[e-Yh],!0),n&&(r.virtual=n),this.insertLayer(e,r),r.initContext()),r},t.prototype.insertLayer=function(e,n){var r=this._layers,i=this._zlevelList,a=i.length,l=this._domRoot,u=null,f=-1;if(!r[e]&&jG(n)){if(a>0&&e>i[0]){for(f=0;f<a-1&&!(i[f]<e&&i[f+1]>e);f++);u=r[i[f]]}if(i.splice(f+1,0,e),r[e]=n,!n.virtual)if(u){var c=u.dom;c.nextSibling?l.insertBefore(n.dom,c.nextSibling):l.appendChild(n.dom)}else l.firstChild?l.insertBefore(n.dom,l.firstChild):l.appendChild(n.dom);n.painter||(n.painter=this)}},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i];e.call(n,this._layers[a],a)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i],l=this._layers[a];l.__builtin__&&e.call(n,l,a)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i],l=this._layers[a];l.__builtin__||e.call(n,l,a)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(v,m){v.__dirty=v.__used=!1});function n(v){a&&(a.__endIndex!==v&&(a.__dirty=!0),a.__endIndex=v)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,l=0,u,f;for(f=0;f<e.length;f++){var i=e[f],c=i.zlevel,d=void 0;u!==c&&(u=c,l=0),i.incremental?(d=this.getLayer(c+UG,this._needsManuallyCompositing),d.incremental=!0,l=1):d=this.getLayer(c+(l>0?Yh:0),this._needsManuallyCompositing),d.__builtin__||Xd("ZLevel "+c+" has been used by unkown layer "+d.id),d!==a&&(d.__used=!0,d.__startIndex!==f&&(d.__dirty=!0),d.__startIndex=f,d.incremental?d.__drawIndex=-1:d.__drawIndex=f,n(f),a=d),i.__dirty&Pn&&!i.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=f))}n(f),this.eachBuiltinLayer(function(v,m){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__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,I(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?jt(r[e],n,!0):r[e]=n;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===e||a===e+Yh){var l=this._layers[a];jt(l,r[e],!0)}}}},t.prototype.delLayer=function(e){var n=this._layers,r=this._zlevelList,i=n[e];i&&(i.dom.parentNode.removeChild(i.dom),delete n[e],r.splice(Wt(r,e),1))},t.prototype.resize=function(e,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,a=this.root;if(e!=null&&(i.width=e),n!=null&&(i.height=n),e=Oh(a,0,i),n=Oh(a,1,i),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var l in this._layers)this._layers.hasOwnProperty(l)&&this._layers[l].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(_o).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[_o].dom;var n=new My("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 i=n.dom.width,a=n.dom.height;this.eachLayer(function(v){v.__builtin__?r.drawImage(v.dom,0,0,i,a):v.renderToCanvas&&(r.save(),v.renderToCanvas(r),r.restore())})}else for(var l={inHover:!1,viewWidth:this._width,viewHeight:this._height},u=this.storage.getDisplayList(!0),f=0,c=u.length;f<c;f++){var d=u[f];Co(r,d,l,f===c-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function Lv(t){t.registerPainter("canvas",qG)}function cL(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 EA=["#6366f1","#f59e0b","#10b981","#ef4444","#8b5cf6","#ec4899","#06b6d4","#f97316","#14b8a6","#a855f7","#84cc16","#e879f9","#22d3ee","#fb923c","#34d399","#c084fc","#fbbf24","#2dd4bf","#f472b6","#a3e635"],LA={"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"},XG={review:"#06b6d4",exploration:"#f97316",planning:"#eab308",memory:"#ec4899",generic:"#64748b"},ZG={low:"#10b981",medium:"#06b6d4",high:"#f59e0b",xhigh:"#a855f7","x-high":"#a855f7",unknown:"#64748b"};function $G(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 Ud(t){const e=cL(t)%EA.length;return EA[e]}function WG(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,i=parseInt(e[3],16)/255;return .2126*n+.7152*r+.0722*i>.5?"#1f2937":"#ffffff"}function QG(t,e,n){e/=100,n/=100;const r=(1-Math.abs(2*n-1))*e,i=r*(1-Math.abs(t/60%2-1)),a=n-r/2;let l=0,u=0,f=0;t<60?(l=r,u=i):t<120?(l=i,u=r):t<180?(u=r,f=i):t<240?(u=i,f=r):t<300?(l=i,f=r):(l=r,f=i);const c=d=>Math.round((d+a)*255).toString(16).padStart(2,"0");return"#"+c(l)+c(u)+c(f)}function Ei(t){if(LA[t])return LA[t];const e=cL(t)%300;return QG(e,72,62)}function Mf(t){return XG[t]||"#64748b"}function qh(t){const e=$G(t);return ZG[e]??"#64748b"}const us={animationDuration:750,animationDurationUpdate:220,animationEasing:"cubicOut",animationEasingUpdate:"cubicOut"},Lo={show:!0,animationDuration:250,animationDurationUpdate:220,animationDelay:250,animationDelayUpdate:180,animationEasing:"cubicOut",animationEasingUpdate:"cubicOut"},jl={...us,animationDurationUpdate:200,animationDelayUpdate:0,animationEasingUpdate:"cubicOut"},KG={animationDuration:700,animationDurationUpdate:220,animationDelay:250,animationDelayUpdate:140,animationEasing:"cubicOut",animationEasingUpdate:"cubicOut"},JG={...Lo,animationDelay:950,animationDelayUpdate:360};Tn([Mv,Tv,Dv,Rv,Ev,uL,Lv]);function Ci(t){return t==null?"—":t>=1e9?(t/1e9).toFixed(1)+"B":t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":t.toLocaleString()}function F0(t){return t==null?"—":t>=1e3?"$"+(t/1e3).toFixed(1)+"K":"$"+t.toFixed(2)}function G0(t){return t?(t/3600).toFixed(1)+"h":"0h"}function t8(t,e=16){if(!t)return"";const n=String(t).split(/([-/])/).filter(Boolean),r=[""];for(const i of n){const a=r[r.length-1];if(!a.length||(a+i).length<=e){r[r.length-1]=a+i;continue}if(r.length===2){r[1]+=i;break}r.push(i)}return r.join(`
89
+ `)}function e8(t,e){return e!=null&&e.length?t==="d7"?e.slice(-7):t==="d30"?e.slice(-30):e:[]}function n8({daily:t,range:e}){const n=Array.isArray(t==null?void 0:t.data)?t.data:Array.isArray(t)?t:[],r=mt.useMemo(()=>{if(!n.length)return{dates:[],series:[]};const a=n.map(d=>d.date),l=e8(e,a),u=new Set;for(const d of n)for(const v of Object.keys(d.by_model||{}))u.add(v);const c=[...u].map(d=>({name:d,type:"bar",stack:"total",data:l.map(v=>{var y;const m=n.find(S=>S.date===v),p=(y=m==null?void 0:m.by_model)==null?void 0:y[d];return(p==null?void 0:p.tokens)||0}),itemStyle:{color:Ei(d)},barMaxWidth:12}));return{dates:l,series:c}},[n,e]);if(!r.dates.length)return z.jsxs("div",{className:"overview-daily-spark overview-daily-spark-empty",children:[z.jsx("span",{className:"overview-daily-spark-title",children:"Daily Usage"}),z.jsx("span",{className:"overview-daily-spark-empty-text",children:"No daily data"})]});const i={backgroundColor:"transparent",...us,tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:a=>{if(!(a!=null&&a.length))return"";let l=`<b>${a[0].axisValue}</b><br/>`,u=0;const f=[...a].filter(c=>c.value>0).sort((c,d)=>(d.value||0)-(c.value||0));for(const c of f)l+=`${c.marker} ${c.seriesName}: ${Ci(c.value)}<br/>`,u+=c.value;return l+=`<b>Total: ${Ci(u)}</b>`,l}},grid:{left:4,right:4,top:4,bottom:4},xAxis:{type:"category",data:r.dates,show:!1},yAxis:{type:"value",show:!1,scale:!0},series:r.series};return z.jsxs("div",{className:"overview-daily-spark",children:[z.jsx("span",{className:"overview-daily-spark-title",children:"Daily Usage"}),z.jsx("div",{className:"overview-daily-spark-chart",children:z.jsx(wn,{echarts:Cn,option:i,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})})]})}const OA=[{key:"tokens",label:"Tokens",fmt:Ci},{key:"elapsed",label:"Time",fmt:t=>G0(t)},{key:"cost",label:"Cost",fmt:F0}];function r8({heatmapData:t}){var v;const[e,n]=mt.useState("tokens"),r=t==null?void 0:t.data;if(!r||typeof r!="object")return null;const i=new Date,a=[],l=[];for(let m=364;m>=0;m--){const p=new Date(i);p.setDate(p.getDate()-m);const y=p.toLocaleDateString("en-CA"),S=r[y]&&r[y][e]||0;a.push({key:y,val:S,date:p}),p.getDate()===1&&l.push({idx:364-m,label:p.toLocaleDateString("en-US",{month:"short"})})}const u=Math.max(...a.map(m=>m.val),1);function f(m){if(m===0)return"var(--bg-elevated)";const p=Math.min(m/u,1);return p<.15?"rgba(99, 102, 241, 0.4)":p<.4?"rgba(99, 102, 241, 0.6)":p<.7?"rgba(99, 102, 241, 0.85)":p<1?"rgba(99, 102, 241, 0.95)":"#fff"}const c=((v=a[0])==null?void 0:v.date.getDay())||0,d=Array(c).fill(null).concat(a);return z.jsxs("div",{className:"heatmap-wrap",children:[z.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.75rem"},children:[z.jsx("span",{className:"chart-title",children:"Activity"}),z.jsx("div",{className:"btn-group",children:OA.map(m=>z.jsx("button",{className:`btn ${e===m.key?"active":""}`,onClick:()=>n(m.key),children:m.label},m.key))})]}),z.jsx("div",{className:"heatmap-grid",style:{gridTemplateRows:"repeat(7, 1fr)"},children:d.map((m,p)=>m?z.jsx("div",{className:`heatmap-cell ${m.val>0?"active":""}`,style:{background:f(m.val)},title:`${m.key}: ${OA.find(y=>y.key===e).fmt(m.val)}`},m.key):z.jsx("div",{className:"heatmap-cell",style:{visibility:"hidden"}},`pad-${p}`))}),z.jsx("div",{className:"heatmap-labels",children:l.slice(-12).map((m,p)=>z.jsx("span",{children:m.label},p))})]})}const Si=180;function i8({data:t,heatmap:e,daily:n,families:r,repos:i,models:a,range:l="total"}){var N,U,at,ot,ct,dt;const u=t==null?void 0:t.data,f=(u==null?void 0:u[l])||(u==null?void 0:u.total)||{},c=f.coverage||{},d=c.thread_rows??c.total??0,v=c.root_sessions??f.total_sessions??0,m=f.date_range,p=(m==null?void 0:m.from)!=null&&(m==null?void 0:m.to)!=null?Math.max(1,Math.ceil((m.to-m.from)/86400)):1,y=c.priced_exact??0,S=c.priced_fallback??0,x=c.unpriced??Math.max(d-(c.priced??0),0),w=vi(f.total_tokens??0,Si),C=vi(f.total_elapsed_seconds??0,Si),M=vi(f.total_cost??0,Si),A=vi(v,Si);vi(c.enriched??0,Si),vi(c.priced??0,Si);const R=vi(y,Si),D=vi(S,Si),L=vi(x,Si),O=Array.isArray(i==null?void 0:i.data)?i.data:((N=i==null?void 0:i.data)==null?void 0:N[l])||((U=i==null?void 0:i.data)==null?void 0:U.total)||[],B=Array.isArray(r==null?void 0:r.data)?r.data:((at=r==null?void 0:r.data)==null?void 0:at[l])||((ot=r==null?void 0:r.data)==null?void 0:ot.total)||[],H=Array.isArray(a==null?void 0:a.data)?a.data:((ct=a==null?void 0:a.data)==null?void 0:ct[l])||((dt=a==null?void 0:a.data)==null?void 0:dt.total)||[],P=O.slice(0,6),q=B,$=H.slice(0,6);if(!u)return null;const W=[...P].reverse(),J=Math.max(...P.map(st=>st.tokens||0),1),V={backgroundColor:"transparent",...us,tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:st=>st!=null&&st.length?`${st[0].axisValue}: ${Ci(st[0].value)} tokens`:""},grid:{left:100,right:5,top:5,bottom:5},xAxis:{type:"value",show:!1,max:J||1},yAxis:{type:"category",data:W.map(st=>st.repo_label),axisLabel:{color:"#8b949e",fontSize:11,formatter:st=>t8(st)},axisTick:{show:!1},axisLine:{show:!1}},series:[{type:"bar",data:W.map(st=>{const Bt=st.tokens||0,Yt=Bt/J>=.25,yt=Ud(st.repo_label);return{value:Bt,itemStyle:{color:yt,borderRadius:[0,3,3,0]},label:{show:!0,position:Yt?"insideRight":"right",distance:5,offset:[0,1.5],formatter:Et=>Ci(Et.value),color:Yt?WG(yt):"#8b949e",fontSize:10,...Lo}}}),barWidth:"80%"}]},K=q.reduce((st,Bt)=>st+(Bt.tokens||0),0),j={backgroundColor:"transparent",...jl,tooltip:{trigger:"item",appendToBody:!0,confine:!0,formatter:st=>`${st.name}: ${Ci(st.value)} tokens (${st.percent}%)`},series:[{type:"pie",...jl,radius:["48%","72%"],center:["50%","50%"],label:{show:!0,color:"#8b949e",fontSize:11,formatter:"{b}",...Lo},labelLine:{lineStyle:{color:"#30363d"}},itemStyle:{borderColor:"#161b22",borderWidth:2},data:q.map(st=>{const xt=(K>0?(st.tokens||0)/K:0)>=.01;return{name:st.family,value:st.tokens,itemStyle:{color:Mf(st.family)},label:{show:xt,color:Mf(st.family)},labelLine:{show:xt}}})}]},rt=$.reduce((st,Bt)=>st+(Bt.tokens||0),0),it={backgroundColor:"transparent",...jl,tooltip:{trigger:"item",appendToBody:!0,confine:!0,formatter:st=>`${st.name}: ${Ci(st.value)} tokens (${st.percent}%)`},series:[{type:"pie",...jl,radius:["48%","72%"],center:["50%","50%"],label:{show:!0,color:"#8b949e",fontSize:11,formatter:"{b}",...Lo},labelLine:{lineStyle:{color:"#30363d"}},itemStyle:{borderColor:"#161b22",borderWidth:2},data:$.map(st=>{const xt=(rt>0?(st.tokens||0)/rt:0)>=.01;return{name:st.model_name,value:st.tokens,itemStyle:{color:Ei(st.model_name)},label:{show:xt,color:Ei(st.model_name)},labelLine:{show:xt}}})}]};return z.jsxs("div",{className:"animate-in",children:[z.jsxs("div",{className:"stat-row",children:[z.jsxs("div",{className:"stat-cards",children:[z.jsxs("div",{className:"stat-card",children:[z.jsx("div",{className:"stat-label",children:"Tokens"}),z.jsx("div",{className:"stat-value",children:Ci(w)}),z.jsxs("div",{className:"stat-per-day",children:[z.jsx("span",{className:"stat-per-day-value",children:Ci(w/p)})," per day"]})]}),z.jsxs("div",{className:"stat-card",children:[z.jsx("div",{className:"stat-label",children:"Agent Time"}),z.jsx("div",{className:"stat-value",children:G0(C)}),z.jsxs("div",{className:"stat-per-day",children:[z.jsx("span",{className:"stat-per-day-value",children:G0(C/p)})," per day"]})]}),z.jsxs("div",{className:"stat-card",children:[z.jsx("div",{className:"stat-label",children:"Est. API Cost"}),z.jsx("div",{className:"stat-value",children:F0(M)}),z.jsxs("div",{className:"stat-per-day",children:[z.jsx("span",{className:"stat-per-day-value",children:F0(M/p)})," per day"]})]}),z.jsxs("div",{className:"stat-card",children:[z.jsx("div",{className:"stat-label",children:"Sessions"}),z.jsx("div",{className:"stat-value",children:Math.round(A).toLocaleString()}),z.jsxs("div",{className:"stat-per-day",children:[z.jsx("span",{className:"stat-per-day-value",children:(A/p).toFixed(1)})," per day"]})]})]}),z.jsx(n8,{daily:n,range:l})]}),z.jsx(r8,{heatmapData:e}),z.jsxs("div",{className:"grid-3",children:[z.jsxs("div",{className:"chart-card",children:[z.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Top Repos"}),P.length>0?z.jsx(wn,{echarts:Cn,option:V,style:{height:180},theme:"dark",lazyUpdate:!0,notMerge:!1}):z.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem 0",textAlign:"center"},children:"No data"})]}),z.jsxs("div",{className:"chart-card",children:[z.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Work Type"}),q.length>0?z.jsx(wn,{echarts:Cn,option:j,style:{height:180},theme:"dark",lazyUpdate:!0,notMerge:!1}):z.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem 0",textAlign:"center"},children:"No data"})]}),z.jsxs("div",{className:"chart-card",children:[z.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Models"}),$.length>0?z.jsx(wn,{echarts:Cn,option:it,style:{height:180},theme:"dark",lazyUpdate:!0,notMerge:!1}):z.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem 0",textAlign:"center"},children:"No data"})]})]}),z.jsxs("div",{className:"coverage-subtle",children:[z.jsx("span",{style:{fontWeight:500},children:"Session coverage:"}),z.jsxs("span",{className:"coverage-item",children:[z.jsx("span",{className:"coverage-dot",style:{background:"#22c55e"}}),z.jsx("span",{className:"coverage-nums",children:Math.round(R)})," ","exact-priced"]}),z.jsxs("span",{className:"coverage-item",children:[z.jsx("span",{className:"coverage-dot",style:{background:"#c084fc"}}),z.jsx("span",{className:"coverage-nums",children:Math.round(D)})," ","fallback-priced"]}),z.jsxs("span",{className:"coverage-item",children:[z.jsx("span",{className:"coverage-dot",style:{background:"#64748b"}}),z.jsx("span",{className:"coverage-nums",children:Math.round(L)})," ","unpriced"]})]})]})}function a8(t,e){return t==="default"?e:t}function jd(t,e="tokens"){return Object.entries(t||{}).map(([n,r])=>({key:n,...r})).sort((n,r)=>(r[e]||0)-(n[e]||0))}function Oo({title:t,rows:e,valueKey:n="tokens",colorForKey:r,valueFormatter:i,chartMode:a="default",defaultMode:l="bar",emptyLabel:u="No data",renderTitleInChart:f=!0}){const c=a8(a,l),d=(e||[]).map((S,x)=>{const w=(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 w?{...S,key:String(w),_idx:x}:null}).filter(Boolean),v={xAxis:{show:!1},yAxis:{show:!1},series:[],graphic:{type:"text",left:"center",top:"60%",style:{text:u,fill:"#484f58",fontSize:11}}};if(f&&(v.title={text:t,left:"center",top:"middle",textStyle:{fontSize:12,color:"#484f58",fontWeight:"normal"}}),!d.length)return v;if(c==="donut"){const S=d.reduce((w,C)=>w+(C[n]||0),0),x={backgroundColor:"transparent",...jl,tooltip:{trigger:"item",appendToBody:!0,confine:!0,formatter:w=>`${w.name}: ${i(w.value)} (${w.percent}%)`},series:[{type:"pie",...jl,radius:["40%","62%"],center:["50%","52%"],label:{show:!0,color:"#8b949e",fontSize:10,formatter:"{b}",overflow:"truncate",width:90,...Lo},labelLine:{lineStyle:{color:"#30363d"}},itemStyle:{borderColor:"#161b22",borderWidth:2},data:d.map(w=>{const C=w[n]||0,A=(S>0?C/S:0)>=.01;return{name:w.key,value:C,itemStyle:{color:r(w.key)},label:{show:A,color:r(w.key)},labelLine:{show:A}}})}]};return f&&(x.title={text:t,left:"center",top:8,textStyle:{fontSize:11,color:"#8b949e",fontWeight:"normal"}}),x}const m=[...d].reverse(),p=Math.max(...d.map(S=>S[n]||0),0),y={backgroundColor:"transparent",...KG,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,w=m[x];return w?`${w.key}: ${i(w[n]||0)}`:""}},grid:{left:65,right:50,top:f?35:20,bottom:20},xAxis:{type:"value",splitNumber:4,max:p||1,axisLabel:{formatter:S=>i(S),color:"#484f58",fontSize:10,showMinLabel:!0,showMaxLabel:!0},splitLine:{lineStyle:{color:["transparent","#21262d","#21262d","#21262d","transparent"]}}},yAxis:{type:"category",data:m.map(S=>S.key),axisLabel:{color:"#8b949e",fontSize:10,overflow:"truncate",width:55},axisTick:{show:!1},axisLine:{show:!1}},series:[{type:"bar",data:m.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=>i(S.value),color:"#8b949e",fontSize:9,...JG}}]};return f&&(y.title={text:t,left:"center",top:8,textStyle:{fontSize:11,color:"#8b949e",fontWeight:"normal"}}),y}Tn([Mv,Tv,Dv,Rv,Ev,Lv]);function Mo(t){return t>=1e9?(t/1e9).toFixed(1)+"B":t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":t.toLocaleString()}function U0(t){return t==null||t===0?"—":t>=1e3?"$"+(t/1e3).toFixed(1)+"K":"$"+t.toFixed(2)}const o8=["all","review","exploration","planning","memory","generic"],zA=["review","exploration","planning","memory","generic"];function l8(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 s8(t){const e=t==null?void 0:t.data;return Array.isArray(e)?e:(e==null?void 0:e.total)||[]}function u8({repo:t,chartMode:e}){const[n,r]=mt.useState(!1),i=mt.useMemo(()=>jd(t.by_model),[t.by_model]),a=mt.useMemo(()=>jd(t.by_family),[t.by_family]),l=Oo({title:"Models in repo",rows:i,valueKey:"tokens",colorForKey:Ei,valueFormatter:Mo,chartMode:e,defaultMode:"donut",renderTitleInChart:!1}),u=Oo({title:"Work type in repo",rows:a,valueKey:"tokens",colorForKey:Mf,valueFormatter:Mo,chartMode:e,defaultMode:"donut",renderTitleInChart:!1}),f=[...i.slice(0,4).map(c=>({...c,scope:"model"})),...a.slice(0,4).map(c=>({...c,scope:"family"}))];return z.jsxs("div",{className:"model-detail-wrap",children:[z.jsxs("div",{className:"model-detail-charts",children:[z.jsxs("div",{className:"model-detail-donut",children:[z.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Models in repo"}),z.jsx(wn,{echarts:Cn,option:l,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0})]}),z.jsxs("div",{className:"model-detail-donut",children:[z.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Work type in repo"}),z.jsx(wn,{echarts:Cn,option:u,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0})]})]}),z.jsx("div",{className:"model-detail-footer",children:z.jsxs("button",{type:"button",className:"model-detail-toggle",onClick:()=>r(c=>!c),"aria-expanded":n,children:[z.jsx("span",{className:"model-detail-toggle-text",children:n?"Hide details":"Show details"}),z.jsx("span",{className:`model-detail-toggle-arrow ${n?"expanded":""}`,"aria-hidden":!0,children:"▼"})]})}),z.jsx("div",{className:`model-detail-summary-wrap ${n?"expanded":""}`,children:z.jsx("div",{className:"model-detail-summary",children:f.map(c=>z.jsxs("div",{className:"model-detail-summary-card",children:[z.jsxs("div",{className:"model-detail-summary-head",children:[z.jsx("span",{className:"model-detail-swatch",style:{background:c.scope==="model"?Ei(c.key):Mf(c.key)}}),z.jsx("span",{className:"model-detail-summary-name",title:c.key,children:c.key})]}),z.jsxs("div",{className:"model-detail-summary-line",children:[Mo(c.tokens)," tokens"]}),z.jsxs("div",{className:"model-detail-summary-line",children:[c.sessions||0," sessions"]}),z.jsx("div",{className:"model-detail-summary-line",children:U0(c.cost)})]},`${c.scope}-${c.key}`))})})]})}function f8({data:t,chartMode:e="default"}){const[n,r]=mt.useState("all"),[i,a]=mt.useState(null),l=mt.useRef(null),u=s8(t),f=mt.useMemo(()=>u!=null&&u.length?n==="all"?u:u.map(p=>{var S;const y=(S=p.by_family)==null?void 0:S[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 z.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem"},children:"No data"});const c=f.slice(0,15),d=[...c].reverse(),v=Math.max(...c.map(p=>p.tokens||0),0),m={backgroundColor:"transparent",...us,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: ${Mo(y.tokens)}<br/>Cost: ${U0(y.cost)}<br/>Sessions: ${y.sessions}`:""}},grid:{left:150,right:50,top:8,bottom:8},xAxis:{type:"value",splitNumber:4,max:v||1,axisLabel:{formatter:p=>Mo(p),color:"#484f58",showMinLabel:!0,showMaxLabel:!0},splitLine:{lineStyle:{color:["transparent","#21262d","#21262d","#21262d","transparent"]}}},yAxis:{type:"category",data:d.map(p=>p.repo_label),axisLabel:{color:"#8b949e",fontSize:11},axisTick:{show:!1},axisLine:{show:!1}},series:[{type:"bar",data:d.map(p=>({value:p.tokens,itemStyle:{color:Ud(p.repo_label),borderRadius:[0,3,3,0]}})),barMaxWidth:16,label:{show:!0,position:"right",formatter:p=>Mo(p.value),color:"#8b949e",fontSize:10,...Lo}}]};return z.jsxs("div",{className:"animate-in",children:[z.jsxs("div",{className:"section-header",children:[z.jsx("span",{className:"section-title",children:"Repos"}),z.jsx("div",{className:"btn-group",children:o8.map(p=>z.jsx("button",{className:`btn ${n===p?"active":""}`,onClick:()=>r(p),children:p},p))})]}),z.jsxs("div",{className:"chart-card",children:[z.jsx("button",{className:"export-btn",onClick:()=>l8(l),children:"PNG"}),z.jsx(wn,{ref:l,echarts:Cn,option:m,style:{height:Math.max(250,c.length*28)},theme:"dark",lazyUpdate:!0,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&&a(i===y.repo_key?null:y.repo_key)}}}})]}),z.jsx("div",{className:"table-wrap",children:z.jsxs("table",{children:[z.jsx("thead",{children:z.jsxs("tr",{children:[z.jsx("th",{children:"Repo"}),z.jsx("th",{children:"Tokens"}),z.jsx("th",{children:"Cost"}),z.jsx("th",{children:"Sessions"}),z.jsx("th",{style:{width:200},children:"Families"})]})}),z.jsx("tbody",{children:f.map(p=>z.jsxs(K0.Fragment,{children:[z.jsxs("tr",{onClick:()=>a(i===p.repo_key?null:p.repo_key),style:{cursor:"pointer"},children:[z.jsxs("td",{style:{fontWeight:500,color:"var(--text-primary)"},children:[z.jsx("span",{style:{display:"inline-block",width:8,height:8,borderRadius:2,background:Ud(p.repo_label),marginRight:8}}),p.repo_label]}),z.jsx("td",{style:{fontFamily:"var(--font-mono)"},children:Mo(p.tokens)}),z.jsx("td",{style:{fontFamily:"var(--font-mono)"},children:U0(p.cost)}),z.jsx("td",{children:p.sessions}),z.jsx("td",{children:Object.entries(p.by_family||{}).sort(([y],[S])=>{const x=zA.indexOf(y),w=zA.indexOf(S);return(x===-1?999:x)-(w===-1?999:w)}).slice(0,3).map(([y])=>z.jsx("span",{className:`tag tag-${y}`,style:{marginRight:3},children:y},y))})]}),i===p.repo_key&&z.jsx("tr",{children:z.jsx("td",{colSpan:5,style:{background:"var(--bg-surface)",padding:"0.75rem 1rem"},children:z.jsx(u8,{repo:p,chartMode:e})})})]},p.repo_key))})]})})]})}Tn([Mv,Tv,Dv,Rv,Ev,Lv]);function Iu(t){return t>=1e9?(t/1e9).toFixed(1)+"B":t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":t.toLocaleString()}function j0(t){return t==null||t===0?"—":t>=1e3?"$"+(t/1e3).toFixed(1)+"K":"$"+t.toFixed(2)}const NA=["low","medium","high","xhigh","unknown"];function c8(t){return[...t].sort(([e],[n])=>{const r=NA.indexOf((e||"").toLowerCase()),i=NA.indexOf((n||"").toLowerCase());return(r===-1?999:r)-(i===-1?999:i)})}function h8({model:t,fmt:e,chartMode:n}){const[r,i]=mt.useState(!1),a=mt.useMemo(()=>c8(Object.entries(t.by_effort||{})),[t.by_effort]);if(!a.length)return null;const l=a.map(([v,m])=>({effort:v,sessions:m.sessions,tokens:m.tokens,avgTokens:m.sessions?Math.round(m.tokens/m.sessions):0,cost:m.cost,exactPriced:m.exact_priced||0,fallbackPriced:m.heuristic_priced||0})),u=l.map(v=>({key:v.effort,sessions:v.sessions,tokens:v.tokens,avgTokens:v.avgTokens})),f=Oo({title:"Sessions by effort",rows:u,valueKey:"sessions",colorForKey:qh,valueFormatter:v=>Math.round(v).toLocaleString(),chartMode:n,defaultMode:"donut",renderTitleInChart:!1}),c=Oo({title:"Tokens by effort",rows:u,valueKey:"tokens",colorForKey:qh,valueFormatter:e,chartMode:n,defaultMode:"donut",renderTitleInChart:!1}),d=Oo({title:"Avg tokens per session",rows:u,valueKey:"avgTokens",colorForKey:qh,valueFormatter:e,chartMode:n,defaultMode:"bar",renderTitleInChart:!1});return z.jsxs("div",{className:"model-detail-wrap",children:[z.jsxs("div",{className:"model-detail-charts",children:[z.jsxs("div",{className:"model-detail-donut",children:[z.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Sessions by effort"}),z.jsx(wn,{echarts:Cn,option:f,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0})]}),z.jsxs("div",{className:"model-detail-donut",children:[z.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Tokens by effort"}),z.jsx(wn,{echarts:Cn,option:c,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0})]}),z.jsxs("div",{className:"model-detail-bar",children:[z.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Avg tokens per session"}),z.jsx(wn,{echarts:Cn,option:d,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0})]})]}),z.jsx("div",{className:"model-detail-footer",children:z.jsxs("button",{type:"button",className:"model-detail-toggle",onClick:()=>i(v=>!v),"aria-expanded":r,children:[z.jsx("span",{className:"model-detail-toggle-text",children:r?"Hide details":"Show details"}),z.jsx("span",{className:`model-detail-toggle-arrow ${r?"expanded":""}`,"aria-hidden":!0,children:"▼"})]})}),z.jsx("div",{className:`model-detail-summary-wrap ${r?"expanded":""}`,children:z.jsx("div",{className:"model-detail-summary",children:l.map(v=>z.jsxs("div",{className:"model-detail-summary-card",children:[z.jsxs("div",{className:"model-detail-summary-head",children:[z.jsx("span",{className:"model-detail-swatch",style:{background:qh(v.effort)}}),z.jsx("span",{className:"model-detail-summary-name",title:v.effort,children:v.effort})]}),z.jsxs("div",{className:"model-detail-summary-line",children:[v.sessions," sessions"]}),z.jsxs("div",{className:"model-detail-summary-line",children:[e(v.tokens)," tokens"]}),z.jsxs("div",{className:"model-detail-summary-line",children:[e(v.avgTokens)," avg/session"]}),z.jsxs("div",{className:"model-detail-summary-line",children:[j0(v.cost)," cost"]}),z.jsxs("div",{className:"model-detail-summary-line",children:[v.exactPriced," exact · ",v.fallbackPriced," fallback"]})]},v.effort))})})]})}function d8(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 v8(t){const e=t==null?void 0:t.data;return Array.isArray(e)?e:(e==null?void 0:e.total)||[]}function g8({data:t,chartMode:e="default"}){const[n,r]=mt.useState(null),i=mt.useRef(null),a=v8(t);if(!(a!=null&&a.length))return z.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem"},children:"No data"});const l=[...a].reverse(),u=Math.max(...a.map(c=>c.tokens||0),0),f={backgroundColor:"transparent",...us,tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:c=>{const d=a[a.length-1-c[0].dataIndex];return`<b>${d.model_name}</b><br/>Tokens: ${Iu(d.tokens)}<br/>Cost: ${j0(d.cost)}<br/>Sessions: ${d.sessions}`}},grid:{left:160,right:50,top:8,bottom:8},xAxis:{type:"value",splitNumber:4,max:u||1,axisLabel:{formatter:c=>Iu(c),color:"#484f58",fontSize:10,showMinLabel:!0,showMaxLabel:!0},splitLine:{lineStyle:{color:["transparent","#21262d","#21262d","#21262d","transparent"]}}},yAxis:{type:"category",data:l.map(c=>c.model_name),axisLabel:{color:"#8b949e",fontSize:11},axisTick:{show:!1},axisLine:{show:!1}},series:[{type:"bar",data:l.map(c=>({value:c.tokens,itemStyle:{color:Ei(c.model_name),borderRadius:[0,3,3,0]}})),barMaxWidth:18,label:{show:!0,position:"right",formatter:c=>Iu(c.value),color:"#8b949e",fontSize:10,...Lo}}]};return z.jsxs("div",{className:"animate-in",children:[z.jsx("div",{className:"section-header",children:z.jsx("span",{className:"section-title",children:"Models"})}),z.jsxs("div",{className:"chart-card",children:[z.jsx("button",{className:"export-btn",onClick:()=>d8(i),children:"PNG"}),z.jsx(wn,{ref:i,echarts:Cn,option:f,style:{height:Math.max(180,a.length*34)},theme:"dark",lazyUpdate:!0,onEvents:{click:c=>{if((c==null?void 0:c.componentType)==="series"&&(c==null?void 0:c.dataIndex)!=null){const d=a[a.length-1-c.dataIndex];d&&r(n===d.model_name?null:d.model_name)}}}})]}),z.jsx("div",{className:"table-wrap",children:z.jsxs("table",{children:[z.jsx("thead",{children:z.jsxs("tr",{children:[z.jsx("th",{children:"Model"}),z.jsx("th",{children:"Tokens"}),z.jsx("th",{children:"Cost"}),z.jsx("th",{children:"Sessions"}),z.jsx("th",{children:"Effort Levels"})]})}),z.jsx("tbody",{children:a.map(c=>z.jsxs(K0.Fragment,{children:[z.jsxs("tr",{onClick:()=>r(n===c.model_name?null:c.model_name),style:{cursor:"pointer"},children:[z.jsxs("td",{style:{fontWeight:500,color:"var(--text-primary)",fontFamily:"var(--font-mono)"},children:[z.jsx("span",{style:{display:"inline-block",width:8,height:8,borderRadius:2,background:Ei(c.model_name),marginRight:8}}),c.model_name]}),z.jsx("td",{style:{fontFamily:"var(--font-mono)"},children:Iu(c.tokens)}),z.jsx("td",{style:{fontFamily:"var(--font-mono)"},children:j0(c.cost)}),z.jsx("td",{children:c.sessions}),z.jsx("td",{children:Object.keys(c.by_effort).length})]}),n===c.model_name&&z.jsx("tr",{children:z.jsx("td",{colSpan:5,style:{background:"var(--bg-surface)",padding:"0.75rem 1rem"},children:z.jsx(h8,{model:c,fmt:Iu,chartMode:e})})})]},c.model_name))})]})})]})}Tn([Mv,Tv,Dv,Rv,Ev,uL,GG,Lv]);function Y0(t){return t>=1e9?(t/1e9).toFixed(1)+"B":t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":Math.round(t).toLocaleString()}function p8(t){return t==null||t===0?"$0":"$"+t.toFixed(2)}function m8(t){return t?(t/3600).toFixed(1)+"h":"0h"}const IA=[{key:"tokens",label:"Tokens",fn:Y0},{key:"elapsed_seconds",label:"Time",fn:m8},{key:"cost",label:"Cost",fn:p8}],y8=[{key:"model",label:"By Model"},{key:"family",label:"By Family"}];function _8(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 S8(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 x8({day:t,chartMode:e}){const n=mt.useMemo(()=>jd(t.by_model),[t.by_model]),r=mt.useMemo(()=>jd(t.by_repo),[t.by_repo]),i=Oo({title:"Models for day",rows:n,valueKey:"tokens",colorForKey:Ei,valueFormatter:Y0,chartMode:e,defaultMode:"donut",renderTitleInChart:!1}),a=Oo({title:"Repos for day",rows:r,valueKey:"tokens",colorForKey:Ud,valueFormatter:Y0,chartMode:e,defaultMode:"donut",renderTitleInChart:!1});return z.jsx("div",{className:"model-detail-wrap",children:z.jsxs("div",{className:"model-detail-charts",children:[z.jsxs("div",{className:"model-detail-donut",children:[z.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Repos for day"}),z.jsx(wn,{echarts:Cn,option:a,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0})]}),z.jsxs("div",{className:"model-detail-donut",children:[z.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Models for day"}),z.jsx(wn,{echarts:Cn,option:i,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0})]})]})})}function b8({data:t,range:e="total",chartMode:n="default"}){var C;const[r,i]=mt.useState("tokens"),[a,l]=mt.useState("model"),[u,f]=mt.useState(null),c=mt.useRef(null);if(!((C=t==null?void 0:t.data)!=null&&C.length))return z.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem"},children:"No data"});const d=t.data,v=d.map(M=>M.date),m=IA.find(M=>M.key===r),p=mt.useMemo(()=>S8(e,v.length),[e,v.length]);mt.useEffect(()=>{var M,A;!u&&d[0]&&f(((M=d[d.length-1])==null?void 0:M.date)||((A=d[0])==null?void 0:A.date))},[d,u]);const y=mt.useMemo(()=>{const M=new Set;for(const A of d){const R=a==="model"?A.by_model:A.by_family||{};for(const D of Object.keys(R))M.add(D)}return[...M]},[d,a]),S=y.map(M=>({name:M,type:"bar",stack:"total",data:d.map(A=>{const D=(a==="model"?A.by_model:A.by_family||{})[M];return D?r==="elapsed_seconds"?D.elapsed_seconds||0:r==="cost"?D.cost||0:D.tokens||0:0}),itemStyle:{color:a==="model"?Ei(M):Mf(M)},barMaxWidth:14})),x={backgroundColor:"transparent",tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:M=>{let A=`<b>${M[0].axisValue}</b><br/>`,R=0;const D=[...M].filter(L=>L.value>0).sort((L,O)=>(O.value||0)-(L.value||0));for(const L of D)A+=`${L.marker} ${L.seriesName}: ${m.fn(L.value)}<br/>`,R+=L.value;return A+=`<b>Total: ${m.fn(R)}</b>`,A}},legend:{data:y,textStyle:{color:"#8b949e",fontSize:10},top:0,itemWidth:10,itemHeight:10},grid:{left:70,right:20,top:35,bottom:55},dataZoom:[{type:"slider",start:p,end:100,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",axisLabel:{formatter:M=>m.fn(M),color:"#484f58"},splitLine:{lineStyle:{color:"#21262d"}}},series:S,...us},w=d.find(M=>M.date===u)||null;return z.jsxs("div",{className:"animate-in",children:[z.jsxs("div",{className:"section-header",children:[z.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:[z.jsx("span",{className:"section-title",children:"Daily Usage"}),z.jsx("span",{className:"chart-badge",children:"approximate allocation"})]}),z.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[z.jsx("div",{className:"btn-group",children:IA.map(M=>z.jsx("button",{className:`btn ${r===M.key?"active":""}`,onClick:()=>i(M.key),children:M.label},M.key))}),z.jsx("div",{className:"btn-group",children:y8.map(M=>z.jsx("button",{className:`btn ${a===M.key?"active":""}`,onClick:()=>l(M.key),children:M.label},M.key))})]})]}),z.jsxs("div",{className:"chart-card",children:[z.jsx("button",{className:"export-btn",onClick:()=>_8(c),children:"PNG"}),z.jsx(wn,{ref:c,echarts:Cn,option:x,style:{height:400},theme:"dark",notMerge:!0,lazyUpdate:!0,onEvents:{click:M=>{const A=(M==null?void 0:M.axisValue)||(M==null?void 0:M.name);A&&f(A)}}})]}),w&&z.jsxs("div",{className:"chart-card",children:[z.jsxs("div",{className:"chart-title",style:{marginBottom:"0.75rem"},children:["Day detail: ",w.date]}),z.jsx(x8,{day:w,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 w8(){return{accessor:(t,e)=>typeof t=="function"?{...e,accessorFn:t}:{...e,accessorKey:t},display:t=>t,group:t=>t}}function Sa(t,e){return typeof t=="function"?t(e):t}function Fn(t,e){return n=>{e.setState(r=>({...r,[t]:Sa(n,r[t])}))}}function Ov(t){return t instanceof Function}function C8(t){return Array.isArray(t)&&t.every(e=>typeof e=="number")}function M8(t,e){const n=[],r=i=>{i.forEach(a=>{n.push(a);const l=e(a);l!=null&&l.length&&r(l)})};return r(t),n}function Ct(t,e,n){let r=[],i;return a=>{let l;n.key&&n.debug&&(l=Date.now());const u=t(a);if(!(u.length!==r.length||u.some((d,v)=>r[v]!==d)))return i;r=u;let c;if(n.key&&n.debug&&(c=Date.now()),i=e(...u),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const d=Math.round((Date.now()-l)*100)/100,v=Math.round((Date.now()-c)*100)/100,m=v/16,p=(y,S)=>{for(y=String(y);y.length<S;)y=" "+y;return y};console.info(`%c⏱ ${p(v,5)} /${p(d,5)} ms`,`
99
+ font-size: .6rem;
100
+ font-weight: bold;
101
+ color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function Mt(t,e,n,r){return{debug:()=>{var i;return(i=t==null?void 0:t.debugAll)!=null?i:t[e]},key:!1,onChange:r}}function T8(t,e,n,r){const i=()=>{var l;return(l=a.getValue())!=null?l:t.options.renderFallbackValue},a={id:`${e.id}_${n.id}`,row:e,column:n,getValue:()=>e.getValue(r),renderValue:i,getContext:Ct(()=>[t,n,e,a],(l,u,f,c)=>({table:l,column:u,row:f,cell:c,getValue:c.getValue,renderValue:c.renderValue}),Mt(t.options,"debugCells"))};return t._features.forEach(l=>{l.createCell==null||l.createCell(a,n,e,t)},{}),a}function A8(t,e,n,r){var i,a;const u={...t._getDefaultColumnDef(),...e},f=u.accessorKey;let c=(i=(a=u.id)!=null?a:f?typeof String.prototype.replaceAll=="function"?f.replaceAll(".","_"):f.replace(/\./g,"_"):void 0)!=null?i:typeof u.header=="string"?u.header:void 0,d;if(u.accessorFn?d=u.accessorFn:f&&(f.includes(".")?d=m=>{let p=m;for(const S of f.split(".")){var y;p=(y=p)==null?void 0:y[S]}return p}:d=m=>m[u.accessorKey]),!c)throw new Error;let v={id:`${String(c)}`,accessorFn:d,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:Ct(()=>[!0],()=>{var m;return[v,...(m=v.columns)==null?void 0:m.flatMap(p=>p.getFlatColumns())]},Mt(t.options,"debugColumns")),getLeafColumns:Ct(()=>[t._getOrderColumnsFn()],m=>{var p;if((p=v.columns)!=null&&p.length){let y=v.columns.flatMap(S=>S.getLeafColumns());return m(y)}return[v]},Mt(t.options,"debugColumns"))};for(const m of t._features)m.createColumn==null||m.createColumn(v,t);return v}const Xe="debugHeaders";function BA(t,e,n){var r;let a={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 l=[],u=f=>{f.subHeaders&&f.subHeaders.length&&f.subHeaders.map(u),l.push(f)};return u(a),l},getContext:()=>({table:t,header:a,column:e})};return t._features.forEach(l=>{l.createHeader==null||l.createHeader(a,t)}),a}const D8={createTable:t=>{t.getHeaderGroups=Ct(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r,i)=>{var a,l;const u=(a=r==null?void 0:r.map(v=>n.find(m=>m.id===v)).filter(Boolean))!=null?a:[],f=(l=i==null?void 0:i.map(v=>n.find(m=>m.id===v)).filter(Boolean))!=null?l:[],c=n.filter(v=>!(r!=null&&r.includes(v.id))&&!(i!=null&&i.includes(v.id)));return Xh(e,[...u,...c,...f],t)},Mt(t.options,Xe)),t.getCenterHeaderGroups=Ct(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r,i)=>(n=n.filter(a=>!(r!=null&&r.includes(a.id))&&!(i!=null&&i.includes(a.id))),Xh(e,n,t,"center")),Mt(t.options,Xe)),t.getLeftHeaderGroups=Ct(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left],(e,n,r)=>{var i;const a=(i=r==null?void 0:r.map(l=>n.find(u=>u.id===l)).filter(Boolean))!=null?i:[];return Xh(e,a,t,"left")},Mt(t.options,Xe)),t.getRightHeaderGroups=Ct(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.right],(e,n,r)=>{var i;const a=(i=r==null?void 0:r.map(l=>n.find(u=>u.id===l)).filter(Boolean))!=null?i:[];return Xh(e,a,t,"right")},Mt(t.options,Xe)),t.getFooterGroups=Ct(()=>[t.getHeaderGroups()],e=>[...e].reverse(),Mt(t.options,Xe)),t.getLeftFooterGroups=Ct(()=>[t.getLeftHeaderGroups()],e=>[...e].reverse(),Mt(t.options,Xe)),t.getCenterFooterGroups=Ct(()=>[t.getCenterHeaderGroups()],e=>[...e].reverse(),Mt(t.options,Xe)),t.getRightFooterGroups=Ct(()=>[t.getRightHeaderGroups()],e=>[...e].reverse(),Mt(t.options,Xe)),t.getFlatHeaders=Ct(()=>[t.getHeaderGroups()],e=>e.map(n=>n.headers).flat(),Mt(t.options,Xe)),t.getLeftFlatHeaders=Ct(()=>[t.getLeftHeaderGroups()],e=>e.map(n=>n.headers).flat(),Mt(t.options,Xe)),t.getCenterFlatHeaders=Ct(()=>[t.getCenterHeaderGroups()],e=>e.map(n=>n.headers).flat(),Mt(t.options,Xe)),t.getRightFlatHeaders=Ct(()=>[t.getRightHeaderGroups()],e=>e.map(n=>n.headers).flat(),Mt(t.options,Xe)),t.getCenterLeafHeaders=Ct(()=>[t.getCenterFlatHeaders()],e=>e.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Mt(t.options,Xe)),t.getLeftLeafHeaders=Ct(()=>[t.getLeftFlatHeaders()],e=>e.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Mt(t.options,Xe)),t.getRightLeafHeaders=Ct(()=>[t.getRightFlatHeaders()],e=>e.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Mt(t.options,Xe)),t.getLeafHeaders=Ct(()=>[t.getLeftHeaderGroups(),t.getCenterHeaderGroups(),t.getRightHeaderGroups()],(e,n,r)=>{var i,a,l,u,f,c;return[...(i=(a=e[0])==null?void 0:a.headers)!=null?i:[],...(l=(u=n[0])==null?void 0:u.headers)!=null?l:[],...(f=(c=r[0])==null?void 0:c.headers)!=null?f:[]].map(d=>d.getLeafHeaders()).flat()},Mt(t.options,Xe))}};function Xh(t,e,n,r){var i,a;let l=0;const u=function(m,p){p===void 0&&(p=1),l=Math.max(l,p),m.filter(y=>y.getIsVisible()).forEach(y=>{var S;(S=y.columns)!=null&&S.length&&u(y.columns,p+1)},0)};u(t);let f=[];const c=(m,p)=>{const y={depth:p,id:[r,`${p}`].filter(Boolean).join("_"),headers:[]},S=[];m.forEach(x=>{const w=[...S].reverse()[0],C=x.column.depth===y.depth;let M,A=!1;if(C&&x.column.parent?M=x.column.parent:(M=x.column,A=!0),w&&(w==null?void 0:w.column)===M)w.subHeaders.push(x);else{const R=BA(n,M,{id:[r,p,M.id,x==null?void 0:x.id].filter(Boolean).join("_"),isPlaceholder:A,placeholderId:A?`${S.filter(D=>D.column===M).length}`:void 0,depth:p,index:S.length});R.subHeaders.push(x),S.push(R)}y.headers.push(x),x.headerGroup=y}),f.push(y),p>0&&c(S,p-1)},d=e.map((m,p)=>BA(n,m,{depth:l,index:p}));c(d,l-1),f.reverse();const v=m=>m.filter(y=>y.column.getIsVisible()).map(y=>{let S=0,x=0,w=[0];y.subHeaders&&y.subHeaders.length?(w=[],v(y.subHeaders).forEach(M=>{let{colSpan:A,rowSpan:R}=M;S+=A,w.push(R)})):S=1;const C=Math.min(...w);return x=x+C,y.colSpan=S,y.rowSpan=x,{colSpan:S,rowSpan:x}});return v((i=(a=f[0])==null?void 0:a.headers)!=null?i:[]),f}const R8=(t,e,n,r,i,a,l)=>{let u={id:e,index:r,original:n,depth:i,parentId:l,_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:()=>M8(u.subRows,f=>f.subRows),getParentRow:()=>u.parentId?t.getRow(u.parentId,!0):void 0,getParentRows:()=>{let f=[],c=u;for(;;){const d=c.getParentRow();if(!d)break;f.push(d),c=d}return f.reverse()},getAllCells:Ct(()=>[t.getAllLeafColumns()],f=>f.map(c=>T8(t,u,c,c.id)),Mt(t.options,"debugRows")),_getAllCellsByColumnId:Ct(()=>[u.getAllCells()],f=>f.reduce((c,d)=>(c[d.column.id]=d,c),{}),Mt(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},E8={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()}}},hL=(t,e,n)=>{var r,i;const a=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((i=t.getValue(e))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(a))};hL.autoRemove=t=>Mr(t);const dL=(t,e,n)=>{var r;return!!(!((r=t.getValue(e))==null||(r=r.toString())==null)&&r.includes(n))};dL.autoRemove=t=>Mr(t);const vL=(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())};vL.autoRemove=t=>Mr(t);const gL=(t,e,n)=>{var r;return(r=t.getValue(e))==null?void 0:r.includes(n)};gL.autoRemove=t=>Mr(t);const pL=(t,e,n)=>!n.some(r=>{var i;return!((i=t.getValue(e))!=null&&i.includes(r))});pL.autoRemove=t=>Mr(t)||!(t!=null&&t.length);const mL=(t,e,n)=>n.some(r=>{var i;return(i=t.getValue(e))==null?void 0:i.includes(r)});mL.autoRemove=t=>Mr(t)||!(t!=null&&t.length);const yL=(t,e,n)=>t.getValue(e)===n;yL.autoRemove=t=>Mr(t);const _L=(t,e,n)=>t.getValue(e)==n;_L.autoRemove=t=>Mr(t);const _S=(t,e,n)=>{let[r,i]=n;const a=t.getValue(e);return a>=r&&a<=i};_S.resolveFilterValue=t=>{let[e,n]=t,r=typeof e!="number"?parseFloat(e):e,i=typeof n!="number"?parseFloat(n):n,a=e===null||Number.isNaN(r)?-1/0:r,l=n===null||Number.isNaN(i)?1/0:i;if(a>l){const u=a;a=l,l=u}return[a,l]};_S.autoRemove=t=>Mr(t)||Mr(t[0])&&Mr(t[1]);const wi={includesString:hL,includesStringSensitive:dL,equalsString:vL,arrIncludes:gL,arrIncludesAll:pL,arrIncludesSome:mL,equals:yL,weakEquals:_L,inNumberRange:_S};function Mr(t){return t==null||t===""}const L8={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:t=>({columnFilters:[],...t}),getDefaultOptions:t=>({onColumnFiltersChange:Fn("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"?wi.includesString:typeof r=="number"?wi.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?wi.equals:Array.isArray(r)?wi.arrIncludes:wi.weakEquals},t.getFilterFn=()=>{var n,r;return Ov(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:wi[t.columnDef.filterFn]},t.getCanFilter=()=>{var n,r,i;return((n=t.columnDef.enableColumnFilter)!=null?n:!0)&&((r=e.options.enableColumnFilters)!=null?r:!0)&&((i=e.options.enableFilters)!=null?i:!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(i=>i.id===t.id))!=null?n:-1},t.setFilterValue=n=>{e.setColumnFilters(r=>{const i=t.getFilterFn(),a=r==null?void 0:r.find(d=>d.id===t.id),l=Sa(n,a?a.value:void 0);if(PA(i,l,t)){var u;return(u=r==null?void 0:r.filter(d=>d.id!==t.id))!=null?u:[]}const f={id:t.id,value:l};if(a){var c;return(c=r==null?void 0:r.map(d=>d.id===t.id?f:d))!=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=i=>{var a;return(a=Sa(e,i))==null?void 0:a.filter(l=>{const u=n.find(f=>f.id===l.id);if(u){const f=u.getFilterFn();if(PA(f,l.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 PA(t,e,n){return(t&&t.autoRemove?t.autoRemove(e,n):!1)||typeof e>"u"||typeof e=="string"&&!e}const O8=(t,e,n)=>n.reduce((r,i)=>{const a=i.getValue(t);return r+(typeof a=="number"?a:0)},0),z8=(t,e,n)=>{let r;return n.forEach(i=>{const a=i.getValue(t);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},N8=(t,e,n)=>{let r;return n.forEach(i=>{const a=i.getValue(t);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},I8=(t,e,n)=>{let r,i;return n.forEach(a=>{const l=a.getValue(t);l!=null&&(r===void 0?l>=l&&(r=i=l):(r>l&&(r=l),i<l&&(i=l)))}),[r,i]},B8=(t,e)=>{let n=0,r=0;if(e.forEach(i=>{let a=i.getValue(t);a!=null&&(a=+a)>=a&&(++n,r+=a)}),n)return r/n},P8=(t,e)=>{if(!e.length)return;const n=e.map(a=>a.getValue(t));if(!C8(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((a,l)=>a-l);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},k8=(t,e)=>Array.from(new Set(e.map(n=>n.getValue(t))).values()),H8=(t,e)=>new Set(e.map(n=>n.getValue(t))).size,V8=(t,e)=>e.length,Ty={sum:O8,min:z8,max:N8,extent:I8,mean:B8,median:P8,unique:k8,uniqueCount:H8,count:V8},F8={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:Fn("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 Ty.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Ty.extent},t.getAggregationFn=()=>{var n,r;if(!t)throw new Error;return Ov(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:Ty[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 i;return!t.getIsGrouped()&&!t.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function G8(t,e,n){if(!(e!=null&&e.length)||!n)return t;const r=t.filter(a=>!e.includes(a.id));return n==="remove"?r:[...e.map(a=>t.find(l=>l.id===a)).filter(Boolean),...r]}const U8={getInitialState:t=>({columnOrder:[],...t}),getDefaultOptions:t=>({onColumnOrderChange:Fn("columnOrder",t)}),createColumn:(t,e)=>{t.getIndex=Ct(n=>[nf(e,n)],n=>n.findIndex(r=>r.id===t.id),Mt(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 i=nf(e,n);return((r=i[i.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=Ct(()=>[t.getState().columnOrder,t.getState().grouping,t.options.groupedColumnMode],(e,n,r)=>i=>{let a=[];if(!(e!=null&&e.length))a=i;else{const l=[...e],u=[...i];for(;u.length&&l.length;){const f=l.shift(),c=u.findIndex(d=>d.id===f);c>-1&&a.push(u.splice(c,1)[0])}a=[...a,...u]}return G8(a,n,r)},Mt(t.options,"debugTable"))}},Ay=()=>({left:[],right:[]}),j8={getInitialState:t=>({columnPinning:Ay(),...t}),getDefaultOptions:t=>({onColumnPinningChange:Fn("columnPinning",t)}),createColumn:(t,e)=>{t.pin=n=>{const r=t.getLeafColumns().map(i=>i.id).filter(Boolean);e.setColumnPinning(i=>{var a,l;if(n==="right"){var u,f;return{left:((u=i==null?void 0:i.left)!=null?u:[]).filter(v=>!(r!=null&&r.includes(v))),right:[...((f=i==null?void 0:i.right)!=null?f:[]).filter(v=>!(r!=null&&r.includes(v))),...r]}}if(n==="left"){var c,d;return{left:[...((c=i==null?void 0:i.left)!=null?c:[]).filter(v=>!(r!=null&&r.includes(v))),...r],right:((d=i==null?void 0:i.right)!=null?d:[]).filter(v=>!(r!=null&&r.includes(v)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(v=>!(r!=null&&r.includes(v))),right:((l=i==null?void 0:i.right)!=null?l:[]).filter(v=>!(r!=null&&r.includes(v)))}})},t.getCanPin=()=>t.getLeafColumns().some(r=>{var i,a,l;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((a=(l=e.options.enableColumnPinning)!=null?l:e.options.enablePinning)!=null?a:!0)}),t.getIsPinned=()=>{const n=t.getLeafColumns().map(u=>u.id),{left:r,right:i}=e.getState().columnPinning,a=n.some(u=>r==null?void 0:r.includes(u)),l=n.some(u=>i==null?void 0:i.includes(u));return a?"left":l?"right":!1},t.getPinnedIndex=()=>{var n,r;const i=t.getIsPinned();return i?(n=(r=e.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(t.id))!=null?n:-1:0}},createRow:(t,e)=>{t.getCenterVisibleCells=Ct(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,r,i)=>{const a=[...r??[],...i??[]];return n.filter(l=>!a.includes(l.column.id))},Mt(e.options,"debugRows")),t.getLeftVisibleCells=Ct(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left],(n,r)=>(r??[]).map(a=>n.find(l=>l.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),Mt(e.options,"debugRows")),t.getRightVisibleCells=Ct(()=>[t._getAllVisibleCells(),e.getState().columnPinning.right],(n,r)=>(r??[]).map(a=>n.find(l=>l.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),Mt(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?Ay():(n=(r=t.initialState)==null?void 0:r.columnPinning)!=null?n:Ay())},t.getIsSomeColumnsPinned=e=>{var n;const r=t.getState().columnPinning;if(!e){var i,a;return!!((i=r.left)!=null&&i.length||(a=r.right)!=null&&a.length)}return!!((n=r[e])!=null&&n.length)},t.getLeftLeafColumns=Ct(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left],(e,n)=>(n??[]).map(r=>e.find(i=>i.id===r)).filter(Boolean),Mt(t.options,"debugColumns")),t.getRightLeafColumns=Ct(()=>[t.getAllLeafColumns(),t.getState().columnPinning.right],(e,n)=>(n??[]).map(r=>e.find(i=>i.id===r)).filter(Boolean),Mt(t.options,"debugColumns")),t.getCenterLeafColumns=Ct(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r)=>{const i=[...n??[],...r??[]];return e.filter(a=>!i.includes(a.id))},Mt(t.options,"debugColumns"))}};function Y8(t){return t||(typeof document<"u"?document:null)}const Zh={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Dy=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),q8={getDefaultColumnDef:()=>Zh,getInitialState:t=>({columnSizing:{},columnSizingInfo:Dy(),...t}),getDefaultOptions:t=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Fn("columnSizing",t),onColumnSizingInfoChange:Fn("columnSizingInfo",t)}),createColumn:(t,e)=>{t.getSize=()=>{var n,r,i;const a=e.getState().columnSizing[t.id];return Math.min(Math.max((n=t.columnDef.minSize)!=null?n:Zh.minSize,(r=a??t.columnDef.size)!=null?r:Zh.size),(i=t.columnDef.maxSize)!=null?i:Zh.maxSize)},t.getStart=Ct(n=>[n,nf(e,n),e.getState().columnSizing],(n,r)=>r.slice(0,t.getIndex(n)).reduce((i,a)=>i+a.getSize(),0),Mt(e.options,"debugColumns")),t.getAfter=Ct(n=>[n,nf(e,n),e.getState().columnSizing],(n,r)=>r.slice(t.getIndex(n)+1).reduce((i,a)=>i+a.getSize(),0),Mt(e.options,"debugColumns")),t.resetSize=()=>{e.setColumnSizing(n=>{let{[t.id]:r,...i}=n;return i})},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=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var a;n+=(a=i.column.getSize())!=null?a: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),i=r==null?void 0:r.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),Ry(a)&&a.touches&&a.touches.length>1))return;const l=t.getSize(),u=t?t.getLeafHeaders().map(w=>[w.column.id,w.column.getSize()]):[[r.id,r.getSize()]],f=Ry(a)?Math.round(a.touches[0].clientX):a.clientX,c={},d=(w,C)=>{typeof C=="number"&&(e.setColumnSizingInfo(M=>{var A,R;const D=e.options.columnResizeDirection==="rtl"?-1:1,L=(C-((A=M==null?void 0:M.startOffset)!=null?A:0))*D,O=Math.max(L/((R=M==null?void 0:M.startSize)!=null?R:0),-.999999);return M.columnSizingStart.forEach(B=>{let[H,P]=B;c[H]=Math.round(Math.max(P+P*O,0)*100)/100}),{...M,deltaOffset:L,deltaPercentage:O}}),(e.options.columnResizeMode==="onChange"||w==="end")&&e.setColumnSizing(M=>({...M,...c})))},v=w=>d("move",w),m=w=>{d("end",w),e.setColumnSizingInfo(C=>({...C,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=Y8(n),y={moveHandler:w=>v(w.clientX),upHandler:w=>{p==null||p.removeEventListener("mousemove",y.moveHandler),p==null||p.removeEventListener("mouseup",y.upHandler),m(w.clientX)}},S={moveHandler:w=>(w.cancelable&&(w.preventDefault(),w.stopPropagation()),v(w.touches[0].clientX),!1),upHandler:w=>{var C;p==null||p.removeEventListener("touchmove",S.moveHandler),p==null||p.removeEventListener("touchend",S.upHandler),w.cancelable&&(w.preventDefault(),w.stopPropagation()),m((C=w.touches[0])==null?void 0:C.clientX)}},x=X8()?{passive:!1}:!1;Ry(a)?(p==null||p.addEventListener("touchmove",S.moveHandler,x),p==null||p.addEventListener("touchend",S.upHandler,x)):(p==null||p.addEventListener("mousemove",y.moveHandler,x),p==null||p.addEventListener("mouseup",y.upHandler,x)),e.setColumnSizingInfo(w=>({...w,startOffset:f,startSize:l,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?Dy():(n=t.initialState.columnSizingInfo)!=null?n:Dy())},t.getTotalSize=()=>{var e,n;return(e=(n=t.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?e:0},t.getLeftTotalSize=()=>{var e,n;return(e=(n=t.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?e:0},t.getCenterTotalSize=()=>{var e,n;return(e=(n=t.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?e:0},t.getRightTotalSize=()=>{var e,n;return(e=(n=t.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?e:0}}};let $h=null;function X8(){if(typeof $h=="boolean")return $h;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 $h=t,$h}function Ry(t){return t.type==="touchstart"}const Z8={getInitialState:t=>({columnVisibility:{},...t}),getDefaultOptions:t=>({onColumnVisibilityChange:Fn("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 i=t.columns;return(n=i.length?i.some(a=>a.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=Ct(()=>[t.getAllCells(),e.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),Mt(e.options,"debugRows")),t.getVisibleCells=Ct(()=>[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],Mt(e.options,"debugRows"))},createTable:t=>{const e=(n,r)=>Ct(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),Mt(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((i,a)=>({...i,[a.id]:n||!(a.getCanHide!=null&&a.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 $8={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()}}},W8={getInitialState:t=>({globalFilter:void 0,...t}),getDefaultOptions:t=>({onGlobalFilterChange:Fn("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,i,a;return((n=t.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=e.options.enableGlobalFilter)!=null?r:!0)&&((i=e.options.enableFilters)!=null?i:!0)&&((a=e.options.getColumnCanGlobalFilter==null?void 0:e.options.getColumnCanGlobalFilter(t))!=null?a:!0)&&!!t.accessorFn}},createTable:t=>{t.getGlobalAutoFilterFn=()=>wi.includesString,t.getGlobalFilterFn=()=>{var e,n;const{globalFilterFn:r}=t.options;return Ov(r)?r:r==="auto"?t.getGlobalAutoFilterFn():(e=(n=t.options.filterFns)==null?void 0:n[r])!=null?e:wi[r]},t.setGlobalFilter=e=>{t.options.onGlobalFilterChange==null||t.options.onGlobalFilterChange(e)},t.resetGlobalFilter=e=>{t.setGlobalFilter(e?void 0:t.initialState.globalFilter)}}},Q8={getInitialState:t=>({expanded:{},...t}),getDefaultOptions:t=>({onExpandedChange:Fn("expanded",t),paginateExpandedRows:!0}),createTable:t=>{let e=!1,n=!1;t._autoResetExpanded=()=>{var r,i;if(!e){t._queue(()=>{e=!0});return}if((r=(i=t.options.autoResetAll)!=null?i: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 i,a;t.setExpanded(r?{}:(i=(a=t.initialState)==null?void 0:a.expanded)!=null?i:{})},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(i=>!i.getIsExpanded()))},t.getExpandedDepth=()=>{let r=0;return(t.getState().expanded===!0?Object.keys(t.getRowModel().rowsById):Object.keys(t.getState().expanded)).forEach(a=>{const l=a.split(".");r=Math.max(r,l.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 i;const a=r===!0?!0:!!(r!=null&&r[t.id]);let l={};if(r===!0?Object.keys(e.getRowModel().rowsById).forEach(u=>{l[u]=!0}):l=r,n=(i=n)!=null?i:!a,!a&&n)return{...l,[t.id]:!0};if(a&&!n){const{[t.id]:u,...f}=l;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,i;return(n=e.options.getRowCanExpand==null?void 0:e.options.getRowCanExpand(t))!=null?n:((r=e.options.enableExpanding)!=null?r:!0)&&!!((i=t.subRows)!=null&&i.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()}}}},q0=0,X0=10,Ey=()=>({pageIndex:q0,pageSize:X0}),K8={getInitialState:t=>({...t,pagination:{...Ey(),...t==null?void 0:t.pagination}}),getDefaultOptions:t=>({onPaginationChange:Fn("pagination",t)}),createTable:t=>{let e=!1,n=!1;t._autoResetPageIndex=()=>{var r,i;if(!e){t._queue(()=>{e=!0});return}if((r=(i=t.options.autoResetAll)!=null?i:t.options.autoResetPageIndex)!=null?r:!t.options.manualPagination){if(n)return;n=!0,t._queue(()=>{t.resetPageIndex(),n=!1})}},t.setPagination=r=>{const i=a=>Sa(r,a);return t.options.onPaginationChange==null?void 0:t.options.onPaginationChange(i)},t.resetPagination=r=>{var i;t.setPagination(r?Ey():(i=t.initialState.pagination)!=null?i:Ey())},t.setPageIndex=r=>{t.setPagination(i=>{let a=Sa(r,i.pageIndex);const l=typeof t.options.pageCount>"u"||t.options.pageCount===-1?Number.MAX_SAFE_INTEGER:t.options.pageCount-1;return a=Math.max(0,Math.min(a,l)),{...i,pageIndex:a}})},t.resetPageIndex=r=>{var i,a;t.setPageIndex(r?q0:(i=(a=t.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:q0)},t.resetPageSize=r=>{var i,a;t.setPageSize(r?X0:(i=(a=t.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:X0)},t.setPageSize=r=>{t.setPagination(i=>{const a=Math.max(1,Sa(r,i.pageSize)),l=i.pageSize*i.pageIndex,u=Math.floor(l/a);return{...i,pageIndex:u,pageSize:a}})},t.setPageCount=r=>t.setPagination(i=>{var a;let l=Sa(r,(a=t.options.pageCount)!=null?a:-1);return typeof l=="number"&&(l=Math.max(-1,l)),{...i,pageCount:l}}),t.getPageOptions=Ct(()=>[t.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((a,l)=>l)),i},Mt(t.options,"debugTable")),t.getCanPreviousPage=()=>t.getState().pagination.pageIndex>0,t.getCanNextPage=()=>{const{pageIndex:r}=t.getState().pagination,i=t.getPageCount();return i===-1?!0:i===0?!1:r<i-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}}},Ly=()=>({top:[],bottom:[]}),J8={getInitialState:t=>({rowPinning:Ly(),...t}),getDefaultOptions:t=>({onRowPinningChange:Fn("rowPinning",t)}),createRow:(t,e)=>{t.pin=(n,r,i)=>{const a=r?t.getLeafRows().map(f=>{let{id:c}=f;return c}):[],l=i?t.getParentRows().map(f=>{let{id:c}=f;return c}):[],u=new Set([...l,t.id,...a]);e.setRowPinning(f=>{var c,d;if(n==="bottom"){var v,m;return{top:((v=f==null?void 0:f.top)!=null?v:[]).filter(S=>!(u!=null&&u.has(S))),bottom:[...((m=f==null?void 0:f.bottom)!=null?m:[]).filter(S=>!(u!=null&&u.has(S))),...Array.from(u)]}}if(n==="top"){var p,y;return{top:[...((p=f==null?void 0:f.top)!=null?p:[]).filter(S=>!(u!=null&&u.has(S))),...Array.from(u)],bottom:((y=f==null?void 0:f.bottom)!=null?y:[]).filter(S=>!(u!=null&&u.has(S)))}}return{top:((c=f==null?void 0:f.top)!=null?c:[]).filter(S=>!(u!=null&&u.has(S))),bottom:((d=f==null?void 0:f.bottom)!=null?d:[]).filter(S=>!(u!=null&&u.has(S)))}})},t.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=e.options;return typeof r=="function"?r(t):(n=r??i)!=null?n:!0},t.getIsPinned=()=>{const n=[t.id],{top:r,bottom:i}=e.getState().rowPinning,a=n.some(u=>r==null?void 0:r.includes(u)),l=n.some(u=>i==null?void 0:i.includes(u));return a?"top":l?"bottom":!1},t.getPinnedIndex=()=>{var n,r;const i=t.getIsPinned();if(!i)return-1;const a=(n=i==="top"?e.getTopRows():e.getBottomRows())==null?void 0:n.map(l=>{let{id:u}=l;return u});return(r=a==null?void 0:a.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?Ly():(n=(r=t.initialState)==null?void 0:r.rowPinning)!=null?n:Ly())},t.getIsSomeRowsPinned=e=>{var n;const r=t.getState().rowPinning;if(!e){var i,a;return!!((i=r.top)!=null&&i.length||(a=r.bottom)!=null&&a.length)}return!!((n=r[e])!=null&&n.length)},t._getPinnedRows=(e,n,r)=>{var i;return((i=t.options.keepPinnedRows)==null||i?(n??[]).map(l=>{const u=t.getRow(l,!0);return u.getIsAllParentsExpanded()?u:null}):(n??[]).map(l=>e.find(u=>u.id===l))).filter(Boolean).map(l=>({...l,position:r}))},t.getTopRows=Ct(()=>[t.getRowModel().rows,t.getState().rowPinning.top],(e,n)=>t._getPinnedRows(e,n,"top"),Mt(t.options,"debugRows")),t.getBottomRows=Ct(()=>[t.getRowModel().rows,t.getState().rowPinning.bottom],(e,n)=>t._getPinnedRows(e,n,"bottom"),Mt(t.options,"debugRows")),t.getCenterRows=Ct(()=>[t.getRowModel().rows,t.getState().rowPinning.top,t.getState().rowPinning.bottom],(e,n,r)=>{const i=new Set([...n??[],...r??[]]);return e.filter(a=>!i.has(a.id))},Mt(t.options,"debugRows"))}},tU={getInitialState:t=>({rowSelection:{},...t}),getDefaultOptions:t=>({onRowSelectionChange:Fn("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},i=t.getPreGroupedRowModel().flatRows;return e?i.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):i.forEach(a=>{delete r[a.id]}),r})},t.toggleAllPageRowsSelected=e=>t.setRowSelection(n=>{const r=typeof e<"u"?e:!t.getIsAllPageRowsSelected(),i={...n};return t.getRowModel().rows.forEach(a=>{Z0(i,a.id,r,!0,t)}),i}),t.getPreSelectedRowModel=()=>t.getCoreRowModel(),t.getSelectedRowModel=Ct(()=>[t.getState().rowSelection,t.getCoreRowModel()],(e,n)=>Object.keys(e).length?Oy(t,n):{rows:[],flatRows:[],rowsById:{}},Mt(t.options,"debugTable")),t.getFilteredSelectedRowModel=Ct(()=>[t.getState().rowSelection,t.getFilteredRowModel()],(e,n)=>Object.keys(e).length?Oy(t,n):{rows:[],flatRows:[],rowsById:{}},Mt(t.options,"debugTable")),t.getGroupedSelectedRowModel=Ct(()=>[t.getState().rowSelection,t.getSortedRowModel()],(e,n)=>Object.keys(e).length?Oy(t,n):{rows:[],flatRows:[],rowsById:{}},Mt(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(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},t.getIsAllPageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=t.getState();let r=!!e.length;return r&&e.some(i=>!n[i.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 i=t.getIsSelected();e.setRowSelection(a=>{var l;if(n=typeof n<"u"?n:!i,t.getCanSelect()&&i===n)return a;const u={...a};return Z0(u,t.id,n,(l=r==null?void 0:r.selectChildren)!=null?l:!0,e),u})},t.getIsSelected=()=>{const{rowSelection:n}=e.getState();return SS(t,n)},t.getIsSomeSelected=()=>{const{rowSelection:n}=e.getState();return $0(t,n)==="some"},t.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=e.getState();return $0(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 i;n&&t.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},Z0=(t,e,n,r,i)=>{var a;const l=i.getRow(e,!0);n?(l.getCanMultiSelect()||Object.keys(t).forEach(u=>delete t[u]),l.getCanSelect()&&(t[e]=!0)):delete t[e],r&&(a=l.subRows)!=null&&a.length&&l.getCanSelectSubRows()&&l.subRows.forEach(u=>Z0(t,u.id,n,r,i))};function Oy(t,e){const n=t.getState().rowSelection,r=[],i={},a=function(l,u){return l.map(f=>{var c;const d=SS(f,n);if(d&&(r.push(f),i[f.id]=f),(c=f.subRows)!=null&&c.length&&(f={...f,subRows:a(f.subRows)}),d)return f}).filter(Boolean)};return{rows:a(e.rows),flatRows:r,rowsById:i}}function SS(t,e){var n;return(n=e[t.id])!=null?n:!1}function $0(t,e,n){var r;if(!((r=t.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return t.subRows.forEach(l=>{if(!(a&&!i)&&(l.getCanSelect()&&(SS(l,e)?a=!0:i=!1),l.subRows&&l.subRows.length)){const u=$0(l,e);u==="all"?a=!0:(u==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const W0=/([0-9]+)/gm,eU=(t,e,n)=>SL(Ra(t.getValue(n)).toLowerCase(),Ra(e.getValue(n)).toLowerCase()),nU=(t,e,n)=>SL(Ra(t.getValue(n)),Ra(e.getValue(n))),rU=(t,e,n)=>xS(Ra(t.getValue(n)).toLowerCase(),Ra(e.getValue(n)).toLowerCase()),iU=(t,e,n)=>xS(Ra(t.getValue(n)),Ra(e.getValue(n))),aU=(t,e,n)=>{const r=t.getValue(n),i=e.getValue(n);return r>i?1:r<i?-1:0},oU=(t,e,n)=>xS(t.getValue(n),e.getValue(n));function xS(t,e){return t===e?0:t>e?1:-1}function Ra(t){return typeof t=="number"?isNaN(t)||t===1/0||t===-1/0?"":String(t):typeof t=="string"?t:""}function SL(t,e){const n=t.split(W0).filter(Boolean),r=e.split(W0).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),a=r.shift(),l=parseInt(i,10),u=parseInt(a,10),f=[l,u].sort();if(isNaN(f[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(f[1]))return isNaN(l)?-1:1;if(l>u)return 1;if(u>l)return-1}return n.length-r.length}const Bu={alphanumeric:eU,alphanumericCaseSensitive:nU,text:rU,textCaseSensitive:iU,datetime:aU,basic:oU},lU={getInitialState:t=>({sorting:[],...t}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:t=>({onSortingChange:Fn("sorting",t),isMultiSortEvent:e=>e.shiftKey}),createColumn:(t,e)=>{t.getAutoSortingFn=()=>{const n=e.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const a=i==null?void 0:i.getValue(t.id);if(Object.prototype.toString.call(a)==="[object Date]")return Bu.datetime;if(typeof a=="string"&&(r=!0,a.split(W0).length>1))return Bu.alphanumeric}return r?Bu.text:Bu.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 Ov(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:Bu[t.columnDef.sortingFn]},t.toggleSorting=(n,r)=>{const i=t.getNextSortingOrder(),a=typeof n<"u"&&n!==null;e.setSorting(l=>{const u=l==null?void 0:l.find(p=>p.id===t.id),f=l==null?void 0:l.findIndex(p=>p.id===t.id);let c=[],d,v=a?n:i==="desc";if(l!=null&&l.length&&t.getCanMultiSort()&&r?u?d="toggle":d="add":l!=null&&l.length&&f!==l.length-1?d="replace":u?d="toggle":d="replace",d==="toggle"&&(a||i||(d="remove")),d==="add"){var m;c=[...l,{id:t.id,desc:v}],c.splice(0,c.length-((m=e.options.maxMultiSortColCount)!=null?m:Number.MAX_SAFE_INTEGER))}else d==="toggle"?c=l.map(p=>p.id===t.id?{...p,desc:v}:p):d==="remove"?c=l.filter(p=>p.id!==t.id):c=[{id:t.id,desc:v}];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,i;const a=t.getFirstSortDir(),l=t.getIsSorted();return l?l!==a&&((r=e.options.enableSortingRemoval)==null||r)&&(!(n&&(i=e.options.enableMultiRemove)!=null)||i)?!1:l==="desc"?"asc":"desc":a},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(i=>i.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(i=>i.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())}},sU=[D8,Z8,U8,j8,E8,L8,$8,W8,lU,F8,Q8,K8,J8,tU,q8];function uU(t){var e,n;const r=[...sU,...(e=t._features)!=null?e:[]];let i={_features:r};const a=i._features.reduce((m,p)=>Object.assign(m,p.getDefaultOptions==null?void 0:p.getDefaultOptions(i)),{}),l=m=>i.options.mergeOptions?i.options.mergeOptions(a,m):{...a,...m};let f={...{},...(n=t.initialState)!=null?n:{}};i._features.forEach(m=>{var p;f=(p=m.getInitialState==null?void 0:m.getInitialState(f))!=null?p:f});const c=[];let d=!1;const v={_features:r,options:{...a,...t},initialState:f,_queue:m=>{c.push(m),d||(d=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();d=!1}).catch(p=>setTimeout(()=>{throw p})))},reset:()=>{i.setState(i.initialState)},setOptions:m=>{const p=Sa(m,i.options);i.options=l(p)},getState:()=>i.options.state,setState:m=>{i.options.onStateChange==null||i.options.onStateChange(m)},_getRowId:(m,p,y)=>{var S;return(S=i.options.getRowId==null?void 0:i.options.getRowId(m,p,y))!=null?S:`${y?[y.id,p].join("."):p}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(m,p)=>{let y=(p?i.getPrePaginationRowModel():i.getRowModel()).rowsById[m];if(!y&&(y=i.getCoreRowModel().rowsById[m],!y))throw new Error;return y},_getDefaultColumnDef:Ct(()=>[i.options.defaultColumn],m=>{var p;return m=(p=m)!=null?p:{},{header:y=>{const S=y.header.column.columnDef;return S.accessorKey?S.accessorKey:S.accessorFn?S.id:null},cell:y=>{var S,x;return(S=(x=y.renderValue())==null||x.toString==null?void 0:x.toString())!=null?S:null},...i._features.reduce((y,S)=>Object.assign(y,S.getDefaultColumnDef==null?void 0:S.getDefaultColumnDef()),{}),...m}},Mt(t,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:Ct(()=>[i._getColumnDefs()],m=>{const p=function(y,S,x){return x===void 0&&(x=0),y.map(w=>{const C=A8(i,w,x,S),M=w;return C.columns=M.columns?p(M.columns,C,x+1):[],C})};return p(m)},Mt(t,"debugColumns")),getAllFlatColumns:Ct(()=>[i.getAllColumns()],m=>m.flatMap(p=>p.getFlatColumns()),Mt(t,"debugColumns")),_getAllFlatColumnsById:Ct(()=>[i.getAllFlatColumns()],m=>m.reduce((p,y)=>(p[y.id]=y,p),{}),Mt(t,"debugColumns")),getAllLeafColumns:Ct(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(m,p)=>{let y=m.flatMap(S=>S.getLeafColumns());return p(y)},Mt(t,"debugColumns")),getColumn:m=>i._getAllFlatColumnsById()[m]};Object.assign(i,v);for(let m=0;m<i._features.length;m++){const p=i._features[m];p==null||p.createTable==null||p.createTable(i)}return i}function fU(){return t=>Ct(()=>[t.options.data],e=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,a,l){a===void 0&&(a=0);const u=[];for(let c=0;c<i.length;c++){const d=R8(t,t._getRowId(i[c],c,l),i[c],c,a,void 0,l==null?void 0:l.id);if(n.flatRows.push(d),n.rowsById[d.id]=d,u.push(d),t.options.getSubRows){var f;d.originalSubRows=t.options.getSubRows(i[c],c),(f=d.originalSubRows)!=null&&f.length&&(d.subRows=r(d.originalSubRows,a+1,d))}}return u};return n.rows=r(e),n},Mt(t.options,"debugTable","getRowModel",()=>t._autoResetPageIndex()))}function cU(){return t=>Ct(()=>[t.getState().sorting,t.getPreSortedRowModel()],(e,n)=>{if(!n.rows.length||!(e!=null&&e.length))return n;const r=t.getState().sorting,i=[],a=r.filter(f=>{var c;return(c=t.getColumn(f.id))==null?void 0:c.getCanSort()}),l={};a.forEach(f=>{const c=t.getColumn(f.id);c&&(l[f.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const u=f=>{const c=f.map(d=>({...d}));return c.sort((d,v)=>{for(let p=0;p<a.length;p+=1){var m;const y=a[p],S=l[y.id],x=S.sortUndefined,w=(m=y==null?void 0:y.desc)!=null?m:!1;let C=0;if(x){const M=d.getValue(y.id),A=v.getValue(y.id),R=M===void 0,D=A===void 0;if(R||D){if(x==="first")return R?-1:1;if(x==="last")return R?1:-1;C=R&&D?0:R?x:-x}}if(C===0&&(C=S.sortingFn(d,v,y.id)),C!==0)return w&&(C*=-1),S.invertSorting&&(C*=-1),C}return d.index-v.index}),c.forEach(d=>{var v;i.push(d),(v=d.subRows)!=null&&v.length&&(d.subRows=u(d.subRows))}),c};return{rows:u(n.rows),flatRows:i,rowsById:n.rowsById}},Mt(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 kA(t,e){return t?hU(t)?mt.createElement(t,e):t:null}function hU(t){return dU(t)||typeof t=="function"||vU(t)}function dU(t){return typeof t=="function"&&(()=>{const e=Object.getPrototypeOf(t);return e.prototype&&e.prototype.isReactComponent})()}function vU(t){return typeof t=="object"&&typeof t.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(t.$$typeof.description)}function gU(t){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[n]=mt.useState(()=>({current:uU(e)})),[r,i]=mt.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...t,state:{...r,...t.state},onStateChange:l=>{i(l),t.onStateChange==null||t.onStateChange(l)}})),n.current}var pU=ZA();function Pl(t,e,n){let r=n.initialDeps??[],i,a=!0;function l(){var u,f,c;let d;n.key&&((u=n.debug)!=null&&u.call(n))&&(d=Date.now());const v=t();if(!(v.length!==r.length||v.some((y,S)=>r[S]!==y)))return i;r=v;let p;if(n.key&&((f=n.debug)!=null&&f.call(n))&&(p=Date.now()),i=e(...v),n.key&&((c=n.debug)!=null&&c.call(n))){const y=Math.round((Date.now()-d)*100)/100,S=Math.round((Date.now()-p)*100)/100,x=S/16,w=(C,M)=>{for(C=String(C);C.length<M;)C=" "+C;return C};console.info(`%c⏱ ${w(S,5)} /${w(y,5)} ms`,`
111
+ font-size: .6rem;
112
+ font-weight: bold;
113
+ color: hsl(${Math.max(0,Math.min(120-120*x,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1,i}return l.updateDeps=u=>{r=u},l}function HA(t,e){if(t===void 0)throw new Error("Unexpected undefined");return t}const mU=(t,e)=>Math.abs(t-e)<1.01,yU=(t,e,n)=>{let r;return function(...i){t.clearTimeout(r),r=t.setTimeout(()=>e.apply(this,i),n)}},VA=t=>{const{offsetWidth:e,offsetHeight:n}=t;return{width:e,height:n}},_U=t=>t,SU=t=>{const e=Math.max(t.startIndex-t.overscan,0),n=Math.min(t.endIndex+t.overscan,t.count-1),r=[];for(let i=e;i<=n;i++)r.push(i);return r},xU=(t,e)=>{const n=t.scrollElement;if(!n)return;const r=t.targetWindow;if(!r)return;const i=l=>{const{width:u,height:f}=l;e({width:Math.round(u),height:Math.round(f)})};if(i(VA(n)),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(l=>{const u=()=>{const f=l[0];if(f!=null&&f.borderBoxSize){const c=f.borderBoxSize[0];if(c){i({width:c.inlineSize,height:c.blockSize});return}}i(VA(n))};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(u):u()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},FA={passive:!0},GA=typeof window>"u"?!0:"onscrollend"in window,bU=(t,e)=>{const n=t.scrollElement;if(!n)return;const r=t.targetWindow;if(!r)return;let i=0;const a=t.options.useScrollendEvent&&GA?()=>{}:yU(r,()=>{e(i,!1)},t.options.isScrollingResetDelay),l=d=>()=>{const{horizontal:v,isRtl:m}=t.options;i=v?n.scrollLeft*(m&&-1||1):n.scrollTop,a(),e(i,d)},u=l(!0),f=l(!1);n.addEventListener("scroll",u,FA);const c=t.options.useScrollendEvent&&GA;return c&&n.addEventListener("scrollend",f,FA),()=>{n.removeEventListener("scroll",u),c&&n.removeEventListener("scrollend",f)}},wU=(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"]},CU=(t,{adjustments:e=0,behavior:n},r)=>{var i,a;const l=t+e;(a=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class MU{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,i;return((i=(r=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:r.now)==null?void 0:i.call(r))??Date.now()},this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{const l=()=>{const u=a.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,a,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var a;return(a=r())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=r())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:_U,rangeExtractor:SU,onChange:()=>{},measureElement:wU,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,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=Pl(()=>(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(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=a,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 i=new Map,a=new Map;for(let l=r-1;l>=0;l--){const u=n[l];if(i.has(u.lane))continue;const f=a.get(u.lane);if(f==null||u.end>f.end?a.set(u.lane,u):u.end<f.end&&i.set(u.lane,!0),i.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((l,u)=>l.end===u.end?l.index-u.index:l.end-u.end)[0]:void 0},this.getMeasurementOptions=Pl(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,r,i,a,l,u)=>(this.prevLanes!==void 0&&this.prevLanes!==u&&(this.lanesChangedFlag=!0),this.prevLanes=u,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:l,lanes:u}),{key:!1}),this.getMeasurements=Pl(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:l,lanes:u},f)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const m of this.laneAssignments.keys())m>=n&&this.laneAssignments.delete(m);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(m=>{this.itemSizeCache.set(m.key,m.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 d=this.measurementsCache.slice(0,c),v=new Array(u).fill(void 0);for(let m=0;m<c;m++){const p=d[m];p&&(v[p.lane]=m)}for(let m=c;m<n;m++){const p=a(m),y=this.laneAssignments.get(m);let S,x;if(y!==void 0&&this.options.lanes>1){S=y;const A=v[S],R=A!==void 0?d[A]:void 0;x=R?R.end+this.options.gap:r+i}else{const A=this.options.lanes===1?d[m-1]:this.getFurthestMeasurement(d,m);x=A?A.end+this.options.gap:r+i,S=A?A.lane:m%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(m,S)}const w=f.get(p),C=typeof w=="number"?w:this.options.estimateSize(m),M=x+C;d[m]={index:m,start:x,size:C,end:M,key:p,lane:S},v[S]=m}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Pl(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,a)=>this.range=n.length>0&&r>0?TU({measurements:n,outerSize:r,scrollOffset:i,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Pl(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,a,l)=>a===null||l===null?[]:n({startIndex:a,endIndex:l,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,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 i=this.scrollState.index??((r=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:r.index);if(i!==void 0&&this.range){const a=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,i-a),u=Math.min(this.options.count-1,i+a);return n>=l&&n<=u}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((l,u)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(u))});return}const r=this.indexFromElement(n),i=this.options.getItemKey(r),a=this.elementsCache.get(i);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(i,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,r)=>{var i;const a=this.measurementsCache[n];if(!a)return;const l=this.itemSizeCache.get(a.key)??a.size,u=r-l;u!==0&&(((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,u,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,r)),this.notify(!1))},this.getVirtualItems=Pl(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let a=0,l=n.length;a<l;a++){const u=n[a],f=r[u];i.push(f)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return HA(r[xL(0,r.length-1,i=>HA(r[i]).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,i=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),l=this.getScrollOffset();r==="auto"&&(r=n>=l+a?"end":"start"),r==="center"?n+=(i-a)/2:r==="end"&&(n-=a);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 i=this.getSize(),a=this.getScrollOffset(),l=this.measurementsCache[n];if(!l)return;if(r==="auto")if(l.end>=a+i-this.options.scrollPaddingEnd)r="end";else if(l.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];if(r==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),r];const u=r==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(u,r,l.size),r]},this.scrollToOffset=(n,{align:r="start",behavior:i="auto"}={})=>{const a=this.getOffsetForAlignment(n,r),l=this.now();this.scrollState={index:null,align:r,behavior:i,startedAt:l,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:r="auto",behavior:i="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.getOffsetForIndex(n,r);if(!a)return;const[l,u]=a,f=this.now();this.scrollState={index:n,align:u,behavior:i,startedAt:f,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:r="auto"}={})=>{const i=this.getScrollOffset()+n,a=this.now();this.scrollState={index:null,align:"start",behavior:r,startedAt:a,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let l=r.length-1;for(;l>=0&&a.some(u=>u===null);){const u=r[l];a[u.lane]===null&&(a[u.lane]=u.end),l--}i=Math.max(...a.filter(u=>u!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,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,i=r?r[0]:this.scrollState.lastTargetOffset,a=1,l=i!==this.scrollState.lastTargetOffset;if(!l&&mU(i,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=a){this.scrollState=null;return}}else this.scrollState.stableFrames=0,l&&(this.scrollState.lastTargetOffset=i,this.scrollState.behavior="auto",this._scrollToOffset(i,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const xL=(t,e,n,r)=>{for(;t<=e;){const i=(t+e)/2|0,a=n(i);if(a<r)t=i+1;else if(a>r)e=i-1;else return i}return t>0?t-1:0};function TU({measurements:t,outerSize:e,scrollOffset:n,lanes:r}){const i=t.length-1,a=f=>t[f].start;if(t.length<=r)return{startIndex:0,endIndex:i};let l=xL(0,i,a,n),u=l;if(r===1)for(;u<i&&t[u].end<n+e;)u++;else if(r>1){const f=Array(r).fill(0);for(;u<i&&f.some(d=>d<n+e);){const d=t[u];f[d.lane]=d.end,u++}const c=Array(r).fill(n+e);for(;l>=0&&c.some(d=>d>=n);){const d=t[l];c[d.lane]=d.start,l--}l=Math.max(0,l-l%r),u=Math.min(i,u+(r-1-u%r))}return{startIndex:l,endIndex:u}}const UA=typeof document<"u"?mt.useLayoutEffect:mt.useEffect;function AU({useFlushSync:t=!0,...e}){const n=mt.useReducer(()=>({}),{})[1],r={...e,onChange:(a,l)=>{var u;t&&l?pU.flushSync(n):n(),(u=e.onChange)==null||u.call(e,a,l)}},[i]=mt.useState(()=>new MU(r));return i.setOptions(r),UA(()=>i._didMount(),[]),UA(()=>i._willUpdate()),i}function DU(t){return AU({observeElementRect:xU,observeElementOffset:bU,scrollToFn:CU,...t})}function jA(t){return t==null?"—":t>=1e9?(t/1e9).toFixed(1)+"B":t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":t.toLocaleString()}function YA(t){return t==null?"—":"$"+t.toFixed(2)}function qA(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 RU(t){return t?new Date(t*1e3).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}const _r=w8(),EU={review:"tag-review",exploration:"tag-exploration",planning:"tag-planning",memory:"tag-memory",generic:"tag-generic"};function LU({data:t}){const[e,n]=mt.useState(""),[r,i]=mt.useState([{id:"started_at",desc:!0}]),a=mt.useRef(null),l=mt.useMemo(()=>{if(!(t!=null&&t.data))return[];const S=e.toLowerCase();return S?t.data.filter(x=>(x.repo_label||"").toLowerCase().includes(S)||(x.model_name||"").toLowerCase().includes(S)||(x.agent_role||"").toLowerCase().includes(S)||(x.agent_nickname||"").toLowerCase().includes(S)||(x.title||"").toLowerCase().includes(S)||(x.descendant_models||[]).some(w=>(w||"").toLowerCase().includes(S))||(x.descendant_families||[]).some(w=>(w||"").toLowerCase().includes(S))||(x.descendant_roles||[]).some(w=>(w||"").toLowerCase().includes(S))||(x.descendant_nicknames||[]).some(w=>(w||"").toLowerCase().includes(S))||(x.related_titles||[]).some(w=>(w||"").toLowerCase().includes(S))):t.data},[t,e]),u=mt.useMemo(()=>[_r.accessor("started_at",{header:"Time",cell:S=>RU(S.getValue()),size:130}),_r.accessor("repo_label",{header:"Repo",cell:S=>S.getValue()||"—",size:140}),_r.accessor("model_name",{header:"Model",cell:S=>z.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:"0.72rem"},children:S.getValue()||"?"}),size:130}),_r.accessor("thread_count",{header:"Threads",cell:S=>{const x=S.getValue()||1,w=S.row.original;return x>1?`${x} (${w.subagent_count||0} sub)`:"1"},size:92}),_r.accessor("agent_family",{header:"Root",cell:S=>z.jsx("span",{className:`tag ${EU[S.getValue()]||"tag-generic"}`,children:S.getValue()}),size:100}),_r.accessor("agent_nickname",{header:"Agent",cell:S=>S.getValue()||"—",size:85}),_r.accessor("reasoning_effort",{header:"Effort",cell:S=>S.getValue()||"—",size:70}),_r.accessor("elapsed_seconds",{header:"Duration",cell:S=>qA(S.getValue()),size:85}),_r.accessor("tokens_used",{header:"Tokens",cell:S=>z.jsx("span",{style:{fontFamily:"var(--font-mono)"},children:jA(S.getValue())}),size:90}),_r.accessor("cost",{header:"Cost",cell:S=>z.jsx("span",{style:{fontFamily:"var(--font-mono)"},children:S.getValue()!=null?YA(S.getValue()):"—"}),size:80}),_r.accessor("title",{header:"Title",cell:S=>z.jsx("span",{title:S.getValue(),style:{opacity:.6},children:(S.getValue()||"").slice(0,55)}),size:240})],[]),f=gU({data:l,columns:u,state:{sorting:r},onSortingChange:i,getCoreRowModel:fU(),getSortedRowModel:cU()}),c=f.getRowModel().rows,d=mt.useMemo(()=>l.reduce((S,x)=>(S.sessions+=1,S.tokens+=x.tokens_used||0,S.cost+=x.cost||0,S.elapsed+=x.elapsed_seconds||0,S),{sessions:0,tokens:0,cost:0,elapsed:0}),[l]),v=DU({count:c.length,getScrollElement:()=>a.current,estimateSize:()=>36,overscan:10,getItemKey:S=>{var x;return((x=c[S])==null?void 0:x.id)??S}}),m=v.getVirtualItems(),p=m.length>0?m[0].start:0,y=m.length>0?v.getTotalSize()-m[m.length-1].end:0;return z.jsx("div",{className:"animate-in",children:z.jsxs("div",{className:"table-wrap",children:[z.jsx("div",{className:"table-search",children:z.jsx("input",{placeholder:"Search sessions...",value:e,onChange:S=>n(S.target.value)})}),z.jsxs("div",{style:{fontSize:"0.7rem",color:"var(--text-muted)",padding:"0.4rem 1rem",borderBottom:"1px solid var(--border)"},children:[l.length.toLocaleString()," root sessions",t&&!t.complete&&z.jsx("span",{className:"incomplete-badge",style:{marginLeft:"0.5rem"},children:"partial"})]}),z.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:[z.jsxs("span",{children:["Filtered sessions: ",z.jsx("strong",{style:{color:"var(--text-secondary)"},children:d.sessions.toLocaleString()})]}),z.jsxs("span",{children:["Tokens: ",z.jsx("strong",{style:{color:"var(--text-secondary)"},children:jA(d.tokens)})]}),z.jsxs("span",{children:["Cost: ",z.jsx("strong",{style:{color:"var(--text-secondary)"},children:YA(d.cost)})]}),z.jsxs("span",{children:["Time: ",z.jsx("strong",{style:{color:"var(--text-secondary)"},children:qA(d.elapsed)})]})]}),z.jsx("div",{ref:a,style:{height:"600px",overflow:"auto"},children:z.jsxs("table",{style:{tableLayout:"fixed",width:"100%"},children:[z.jsx("thead",{style:{position:"sticky",top:0,background:"var(--bg-card)",zIndex:1},children:f.getHeaderGroups().map(S=>z.jsx("tr",{children:S.headers.map(x=>z.jsxs("th",{style:{width:x.getSize()},onClick:x.column.getToggleSortingHandler(),children:[kA(x.column.columnDef.header,x.getContext()),{asc:" ↑",desc:" ↓"}[x.column.getIsSorted()]||""]},x.id))},S.id))}),z.jsxs("tbody",{children:[m.length===0&&z.jsx("tr",{children:z.jsx("td",{colSpan:u.length,style:{textAlign:"center",padding:"2rem",color:"var(--text-muted)"},children:"No sessions"})}),p>0&&z.jsx("tr",{children:z.jsx("td",{colSpan:u.length,style:{height:`${p}px`,padding:0,borderBottom:"none"}})}),m.map(S=>{const x=c[S.index];return z.jsx("tr",{style:{height:S.size},children:x.getVisibleCells().map(w=>z.jsx("td",{style:{width:w.column.getSize()},children:kA(w.column.columnDef.cell,w.getContext())},w.id))},x.id)}),y>0&&z.jsx("tr",{children:z.jsx("td",{colSpan:u.length,style:{height:`${y}px`,padding:0,borderBottom:"none"}})})]})]})})]})})}function bL(){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 OU(t,e,n){var i,a,l,u,f,c;const r=n==="bootstrap"||!t||t.ingest_id!==e.ingest_id?bL():{...t};return r.ingest_id=e.ingest_id,r.seq=e.seq,(i=e.data)!=null&&i.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=zy(t==null?void 0:t.repos,(a=e.data)==null?void 0:a.repos,r.repos),r.models=zy(t==null?void 0:t.models,(l=e.data)==null?void 0:l.models,r.models),r.families=zy(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 zy(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 i of["total","d7","d30"])e[i]&&(r[i]=e[i]);return r}function zU(t,e){var n,r;return t?{overview:{data:t.overview,complete:(e==null?void 0:e.complete)||!1,coverage:((r=(n=t.overview)==null?void 0:n.total)==null?void 0:r.coverage)||{total:0,enriched:0,priced:0,time_valid:0},generated_at:(e==null?void 0:e.generated_at)||null},repos:{data:t.repos,complete:(e==null?void 0:e.complete)||!1,generated_at:(e==null?void 0:e.generated_at)||null},models:{data:t.models,complete:(e==null?void 0:e.complete)||!1,generated_at:(e==null?void 0:e.generated_at)||null},families:{data:t.families,complete:(e==null?void 0:e.complete)||!1,generated_at:(e==null?void 0:e.generated_at)||null},daily:{data:Object.entries(t.daily).sort(([i],[a])=>i.localeCompare(a)).map(([i,a])=>({date:i,...a})),complete:(e==null?void 0:e.complete)||!1,generated_at:(e==null?void 0:e.generated_at)||null},heatmap:{data:t.heatmap,complete:(e==null?void 0:e.complete)||!1,generated_at:(e==null?void 0:e.generated_at)||null}}:null}function NU(t,e,n=0){var i,a,l,u,f,c;const r=bL();return r.ingest_id=e||null,r.seq=n,r.overview=((i=t==null?void 0:t.overview)==null?void 0:i.data)||r.overview,r.repos=((a=t==null?void 0:t.repos)==null?void 0:a.data)||r.repos,r.models=((l=t==null?void 0:t.models)==null?void 0:l.data)||r.models,r.families=((u=t==null?void 0:t.families)==null?void 0:u.data)||r.families,r.daily=Object.fromEntries((((f=t==null?void 0:t.daily)==null?void 0:f.data)||[]).map(d=>[d.date,{...d}])),r.heatmap=((c=t==null?void 0:t.heatmap)==null?void 0:c.data)||r.heatmap,r}const IU=["Overview","Repos","Models","Daily","Sessions"],BU=[{key:"d7",label:"7d"},{key:"d30",label:"30d"},{key:"total",label:"All"}];function XA(t){return t?new Date(t*1e3).toLocaleDateString("en-US",{month:"short",day:"2-digit"}):"—"}const PU={idle:"Starting...",inventory:"Reading threads",normalizing:"Normalizing",enrichment:"Enriching rollouts",aggregation:"Building aggregates",finalizing:"Finalizing view",complete:"Complete",error:"Error"};function kU(){const[t,e]=mt.useState(null),[n,r]=mt.useState("Overview"),[i,a]=mt.useState("total"),[l,u]=mt.useState({}),[f,c]=mt.useState(null),[d,v]=mt.useState(!0),[m,p]=mt.useState(!1),[y,S]=mt.useState(!1),[x,w]=mt.useState(!1),[C,M]=mt.useState(!1),A=mt.useCallback(async()=>{try{const[j,rt,it,N,U,at,ot]=await Promise.all([zr.overview(),zr.repos(),zr.models(),zr.daily(),zr.sessions(),zr.heatmap(),zr.families()]),ct={overview:j,repos:rt,models:it,daily:N,sessions:U,heatmap:at,families:ot};return u(ct),ct}catch(j){throw console.error("Fetch error:",j),j}},[]),R=mt.useCallback(async()=>{if(!C)try{M(!0),r("Overview"),await zr.rerun(),window.location.reload()}catch(j){console.error("Rerun error:",j),M(!1)}},[C]);mt.useEffect(()=>{let j=!0,rt=null,it=null,N=!1,U=!1,at=!1,ot=[],ct=0,dt=null,st=null;const Bt=()=>{if(ct=0,!j||ot.length===0)return;let Ot=dt,pt=st;for(const me of ot){const{payload:be,mode:Zr,progressOnly:Bo}=me;if(pt=be.progress,!Bo){if(Ot&&be.ingest_id===Ot.ingest_id&&be.seq<=Ot.seq)continue;Ot=OU(Ot,be,Zr)}}ot=[],pt!==st&&(st=pt,e(pt)),Ot!==dt&&(dt=Ot,c(Ot))},xt=(Ot,pt,me=!1)=>{ot.push({payload:Ot,mode:pt,progressOnly:me}),ct||(ct=requestAnimationFrame(Bt))},Yt=async(Ot,pt=null)=>{if(!j||!(Ot!=null&&Ot.complete)||at)return;at=!0;const me=await A();if(!j||!me)return;const be=NU(me,(dt==null?void 0:dt.ingest_id)||pt||null,(dt==null?void 0:dt.seq)||0);dt=be,c(be)},yt=()=>{if(N||!j)return;N=!0;const Ot=async()=>{try{const pt=await zr.progress();if(!j)return;if(e(pt),pt.percent>.1&&await A(),pt.complete){await A(),clearInterval(rt);return}(pt.error||pt.phase==="error")&&clearInterval(rt)}catch(pt){console.error("Polling fallback error:",pt)}};Ot(),rt=setInterval(Ot,1200)};return(()=>{if(typeof EventSource>"u"){yt();return}it=zr.live(),it.addEventListener("bootstrap",Ot=>{if(!j)return;const pt=JSON.parse(Ot.data);xt(pt,"bootstrap"),Yt(pt.progress,pt.ingest_id).catch(me=>{console.error("Settled fetch error:",me),at=!1})}),it.addEventListener("progress",Ot=>{if(!j)return;const pt=JSON.parse(Ot.data);xt(pt,"progress",!0),Yt(pt.progress,pt.ingest_id).catch(me=>{console.error("Settled fetch error:",me),at=!1})}),it.addEventListener("patch",Ot=>{if(!j)return;const pt=JSON.parse(Ot.data);xt(pt,"patch")}),it.addEventListener("complete",async Ot=>{if(!j)return;const pt=JSON.parse(Ot.data);U=!0,xt(pt,"progress",!0),await Yt(pt.progress,pt.ingest_id),j&&(it==null||it.close())}),it.addEventListener("ingest-error",Ot=>{if(!j)return;const pt=JSON.parse(Ot.data);U=!0,xt(pt,"progress",!0),it==null||it.close()}),it.addEventListener("error",Ot=>{j&&(U||(console.error("SSE stream error:",Ot),it==null||it.close(),yt()))})})(),()=>{j=!1,clearInterval(rt),ct&&cancelAnimationFrame(ct),it==null||it.close()}},[A]),mt.useEffect(()=>{if(t){if(t.percent>.1&&d&&!m){p(!0);const j=setTimeout(()=>v(!1),600);return()=>clearTimeout(j)}if(t.complete&&d&&!m){p(!0);const j=setTimeout(()=>v(!1),600);return()=>clearTimeout(j)}}},[t,d,m]);const D=t==null?void 0:t.complete,L=Math.round(((t==null?void 0:t.percent)||0)*100);mt.useEffect(()=>{D&&!y&&S(!0),D||(S(!1),w(!1))},[D,y]),mt.useEffect(()=>{if(!y)return;const j=setTimeout(()=>w(!0),350);return()=>clearTimeout(j)},[y]);const O=mt.useMemo(()=>f?zU(f,t):null,[f,t]),B=O?O.overview:l.overview,H=O?O.heatmap:l.heatmap,P=O?O.daily:l.daily,q=O?O.families:l.families,$=O?O.repos:l.repos,W=O?O.models:l.models,J=B==null?void 0:B.data,V=(J==null?void 0:J[i])||(J==null?void 0:J.total)||{},K=V==null?void 0:V.date_range;return z.jsxs("div",{className:"app",children:[d&&z.jsxs("div",{className:`loading-overlay ${m?"fading":""}`,children:[z.jsx("div",{className:"loading-logo",children:"CodexMeter"}),z.jsx("div",{className:"loading-bar-wrap",children:z.jsx("div",{className:"loading-bar",style:{width:`${L}%`}})}),z.jsx("div",{className:"loading-phase",children:PU[t==null?void 0:t.phase]||"Starting..."}),(t==null?void 0:t.phase)==="enrichment"&&z.jsxs("div",{className:"loading-detail",children:[t.enriched,"/",t.needs_enrichment," rollouts",t.current_date_bucket&&` — ${t.current_date_bucket}`]}),(t==null?void 0:t.phase)==="error"&&(t==null?void 0:t.error)&&z.jsx("div",{className:"loading-detail",children:t.error}),z.jsxs("div",{className:"loading-footer",children:["Made with ",z.jsx("span",{className:"loading-heart",children:"♥"})," by JJ"]})]}),z.jsxs("div",{className:`app-content ${m||!d?"app-content-revealed":""}`,children:[z.jsx("nav",{className:"navbar",children:z.jsxs("div",{className:"navbar-inner",children:[z.jsx("span",{className:"navbar-brand",children:"CodexMeter"}),z.jsx("div",{className:"navbar-tabs",children:IU.map(j=>z.jsx("button",{className:`navbar-tab ${n===j?"active":""}`,onClick:()=>r(j),disabled:!D&&j!=="Overview",children:j},j))}),z.jsxs("div",{className:"navbar-meta",children:[(!D||!x)&&z.jsxs("div",{className:`navbar-ingest-wrap ${y?"navbar-ingest-fade-out":""}`,children:[z.jsx("div",{className:"navbar-progress-wrap",children:z.jsx("div",{className:"navbar-progress-bar",style:{width:`${L}%`}})}),z.jsxs("span",{className:"incomplete-badge ingesting-badge",children:["ingesting ",z.jsxs("span",{className:"ingesting-pct",children:[L,"%"]})]})]}),K&&z.jsxs("div",{className:`navbar-date-wrap ${D?"":"navbar-date-wrap-dimmed"}`,children:[z.jsxs("span",{className:"navbar-date",style:{fontSize:"0.78rem",color:"var(--text-muted)",fontFamily:"var(--font-mono)"},children:[XA(K.from)," — ",XA(K.to)]}),z.jsx("div",{className:"range-toggle",children:BU.map(j=>z.jsx("button",{className:`range-btn ${i===j.key?"active":""}`,onClick:()=>a(j.key),disabled:!D,children:j.label},j.key))}),z.jsx("button",{type:"button",className:"icon-btn","aria-label":"Rerun ingest",title:"Rerun ingest",onClick:R,disabled:C||!D,children:"↻"})]})]})]})}),z.jsxs("div",{className:"main-content",children:[n==="Overview"&&z.jsx(i8,{data:B,heatmap:H,daily:P,families:q,repos:$,models:W,range:i}),n==="Repos"&&z.jsx(f8,{data:l.repos}),n==="Models"&&z.jsx(g8,{data:l.models}),n==="Daily"&&z.jsx(b8,{data:l.daily,range:i}),n==="Sessions"&&z.jsx(LU,{data:l.sessions})]}),z.jsxs("div",{className:"app-footer",children:["Made with ",z.jsx("span",{className:"loading-heart",children:"♥"})," by JJ"]})]})]})}Jz.createRoot(document.getElementById("root")).render(z.jsx(K0.StrictMode,{children:z.jsx(kU,{})}));