codexmeter 1.0.2 → 1.0.3
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.
- package/README.md +2 -1
- package/dist/assets/index-CBnwoOLi.js +117 -0
- package/dist/assets/index-DhDq9dI8.css +1 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/server/aggregator.js +9 -5
- package/server/export-video.js +501 -44
- package/server/index.js +17 -2
- package/server/live-state.js +9 -6
- package/src/utils/animationsDefault.js +42 -6
- package/dist/assets/index-C0qLYGUY.css +0 -1
- package/dist/assets/index-M87czq50.js +0 -113
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function rS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function OI(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var Fm={exports:{}},ku={};/**
|
|
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 zM;function zI(){if(zM)return ku;zM=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,a,i){var o=null;if(i!==void 0&&(o=""+i),a.key!==void 0&&(o=""+a.key),"key"in a){i={};for(var u in a)u!=="key"&&(i[u]=a[u])}else i=a;return a=i.ref,{$$typeof:t,type:r,key:o,ref:a!==void 0?a:null,props:i}}return ku.Fragment=e,ku.jsx=n,ku.jsxs=n,ku}var NM;function NI(){return NM||(NM=1,Fm.exports=zI()),Fm.exports}var B=NI(),Vm={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 IM;function II(){if(IM)return Lt;IM=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),p=Symbol.iterator;function g(k){return k===null||typeof k!="object"?null:(k=p&&k[p]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function x(k,q,rt){this.props=k,this.context=q,this.refs=S,this.updater=rt||y}x.prototype.isReactComponent={},x.prototype.setState=function(k,q){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,q,"setState")},x.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function M(){}M.prototype=x.prototype;function C(k,q,rt){this.props=k,this.context=q,this.refs=S,this.updater=rt||y}var T=C.prototype=new M;T.constructor=C,_(T,x.prototype),T.isPureReactComponent=!0;var R=Array.isArray;function D(){}var E={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function I(k,q,rt){var lt=rt.ref;return{$$typeof:t,type:k,key:q,ref:lt!==void 0?lt:null,props:rt}}function N(k,q){return I(k.type,q,k.props)}function L(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function F(k){var q={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(rt){return q[rt]})}var G=/\/+/g;function Y(k,q){return typeof k=="object"&&k!==null&&k.key!=null?F(""+k.key):q.toString(36)}function Z(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(D,D):(k.status="pending",k.then(function(q){k.status==="pending"&&(k.status="fulfilled",k.value=q)},function(q){k.status==="pending"&&(k.status="rejected",k.reason=q)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function H(k,q,rt,lt,ft){var gt=typeof k;(gt==="undefined"||gt==="boolean")&&(k=null);var At=!1;if(k===null)At=!0;else switch(gt){case"bigint":case"string":case"number":At=!0;break;case"object":switch(k.$$typeof){case t:case e:At=!0;break;case d:return At=k._init,H(At(k._payload),q,rt,lt,ft)}}if(At)return ft=ft(k),At=lt===""?"."+Y(k,0):lt,R(ft)?(rt="",At!=null&&(rt=At.replace(G,"$&/")+"/"),H(ft,q,rt,"",function(le){return le})):ft!=null&&(L(ft)&&(ft=N(ft,rt+(ft.key==null||k&&k.key===ft.key?"":(""+ft.key).replace(G,"$&/")+"/")+At)),q.push(ft)),1;At=0;var Mt=lt===""?".":lt+":";if(R(k))for(var Bt=0;Bt<k.length;Bt++)lt=k[Bt],gt=Mt+Y(lt,Bt),At+=H(lt,q,rt,gt,ft);else if(Bt=g(k),typeof Bt=="function")for(k=Bt.call(k),Bt=0;!(lt=k.next()).done;)lt=lt.value,gt=Mt+Y(lt,Bt++),At+=H(lt,q,rt,gt,ft);else if(gt==="object"){if(typeof k.then=="function")return H(Z(k),q,rt,lt,ft);throw q=String(k),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return At}function X(k,q,rt){if(k==null)return k;var lt=[],ft=0;return H(k,lt,"","",function(gt){return q.call(rt,gt,ft++)}),lt}function U(k){if(k._status===-1){var q=k._result;q=q(),q.then(function(rt){(k._status===0||k._status===-1)&&(k._status=1,k._result=rt)},function(rt){(k._status===0||k._status===-1)&&(k._status=2,k._result=rt)}),k._status===-1&&(k._status=0,k._result=q)}if(k._status===1)return k._result.default;throw k._result}var W=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},it={map:X,forEach:function(k,q,rt){X(k,function(){q.apply(this,arguments)},rt)},count:function(k){var q=0;return X(k,function(){q++}),q},toArray:function(k){return X(k,function(q){return q})||[]},only:function(k){if(!L(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Lt.Activity=v,Lt.Children=it,Lt.Component=x,Lt.Fragment=n,Lt.Profiler=a,Lt.PureComponent=C,Lt.StrictMode=r,Lt.Suspense=f,Lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,Lt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return E.H.useMemoCache(k)}},Lt.cache=function(k){return function(){return k.apply(null,arguments)}},Lt.cacheSignal=function(){return null},Lt.cloneElement=function(k,q,rt){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var lt=_({},k.props),ft=k.key;if(q!=null)for(gt in q.key!==void 0&&(ft=""+q.key),q)!z.call(q,gt)||gt==="key"||gt==="__self"||gt==="__source"||gt==="ref"&&q.ref===void 0||(lt[gt]=q[gt]);var gt=arguments.length-2;if(gt===1)lt.children=rt;else if(1<gt){for(var At=Array(gt),Mt=0;Mt<gt;Mt++)At[Mt]=arguments[Mt+2];lt.children=At}return I(k.type,ft,lt)},Lt.createContext=function(k){return k={$$typeof:o,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:i,_context:k},k},Lt.createElement=function(k,q,rt){var lt,ft={},gt=null;if(q!=null)for(lt in q.key!==void 0&&(gt=""+q.key),q)z.call(q,lt)&<!=="key"&<!=="__self"&<!=="__source"&&(ft[lt]=q[lt]);var At=arguments.length-2;if(At===1)ft.children=rt;else if(1<At){for(var Mt=Array(At),Bt=0;Bt<At;Bt++)Mt[Bt]=arguments[Bt+2];ft.children=Mt}if(k&&k.defaultProps)for(lt in At=k.defaultProps,At)ft[lt]===void 0&&(ft[lt]=At[lt]);return I(k,gt,ft)},Lt.createRef=function(){return{current:null}},Lt.forwardRef=function(k){return{$$typeof:u,render:k}},Lt.isValidElement=L,Lt.lazy=function(k){return{$$typeof:d,_payload:{_status:-1,_result:k},_init:U}},Lt.memo=function(k,q){return{$$typeof:c,type:k,compare:q===void 0?null:q}},Lt.startTransition=function(k){var q=E.T,rt={};E.T=rt;try{var lt=k(),ft=E.S;ft!==null&&ft(rt,lt),typeof lt=="object"&<!==null&&typeof lt.then=="function"&<.then(D,W)}catch(gt){W(gt)}finally{q!==null&&rt.types!==null&&(q.types=rt.types),E.T=q}},Lt.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},Lt.use=function(k){return E.H.use(k)},Lt.useActionState=function(k,q,rt){return E.H.useActionState(k,q,rt)},Lt.useCallback=function(k,q){return E.H.useCallback(k,q)},Lt.useContext=function(k){return E.H.useContext(k)},Lt.useDebugValue=function(){},Lt.useDeferredValue=function(k,q){return E.H.useDeferredValue(k,q)},Lt.useEffect=function(k,q){return E.H.useEffect(k,q)},Lt.useEffectEvent=function(k){return E.H.useEffectEvent(k)},Lt.useId=function(){return E.H.useId()},Lt.useImperativeHandle=function(k,q,rt){return E.H.useImperativeHandle(k,q,rt)},Lt.useInsertionEffect=function(k,q){return E.H.useInsertionEffect(k,q)},Lt.useLayoutEffect=function(k,q){return E.H.useLayoutEffect(k,q)},Lt.useMemo=function(k,q){return E.H.useMemo(k,q)},Lt.useOptimistic=function(k,q){return E.H.useOptimistic(k,q)},Lt.useReducer=function(k,q,rt){return E.H.useReducer(k,q,rt)},Lt.useRef=function(k){return E.H.useRef(k)},Lt.useState=function(k){return E.H.useState(k)},Lt.useSyncExternalStore=function(k,q,rt){return E.H.useSyncExternalStore(k,q,rt)},Lt.useTransition=function(){return E.H.useTransition()},Lt.version="19.2.4",Lt}var BM;function Ov(){return BM||(BM=1,Vm.exports=II()),Vm.exports}var et=Ov();const zv=rS(et);var Gm={exports:{}},Pu={},Um={exports:{}},jm={};/**
|
|
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 kM;function BI(){return kM||(kM=1,(function(t){function e(H,X){var U=H.length;H.push(X);t:for(;0<U;){var W=U-1>>>1,it=H[W];if(0<a(it,X))H[W]=X,H[U]=it,U=W;else break t}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var X=H[0],U=H.pop();if(U!==X){H[0]=U;t:for(var W=0,it=H.length,k=it>>>1;W<k;){var q=2*(W+1)-1,rt=H[q],lt=q+1,ft=H[lt];if(0>a(rt,U))lt<it&&0>a(ft,rt)?(H[W]=ft,H[lt]=U,W=lt):(H[W]=rt,H[q]=U,W=q);else if(lt<it&&0>a(ft,U))H[W]=ft,H[lt]=U,W=lt;else break t}}return X}function a(H,X){var U=H.sortIndex-X.sortIndex;return U!==0?U:H.id-X.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();t.unstable_now=function(){return o.now()-u}}var f=[],c=[],d=1,v=null,p=3,g=!1,y=!1,_=!1,S=!1,x=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function T(H){for(var X=n(c);X!==null;){if(X.callback===null)r(c);else if(X.startTime<=H)r(c),X.sortIndex=X.expirationTime,e(f,X);else break;X=n(c)}}function R(H){if(_=!1,T(H),!y)if(n(f)!==null)y=!0,D||(D=!0,F());else{var X=n(c);X!==null&&Z(R,X.startTime-H)}}var D=!1,E=-1,z=5,I=-1;function N(){return S?!0:!(t.unstable_now()-I<z)}function L(){if(S=!1,D){var H=t.unstable_now();I=H;var X=!0;try{t:{y=!1,_&&(_=!1,M(E),E=-1),g=!0;var U=p;try{e:{for(T(H),v=n(f);v!==null&&!(v.expirationTime>H&&N());){var W=v.callback;if(typeof W=="function"){v.callback=null,p=v.priorityLevel;var it=W(v.expirationTime<=H);if(H=t.unstable_now(),typeof it=="function"){v.callback=it,T(H),X=!0;break e}v===n(f)&&r(f),T(H)}else r(f);v=n(f)}if(v!==null)X=!0;else{var k=n(c);k!==null&&Z(R,k.startTime-H),X=!1}}break t}finally{v=null,p=U,g=!1}X=void 0}}finally{X?F():D=!1}}}var F;if(typeof C=="function")F=function(){C(L)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,Y=G.port2;G.port1.onmessage=L,F=function(){Y.postMessage(null)}}else F=function(){x(L,0)};function Z(H,X){E=x(function(){H(t.unstable_now())},X)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(H){switch(p){case 1:case 2:case 3:var X=3;break;default:X=p}var U=p;p=X;try{return H()}finally{p=U}},t.unstable_requestPaint=function(){S=!0},t.unstable_runWithPriority=function(H,X){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var U=p;p=H;try{return X()}finally{p=U}},t.unstable_scheduleCallback=function(H,X,U){var W=t.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?W+U:W):U=W,H){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=U+it,H={id:d++,callback:X,priorityLevel:H,startTime:U,expirationTime:it,sortIndex:-1},U>W?(H.sortIndex=U,e(c,H),n(f)===null&&H===n(c)&&(_?(M(E),E=-1):_=!0,Z(R,U-W))):(H.sortIndex=it,e(f,H),y||g||(y=!0,D||(D=!0,F()))),H},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(H){var X=p;return function(){var U=p;p=X;try{return H.apply(this,arguments)}finally{p=U}}}})(jm)),jm}var PM;function kI(){return PM||(PM=1,Um.exports=BI()),Um.exports}var Ym={exports:{}},fn={};/**
|
|
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 HM;function PI(){if(HM)return fn;HM=1;var t=Ov();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},a=Symbol.for("react.portal");function i(f,c,d){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:v==null?null:""+v,children:f,containerInfo:c,implementation:d}}var o=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,c){if(f==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return fn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fn.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 i(f,c,null,d)},fn.flushSync=function(f){var c=o.T,d=r.p;try{if(o.T=null,r.p=2,f)return f()}finally{o.T=c,r.p=d,r.d.f()}},fn.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))},fn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},fn.preinit=function(f,c){if(typeof f=="string"&&c&&typeof c.as=="string"){var d=c.as,v=u(d,c.crossOrigin),p=typeof c.integrity=="string"?c.integrity:void 0,g=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:p,fetchPriority:g}):d==="script"&&r.d.X(f,{crossOrigin:v,integrity:p,fetchPriority:g,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},fn.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)},fn.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})}},fn.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)},fn.requestFormReset=function(f){r.d.r(f)},fn.unstable_batchedUpdates=function(f,c){return f(c)},fn.useFormState=function(f,c,d){return o.H.useFormState(f,c,d)},fn.useFormStatus=function(){return o.H.useHostTransitionStatus()},fn.version="19.2.4",fn}var FM;function k2(){if(FM)return Ym.exports;FM=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(),Ym.exports=PI(),Ym.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 VM;function HI(){if(VM)return Pu;VM=1;var t=kI(),e=Ov(),n=k2();function r(l){var s="https://react.dev/errors/"+l;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)s+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+l+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function i(l){var s=l,h=l;if(l.alternate)for(;s.return;)s=s.return;else{l=s;do s=l,(s.flags&4098)!==0&&(h=s.return),l=s.return;while(l)}return s.tag===3?h:null}function o(l){if(l.tag===13){var s=l.memoizedState;if(s===null&&(l=l.alternate,l!==null&&(s=l.memoizedState)),s!==null)return s.dehydrated}return null}function u(l){if(l.tag===31){var s=l.memoizedState;if(s===null&&(l=l.alternate,l!==null&&(s=l.memoizedState)),s!==null)return s.dehydrated}return null}function f(l){if(i(l)!==l)throw Error(r(188))}function c(l){var s=l.alternate;if(!s){if(s=i(l),s===null)throw Error(r(188));return s!==l?null:l}for(var h=l,m=s;;){var b=h.return;if(b===null)break;var w=b.alternate;if(w===null){if(m=b.return,m!==null){h=m;continue}break}if(b.child===w.child){for(w=b.child;w;){if(w===h)return f(b),l;if(w===m)return f(b),s;w=w.sibling}throw Error(r(188))}if(h.return!==m.return)h=b,m=w;else{for(var A=!1,O=b.child;O;){if(O===h){A=!0,h=b,m=w;break}if(O===m){A=!0,m=b,h=w;break}O=O.sibling}if(!A){for(O=w.child;O;){if(O===h){A=!0,h=w,m=b;break}if(O===m){A=!0,m=w,h=b;break}O=O.sibling}if(!A)throw Error(r(189))}}if(h.alternate!==m)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?l:s}function d(l){var s=l.tag;if(s===5||s===26||s===27||s===6)return l;for(l=l.child;l!==null;){if(s=d(l),s!==null)return s;l=l.sibling}return null}var v=Object.assign,p=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),C=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),N=Symbol.for("react.memo_cache_sentinel"),L=Symbol.iterator;function F(l){return l===null||typeof l!="object"?null:(l=L&&l[L]||l["@@iterator"],typeof l=="function"?l:null)}var G=Symbol.for("react.client.reference");function Y(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===G?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case _:return"Fragment";case x:return"Profiler";case S:return"StrictMode";case R:return"Suspense";case D:return"SuspenseList";case I:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case y:return"Portal";case C:return l.displayName||"Context";case M:return(l._context.displayName||"Context")+".Consumer";case T:var s=l.render;return l=l.displayName,l||(l=s.displayName||s.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case E:return s=l.displayName||null,s!==null?s:Y(l.type)||"Memo";case z:s=l._payload,l=l._init;try{return Y(l(s))}catch{}}return null}var Z=Array.isArray,H=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},W=[],it=-1;function k(l){return{current:l}}function q(l){0>it||(l.current=W[it],W[it]=null,it--)}function rt(l,s){it++,W[it]=l.current,l.current=s}var lt=k(null),ft=k(null),gt=k(null),At=k(null);function Mt(l,s){switch(rt(gt,s),rt(ft,l),rt(lt,null),s.nodeType){case 9:case 11:l=(l=s.documentElement)&&(l=l.namespaceURI)?nM(l):0;break;default:if(l=s.tagName,s=s.namespaceURI)s=nM(s),l=rM(s,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}q(lt),rt(lt,l)}function Bt(){q(lt),q(ft),q(gt)}function le(l){l.memoizedState!==null&&rt(At,l);var s=lt.current,h=rM(s,l.type);s!==h&&(rt(ft,l),rt(lt,h))}function yt(l){ft.current===l&&(q(lt),q(ft)),At.current===l&&(q(At),zu._currentValue=U)}var Nt,ge;function ne(l){if(Nt===void 0)try{throw Error()}catch(h){var s=h.stack.trim().match(/\n( *(at )?)/);Nt=s&&s[1]||"",ge=-1<h.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Nt+l+ge}var Ln=!1;function _n(l,s){if(!l||Ln)return"";Ln=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(s){var ot=function(){throw Error()};if(Object.defineProperty(ot.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ot,[])}catch(tt){var J=tt}Reflect.construct(l,[],ot)}else{try{ot.call()}catch(tt){J=tt}l.call(ot.prototype)}}else{try{throw Error()}catch(tt){J=tt}(ot=l())&&typeof ot.catch=="function"&&ot.catch(function(){})}}catch(tt){if(tt&&J&&typeof tt.stack=="string")return[tt.stack,J.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=m.DetermineComponentFrameRoot(),A=w[0],O=w[1];if(A&&O){var V=A.split(`
|
|
44
|
+
`),K=O.split(`
|
|
45
|
+
`);for(b=m=0;m<V.length&&!V[m].includes("DetermineComponentFrameRoot");)m++;for(;b<K.length&&!K[b].includes("DetermineComponentFrameRoot");)b++;if(m===V.length||b===K.length)for(m=V.length-1,b=K.length-1;1<=m&&0<=b&&V[m]!==K[b];)b--;for(;1<=m&&0<=b;m--,b--)if(V[m]!==K[b]){if(m!==1||b!==1)do if(m--,b--,0>b||V[m]!==K[b]){var nt=`
|
|
46
|
+
`+V[m].replace(" at new "," at ");return l.displayName&&nt.includes("<anonymous>")&&(nt=nt.replace("<anonymous>",l.displayName)),nt}while(1<=m&&0<=b);break}}}finally{Ln=!1,Error.prepareStackTrace=h}return(h=l?l.displayName||l.name:"")?ne(h):""}function xa(l,s){switch(l.tag){case 26:case 27:case 5:return ne(l.type);case 16:return ne("Lazy");case 13:return l.child!==s&&s!==null?ne("Suspense Fallback"):ne("Suspense");case 19:return ne("SuspenseList");case 0:case 15:return _n(l.type,!1);case 11:return _n(l.type.render,!1);case 1:return _n(l.type,!0);case 31:return ne("Activity");default:return""}}function yl(l){try{var s="",h=null;do s+=xa(l,h),h=l,l=l.return;while(l);return s}catch(m){return`
|
|
47
|
+
Error generating stack: `+m.message+`
|
|
48
|
+
`+m.stack}}var hr=Object.prototype.hasOwnProperty,dr=t.unstable_scheduleCallback,Kn=t.unstable_cancelCallback,Ae=t.unstable_shouldYield,na=t.unstable_requestPaint,Pe=t.unstable_now,Dp=t.unstable_getCurrentPriorityLevel,wc=t.unstable_ImmediatePriority,js=t.unstable_UserBlockingPriority,dt=t.unstable_NormalPriority,me=t.unstable_LowPriority,Wt=t.unstable_IdlePriority,un=t.log,On=t.unstable_setDisableYieldValue,je=null,De=null;function He(l){if(typeof un=="function"&&On(l),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(je,l)}catch{}}var Ye=Math.clz32?Math.clz32:zn,oi=Math.log,_l=Math.LN2;function zn(l){return l>>>=0,l===0?32:31-(oi(l)/_l|0)|0}var li=256,fo=262144,Ys=4194304;function Ft(l){var s=l&42;if(s!==0)return s;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Ut(l,s,h){var m=l.pendingLanes;if(m===0)return 0;var b=0,w=l.suspendedLanes,A=l.pingedLanes;l=l.warmLanes;var O=m&134217727;return O!==0?(m=O&~w,m!==0?b=Ft(m):(A&=O,A!==0?b=Ft(A):h||(h=O&~l,h!==0&&(b=Ft(h))))):(O=m&~w,O!==0?b=Ft(O):A!==0?b=Ft(A):h||(h=m&~l,h!==0&&(b=Ft(h)))),b===0?0:s!==0&&s!==b&&(s&w)===0&&(w=b&-b,h=s&-s,w>=h||w===32&&(h&4194048)!==0)?s:b}function Jn(l,s){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&s)===0}function Sl(l,s){switch(l){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Mc(){var l=Ys;return Ys<<=1,(Ys&62914560)===0&&(Ys=4194304),l}function qs(l){for(var s=[],h=0;31>h;h++)s.push(l);return s}function Xs(l,s){l.pendingLanes|=s,s!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Sz(l,s,h,m,b,w){var A=l.pendingLanes;l.pendingLanes=h,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=h,l.entangledLanes&=h,l.errorRecoveryDisabledLanes&=h,l.shellSuspendCounter=0;var O=l.entanglements,V=l.expirationTimes,K=l.hiddenUpdates;for(h=A&~h;0<h;){var nt=31-Ye(h),ot=1<<nt;O[nt]=0,V[nt]=-1;var J=K[nt];if(J!==null)for(K[nt]=null,nt=0;nt<J.length;nt++){var tt=J[nt];tt!==null&&(tt.lane&=-536870913)}h&=~ot}m!==0&&k1(l,m,0),w!==0&&b===0&&l.tag!==0&&(l.suspendedLanes|=w&~(A&~s))}function k1(l,s,h){l.pendingLanes|=s,l.suspendedLanes&=~s;var m=31-Ye(s);l.entangledLanes|=s,l.entanglements[m]=l.entanglements[m]|1073741824|h&261930}function P1(l,s){var h=l.entangledLanes|=s;for(l=l.entanglements;h;){var m=31-Ye(h),b=1<<m;b&s|l[m]&s&&(l[m]|=s),h&=~b}}function H1(l,s){var h=s&-s;return h=(h&42)!==0?1:Rp(h),(h&(l.suspendedLanes|s))!==0?0:h}function Rp(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function Ep(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function F1(){var l=X.p;return l!==0?l:(l=window.event,l===void 0?32:TM(l.type))}function V1(l,s){var h=X.p;try{return X.p=l,s()}finally{X.p=h}}var si=Math.random().toString(36).slice(2),Qe="__reactFiber$"+si,Nn="__reactProps$"+si,bl="__reactContainer$"+si,Lp="__reactEvents$"+si,bz="__reactListeners$"+si,xz="__reactHandles$"+si,G1="__reactResources$"+si,Zs="__reactMarker$"+si;function Op(l){delete l[Qe],delete l[Nn],delete l[Lp],delete l[bz],delete l[xz]}function xl(l){var s=l[Qe];if(s)return s;for(var h=l.parentNode;h;){if(s=h[bl]||h[Qe]){if(h=s.alternate,s.child!==null||h!==null&&h.child!==null)for(l=fM(l);l!==null;){if(h=l[Qe])return h;l=fM(l)}return s}l=h,h=l.parentNode}return null}function wl(l){if(l=l[Qe]||l[bl]){var s=l.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return l}return null}function $s(l){var s=l.tag;if(s===5||s===26||s===27||s===6)return l.stateNode;throw Error(r(33))}function Ml(l){var s=l[G1];return s||(s=l[G1]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Xe(l){l[Zs]=!0}var U1=new Set,j1={};function co(l,s){Cl(l,s),Cl(l+"Capture",s)}function Cl(l,s){for(j1[l]=s,l=0;l<s.length;l++)U1.add(s[l])}var wz=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]*$"),Y1={},q1={};function Mz(l){return hr.call(q1,l)?!0:hr.call(Y1,l)?!1:wz.test(l)?q1[l]=!0:(Y1[l]=!0,!1)}function Cc(l,s,h){if(Mz(s))if(h===null)l.removeAttribute(s);else{switch(typeof h){case"undefined":case"function":case"symbol":l.removeAttribute(s);return;case"boolean":var m=s.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){l.removeAttribute(s);return}}l.setAttribute(s,""+h)}}function Tc(l,s,h){if(h===null)l.removeAttribute(s);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(s);return}l.setAttribute(s,""+h)}}function wa(l,s,h,m){if(m===null)l.removeAttribute(h);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(h);return}l.setAttributeNS(s,h,""+m)}}function vr(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function X1(l){var s=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Cz(l,s,h){var m=Object.getOwnPropertyDescriptor(l.constructor.prototype,s);if(!l.hasOwnProperty(s)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var b=m.get,w=m.set;return Object.defineProperty(l,s,{configurable:!0,get:function(){return b.call(this)},set:function(A){h=""+A,w.call(this,A)}}),Object.defineProperty(l,s,{enumerable:m.enumerable}),{getValue:function(){return h},setValue:function(A){h=""+A},stopTracking:function(){l._valueTracker=null,delete l[s]}}}}function zp(l){if(!l._valueTracker){var s=X1(l)?"checked":"value";l._valueTracker=Cz(l,s,""+l[s])}}function Z1(l){if(!l)return!1;var s=l._valueTracker;if(!s)return!0;var h=s.getValue(),m="";return l&&(m=X1(l)?l.checked?"true":"false":l.value),l=m,l!==h?(s.setValue(l),!0):!1}function Ac(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var Tz=/[\n"\\]/g;function pr(l){return l.replace(Tz,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Np(l,s,h,m,b,w,A,O){l.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?l.type=A:l.removeAttribute("type"),s!=null?A==="number"?(s===0&&l.value===""||l.value!=s)&&(l.value=""+vr(s)):l.value!==""+vr(s)&&(l.value=""+vr(s)):A!=="submit"&&A!=="reset"||l.removeAttribute("value"),s!=null?Ip(l,A,vr(s)):h!=null?Ip(l,A,vr(h)):m!=null&&l.removeAttribute("value"),b==null&&w!=null&&(l.defaultChecked=!!w),b!=null&&(l.checked=b&&typeof b!="function"&&typeof b!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?l.name=""+vr(O):l.removeAttribute("name")}function $1(l,s,h,m,b,w,A,O){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(l.type=w),s!=null||h!=null){if(!(w!=="submit"&&w!=="reset"||s!=null)){zp(l);return}h=h!=null?""+vr(h):"",s=s!=null?""+vr(s):h,O||s===l.value||(l.value=s),l.defaultValue=s}m=m??b,m=typeof m!="function"&&typeof m!="symbol"&&!!m,l.checked=O?l.checked:!!m,l.defaultChecked=!!m,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(l.name=A),zp(l)}function Ip(l,s,h){s==="number"&&Ac(l.ownerDocument)===l||l.defaultValue===""+h||(l.defaultValue=""+h)}function Tl(l,s,h,m){if(l=l.options,s){s={};for(var b=0;b<h.length;b++)s["$"+h[b]]=!0;for(h=0;h<l.length;h++)b=s.hasOwnProperty("$"+l[h].value),l[h].selected!==b&&(l[h].selected=b),b&&m&&(l[h].defaultSelected=!0)}else{for(h=""+vr(h),s=null,b=0;b<l.length;b++){if(l[b].value===h){l[b].selected=!0,m&&(l[b].defaultSelected=!0);return}s!==null||l[b].disabled||(s=l[b])}s!==null&&(s.selected=!0)}}function W1(l,s,h){if(s!=null&&(s=""+vr(s),s!==l.value&&(l.value=s),h==null)){l.defaultValue!==s&&(l.defaultValue=s);return}l.defaultValue=h!=null?""+vr(h):""}function Q1(l,s,h,m){if(s==null){if(m!=null){if(h!=null)throw Error(r(92));if(Z(m)){if(1<m.length)throw Error(r(93));m=m[0]}h=m}h==null&&(h=""),s=h}h=vr(s),l.defaultValue=h,m=l.textContent,m===h&&m!==""&&m!==null&&(l.value=m),zp(l)}function Al(l,s){if(s){var h=l.firstChild;if(h&&h===l.lastChild&&h.nodeType===3){h.nodeValue=s;return}}l.textContent=s}var Az=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 K1(l,s,h){var m=s.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?m?l.setProperty(s,""):s==="float"?l.cssFloat="":l[s]="":m?l.setProperty(s,h):typeof h!="number"||h===0||Az.has(s)?s==="float"?l.cssFloat=h:l[s]=(""+h).trim():l[s]=h+"px"}function J1(l,s,h){if(s!=null&&typeof s!="object")throw Error(r(62));if(l=l.style,h!=null){for(var m in h)!h.hasOwnProperty(m)||s!=null&&s.hasOwnProperty(m)||(m.indexOf("--")===0?l.setProperty(m,""):m==="float"?l.cssFloat="":l[m]="");for(var b in s)m=s[b],s.hasOwnProperty(b)&&h[b]!==m&&K1(l,b,m)}else for(var w in s)s.hasOwnProperty(w)&&K1(l,w,s[w])}function Bp(l){if(l.indexOf("-")===-1)return!1;switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dz=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"]]),Rz=/^[\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 Dc(l){return Rz.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function Ma(){}var kp=null;function Pp(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Dl=null,Rl=null;function tb(l){var s=wl(l);if(s&&(l=s.stateNode)){var h=l[Nn]||null;t:switch(l=s.stateNode,s.type){case"input":if(Np(l,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),s=h.name,h.type==="radio"&&s!=null){for(h=l;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+pr(""+s)+'"][type="radio"]'),s=0;s<h.length;s++){var m=h[s];if(m!==l&&m.form===l.form){var b=m[Nn]||null;if(!b)throw Error(r(90));Np(m,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(s=0;s<h.length;s++)m=h[s],m.form===l.form&&Z1(m)}break t;case"textarea":W1(l,h.value,h.defaultValue);break t;case"select":s=h.value,s!=null&&Tl(l,!!h.multiple,s,!1)}}}var Hp=!1;function eb(l,s,h){if(Hp)return l(s,h);Hp=!0;try{var m=l(s);return m}finally{if(Hp=!1,(Dl!==null||Rl!==null)&&(ph(),Dl&&(s=Dl,l=Rl,Rl=Dl=null,tb(s),l)))for(s=0;s<l.length;s++)tb(l[s])}}function Ws(l,s){var h=l.stateNode;if(h===null)return null;var m=h[Nn]||null;if(m===null)return null;h=m[s];t:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(l=l.type,m=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!m;break t;default:l=!1}if(l)return null;if(h&&typeof h!="function")throw Error(r(231,s,typeof h));return h}var Ca=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fp=!1;if(Ca)try{var Qs={};Object.defineProperty(Qs,"passive",{get:function(){Fp=!0}}),window.addEventListener("test",Qs,Qs),window.removeEventListener("test",Qs,Qs)}catch{Fp=!1}var ui=null,Vp=null,Rc=null;function nb(){if(Rc)return Rc;var l,s=Vp,h=s.length,m,b="value"in ui?ui.value:ui.textContent,w=b.length;for(l=0;l<h&&s[l]===b[l];l++);var A=h-l;for(m=1;m<=A&&s[h-m]===b[w-m];m++);return Rc=b.slice(l,1<m?1-m:void 0)}function Ec(l){var s=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&s===13&&(l=13)):l=s,l===10&&(l=13),32<=l||l===13?l:0}function Lc(){return!0}function rb(){return!1}function In(l){function s(h,m,b,w,A){this._reactName=h,this._targetInst=b,this.type=m,this.nativeEvent=w,this.target=A,this.currentTarget=null;for(var O in l)l.hasOwnProperty(O)&&(h=l[O],this[O]=h?h(w):w[O]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Lc:rb,this.isPropagationStopped=rb,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=Lc)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=Lc)},persist:function(){},isPersistent:Lc}),s}var ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oc=In(ho),Ks=v({},ho,{view:0,detail:0}),Ez=In(Ks),Gp,Up,Js,zc=v({},Ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yp,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==Js&&(Js&&l.type==="mousemove"?(Gp=l.screenX-Js.screenX,Up=l.screenY-Js.screenY):Up=Gp=0,Js=l),Gp)},movementY:function(l){return"movementY"in l?l.movementY:Up}}),ab=In(zc),Lz=v({},zc,{dataTransfer:0}),Oz=In(Lz),zz=v({},Ks,{relatedTarget:0}),jp=In(zz),Nz=v({},ho,{animationName:0,elapsedTime:0,pseudoElement:0}),Iz=In(Nz),Bz=v({},ho,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),kz=In(Bz),Pz=v({},ho,{data:0}),ib=In(Pz),Hz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fz={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"},Vz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gz(l){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(l):(l=Vz[l])?!!s[l]:!1}function Yp(){return Gz}var Uz=v({},Ks,{key:function(l){if(l.key){var s=Hz[l.key]||l.key;if(s!=="Unidentified")return s}return l.type==="keypress"?(l=Ec(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?Fz[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yp,charCode:function(l){return l.type==="keypress"?Ec(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Ec(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),jz=In(Uz),Yz=v({},zc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ob=In(Yz),qz=v({},Ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yp}),Xz=In(qz),Zz=v({},ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),$z=In(Zz),Wz=v({},zc,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),Qz=In(Wz),Kz=v({},ho,{newState:0,oldState:0}),Jz=In(Kz),tN=[9,13,27,32],qp=Ca&&"CompositionEvent"in window,tu=null;Ca&&"documentMode"in document&&(tu=document.documentMode);var eN=Ca&&"TextEvent"in window&&!tu,lb=Ca&&(!qp||tu&&8<tu&&11>=tu),sb=" ",ub=!1;function fb(l,s){switch(l){case"keyup":return tN.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cb(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var El=!1;function nN(l,s){switch(l){case"compositionend":return cb(s);case"keypress":return s.which!==32?null:(ub=!0,sb);case"textInput":return l=s.data,l===sb&&ub?null:l;default:return null}}function rN(l,s){if(El)return l==="compositionend"||!qp&&fb(l,s)?(l=nb(),Rc=Vp=ui=null,El=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return lb&&s.locale!=="ko"?null:s.data;default:return null}}var aN={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 hb(l){var s=l&&l.nodeName&&l.nodeName.toLowerCase();return s==="input"?!!aN[l.type]:s==="textarea"}function db(l,s,h,m){Dl?Rl?Rl.push(m):Rl=[m]:Dl=m,s=xh(s,"onChange"),0<s.length&&(h=new Oc("onChange","change",null,h,m),l.push({event:h,listeners:s}))}var eu=null,nu=null;function iN(l){Ww(l,0)}function Nc(l){var s=$s(l);if(Z1(s))return l}function vb(l,s){if(l==="change")return s}var pb=!1;if(Ca){var Xp;if(Ca){var Zp="oninput"in document;if(!Zp){var gb=document.createElement("div");gb.setAttribute("oninput","return;"),Zp=typeof gb.oninput=="function"}Xp=Zp}else Xp=!1;pb=Xp&&(!document.documentMode||9<document.documentMode)}function mb(){eu&&(eu.detachEvent("onpropertychange",yb),nu=eu=null)}function yb(l){if(l.propertyName==="value"&&Nc(nu)){var s=[];db(s,nu,l,Pp(l)),eb(iN,s)}}function oN(l,s,h){l==="focusin"?(mb(),eu=s,nu=h,eu.attachEvent("onpropertychange",yb)):l==="focusout"&&mb()}function lN(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Nc(nu)}function sN(l,s){if(l==="click")return Nc(s)}function uN(l,s){if(l==="input"||l==="change")return Nc(s)}function fN(l,s){return l===s&&(l!==0||1/l===1/s)||l!==l&&s!==s}var tr=typeof Object.is=="function"?Object.is:fN;function ru(l,s){if(tr(l,s))return!0;if(typeof l!="object"||l===null||typeof s!="object"||s===null)return!1;var h=Object.keys(l),m=Object.keys(s);if(h.length!==m.length)return!1;for(m=0;m<h.length;m++){var b=h[m];if(!hr.call(s,b)||!tr(l[b],s[b]))return!1}return!0}function _b(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function Sb(l,s){var h=_b(l);l=0;for(var m;h;){if(h.nodeType===3){if(m=l+h.textContent.length,l<=s&&m>=s)return{node:h,offset:s-l};l=m}t:{for(;h;){if(h.nextSibling){h=h.nextSibling;break t}h=h.parentNode}h=void 0}h=_b(h)}}function bb(l,s){return l&&s?l===s?!0:l&&l.nodeType===3?!1:s&&s.nodeType===3?bb(l,s.parentNode):"contains"in l?l.contains(s):l.compareDocumentPosition?!!(l.compareDocumentPosition(s)&16):!1:!1}function xb(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var s=Ac(l.document);s instanceof l.HTMLIFrameElement;){try{var h=typeof s.contentWindow.location.href=="string"}catch{h=!1}if(h)l=s.contentWindow;else break;s=Ac(l.document)}return s}function $p(l){var s=l&&l.nodeName&&l.nodeName.toLowerCase();return s&&(s==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||s==="textarea"||l.contentEditable==="true")}var cN=Ca&&"documentMode"in document&&11>=document.documentMode,Ll=null,Wp=null,au=null,Qp=!1;function wb(l,s,h){var m=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;Qp||Ll==null||Ll!==Ac(m)||(m=Ll,"selectionStart"in m&&$p(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),au&&ru(au,m)||(au=m,m=xh(Wp,"onSelect"),0<m.length&&(s=new Oc("onSelect","select",null,s,h),l.push({event:s,listeners:m}),s.target=Ll)))}function vo(l,s){var h={};return h[l.toLowerCase()]=s.toLowerCase(),h["Webkit"+l]="webkit"+s,h["Moz"+l]="moz"+s,h}var Ol={animationend:vo("Animation","AnimationEnd"),animationiteration:vo("Animation","AnimationIteration"),animationstart:vo("Animation","AnimationStart"),transitionrun:vo("Transition","TransitionRun"),transitionstart:vo("Transition","TransitionStart"),transitioncancel:vo("Transition","TransitionCancel"),transitionend:vo("Transition","TransitionEnd")},Kp={},Mb={};Ca&&(Mb=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function po(l){if(Kp[l])return Kp[l];if(!Ol[l])return l;var s=Ol[l],h;for(h in s)if(s.hasOwnProperty(h)&&h in Mb)return Kp[l]=s[h];return l}var Cb=po("animationend"),Tb=po("animationiteration"),Ab=po("animationstart"),hN=po("transitionrun"),dN=po("transitionstart"),vN=po("transitioncancel"),Db=po("transitionend"),Rb=new Map,Jp="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(" ");Jp.push("scrollEnd");function Vr(l,s){Rb.set(l,s),co(s,[l])}var Ic=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},gr=[],zl=0,tg=0;function Bc(){for(var l=zl,s=tg=zl=0;s<l;){var h=gr[s];gr[s++]=null;var m=gr[s];gr[s++]=null;var b=gr[s];gr[s++]=null;var w=gr[s];if(gr[s++]=null,m!==null&&b!==null){var A=m.pending;A===null?b.next=b:(b.next=A.next,A.next=b),m.pending=b}w!==0&&Eb(h,b,w)}}function kc(l,s,h,m){gr[zl++]=l,gr[zl++]=s,gr[zl++]=h,gr[zl++]=m,tg|=m,l.lanes|=m,l=l.alternate,l!==null&&(l.lanes|=m)}function eg(l,s,h,m){return kc(l,s,h,m),Pc(l)}function go(l,s){return kc(l,null,null,s),Pc(l)}function Eb(l,s,h){l.lanes|=h;var m=l.alternate;m!==null&&(m.lanes|=h);for(var b=!1,w=l.return;w!==null;)w.childLanes|=h,m=w.alternate,m!==null&&(m.childLanes|=h),w.tag===22&&(l=w.stateNode,l===null||l._visibility&1||(b=!0)),l=w,w=w.return;return l.tag===3?(w=l.stateNode,b&&s!==null&&(b=31-Ye(h),l=w.hiddenUpdates,m=l[b],m===null?l[b]=[s]:m.push(s),s.lane=h|536870912),w):null}function Pc(l){if(50<Tu)throw Tu=0,fm=null,Error(r(185));for(var s=l.return;s!==null;)l=s,s=l.return;return l.tag===3?l.stateNode:null}var Nl={};function pN(l,s,h,m){this.tag=l,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function er(l,s,h,m){return new pN(l,s,h,m)}function ng(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Ta(l,s){var h=l.alternate;return h===null?(h=er(l.tag,s,l.key,l.mode),h.elementType=l.elementType,h.type=l.type,h.stateNode=l.stateNode,h.alternate=l,l.alternate=h):(h.pendingProps=s,h.type=l.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=l.flags&65011712,h.childLanes=l.childLanes,h.lanes=l.lanes,h.child=l.child,h.memoizedProps=l.memoizedProps,h.memoizedState=l.memoizedState,h.updateQueue=l.updateQueue,s=l.dependencies,h.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},h.sibling=l.sibling,h.index=l.index,h.ref=l.ref,h.refCleanup=l.refCleanup,h}function Lb(l,s){l.flags&=65011714;var h=l.alternate;return h===null?(l.childLanes=0,l.lanes=s,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=h.childLanes,l.lanes=h.lanes,l.child=h.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=h.memoizedProps,l.memoizedState=h.memoizedState,l.updateQueue=h.updateQueue,l.type=h.type,s=h.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),l}function Hc(l,s,h,m,b,w){var A=0;if(m=l,typeof l=="function")ng(l)&&(A=1);else if(typeof l=="string")A=SI(l,h,lt.current)?26:l==="html"||l==="head"||l==="body"?27:5;else t:switch(l){case I:return l=er(31,h,s,b),l.elementType=I,l.lanes=w,l;case _:return mo(h.children,b,w,s);case S:A=8,b|=24;break;case x:return l=er(12,h,s,b|2),l.elementType=x,l.lanes=w,l;case R:return l=er(13,h,s,b),l.elementType=R,l.lanes=w,l;case D:return l=er(19,h,s,b),l.elementType=D,l.lanes=w,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case C:A=10;break t;case M:A=9;break t;case T:A=11;break t;case E:A=14;break t;case z:A=16,m=null;break t}A=29,h=Error(r(130,l===null?"null":typeof l,"")),m=null}return s=er(A,h,s,b),s.elementType=l,s.type=m,s.lanes=w,s}function mo(l,s,h,m){return l=er(7,l,m,s),l.lanes=h,l}function rg(l,s,h){return l=er(6,l,null,s),l.lanes=h,l}function Ob(l){var s=er(18,null,null,0);return s.stateNode=l,s}function ag(l,s,h){return s=er(4,l.children!==null?l.children:[],l.key,s),s.lanes=h,s.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},s}var zb=new WeakMap;function mr(l,s){if(typeof l=="object"&&l!==null){var h=zb.get(l);return h!==void 0?h:(s={value:l,source:s,stack:yl(s)},zb.set(l,s),s)}return{value:l,source:s,stack:yl(s)}}var Il=[],Bl=0,Fc=null,iu=0,yr=[],_r=0,fi=null,ra=1,aa="";function Aa(l,s){Il[Bl++]=iu,Il[Bl++]=Fc,Fc=l,iu=s}function Nb(l,s,h){yr[_r++]=ra,yr[_r++]=aa,yr[_r++]=fi,fi=l;var m=ra;l=aa;var b=32-Ye(m)-1;m&=~(1<<b),h+=1;var w=32-Ye(s)+b;if(30<w){var A=b-b%5;w=(m&(1<<A)-1).toString(32),m>>=A,b-=A,ra=1<<32-Ye(s)+b|h<<b|m,aa=w+l}else ra=1<<w|h<<b|m,aa=l}function ig(l){l.return!==null&&(Aa(l,1),Nb(l,1,0))}function og(l){for(;l===Fc;)Fc=Il[--Bl],Il[Bl]=null,iu=Il[--Bl],Il[Bl]=null;for(;l===fi;)fi=yr[--_r],yr[_r]=null,aa=yr[--_r],yr[_r]=null,ra=yr[--_r],yr[_r]=null}function Ib(l,s){yr[_r++]=ra,yr[_r++]=aa,yr[_r++]=fi,ra=s.id,aa=s.overflow,fi=l}var Ke=null,_e=null,$t=!1,ci=null,Sr=!1,lg=Error(r(519));function hi(l){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ou(mr(s,l)),lg}function Bb(l){var s=l.stateNode,h=l.type,m=l.memoizedProps;switch(s[Qe]=l,s[Nn]=m,h){case"dialog":Gt("cancel",s),Gt("close",s);break;case"iframe":case"object":case"embed":Gt("load",s);break;case"video":case"audio":for(h=0;h<Du.length;h++)Gt(Du[h],s);break;case"source":Gt("error",s);break;case"img":case"image":case"link":Gt("error",s),Gt("load",s);break;case"details":Gt("toggle",s);break;case"input":Gt("invalid",s),$1(s,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":Gt("invalid",s);break;case"textarea":Gt("invalid",s),Q1(s,m.value,m.defaultValue,m.children)}h=m.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||s.textContent===""+h||m.suppressHydrationWarning===!0||tM(s.textContent,h)?(m.popover!=null&&(Gt("beforetoggle",s),Gt("toggle",s)),m.onScroll!=null&&Gt("scroll",s),m.onScrollEnd!=null&&Gt("scrollend",s),m.onClick!=null&&(s.onclick=Ma),s=!0):s=!1,s||hi(l,!0)}function kb(l){for(Ke=l.return;Ke;)switch(Ke.tag){case 5:case 31:case 13:Sr=!1;return;case 27:case 3:Sr=!0;return;default:Ke=Ke.return}}function kl(l){if(l!==Ke)return!1;if(!$t)return kb(l),$t=!0,!1;var s=l.tag,h;if((h=s!==3&&s!==27)&&((h=s===5)&&(h=l.type,h=!(h!=="form"&&h!=="button")||Cm(l.type,l.memoizedProps)),h=!h),h&&_e&&hi(l),kb(l),s===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));_e=uM(l)}else if(s===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));_e=uM(l)}else s===27?(s=_e,Ti(l.type)?(l=Em,Em=null,_e=l):_e=s):_e=Ke?xr(l.stateNode.nextSibling):null;return!0}function yo(){_e=Ke=null,$t=!1}function sg(){var l=ci;return l!==null&&(Hn===null?Hn=l:Hn.push.apply(Hn,l),ci=null),l}function ou(l){ci===null?ci=[l]:ci.push(l)}var ug=k(null),_o=null,Da=null;function di(l,s,h){rt(ug,s._currentValue),s._currentValue=h}function Ra(l){l._currentValue=ug.current,q(ug)}function fg(l,s,h){for(;l!==null;){var m=l.alternate;if((l.childLanes&s)!==s?(l.childLanes|=s,m!==null&&(m.childLanes|=s)):m!==null&&(m.childLanes&s)!==s&&(m.childLanes|=s),l===h)break;l=l.return}}function cg(l,s,h,m){var b=l.child;for(b!==null&&(b.return=l);b!==null;){var w=b.dependencies;if(w!==null){var A=b.child;w=w.firstContext;t:for(;w!==null;){var O=w;w=b;for(var V=0;V<s.length;V++)if(O.context===s[V]){w.lanes|=h,O=w.alternate,O!==null&&(O.lanes|=h),fg(w.return,h,l),m||(A=null);break t}w=O.next}}else if(b.tag===18){if(A=b.return,A===null)throw Error(r(341));A.lanes|=h,w=A.alternate,w!==null&&(w.lanes|=h),fg(A,h,l),A=null}else A=b.child;if(A!==null)A.return=b;else for(A=b;A!==null;){if(A===l){A=null;break}if(b=A.sibling,b!==null){b.return=A.return,A=b;break}A=A.return}b=A}}function Pl(l,s,h,m){l=null;for(var b=s,w=!1;b!==null;){if(!w){if((b.flags&524288)!==0)w=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var A=b.alternate;if(A===null)throw Error(r(387));if(A=A.memoizedProps,A!==null){var O=b.type;tr(b.pendingProps.value,A.value)||(l!==null?l.push(O):l=[O])}}else if(b===At.current){if(A=b.alternate,A===null)throw Error(r(387));A.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(l!==null?l.push(zu):l=[zu])}b=b.return}l!==null&&cg(s,l,h,m),s.flags|=262144}function Vc(l){for(l=l.firstContext;l!==null;){if(!tr(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function So(l){_o=l,Da=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function Je(l){return Pb(_o,l)}function Gc(l,s){return _o===null&&So(l),Pb(l,s)}function Pb(l,s){var h=s._currentValue;if(s={context:s,memoizedValue:h,next:null},Da===null){if(l===null)throw Error(r(308));Da=s,l.dependencies={lanes:0,firstContext:s},l.flags|=524288}else Da=Da.next=s;return h}var gN=typeof AbortController<"u"?AbortController:function(){var l=[],s=this.signal={aborted:!1,addEventListener:function(h,m){l.push(m)}};this.abort=function(){s.aborted=!0,l.forEach(function(h){return h()})}},mN=t.unstable_scheduleCallback,yN=t.unstable_NormalPriority,Fe={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hg(){return{controller:new gN,data:new Map,refCount:0}}function lu(l){l.refCount--,l.refCount===0&&mN(yN,function(){l.controller.abort()})}var su=null,dg=0,Hl=0,Fl=null;function _N(l,s){if(su===null){var h=su=[];dg=0,Hl=gm(),Fl={status:"pending",value:void 0,then:function(m){h.push(m)}}}return dg++,s.then(Hb,Hb),s}function Hb(){if(--dg===0&&su!==null){Fl!==null&&(Fl.status="fulfilled");var l=su;su=null,Hl=0,Fl=null;for(var s=0;s<l.length;s++)(0,l[s])()}}function SN(l,s){var h=[],m={status:"pending",value:null,reason:null,then:function(b){h.push(b)}};return l.then(function(){m.status="fulfilled",m.value=s;for(var b=0;b<h.length;b++)(0,h[b])(s)},function(b){for(m.status="rejected",m.reason=b,b=0;b<h.length;b++)(0,h[b])(void 0)}),m}var Fb=H.S;H.S=function(l,s){Mw=Pe(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&_N(l,s),Fb!==null&&Fb(l,s)};var bo=k(null);function vg(){var l=bo.current;return l!==null?l:pe.pooledCache}function Uc(l,s){s===null?rt(bo,bo.current):rt(bo,s.pool)}function Vb(){var l=vg();return l===null?null:{parent:Fe._currentValue,pool:l}}var Vl=Error(r(460)),pg=Error(r(474)),jc=Error(r(542)),Yc={then:function(){}};function Gb(l){return l=l.status,l==="fulfilled"||l==="rejected"}function Ub(l,s,h){switch(h=l[h],h===void 0?l.push(s):h!==s&&(s.then(Ma,Ma),s=h),s.status){case"fulfilled":return s.value;case"rejected":throw l=s.reason,Yb(l),l;default:if(typeof s.status=="string")s.then(Ma,Ma);else{if(l=pe,l!==null&&100<l.shellSuspendCounter)throw Error(r(482));l=s,l.status="pending",l.then(function(m){if(s.status==="pending"){var b=s;b.status="fulfilled",b.value=m}},function(m){if(s.status==="pending"){var b=s;b.status="rejected",b.reason=m}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw l=s.reason,Yb(l),l}throw wo=s,Vl}}function xo(l){try{var s=l._init;return s(l._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(wo=h,Vl):h}}var wo=null;function jb(){if(wo===null)throw Error(r(459));var l=wo;return wo=null,l}function Yb(l){if(l===Vl||l===jc)throw Error(r(483))}var Gl=null,uu=0;function qc(l){var s=uu;return uu+=1,Gl===null&&(Gl=[]),Ub(Gl,l,s)}function fu(l,s){s=s.props.ref,l.ref=s!==void 0?s:null}function Xc(l,s){throw s.$$typeof===p?Error(r(525)):(l=Object.prototype.toString.call(s),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":l)))}function qb(l){function s($,j){if(l){var Q=$.deletions;Q===null?($.deletions=[j],$.flags|=16):Q.push(j)}}function h($,j){if(!l)return null;for(;j!==null;)s($,j),j=j.sibling;return null}function m($){for(var j=new Map;$!==null;)$.key!==null?j.set($.key,$):j.set($.index,$),$=$.sibling;return j}function b($,j){return $=Ta($,j),$.index=0,$.sibling=null,$}function w($,j,Q){return $.index=Q,l?(Q=$.alternate,Q!==null?(Q=Q.index,Q<j?($.flags|=67108866,j):Q):($.flags|=67108866,j)):($.flags|=1048576,j)}function A($){return l&&$.alternate===null&&($.flags|=67108866),$}function O($,j,Q,at){return j===null||j.tag!==6?(j=rg(Q,$.mode,at),j.return=$,j):(j=b(j,Q),j.return=$,j)}function V($,j,Q,at){var _t=Q.type;return _t===_?nt($,j,Q.props.children,at,Q.key):j!==null&&(j.elementType===_t||typeof _t=="object"&&_t!==null&&_t.$$typeof===z&&xo(_t)===j.type)?(j=b(j,Q.props),fu(j,Q),j.return=$,j):(j=Hc(Q.type,Q.key,Q.props,null,$.mode,at),fu(j,Q),j.return=$,j)}function K($,j,Q,at){return j===null||j.tag!==4||j.stateNode.containerInfo!==Q.containerInfo||j.stateNode.implementation!==Q.implementation?(j=ag(Q,$.mode,at),j.return=$,j):(j=b(j,Q.children||[]),j.return=$,j)}function nt($,j,Q,at,_t){return j===null||j.tag!==7?(j=mo(Q,$.mode,at,_t),j.return=$,j):(j=b(j,Q),j.return=$,j)}function ot($,j,Q){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=rg(""+j,$.mode,Q),j.return=$,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case g:return Q=Hc(j.type,j.key,j.props,null,$.mode,Q),fu(Q,j),Q.return=$,Q;case y:return j=ag(j,$.mode,Q),j.return=$,j;case z:return j=xo(j),ot($,j,Q)}if(Z(j)||F(j))return j=mo(j,$.mode,Q,null),j.return=$,j;if(typeof j.then=="function")return ot($,qc(j),Q);if(j.$$typeof===C)return ot($,Gc($,j),Q);Xc($,j)}return null}function J($,j,Q,at){var _t=j!==null?j.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return _t!==null?null:O($,j,""+Q,at);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case g:return Q.key===_t?V($,j,Q,at):null;case y:return Q.key===_t?K($,j,Q,at):null;case z:return Q=xo(Q),J($,j,Q,at)}if(Z(Q)||F(Q))return _t!==null?null:nt($,j,Q,at,null);if(typeof Q.then=="function")return J($,j,qc(Q),at);if(Q.$$typeof===C)return J($,j,Gc($,Q),at);Xc($,Q)}return null}function tt($,j,Q,at,_t){if(typeof at=="string"&&at!==""||typeof at=="number"||typeof at=="bigint")return $=$.get(Q)||null,O(j,$,""+at,_t);if(typeof at=="object"&&at!==null){switch(at.$$typeof){case g:return $=$.get(at.key===null?Q:at.key)||null,V(j,$,at,_t);case y:return $=$.get(at.key===null?Q:at.key)||null,K(j,$,at,_t);case z:return at=xo(at),tt($,j,Q,at,_t)}if(Z(at)||F(at))return $=$.get(Q)||null,nt(j,$,at,_t,null);if(typeof at.then=="function")return tt($,j,Q,qc(at),_t);if(at.$$typeof===C)return tt($,j,Q,Gc(j,at),_t);Xc(j,at)}return null}function ht($,j,Q,at){for(var _t=null,te=null,vt=j,kt=j=0,Yt=null;vt!==null&&kt<Q.length;kt++){vt.index>kt?(Yt=vt,vt=null):Yt=vt.sibling;var ee=J($,vt,Q[kt],at);if(ee===null){vt===null&&(vt=Yt);break}l&&vt&&ee.alternate===null&&s($,vt),j=w(ee,j,kt),te===null?_t=ee:te.sibling=ee,te=ee,vt=Yt}if(kt===Q.length)return h($,vt),$t&&Aa($,kt),_t;if(vt===null){for(;kt<Q.length;kt++)vt=ot($,Q[kt],at),vt!==null&&(j=w(vt,j,kt),te===null?_t=vt:te.sibling=vt,te=vt);return $t&&Aa($,kt),_t}for(vt=m(vt);kt<Q.length;kt++)Yt=tt(vt,$,kt,Q[kt],at),Yt!==null&&(l&&Yt.alternate!==null&&vt.delete(Yt.key===null?kt:Yt.key),j=w(Yt,j,kt),te===null?_t=Yt:te.sibling=Yt,te=Yt);return l&&vt.forEach(function(Li){return s($,Li)}),$t&&Aa($,kt),_t}function bt($,j,Q,at){if(Q==null)throw Error(r(151));for(var _t=null,te=null,vt=j,kt=j=0,Yt=null,ee=Q.next();vt!==null&&!ee.done;kt++,ee=Q.next()){vt.index>kt?(Yt=vt,vt=null):Yt=vt.sibling;var Li=J($,vt,ee.value,at);if(Li===null){vt===null&&(vt=Yt);break}l&&vt&&Li.alternate===null&&s($,vt),j=w(Li,j,kt),te===null?_t=Li:te.sibling=Li,te=Li,vt=Yt}if(ee.done)return h($,vt),$t&&Aa($,kt),_t;if(vt===null){for(;!ee.done;kt++,ee=Q.next())ee=ot($,ee.value,at),ee!==null&&(j=w(ee,j,kt),te===null?_t=ee:te.sibling=ee,te=ee);return $t&&Aa($,kt),_t}for(vt=m(vt);!ee.done;kt++,ee=Q.next())ee=tt(vt,$,kt,ee.value,at),ee!==null&&(l&&ee.alternate!==null&&vt.delete(ee.key===null?kt:ee.key),j=w(ee,j,kt),te===null?_t=ee:te.sibling=ee,te=ee);return l&&vt.forEach(function(LI){return s($,LI)}),$t&&Aa($,kt),_t}function he($,j,Q,at){if(typeof Q=="object"&&Q!==null&&Q.type===_&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case g:t:{for(var _t=Q.key;j!==null;){if(j.key===_t){if(_t=Q.type,_t===_){if(j.tag===7){h($,j.sibling),at=b(j,Q.props.children),at.return=$,$=at;break t}}else if(j.elementType===_t||typeof _t=="object"&&_t!==null&&_t.$$typeof===z&&xo(_t)===j.type){h($,j.sibling),at=b(j,Q.props),fu(at,Q),at.return=$,$=at;break t}h($,j);break}else s($,j);j=j.sibling}Q.type===_?(at=mo(Q.props.children,$.mode,at,Q.key),at.return=$,$=at):(at=Hc(Q.type,Q.key,Q.props,null,$.mode,at),fu(at,Q),at.return=$,$=at)}return A($);case y:t:{for(_t=Q.key;j!==null;){if(j.key===_t)if(j.tag===4&&j.stateNode.containerInfo===Q.containerInfo&&j.stateNode.implementation===Q.implementation){h($,j.sibling),at=b(j,Q.children||[]),at.return=$,$=at;break t}else{h($,j);break}else s($,j);j=j.sibling}at=ag(Q,$.mode,at),at.return=$,$=at}return A($);case z:return Q=xo(Q),he($,j,Q,at)}if(Z(Q))return ht($,j,Q,at);if(F(Q)){if(_t=F(Q),typeof _t!="function")throw Error(r(150));return Q=_t.call(Q),bt($,j,Q,at)}if(typeof Q.then=="function")return he($,j,qc(Q),at);if(Q.$$typeof===C)return he($,j,Gc($,Q),at);Xc($,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,j!==null&&j.tag===6?(h($,j.sibling),at=b(j,Q),at.return=$,$=at):(h($,j),at=rg(Q,$.mode,at),at.return=$,$=at),A($)):h($,j)}return function($,j,Q,at){try{uu=0;var _t=he($,j,Q,at);return Gl=null,_t}catch(vt){if(vt===Vl||vt===jc)throw vt;var te=er(29,vt,null,$.mode);return te.lanes=at,te.return=$,te}finally{}}}var Mo=qb(!0),Xb=qb(!1),vi=!1;function gg(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mg(l,s){l=l.updateQueue,s.updateQueue===l&&(s.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function pi(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function gi(l,s,h){var m=l.updateQueue;if(m===null)return null;if(m=m.shared,(re&2)!==0){var b=m.pending;return b===null?s.next=s:(s.next=b.next,b.next=s),m.pending=s,s=Pc(l),Eb(l,null,h),s}return kc(l,m,s,h),Pc(l)}function cu(l,s,h){if(s=s.updateQueue,s!==null&&(s=s.shared,(h&4194048)!==0)){var m=s.lanes;m&=l.pendingLanes,h|=m,s.lanes=h,P1(l,h)}}function yg(l,s){var h=l.updateQueue,m=l.alternate;if(m!==null&&(m=m.updateQueue,h===m)){var b=null,w=null;if(h=h.firstBaseUpdate,h!==null){do{var A={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};w===null?b=w=A:w=w.next=A,h=h.next}while(h!==null);w===null?b=w=s:w=w.next=s}else b=w=s;h={baseState:m.baseState,firstBaseUpdate:b,lastBaseUpdate:w,shared:m.shared,callbacks:m.callbacks},l.updateQueue=h;return}l=h.lastBaseUpdate,l===null?h.firstBaseUpdate=s:l.next=s,h.lastBaseUpdate=s}var _g=!1;function hu(){if(_g){var l=Fl;if(l!==null)throw l}}function du(l,s,h,m){_g=!1;var b=l.updateQueue;vi=!1;var w=b.firstBaseUpdate,A=b.lastBaseUpdate,O=b.shared.pending;if(O!==null){b.shared.pending=null;var V=O,K=V.next;V.next=null,A===null?w=K:A.next=K,A=V;var nt=l.alternate;nt!==null&&(nt=nt.updateQueue,O=nt.lastBaseUpdate,O!==A&&(O===null?nt.firstBaseUpdate=K:O.next=K,nt.lastBaseUpdate=V))}if(w!==null){var ot=b.baseState;A=0,nt=K=V=null,O=w;do{var J=O.lane&-536870913,tt=J!==O.lane;if(tt?(jt&J)===J:(m&J)===J){J!==0&&J===Hl&&(_g=!0),nt!==null&&(nt=nt.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});t:{var ht=l,bt=O;J=s;var he=h;switch(bt.tag){case 1:if(ht=bt.payload,typeof ht=="function"){ot=ht.call(he,ot,J);break t}ot=ht;break t;case 3:ht.flags=ht.flags&-65537|128;case 0:if(ht=bt.payload,J=typeof ht=="function"?ht.call(he,ot,J):ht,J==null)break t;ot=v({},ot,J);break t;case 2:vi=!0}}J=O.callback,J!==null&&(l.flags|=64,tt&&(l.flags|=8192),tt=b.callbacks,tt===null?b.callbacks=[J]:tt.push(J))}else tt={lane:J,tag:O.tag,payload:O.payload,callback:O.callback,next:null},nt===null?(K=nt=tt,V=ot):nt=nt.next=tt,A|=J;if(O=O.next,O===null){if(O=b.shared.pending,O===null)break;tt=O,O=tt.next,tt.next=null,b.lastBaseUpdate=tt,b.shared.pending=null}}while(!0);nt===null&&(V=ot),b.baseState=V,b.firstBaseUpdate=K,b.lastBaseUpdate=nt,w===null&&(b.shared.lanes=0),bi|=A,l.lanes=A,l.memoizedState=ot}}function Zb(l,s){if(typeof l!="function")throw Error(r(191,l));l.call(s)}function $b(l,s){var h=l.callbacks;if(h!==null)for(l.callbacks=null,l=0;l<h.length;l++)Zb(h[l],s)}var Ul=k(null),Zc=k(0);function Wb(l,s){l=Pa,rt(Zc,l),rt(Ul,s),Pa=l|s.baseLanes}function Sg(){rt(Zc,Pa),rt(Ul,Ul.current)}function bg(){Pa=Zc.current,q(Ul),q(Zc)}var nr=k(null),br=null;function mi(l){var s=l.alternate;rt(ze,ze.current&1),rt(nr,l),br===null&&(s===null||Ul.current!==null||s.memoizedState!==null)&&(br=l)}function xg(l){rt(ze,ze.current),rt(nr,l),br===null&&(br=l)}function Qb(l){l.tag===22?(rt(ze,ze.current),rt(nr,l),br===null&&(br=l)):yi()}function yi(){rt(ze,ze.current),rt(nr,nr.current)}function rr(l){q(nr),br===l&&(br=null),q(ze)}var ze=k(0);function $c(l){for(var s=l;s!==null;){if(s.tag===13){var h=s.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||Dm(h)||Rm(h)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===l)break;for(;s.sibling===null;){if(s.return===null||s.return===l)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Ea=0,It=null,fe=null,Ve=null,Wc=!1,jl=!1,Co=!1,Qc=0,vu=0,Yl=null,bN=0;function Re(){throw Error(r(321))}function wg(l,s){if(s===null)return!1;for(var h=0;h<s.length&&h<l.length;h++)if(!tr(l[h],s[h]))return!1;return!0}function Mg(l,s,h,m,b,w){return Ea=w,It=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,H.H=l===null||l.memoizedState===null?Ix:Hg,Co=!1,w=h(m,b),Co=!1,jl&&(w=Jb(s,h,m,b)),Kb(l),w}function Kb(l){H.H=mu;var s=fe!==null&&fe.next!==null;if(Ea=0,Ve=fe=It=null,Wc=!1,vu=0,Yl=null,s)throw Error(r(300));l===null||Ge||(l=l.dependencies,l!==null&&Vc(l)&&(Ge=!0))}function Jb(l,s,h,m){It=l;var b=0;do{if(jl&&(Yl=null),vu=0,jl=!1,25<=b)throw Error(r(301));if(b+=1,Ve=fe=null,l.updateQueue!=null){var w=l.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}H.H=Bx,w=s(h,m)}while(jl);return w}function xN(){var l=H.H,s=l.useState()[0];return s=typeof s.then=="function"?pu(s):s,l=l.useState()[0],(fe!==null?fe.memoizedState:null)!==l&&(It.flags|=1024),s}function Cg(){var l=Qc!==0;return Qc=0,l}function Tg(l,s,h){s.updateQueue=l.updateQueue,s.flags&=-2053,l.lanes&=~h}function Ag(l){if(Wc){for(l=l.memoizedState;l!==null;){var s=l.queue;s!==null&&(s.pending=null),l=l.next}Wc=!1}Ea=0,Ve=fe=It=null,jl=!1,vu=Qc=0,Yl=null}function Sn(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?It.memoizedState=Ve=l:Ve=Ve.next=l,Ve}function Ne(){if(fe===null){var l=It.alternate;l=l!==null?l.memoizedState:null}else l=fe.next;var s=Ve===null?It.memoizedState:Ve.next;if(s!==null)Ve=s,fe=l;else{if(l===null)throw It.alternate===null?Error(r(467)):Error(r(310));fe=l,l={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},Ve===null?It.memoizedState=Ve=l:Ve=Ve.next=l}return Ve}function Kc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pu(l){var s=vu;return vu+=1,Yl===null&&(Yl=[]),l=Ub(Yl,l,s),s=It,(Ve===null?s.memoizedState:Ve.next)===null&&(s=s.alternate,H.H=s===null||s.memoizedState===null?Ix:Hg),l}function Jc(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return pu(l);if(l.$$typeof===C)return Je(l)}throw Error(r(438,String(l)))}function Dg(l){var s=null,h=It.updateQueue;if(h!==null&&(s=h.memoCache),s==null){var m=It.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(s={data:m.data.map(function(b){return b.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),h===null&&(h=Kc(),It.updateQueue=h),h.memoCache=s,h=s.data[s.index],h===void 0)for(h=s.data[s.index]=Array(l),m=0;m<l;m++)h[m]=N;return s.index++,h}function La(l,s){return typeof s=="function"?s(l):s}function th(l){var s=Ne();return Rg(s,fe,l)}function Rg(l,s,h){var m=l.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=h;var b=l.baseQueue,w=m.pending;if(w!==null){if(b!==null){var A=b.next;b.next=w.next,w.next=A}s.baseQueue=b=w,m.pending=null}if(w=l.baseState,b===null)l.memoizedState=w;else{s=b.next;var O=A=null,V=null,K=s,nt=!1;do{var ot=K.lane&-536870913;if(ot!==K.lane?(jt&ot)===ot:(Ea&ot)===ot){var J=K.revertLane;if(J===0)V!==null&&(V=V.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ot===Hl&&(nt=!0);else if((Ea&J)===J){K=K.next,J===Hl&&(nt=!0);continue}else ot={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},V===null?(O=V=ot,A=w):V=V.next=ot,It.lanes|=J,bi|=J;ot=K.action,Co&&h(w,ot),w=K.hasEagerState?K.eagerState:h(w,ot)}else J={lane:ot,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},V===null?(O=V=J,A=w):V=V.next=J,It.lanes|=ot,bi|=ot;K=K.next}while(K!==null&&K!==s);if(V===null?A=w:V.next=O,!tr(w,l.memoizedState)&&(Ge=!0,nt&&(h=Fl,h!==null)))throw h;l.memoizedState=w,l.baseState=A,l.baseQueue=V,m.lastRenderedState=w}return b===null&&(m.lanes=0),[l.memoizedState,m.dispatch]}function Eg(l){var s=Ne(),h=s.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=l;var m=h.dispatch,b=h.pending,w=s.memoizedState;if(b!==null){h.pending=null;var A=b=b.next;do w=l(w,A.action),A=A.next;while(A!==b);tr(w,s.memoizedState)||(Ge=!0),s.memoizedState=w,s.baseQueue===null&&(s.baseState=w),h.lastRenderedState=w}return[w,m]}function tx(l,s,h){var m=It,b=Ne(),w=$t;if(w){if(h===void 0)throw Error(r(407));h=h()}else h=s();var A=!tr((fe||b).memoizedState,h);if(A&&(b.memoizedState=h,Ge=!0),b=b.queue,zg(rx.bind(null,m,b,l),[l]),b.getSnapshot!==s||A||Ve!==null&&Ve.memoizedState.tag&1){if(m.flags|=2048,ql(9,{destroy:void 0},nx.bind(null,m,b,h,s),null),pe===null)throw Error(r(349));w||(Ea&127)!==0||ex(m,s,h)}return h}function ex(l,s,h){l.flags|=16384,l={getSnapshot:s,value:h},s=It.updateQueue,s===null?(s=Kc(),It.updateQueue=s,s.stores=[l]):(h=s.stores,h===null?s.stores=[l]:h.push(l))}function nx(l,s,h,m){s.value=h,s.getSnapshot=m,ax(s)&&ix(l)}function rx(l,s,h){return h(function(){ax(s)&&ix(l)})}function ax(l){var s=l.getSnapshot;l=l.value;try{var h=s();return!tr(l,h)}catch{return!0}}function ix(l){var s=go(l,2);s!==null&&Fn(s,l,2)}function Lg(l){var s=Sn();if(typeof l=="function"){var h=l;if(l=h(),Co){He(!0);try{h()}finally{He(!1)}}}return s.memoizedState=s.baseState=l,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:l},s}function ox(l,s,h,m){return l.baseState=h,Rg(l,fe,typeof m=="function"?m:La)}function wN(l,s,h,m,b){if(rh(l))throw Error(r(485));if(l=s.action,l!==null){var w={payload:b,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){w.listeners.push(A)}};H.T!==null?h(!0):w.isTransition=!1,m(w),h=s.pending,h===null?(w.next=s.pending=w,lx(s,w)):(w.next=h.next,s.pending=h.next=w)}}function lx(l,s){var h=s.action,m=s.payload,b=l.state;if(s.isTransition){var w=H.T,A={};H.T=A;try{var O=h(b,m),V=H.S;V!==null&&V(A,O),sx(l,s,O)}catch(K){Og(l,s,K)}finally{w!==null&&A.types!==null&&(w.types=A.types),H.T=w}}else try{w=h(b,m),sx(l,s,w)}catch(K){Og(l,s,K)}}function sx(l,s,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(m){ux(l,s,m)},function(m){return Og(l,s,m)}):ux(l,s,h)}function ux(l,s,h){s.status="fulfilled",s.value=h,fx(s),l.state=h,s=l.pending,s!==null&&(h=s.next,h===s?l.pending=null:(h=h.next,s.next=h,lx(l,h)))}function Og(l,s,h){var m=l.pending;if(l.pending=null,m!==null){m=m.next;do s.status="rejected",s.reason=h,fx(s),s=s.next;while(s!==m)}l.action=null}function fx(l){l=l.listeners;for(var s=0;s<l.length;s++)(0,l[s])()}function cx(l,s){return s}function hx(l,s){if($t){var h=pe.formState;if(h!==null){t:{var m=It;if($t){if(_e){e:{for(var b=_e,w=Sr;b.nodeType!==8;){if(!w){b=null;break e}if(b=xr(b.nextSibling),b===null){b=null;break e}}w=b.data,b=w==="F!"||w==="F"?b:null}if(b){_e=xr(b.nextSibling),m=b.data==="F!";break t}}hi(m)}m=!1}m&&(s=h[0])}}return h=Sn(),h.memoizedState=h.baseState=s,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cx,lastRenderedState:s},h.queue=m,h=Ox.bind(null,It,m),m.dispatch=h,m=Lg(!1),w=Pg.bind(null,It,!1,m.queue),m=Sn(),b={state:s,dispatch:null,action:l,pending:null},m.queue=b,h=wN.bind(null,It,b,w,h),b.dispatch=h,m.memoizedState=l,[s,h,!1]}function dx(l){var s=Ne();return vx(s,fe,l)}function vx(l,s,h){if(s=Rg(l,s,cx)[0],l=th(La)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var m=pu(s)}catch(A){throw A===Vl?jc:A}else m=s;s=Ne();var b=s.queue,w=b.dispatch;return h!==s.memoizedState&&(It.flags|=2048,ql(9,{destroy:void 0},MN.bind(null,b,h),null)),[m,w,l]}function MN(l,s){l.action=s}function px(l){var s=Ne(),h=fe;if(h!==null)return vx(s,h,l);Ne(),s=s.memoizedState,h=Ne();var m=h.queue.dispatch;return h.memoizedState=l,[s,m,!1]}function ql(l,s,h,m){return l={tag:l,create:h,deps:m,inst:s,next:null},s=It.updateQueue,s===null&&(s=Kc(),It.updateQueue=s),h=s.lastEffect,h===null?s.lastEffect=l.next=l:(m=h.next,h.next=l,l.next=m,s.lastEffect=l),l}function gx(){return Ne().memoizedState}function eh(l,s,h,m){var b=Sn();It.flags|=l,b.memoizedState=ql(1|s,{destroy:void 0},h,m===void 0?null:m)}function nh(l,s,h,m){var b=Ne();m=m===void 0?null:m;var w=b.memoizedState.inst;fe!==null&&m!==null&&wg(m,fe.memoizedState.deps)?b.memoizedState=ql(s,w,h,m):(It.flags|=l,b.memoizedState=ql(1|s,w,h,m))}function mx(l,s){eh(8390656,8,l,s)}function zg(l,s){nh(2048,8,l,s)}function CN(l){It.flags|=4;var s=It.updateQueue;if(s===null)s=Kc(),It.updateQueue=s,s.events=[l];else{var h=s.events;h===null?s.events=[l]:h.push(l)}}function yx(l){var s=Ne().memoizedState;return CN({ref:s,nextImpl:l}),function(){if((re&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function _x(l,s){return nh(4,2,l,s)}function Sx(l,s){return nh(4,4,l,s)}function bx(l,s){if(typeof s=="function"){l=l();var h=s(l);return function(){typeof h=="function"?h():s(null)}}if(s!=null)return l=l(),s.current=l,function(){s.current=null}}function xx(l,s,h){h=h!=null?h.concat([l]):null,nh(4,4,bx.bind(null,s,l),h)}function Ng(){}function Mx(l,s){var h=Ne();s=s===void 0?null:s;var m=h.memoizedState;return s!==null&&wg(s,m[1])?m[0]:(h.memoizedState=[l,s],l)}function Cx(l,s){var h=Ne();s=s===void 0?null:s;var m=h.memoizedState;if(s!==null&&wg(s,m[1]))return m[0];if(m=l(),Co){He(!0);try{l()}finally{He(!1)}}return h.memoizedState=[m,s],m}function Ig(l,s,h){return h===void 0||(Ea&1073741824)!==0&&(jt&261930)===0?l.memoizedState=s:(l.memoizedState=h,l=Tw(),It.lanes|=l,bi|=l,h)}function Tx(l,s,h,m){return tr(h,s)?h:Ul.current!==null?(l=Ig(l,h,m),tr(l,s)||(Ge=!0),l):(Ea&42)===0||(Ea&1073741824)!==0&&(jt&261930)===0?(Ge=!0,l.memoizedState=h):(l=Tw(),It.lanes|=l,bi|=l,s)}function Ax(l,s,h,m,b){var w=X.p;X.p=w!==0&&8>w?w:8;var A=H.T,O={};H.T=O,Pg(l,!1,s,h);try{var V=b(),K=H.S;if(K!==null&&K(O,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var nt=SN(V,m);gu(l,s,nt,or(l))}else gu(l,s,m,or(l))}catch(ot){gu(l,s,{then:function(){},status:"rejected",reason:ot},or())}finally{X.p=w,A!==null&&O.types!==null&&(A.types=O.types),H.T=A}}function TN(){}function Bg(l,s,h,m){if(l.tag!==5)throw Error(r(476));var b=Dx(l).queue;Ax(l,b,s,U,h===null?TN:function(){return Rx(l),h(m)})}function Dx(l){var s=l.memoizedState;if(s!==null)return s;s={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:U},next:null};var h={};return s.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:h},next:null},l.memoizedState=s,l=l.alternate,l!==null&&(l.memoizedState=s),s}function Rx(l){var s=Dx(l);s.next===null&&(s=l.alternate.memoizedState),gu(l,s.next.queue,{},or())}function kg(){return Je(zu)}function Ex(){return Ne().memoizedState}function Lx(){return Ne().memoizedState}function AN(l){for(var s=l.return;s!==null;){switch(s.tag){case 24:case 3:var h=or();l=pi(h);var m=gi(s,l,h);m!==null&&(Fn(m,s,h),cu(m,s,h)),s={cache:hg()},l.payload=s;return}s=s.return}}function DN(l,s,h){var m=or();h={lane:m,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},rh(l)?zx(s,h):(h=eg(l,s,h,m),h!==null&&(Fn(h,l,m),Nx(h,s,m)))}function Ox(l,s,h){var m=or();gu(l,s,h,m)}function gu(l,s,h,m){var b={lane:m,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null};if(rh(l))zx(s,b);else{var w=l.alternate;if(l.lanes===0&&(w===null||w.lanes===0)&&(w=s.lastRenderedReducer,w!==null))try{var A=s.lastRenderedState,O=w(A,h);if(b.hasEagerState=!0,b.eagerState=O,tr(O,A))return kc(l,s,b,0),pe===null&&Bc(),!1}catch{}finally{}if(h=eg(l,s,b,m),h!==null)return Fn(h,l,m),Nx(h,s,m),!0}return!1}function Pg(l,s,h,m){if(m={lane:2,revertLane:gm(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},rh(l)){if(s)throw Error(r(479))}else s=eg(l,h,m,2),s!==null&&Fn(s,l,2)}function rh(l){var s=l.alternate;return l===It||s!==null&&s===It}function zx(l,s){jl=Wc=!0;var h=l.pending;h===null?s.next=s:(s.next=h.next,h.next=s),l.pending=s}function Nx(l,s,h){if((h&4194048)!==0){var m=s.lanes;m&=l.pendingLanes,h|=m,s.lanes=h,P1(l,h)}}var mu={readContext:Je,use:Jc,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useLayoutEffect:Re,useInsertionEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useSyncExternalStore:Re,useId:Re,useHostTransitionStatus:Re,useFormState:Re,useActionState:Re,useOptimistic:Re,useMemoCache:Re,useCacheRefresh:Re};mu.useEffectEvent=Re;var Ix={readContext:Je,use:Jc,useCallback:function(l,s){return Sn().memoizedState=[l,s===void 0?null:s],l},useContext:Je,useEffect:mx,useImperativeHandle:function(l,s,h){h=h!=null?h.concat([l]):null,eh(4194308,4,bx.bind(null,s,l),h)},useLayoutEffect:function(l,s){return eh(4194308,4,l,s)},useInsertionEffect:function(l,s){eh(4,2,l,s)},useMemo:function(l,s){var h=Sn();s=s===void 0?null:s;var m=l();if(Co){He(!0);try{l()}finally{He(!1)}}return h.memoizedState=[m,s],m},useReducer:function(l,s,h){var m=Sn();if(h!==void 0){var b=h(s);if(Co){He(!0);try{h(s)}finally{He(!1)}}}else b=s;return m.memoizedState=m.baseState=b,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:b},m.queue=l,l=l.dispatch=DN.bind(null,It,l),[m.memoizedState,l]},useRef:function(l){var s=Sn();return l={current:l},s.memoizedState=l},useState:function(l){l=Lg(l);var s=l.queue,h=Ox.bind(null,It,s);return s.dispatch=h,[l.memoizedState,h]},useDebugValue:Ng,useDeferredValue:function(l,s){var h=Sn();return Ig(h,l,s)},useTransition:function(){var l=Lg(!1);return l=Ax.bind(null,It,l.queue,!0,!1),Sn().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,s,h){var m=It,b=Sn();if($t){if(h===void 0)throw Error(r(407));h=h()}else{if(h=s(),pe===null)throw Error(r(349));(jt&127)!==0||ex(m,s,h)}b.memoizedState=h;var w={value:h,getSnapshot:s};return b.queue=w,mx(rx.bind(null,m,w,l),[l]),m.flags|=2048,ql(9,{destroy:void 0},nx.bind(null,m,w,h,s),null),h},useId:function(){var l=Sn(),s=pe.identifierPrefix;if($t){var h=aa,m=ra;h=(m&~(1<<32-Ye(m)-1)).toString(32)+h,s="_"+s+"R_"+h,h=Qc++,0<h&&(s+="H"+h.toString(32)),s+="_"}else h=bN++,s="_"+s+"r_"+h.toString(32)+"_";return l.memoizedState=s},useHostTransitionStatus:kg,useFormState:hx,useActionState:hx,useOptimistic:function(l){var s=Sn();s.memoizedState=s.baseState=l;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=h,s=Pg.bind(null,It,!0,h),h.dispatch=s,[l,s]},useMemoCache:Dg,useCacheRefresh:function(){return Sn().memoizedState=AN.bind(null,It)},useEffectEvent:function(l){var s=Sn(),h={impl:l};return s.memoizedState=h,function(){if((re&2)!==0)throw Error(r(440));return h.impl.apply(void 0,arguments)}}},Hg={readContext:Je,use:Jc,useCallback:Mx,useContext:Je,useEffect:zg,useImperativeHandle:xx,useInsertionEffect:_x,useLayoutEffect:Sx,useMemo:Cx,useReducer:th,useRef:gx,useState:function(){return th(La)},useDebugValue:Ng,useDeferredValue:function(l,s){var h=Ne();return Tx(h,fe.memoizedState,l,s)},useTransition:function(){var l=th(La)[0],s=Ne().memoizedState;return[typeof l=="boolean"?l:pu(l),s]},useSyncExternalStore:tx,useId:Ex,useHostTransitionStatus:kg,useFormState:dx,useActionState:dx,useOptimistic:function(l,s){var h=Ne();return ox(h,fe,l,s)},useMemoCache:Dg,useCacheRefresh:Lx};Hg.useEffectEvent=yx;var Bx={readContext:Je,use:Jc,useCallback:Mx,useContext:Je,useEffect:zg,useImperativeHandle:xx,useInsertionEffect:_x,useLayoutEffect:Sx,useMemo:Cx,useReducer:Eg,useRef:gx,useState:function(){return Eg(La)},useDebugValue:Ng,useDeferredValue:function(l,s){var h=Ne();return fe===null?Ig(h,l,s):Tx(h,fe.memoizedState,l,s)},useTransition:function(){var l=Eg(La)[0],s=Ne().memoizedState;return[typeof l=="boolean"?l:pu(l),s]},useSyncExternalStore:tx,useId:Ex,useHostTransitionStatus:kg,useFormState:px,useActionState:px,useOptimistic:function(l,s){var h=Ne();return fe!==null?ox(h,fe,l,s):(h.baseState=l,[l,h.queue.dispatch])},useMemoCache:Dg,useCacheRefresh:Lx};Bx.useEffectEvent=yx;function Fg(l,s,h,m){s=l.memoizedState,h=h(m,s),h=h==null?s:v({},s,h),l.memoizedState=h,l.lanes===0&&(l.updateQueue.baseState=h)}var Vg={enqueueSetState:function(l,s,h){l=l._reactInternals;var m=or(),b=pi(m);b.payload=s,h!=null&&(b.callback=h),s=gi(l,b,m),s!==null&&(Fn(s,l,m),cu(s,l,m))},enqueueReplaceState:function(l,s,h){l=l._reactInternals;var m=or(),b=pi(m);b.tag=1,b.payload=s,h!=null&&(b.callback=h),s=gi(l,b,m),s!==null&&(Fn(s,l,m),cu(s,l,m))},enqueueForceUpdate:function(l,s){l=l._reactInternals;var h=or(),m=pi(h);m.tag=2,s!=null&&(m.callback=s),s=gi(l,m,h),s!==null&&(Fn(s,l,h),cu(s,l,h))}};function kx(l,s,h,m,b,w,A){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(m,w,A):s.prototype&&s.prototype.isPureReactComponent?!ru(h,m)||!ru(b,w):!0}function Px(l,s,h,m){l=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(h,m),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(h,m),s.state!==l&&Vg.enqueueReplaceState(s,s.state,null)}function To(l,s){var h=s;if("ref"in s){h={};for(var m in s)m!=="ref"&&(h[m]=s[m])}if(l=l.defaultProps){h===s&&(h=v({},h));for(var b in l)h[b]===void 0&&(h[b]=l[b])}return h}function Hx(l){Ic(l)}function Fx(l){console.error(l)}function Vx(l){Ic(l)}function ah(l,s){try{var h=l.onUncaughtError;h(s.value,{componentStack:s.stack})}catch(m){setTimeout(function(){throw m})}}function Gx(l,s,h){try{var m=l.onCaughtError;m(h.value,{componentStack:h.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function Gg(l,s,h){return h=pi(h),h.tag=3,h.payload={element:null},h.callback=function(){ah(l,s)},h}function Ux(l){return l=pi(l),l.tag=3,l}function jx(l,s,h,m){var b=h.type.getDerivedStateFromError;if(typeof b=="function"){var w=m.value;l.payload=function(){return b(w)},l.callback=function(){Gx(s,h,m)}}var A=h.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(l.callback=function(){Gx(s,h,m),typeof b!="function"&&(xi===null?xi=new Set([this]):xi.add(this));var O=m.stack;this.componentDidCatch(m.value,{componentStack:O!==null?O:""})})}function RN(l,s,h,m,b){if(h.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(s=h.alternate,s!==null&&Pl(s,h,b,!0),h=nr.current,h!==null){switch(h.tag){case 31:case 13:return br===null?gh():h.alternate===null&&Ee===0&&(Ee=3),h.flags&=-257,h.flags|=65536,h.lanes=b,m===Yc?h.flags|=16384:(s=h.updateQueue,s===null?h.updateQueue=new Set([m]):s.add(m),dm(l,m,b)),!1;case 22:return h.flags|=65536,m===Yc?h.flags|=16384:(s=h.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([m])},h.updateQueue=s):(h=s.retryQueue,h===null?s.retryQueue=new Set([m]):h.add(m)),dm(l,m,b)),!1}throw Error(r(435,h.tag))}return dm(l,m,b),gh(),!1}if($t)return s=nr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=b,m!==lg&&(l=Error(r(422),{cause:m}),ou(mr(l,h)))):(m!==lg&&(s=Error(r(423),{cause:m}),ou(mr(s,h))),l=l.current.alternate,l.flags|=65536,b&=-b,l.lanes|=b,m=mr(m,h),b=Gg(l.stateNode,m,b),yg(l,b),Ee!==4&&(Ee=2)),!1;var w=Error(r(520),{cause:m});if(w=mr(w,h),Cu===null?Cu=[w]:Cu.push(w),Ee!==4&&(Ee=2),s===null)return!0;m=mr(m,h),h=s;do{switch(h.tag){case 3:return h.flags|=65536,l=b&-b,h.lanes|=l,l=Gg(h.stateNode,m,l),yg(h,l),!1;case 1:if(s=h.type,w=h.stateNode,(h.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(xi===null||!xi.has(w))))return h.flags|=65536,b&=-b,h.lanes|=b,b=Ux(b),jx(b,l,h,m),yg(h,b),!1}h=h.return}while(h!==null);return!1}var Ug=Error(r(461)),Ge=!1;function tn(l,s,h,m){s.child=l===null?Xb(s,null,h,m):Mo(s,l.child,h,m)}function Yx(l,s,h,m,b){h=h.render;var w=s.ref;if("ref"in m){var A={};for(var O in m)O!=="ref"&&(A[O]=m[O])}else A=m;return So(s),m=Mg(l,s,h,A,w,b),O=Cg(),l!==null&&!Ge?(Tg(l,s,b),Oa(l,s,b)):($t&&O&&ig(s),s.flags|=1,tn(l,s,m,b),s.child)}function qx(l,s,h,m,b){if(l===null){var w=h.type;return typeof w=="function"&&!ng(w)&&w.defaultProps===void 0&&h.compare===null?(s.tag=15,s.type=w,Xx(l,s,w,m,b)):(l=Hc(h.type,null,m,s,s.mode,b),l.ref=s.ref,l.return=s,s.child=l)}if(w=l.child,!Qg(l,b)){var A=w.memoizedProps;if(h=h.compare,h=h!==null?h:ru,h(A,m)&&l.ref===s.ref)return Oa(l,s,b)}return s.flags|=1,l=Ta(w,m),l.ref=s.ref,l.return=s,s.child=l}function Xx(l,s,h,m,b){if(l!==null){var w=l.memoizedProps;if(ru(w,m)&&l.ref===s.ref)if(Ge=!1,s.pendingProps=m=w,Qg(l,b))(l.flags&131072)!==0&&(Ge=!0);else return s.lanes=l.lanes,Oa(l,s,b)}return jg(l,s,h,m,b)}function Zx(l,s,h,m){var b=m.children,w=l!==null?l.memoizedState:null;if(l===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((s.flags&128)!==0){if(w=w!==null?w.baseLanes|h:h,l!==null){for(m=s.child=l.child,b=0;m!==null;)b=b|m.lanes|m.childLanes,m=m.sibling;m=b&~w}else m=0,s.child=null;return $x(l,s,w,h,m)}if((h&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},l!==null&&Uc(s,w!==null?w.cachePool:null),w!==null?Wb(s,w):Sg(),Qb(s);else return m=s.lanes=536870912,$x(l,s,w!==null?w.baseLanes|h:h,h,m)}else w!==null?(Uc(s,w.cachePool),Wb(s,w),yi(),s.memoizedState=null):(l!==null&&Uc(s,null),Sg(),yi());return tn(l,s,b,h),s.child}function yu(l,s){return l!==null&&l.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function $x(l,s,h,m,b){var w=vg();return w=w===null?null:{parent:Fe._currentValue,pool:w},s.memoizedState={baseLanes:h,cachePool:w},l!==null&&Uc(s,null),Sg(),Qb(s),l!==null&&Pl(l,s,m,!0),s.childLanes=b,null}function ih(l,s){return s=lh({mode:s.mode,children:s.children},l.mode),s.ref=l.ref,l.child=s,s.return=l,s}function Wx(l,s,h){return Mo(s,l.child,null,h),l=ih(s,s.pendingProps),l.flags|=2,rr(s),s.memoizedState=null,l}function EN(l,s,h){var m=s.pendingProps,b=(s.flags&128)!==0;if(s.flags&=-129,l===null){if($t){if(m.mode==="hidden")return l=ih(s,m),s.lanes=536870912,yu(null,l);if(xg(s),(l=_e)?(l=sM(l,Sr),l=l!==null&&l.data==="&"?l:null,l!==null&&(s.memoizedState={dehydrated:l,treeContext:fi!==null?{id:ra,overflow:aa}:null,retryLane:536870912,hydrationErrors:null},h=Ob(l),h.return=s,s.child=h,Ke=s,_e=null)):l=null,l===null)throw hi(s);return s.lanes=536870912,null}return ih(s,m)}var w=l.memoizedState;if(w!==null){var A=w.dehydrated;if(xg(s),b)if(s.flags&256)s.flags&=-257,s=Wx(l,s,h);else if(s.memoizedState!==null)s.child=l.child,s.flags|=128,s=null;else throw Error(r(558));else if(Ge||Pl(l,s,h,!1),b=(h&l.childLanes)!==0,Ge||b){if(m=pe,m!==null&&(A=H1(m,h),A!==0&&A!==w.retryLane))throw w.retryLane=A,go(l,A),Fn(m,l,A),Ug;gh(),s=Wx(l,s,h)}else l=w.treeContext,_e=xr(A.nextSibling),Ke=s,$t=!0,ci=null,Sr=!1,l!==null&&Ib(s,l),s=ih(s,m),s.flags|=4096;return s}return l=Ta(l.child,{mode:m.mode,children:m.children}),l.ref=s.ref,s.child=l,l.return=s,l}function oh(l,s){var h=s.ref;if(h===null)l!==null&&l.ref!==null&&(s.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(l===null||l.ref!==h)&&(s.flags|=4194816)}}function jg(l,s,h,m,b){return So(s),h=Mg(l,s,h,m,void 0,b),m=Cg(),l!==null&&!Ge?(Tg(l,s,b),Oa(l,s,b)):($t&&m&&ig(s),s.flags|=1,tn(l,s,h,b),s.child)}function Qx(l,s,h,m,b,w){return So(s),s.updateQueue=null,h=Jb(s,m,h,b),Kb(l),m=Cg(),l!==null&&!Ge?(Tg(l,s,w),Oa(l,s,w)):($t&&m&&ig(s),s.flags|=1,tn(l,s,h,w),s.child)}function Kx(l,s,h,m,b){if(So(s),s.stateNode===null){var w=Nl,A=h.contextType;typeof A=="object"&&A!==null&&(w=Je(A)),w=new h(m,w),s.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=Vg,s.stateNode=w,w._reactInternals=s,w=s.stateNode,w.props=m,w.state=s.memoizedState,w.refs={},gg(s),A=h.contextType,w.context=typeof A=="object"&&A!==null?Je(A):Nl,w.state=s.memoizedState,A=h.getDerivedStateFromProps,typeof A=="function"&&(Fg(s,h,A,m),w.state=s.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(A=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),A!==w.state&&Vg.enqueueReplaceState(w,w.state,null),du(s,m,w,b),hu(),w.state=s.memoizedState),typeof w.componentDidMount=="function"&&(s.flags|=4194308),m=!0}else if(l===null){w=s.stateNode;var O=s.memoizedProps,V=To(h,O);w.props=V;var K=w.context,nt=h.contextType;A=Nl,typeof nt=="object"&&nt!==null&&(A=Je(nt));var ot=h.getDerivedStateFromProps;nt=typeof ot=="function"||typeof w.getSnapshotBeforeUpdate=="function",O=s.pendingProps!==O,nt||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(O||K!==A)&&Px(s,w,m,A),vi=!1;var J=s.memoizedState;w.state=J,du(s,m,w,b),hu(),K=s.memoizedState,O||J!==K||vi?(typeof ot=="function"&&(Fg(s,h,ot,m),K=s.memoizedState),(V=vi||kx(s,h,V,m,J,K,A))?(nt||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(s.flags|=4194308)):(typeof w.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=m,s.memoizedState=K),w.props=m,w.state=K,w.context=A,m=V):(typeof w.componentDidMount=="function"&&(s.flags|=4194308),m=!1)}else{w=s.stateNode,mg(l,s),A=s.memoizedProps,nt=To(h,A),w.props=nt,ot=s.pendingProps,J=w.context,K=h.contextType,V=Nl,typeof K=="object"&&K!==null&&(V=Je(K)),O=h.getDerivedStateFromProps,(K=typeof O=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(A!==ot||J!==V)&&Px(s,w,m,V),vi=!1,J=s.memoizedState,w.state=J,du(s,m,w,b),hu();var tt=s.memoizedState;A!==ot||J!==tt||vi||l!==null&&l.dependencies!==null&&Vc(l.dependencies)?(typeof O=="function"&&(Fg(s,h,O,m),tt=s.memoizedState),(nt=vi||kx(s,h,nt,m,J,tt,V)||l!==null&&l.dependencies!==null&&Vc(l.dependencies))?(K||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(m,tt,V),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(m,tt,V)),typeof w.componentDidUpdate=="function"&&(s.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof w.componentDidUpdate!="function"||A===l.memoizedProps&&J===l.memoizedState||(s.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||A===l.memoizedProps&&J===l.memoizedState||(s.flags|=1024),s.memoizedProps=m,s.memoizedState=tt),w.props=m,w.state=tt,w.context=V,m=nt):(typeof w.componentDidUpdate!="function"||A===l.memoizedProps&&J===l.memoizedState||(s.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||A===l.memoizedProps&&J===l.memoizedState||(s.flags|=1024),m=!1)}return w=m,oh(l,s),m=(s.flags&128)!==0,w||m?(w=s.stateNode,h=m&&typeof h.getDerivedStateFromError!="function"?null:w.render(),s.flags|=1,l!==null&&m?(s.child=Mo(s,l.child,null,b),s.child=Mo(s,null,h,b)):tn(l,s,h,b),s.memoizedState=w.state,l=s.child):l=Oa(l,s,b),l}function Jx(l,s,h,m){return yo(),s.flags|=256,tn(l,s,h,m),s.child}var Yg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qg(l){return{baseLanes:l,cachePool:Vb()}}function Xg(l,s,h){return l=l!==null?l.childLanes&~h:0,s&&(l|=ir),l}function tw(l,s,h){var m=s.pendingProps,b=!1,w=(s.flags&128)!==0,A;if((A=w)||(A=l!==null&&l.memoizedState===null?!1:(ze.current&2)!==0),A&&(b=!0,s.flags&=-129),A=(s.flags&32)!==0,s.flags&=-33,l===null){if($t){if(b?mi(s):yi(),(l=_e)?(l=sM(l,Sr),l=l!==null&&l.data!=="&"?l:null,l!==null&&(s.memoizedState={dehydrated:l,treeContext:fi!==null?{id:ra,overflow:aa}:null,retryLane:536870912,hydrationErrors:null},h=Ob(l),h.return=s,s.child=h,Ke=s,_e=null)):l=null,l===null)throw hi(s);return Rm(l)?s.lanes=32:s.lanes=536870912,null}var O=m.children;return m=m.fallback,b?(yi(),b=s.mode,O=lh({mode:"hidden",children:O},b),m=mo(m,b,h,null),O.return=s,m.return=s,O.sibling=m,s.child=O,m=s.child,m.memoizedState=qg(h),m.childLanes=Xg(l,A,h),s.memoizedState=Yg,yu(null,m)):(mi(s),Zg(s,O))}var V=l.memoizedState;if(V!==null&&(O=V.dehydrated,O!==null)){if(w)s.flags&256?(mi(s),s.flags&=-257,s=$g(l,s,h)):s.memoizedState!==null?(yi(),s.child=l.child,s.flags|=128,s=null):(yi(),O=m.fallback,b=s.mode,m=lh({mode:"visible",children:m.children},b),O=mo(O,b,h,null),O.flags|=2,m.return=s,O.return=s,m.sibling=O,s.child=m,Mo(s,l.child,null,h),m=s.child,m.memoizedState=qg(h),m.childLanes=Xg(l,A,h),s.memoizedState=Yg,s=yu(null,m));else if(mi(s),Rm(O)){if(A=O.nextSibling&&O.nextSibling.dataset,A)var K=A.dgst;A=K,m=Error(r(419)),m.stack="",m.digest=A,ou({value:m,source:null,stack:null}),s=$g(l,s,h)}else if(Ge||Pl(l,s,h,!1),A=(h&l.childLanes)!==0,Ge||A){if(A=pe,A!==null&&(m=H1(A,h),m!==0&&m!==V.retryLane))throw V.retryLane=m,go(l,m),Fn(A,l,m),Ug;Dm(O)||gh(),s=$g(l,s,h)}else Dm(O)?(s.flags|=192,s.child=l.child,s=null):(l=V.treeContext,_e=xr(O.nextSibling),Ke=s,$t=!0,ci=null,Sr=!1,l!==null&&Ib(s,l),s=Zg(s,m.children),s.flags|=4096);return s}return b?(yi(),O=m.fallback,b=s.mode,V=l.child,K=V.sibling,m=Ta(V,{mode:"hidden",children:m.children}),m.subtreeFlags=V.subtreeFlags&65011712,K!==null?O=Ta(K,O):(O=mo(O,b,h,null),O.flags|=2),O.return=s,m.return=s,m.sibling=O,s.child=m,yu(null,m),m=s.child,O=l.child.memoizedState,O===null?O=qg(h):(b=O.cachePool,b!==null?(V=Fe._currentValue,b=b.parent!==V?{parent:V,pool:V}:b):b=Vb(),O={baseLanes:O.baseLanes|h,cachePool:b}),m.memoizedState=O,m.childLanes=Xg(l,A,h),s.memoizedState=Yg,yu(l.child,m)):(mi(s),h=l.child,l=h.sibling,h=Ta(h,{mode:"visible",children:m.children}),h.return=s,h.sibling=null,l!==null&&(A=s.deletions,A===null?(s.deletions=[l],s.flags|=16):A.push(l)),s.child=h,s.memoizedState=null,h)}function Zg(l,s){return s=lh({mode:"visible",children:s},l.mode),s.return=l,l.child=s}function lh(l,s){return l=er(22,l,null,s),l.lanes=0,l}function $g(l,s,h){return Mo(s,l.child,null,h),l=Zg(s,s.pendingProps.children),l.flags|=2,s.memoizedState=null,l}function ew(l,s,h){l.lanes|=s;var m=l.alternate;m!==null&&(m.lanes|=s),fg(l.return,s,h)}function Wg(l,s,h,m,b,w){var A=l.memoizedState;A===null?l.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:m,tail:h,tailMode:b,treeForkCount:w}:(A.isBackwards=s,A.rendering=null,A.renderingStartTime=0,A.last=m,A.tail=h,A.tailMode=b,A.treeForkCount=w)}function nw(l,s,h){var m=s.pendingProps,b=m.revealOrder,w=m.tail;m=m.children;var A=ze.current,O=(A&2)!==0;if(O?(A=A&1|2,s.flags|=128):A&=1,rt(ze,A),tn(l,s,m,h),m=$t?iu:0,!O&&l!==null&&(l.flags&128)!==0)t:for(l=s.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&ew(l,h,s);else if(l.tag===19)ew(l,h,s);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break t;for(;l.sibling===null;){if(l.return===null||l.return===s)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(b){case"forwards":for(h=s.child,b=null;h!==null;)l=h.alternate,l!==null&&$c(l)===null&&(b=h),h=h.sibling;h=b,h===null?(b=s.child,s.child=null):(b=h.sibling,h.sibling=null),Wg(s,!1,b,h,w,m);break;case"backwards":case"unstable_legacy-backwards":for(h=null,b=s.child,s.child=null;b!==null;){if(l=b.alternate,l!==null&&$c(l)===null){s.child=b;break}l=b.sibling,b.sibling=h,h=b,b=l}Wg(s,!0,h,null,w,m);break;case"together":Wg(s,!1,null,null,void 0,m);break;default:s.memoizedState=null}return s.child}function Oa(l,s,h){if(l!==null&&(s.dependencies=l.dependencies),bi|=s.lanes,(h&s.childLanes)===0)if(l!==null){if(Pl(l,s,h,!1),(h&s.childLanes)===0)return null}else return null;if(l!==null&&s.child!==l.child)throw Error(r(153));if(s.child!==null){for(l=s.child,h=Ta(l,l.pendingProps),s.child=h,h.return=s;l.sibling!==null;)l=l.sibling,h=h.sibling=Ta(l,l.pendingProps),h.return=s;h.sibling=null}return s.child}function Qg(l,s){return(l.lanes&s)!==0?!0:(l=l.dependencies,!!(l!==null&&Vc(l)))}function LN(l,s,h){switch(s.tag){case 3:Mt(s,s.stateNode.containerInfo),di(s,Fe,l.memoizedState.cache),yo();break;case 27:case 5:le(s);break;case 4:Mt(s,s.stateNode.containerInfo);break;case 10:di(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,xg(s),null;break;case 13:var m=s.memoizedState;if(m!==null)return m.dehydrated!==null?(mi(s),s.flags|=128,null):(h&s.child.childLanes)!==0?tw(l,s,h):(mi(s),l=Oa(l,s,h),l!==null?l.sibling:null);mi(s);break;case 19:var b=(l.flags&128)!==0;if(m=(h&s.childLanes)!==0,m||(Pl(l,s,h,!1),m=(h&s.childLanes)!==0),b){if(m)return nw(l,s,h);s.flags|=128}if(b=s.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),rt(ze,ze.current),m)break;return null;case 22:return s.lanes=0,Zx(l,s,h,s.pendingProps);case 24:di(s,Fe,l.memoizedState.cache)}return Oa(l,s,h)}function rw(l,s,h){if(l!==null)if(l.memoizedProps!==s.pendingProps)Ge=!0;else{if(!Qg(l,h)&&(s.flags&128)===0)return Ge=!1,LN(l,s,h);Ge=(l.flags&131072)!==0}else Ge=!1,$t&&(s.flags&1048576)!==0&&Nb(s,iu,s.index);switch(s.lanes=0,s.tag){case 16:t:{var m=s.pendingProps;if(l=xo(s.elementType),s.type=l,typeof l=="function")ng(l)?(m=To(l,m),s.tag=1,s=Kx(null,s,l,m,h)):(s.tag=0,s=jg(null,s,l,m,h));else{if(l!=null){var b=l.$$typeof;if(b===T){s.tag=11,s=Yx(null,s,l,m,h);break t}else if(b===E){s.tag=14,s=qx(null,s,l,m,h);break t}}throw s=Y(l)||l,Error(r(306,s,""))}}return s;case 0:return jg(l,s,s.type,s.pendingProps,h);case 1:return m=s.type,b=To(m,s.pendingProps),Kx(l,s,m,b,h);case 3:t:{if(Mt(s,s.stateNode.containerInfo),l===null)throw Error(r(387));m=s.pendingProps;var w=s.memoizedState;b=w.element,mg(l,s),du(s,m,null,h);var A=s.memoizedState;if(m=A.cache,di(s,Fe,m),m!==w.cache&&cg(s,[Fe],h,!0),hu(),m=A.element,w.isDehydrated)if(w={element:m,isDehydrated:!1,cache:A.cache},s.updateQueue.baseState=w,s.memoizedState=w,s.flags&256){s=Jx(l,s,m,h);break t}else if(m!==b){b=mr(Error(r(424)),s),ou(b),s=Jx(l,s,m,h);break t}else{switch(l=s.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(_e=xr(l.firstChild),Ke=s,$t=!0,ci=null,Sr=!0,h=Xb(s,null,m,h),s.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(yo(),m===b){s=Oa(l,s,h);break t}tn(l,s,m,h)}s=s.child}return s;case 26:return oh(l,s),l===null?(h=vM(s.type,null,s.pendingProps,null))?s.memoizedState=h:$t||(h=s.type,l=s.pendingProps,m=wh(gt.current).createElement(h),m[Qe]=s,m[Nn]=l,en(m,h,l),Xe(m),s.stateNode=m):s.memoizedState=vM(s.type,l.memoizedProps,s.pendingProps,l.memoizedState),null;case 27:return le(s),l===null&&$t&&(m=s.stateNode=cM(s.type,s.pendingProps,gt.current),Ke=s,Sr=!0,b=_e,Ti(s.type)?(Em=b,_e=xr(m.firstChild)):_e=b),tn(l,s,s.pendingProps.children,h),oh(l,s),l===null&&(s.flags|=4194304),s.child;case 5:return l===null&&$t&&((b=m=_e)&&(m=lI(m,s.type,s.pendingProps,Sr),m!==null?(s.stateNode=m,Ke=s,_e=xr(m.firstChild),Sr=!1,b=!0):b=!1),b||hi(s)),le(s),b=s.type,w=s.pendingProps,A=l!==null?l.memoizedProps:null,m=w.children,Cm(b,w)?m=null:A!==null&&Cm(b,A)&&(s.flags|=32),s.memoizedState!==null&&(b=Mg(l,s,xN,null,null,h),zu._currentValue=b),oh(l,s),tn(l,s,m,h),s.child;case 6:return l===null&&$t&&((l=h=_e)&&(h=sI(h,s.pendingProps,Sr),h!==null?(s.stateNode=h,Ke=s,_e=null,l=!0):l=!1),l||hi(s)),null;case 13:return tw(l,s,h);case 4:return Mt(s,s.stateNode.containerInfo),m=s.pendingProps,l===null?s.child=Mo(s,null,m,h):tn(l,s,m,h),s.child;case 11:return Yx(l,s,s.type,s.pendingProps,h);case 7:return tn(l,s,s.pendingProps,h),s.child;case 8:return tn(l,s,s.pendingProps.children,h),s.child;case 12:return tn(l,s,s.pendingProps.children,h),s.child;case 10:return m=s.pendingProps,di(s,s.type,m.value),tn(l,s,m.children,h),s.child;case 9:return b=s.type._context,m=s.pendingProps.children,So(s),b=Je(b),m=m(b),s.flags|=1,tn(l,s,m,h),s.child;case 14:return qx(l,s,s.type,s.pendingProps,h);case 15:return Xx(l,s,s.type,s.pendingProps,h);case 19:return nw(l,s,h);case 31:return EN(l,s,h);case 22:return Zx(l,s,h,s.pendingProps);case 24:return So(s),m=Je(Fe),l===null?(b=vg(),b===null&&(b=pe,w=hg(),b.pooledCache=w,w.refCount++,w!==null&&(b.pooledCacheLanes|=h),b=w),s.memoizedState={parent:m,cache:b},gg(s),di(s,Fe,b)):((l.lanes&h)!==0&&(mg(l,s),du(s,null,null,h),hu()),b=l.memoizedState,w=s.memoizedState,b.parent!==m?(b={parent:m,cache:m},s.memoizedState=b,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=b),di(s,Fe,m)):(m=w.cache,di(s,Fe,m),m!==b.cache&&cg(s,[Fe],h,!0))),tn(l,s,s.pendingProps.children,h),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function za(l){l.flags|=4}function Kg(l,s,h,m,b){if((s=(l.mode&32)!==0)&&(s=!1),s){if(l.flags|=16777216,(b&335544128)===b)if(l.stateNode.complete)l.flags|=8192;else if(Ew())l.flags|=8192;else throw wo=Yc,pg}else l.flags&=-16777217}function aw(l,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!_M(s))if(Ew())l.flags|=8192;else throw wo=Yc,pg}function sh(l,s){s!==null&&(l.flags|=4),l.flags&16384&&(s=l.tag!==22?Mc():536870912,l.lanes|=s,Wl|=s)}function _u(l,s){if(!$t)switch(l.tailMode){case"hidden":s=l.tail;for(var h=null;s!==null;)s.alternate!==null&&(h=s),s=s.sibling;h===null?l.tail=null:h.sibling=null;break;case"collapsed":h=l.tail;for(var m=null;h!==null;)h.alternate!==null&&(m=h),h=h.sibling;m===null?s||l.tail===null?l.tail=null:l.tail.sibling=null:m.sibling=null}}function Se(l){var s=l.alternate!==null&&l.alternate.child===l.child,h=0,m=0;if(s)for(var b=l.child;b!==null;)h|=b.lanes|b.childLanes,m|=b.subtreeFlags&65011712,m|=b.flags&65011712,b.return=l,b=b.sibling;else for(b=l.child;b!==null;)h|=b.lanes|b.childLanes,m|=b.subtreeFlags,m|=b.flags,b.return=l,b=b.sibling;return l.subtreeFlags|=m,l.childLanes=h,s}function ON(l,s,h){var m=s.pendingProps;switch(og(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Se(s),null;case 1:return Se(s),null;case 3:return h=s.stateNode,m=null,l!==null&&(m=l.memoizedState.cache),s.memoizedState.cache!==m&&(s.flags|=2048),Ra(Fe),Bt(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(l===null||l.child===null)&&(kl(s)?za(s):l===null||l.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,sg())),Se(s),null;case 26:var b=s.type,w=s.memoizedState;return l===null?(za(s),w!==null?(Se(s),aw(s,w)):(Se(s),Kg(s,b,null,m,h))):w?w!==l.memoizedState?(za(s),Se(s),aw(s,w)):(Se(s),s.flags&=-16777217):(l=l.memoizedProps,l!==m&&za(s),Se(s),Kg(s,b,l,m,h)),null;case 27:if(yt(s),h=gt.current,b=s.type,l!==null&&s.stateNode!=null)l.memoizedProps!==m&&za(s);else{if(!m){if(s.stateNode===null)throw Error(r(166));return Se(s),null}l=lt.current,kl(s)?Bb(s):(l=cM(b,m,h),s.stateNode=l,za(s))}return Se(s),null;case 5:if(yt(s),b=s.type,l!==null&&s.stateNode!=null)l.memoizedProps!==m&&za(s);else{if(!m){if(s.stateNode===null)throw Error(r(166));return Se(s),null}if(w=lt.current,kl(s))Bb(s);else{var A=wh(gt.current);switch(w){case 1:w=A.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:w=A.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":w=A.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":w=A.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":w=A.createElement("div"),w.innerHTML="<script><\/script>",w=w.removeChild(w.firstChild);break;case"select":w=typeof m.is=="string"?A.createElement("select",{is:m.is}):A.createElement("select"),m.multiple?w.multiple=!0:m.size&&(w.size=m.size);break;default:w=typeof m.is=="string"?A.createElement(b,{is:m.is}):A.createElement(b)}}w[Qe]=s,w[Nn]=m;t:for(A=s.child;A!==null;){if(A.tag===5||A.tag===6)w.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===s)break t;for(;A.sibling===null;){if(A.return===null||A.return===s)break t;A=A.return}A.sibling.return=A.return,A=A.sibling}s.stateNode=w;t:switch(en(w,b,m),b){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break t;case"img":m=!0;break t;default:m=!1}m&&za(s)}}return Se(s),Kg(s,s.type,l===null?null:l.memoizedProps,s.pendingProps,h),null;case 6:if(l&&s.stateNode!=null)l.memoizedProps!==m&&za(s);else{if(typeof m!="string"&&s.stateNode===null)throw Error(r(166));if(l=gt.current,kl(s)){if(l=s.stateNode,h=s.memoizedProps,m=null,b=Ke,b!==null)switch(b.tag){case 27:case 5:m=b.memoizedProps}l[Qe]=s,l=!!(l.nodeValue===h||m!==null&&m.suppressHydrationWarning===!0||tM(l.nodeValue,h)),l||hi(s,!0)}else l=wh(l).createTextNode(m),l[Qe]=s,s.stateNode=l}return Se(s),null;case 31:if(h=s.memoizedState,l===null||l.memoizedState!==null){if(m=kl(s),h!==null){if(l===null){if(!m)throw Error(r(318));if(l=s.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(557));l[Qe]=s}else yo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Se(s),l=!1}else h=sg(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=h),l=!0;if(!l)return s.flags&256?(rr(s),s):(rr(s),null);if((s.flags&128)!==0)throw Error(r(558))}return Se(s),null;case 13:if(m=s.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(b=kl(s),m!==null&&m.dehydrated!==null){if(l===null){if(!b)throw Error(r(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[Qe]=s}else yo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Se(s),b=!1}else b=sg(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=b),b=!0;if(!b)return s.flags&256?(rr(s),s):(rr(s),null)}return rr(s),(s.flags&128)!==0?(s.lanes=h,s):(h=m!==null,l=l!==null&&l.memoizedState!==null,h&&(m=s.child,b=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(b=m.alternate.memoizedState.cachePool.pool),w=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(w=m.memoizedState.cachePool.pool),w!==b&&(m.flags|=2048)),h!==l&&h&&(s.child.flags|=8192),sh(s,s.updateQueue),Se(s),null);case 4:return Bt(),l===null&&Sm(s.stateNode.containerInfo),Se(s),null;case 10:return Ra(s.type),Se(s),null;case 19:if(q(ze),m=s.memoizedState,m===null)return Se(s),null;if(b=(s.flags&128)!==0,w=m.rendering,w===null)if(b)_u(m,!1);else{if(Ee!==0||l!==null&&(l.flags&128)!==0)for(l=s.child;l!==null;){if(w=$c(l),w!==null){for(s.flags|=128,_u(m,!1),l=w.updateQueue,s.updateQueue=l,sh(s,l),s.subtreeFlags=0,l=h,h=s.child;h!==null;)Lb(h,l),h=h.sibling;return rt(ze,ze.current&1|2),$t&&Aa(s,m.treeForkCount),s.child}l=l.sibling}m.tail!==null&&Pe()>dh&&(s.flags|=128,b=!0,_u(m,!1),s.lanes=4194304)}else{if(!b)if(l=$c(w),l!==null){if(s.flags|=128,b=!0,l=l.updateQueue,s.updateQueue=l,sh(s,l),_u(m,!0),m.tail===null&&m.tailMode==="hidden"&&!w.alternate&&!$t)return Se(s),null}else 2*Pe()-m.renderingStartTime>dh&&h!==536870912&&(s.flags|=128,b=!0,_u(m,!1),s.lanes=4194304);m.isBackwards?(w.sibling=s.child,s.child=w):(l=m.last,l!==null?l.sibling=w:s.child=w,m.last=w)}return m.tail!==null?(l=m.tail,m.rendering=l,m.tail=l.sibling,m.renderingStartTime=Pe(),l.sibling=null,h=ze.current,rt(ze,b?h&1|2:h&1),$t&&Aa(s,m.treeForkCount),l):(Se(s),null);case 22:case 23:return rr(s),bg(),m=s.memoizedState!==null,l!==null?l.memoizedState!==null!==m&&(s.flags|=8192):m&&(s.flags|=8192),m?(h&536870912)!==0&&(s.flags&128)===0&&(Se(s),s.subtreeFlags&6&&(s.flags|=8192)):Se(s),h=s.updateQueue,h!==null&&sh(s,h.retryQueue),h=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==h&&(s.flags|=2048),l!==null&&q(bo),null;case 24:return h=null,l!==null&&(h=l.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),Ra(Fe),Se(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function zN(l,s){switch(og(s),s.tag){case 1:return l=s.flags,l&65536?(s.flags=l&-65537|128,s):null;case 3:return Ra(Fe),Bt(),l=s.flags,(l&65536)!==0&&(l&128)===0?(s.flags=l&-65537|128,s):null;case 26:case 27:case 5:return yt(s),null;case 31:if(s.memoizedState!==null){if(rr(s),s.alternate===null)throw Error(r(340));yo()}return l=s.flags,l&65536?(s.flags=l&-65537|128,s):null;case 13:if(rr(s),l=s.memoizedState,l!==null&&l.dehydrated!==null){if(s.alternate===null)throw Error(r(340));yo()}return l=s.flags,l&65536?(s.flags=l&-65537|128,s):null;case 19:return q(ze),null;case 4:return Bt(),null;case 10:return Ra(s.type),null;case 22:case 23:return rr(s),bg(),l!==null&&q(bo),l=s.flags,l&65536?(s.flags=l&-65537|128,s):null;case 24:return Ra(Fe),null;case 25:return null;default:return null}}function iw(l,s){switch(og(s),s.tag){case 3:Ra(Fe),Bt();break;case 26:case 27:case 5:yt(s);break;case 4:Bt();break;case 31:s.memoizedState!==null&&rr(s);break;case 13:rr(s);break;case 19:q(ze);break;case 10:Ra(s.type);break;case 22:case 23:rr(s),bg(),l!==null&&q(bo);break;case 24:Ra(Fe)}}function Su(l,s){try{var h=s.updateQueue,m=h!==null?h.lastEffect:null;if(m!==null){var b=m.next;h=b;do{if((h.tag&l)===l){m=void 0;var w=h.create,A=h.inst;m=w(),A.destroy=m}h=h.next}while(h!==b)}}catch(O){ue(s,s.return,O)}}function _i(l,s,h){try{var m=s.updateQueue,b=m!==null?m.lastEffect:null;if(b!==null){var w=b.next;m=w;do{if((m.tag&l)===l){var A=m.inst,O=A.destroy;if(O!==void 0){A.destroy=void 0,b=s;var V=h,K=O;try{K()}catch(nt){ue(b,V,nt)}}}m=m.next}while(m!==w)}}catch(nt){ue(s,s.return,nt)}}function ow(l){var s=l.updateQueue;if(s!==null){var h=l.stateNode;try{$b(s,h)}catch(m){ue(l,l.return,m)}}}function lw(l,s,h){h.props=To(l.type,l.memoizedProps),h.state=l.memoizedState;try{h.componentWillUnmount()}catch(m){ue(l,s,m)}}function bu(l,s){try{var h=l.ref;if(h!==null){switch(l.tag){case 26:case 27:case 5:var m=l.stateNode;break;case 30:m=l.stateNode;break;default:m=l.stateNode}typeof h=="function"?l.refCleanup=h(m):h.current=m}}catch(b){ue(l,s,b)}}function ia(l,s){var h=l.ref,m=l.refCleanup;if(h!==null)if(typeof m=="function")try{m()}catch(b){ue(l,s,b)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(b){ue(l,s,b)}else h.current=null}function sw(l){var s=l.type,h=l.memoizedProps,m=l.stateNode;try{t:switch(s){case"button":case"input":case"select":case"textarea":h.autoFocus&&m.focus();break t;case"img":h.src?m.src=h.src:h.srcSet&&(m.srcset=h.srcSet)}}catch(b){ue(l,l.return,b)}}function Jg(l,s,h){try{var m=l.stateNode;eI(m,l.type,h,s),m[Nn]=s}catch(b){ue(l,l.return,b)}}function uw(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Ti(l.type)||l.tag===4}function tm(l){t:for(;;){for(;l.sibling===null;){if(l.return===null||uw(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&Ti(l.type)||l.flags&2||l.child===null||l.tag===4)continue t;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function em(l,s,h){var m=l.tag;if(m===5||m===6)l=l.stateNode,s?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(l,s):(s=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,s.appendChild(l),h=h._reactRootContainer,h!=null||s.onclick!==null||(s.onclick=Ma));else if(m!==4&&(m===27&&Ti(l.type)&&(h=l.stateNode,s=null),l=l.child,l!==null))for(em(l,s,h),l=l.sibling;l!==null;)em(l,s,h),l=l.sibling}function uh(l,s,h){var m=l.tag;if(m===5||m===6)l=l.stateNode,s?h.insertBefore(l,s):h.appendChild(l);else if(m!==4&&(m===27&&Ti(l.type)&&(h=l.stateNode),l=l.child,l!==null))for(uh(l,s,h),l=l.sibling;l!==null;)uh(l,s,h),l=l.sibling}function fw(l){var s=l.stateNode,h=l.memoizedProps;try{for(var m=l.type,b=s.attributes;b.length;)s.removeAttributeNode(b[0]);en(s,m,h),s[Qe]=l,s[Nn]=h}catch(w){ue(l,l.return,w)}}var Na=!1,Ue=!1,nm=!1,cw=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function NN(l,s){if(l=l.containerInfo,wm=Eh,l=xb(l),$p(l)){if("selectionStart"in l)var h={start:l.selectionStart,end:l.selectionEnd};else t:{h=(h=l.ownerDocument)&&h.defaultView||window;var m=h.getSelection&&h.getSelection();if(m&&m.rangeCount!==0){h=m.anchorNode;var b=m.anchorOffset,w=m.focusNode;m=m.focusOffset;try{h.nodeType,w.nodeType}catch{h=null;break t}var A=0,O=-1,V=-1,K=0,nt=0,ot=l,J=null;e:for(;;){for(var tt;ot!==h||b!==0&&ot.nodeType!==3||(O=A+b),ot!==w||m!==0&&ot.nodeType!==3||(V=A+m),ot.nodeType===3&&(A+=ot.nodeValue.length),(tt=ot.firstChild)!==null;)J=ot,ot=tt;for(;;){if(ot===l)break e;if(J===h&&++K===b&&(O=A),J===w&&++nt===m&&(V=A),(tt=ot.nextSibling)!==null)break;ot=J,J=ot.parentNode}ot=tt}h=O===-1||V===-1?null:{start:O,end:V}}else h=null}h=h||{start:0,end:0}}else h=null;for(Mm={focusedElem:l,selectionRange:h},Eh=!1,Ze=s;Ze!==null;)if(s=Ze,l=s.child,(s.subtreeFlags&1028)!==0&&l!==null)l.return=s,Ze=l;else for(;Ze!==null;){switch(s=Ze,w=s.alternate,l=s.flags,s.tag){case 0:if((l&4)!==0&&(l=s.updateQueue,l=l!==null?l.events:null,l!==null))for(h=0;h<l.length;h++)b=l[h],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&w!==null){l=void 0,h=s,b=w.memoizedProps,w=w.memoizedState,m=h.stateNode;try{var ht=To(h.type,b);l=m.getSnapshotBeforeUpdate(ht,w),m.__reactInternalSnapshotBeforeUpdate=l}catch(bt){ue(h,h.return,bt)}}break;case 3:if((l&1024)!==0){if(l=s.stateNode.containerInfo,h=l.nodeType,h===9)Am(l);else if(h===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Am(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(r(163))}if(l=s.sibling,l!==null){l.return=s.return,Ze=l;break}Ze=s.return}}function hw(l,s,h){var m=h.flags;switch(h.tag){case 0:case 11:case 15:Ba(l,h),m&4&&Su(5,h);break;case 1:if(Ba(l,h),m&4)if(l=h.stateNode,s===null)try{l.componentDidMount()}catch(A){ue(h,h.return,A)}else{var b=To(h.type,s.memoizedProps);s=s.memoizedState;try{l.componentDidUpdate(b,s,l.__reactInternalSnapshotBeforeUpdate)}catch(A){ue(h,h.return,A)}}m&64&&ow(h),m&512&&bu(h,h.return);break;case 3:if(Ba(l,h),m&64&&(l=h.updateQueue,l!==null)){if(s=null,h.child!==null)switch(h.child.tag){case 27:case 5:s=h.child.stateNode;break;case 1:s=h.child.stateNode}try{$b(l,s)}catch(A){ue(h,h.return,A)}}break;case 27:s===null&&m&4&&fw(h);case 26:case 5:Ba(l,h),s===null&&m&4&&sw(h),m&512&&bu(h,h.return);break;case 12:Ba(l,h);break;case 31:Ba(l,h),m&4&&pw(l,h);break;case 13:Ba(l,h),m&4&&gw(l,h),m&64&&(l=h.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(h=UN.bind(null,h),uI(l,h))));break;case 22:if(m=h.memoizedState!==null||Na,!m){s=s!==null&&s.memoizedState!==null||Ue,b=Na;var w=Ue;Na=m,(Ue=s)&&!w?ka(l,h,(h.subtreeFlags&8772)!==0):Ba(l,h),Na=b,Ue=w}break;case 30:break;default:Ba(l,h)}}function dw(l){var s=l.alternate;s!==null&&(l.alternate=null,dw(s)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(s=l.stateNode,s!==null&&Op(s)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var Ce=null,Bn=!1;function Ia(l,s,h){for(h=h.child;h!==null;)vw(l,s,h),h=h.sibling}function vw(l,s,h){if(De&&typeof De.onCommitFiberUnmount=="function")try{De.onCommitFiberUnmount(je,h)}catch{}switch(h.tag){case 26:Ue||ia(h,s),Ia(l,s,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:Ue||ia(h,s);var m=Ce,b=Bn;Ti(h.type)&&(Ce=h.stateNode,Bn=!1),Ia(l,s,h),Eu(h.stateNode),Ce=m,Bn=b;break;case 5:Ue||ia(h,s);case 6:if(m=Ce,b=Bn,Ce=null,Ia(l,s,h),Ce=m,Bn=b,Ce!==null)if(Bn)try{(Ce.nodeType===9?Ce.body:Ce.nodeName==="HTML"?Ce.ownerDocument.body:Ce).removeChild(h.stateNode)}catch(w){ue(h,s,w)}else try{Ce.removeChild(h.stateNode)}catch(w){ue(h,s,w)}break;case 18:Ce!==null&&(Bn?(l=Ce,oM(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,h.stateNode),as(l)):oM(Ce,h.stateNode));break;case 4:m=Ce,b=Bn,Ce=h.stateNode.containerInfo,Bn=!0,Ia(l,s,h),Ce=m,Bn=b;break;case 0:case 11:case 14:case 15:_i(2,h,s),Ue||_i(4,h,s),Ia(l,s,h);break;case 1:Ue||(ia(h,s),m=h.stateNode,typeof m.componentWillUnmount=="function"&&lw(h,s,m)),Ia(l,s,h);break;case 21:Ia(l,s,h);break;case 22:Ue=(m=Ue)||h.memoizedState!==null,Ia(l,s,h),Ue=m;break;default:Ia(l,s,h)}}function pw(l,s){if(s.memoizedState===null&&(l=s.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{as(l)}catch(h){ue(s,s.return,h)}}}function gw(l,s){if(s.memoizedState===null&&(l=s.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{as(l)}catch(h){ue(s,s.return,h)}}function IN(l){switch(l.tag){case 31:case 13:case 19:var s=l.stateNode;return s===null&&(s=l.stateNode=new cw),s;case 22:return l=l.stateNode,s=l._retryCache,s===null&&(s=l._retryCache=new cw),s;default:throw Error(r(435,l.tag))}}function fh(l,s){var h=IN(l);s.forEach(function(m){if(!h.has(m)){h.add(m);var b=jN.bind(null,l,m);m.then(b,b)}})}function kn(l,s){var h=s.deletions;if(h!==null)for(var m=0;m<h.length;m++){var b=h[m],w=l,A=s,O=A;t:for(;O!==null;){switch(O.tag){case 27:if(Ti(O.type)){Ce=O.stateNode,Bn=!1;break t}break;case 5:Ce=O.stateNode,Bn=!1;break t;case 3:case 4:Ce=O.stateNode.containerInfo,Bn=!0;break t}O=O.return}if(Ce===null)throw Error(r(160));vw(w,A,b),Ce=null,Bn=!1,w=b.alternate,w!==null&&(w.return=null),b.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)mw(s,l),s=s.sibling}var Gr=null;function mw(l,s){var h=l.alternate,m=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:kn(s,l),Pn(l),m&4&&(_i(3,l,l.return),Su(3,l),_i(5,l,l.return));break;case 1:kn(s,l),Pn(l),m&512&&(Ue||h===null||ia(h,h.return)),m&64&&Na&&(l=l.updateQueue,l!==null&&(m=l.callbacks,m!==null&&(h=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=h===null?m:h.concat(m))));break;case 26:var b=Gr;if(kn(s,l),Pn(l),m&512&&(Ue||h===null||ia(h,h.return)),m&4){var w=h!==null?h.memoizedState:null;if(m=l.memoizedState,h===null)if(m===null)if(l.stateNode===null){t:{m=l.type,h=l.memoizedProps,b=b.ownerDocument||b;e:switch(m){case"title":w=b.getElementsByTagName("title")[0],(!w||w[Zs]||w[Qe]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=b.createElement(m),b.head.insertBefore(w,b.querySelector("head > title"))),en(w,m,h),w[Qe]=l,Xe(w),m=w;break t;case"link":var A=mM("link","href",b).get(m+(h.href||""));if(A){for(var O=0;O<A.length;O++)if(w=A[O],w.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&w.getAttribute("rel")===(h.rel==null?null:h.rel)&&w.getAttribute("title")===(h.title==null?null:h.title)&&w.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){A.splice(O,1);break e}}w=b.createElement(m),en(w,m,h),b.head.appendChild(w);break;case"meta":if(A=mM("meta","content",b).get(m+(h.content||""))){for(O=0;O<A.length;O++)if(w=A[O],w.getAttribute("content")===(h.content==null?null:""+h.content)&&w.getAttribute("name")===(h.name==null?null:h.name)&&w.getAttribute("property")===(h.property==null?null:h.property)&&w.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&w.getAttribute("charset")===(h.charSet==null?null:h.charSet)){A.splice(O,1);break e}}w=b.createElement(m),en(w,m,h),b.head.appendChild(w);break;default:throw Error(r(468,m))}w[Qe]=l,Xe(w),m=w}l.stateNode=m}else yM(b,l.type,l.stateNode);else l.stateNode=gM(b,m,l.memoizedProps);else w!==m?(w===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):w.count--,m===null?yM(b,l.type,l.stateNode):gM(b,m,l.memoizedProps)):m===null&&l.stateNode!==null&&Jg(l,l.memoizedProps,h.memoizedProps)}break;case 27:kn(s,l),Pn(l),m&512&&(Ue||h===null||ia(h,h.return)),h!==null&&m&4&&Jg(l,l.memoizedProps,h.memoizedProps);break;case 5:if(kn(s,l),Pn(l),m&512&&(Ue||h===null||ia(h,h.return)),l.flags&32){b=l.stateNode;try{Al(b,"")}catch(ht){ue(l,l.return,ht)}}m&4&&l.stateNode!=null&&(b=l.memoizedProps,Jg(l,b,h!==null?h.memoizedProps:b)),m&1024&&(nm=!0);break;case 6:if(kn(s,l),Pn(l),m&4){if(l.stateNode===null)throw Error(r(162));m=l.memoizedProps,h=l.stateNode;try{h.nodeValue=m}catch(ht){ue(l,l.return,ht)}}break;case 3:if(Th=null,b=Gr,Gr=Mh(s.containerInfo),kn(s,l),Gr=b,Pn(l),m&4&&h!==null&&h.memoizedState.isDehydrated)try{as(s.containerInfo)}catch(ht){ue(l,l.return,ht)}nm&&(nm=!1,yw(l));break;case 4:m=Gr,Gr=Mh(l.stateNode.containerInfo),kn(s,l),Pn(l),Gr=m;break;case 12:kn(s,l),Pn(l);break;case 31:kn(s,l),Pn(l),m&4&&(m=l.updateQueue,m!==null&&(l.updateQueue=null,fh(l,m)));break;case 13:kn(s,l),Pn(l),l.child.flags&8192&&l.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(hh=Pe()),m&4&&(m=l.updateQueue,m!==null&&(l.updateQueue=null,fh(l,m)));break;case 22:b=l.memoizedState!==null;var V=h!==null&&h.memoizedState!==null,K=Na,nt=Ue;if(Na=K||b,Ue=nt||V,kn(s,l),Ue=nt,Na=K,Pn(l),m&8192)t:for(s=l.stateNode,s._visibility=b?s._visibility&-2:s._visibility|1,b&&(h===null||V||Na||Ue||Ao(l)),h=null,s=l;;){if(s.tag===5||s.tag===26){if(h===null){V=h=s;try{if(w=V.stateNode,b)A=w.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{O=V.stateNode;var ot=V.memoizedProps.style,J=ot!=null&&ot.hasOwnProperty("display")?ot.display:null;O.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(ht){ue(V,V.return,ht)}}}else if(s.tag===6){if(h===null){V=s;try{V.stateNode.nodeValue=b?"":V.memoizedProps}catch(ht){ue(V,V.return,ht)}}}else if(s.tag===18){if(h===null){V=s;try{var tt=V.stateNode;b?lM(tt,!0):lM(V.stateNode,!1)}catch(ht){ue(V,V.return,ht)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===l)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===l)break t;for(;s.sibling===null;){if(s.return===null||s.return===l)break t;h===s&&(h=null),s=s.return}h===s&&(h=null),s.sibling.return=s.return,s=s.sibling}m&4&&(m=l.updateQueue,m!==null&&(h=m.retryQueue,h!==null&&(m.retryQueue=null,fh(l,h))));break;case 19:kn(s,l),Pn(l),m&4&&(m=l.updateQueue,m!==null&&(l.updateQueue=null,fh(l,m)));break;case 30:break;case 21:break;default:kn(s,l),Pn(l)}}function Pn(l){var s=l.flags;if(s&2){try{for(var h,m=l.return;m!==null;){if(uw(m)){h=m;break}m=m.return}if(h==null)throw Error(r(160));switch(h.tag){case 27:var b=h.stateNode,w=tm(l);uh(l,w,b);break;case 5:var A=h.stateNode;h.flags&32&&(Al(A,""),h.flags&=-33);var O=tm(l);uh(l,O,A);break;case 3:case 4:var V=h.stateNode.containerInfo,K=tm(l);em(l,K,V);break;default:throw Error(r(161))}}catch(nt){ue(l,l.return,nt)}l.flags&=-3}s&4096&&(l.flags&=-4097)}function yw(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var s=l;yw(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),l=l.sibling}}function Ba(l,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)hw(l,s.alternate,s),s=s.sibling}function Ao(l){for(l=l.child;l!==null;){var s=l;switch(s.tag){case 0:case 11:case 14:case 15:_i(4,s,s.return),Ao(s);break;case 1:ia(s,s.return);var h=s.stateNode;typeof h.componentWillUnmount=="function"&&lw(s,s.return,h),Ao(s);break;case 27:Eu(s.stateNode);case 26:case 5:ia(s,s.return),Ao(s);break;case 22:s.memoizedState===null&&Ao(s);break;case 30:Ao(s);break;default:Ao(s)}l=l.sibling}}function ka(l,s,h){for(h=h&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var m=s.alternate,b=l,w=s,A=w.flags;switch(w.tag){case 0:case 11:case 15:ka(b,w,h),Su(4,w);break;case 1:if(ka(b,w,h),m=w,b=m.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(K){ue(m,m.return,K)}if(m=w,b=m.updateQueue,b!==null){var O=m.stateNode;try{var V=b.shared.hiddenCallbacks;if(V!==null)for(b.shared.hiddenCallbacks=null,b=0;b<V.length;b++)Zb(V[b],O)}catch(K){ue(m,m.return,K)}}h&&A&64&&ow(w),bu(w,w.return);break;case 27:fw(w);case 26:case 5:ka(b,w,h),h&&m===null&&A&4&&sw(w),bu(w,w.return);break;case 12:ka(b,w,h);break;case 31:ka(b,w,h),h&&A&4&&pw(b,w);break;case 13:ka(b,w,h),h&&A&4&&gw(b,w);break;case 22:w.memoizedState===null&&ka(b,w,h),bu(w,w.return);break;case 30:break;default:ka(b,w,h)}s=s.sibling}}function rm(l,s){var h=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),l=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(l=s.memoizedState.cachePool.pool),l!==h&&(l!=null&&l.refCount++,h!=null&&lu(h))}function am(l,s){l=null,s.alternate!==null&&(l=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==l&&(s.refCount++,l!=null&&lu(l))}function Ur(l,s,h,m){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)_w(l,s,h,m),s=s.sibling}function _w(l,s,h,m){var b=s.flags;switch(s.tag){case 0:case 11:case 15:Ur(l,s,h,m),b&2048&&Su(9,s);break;case 1:Ur(l,s,h,m);break;case 3:Ur(l,s,h,m),b&2048&&(l=null,s.alternate!==null&&(l=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==l&&(s.refCount++,l!=null&&lu(l)));break;case 12:if(b&2048){Ur(l,s,h,m),l=s.stateNode;try{var w=s.memoizedProps,A=w.id,O=w.onPostCommit;typeof O=="function"&&O(A,s.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(V){ue(s,s.return,V)}}else Ur(l,s,h,m);break;case 31:Ur(l,s,h,m);break;case 13:Ur(l,s,h,m);break;case 23:break;case 22:w=s.stateNode,A=s.alternate,s.memoizedState!==null?w._visibility&2?Ur(l,s,h,m):xu(l,s):w._visibility&2?Ur(l,s,h,m):(w._visibility|=2,Xl(l,s,h,m,(s.subtreeFlags&10256)!==0||!1)),b&2048&&rm(A,s);break;case 24:Ur(l,s,h,m),b&2048&&am(s.alternate,s);break;default:Ur(l,s,h,m)}}function Xl(l,s,h,m,b){for(b=b&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var w=l,A=s,O=h,V=m,K=A.flags;switch(A.tag){case 0:case 11:case 15:Xl(w,A,O,V,b),Su(8,A);break;case 23:break;case 22:var nt=A.stateNode;A.memoizedState!==null?nt._visibility&2?Xl(w,A,O,V,b):xu(w,A):(nt._visibility|=2,Xl(w,A,O,V,b)),b&&K&2048&&rm(A.alternate,A);break;case 24:Xl(w,A,O,V,b),b&&K&2048&&am(A.alternate,A);break;default:Xl(w,A,O,V,b)}s=s.sibling}}function xu(l,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var h=l,m=s,b=m.flags;switch(m.tag){case 22:xu(h,m),b&2048&&rm(m.alternate,m);break;case 24:xu(h,m),b&2048&&am(m.alternate,m);break;default:xu(h,m)}s=s.sibling}}var wu=8192;function Zl(l,s,h){if(l.subtreeFlags&wu)for(l=l.child;l!==null;)Sw(l,s,h),l=l.sibling}function Sw(l,s,h){switch(l.tag){case 26:Zl(l,s,h),l.flags&wu&&l.memoizedState!==null&&bI(h,Gr,l.memoizedState,l.memoizedProps);break;case 5:Zl(l,s,h);break;case 3:case 4:var m=Gr;Gr=Mh(l.stateNode.containerInfo),Zl(l,s,h),Gr=m;break;case 22:l.memoizedState===null&&(m=l.alternate,m!==null&&m.memoizedState!==null?(m=wu,wu=16777216,Zl(l,s,h),wu=m):Zl(l,s,h));break;default:Zl(l,s,h)}}function bw(l){var s=l.alternate;if(s!==null&&(l=s.child,l!==null)){s.child=null;do s=l.sibling,l.sibling=null,l=s;while(l!==null)}}function Mu(l){var s=l.deletions;if((l.flags&16)!==0){if(s!==null)for(var h=0;h<s.length;h++){var m=s[h];Ze=m,ww(m,l)}bw(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)xw(l),l=l.sibling}function xw(l){switch(l.tag){case 0:case 11:case 15:Mu(l),l.flags&2048&&_i(9,l,l.return);break;case 3:Mu(l);break;case 12:Mu(l);break;case 22:var s=l.stateNode;l.memoizedState!==null&&s._visibility&2&&(l.return===null||l.return.tag!==13)?(s._visibility&=-3,ch(l)):Mu(l);break;default:Mu(l)}}function ch(l){var s=l.deletions;if((l.flags&16)!==0){if(s!==null)for(var h=0;h<s.length;h++){var m=s[h];Ze=m,ww(m,l)}bw(l)}for(l=l.child;l!==null;){switch(s=l,s.tag){case 0:case 11:case 15:_i(8,s,s.return),ch(s);break;case 22:h=s.stateNode,h._visibility&2&&(h._visibility&=-3,ch(s));break;default:ch(s)}l=l.sibling}}function ww(l,s){for(;Ze!==null;){var h=Ze;switch(h.tag){case 0:case 11:case 15:_i(8,h,s);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var m=h.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:lu(h.memoizedState.cache)}if(m=h.child,m!==null)m.return=h,Ze=m;else t:for(h=l;Ze!==null;){m=Ze;var b=m.sibling,w=m.return;if(dw(m),m===h){Ze=null;break t}if(b!==null){b.return=w,Ze=b;break t}Ze=w}}}var BN={getCacheForType:function(l){var s=Je(Fe),h=s.data.get(l);return h===void 0&&(h=l(),s.data.set(l,h)),h},cacheSignal:function(){return Je(Fe).controller.signal}},kN=typeof WeakMap=="function"?WeakMap:Map,re=0,pe=null,Vt=null,jt=0,se=0,ar=null,Si=!1,$l=!1,im=!1,Pa=0,Ee=0,bi=0,Do=0,om=0,ir=0,Wl=0,Cu=null,Hn=null,lm=!1,hh=0,Mw=0,dh=1/0,vh=null,xi=null,qe=0,wi=null,Ql=null,Ha=0,sm=0,um=null,Cw=null,Tu=0,fm=null;function or(){return(re&2)!==0&&jt!==0?jt&-jt:H.T!==null?gm():F1()}function Tw(){if(ir===0)if((jt&536870912)===0||$t){var l=fo;fo<<=1,(fo&3932160)===0&&(fo=262144),ir=l}else ir=536870912;return l=nr.current,l!==null&&(l.flags|=32),ir}function Fn(l,s,h){(l===pe&&(se===2||se===9)||l.cancelPendingCommit!==null)&&(Kl(l,0),Mi(l,jt,ir,!1)),Xs(l,h),((re&2)===0||l!==pe)&&(l===pe&&((re&2)===0&&(Do|=h),Ee===4&&Mi(l,jt,ir,!1)),oa(l))}function Aw(l,s,h){if((re&6)!==0)throw Error(r(327));var m=!h&&(s&127)===0&&(s&l.expiredLanes)===0||Jn(l,s),b=m?FN(l,s):hm(l,s,!0),w=m;do{if(b===0){$l&&!m&&Mi(l,s,0,!1);break}else{if(h=l.current.alternate,w&&!PN(h)){b=hm(l,s,!1),w=!1;continue}if(b===2){if(w=s,l.errorRecoveryDisabledLanes&w)var A=0;else A=l.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){s=A;t:{var O=l;b=Cu;var V=O.current.memoizedState.isDehydrated;if(V&&(Kl(O,A).flags|=256),A=hm(O,A,!1),A!==2){if(im&&!V){O.errorRecoveryDisabledLanes|=w,Do|=w,b=4;break t}w=Hn,Hn=b,w!==null&&(Hn===null?Hn=w:Hn.push.apply(Hn,w))}b=A}if(w=!1,b!==2)continue}}if(b===1){Kl(l,0),Mi(l,s,0,!0);break}t:{switch(m=l,w=b,w){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Mi(m,s,ir,!Si);break t;case 2:Hn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(b=hh+300-Pe(),10<b)){if(Mi(m,s,ir,!Si),Ut(m,0,!0)!==0)break t;Ha=s,m.timeoutHandle=aM(Dw.bind(null,m,h,Hn,vh,lm,s,ir,Do,Wl,Si,w,"Throttled",-0,0),b);break t}Dw(m,h,Hn,vh,lm,s,ir,Do,Wl,Si,w,null,-0,0)}}break}while(!0);oa(l)}function Dw(l,s,h,m,b,w,A,O,V,K,nt,ot,J,tt){if(l.timeoutHandle=-1,ot=s.subtreeFlags,ot&8192||(ot&16785408)===16785408){ot={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ma},Sw(s,w,ot);var ht=(w&62914560)===w?hh-Pe():(w&4194048)===w?Mw-Pe():0;if(ht=xI(ot,ht),ht!==null){Ha=w,l.cancelPendingCommit=ht(Bw.bind(null,l,s,w,h,m,b,A,O,V,nt,ot,null,J,tt)),Mi(l,w,A,!K);return}}Bw(l,s,w,h,m,b,A,O,V)}function PN(l){for(var s=l;;){var h=s.tag;if((h===0||h===11||h===15)&&s.flags&16384&&(h=s.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var m=0;m<h.length;m++){var b=h[m],w=b.getSnapshot;b=b.value;try{if(!tr(w(),b))return!1}catch{return!1}}if(h=s.child,s.subtreeFlags&16384&&h!==null)h.return=s,s=h;else{if(s===l)break;for(;s.sibling===null;){if(s.return===null||s.return===l)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Mi(l,s,h,m){s&=~om,s&=~Do,l.suspendedLanes|=s,l.pingedLanes&=~s,m&&(l.warmLanes|=s),m=l.expirationTimes;for(var b=s;0<b;){var w=31-Ye(b),A=1<<w;m[w]=-1,b&=~A}h!==0&&k1(l,h,s)}function ph(){return(re&6)===0?(Au(0),!1):!0}function cm(){if(Vt!==null){if(se===0)var l=Vt.return;else l=Vt,Da=_o=null,Ag(l),Gl=null,uu=0,l=Vt;for(;l!==null;)iw(l.alternate,l),l=l.return;Vt=null}}function Kl(l,s){var h=l.timeoutHandle;h!==-1&&(l.timeoutHandle=-1,aI(h)),h=l.cancelPendingCommit,h!==null&&(l.cancelPendingCommit=null,h()),Ha=0,cm(),pe=l,Vt=h=Ta(l.current,null),jt=s,se=0,ar=null,Si=!1,$l=Jn(l,s),im=!1,Wl=ir=om=Do=bi=Ee=0,Hn=Cu=null,lm=!1,(s&8)!==0&&(s|=s&32);var m=l.entangledLanes;if(m!==0)for(l=l.entanglements,m&=s;0<m;){var b=31-Ye(m),w=1<<b;s|=l[b],m&=~w}return Pa=s,Bc(),h}function Rw(l,s){It=null,H.H=mu,s===Vl||s===jc?(s=jb(),se=3):s===pg?(s=jb(),se=4):se=s===Ug?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,ar=s,Vt===null&&(Ee=1,ah(l,mr(s,l.current)))}function Ew(){var l=nr.current;return l===null?!0:(jt&4194048)===jt?br===null:(jt&62914560)===jt||(jt&536870912)!==0?l===br:!1}function Lw(){var l=H.H;return H.H=mu,l===null?mu:l}function Ow(){var l=H.A;return H.A=BN,l}function gh(){Ee=4,Si||(jt&4194048)!==jt&&nr.current!==null||($l=!0),(bi&134217727)===0&&(Do&134217727)===0||pe===null||Mi(pe,jt,ir,!1)}function hm(l,s,h){var m=re;re|=2;var b=Lw(),w=Ow();(pe!==l||jt!==s)&&(vh=null,Kl(l,s)),s=!1;var A=Ee;t:do try{if(se!==0&&Vt!==null){var O=Vt,V=ar;switch(se){case 8:cm(),A=6;break t;case 3:case 2:case 9:case 6:nr.current===null&&(s=!0);var K=se;if(se=0,ar=null,Jl(l,O,V,K),h&&$l){A=0;break t}break;default:K=se,se=0,ar=null,Jl(l,O,V,K)}}HN(),A=Ee;break}catch(nt){Rw(l,nt)}while(!0);return s&&l.shellSuspendCounter++,Da=_o=null,re=m,H.H=b,H.A=w,Vt===null&&(pe=null,jt=0,Bc()),A}function HN(){for(;Vt!==null;)zw(Vt)}function FN(l,s){var h=re;re|=2;var m=Lw(),b=Ow();pe!==l||jt!==s?(vh=null,dh=Pe()+500,Kl(l,s)):$l=Jn(l,s);t:do try{if(se!==0&&Vt!==null){s=Vt;var w=ar;e:switch(se){case 1:se=0,ar=null,Jl(l,s,w,1);break;case 2:case 9:if(Gb(w)){se=0,ar=null,Nw(s);break}s=function(){se!==2&&se!==9||pe!==l||(se=7),oa(l)},w.then(s,s);break t;case 3:se=7;break t;case 4:se=5;break t;case 7:Gb(w)?(se=0,ar=null,Nw(s)):(se=0,ar=null,Jl(l,s,w,7));break;case 5:var A=null;switch(Vt.tag){case 26:A=Vt.memoizedState;case 5:case 27:var O=Vt;if(A?_M(A):O.stateNode.complete){se=0,ar=null;var V=O.sibling;if(V!==null)Vt=V;else{var K=O.return;K!==null?(Vt=K,mh(K)):Vt=null}break e}}se=0,ar=null,Jl(l,s,w,5);break;case 6:se=0,ar=null,Jl(l,s,w,6);break;case 8:cm(),Ee=6;break t;default:throw Error(r(462))}}VN();break}catch(nt){Rw(l,nt)}while(!0);return Da=_o=null,H.H=m,H.A=b,re=h,Vt!==null?0:(pe=null,jt=0,Bc(),Ee)}function VN(){for(;Vt!==null&&!Ae();)zw(Vt)}function zw(l){var s=rw(l.alternate,l,Pa);l.memoizedProps=l.pendingProps,s===null?mh(l):Vt=s}function Nw(l){var s=l,h=s.alternate;switch(s.tag){case 15:case 0:s=Qx(h,s,s.pendingProps,s.type,void 0,jt);break;case 11:s=Qx(h,s,s.pendingProps,s.type.render,s.ref,jt);break;case 5:Ag(s);default:iw(h,s),s=Vt=Lb(s,Pa),s=rw(h,s,Pa)}l.memoizedProps=l.pendingProps,s===null?mh(l):Vt=s}function Jl(l,s,h,m){Da=_o=null,Ag(s),Gl=null,uu=0;var b=s.return;try{if(RN(l,b,s,h,jt)){Ee=1,ah(l,mr(h,l.current)),Vt=null;return}}catch(w){if(b!==null)throw Vt=b,w;Ee=1,ah(l,mr(h,l.current)),Vt=null;return}s.flags&32768?($t||m===1?l=!0:$l||(jt&536870912)!==0?l=!1:(Si=l=!0,(m===2||m===9||m===3||m===6)&&(m=nr.current,m!==null&&m.tag===13&&(m.flags|=16384))),Iw(s,l)):mh(s)}function mh(l){var s=l;do{if((s.flags&32768)!==0){Iw(s,Si);return}l=s.return;var h=ON(s.alternate,s,Pa);if(h!==null){Vt=h;return}if(s=s.sibling,s!==null){Vt=s;return}Vt=s=l}while(s!==null);Ee===0&&(Ee=5)}function Iw(l,s){do{var h=zN(l.alternate,l);if(h!==null){h.flags&=32767,Vt=h;return}if(h=l.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!s&&(l=l.sibling,l!==null)){Vt=l;return}Vt=l=h}while(l!==null);Ee=6,Vt=null}function Bw(l,s,h,m,b,w,A,O,V){l.cancelPendingCommit=null;do yh();while(qe!==0);if((re&6)!==0)throw Error(r(327));if(s!==null){if(s===l.current)throw Error(r(177));if(w=s.lanes|s.childLanes,w|=tg,Sz(l,h,w,A,O,V),l===pe&&(Vt=pe=null,jt=0),Ql=s,wi=l,Ha=h,sm=w,um=b,Cw=m,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,YN(dt,function(){return Vw(),null})):(l.callbackNode=null,l.callbackPriority=0),m=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||m){m=H.T,H.T=null,b=X.p,X.p=2,A=re,re|=4;try{NN(l,s,h)}finally{re=A,X.p=b,H.T=m}}qe=1,kw(),Pw(),Hw()}}function kw(){if(qe===1){qe=0;var l=wi,s=Ql,h=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||h){h=H.T,H.T=null;var m=X.p;X.p=2;var b=re;re|=4;try{mw(s,l);var w=Mm,A=xb(l.containerInfo),O=w.focusedElem,V=w.selectionRange;if(A!==O&&O&&O.ownerDocument&&bb(O.ownerDocument.documentElement,O)){if(V!==null&&$p(O)){var K=V.start,nt=V.end;if(nt===void 0&&(nt=K),"selectionStart"in O)O.selectionStart=K,O.selectionEnd=Math.min(nt,O.value.length);else{var ot=O.ownerDocument||document,J=ot&&ot.defaultView||window;if(J.getSelection){var tt=J.getSelection(),ht=O.textContent.length,bt=Math.min(V.start,ht),he=V.end===void 0?bt:Math.min(V.end,ht);!tt.extend&&bt>he&&(A=he,he=bt,bt=A);var $=Sb(O,bt),j=Sb(O,he);if($&&j&&(tt.rangeCount!==1||tt.anchorNode!==$.node||tt.anchorOffset!==$.offset||tt.focusNode!==j.node||tt.focusOffset!==j.offset)){var Q=ot.createRange();Q.setStart($.node,$.offset),tt.removeAllRanges(),bt>he?(tt.addRange(Q),tt.extend(j.node,j.offset)):(Q.setEnd(j.node,j.offset),tt.addRange(Q))}}}}for(ot=[],tt=O;tt=tt.parentNode;)tt.nodeType===1&&ot.push({element:tt,left:tt.scrollLeft,top:tt.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<ot.length;O++){var at=ot[O];at.element.scrollLeft=at.left,at.element.scrollTop=at.top}}Eh=!!wm,Mm=wm=null}finally{re=b,X.p=m,H.T=h}}l.current=s,qe=2}}function Pw(){if(qe===2){qe=0;var l=wi,s=Ql,h=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||h){h=H.T,H.T=null;var m=X.p;X.p=2;var b=re;re|=4;try{hw(l,s.alternate,s)}finally{re=b,X.p=m,H.T=h}}qe=3}}function Hw(){if(qe===4||qe===3){qe=0,na();var l=wi,s=Ql,h=Ha,m=Cw;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?qe=5:(qe=0,Ql=wi=null,Fw(l,l.pendingLanes));var b=l.pendingLanes;if(b===0&&(xi=null),Ep(h),s=s.stateNode,De&&typeof De.onCommitFiberRoot=="function")try{De.onCommitFiberRoot(je,s,void 0,(s.current.flags&128)===128)}catch{}if(m!==null){s=H.T,b=X.p,X.p=2,H.T=null;try{for(var w=l.onRecoverableError,A=0;A<m.length;A++){var O=m[A];w(O.value,{componentStack:O.stack})}}finally{H.T=s,X.p=b}}(Ha&3)!==0&&yh(),oa(l),b=l.pendingLanes,(h&261930)!==0&&(b&42)!==0?l===fm?Tu++:(Tu=0,fm=l):Tu=0,Au(0)}}function Fw(l,s){(l.pooledCacheLanes&=s)===0&&(s=l.pooledCache,s!=null&&(l.pooledCache=null,lu(s)))}function yh(){return kw(),Pw(),Hw(),Vw()}function Vw(){if(qe!==5)return!1;var l=wi,s=sm;sm=0;var h=Ep(Ha),m=H.T,b=X.p;try{X.p=32>h?32:h,H.T=null,h=um,um=null;var w=wi,A=Ha;if(qe=0,Ql=wi=null,Ha=0,(re&6)!==0)throw Error(r(331));var O=re;if(re|=4,xw(w.current),_w(w,w.current,A,h),re=O,Au(0,!1),De&&typeof De.onPostCommitFiberRoot=="function")try{De.onPostCommitFiberRoot(je,w)}catch{}return!0}finally{X.p=b,H.T=m,Fw(l,s)}}function Gw(l,s,h){s=mr(h,s),s=Gg(l.stateNode,s,2),l=gi(l,s,2),l!==null&&(Xs(l,2),oa(l))}function ue(l,s,h){if(l.tag===3)Gw(l,l,h);else for(;s!==null;){if(s.tag===3){Gw(s,l,h);break}else if(s.tag===1){var m=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(xi===null||!xi.has(m))){l=mr(h,l),h=Ux(2),m=gi(s,h,2),m!==null&&(jx(h,m,s,l),Xs(m,2),oa(m));break}}s=s.return}}function dm(l,s,h){var m=l.pingCache;if(m===null){m=l.pingCache=new kN;var b=new Set;m.set(s,b)}else b=m.get(s),b===void 0&&(b=new Set,m.set(s,b));b.has(h)||(im=!0,b.add(h),l=GN.bind(null,l,s,h),s.then(l,l))}function GN(l,s,h){var m=l.pingCache;m!==null&&m.delete(s),l.pingedLanes|=l.suspendedLanes&h,l.warmLanes&=~h,pe===l&&(jt&h)===h&&(Ee===4||Ee===3&&(jt&62914560)===jt&&300>Pe()-hh?(re&2)===0&&Kl(l,0):om|=h,Wl===jt&&(Wl=0)),oa(l)}function Uw(l,s){s===0&&(s=Mc()),l=go(l,s),l!==null&&(Xs(l,s),oa(l))}function UN(l){var s=l.memoizedState,h=0;s!==null&&(h=s.retryLane),Uw(l,h)}function jN(l,s){var h=0;switch(l.tag){case 31:case 13:var m=l.stateNode,b=l.memoizedState;b!==null&&(h=b.retryLane);break;case 19:m=l.stateNode;break;case 22:m=l.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(s),Uw(l,h)}function YN(l,s){return dr(l,s)}var _h=null,ts=null,vm=!1,Sh=!1,pm=!1,Ci=0;function oa(l){l!==ts&&l.next===null&&(ts===null?_h=ts=l:ts=ts.next=l),Sh=!0,vm||(vm=!0,XN())}function Au(l,s){if(!pm&&Sh){pm=!0;do for(var h=!1,m=_h;m!==null;){if(l!==0){var b=m.pendingLanes;if(b===0)var w=0;else{var A=m.suspendedLanes,O=m.pingedLanes;w=(1<<31-Ye(42|l)+1)-1,w&=b&~(A&~O),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(h=!0,Xw(m,w))}else w=jt,w=Ut(m,m===pe?w:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(w&3)===0||Jn(m,w)||(h=!0,Xw(m,w));m=m.next}while(h);pm=!1}}function qN(){jw()}function jw(){Sh=vm=!1;var l=0;Ci!==0&&rI()&&(l=Ci);for(var s=Pe(),h=null,m=_h;m!==null;){var b=m.next,w=Yw(m,s);w===0?(m.next=null,h===null?_h=b:h.next=b,b===null&&(ts=h)):(h=m,(l!==0||(w&3)!==0)&&(Sh=!0)),m=b}qe!==0&&qe!==5||Au(l),Ci!==0&&(Ci=0)}function Yw(l,s){for(var h=l.suspendedLanes,m=l.pingedLanes,b=l.expirationTimes,w=l.pendingLanes&-62914561;0<w;){var A=31-Ye(w),O=1<<A,V=b[A];V===-1?((O&h)===0||(O&m)!==0)&&(b[A]=Sl(O,s)):V<=s&&(l.expiredLanes|=O),w&=~O}if(s=pe,h=jt,h=Ut(l,l===s?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),m=l.callbackNode,h===0||l===s&&(se===2||se===9)||l.cancelPendingCommit!==null)return m!==null&&m!==null&&Kn(m),l.callbackNode=null,l.callbackPriority=0;if((h&3)===0||Jn(l,h)){if(s=h&-h,s===l.callbackPriority)return s;switch(m!==null&&Kn(m),Ep(h)){case 2:case 8:h=js;break;case 32:h=dt;break;case 268435456:h=Wt;break;default:h=dt}return m=qw.bind(null,l),h=dr(h,m),l.callbackPriority=s,l.callbackNode=h,s}return m!==null&&m!==null&&Kn(m),l.callbackPriority=2,l.callbackNode=null,2}function qw(l,s){if(qe!==0&&qe!==5)return l.callbackNode=null,l.callbackPriority=0,null;var h=l.callbackNode;if(yh()&&l.callbackNode!==h)return null;var m=jt;return m=Ut(l,l===pe?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),m===0?null:(Aw(l,m,s),Yw(l,Pe()),l.callbackNode!=null&&l.callbackNode===h?qw.bind(null,l):null)}function Xw(l,s){if(yh())return null;Aw(l,s,!0)}function XN(){iI(function(){(re&6)!==0?dr(wc,qN):jw()})}function gm(){if(Ci===0){var l=Hl;l===0&&(l=li,li<<=1,(li&261888)===0&&(li=256)),Ci=l}return Ci}function Zw(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:Dc(""+l)}function $w(l,s){var h=s.ownerDocument.createElement("input");return h.name=s.name,h.value=s.value,l.id&&h.setAttribute("form",l.id),s.parentNode.insertBefore(h,s),l=new FormData(l),h.parentNode.removeChild(h),l}function ZN(l,s,h,m,b){if(s==="submit"&&h&&h.stateNode===b){var w=Zw((b[Nn]||null).action),A=m.submitter;A&&(s=(s=A[Nn]||null)?Zw(s.formAction):A.getAttribute("formAction"),s!==null&&(w=s,A=null));var O=new Oc("action","action",null,m,b);l.push({event:O,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Ci!==0){var V=A?$w(b,A):new FormData(b);Bg(h,{pending:!0,data:V,method:b.method,action:w},null,V)}}else typeof w=="function"&&(O.preventDefault(),V=A?$w(b,A):new FormData(b),Bg(h,{pending:!0,data:V,method:b.method,action:w},w,V))},currentTarget:b}]})}}for(var mm=0;mm<Jp.length;mm++){var ym=Jp[mm],$N=ym.toLowerCase(),WN=ym[0].toUpperCase()+ym.slice(1);Vr($N,"on"+WN)}Vr(Cb,"onAnimationEnd"),Vr(Tb,"onAnimationIteration"),Vr(Ab,"onAnimationStart"),Vr("dblclick","onDoubleClick"),Vr("focusin","onFocus"),Vr("focusout","onBlur"),Vr(hN,"onTransitionRun"),Vr(dN,"onTransitionStart"),Vr(vN,"onTransitionCancel"),Vr(Db,"onTransitionEnd"),Cl("onMouseEnter",["mouseout","mouseover"]),Cl("onMouseLeave",["mouseout","mouseover"]),Cl("onPointerEnter",["pointerout","pointerover"]),Cl("onPointerLeave",["pointerout","pointerover"]),co("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),co("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),co("onBeforeInput",["compositionend","keypress","textInput","paste"]),co("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),co("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),co("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Du="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(" "),QN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Du));function Ww(l,s){s=(s&4)!==0;for(var h=0;h<l.length;h++){var m=l[h],b=m.event;m=m.listeners;t:{var w=void 0;if(s)for(var A=m.length-1;0<=A;A--){var O=m[A],V=O.instance,K=O.currentTarget;if(O=O.listener,V!==w&&b.isPropagationStopped())break t;w=O,b.currentTarget=K;try{w(b)}catch(nt){Ic(nt)}b.currentTarget=null,w=V}else for(A=0;A<m.length;A++){if(O=m[A],V=O.instance,K=O.currentTarget,O=O.listener,V!==w&&b.isPropagationStopped())break t;w=O,b.currentTarget=K;try{w(b)}catch(nt){Ic(nt)}b.currentTarget=null,w=V}}}}function Gt(l,s){var h=s[Lp];h===void 0&&(h=s[Lp]=new Set);var m=l+"__bubble";h.has(m)||(Qw(s,l,2,!1),h.add(m))}function _m(l,s,h){var m=0;s&&(m|=4),Qw(h,l,m,s)}var bh="_reactListening"+Math.random().toString(36).slice(2);function Sm(l){if(!l[bh]){l[bh]=!0,U1.forEach(function(h){h!=="selectionchange"&&(QN.has(h)||_m(h,!1,l),_m(h,!0,l))});var s=l.nodeType===9?l:l.ownerDocument;s===null||s[bh]||(s[bh]=!0,_m("selectionchange",!1,s))}}function Qw(l,s,h,m){switch(TM(s)){case 2:var b=CI;break;case 8:b=TI;break;default:b=Im}h=b.bind(null,s,h,l),b=void 0,!Fp||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(b=!0),m?b!==void 0?l.addEventListener(s,h,{capture:!0,passive:b}):l.addEventListener(s,h,!0):b!==void 0?l.addEventListener(s,h,{passive:b}):l.addEventListener(s,h,!1)}function bm(l,s,h,m,b){var w=m;if((s&1)===0&&(s&2)===0&&m!==null)t:for(;;){if(m===null)return;var A=m.tag;if(A===3||A===4){var O=m.stateNode.containerInfo;if(O===b)break;if(A===4)for(A=m.return;A!==null;){var V=A.tag;if((V===3||V===4)&&A.stateNode.containerInfo===b)return;A=A.return}for(;O!==null;){if(A=xl(O),A===null)return;if(V=A.tag,V===5||V===6||V===26||V===27){m=w=A;continue t}O=O.parentNode}}m=m.return}eb(function(){var K=w,nt=Pp(h),ot=[];t:{var J=Rb.get(l);if(J!==void 0){var tt=Oc,ht=l;switch(l){case"keypress":if(Ec(h)===0)break t;case"keydown":case"keyup":tt=jz;break;case"focusin":ht="focus",tt=jp;break;case"focusout":ht="blur",tt=jp;break;case"beforeblur":case"afterblur":tt=jp;break;case"click":if(h.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":tt=ab;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":tt=Oz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":tt=Xz;break;case Cb:case Tb:case Ab:tt=Iz;break;case Db:tt=$z;break;case"scroll":case"scrollend":tt=Ez;break;case"wheel":tt=Qz;break;case"copy":case"cut":case"paste":tt=kz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":tt=ob;break;case"toggle":case"beforetoggle":tt=Jz}var bt=(s&4)!==0,he=!bt&&(l==="scroll"||l==="scrollend"),$=bt?J!==null?J+"Capture":null:J;bt=[];for(var j=K,Q;j!==null;){var at=j;if(Q=at.stateNode,at=at.tag,at!==5&&at!==26&&at!==27||Q===null||$===null||(at=Ws(j,$),at!=null&&bt.push(Ru(j,at,Q))),he)break;j=j.return}0<bt.length&&(J=new tt(J,ht,null,h,nt),ot.push({event:J,listeners:bt}))}}if((s&7)===0){t:{if(J=l==="mouseover"||l==="pointerover",tt=l==="mouseout"||l==="pointerout",J&&h!==kp&&(ht=h.relatedTarget||h.fromElement)&&(xl(ht)||ht[bl]))break t;if((tt||J)&&(J=nt.window===nt?nt:(J=nt.ownerDocument)?J.defaultView||J.parentWindow:window,tt?(ht=h.relatedTarget||h.toElement,tt=K,ht=ht?xl(ht):null,ht!==null&&(he=i(ht),bt=ht.tag,ht!==he||bt!==5&&bt!==27&&bt!==6)&&(ht=null)):(tt=null,ht=K),tt!==ht)){if(bt=ab,at="onMouseLeave",$="onMouseEnter",j="mouse",(l==="pointerout"||l==="pointerover")&&(bt=ob,at="onPointerLeave",$="onPointerEnter",j="pointer"),he=tt==null?J:$s(tt),Q=ht==null?J:$s(ht),J=new bt(at,j+"leave",tt,h,nt),J.target=he,J.relatedTarget=Q,at=null,xl(nt)===K&&(bt=new bt($,j+"enter",ht,h,nt),bt.target=Q,bt.relatedTarget=he,at=bt),he=at,tt&&ht)e:{for(bt=KN,$=tt,j=ht,Q=0,at=$;at;at=bt(at))Q++;at=0;for(var _t=j;_t;_t=bt(_t))at++;for(;0<Q-at;)$=bt($),Q--;for(;0<at-Q;)j=bt(j),at--;for(;Q--;){if($===j||j!==null&&$===j.alternate){bt=$;break e}$=bt($),j=bt(j)}bt=null}else bt=null;tt!==null&&Kw(ot,J,tt,bt,!1),ht!==null&&he!==null&&Kw(ot,he,ht,bt,!0)}}t:{if(J=K?$s(K):window,tt=J.nodeName&&J.nodeName.toLowerCase(),tt==="select"||tt==="input"&&J.type==="file")var te=vb;else if(hb(J))if(pb)te=uN;else{te=lN;var vt=oN}else tt=J.nodeName,!tt||tt.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?K&&Bp(K.elementType)&&(te=vb):te=sN;if(te&&(te=te(l,K))){db(ot,te,h,nt);break t}vt&&vt(l,J,K),l==="focusout"&&K&&J.type==="number"&&K.memoizedProps.value!=null&&Ip(J,"number",J.value)}switch(vt=K?$s(K):window,l){case"focusin":(hb(vt)||vt.contentEditable==="true")&&(Ll=vt,Wp=K,au=null);break;case"focusout":au=Wp=Ll=null;break;case"mousedown":Qp=!0;break;case"contextmenu":case"mouseup":case"dragend":Qp=!1,wb(ot,h,nt);break;case"selectionchange":if(cN)break;case"keydown":case"keyup":wb(ot,h,nt)}var kt;if(qp)t:{switch(l){case"compositionstart":var Yt="onCompositionStart";break t;case"compositionend":Yt="onCompositionEnd";break t;case"compositionupdate":Yt="onCompositionUpdate";break t}Yt=void 0}else El?fb(l,h)&&(Yt="onCompositionEnd"):l==="keydown"&&h.keyCode===229&&(Yt="onCompositionStart");Yt&&(lb&&h.locale!=="ko"&&(El||Yt!=="onCompositionStart"?Yt==="onCompositionEnd"&&El&&(kt=nb()):(ui=nt,Vp="value"in ui?ui.value:ui.textContent,El=!0)),vt=xh(K,Yt),0<vt.length&&(Yt=new ib(Yt,l,null,h,nt),ot.push({event:Yt,listeners:vt}),kt?Yt.data=kt:(kt=cb(h),kt!==null&&(Yt.data=kt)))),(kt=eN?nN(l,h):rN(l,h))&&(Yt=xh(K,"onBeforeInput"),0<Yt.length&&(vt=new ib("onBeforeInput","beforeinput",null,h,nt),ot.push({event:vt,listeners:Yt}),vt.data=kt)),ZN(ot,l,K,h,nt)}Ww(ot,s)})}function Ru(l,s,h){return{instance:l,listener:s,currentTarget:h}}function xh(l,s){for(var h=s+"Capture",m=[];l!==null;){var b=l,w=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||w===null||(b=Ws(l,h),b!=null&&m.unshift(Ru(l,b,w)),b=Ws(l,s),b!=null&&m.push(Ru(l,b,w))),l.tag===3)return m;l=l.return}return[]}function KN(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function Kw(l,s,h,m,b){for(var w=s._reactName,A=[];h!==null&&h!==m;){var O=h,V=O.alternate,K=O.stateNode;if(O=O.tag,V!==null&&V===m)break;O!==5&&O!==26&&O!==27||K===null||(V=K,b?(K=Ws(h,w),K!=null&&A.unshift(Ru(h,K,V))):b||(K=Ws(h,w),K!=null&&A.push(Ru(h,K,V)))),h=h.return}A.length!==0&&l.push({event:s,listeners:A})}var JN=/\r\n?/g,tI=/\u0000|\uFFFD/g;function Jw(l){return(typeof l=="string"?l:""+l).replace(JN,`
|
|
49
|
+
`).replace(tI,"")}function tM(l,s){return s=Jw(s),Jw(l)===s}function ce(l,s,h,m,b,w){switch(h){case"children":typeof m=="string"?s==="body"||s==="textarea"&&m===""||Al(l,m):(typeof m=="number"||typeof m=="bigint")&&s!=="body"&&Al(l,""+m);break;case"className":Tc(l,"class",m);break;case"tabIndex":Tc(l,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Tc(l,h,m);break;case"style":J1(l,m,w);break;case"data":if(s!=="object"){Tc(l,"data",m);break}case"src":case"href":if(m===""&&(s!=="a"||h!=="href")){l.removeAttribute(h);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){l.removeAttribute(h);break}m=Dc(""+m),l.setAttribute(h,m);break;case"action":case"formAction":if(typeof m=="function"){l.setAttribute(h,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof w=="function"&&(h==="formAction"?(s!=="input"&&ce(l,s,"name",b.name,b,null),ce(l,s,"formEncType",b.formEncType,b,null),ce(l,s,"formMethod",b.formMethod,b,null),ce(l,s,"formTarget",b.formTarget,b,null)):(ce(l,s,"encType",b.encType,b,null),ce(l,s,"method",b.method,b,null),ce(l,s,"target",b.target,b,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){l.removeAttribute(h);break}m=Dc(""+m),l.setAttribute(h,m);break;case"onClick":m!=null&&(l.onclick=Ma);break;case"onScroll":m!=null&&Gt("scroll",l);break;case"onScrollEnd":m!=null&&Gt("scrollend",l);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(h=m.__html,h!=null){if(b.children!=null)throw Error(r(60));l.innerHTML=h}}break;case"multiple":l.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":l.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){l.removeAttribute("xlink:href");break}h=Dc(""+m),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?l.setAttribute(h,""+m):l.removeAttribute(h);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?l.setAttribute(h,""):l.removeAttribute(h);break;case"capture":case"download":m===!0?l.setAttribute(h,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?l.setAttribute(h,m):l.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?l.setAttribute(h,m):l.removeAttribute(h);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?l.removeAttribute(h):l.setAttribute(h,m);break;case"popover":Gt("beforetoggle",l),Gt("toggle",l),Cc(l,"popover",m);break;case"xlinkActuate":wa(l,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":wa(l,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":wa(l,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":wa(l,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":wa(l,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":wa(l,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":wa(l,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":wa(l,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":wa(l,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Cc(l,"is",m);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=Dz.get(h)||h,Cc(l,h,m))}}function xm(l,s,h,m,b,w){switch(h){case"style":J1(l,m,w);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(h=m.__html,h!=null){if(b.children!=null)throw Error(r(60));l.innerHTML=h}}break;case"children":typeof m=="string"?Al(l,m):(typeof m=="number"||typeof m=="bigint")&&Al(l,""+m);break;case"onScroll":m!=null&&Gt("scroll",l);break;case"onScrollEnd":m!=null&&Gt("scrollend",l);break;case"onClick":m!=null&&(l.onclick=Ma);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!j1.hasOwnProperty(h))t:{if(h[0]==="o"&&h[1]==="n"&&(b=h.endsWith("Capture"),s=h.slice(2,b?h.length-7:void 0),w=l[Nn]||null,w=w!=null?w[h]:null,typeof w=="function"&&l.removeEventListener(s,w,b),typeof m=="function")){typeof w!="function"&&w!==null&&(h in l?l[h]=null:l.hasAttribute(h)&&l.removeAttribute(h)),l.addEventListener(s,m,b);break t}h in l?l[h]=m:m===!0?l.setAttribute(h,""):Cc(l,h,m)}}}function en(l,s,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Gt("error",l),Gt("load",l);var m=!1,b=!1,w;for(w in h)if(h.hasOwnProperty(w)){var A=h[w];if(A!=null)switch(w){case"src":m=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:ce(l,s,w,A,h,null)}}b&&ce(l,s,"srcSet",h.srcSet,h,null),m&&ce(l,s,"src",h.src,h,null);return;case"input":Gt("invalid",l);var O=w=A=b=null,V=null,K=null;for(m in h)if(h.hasOwnProperty(m)){var nt=h[m];if(nt!=null)switch(m){case"name":b=nt;break;case"type":A=nt;break;case"checked":V=nt;break;case"defaultChecked":K=nt;break;case"value":w=nt;break;case"defaultValue":O=nt;break;case"children":case"dangerouslySetInnerHTML":if(nt!=null)throw Error(r(137,s));break;default:ce(l,s,m,nt,h,null)}}$1(l,w,O,V,K,A,b,!1);return;case"select":Gt("invalid",l),m=A=w=null;for(b in h)if(h.hasOwnProperty(b)&&(O=h[b],O!=null))switch(b){case"value":w=O;break;case"defaultValue":A=O;break;case"multiple":m=O;default:ce(l,s,b,O,h,null)}s=w,h=A,l.multiple=!!m,s!=null?Tl(l,!!m,s,!1):h!=null&&Tl(l,!!m,h,!0);return;case"textarea":Gt("invalid",l),w=b=m=null;for(A in h)if(h.hasOwnProperty(A)&&(O=h[A],O!=null))switch(A){case"value":m=O;break;case"defaultValue":b=O;break;case"children":w=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:ce(l,s,A,O,h,null)}Q1(l,m,b,w);return;case"option":for(V in h)if(h.hasOwnProperty(V)&&(m=h[V],m!=null))switch(V){case"selected":l.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:ce(l,s,V,m,h,null)}return;case"dialog":Gt("beforetoggle",l),Gt("toggle",l),Gt("cancel",l),Gt("close",l);break;case"iframe":case"object":Gt("load",l);break;case"video":case"audio":for(m=0;m<Du.length;m++)Gt(Du[m],l);break;case"image":Gt("error",l),Gt("load",l);break;case"details":Gt("toggle",l);break;case"embed":case"source":case"link":Gt("error",l),Gt("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in h)if(h.hasOwnProperty(K)&&(m=h[K],m!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:ce(l,s,K,m,h,null)}return;default:if(Bp(s)){for(nt in h)h.hasOwnProperty(nt)&&(m=h[nt],m!==void 0&&xm(l,s,nt,m,h,void 0));return}}for(O in h)h.hasOwnProperty(O)&&(m=h[O],m!=null&&ce(l,s,O,m,h,null))}function eI(l,s,h,m){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,w=null,A=null,O=null,V=null,K=null,nt=null;for(tt in h){var ot=h[tt];if(h.hasOwnProperty(tt)&&ot!=null)switch(tt){case"checked":break;case"value":break;case"defaultValue":V=ot;default:m.hasOwnProperty(tt)||ce(l,s,tt,null,m,ot)}}for(var J in m){var tt=m[J];if(ot=h[J],m.hasOwnProperty(J)&&(tt!=null||ot!=null))switch(J){case"type":w=tt;break;case"name":b=tt;break;case"checked":K=tt;break;case"defaultChecked":nt=tt;break;case"value":A=tt;break;case"defaultValue":O=tt;break;case"children":case"dangerouslySetInnerHTML":if(tt!=null)throw Error(r(137,s));break;default:tt!==ot&&ce(l,s,J,tt,m,ot)}}Np(l,A,O,V,K,nt,w,b);return;case"select":tt=A=O=J=null;for(w in h)if(V=h[w],h.hasOwnProperty(w)&&V!=null)switch(w){case"value":break;case"multiple":tt=V;default:m.hasOwnProperty(w)||ce(l,s,w,null,m,V)}for(b in m)if(w=m[b],V=h[b],m.hasOwnProperty(b)&&(w!=null||V!=null))switch(b){case"value":J=w;break;case"defaultValue":O=w;break;case"multiple":A=w;default:w!==V&&ce(l,s,b,w,m,V)}s=O,h=A,m=tt,J!=null?Tl(l,!!h,J,!1):!!m!=!!h&&(s!=null?Tl(l,!!h,s,!0):Tl(l,!!h,h?[]:"",!1));return;case"textarea":tt=J=null;for(O in h)if(b=h[O],h.hasOwnProperty(O)&&b!=null&&!m.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:ce(l,s,O,null,m,b)}for(A in m)if(b=m[A],w=h[A],m.hasOwnProperty(A)&&(b!=null||w!=null))switch(A){case"value":J=b;break;case"defaultValue":tt=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:b!==w&&ce(l,s,A,b,m,w)}W1(l,J,tt);return;case"option":for(var ht in h)if(J=h[ht],h.hasOwnProperty(ht)&&J!=null&&!m.hasOwnProperty(ht))switch(ht){case"selected":l.selected=!1;break;default:ce(l,s,ht,null,m,J)}for(V in m)if(J=m[V],tt=h[V],m.hasOwnProperty(V)&&J!==tt&&(J!=null||tt!=null))switch(V){case"selected":l.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:ce(l,s,V,J,m,tt)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var bt in h)J=h[bt],h.hasOwnProperty(bt)&&J!=null&&!m.hasOwnProperty(bt)&&ce(l,s,bt,null,m,J);for(K in m)if(J=m[K],tt=h[K],m.hasOwnProperty(K)&&J!==tt&&(J!=null||tt!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,s));break;default:ce(l,s,K,J,m,tt)}return;default:if(Bp(s)){for(var he in h)J=h[he],h.hasOwnProperty(he)&&J!==void 0&&!m.hasOwnProperty(he)&&xm(l,s,he,void 0,m,J);for(nt in m)J=m[nt],tt=h[nt],!m.hasOwnProperty(nt)||J===tt||J===void 0&&tt===void 0||xm(l,s,nt,J,m,tt);return}}for(var $ in h)J=h[$],h.hasOwnProperty($)&&J!=null&&!m.hasOwnProperty($)&&ce(l,s,$,null,m,J);for(ot in m)J=m[ot],tt=h[ot],!m.hasOwnProperty(ot)||J===tt||J==null&&tt==null||ce(l,s,ot,J,m,tt)}function eM(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function nI(){if(typeof performance.getEntriesByType=="function"){for(var l=0,s=0,h=performance.getEntriesByType("resource"),m=0;m<h.length;m++){var b=h[m],w=b.transferSize,A=b.initiatorType,O=b.duration;if(w&&O&&eM(A)){for(A=0,O=b.responseEnd,m+=1;m<h.length;m++){var V=h[m],K=V.startTime;if(K>O)break;var nt=V.transferSize,ot=V.initiatorType;nt&&eM(ot)&&(V=V.responseEnd,A+=nt*(V<O?1:(O-K)/(V-K)))}if(--m,s+=8*(w+A)/(b.duration/1e3),l++,10<l)break}}if(0<l)return s/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var wm=null,Mm=null;function wh(l){return l.nodeType===9?l:l.ownerDocument}function nM(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function rM(l,s){if(l===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&s==="foreignObject"?0:l}function Cm(l,s){return l==="textarea"||l==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Tm=null;function rI(){var l=window.event;return l&&l.type==="popstate"?l===Tm?!1:(Tm=l,!0):(Tm=null,!1)}var aM=typeof setTimeout=="function"?setTimeout:void 0,aI=typeof clearTimeout=="function"?clearTimeout:void 0,iM=typeof Promise=="function"?Promise:void 0,iI=typeof queueMicrotask=="function"?queueMicrotask:typeof iM<"u"?function(l){return iM.resolve(null).then(l).catch(oI)}:aM;function oI(l){setTimeout(function(){throw l})}function Ti(l){return l==="head"}function oM(l,s){var h=s,m=0;do{var b=h.nextSibling;if(l.removeChild(h),b&&b.nodeType===8)if(h=b.data,h==="/$"||h==="/&"){if(m===0){l.removeChild(b),as(s);return}m--}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")m++;else if(h==="html")Eu(l.ownerDocument.documentElement);else if(h==="head"){h=l.ownerDocument.head,Eu(h);for(var w=h.firstChild;w;){var A=w.nextSibling,O=w.nodeName;w[Zs]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&w.rel.toLowerCase()==="stylesheet"||h.removeChild(w),w=A}}else h==="body"&&Eu(l.ownerDocument.body);h=b}while(h);as(s)}function lM(l,s){var h=l;l=0;do{var m=h.nextSibling;if(h.nodeType===1?s?(h._stashedDisplay=h.style.display,h.style.display="none"):(h.style.display=h._stashedDisplay||"",h.getAttribute("style")===""&&h.removeAttribute("style")):h.nodeType===3&&(s?(h._stashedText=h.nodeValue,h.nodeValue=""):h.nodeValue=h._stashedText||""),m&&m.nodeType===8)if(h=m.data,h==="/$"){if(l===0)break;l--}else h!=="$"&&h!=="$?"&&h!=="$~"&&h!=="$!"||l++;h=m}while(h)}function Am(l){var s=l.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var h=s;switch(s=s.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":Am(h),Op(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}l.removeChild(h)}}function lI(l,s,h,m){for(;l.nodeType===1;){var b=h;if(l.nodeName.toLowerCase()!==s.toLowerCase()){if(!m&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(m){if(!l[Zs])switch(s){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(w=l.getAttribute("rel"),w==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(w!==b.rel||l.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||l.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||l.getAttribute("title")!==(b.title==null?null:b.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(w=l.getAttribute("src"),(w!==(b.src==null?null:b.src)||l.getAttribute("type")!==(b.type==null?null:b.type)||l.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&w&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(s==="input"&&l.type==="hidden"){var w=b.name==null?null:""+b.name;if(b.type==="hidden"&&l.getAttribute("name")===w)return l}else return l;if(l=xr(l.nextSibling),l===null)break}return null}function sI(l,s,h){if(s==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!h||(l=xr(l.nextSibling),l===null))return null;return l}function sM(l,s){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!s||(l=xr(l.nextSibling),l===null))return null;return l}function Dm(l){return l.data==="$?"||l.data==="$~"}function Rm(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function uI(l,s){var h=l.ownerDocument;if(l.data==="$~")l._reactRetry=s;else if(l.data!=="$?"||h.readyState!=="loading")s();else{var m=function(){s(),h.removeEventListener("DOMContentLoaded",m)};h.addEventListener("DOMContentLoaded",m),l._reactRetry=m}}function xr(l){for(;l!=null;l=l.nextSibling){var s=l.nodeType;if(s===1||s===3)break;if(s===8){if(s=l.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return l}var Em=null;function uM(l){l=l.nextSibling;for(var s=0;l;){if(l.nodeType===8){var h=l.data;if(h==="/$"||h==="/&"){if(s===0)return xr(l.nextSibling);s--}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||s++}l=l.nextSibling}return null}function fM(l){l=l.previousSibling;for(var s=0;l;){if(l.nodeType===8){var h=l.data;if(h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"){if(s===0)return l;s--}else h!=="/$"&&h!=="/&"||s++}l=l.previousSibling}return null}function cM(l,s,h){switch(s=wh(h),l){case"html":if(l=s.documentElement,!l)throw Error(r(452));return l;case"head":if(l=s.head,!l)throw Error(r(453));return l;case"body":if(l=s.body,!l)throw Error(r(454));return l;default:throw Error(r(451))}}function Eu(l){for(var s=l.attributes;s.length;)l.removeAttributeNode(s[0]);Op(l)}var wr=new Map,hM=new Set;function Mh(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var Fa=X.d;X.d={f:fI,r:cI,D:hI,C:dI,L:vI,m:pI,X:mI,S:gI,M:yI};function fI(){var l=Fa.f(),s=ph();return l||s}function cI(l){var s=wl(l);s!==null&&s.tag===5&&s.type==="form"?Rx(s):Fa.r(l)}var es=typeof document>"u"?null:document;function dM(l,s,h){var m=es;if(m&&typeof s=="string"&&s){var b=pr(s);b='link[rel="'+l+'"][href="'+b+'"]',typeof h=="string"&&(b+='[crossorigin="'+h+'"]'),hM.has(b)||(hM.add(b),l={rel:l,crossOrigin:h,href:s},m.querySelector(b)===null&&(s=m.createElement("link"),en(s,"link",l),Xe(s),m.head.appendChild(s)))}}function hI(l){Fa.D(l),dM("dns-prefetch",l,null)}function dI(l,s){Fa.C(l,s),dM("preconnect",l,s)}function vI(l,s,h){Fa.L(l,s,h);var m=es;if(m&&l&&s){var b='link[rel="preload"][as="'+pr(s)+'"]';s==="image"&&h&&h.imageSrcSet?(b+='[imagesrcset="'+pr(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(b+='[imagesizes="'+pr(h.imageSizes)+'"]')):b+='[href="'+pr(l)+'"]';var w=b;switch(s){case"style":w=ns(l);break;case"script":w=rs(l)}wr.has(w)||(l=v({rel:"preload",href:s==="image"&&h&&h.imageSrcSet?void 0:l,as:s},h),wr.set(w,l),m.querySelector(b)!==null||s==="style"&&m.querySelector(Lu(w))||s==="script"&&m.querySelector(Ou(w))||(s=m.createElement("link"),en(s,"link",l),Xe(s),m.head.appendChild(s)))}}function pI(l,s){Fa.m(l,s);var h=es;if(h&&l){var m=s&&typeof s.as=="string"?s.as:"script",b='link[rel="modulepreload"][as="'+pr(m)+'"][href="'+pr(l)+'"]',w=b;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=rs(l)}if(!wr.has(w)&&(l=v({rel:"modulepreload",href:l},s),wr.set(w,l),h.querySelector(b)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(Ou(w)))return}m=h.createElement("link"),en(m,"link",l),Xe(m),h.head.appendChild(m)}}}function gI(l,s,h){Fa.S(l,s,h);var m=es;if(m&&l){var b=Ml(m).hoistableStyles,w=ns(l);s=s||"default";var A=b.get(w);if(!A){var O={loading:0,preload:null};if(A=m.querySelector(Lu(w)))O.loading=5;else{l=v({rel:"stylesheet",href:l,"data-precedence":s},h),(h=wr.get(w))&&Lm(l,h);var V=A=m.createElement("link");Xe(V),en(V,"link",l),V._p=new Promise(function(K,nt){V.onload=K,V.onerror=nt}),V.addEventListener("load",function(){O.loading|=1}),V.addEventListener("error",function(){O.loading|=2}),O.loading|=4,Ch(A,s,m)}A={type:"stylesheet",instance:A,count:1,state:O},b.set(w,A)}}}function mI(l,s){Fa.X(l,s);var h=es;if(h&&l){var m=Ml(h).hoistableScripts,b=rs(l),w=m.get(b);w||(w=h.querySelector(Ou(b)),w||(l=v({src:l,async:!0},s),(s=wr.get(b))&&Om(l,s),w=h.createElement("script"),Xe(w),en(w,"link",l),h.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(b,w))}}function yI(l,s){Fa.M(l,s);var h=es;if(h&&l){var m=Ml(h).hoistableScripts,b=rs(l),w=m.get(b);w||(w=h.querySelector(Ou(b)),w||(l=v({src:l,async:!0,type:"module"},s),(s=wr.get(b))&&Om(l,s),w=h.createElement("script"),Xe(w),en(w,"link",l),h.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},m.set(b,w))}}function vM(l,s,h,m){var b=(b=gt.current)?Mh(b):null;if(!b)throw Error(r(446));switch(l){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(s=ns(h.href),h=Ml(b).hoistableStyles,m=h.get(s),m||(m={type:"style",instance:null,count:0,state:null},h.set(s,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){l=ns(h.href);var w=Ml(b).hoistableStyles,A=w.get(l);if(A||(b=b.ownerDocument||b,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(l,A),(w=b.querySelector(Lu(l)))&&!w._p&&(A.instance=w,A.state.loading=5),wr.has(l)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},wr.set(l,h),w||_I(b,l,h,A.state))),s&&m===null)throw Error(r(528,""));return A}if(s&&m!==null)throw Error(r(529,""));return null;case"script":return s=h.async,h=h.src,typeof h=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=rs(h),h=Ml(b).hoistableScripts,m=h.get(s),m||(m={type:"script",instance:null,count:0,state:null},h.set(s,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,l))}}function ns(l){return'href="'+pr(l)+'"'}function Lu(l){return'link[rel="stylesheet"]['+l+"]"}function pM(l){return v({},l,{"data-precedence":l.precedence,precedence:null})}function _I(l,s,h,m){l.querySelector('link[rel="preload"][as="style"]['+s+"]")?m.loading=1:(s=l.createElement("link"),m.preload=s,s.addEventListener("load",function(){return m.loading|=1}),s.addEventListener("error",function(){return m.loading|=2}),en(s,"link",h),Xe(s),l.head.appendChild(s))}function rs(l){return'[src="'+pr(l)+'"]'}function Ou(l){return"script[async]"+l}function gM(l,s,h){if(s.count++,s.instance===null)switch(s.type){case"style":var m=l.querySelector('style[data-href~="'+pr(h.href)+'"]');if(m)return s.instance=m,Xe(m),m;var b=v({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return m=(l.ownerDocument||l).createElement("style"),Xe(m),en(m,"style",b),Ch(m,h.precedence,l),s.instance=m;case"stylesheet":b=ns(h.href);var w=l.querySelector(Lu(b));if(w)return s.state.loading|=4,s.instance=w,Xe(w),w;m=pM(h),(b=wr.get(b))&&Lm(m,b),w=(l.ownerDocument||l).createElement("link"),Xe(w);var A=w;return A._p=new Promise(function(O,V){A.onload=O,A.onerror=V}),en(w,"link",m),s.state.loading|=4,Ch(w,h.precedence,l),s.instance=w;case"script":return w=rs(h.src),(b=l.querySelector(Ou(w)))?(s.instance=b,Xe(b),b):(m=h,(b=wr.get(w))&&(m=v({},h),Om(m,b)),l=l.ownerDocument||l,b=l.createElement("script"),Xe(b),en(b,"link",m),l.head.appendChild(b),s.instance=b);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(m=s.instance,s.state.loading|=4,Ch(m,h.precedence,l));return s.instance}function Ch(l,s,h){for(var m=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=m.length?m[m.length-1]:null,w=b,A=0;A<m.length;A++){var O=m[A];if(O.dataset.precedence===s)w=O;else if(w!==b)break}w?w.parentNode.insertBefore(l,w.nextSibling):(s=h.nodeType===9?h.head:h,s.insertBefore(l,s.firstChild))}function Lm(l,s){l.crossOrigin==null&&(l.crossOrigin=s.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=s.referrerPolicy),l.title==null&&(l.title=s.title)}function Om(l,s){l.crossOrigin==null&&(l.crossOrigin=s.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=s.referrerPolicy),l.integrity==null&&(l.integrity=s.integrity)}var Th=null;function mM(l,s,h){if(Th===null){var m=new Map,b=Th=new Map;b.set(h,m)}else b=Th,m=b.get(h),m||(m=new Map,b.set(h,m));if(m.has(l))return m;for(m.set(l,null),h=h.getElementsByTagName(l),b=0;b<h.length;b++){var w=h[b];if(!(w[Zs]||w[Qe]||l==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var A=w.getAttribute(s)||"";A=l+A;var O=m.get(A);O?O.push(w):m.set(A,[w])}}return m}function yM(l,s,h){l=l.ownerDocument||l,l.head.insertBefore(h,s==="title"?l.querySelector("head > title"):null)}function SI(l,s,h){if(h===1||s.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return l=s.disabled,typeof s.precedence=="string"&&l==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function _M(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function bI(l,s,h,m){if(h.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var b=ns(m.href),w=s.querySelector(Lu(b));if(w){s=w._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(l.count++,l=Ah.bind(l),s.then(l,l)),h.state.loading|=4,h.instance=w,Xe(w);return}w=s.ownerDocument||s,m=pM(m),(b=wr.get(b))&&Lm(m,b),w=w.createElement("link"),Xe(w);var A=w;A._p=new Promise(function(O,V){A.onload=O,A.onerror=V}),en(w,"link",m),h.instance=w}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(h,s),(s=h.state.preload)&&(h.state.loading&3)===0&&(l.count++,h=Ah.bind(l),s.addEventListener("load",h),s.addEventListener("error",h))}}var zm=0;function xI(l,s){return l.stylesheets&&l.count===0&&Rh(l,l.stylesheets),0<l.count||0<l.imgCount?function(h){var m=setTimeout(function(){if(l.stylesheets&&Rh(l,l.stylesheets),l.unsuspend){var w=l.unsuspend;l.unsuspend=null,w()}},6e4+s);0<l.imgBytes&&zm===0&&(zm=62500*nI());var b=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&Rh(l,l.stylesheets),l.unsuspend)){var w=l.unsuspend;l.unsuspend=null,w()}},(l.imgBytes>zm?50:800)+s);return l.unsuspend=h,function(){l.unsuspend=null,clearTimeout(m),clearTimeout(b)}}:null}function Ah(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rh(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Dh=null;function Rh(l,s){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Dh=new Map,s.forEach(wI,l),Dh=null,Ah.call(l))}function wI(l,s){if(!(s.state.loading&4)){var h=Dh.get(l);if(h)var m=h.get(null);else{h=new Map,Dh.set(l,h);for(var b=l.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<b.length;w++){var A=b[w];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(h.set(A.dataset.precedence,A),m=A)}m&&h.set(null,m)}b=s.instance,A=b.getAttribute("data-precedence"),w=h.get(A)||m,w===m&&h.set(null,b),h.set(A,b),this.count++,m=Ah.bind(this),b.addEventListener("load",m),b.addEventListener("error",m),w?w.parentNode.insertBefore(b,w.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(b,l.firstChild)),s.state.loading|=4}}var zu={$$typeof:C,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function MI(l,s,h,m,b,w,A,O,V){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qs(0),this.hiddenUpdates=qs(null),this.identifierPrefix=m,this.onUncaughtError=b,this.onCaughtError=w,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.incompleteTransitions=new Map}function SM(l,s,h,m,b,w,A,O,V,K,nt,ot){return l=new MI(l,s,h,A,V,K,nt,ot,O),s=1,w===!0&&(s|=24),w=er(3,null,null,s),l.current=w,w.stateNode=l,s=hg(),s.refCount++,l.pooledCache=s,s.refCount++,w.memoizedState={element:m,isDehydrated:h,cache:s},gg(w),l}function bM(l){return l?(l=Nl,l):Nl}function xM(l,s,h,m,b,w){b=bM(b),m.context===null?m.context=b:m.pendingContext=b,m=pi(s),m.payload={element:h},w=w===void 0?null:w,w!==null&&(m.callback=w),h=gi(l,m,s),h!==null&&(Fn(h,l,s),cu(h,l,s))}function wM(l,s){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var h=l.retryLane;l.retryLane=h!==0&&h<s?h:s}}function Nm(l,s){wM(l,s),(l=l.alternate)&&wM(l,s)}function MM(l){if(l.tag===13||l.tag===31){var s=go(l,67108864);s!==null&&Fn(s,l,67108864),Nm(l,67108864)}}function CM(l){if(l.tag===13||l.tag===31){var s=or();s=Rp(s);var h=go(l,s);h!==null&&Fn(h,l,s),Nm(l,s)}}var Eh=!0;function CI(l,s,h,m){var b=H.T;H.T=null;var w=X.p;try{X.p=2,Im(l,s,h,m)}finally{X.p=w,H.T=b}}function TI(l,s,h,m){var b=H.T;H.T=null;var w=X.p;try{X.p=8,Im(l,s,h,m)}finally{X.p=w,H.T=b}}function Im(l,s,h,m){if(Eh){var b=Bm(m);if(b===null)bm(l,s,m,Lh,h),AM(l,m);else if(DI(b,l,s,h,m))m.stopPropagation();else if(AM(l,m),s&4&&-1<AI.indexOf(l)){for(;b!==null;){var w=wl(b);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var A=Ft(w.pendingLanes);if(A!==0){var O=w;for(O.pendingLanes|=2,O.entangledLanes|=2;A;){var V=1<<31-Ye(A);O.entanglements[1]|=V,A&=~V}oa(w),(re&6)===0&&(dh=Pe()+500,Au(0))}}break;case 31:case 13:O=go(w,2),O!==null&&Fn(O,w,2),ph(),Nm(w,2)}if(w=Bm(m),w===null&&bm(l,s,m,Lh,h),w===b)break;b=w}b!==null&&m.stopPropagation()}else bm(l,s,m,null,h)}}function Bm(l){return l=Pp(l),km(l)}var Lh=null;function km(l){if(Lh=null,l=xl(l),l!==null){var s=i(l);if(s===null)l=null;else{var h=s.tag;if(h===13){if(l=o(s),l!==null)return l;l=null}else if(h===31){if(l=u(s),l!==null)return l;l=null}else if(h===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;l=null}else s!==l&&(l=null)}}return Lh=l,null}function TM(l){switch(l){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Dp()){case wc:return 2;case js:return 8;case dt:case me:return 32;case Wt:return 268435456;default:return 32}default:return 32}}var Pm=!1,Ai=null,Di=null,Ri=null,Nu=new Map,Iu=new Map,Ei=[],AI="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 AM(l,s){switch(l){case"focusin":case"focusout":Ai=null;break;case"dragenter":case"dragleave":Di=null;break;case"mouseover":case"mouseout":Ri=null;break;case"pointerover":case"pointerout":Nu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Iu.delete(s.pointerId)}}function Bu(l,s,h,m,b,w){return l===null||l.nativeEvent!==w?(l={blockedOn:s,domEventName:h,eventSystemFlags:m,nativeEvent:w,targetContainers:[b]},s!==null&&(s=wl(s),s!==null&&MM(s)),l):(l.eventSystemFlags|=m,s=l.targetContainers,b!==null&&s.indexOf(b)===-1&&s.push(b),l)}function DI(l,s,h,m,b){switch(s){case"focusin":return Ai=Bu(Ai,l,s,h,m,b),!0;case"dragenter":return Di=Bu(Di,l,s,h,m,b),!0;case"mouseover":return Ri=Bu(Ri,l,s,h,m,b),!0;case"pointerover":var w=b.pointerId;return Nu.set(w,Bu(Nu.get(w)||null,l,s,h,m,b)),!0;case"gotpointercapture":return w=b.pointerId,Iu.set(w,Bu(Iu.get(w)||null,l,s,h,m,b)),!0}return!1}function DM(l){var s=xl(l.target);if(s!==null){var h=i(s);if(h!==null){if(s=h.tag,s===13){if(s=o(h),s!==null){l.blockedOn=s,V1(l.priority,function(){CM(h)});return}}else if(s===31){if(s=u(h),s!==null){l.blockedOn=s,V1(l.priority,function(){CM(h)});return}}else if(s===3&&h.stateNode.current.memoizedState.isDehydrated){l.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Oh(l){if(l.blockedOn!==null)return!1;for(var s=l.targetContainers;0<s.length;){var h=Bm(l.nativeEvent);if(h===null){h=l.nativeEvent;var m=new h.constructor(h.type,h);kp=m,h.target.dispatchEvent(m),kp=null}else return s=wl(h),s!==null&&MM(s),l.blockedOn=h,!1;s.shift()}return!0}function RM(l,s,h){Oh(l)&&h.delete(s)}function RI(){Pm=!1,Ai!==null&&Oh(Ai)&&(Ai=null),Di!==null&&Oh(Di)&&(Di=null),Ri!==null&&Oh(Ri)&&(Ri=null),Nu.forEach(RM),Iu.forEach(RM)}function zh(l,s){l.blockedOn===s&&(l.blockedOn=null,Pm||(Pm=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,RI)))}var Nh=null;function EM(l){Nh!==l&&(Nh=l,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Nh===l&&(Nh=null);for(var s=0;s<l.length;s+=3){var h=l[s],m=l[s+1],b=l[s+2];if(typeof m!="function"){if(km(m||h)===null)continue;break}var w=wl(h);w!==null&&(l.splice(s,3),s-=3,Bg(w,{pending:!0,data:b,method:h.method,action:m},m,b))}}))}function as(l){function s(V){return zh(V,l)}Ai!==null&&zh(Ai,l),Di!==null&&zh(Di,l),Ri!==null&&zh(Ri,l),Nu.forEach(s),Iu.forEach(s);for(var h=0;h<Ei.length;h++){var m=Ei[h];m.blockedOn===l&&(m.blockedOn=null)}for(;0<Ei.length&&(h=Ei[0],h.blockedOn===null);)DM(h),h.blockedOn===null&&Ei.shift();if(h=(l.ownerDocument||l).$$reactFormReplay,h!=null)for(m=0;m<h.length;m+=3){var b=h[m],w=h[m+1],A=b[Nn]||null;if(typeof w=="function")A||EM(h);else if(A){var O=null;if(w&&w.hasAttribute("formAction")){if(b=w,A=w[Nn]||null)O=A.formAction;else if(km(b)!==null)continue}else O=A.action;typeof O=="function"?h[m+1]=O:(h.splice(m,3),m-=3),EM(h)}}}function LM(){function l(w){w.canIntercept&&w.info==="react-transition"&&w.intercept({handler:function(){return new Promise(function(A){return b=A})},focusReset:"manual",scroll:"manual"})}function s(){b!==null&&(b(),b=null),m||setTimeout(h,20)}function h(){if(!m&&!navigation.transition){var w=navigation.currentEntry;w&&w.url!=null&&navigation.navigate(w.url,{state:w.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,b=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(h,100),function(){m=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),b!==null&&(b(),b=null)}}}function Hm(l){this._internalRoot=l}Ih.prototype.render=Hm.prototype.render=function(l){var s=this._internalRoot;if(s===null)throw Error(r(409));var h=s.current,m=or();xM(h,m,l,s,null,null)},Ih.prototype.unmount=Hm.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var s=l.containerInfo;xM(l.current,2,null,l,null,null),ph(),s[bl]=null}};function Ih(l){this._internalRoot=l}Ih.prototype.unstable_scheduleHydration=function(l){if(l){var s=F1();l={blockedOn:null,target:l,priority:s};for(var h=0;h<Ei.length&&s!==0&&s<Ei[h].priority;h++);Ei.splice(h,0,l),h===0&&DM(l)}};var OM=e.version;if(OM!=="19.2.4")throw Error(r(527,OM,"19.2.4"));X.findDOMNode=function(l){var s=l._reactInternals;if(s===void 0)throw typeof l.render=="function"?Error(r(188)):(l=Object.keys(l).join(","),Error(r(268,l)));return l=c(s),l=l!==null?d(l):null,l=l===null?null:l.stateNode,l};var EI={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bh.isDisabled&&Bh.supportsFiber)try{je=Bh.inject(EI),De=Bh}catch{}}return Pu.createRoot=function(l,s){if(!a(l))throw Error(r(299));var h=!1,m="",b=Hx,w=Fx,A=Vx;return s!=null&&(s.unstable_strictMode===!0&&(h=!0),s.identifierPrefix!==void 0&&(m=s.identifierPrefix),s.onUncaughtError!==void 0&&(b=s.onUncaughtError),s.onCaughtError!==void 0&&(w=s.onCaughtError),s.onRecoverableError!==void 0&&(A=s.onRecoverableError)),s=SM(l,1,!1,null,null,h,m,null,b,w,A,LM),l[bl]=s.current,Sm(l),new Hm(s)},Pu.hydrateRoot=function(l,s,h){if(!a(l))throw Error(r(299));var m=!1,b="",w=Hx,A=Fx,O=Vx,V=null;return h!=null&&(h.unstable_strictMode===!0&&(m=!0),h.identifierPrefix!==void 0&&(b=h.identifierPrefix),h.onUncaughtError!==void 0&&(w=h.onUncaughtError),h.onCaughtError!==void 0&&(A=h.onCaughtError),h.onRecoverableError!==void 0&&(O=h.onRecoverableError),h.formState!==void 0&&(V=h.formState)),s=SM(l,1,!0,s,h??null,m,b,V,w,A,O,LM),s.context=bM(null),h=s.current,m=or(),m=Rp(m),b=pi(m),b.callback=null,gi(h,b,m),h=m,s.current.lanes=h,Xs(s,h),oa(s),l[bl]=s.current,Sm(l),new Ih(s)},Pu.version="19.2.4",Pu}var GM;function FI(){if(GM)return Gm.exports;GM=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(),Gm.exports=HI(),Gm.exports}var VI=FI();const GI=rS(VI),UM="".replace(/\/$/,"");function qd(t){return UM?`${UM}${t}`:t}async function Mr(t){const e=await fetch(qd(t));if(!e.ok)throw new Error(`API error: ${e.status}`);return e.json()}async function jM(t,e=null,n={}){const r=e?{"Content-Type":"application/json"}:void 0,a=await fetch(qd(t),{method:"POST",...n,headers:{...r||{},...n.headers||{}},body:e?JSON.stringify(e):void 0});if(!a.ok)throw new Error(`API error: ${a.status}`);return a.json()}const nn={url:qd,progress:()=>Mr("/api/progress"),overview:()=>Mr("/api/overview"),repos:()=>Mr("/api/repos"),models:()=>Mr("/api/models"),daily:()=>Mr("/api/daily"),sessions:(t="")=>Mr(`/api/sessions${t?`?q=${encodeURIComponent(t)}`:""}`),heatmap:()=>Mr("/api/heatmap"),families:()=>Mr("/api/families"),live:()=>new EventSource(qd("/api/live")),rerun:()=>jM("/api/rerun"),startOverviewVideoExport:(t={})=>jM("/api/export/overview-video",t,{headers:{"x-codexmeter-client-base":window.location.origin}}),exportSupport:()=>Mr("/api/export/support"),exportStatus:t=>Mr(`/api/export/${encodeURIComponent(t)}/status`),activeExport:()=>Mr("/api/export/active"),exportRenderData:t=>Mr(`/api/export/${encodeURIComponent(t)}/render-data`)};var kh={};/*! *****************************************************************************
|
|
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 Hy=function(t,e){return Hy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Hy(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");Hy(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Fy=function(){return Fy=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Fy.apply(this,arguments)};function UI(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function jI(t,e,n,r){var a=arguments.length,i=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(i=(a<3?o(i):a>3?o(e,n,i):o(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i}function YI(t,e){return function(n,r){e(n,r,t)}}function qI(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function XI(t,e,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function u(d){try{c(r.next(d))}catch(v){o(v)}}function f(d){try{c(r.throw(d))}catch(v){o(v)}}function c(d){d.done?i(d.value):a(d.value).then(u,f)}c((r=r.apply(t,e||[])).next())})}function ZI(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(c){return function(d){return f([c,d])}}function f(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(i=c[0]&2?a.return:c[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,c[1])).done)return i;switch(a=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(d){c=[6,d],a=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var aS=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 $I(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&aS(e,t,n)}function Vy(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 P2(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,i=[],o;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(u){o={error:u}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function WI(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(P2(arguments[e]));return t}function QI(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),a=0,e=0;e<n;e++)for(var i=arguments[e],o=0,u=i.length;o<u;o++,a++)r[a]=i[o];return r}function KI(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,i;r<a;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||e)}function Hf(t){return this instanceof Hf?(this.v=t,this):new Hf(t)}function JI(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),a,i=[];return a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a;function o(p){r[p]&&(a[p]=function(g){return new Promise(function(y,_){i.push([p,g,y,_])>1||u(p,g)})})}function u(p,g){try{f(r[p](g))}catch(y){v(i[0][3],y)}}function f(p){p.value instanceof Hf?Promise.resolve(p.value.v).then(c,d):v(i[0][2],p)}function c(p){u("next",p)}function d(p){u("throw",p)}function v(p,g){p(g),i.shift(),i.length&&u(i[0][0],i[0][1])}}function t5(t){var e,n;return e={},r("next"),r("throw",function(a){throw a}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(a,i){e[a]=t[a]?function(o){return(n=!n)?{value:Hf(t[a](o)),done:a==="return"}:i?i(o):o}:i}}function e5(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 Vy=="function"?Vy(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(o){return new Promise(function(u,f){o=t[i](o),a(u,f,o.done,o.value)})}}function a(i,o,u,f){Promise.resolve(f).then(function(c){i({value:c,done:u})},o)}}function n5(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var r5=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e};function a5(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)&&aS(e,t,n);return r5(e,t),e}function i5(t){return t&&t.__esModule?t:{default:t}}function o5(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 l5(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n}const s5=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Fy},__asyncDelegator:t5,__asyncGenerator:JI,__asyncValues:e5,__await:Hf,__awaiter:XI,__classPrivateFieldGet:o5,__classPrivateFieldSet:l5,__createBinding:aS,__decorate:jI,__exportStar:$I,__extends:ut,__generator:ZI,__importDefault:i5,__importStar:a5,__makeTemplateObject:n5,__metadata:qI,__param:YI,__read:P2,__rest:UI,__spread:WI,__spreadArray:KI,__spreadArrays:QI,__values:Vy},Symbol.toStringTag,{value:"Module"})),H2=OI(s5);var Va={},Ga={},qm={},YM;function u5(){return YM||(YM=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=1;t.default=function(){return"".concat(e++)}})(qm)),qm}var Hu={},Fu={},Xm={},qM;function F2(){return qM||(qM=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,a=null;return function(){for(var i=this,o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];clearTimeout(a),a=setTimeout(function(){n.apply(i,u)},r)}}})(Xm)),Xm}var Ua={},XM;function iS(){return XM||(XM=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.SizeSensorId=Ua.SensorTabIndex=Ua.SensorClassName=void 0,Ua.SizeSensorId="size-sensor-id",Ua.SensorClassName="size-sensor-object",Ua.SensorTabIndex="-1"),Ua}var ZM;function f5(){if(ZM)return Fu;ZM=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.createSensor=void 0;var t=n(F2()),e=iS();function n(r){return r&&r.__esModule?r:{default:r}}return Fu.createSensor=function(a,i){var o=void 0,u=[],f=function(){getComputedStyle(a).position==="static"&&(a.style.position="relative");var y=document.createElement("object");return y.onload=function(){y.contentDocument.defaultView.addEventListener("resize",c),c()},y.style.display="block",y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.height="100%",y.style.width="100%",y.style.overflow="hidden",y.style.pointerEvents="none",y.style.zIndex="-1",y.style.opacity="0",y.setAttribute("class",e.SensorClassName),y.setAttribute("tabindex",e.SensorTabIndex),y.type="text/html",a.appendChild(y),y.data="about:blank",y},c=(0,t.default)(function(){u.forEach(function(g){g(a)})}),d=function(y){o||(o=f()),u.indexOf(y)===-1&&u.push(y)},v=function(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",c),o.parentNode.removeChild(o),a.removeAttribute(e.SizeSensorId),o=void 0,u=[],i&&i())},p=function(y){var _=u.indexOf(y);_!==-1&&u.splice(_,1),u.length===0&&o&&v()};return{element:a,bind:d,destroy:v,unbind:p}},Fu}var Vu={},$M;function c5(){if($M)return Vu;$M=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.createSensor=void 0;var t=iS(),e=n(F2());function n(r){return r&&r.__esModule?r:{default:r}}return Vu.createSensor=function(a,i){var o=void 0,u=[],f=(0,e.default)(function(){u.forEach(function(g){g(a)})}),c=function(){var y=new ResizeObserver(f);return y.observe(a),f(),y},d=function(y){o||(o=c()),u.indexOf(y)===-1&&u.push(y)},v=function(){o&&o.disconnect(),u=[],o=void 0,a.removeAttribute(t.SizeSensorId),i&&i()},p=function(y){var _=u.indexOf(y);_!==-1&&u.splice(_,1),u.length===0&&o&&v()};return{element:a,bind:d,destroy:v,unbind:p}},Vu}var WM;function h5(){if(WM)return Hu;WM=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.createSensor=void 0;var t=f5(),e=c5();return Hu.createSensor=typeof ResizeObserver<"u"?e.createSensor:t.createSensor,Hu}var QM;function d5(){if(QM)return Ga;QM=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.removeSensor=Ga.getSensor=Ga.Sensors=void 0;var t=r(u5()),e=h5(),n=iS();function r(o){return o&&o.__esModule?o:{default:o}}var a=Ga.Sensors={};function i(o){o&&a[o]&&delete a[o]}return Ga.getSensor=function(u){var f=u.getAttribute(n.SizeSensorId);if(f&&a[f])return a[f];var c=(0,t.default)();u.setAttribute(n.SizeSensorId,c);var d=(0,e.createSensor)(u,function(){return i(c)});return a[c]=d,d},Ga.removeSensor=function(u){var f=u.element.getAttribute(n.SizeSensorId);u.destroy(),i(f)},Ga}var KM;function v5(){if(KM)return Va;KM=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.ver=Va.clear=Va.bind=void 0;var t=d5();return Va.bind=function(n,r){var a=(0,t.getSensor)(n);return a.bind(r),function(){a.unbind(r)}},Va.clear=function(n){var r=(0,t.getSensor)(n);(0,t.removeSensor)(r)},Va.ver="1.0.3",Va}var Gu={},JM;function p5(){if(JM)return Gu;JM=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.pick=void 0;function t(e,n){var r={};return n.forEach(function(a){r[a]=e[a]}),r}return Gu.pick=t,Gu}var Uu={},tC;function g5(){if(tC)return Uu;tC=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.isFunction=void 0;function t(e){return typeof e=="function"}return Uu.isFunction=t,Uu}var ju={},eC;function m5(){if(eC)return ju;eC=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.isString=void 0;function t(e){return typeof e=="string"}return ju.isString=t,ju}var Yu={},Zm,nC;function y5(){return nC||(nC=1,Zm=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!t(e[o],n[o]))return!1}return!0}return e!==e&&n!==n}),Zm}var rC;function _5(){if(rC)return Yu;rC=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.isEqual=void 0;var t=H2,e=t.__importDefault(y5());return Yu.isEqual=e.default,Yu}var aC;function S5(){if(aC)return kh;aC=1,Object.defineProperty(kh,"__esModule",{value:!0});var t=H2,e=t.__importStar(Ov()),n=v5(),r=p5(),a=g5(),i=m5(),o=_5(),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,a.isFunction)(v)&&!v(d,this.props))){if(!(0,o.isEqual)(d.theme,this.props.theme)||!(0,o.isEqual)(d.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var p=this.getEchartsInstance();(0,o.isEqual)(d.onEvents,this.props.onEvents)||(this.unbindEvents(p),this.bindEvents(p,this.props.onEvents));var g=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];(0,o.isEqual)((0,r.pick)(this.props,g),(0,r.pick)(d,g))||this.updateEChartsOption(),(!(0,o.isEqual)(d.style,this.props.style)||!(0,o.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(p){d.echarts.init(d.ele,d.props.theme,d.props.opts);var g=d.getEchartsInstance();g.on("finished",function(){var y=d.ele.clientWidth,_=d.ele.clientHeight;d.echarts.dispose(d.ele);var S=t.__assign({width:y,height:_},d.props.opts);p(d.echarts.init(d.ele,d.props.theme,S))})})]})})},c.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},c.prototype.dispose=function(){if(this.ele){try{(0,n.clear)(this.ele)}catch(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,p,g,y,_,S=this;return t.__generator(this,function(x){switch(x.label){case 0:return d=this.props,v=d.onEvents,p=d.onChartReady,g=d.autoResize,y=g===void 0?!0:g,[4,this.initEchartsInstance()];case 1:return x.sent(),_=this.updateEChartsOption(),this.bindEvents(_,v||{}),(0,a.isFunction)(p)&&p(_),this.ele&&y&&(0,n.bind)(this.ele,function(){S.resize()}),[2]}})})},c.prototype.bindEvents=function(d,v){var p=this,g=function(_,S){if((0,i.isString)(_)&&(0,a.isFunction)(S)){var x=function(M){S(M,d)};d.on(_,x),p.eventHandlerRefs[_]=x}};for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&g(y,v[y])},c.prototype.unbindEvents=function(d){for(var v=0,p=Object.entries(this.eventHandlerRefs);v<p.length;v++){var g=p[v],y=g[0],_=g[1];d.off(y,_)}this.eventHandlerRefs={}},c.prototype.updateEChartsOption=function(){var d=this.props,v=d.option,p=d.notMerge,g=p===void 0?!1:p,y=d.replaceMerge,_=y===void 0?null:y,S=d.lazyUpdate,x=S===void 0?!1:S,M=d.showLoading,C=d.loadingOption,T=C===void 0?null:C,R=this.getEchartsInstance();return R.setOption(v,{notMerge:g,replaceMerge:_,lazyUpdate:x}),M?R.showLoading(T):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,p=v.style,g=v.className,y=g===void 0?"":g;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 _=t.__rest(v,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),S=t.__assign({height:300},p);return e.default.createElement("div",t.__assign({ref:function(x){d.ele=x},style:S,className:"echarts-for-react ".concat(y)},_))},c})(e.PureComponent);return kh.default=u,kh}var b5=S5();const Tn=rS(b5);var x5=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),w5=(function(){function t(){this.browser=new x5,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 w5;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):M5(navigator.userAgent,Dt);function M5(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18),o&&(n.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=typeof document<"u";var u=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in u||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}var oS=12,C5="sans-serif",ul=oS+"px "+C5,T5=20,A5=100,D5="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function R5(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),a=(t.charCodeAt(n)-T5)/A5;e[r]=a}return e}var E5=R5(D5),Ja={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(n,r){if(!t){var a=Ja.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==r&&(e=t.font=r||ul),t.measureText(n);n=n||"",r=r||ul;var i=/((?:\d+)?\.?\d*)px/.exec(r),o=i&&+i[1]||oS,u=0;if(r.indexOf("mono")>=0)u=o*n.length;else for(var f=0;f<n.length;f++){var c=E5[n[f]];u+=c==null?o:c*o}return{width:u}}})(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function V2(t){for(var e in Ja)t[e]&&(Ja[e]=t[e])}var G2=Jr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),U2=Jr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Fs=Object.prototype.toString,Nv=Array.prototype,L5=Nv.forEach,O5=Nv.filter,lS=Nv.slice,z5=Nv.map,iC=(function(){}).constructor,Ph=iC?iC.prototype:null,sS="__proto__",N5=2311;function uS(){return N5++}function Iv(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Ht(t){if(t==null||typeof t!="object")return t;var e=t,n=Fs.call(t);if(n==="[object Array]"){if(!Rs(t)){e=[];for(var r=0,a=t.length;r<a;r++)e[r]=Ht(t[r])}}else if(U2[n]){if(!Rs(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var r=0,a=t.length;r<a;r++)e[r]=t[r]}}}else if(!G2[n]&&!Rs(t)&&!Ns(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==sS&&(e[o]=Ht(t[o]))}return e}function Zt(t,e,n){if(!St(e)||!St(t))return n?Ht(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==sS){var a=t[r],i=e[r];St(i)&&St(a)&&!ct(i)&&!ct(a)&&!Ns(i)&&!Ns(a)&&!Gy(i)&&!Gy(a)&&!Rs(i)&&!Rs(a)?Zt(a,i,n):(n||!(r in t))&&(t[r]=Ht(e[r]))}return t}function I5(t,e){for(var n=t[0],r=1,a=t.length;r<a;r++)n=Zt(n,t[r],e);return n}function st(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==sS&&(t[n]=e[n]);return t}function Jt(t,e,n){for(var r=ae(e),a=0,i=r.length;a<i;a++){var o=r[a];(n?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var B5=Ja.createCanvas;function Xt(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 fS(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(t.prototype[a]=n[a]);t.prototype.constructor=t,t.superClass=e}function Pr(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var i=r[a];i!=="constructor"&&(n?e[i]!=null:t[i]==null)&&(t[i]=e[i])}else Jt(t,e,n)}function mn(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function P(t,e,n){if(t&&e)if(t.forEach&&t.forEach===L5)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function mt(t,e,n){if(!t)return[];if(!e)return Bv(t);if(t.map&&t.map===z5)return t.map(e,n);for(var r=[],a=0,i=t.length;a<i;a++)r.push(e.call(n,t[a],a,t));return r}function Jr(t,e,n,r){if(t&&e){for(var a=0,i=t.length;a<i;a++)n=e.call(r,n,t[a],a,t);return n}}function Oe(t,e,n){if(!t)return[];if(!e)return Bv(t);if(t.filter&&t.filter===O5)return t.filter(e,n);for(var r=[],a=0,i=t.length;a<i;a++)e.call(n,t[a],a,t)&&r.push(t[a]);return r}function k5(t,e,n){if(t&&e){for(var r=0,a=t.length;r<a;r++)if(e.call(n,t[r],r,t))return t[r]}}function ae(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function P5(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(lS.call(arguments)))}}var xt=Ph&&Rt(Ph.bind)?Ph.call.bind(Ph.bind):P5;function be(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(lS.call(arguments)))}}function ct(t){return Array.isArray?Array.isArray(t):Fs.call(t)==="[object Array]"}function Rt(t){return typeof t=="function"}function pt(t){return typeof t=="string"}function Xd(t){return Fs.call(t)==="[object String]"}function ve(t){return typeof t=="number"}function St(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Gy(t){return!!G2[Fs.call(t)]}function En(t){return!!U2[Fs.call(t)]}function Ns(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function ic(t){return t.colorStops!=null}function j2(t){return t.image!=null}function H5(t){return Fs.call(t)==="[object RegExp]"}function Ff(t){return t!==t}function Is(){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 Ds(t,e,n){return t??e??n}function Bv(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return lS.apply(t,e)}function cS(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 ga(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 Y2="__ec_primitive__";function Zd(t){t[Y2]=!0}function Rs(t){return t[Y2]}var F5=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var n=this.has(e);return n&&delete this.data[e],n},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,n){return this.data[e]=n,this},t.prototype.keys=function(){return ae(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t})(),q2=typeof Map=="function";function V5(){return q2?new Map:new F5}var X2=(function(){function t(e){var n=ct(e);this.data=V5();var r=this;e instanceof t?e.each(a):e&&P(e,a);function a(i,o){n?r.set(i,o):r.set(o,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,n){return this.data.set(e,n),n},t.prototype.each=function(e,n){this.data.forEach(function(r,a){e.call(n,r,a)})},t.prototype.keys=function(){var e=this.data.keys();return q2?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function wt(t){return new X2(t)}function Z2(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var a=t.length,r=0;r<e.length;r++)n[r+a]=e[r];return n}function oc(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&st(n,e),n}function hS(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function zt(t,e){return t.hasOwnProperty(e)}function gn(){}var $2=180/Math.PI;const G5=Object.freeze(Object.defineProperty({__proto__:null,HashMap:X2,RADIAN_TO_DEGREE:$2,assert:ga,bind:xt,clone:Ht,concatArray:Z2,createCanvas:B5,createHashMap:wt,createObject:oc,curry:be,defaults:Jt,disableUserSelect:hS,each:P,eqNaN:Ff,extend:st,filter:Oe,find:k5,guid:uS,hasOwn:zt,indexOf:Xt,inherits:fS,isArray:ct,isArrayLike:mn,isBuiltInObject:Gy,isDom:Ns,isFunction:Rt,isGradientObject:ic,isImagePatternObject:j2,isNumber:ve,isObject:St,isPrimitive:Rs,isRegExp:H5,isString:pt,isStringSafe:Xd,isTypedArray:En,keys:ae,logError:Iv,map:mt,merge:Zt,mergeAll:I5,mixin:Pr,noop:gn,normalizeCssArray:cS,reduce:Jr,retrieve:Is,retrieve2:Pt,retrieve3:Ds,setAsPrimitive:Zd,slice:Bv,trim:Wr},Symbol.toStringTag,{value:"Module"}));function pl(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function U5(t,e){return t[0]=e[0],t[1]=e[1],t}function W2(t){return[t[0],t[1]]}function j5(t,e,n){return t[0]=e,t[1]=n,t}function Uy(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Y5(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function Q2(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function dS(t){return Math.sqrt(vS(t))}var q5=dS;function vS(t){return t[0]*t[0]+t[1]*t[1]}var X5=vS;function Z5(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function $5(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function W5(t,e){return t[0]*e[0]+t[1]*e[1]}function Rd(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function K2(t,e){var n=dS(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function $d(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Wd=$d;function J2(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var nl=J2;function Q5(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Ed(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],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function Gi(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Ui(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}const K5=Object.freeze(Object.defineProperty({__proto__:null,add:Uy,applyTransform:An,clone:W2,copy:U5,create:pl,dist:Wd,distSquare:nl,distance:$d,distanceSquare:J2,div:$5,dot:W5,len:dS,lenSquare:vS,length:q5,lengthSquare:X5,lerp:Ed,max:Ui,min:Gi,mul:Z5,negate:Q5,normalize:K2,scale:Rd,scaleAndAdd:Y5,set:j5,sub:Q2},Symbol.toStringTag,{value:"Module"}));var is=(function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t})(),J5=(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 is(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,a=e.offsetY,i=r-this._x,o=a-this._y;this._x=r,this._y=a,n.drift(i,o,e),this.handler.dispatchToElement(new is(n,e),"drag",e.event);var u=this.handler.findHover(r,a,n).target,f=this._dropTarget;this._dropTarget=u,n!==u&&(f&&u!==f&&this.handler.dispatchToElement(new is(f,e),"dragleave",e.event),u&&u!==f&&this.handler.dispatchToElement(new is(u,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new is(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new is(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),ta=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof n=="function"&&(a=r,r=n,n=null),!r||!e)return this;var o=this._$eventProcessor;n!=null&&o&&o.normalizeQuery&&(n=o.normalizeQuery(n)),i[e]||(i[e]=[]);for(var u=0;u<i[e].length;u++)if(i[e][u].h===r)return this;var f={h:r,query:n,ctx:a||this,callAtLast:r.zrEventfulCallAtLast},c=i[e].length-1,d=i[e][c];return d&&d.callAtLast?i[e].splice(c,0,f):i[e].push(f),this},t.prototype.isSilent=function(e){var n=this._$handlers;return!n||!n[e]||!n[e].length},t.prototype.off=function(e,n){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(n){if(r[e]){for(var a=[],i=0,o=r[e].length;i<o;i++)r[e][i].h!==n&&a.push(r[e][i]);r[e]=a}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},t.prototype.trigger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=n.length,u=a.length,f=0;f<u;f++){var c=a[f];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,n[0]);break;case 2:c.h.call(c.ctx,n[0],n[1]);break;default:c.h.apply(c.ctx,n);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=n.length,u=n[o-1],f=a.length,c=0;c<f;c++){var d=a[c];if(!(i&&i.filter&&d.query!=null&&!i.filter(e,d.query)))switch(o){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,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t})(),t3=Math.log(2);function jy(t,e,n,r,a,i){var o=r+"-"+a,u=t.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var f=Math.round(Math.log((1<<u)-1&~a)/t3);return t[n][f]}for(var c=r|1<<n,d=n+1;r&1<<d;)d++;for(var v=0,p=0,g=0;p<u;p++){var y=1<<p;y&a||(v+=(g%2?-1:1)*t[n][p]*jy(t,e-1,d,c,a|y,i),g++)}return i[o]=v,v}function oC(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},a=jy(n,8,0,0,0,r);if(a!==0){for(var i=[],o=0;o<8;o++)for(var u=0;u<8;u++)i[u]==null&&(i[u]=0),i[u]+=((o+u)%2?-1:1)*jy(n,7,o===0?1:0,1<<o,1<<u,r)/a*e[o];return function(f,c,d){var v=c*i[6]+d*i[7]+1;f[0]=(c*i[0]+d*i[1]+i[2])/v,f[1]=(c*i[3]+d*i[4]+i[5])/v}}}var lC="___zrEVENTSAVED",$m=[];function e3(t,e,n,r,a){return Yy($m,e,r,a,!0)&&Yy(t,n,$m[0],$m[1])}function Yy(t,e,n,r,a){if(e.getBoundingClientRect&&Dt.domSupported&&!tR(e)){var i=e[lC]||(e[lC]={}),o=n3(e,i),u=r3(o,i,a);if(u)return u(t,n,r),!0}return!1}function n3(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),u=o.style,f=i%2,c=(i>>1)%2;u.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[f]+":0",a[c]+":0",r[1-f]+":auto",a[1-c]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}function r3(t,e,n){for(var r=n?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],u=[],f=!0,c=0;c<4;c++){var d=t[c].getBoundingClientRect(),v=2*c,p=d.left,g=d.top;o.push(p,g),f=f&&i&&p===i[v]&&g===i[v+1],u.push(t[c].offsetLeft,t[c].offsetTop)}return f&&a?a:(e.srcCoords=o,e[r]=n?oC(u,o):oC(o,u))}function tR(t){return t.nodeName.toUpperCase()==="CANVAS"}var a3=/([&<>"'])/g,i3={"&":"&","<":"<",">":">",'"':""","'":"'"};function Cn(t){return t==null?"":(t+"").replace(a3,function(e,n){return i3[n]})}var o3=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Wm=[],l3=Dt.browser.firefox&&+Dt.browser.version.split(".")[0]<39;function qy(t,e,n,r){return n=n||{},r?sC(t,e,n):l3&&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):sC(t,e,n),n}function sC(t,e,n){if(Dt.domSupported&&t.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(tR(t)){var i=t.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(Yy(Wm,t,r,a)){n.zrX=Wm[0],n.zrY=Wm[1];return}}n.zrX=n.zrY=0}function pS(t){return t||window.event}function Dr(t,e,n){if(e=pS(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&qy(t,o,e,n)}else{qy(t,e,e,n);var i=s3(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var u=e.button;return e.which==null&&u!==void 0&&o3.test(e.type)&&(e.which=u&1?1:u&2?3:u&4?2:0),e}function s3(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var a=Math.abs(r!==0?r:n),i=r>0?-1:r<0?1:n>0?-1:1;return 3*a*i}function u3(t,e,n,r){t.addEventListener(e,n,r)}function f3(t,e,n,r){t.removeEventListener(e,n,r)}var Bs=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function uC(t){return t.which===2||t.which===3}var c3=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:n,event:e},o=0,u=a.length;o<u;o++){var f=a[o],c=qy(r,f,{});i.points.push([c.zrX,c.zrY]),i.touches.push(f)}this._track.push(i)}},t.prototype._recognize=function(e){for(var n in Qm)if(Qm.hasOwnProperty(n)){var r=Qm[n](this._track,e);if(r)return r}},t})();function fC(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function h3(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Qm={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,a=(t[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var i=fC(r)/fC(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=h3(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Qi(){return[1,0,0,1,0,0]}function lc(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function gS(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 Ki(t,e,n){var r=e[0]*n[0]+e[2]*n[1],a=e[1]*n[0]+e[3]*n[1],i=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],u=e[0]*n[4]+e[2]*n[5]+e[4],f=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=a,t[2]=i,t[3]=o,t[4]=u,t[5]=f,t}function Qd(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 kv(t,e,n,r){r===void 0&&(r=[0,0]);var a=e[0],i=e[2],o=e[4],u=e[1],f=e[3],c=e[5],d=Math.sin(n),v=Math.cos(n);return t[0]=a*v+u*d,t[1]=-a*d+u*v,t[2]=i*v+f*d,t[3]=-i*d+v*f,t[4]=v*(o-r[0])+d*(c-r[1])+r[0],t[5]=v*(c-r[1])-d*(o-r[0])+r[1],t}function eR(t,e,n){var r=n[0],a=n[1];return t[0]=e[0]*r,t[1]=e[1]*a,t[2]=e[2]*r,t[3]=e[3]*a,t[4]=e[4]*r,t[5]=e[5]*a,t}function sc(t,e){var n=e[0],r=e[2],a=e[4],i=e[1],o=e[3],u=e[5],f=n*o-i*r;return f?(f=1/f,t[0]=o*f,t[1]=-i*f,t[2]=-r*f,t[3]=n*f,t[4]=(r*u-o*a)*f,t[5]=(i*a-n*u)*f,t):null}function d3(t){var e=Qi();return gS(e,t),e}const v3=Object.freeze(Object.defineProperty({__proto__:null,clone:d3,copy:gS,create:Qi,identity:lc,invert:sc,mul:Ki,rotate:kv,scale:eR,translate:Qd},Symbol.toStringTag,{value:"Module"}));var Et=(function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,a){e.x=n.x+r.x*a,e.y=n.y+r.y*a},t.lerp=function(e,n,r,a){var i=1-a;e.x=i*n.x+a*r.x,e.y=i*n.y+a*r.y},t})(),Hh=Math.min,Fh=Math.max,Ro=new Et,Eo=new Et,Lo=new Et,Oo=new Et,qu=new Et,Xu=new Et,Kt=(function(){function t(e,n,r,a){r<0&&(e=e+r,r=-r),a<0&&(n=n+a,a=-a),this.x=e,this.y=n,this.width=r,this.height=a}return t.prototype.union=function(e){var n=Hh(e.x,this.x),r=Hh(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Fh(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Fh(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,a=e.height/n.height,i=Qi();return Qd(i,i,[-n.x,-n.y]),eR(i,i,[r,a]),Qd(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,u=r.y+r.height,f=e.x,c=e.x+e.width,d=e.y,v=e.y+e.height,p=!(i<f||c<a||u<d||v<o);if(n){var g=1/0,y=0,_=Math.abs(i-f),S=Math.abs(c-a),x=Math.abs(u-d),M=Math.abs(v-o),C=Math.min(_,S),T=Math.min(x,M);i<f||c<a?C>y&&(y=C,_<S?Et.set(Xu,-_,0):Et.set(Xu,S,0)):C<g&&(g=C,_<S?Et.set(qu,_,0):Et.set(qu,-S,0)),u<d||v<o?T>y&&(y=T,x<M?Et.set(Xu,0,-x):Et.set(Xu,0,M)):C<g&&(g=C,x<M?Et.set(qu,0,x):Et.set(qu,0,-M))}return n&&Et.copy(n,p?qu:Xu),p},t.prototype.contain=function(e,n){var r=this;return e>=r.x&&e<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],u=r[5];e.x=n.x*a+o,e.y=n.y*i+u,e.width=n.width*a,e.height=n.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ro.x=Lo.x=n.x,Ro.y=Oo.y=n.y,Eo.x=Oo.x=n.x+n.width,Eo.y=Lo.y=n.y+n.height,Ro.transform(r),Oo.transform(r),Eo.transform(r),Lo.transform(r),e.x=Hh(Ro.x,Eo.x,Lo.x,Oo.x),e.y=Hh(Ro.y,Eo.y,Lo.y,Oo.y);var f=Fh(Ro.x,Eo.x,Lo.x,Oo.x),c=Fh(Ro.y,Eo.y,Lo.y,Oo.y);e.width=f-e.x,e.height=c-e.y},t})(),nR="silent";function p3(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:g3}}function g3(){Bs(this.event)}var m3=(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})(ta),Zu=(function(){function t(e,n){this.x=e,this.y=n}return t})(),y3=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Km=new Kt(0,0,0,0),rR=(function(t){ut(e,t);function e(n,r,a,i,o){var u=t.call(this)||this;return u._hovered=new Zu(0,0),u.storage=n,u.painter=r,u.painterRoot=i,u._pointerSize=o,a=a||new m3,u.proxy=null,u.setHandlerProxy(a),u._draggingMgr=new J5(u),u}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(P(y3,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,i=aR(this,r,a),o=this._hovered,u=o.target;u&&!u.__zr&&(o=this.findHover(o.x,o.y),u=o.target);var f=this._hovered=i?new Zu(r,a):this.findHover(r,a),c=f.target,d=this.proxy;d.setCursor&&d.setCursor(c?c.cursor:"default"),u&&c!==u&&this.dispatchToElement(o,"mouseout",n),this.dispatchToElement(f,"mousemove",n),c&&c!==u&&this.dispatchToElement(f,"mouseover",n)},e.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},e.prototype.resize=function(){this._hovered=new Zu(0,0)},e.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,a){n=n||{};var i=n.target;if(!(i&&i.silent)){for(var o="on"+r,u=p3(r,n,a);i&&(i[o]&&(u.cancelBubble=!!i[o].call(i,u)),i.trigger(r,u),i=i.__hostTarget?i.__hostTarget:i.parent,!u.cancelBubble););u.cancelBubble||(this.trigger(r,u),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[o]=="function"&&f[o].call(f,u),f.trigger&&f.trigger(r,u)}))}},e.prototype.findHover=function(n,r,a){var i=this.storage.getDisplayList(),o=new Zu(n,r);if(cC(i,o,n,r,a),this._pointerSize&&!o.target){for(var u=[],f=this._pointerSize,c=f/2,d=new Kt(n-c,r-c,f,f),v=i.length-1;v>=0;v--){var p=i[v];p!==a&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(Km.copy(p.getBoundingRect()),p.transform&&Km.applyTransform(p.transform),Km.intersect(d)&&u.push(p))}if(u.length)for(var g=4,y=Math.PI/12,_=Math.PI*2,S=0;S<c;S+=g)for(var x=0;x<_;x+=y){var M=n+S*Math.cos(x),C=r+S*Math.sin(x);if(cC(u,o,M,C,a),o.target)return o}}return o},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new c3);var a=this._gestureMgr;r==="start"&&a.clear();var i=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&a.clear(),i){var o=i.type;n.gestureEvent=o;var u=new Zu;u.target=i.target,this.dispatchToElement(u,o,i.event)}},e})(ta);P(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){rR.prototype[t]=function(e){var n=e.zrX,r=e.zrY,a=aR(this,n,r),i,o;if((t!=="mouseup"||!a)&&(i=this.findHover(n,r),o=i.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Wd(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function _3(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,n))return!1}r.silent&&(a=!0);var u=r.__hostTarget;r=u||r.parent}return a?nR:!0}return!1}function cC(t,e,n,r,a){for(var i=t.length-1;i>=0;i--){var o=t[i],u=void 0;if(o!==a&&!o.ignore&&(u=_3(o,n,r))&&(!e.topTarget&&(e.topTarget=o),u!==nR)){e.target=o;break}}}function aR(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var iR=32,$u=7;function S3(t){for(var e=0;t>=iR;)e|=t&1,t>>=1;return t+e}function hC(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;a<n&&r(t[a],t[a-1])<0;)a++;b3(t,e,a)}else for(;a<n&&r(t[a],t[a-1])>=0;)a++;return a-e}function b3(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function dC(t,e,n,r,a){for(r===e&&r++;r<n;r++){for(var i=t[r],o=e,u=r,f;o<u;)f=o+u>>>1,a(i,t[f])<0?u=f:o=f+1;var c=r-o;switch(c){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;c>0;)t[o+c]=t[o+c-1],c--}t[o]=i}}function Jm(t,e,n,r,a,i){var o=0,u=0,f=1;if(i(t,e[n+a])>0){for(u=r-a;f<u&&i(t,e[n+a+f])>0;)o=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u),o+=a,f+=a}else{for(u=a+1;f<u&&i(t,e[n+a-f])<=0;)o=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u);var c=o;o=a-f,f=a-c}for(o++;o<f;){var d=o+(f-o>>>1);i(t,e[n+d])>0?o=d+1:f=d}return f}function t0(t,e,n,r,a,i){var o=0,u=0,f=1;if(i(t,e[n+a])<0){for(u=a+1;f<u&&i(t,e[n+a-f])<0;)o=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u);var c=o;o=a-f,f=a-c}else{for(u=r-a;f<u&&i(t,e[n+a+f])>=0;)o=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u),o+=a,f+=a}for(o++;o<f;){var d=o+(f-o>>>1);i(t,e[n+d])<0?f=d:o=d+1}return f}function x3(t,e){var n=$u,r,a,i=0,o=[];r=[],a=[];function u(g,y){r[i]=g,a[i]=y,i+=1}function f(){for(;i>1;){var g=i-2;if(g>=1&&a[g-1]<=a[g]+a[g+1]||g>=2&&a[g-2]<=a[g]+a[g-1])a[g-1]<a[g+1]&&g--;else if(a[g]>a[g+1])break;d(g)}}function c(){for(;i>1;){var g=i-2;g>0&&a[g-1]<a[g+1]&&g--,d(g)}}function d(g){var y=r[g],_=a[g],S=r[g+1],x=a[g+1];a[g]=_+x,g===i-3&&(r[g+1]=r[g+2],a[g+1]=a[g+2]),i--;var M=t0(t[S],t,y,_,0,e);y+=M,_-=M,_!==0&&(x=Jm(t[y+_-1],t,S,x,x-1,e),x!==0&&(_<=x?v(y,_,S,x):p(y,_,S,x)))}function v(g,y,_,S){var x=0;for(x=0;x<y;x++)o[x]=t[g+x];var M=0,C=_,T=g;if(t[T++]=t[C++],--S===0){for(x=0;x<y;x++)t[T+x]=o[M+x];return}if(y===1){for(x=0;x<S;x++)t[T+x]=t[C+x];t[T+S]=o[M];return}for(var R=n,D,E,z;;){D=0,E=0,z=!1;do if(e(t[C],o[M])<0){if(t[T++]=t[C++],E++,D=0,--S===0){z=!0;break}}else if(t[T++]=o[M++],D++,E=0,--y===1){z=!0;break}while((D|E)<R);if(z)break;do{if(D=t0(t[C],o,M,y,0,e),D!==0){for(x=0;x<D;x++)t[T+x]=o[M+x];if(T+=D,M+=D,y-=D,y<=1){z=!0;break}}if(t[T++]=t[C++],--S===0){z=!0;break}if(E=Jm(o[M],t,C,S,0,e),E!==0){for(x=0;x<E;x++)t[T+x]=t[C+x];if(T+=E,C+=E,S-=E,S===0){z=!0;break}}if(t[T++]=o[M++],--y===1){z=!0;break}R--}while(D>=$u||E>=$u);if(z)break;R<0&&(R=0),R+=2}if(n=R,n<1&&(n=1),y===1){for(x=0;x<S;x++)t[T+x]=t[C+x];t[T+S]=o[M]}else{if(y===0)throw new Error;for(x=0;x<y;x++)t[T+x]=o[M+x]}}function p(g,y,_,S){var x=0;for(x=0;x<S;x++)o[x]=t[_+x];var M=g+y-1,C=S-1,T=_+S-1,R=0,D=0;if(t[T--]=t[M--],--y===0){for(R=T-(S-1),x=0;x<S;x++)t[R+x]=o[x];return}if(S===1){for(T-=y,M-=y,D=T+1,R=M+1,x=y-1;x>=0;x--)t[D+x]=t[R+x];t[T]=o[C];return}for(var E=n;;){var z=0,I=0,N=!1;do if(e(o[C],t[M])<0){if(t[T--]=t[M--],z++,I=0,--y===0){N=!0;break}}else if(t[T--]=o[C--],I++,z=0,--S===1){N=!0;break}while((z|I)<E);if(N)break;do{if(z=y-t0(o[C],t,g,y,y-1,e),z!==0){for(T-=z,M-=z,y-=z,D=T+1,R=M+1,x=z-1;x>=0;x--)t[D+x]=t[R+x];if(y===0){N=!0;break}}if(t[T--]=o[C--],--S===1){N=!0;break}if(I=S-Jm(t[M],o,0,S,S-1,e),I!==0){for(T-=I,C-=I,S-=I,D=T+1,R=C+1,x=0;x<I;x++)t[D+x]=o[R+x];if(S<=1){N=!0;break}}if(t[T--]=t[M--],--y===0){N=!0;break}E--}while(z>=$u||I>=$u);if(N)break;E<0&&(E=0),E+=2}if(n=E,n<1&&(n=1),S===1){for(T-=y,M-=y,D=T+1,R=M+1,x=y-1;x>=0;x--)t[D+x]=t[R+x];t[T]=o[C]}else{if(S===0)throw new Error;for(R=T-(S-1),x=0;x<S;x++)t[R+x]=o[x]}}return{mergeRuns:f,forceMergeRuns:c,pushRun:u}}function Ld(t,e,n,r){n||(n=0),r||(r=t.length);var a=r-n;if(!(a<2)){var i=0;if(a<iR){i=hC(t,n,r,e),dC(t,n,r,n+i,e);return}var o=x3(t,e),u=S3(a);do{if(i=hC(t,n,r,e),i<u){var f=a;f>u&&(f=u),dC(t,n,n+f,n+i,e),i=f}o.pushRun(n,i),o.mergeRuns(),a-=i,n+=i}while(a!==0);o.forceMergeRuns()}}var lr=1,mf=2,xs=4,vC=!1;function e0(){vC||(vC=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function pC(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var w3=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=pC}return t.prototype.traverse=function(e,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,n)},t.prototype.getDisplayList=function(e,n){n=n||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(n),r},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var n=this._roots,r=this._displayList,a=0,i=n.length;a<i;a++)this._updateAndAddDisplayable(n[a],null,e);r.length=this._displayListLen,Ld(r,pC)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var i=a,o=e;i;)i.parent=o,i.updateTransform(),n.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var u=e.childrenRef(),f=0;f<u.length;f++){var c=u[f];e.__dirty&&(c.__dirty|=lr),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)&&(e0(),d.z=0),isNaN(d.z2)&&(e0(),d.z2=0),isNaN(d.zlevel)&&(e0(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=e.getDecalElement&&e.getDecalElement();v&&this._updateAndAddDisplayable(v,n,r);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,n,r);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,n,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n<r;n++)this.delRoot(e[n]);return}var a=Xt(this._roots,e);a>=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),Kd;Kd=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 Cf={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-Cf.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?Cf.bounceIn(t*2)*.5:Cf.bounceOut(t*2-1)*.5+.5}},Vh=Math.pow,Ji=Math.sqrt,Jd=1e-8,oR=1e-4,gC=Ji(3),Gh=1/3,ha=pl(),Or=pl(),Es=pl();function ji(t){return t>-Jd&&t<Jd}function lR(t){return t>Jd||t<-Jd}function on(t,e,n,r,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*r+3*i*n)}function mC(t,e,n,r,a){var i=1-a;return 3*(((e-t)*i+2*(n-e)*a)*i+(r-n)*a*a)}function tv(t,e,n,r,a,i){var o=r+3*(e-n)-t,u=3*(n-e*2+t),f=3*(e-t),c=t-a,d=u*u-3*o*f,v=u*f-9*o*c,p=f*f-3*u*c,g=0;if(ji(d)&&ji(v))if(ji(u))i[0]=0;else{var y=-f/u;y>=0&&y<=1&&(i[g++]=y)}else{var _=v*v-4*d*p;if(ji(_)){var S=v/d,y=-u/o+S,x=-S/2;y>=0&&y<=1&&(i[g++]=y),x>=0&&x<=1&&(i[g++]=x)}else if(_>0){var M=Ji(_),C=d*u+1.5*o*(-v+M),T=d*u+1.5*o*(-v-M);C<0?C=-Vh(-C,Gh):C=Vh(C,Gh),T<0?T=-Vh(-T,Gh):T=Vh(T,Gh);var y=(-u-(C+T))/(3*o);y>=0&&y<=1&&(i[g++]=y)}else{var R=(2*d*u-3*o*v)/(2*Ji(d*d*d)),D=Math.acos(R)/3,E=Ji(d),z=Math.cos(D),y=(-u-2*E*z)/(3*o),x=(-u+E*(z+gC*Math.sin(D)))/(3*o),I=(-u+E*(z-gC*Math.sin(D)))/(3*o);y>=0&&y<=1&&(i[g++]=y),x>=0&&x<=1&&(i[g++]=x),I>=0&&I<=1&&(i[g++]=I)}}return g}function sR(t,e,n,r,a){var i=6*n-12*e+6*t,o=9*e+3*r-3*t-9*n,u=3*e-3*t,f=0;if(ji(o)){if(lR(i)){var c=-u/i;c>=0&&c<=1&&(a[f++]=c)}}else{var d=i*i-4*o*u;if(ji(d))a[0]=-i/(2*o);else if(d>0){var v=Ji(d),c=(-i+v)/(2*o),p=(-i-v)/(2*o);c>=0&&c<=1&&(a[f++]=c),p>=0&&p<=1&&(a[f++]=p)}}return f}function ev(t,e,n,r,a,i){var o=(e-t)*a+t,u=(n-e)*a+e,f=(r-n)*a+n,c=(u-o)*a+o,d=(f-u)*a+u,v=(d-c)*a+c;i[0]=t,i[1]=o,i[2]=c,i[3]=v,i[4]=v,i[5]=d,i[6]=f,i[7]=r}function M3(t,e,n,r,a,i,o,u,f,c,d){var v,p=.005,g=1/0,y,_,S,x;ha[0]=f,ha[1]=c;for(var M=0;M<1;M+=.05)Or[0]=on(t,n,a,o,M),Or[1]=on(e,r,i,u,M),S=nl(ha,Or),S<g&&(v=M,g=S);g=1/0;for(var C=0;C<32&&!(p<oR);C++)y=v-p,_=v+p,Or[0]=on(t,n,a,o,y),Or[1]=on(e,r,i,u,y),S=nl(Or,ha),y>=0&&S<g?(v=y,g=S):(Es[0]=on(t,n,a,o,_),Es[1]=on(e,r,i,u,_),x=nl(Es,ha),_<=1&&x<g?(v=_,g=x):p*=.5);return Ji(g)}function C3(t,e,n,r,a,i,o,u,f){for(var c=t,d=e,v=0,p=1/f,g=1;g<=f;g++){var y=g*p,_=on(t,n,a,o,y),S=on(e,r,i,u,y),x=_-c,M=S-d;v+=Math.sqrt(x*x+M*M),c=_,d=S}return v}function jn(t,e,n,r){var a=1-r;return a*(a*t+2*r*e)+r*r*n}function yC(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function T3(t,e,n,r,a){var i=t-2*e+n,o=2*(e-t),u=t-r,f=0;if(ji(i)){if(lR(o)){var c=-u/o;c>=0&&c<=1&&(a[f++]=c)}}else{var d=o*o-4*i*u;if(ji(d)){var c=-o/(2*i);c>=0&&c<=1&&(a[f++]=c)}else if(d>0){var v=Ji(d),c=(-o+v)/(2*i),p=(-o-v)/(2*i);c>=0&&c<=1&&(a[f++]=c),p>=0&&p<=1&&(a[f++]=p)}}return f}function uR(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function nv(t,e,n,r,a){var i=(e-t)*r+t,o=(n-e)*r+e,u=(o-i)*r+i;a[0]=t,a[1]=i,a[2]=u,a[3]=u,a[4]=o,a[5]=n}function A3(t,e,n,r,a,i,o,u,f){var c,d=.005,v=1/0;ha[0]=o,ha[1]=u;for(var p=0;p<1;p+=.05){Or[0]=jn(t,n,a,p),Or[1]=jn(e,r,i,p);var g=nl(ha,Or);g<v&&(c=p,v=g)}v=1/0;for(var y=0;y<32&&!(d<oR);y++){var _=c-d,S=c+d;Or[0]=jn(t,n,a,_),Or[1]=jn(e,r,i,_);var g=nl(Or,ha);if(_>=0&&g<v)c=_,v=g;else{Es[0]=jn(t,n,a,S),Es[1]=jn(e,r,i,S);var x=nl(Es,ha);S<=1&&x<v?(c=S,v=x):d*=.5}}return Ji(v)}function D3(t,e,n,r,a,i,o){for(var u=t,f=e,c=0,d=1/o,v=1;v<=o;v++){var p=v*d,g=jn(t,n,a,p),y=jn(e,r,i,p),_=g-u,S=y-f;c+=Math.sqrt(_*_+S*S),u=g,f=y}return c}var R3=/cubic-bezier\(([0-9,\.e ]+)\)/;function fR(t){var e=t&&R3.exec(t);if(e){var n=e[1].split(","),r=+Wr(n[0]),a=+Wr(n[1]),i=+Wr(n[2]),o=+Wr(n[3]);if(isNaN(r+a+i+o))return;var u=[];return function(f){return f<=0?0:f>=1?1:tv(0,r,i,1,f,u)&&on(0,a,o,1,u[0])}}}var E3=(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||gn,this.ondestroy=e.ondestroy||gn,this.onrestart=e.onrestart||gn,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,u=o?o(i):i;if(this.onframe(u),i===1)if(this.loop){var f=a%r;this._startTime=e-f,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Rt(e)?e:Cf[e]||fR(e)},t})(),cR=(function(){function t(e){this.value=e}return t})(),L3=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new cR(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})(),uc=(function(){function t(e){this._list=new L3,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),u=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=r.head;r.remove(f),delete a[f.key],i=f.value,this._lastRemovedEntry=f}u?u.value=n:u=new cR(n),u.key=e,r.insertEntry(u),a[e]=u}return i},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),_C={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 Qr(t){return t=Math.round(t),t<0?0:t>255?255:t}function O3(t){return t=Math.round(t),t<0?0:t>360?360:t}function Vf(t){return t<0?0:t>1?1:t}function n0(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Qr(parseFloat(e)/100*255):Qr(parseInt(e,10))}function rl(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Vf(parseFloat(e)/100):Vf(parseFloat(e))}function r0(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 Yi(t,e,n){return t+(e-t)*n}function Ar(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t}function Xy(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var hR=new uc(20),Uh=null;function os(t,e){Uh&&Xy(Uh,e),Uh=hR.put(t,Uh||e.slice())}function sr(t,e){if(t){e=e||[];var n=hR.get(t);if(n)return Xy(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in _C)return Xy(e,_C[r]),os(t,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Ar(e,0,0,0,1);return}return Ar(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),os(t,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Ar(e,0,0,0,1);return}return Ar(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),os(t,e),e}return}var o=r.indexOf("("),u=r.indexOf(")");if(o!==-1&&u+1===a){var f=r.substr(0,o),c=r.substr(o+1,u-(o+1)).split(","),d=1;switch(f){case"rgba":if(c.length!==4)return c.length===3?Ar(e,+c[0],+c[1],+c[2],1):Ar(e,0,0,0,1);d=rl(c.pop());case"rgb":if(c.length>=3)return Ar(e,n0(c[0]),n0(c[1]),n0(c[2]),c.length===3?d:rl(c[3])),os(t,e),e;Ar(e,0,0,0,1);return;case"hsla":if(c.length!==4){Ar(e,0,0,0,1);return}return c[3]=rl(c[3]),Zy(c,e),os(t,e),e;case"hsl":if(c.length!==3){Ar(e,0,0,0,1);return}return Zy(c,e),os(t,e),e;default:return}}Ar(e,0,0,0,1)}}function Zy(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=rl(t[1]),a=rl(t[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Ar(e,Qr(r0(o,i,n+1/3)*255),Qr(r0(o,i,n)*255),Qr(r0(o,i,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function z3(t){if(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,a=Math.min(e,n,r),i=Math.max(e,n,r),o=i-a,u=(i+a)/2,f,c;if(o===0)f=0,c=0;else{u<.5?c=o/(i+a):c=o/(2-i-a);var d=((i-e)/6+o/2)/o,v=((i-n)/6+o/2)/o,p=((i-r)/6+o/2)/o;e===i?f=p-v:n===i?f=1/3+d-p:r===i&&(f=2/3+v-d),f<0&&(f+=1),f>1&&(f-=1)}var g=[f*360,c,u];return t[3]!=null&&g.push(t[3]),g}}function $y(t,e){var n=sr(t);if(n){for(var r=0;r<3;r++)e<0?n[r]=n[r]*(1-e)|0:n[r]=(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return lo(n,n.length===4?"rgba":"rgb")}}function N3(t){var e=sr(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function dR(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){n=n||[];var r=t*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],u=e[i],f=r-a;return n[0]=Qr(Yi(o[0],u[0],f)),n[1]=Qr(Yi(o[1],u[1],f)),n[2]=Qr(Yi(o[2],u[2],f)),n[3]=Vf(Yi(o[3],u[3],f)),n}}var I3=dR;function mS(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var r=t*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=sr(e[a]),u=sr(e[i]),f=r-a,c=lo([Qr(Yi(o[0],u[0],f)),Qr(Yi(o[1],u[1],f)),Qr(Yi(o[2],u[2],f)),Vf(Yi(o[3],u[3],f))],"rgba");return n?{color:c,leftIndex:a,rightIndex:i,value:r}:c}}var B3=mS;function k3(t,e,n,r){var a=sr(t);if(t)return a=z3(a),e!=null&&(a[0]=O3(e)),n!=null&&(a[1]=rl(n)),r!=null&&(a[2]=rl(r)),lo(Zy(a),"rgba")}function P3(t,e){var n=sr(t);if(n&&e!=null)return n[3]=Vf(e),lo(n,"rgba")}function lo(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function Gf(t,e){var n=sr(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function H3(){return lo([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var SC=new uc(100);function Wy(t){if(pt(t)){var e=SC.get(t);return e||(e=$y(t,-.1),SC.put(t,e)),e}else if(ic(t)){var n=st({},t);return n.colorStops=mt(t.colorStops,function(r){return{offset:r.offset,color:$y(r.color,-.1)}}),n}return t}const F3=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:dR,fastMapToColor:I3,lerp:mS,lift:$y,liftColor:Wy,lum:Gf,mapToColor:B3,modifyAlpha:P3,modifyHSL:k3,parse:sr,random:H3,stringify:lo,toHex:N3},Symbol.toStringTag,{value:"Module"}));function V3(t){return t.type==="linear"}function G3(t){return t.type==="radial"}(function(){return Dt.hasGlobalWindow&&Rt(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var Qy=Array.prototype.slice;function qa(t,e,n){return(e-t)*n+t}function a0(t,e,n,r){for(var a=e.length,i=0;i<a;i++)t[i]=qa(e[i],n[i],r);return t}function U3(t,e,n,r){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var u=0;u<i;u++)t[o][u]=qa(e[o][u],n[o][u],r)}return t}function jh(t,e,n,r){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+n[i]*r;return t}function bC(t,e,n,r){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var u=0;u<i;u++)t[o][u]=e[o][u]+n[o][u]*r}return t}function j3(t,e){for(var n=t.length,r=e.length,a=n>r?e:t,i=Math.min(n,r),o=a[i-1]||{color:[0,0,0,0],offset:0},u=i;u<Math.max(n,r);u++)a.push({offset:o.offset,color:o.color.slice()})}function Y3(t,e,n){var r=t,a=e;if(!(!r.push||!a.push)){var i=r.length,o=a.length;if(i!==o){var u=i>o;if(u)r.length=o;else for(var f=i;f<o;f++)r.push(n===1?a[f]:Qy.call(a[f]))}for(var c=r[0]&&r[0].length,f=0;f<r.length;f++)if(n===1)isNaN(r[f])&&(r[f]=a[f]);else for(var d=0;d<c;d++)isNaN(r[f][d])&&(r[f][d]=a[f][d])}}function Tf(t){if(mn(t)){var e=t.length;if(mn(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 Od(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 q3(t){return mn(t&&t[0])?2:1}var Yh=0,zd=1,vR=2,yf=3,Ky=4,Jy=5,xC=6;function wC(t){return t===Ky||t===Jy}function qh(t){return t===zd||t===vR}var Wu=[0,0,0,0],X3=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,u=xC,f=n;if(mn(n)){var c=q3(n);u=c,(c===1&&!ve(n[0])||c===2&&!ve(n[0][0]))&&(o=!0)}else if(ve(n)&&!Ff(n))u=Yh;else if(pt(n))if(!isNaN(+n))u=Yh;else{var d=sr(n);d&&(f=d,u=yf)}else if(ic(n)){var v=st({},f);v.colorStops=mt(n.colorStops,function(g){return{offset:g.offset,color:sr(g.color)}}),V3(n)?u=Ky:G3(n)&&(u=Jy),f=v}i===0?this.valType=u:(u!==this.valType||u===xC)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:f,rawValue:n,percent:0};return r&&(p.easing=r,p.easingFunc=Rt(r)?r:Cf[r]||fR(r)),a.push(p),p},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(_,S){return _.time-S.time});for(var a=this.valType,i=r.length,o=r[i-1],u=this.discrete,f=qh(a),c=wC(a),d=0;d<i;d++){var v=r[d],p=v.value,g=o.value;v.percent=v.time/e,u||(f&&d!==i-1?Y3(p,g,a):c&&j3(p.colorStops,g.colorStops))}if(!u&&a!==Jy&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var y=r[0].value,d=0;d<i;d++)a===Yh?r[d].additiveValue=r[d].value-y:a===yf?r[d].additiveValue=jh([],r[d].value,y,-1):qh(a)&&(r[d].additiveValue=a===zd?jh([],r[d].value,y,-1):bC([],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,a=r?"additiveValue":"value",i=this.valType,o=this.keyframes,u=o.length,f=this.propName,c=i===yf,d,v=this._lastFr,p=Math.min,g,y;if(u===1)g=y=o[0];else{if(n<0)d=0;else if(n<this._lastFrP){var _=p(v+1,u-1);for(d=_;d>=0&&!(o[d].percent<=n);d--);d=p(d,u-2)}else{for(d=v;d<u&&!(o[d].percent>n);d++);d=p(d-1,u-2)}y=o[d+1],g=o[d]}if(g&&y){this._lastFr=d,this._lastFrP=n;var S=y.percent-g.percent,x=S===0?1:p((n-g.percent)/S,1);y.easingFunc&&(x=y.easingFunc(x));var M=r?this._additiveValue:c?Wu:e[f];if((qh(i)||c)&&!M&&(M=this._additiveValue=[]),this.discrete)e[f]=x<1?g.rawValue:y.rawValue;else if(qh(i))i===zd?a0(M,g[a],y[a],x):U3(M,g[a],y[a],x);else if(wC(i)){var C=g[a],T=y[a],R=i===Ky;e[f]={type:R?"linear":"radial",x:qa(C.x,T.x,x),y:qa(C.y,T.y,x),colorStops:mt(C.colorStops,function(E,z){var I=T.colorStops[z];return{offset:qa(E.offset,I.offset,x),color:Od(a0([],E.color,I.color,x))}}),global:T.global},R?(e[f].x2=qa(C.x2,T.x2,x),e[f].y2=qa(C.y2,T.y2,x)):e[f].r=qa(C.r,T.r,x)}else if(c)a0(M,g[a],y[a],x),r||(e[f]=Od(M));else{var D=qa(g[a],y[a],x);r?this._additiveValue=D:e[f]=D}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,a=this._additiveValue;n===Yh?e[r]=e[r]+a:n===yf?(sr(e[r],Wu),jh(Wu,Wu,a,1),e[r]=Od(Wu)):n===zd?jh(e[r],e[r],a,1):n===vR&&bC(e[r],e[r],a,1)},t})(),yS=(function(){function t(e,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&a){Iv("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,ae(n),r)},t.prototype.whenWithKeys=function(e,n,r,a){for(var i=this._tracks,o=0;o<r.length;o++){var u=r[o],f=i[u];if(!f){f=i[u]=new X3(u);var c=void 0,d=this._getAdditiveTrack(u);if(d){var v=d.keyframes,p=v[v.length-1];c=p&&p.value,d.valType===yf&&c&&(c=Od(c))}else c=this._target[u];if(c==null)continue;e>0&&f.addKeyframe(0,Tf(c),a),this._trackKeys.push(u)}f.addKeyframe(e,Tf(n[u]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r<n;r++)e[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,n=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)e[n[r]].setFinished()},t.prototype._getAdditiveTrack=function(e){var n,r=this._additiveAnimators;if(r)for(var a=0;a<r.length;a++){var i=r[a].getTrack(e);i&&(n=i)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],u=this._tracks[o],f=this._getAdditiveTrack(o),c=u.keyframes,d=c.length;if(u.prepare(a,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 p=new E3({life:a,loop:this._loop,delay:this._delay||0,onframe:function(g){n._started=2;var y=n._additiveAnimators;if(y){for(var _=!1,S=0;S<y.length;S++)if(y[S]._clip){_=!0;break}_||(n._additiveAnimators=null)}for(var S=0;S<r.length;S++)r[S].step(n._target,g);var x=n._onframeCbs;if(x)for(var S=0;S<x.length;S++)x[S](n._target,g)},ondestroy:function(){n._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var n=this._clip;e&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return mt(this._trackKeys,function(n){return e._tracks[n]})},t.prototype.stopTracks=function(e,n){if(!e.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=r[e[i]];o&&!o.isFinished()&&(n?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var u=!0,i=0;i<a.length;i++)if(!r[a[i]].isFinished()){u=!1;break}return u&&this._abortedCallback(),u},t.prototype.saveTo=function(e,n,r){if(e){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var i=n[a],o=this._tracks[i];if(!(!o||o.isFinished())){var u=o.keyframes,f=u[r?0:u.length-1];f&&(e[i]=Tf(f.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||ae(e);for(var r=0;r<n.length;r++){var a=n[r],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var u=o.pop();i.addKeyframe(u.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t})();function Cs(){return new Date().getTime()}var Z3=(function(t){ut(e,t);function e(n){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return e.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=Cs()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,u=i.step(r,a);u&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(Kd(r),!n._paused&&n.update())}Kd(r)},e.prototype.start=function(){this._running||(this._time=Cs(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Cs(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Cs()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var a=new yS(n,r.loop);return this.addAnimator(a),a},e})(ta),$3=300,i0=Dt.domSupported,o0=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=mt(t,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:r}})(),MC={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},CC=!1;function t_(t){var e=t.pointerType;return e==="pen"||e==="touch"}function W3(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 l0(t){t&&(t.zrByTouch=!0)}function Q3(t,e){return Dr(t.dom,new K3(t,e),!0)}function pR(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 K3=(function(){function t(e,n){this.stopPropagation=gn,this.stopImmediatePropagation=gn,this.preventDefault=gn,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t})(),Zr={mousedown:function(t){t=Dr(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Dr(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=Dr(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Dr(this.dom,t);var e=t.toElement||t.relatedTarget;pR(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){CC=!0,t=Dr(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){CC||(t=Dr(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Dr(this.dom,t),l0(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Zr.mousemove.call(this,t),Zr.mousedown.call(this,t)},touchmove:function(t){t=Dr(this.dom,t),l0(t),this.handler.processGesture(t,"change"),Zr.mousemove.call(this,t)},touchend:function(t){t=Dr(this.dom,t),l0(t),this.handler.processGesture(t,"end"),Zr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<$3&&Zr.click.call(this,t)},pointerdown:function(t){Zr.mousedown.call(this,t)},pointermove:function(t){t_(t)||Zr.mousemove.call(this,t)},pointerup:function(t){Zr.mouseup.call(this,t)},pointerout:function(t){t_(t)||Zr.mouseout.call(this,t)}};P(["click","dblclick","contextmenu"],function(t){Zr[t]=function(e){e=Dr(this.dom,e),this.trigger(t,e)}});var e_={pointermove:function(t){t_(t)||e_.mousemove.call(this,t)},pointerup:function(t){e_.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 J3(t,e){var n=e.domHandlers;Dt.pointerEventsSupported?P(o0.pointer,function(r){Nd(e,r,function(a){n[r].call(t,a)})}):(Dt.touchEventsSupported&&P(o0.touch,function(r){Nd(e,r,function(a){n[r].call(t,a),W3(e)})}),P(o0.mouse,function(r){Nd(e,r,function(a){a=pS(a),e.touching||n[r].call(t,a)})}))}function tB(t,e){Dt.pointerEventsSupported?P(MC.pointer,n):Dt.touchEventsSupported||P(MC.mouse,n);function n(r){function a(i){i=pS(i),pR(t,i.target)||(i=Q3(t,i),e.domHandlers[r].call(t,i))}Nd(e,r,a,{capture:!0})}}function Nd(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,u3(t.domTarget,e,n,r)}function s0(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&f3(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var TC=(function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t})(),eB=(function(t){ut(e,t);function e(n,r){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new TC(n,Zr),i0&&(a._globalHandlerScope=new TC(document,e_)),J3(a,a._localHandlerScope),a}return e.prototype.dispose=function(){s0(this._localHandlerScope),i0&&s0(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,i0&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?tB(this,r):s0(r)}},e})(ta),gR=1;Dt.hasGlobalWindow&&(gR=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var rv=gR,n_=.4,r_="#333",a_="#ccc",nB="#eee",AC=lc,DC=5e-5;function zo(t){return t>DC||t<-DC}var No=[],ls=[],u0=Qi(),f0=Math.abs,_S=(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 zo(this.rotation)||zo(this.x)||zo(this.y)||zo(this.scaleX-1)||zo(this.scaleY-1)||zo(this.skewX)||zo(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(AC(r),this.invTransform=null);return}r=r||Qi(),n?this.getLocalTransform(r):AC(r),e&&(n?Ki(r,e,r):gS(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(No);var r=No[0]<0?-1:1,a=No[1]<0?-1:1,i=((No[0]-r)*n+r)/No[0]||0,o=((No[1]-a)*n+a)/No[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Qi(),sc(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),n=Math.sqrt(n),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Qi(),Ki(ls,e.invTransform,n),n=ls);var r=this.originX,a=this.originY;(r||a)&&(u0[4]=r,u0[5]=a,Ki(ls,n,u0),ls[4]-=r,ls[5]-=a,n=ls),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],a=this.invTransform;return a&&An(r,r,a),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],a=this.transform;return a&&An(r,r,a),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&f0(e[0]-1)>1e-10&&f0(e[3]-1)>1e-10?Math.sqrt(f0(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){rB(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,u=e.anchorX,f=e.anchorY,c=e.rotation||0,d=e.x,v=e.y,p=e.skewX?Math.tan(e.skewX):0,g=e.skewY?Math.tan(-e.skewY):0;if(r||a||u||f){var y=r+u,_=a+f;n[4]=-y*i-p*_*o,n[5]=-_*o-g*y*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=g*i,n[2]=p*o,c&&kv(n,n,c),n[4]+=r+d,n[5]+=a+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})(),ma=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function rB(t,e){for(var n=0;n<ma.length;n++){var r=ma[n];t[r]=e[r]}}var RC={};function ur(t,e){e=e||ul;var n=RC[e];n||(n=RC[e]=new uc(500));var r=n.get(t);return r==null&&(r=Ja.measureText(t,e).width,n.put(t,r)),r}function EC(t,e,n,r){var a=ur(t,e),i=bS(e),o=_f(0,a,n),u=ws(0,i,r),f=new Kt(o,u,a,i);return f}function SS(t,e,n,r){var a=((t||"")+"").split(`
|
|
63
|
+
`),i=a.length;if(i===1)return EC(a[0],e,n,r);for(var o=new Kt(0,0,0,0),u=0;u<a.length;u++){var f=EC(a[u],e,n,r);u===0?o.copy(f):o.union(f)}return o}function _f(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function ws(t,e,n){return n==="middle"?t-=e/2:n==="bottom"&&(t-=e),t}function bS(t){return ur("国",t)}function io(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function av(t,e,n){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=n.height,o=n.width,u=i/2,f=n.x,c=n.y,d="left",v="top";if(r instanceof Array)f+=io(r[0],n.width),c+=io(r[1],n.height),d=null,v=null;else switch(r){case"left":f-=a,c+=u,d="right",v="middle";break;case"right":f+=a+o,c+=u,v="middle";break;case"top":f+=o/2,c-=a,d="center",v="bottom";break;case"bottom":f+=o/2,c+=i+a,d="center";break;case"inside":f+=o/2,c+=u,d="center",v="middle";break;case"insideLeft":f+=a,c+=u,v="middle";break;case"insideRight":f+=o-a,c+=u,d="right",v="middle";break;case"insideTop":f+=o/2,c+=a,d="center";break;case"insideBottom":f+=o/2,c+=i-a,d="center",v="bottom";break;case"insideTopLeft":f+=a,c+=a;break;case"insideTopRight":f+=o-a,c+=a,d="right";break;case"insideBottomLeft":f+=a,c+=i-a,v="bottom";break;case"insideBottomRight":f+=o-a,c+=i-a,d="right",v="bottom";break}return t=t||{},t.x=f,t.y=c,t.align=d,t.verticalAlign=v,t}var c0="__zr_normal__",h0=ma.concat(["ignore"]),aB=Jr(ma,function(t,e){return t[e]=!0,t},{ignore:!1}),ss={},iB=new Kt(0,0,0,0),Pv=(function(){function t(e){this.id=uS(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var n=this._textContent;if(n&&(!n.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=n.innerTransformable,o=void 0,u=void 0,f=!1;i.parent=a?this:null;var c=!1;if(i.copyTransform(n),r.position!=null){var d=iB;r.layoutRect?d.copy(r.layoutRect):d.copy(this.getBoundingRect()),a||d.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ss,r,d):av(ss,r,d),i.x=ss.x,i.y=ss.y,o=ss.align,u=ss.verticalAlign;var v=r.origin;if(v&&r.rotation!=null){var p=void 0,g=void 0;v==="center"?(p=d.width*.5,g=d.height*.5):(p=io(v[0],d.width),g=io(v[1],d.height)),c=!0,i.originX=-i.x+p+(a?0:d.x),i.originY=-i.y+g+(a?0:d.y)}}r.rotation!=null&&(i.rotation=r.rotation);var y=r.offset;y&&(i.x+=y[0],i.y+=y[1],c||(i.originX=-y[0],i.originY=-y[1]));var _=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,S=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,M=void 0,C=void 0;_&&this.canBeInsideText()?(x=r.insideFill,M=r.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(M==null||M==="auto")&&(M=this.getInsideTextStroke(x),C=!0)):(x=r.outsideFill,M=r.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(M==null||M==="auto")&&(M=this.getOutsideStroke(x),C=!0)),x=x||"#000",(x!==S.fill||M!==S.stroke||C!==S.autoStroke||o!==S.align||u!==S.verticalAlign)&&(f=!0,S.fill=x,S.stroke=M,S.autoStroke=C,S.align=o,S.verticalAlign=u,n.setDefaultTextStyle(S)),n.__dirty|=lr,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()?a_:r_},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&sr(n);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,lo(r,"rgba")},t.prototype.traverse=function(e,n){},t.prototype.attrKV=function(e,n){e==="textConfig"?this.setTextConfig(n):e==="textContent"?this.setTextContent(n):e==="clipPath"?this.setClipPath(n):e==="extra"?(this.extra=this.extra||{},st(this.extra,n)):this[e]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,n){if(typeof e=="string")this.attrKV(e,n);else if(St(e))for(var r=e,a=ae(r),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var n=this._normalState,r=0;r<this.animators.length;r++){var a=this.animators[r],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==c0)){var o=a.targetName,u=o?n[o]:n;a.saveTo(u)}}},t.prototype._innerSaveToNormal=function(e){var n=this._normalState;n||(n=this._normalState={}),e.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(e,n,h0)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var a=0;a<r.length;a++){var i=r[a];e[i]!=null&&!(i in n)&&(n[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var n=this.states;return n[e]||(n[e]={}),n[e]},t.prototype.clearStates=function(e){this.useState(c0,!1,e)},t.prototype.useState=function(e,n,r,a){var i=e===c0,o=this.hasState();if(!(!o&&i)){var u=this.currentStates,f=this.stateTransition;if(!(Xt(u,e)>=0&&(n||u.length===1))){var c;if(this.stateProxy&&!i&&(c=this.stateProxy(e)),c||(c=this.states&&this.states[e]),!c&&!i){Iv("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(c);var d=!!(c&&c.hoverLayer||a);d&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,c,this._normalState,n,!r&&!this.__inHover&&f&&f.duration>0,f);var v=this._textContent,p=this._textGuide;return v&&v.useState(e,n,r,d),p&&p.useState(e,n,r,d),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~lr),c}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,u=o===i.length;if(u){for(var f=0;f<o;f++)if(e[f]!==i[f]){u=!1;break}}if(u)return;for(var f=0;f<o;f++){var c=e[f],d=void 0;this.stateProxy&&(d=this.stateProxy(c,e)),d||(d=this.states[c]),d&&a.push(d)}var v=a[o-1],p=!!(v&&v.hoverLayer||r);p&&this._toggleHoverLayerFlag(!0);var g=this._mergeStates(a),y=this.stateTransition;this.saveCurrentToNormalState(g),this._applyStateObj(e.join(","),g,this._normalState,!1,!n&&!this.__inHover&&y&&y.duration>0,y);var _=this._textContent,S=this._textGuide;_&&_.useStates(e,n,p),S&&S.useStates(e,n,p),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~lr)}},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=Xt(this.currentStates,e);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},t.prototype.replaceState=function(e,n,r){var a=this.currentStates.slice(),i=Xt(a,e),o=Xt(a,n)>=0;i>=0?o?a.splice(i,1):a[i]=n:r&&!o&&a.push(n),this.useStates(a)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,a=0;a<e.length;a++){var i=e[a];st(n,i),i.textConfig&&(r=r||{},st(r,i.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,a,i,o){var u=!(n&&a);n&&n.textConfig?(this.textConfig=st({},a?this.textConfig:r.textConfig),st(this.textConfig,n.textConfig)):u&&r.textConfig&&(this.textConfig=r.textConfig);for(var f={},c=!1,d=0;d<h0.length;d++){var v=h0[d],p=i&&aB[v];n&&n[v]!=null?p?(c=!0,f[v]=n[v]):this[v]=n[v]:u&&r[v]!=null&&(p?(c=!0,f[v]=r[v]):this[v]=r[v])}if(!i)for(var d=0;d<this.animators.length;d++){var g=this.animators[d],y=g.targetName;g.getLoop()||g.__changeFinalValue(y?(n||r)[y]:n||r)}c&&this._transitionState(e,f,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var n=this.__zr;n&&e.addSelfToZr(n),e.__zr=n,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var n=this._textContent;n!==e&&(n&&n!==e&&this.removeTextContent(),e.innerTransformable=new _S,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),st(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=lr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=e),r&&(r.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,n,r){var a=e?this[e]:this,i=new yS(a,n,r);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,n){var r=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(n)}).done(function(){var i=a.animators,o=Xt(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,n){for(var r=this.animators,a=r.length,i=[],o=0;o<a;o++){var u=r[o];!e||e===u.scope?u.stop(n):i.push(u)}return this.animators=i,this},t.prototype.animateTo=function(e,n,r){d0(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){d0(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,a){for(var i=d0(this,n,r,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=lr;function n(r,a,i,o){Object.defineProperty(e,r,{get:function(){if(!this[a]){var f=this[a]=[];u(this,f)}return this[a]},set:function(f){this[i]=f[0],this[o]=f[1],this[a]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[i]},set:function(d){f[i]=d}}),Object.defineProperty(c,1,{get:function(){return f[o]},set:function(d){f[o]=d}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();Pr(Pv,ta);Pr(Pv,_S);function d0(t,e,n,r,a){n=n||{};var i=[];mR(t,"",t,e,n,r,i,a);var o=i.length,u=!1,f=n.done,c=n.aborted,d=function(){u=!0,o--,o<=0&&(u?f&&f():c&&c())},v=function(){o--,o<=0&&(u?f&&f():c&&c())};o||f&&f(),i.length>0&&n.during&&i[0].during(function(y,_){n.during(_)});for(var p=0;p<i.length;p++){var g=i[p];d&&g.done(d),v&&g.aborted(v),n.force&&g.duration(n.duration),g.start(n.easing)}return i}function v0(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function oB(t){return mn(t[0])}function lB(t,e,n){if(mn(e[n]))if(mn(t[n])||(t[n]=[]),En(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),v0(t[n],e[n],r))}else{var a=e[n],i=t[n],o=a.length;if(oB(a))for(var u=a[0].length,f=0;f<o;f++)i[f]?v0(i[f],a[f],u):i[f]=Array.prototype.slice.call(a[f]);else v0(i,a,o);i.length=a.length}else t[n]=e[n]}function sB(t,e){return t===e||mn(t)&&mn(e)&&uB(t,e)}function uB(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 mR(t,e,n,r,a,i,o,u){for(var f=ae(r),c=a.duration,d=a.delay,v=a.additive,p=a.setToFinal,g=!St(i),y=t.animators,_=[],S=0;S<f.length;S++){var x=f[S],M=r[x];if(M!=null&&n[x]!=null&&(g||i[x]))if(St(M)&&!mn(M)&&!ic(M)){if(e){u||(n[x]=M,t.updateDuringAnimation(e));continue}mR(t,x,n[x],M,a,i&&i[x],o,u)}else _.push(x);else u||(n[x]=M,t.updateDuringAnimation(e),_.push(x))}var C=_.length;if(!v&&C)for(var T=0;T<y.length;T++){var R=y[T];if(R.targetName===e){var D=R.stopTracks(_);if(D){var E=Xt(y,R);y.splice(E,1)}}}if(a.force||(_=Oe(_,function(L){return!sB(r[L],n[L])}),C=_.length),C>0||a.force&&!o.length){var z=void 0,I=void 0,N=void 0;if(u){I={},p&&(z={});for(var T=0;T<C;T++){var x=_[T];I[x]=n[x],p?z[x]=r[x]:n[x]=r[x]}}else if(p){N={};for(var T=0;T<C;T++){var x=_[T];N[x]=Tf(n[x]),lB(n,r,x)}}var R=new yS(n,!1,!1,v?Oe(y,function(F){return F.targetName===e}):null);R.targetName=e,a.scope&&(R.scope=a.scope),p&&z&&R.whenWithKeys(0,z,_),N&&R.whenWithKeys(0,N,_),R.whenWithKeys(c??500,u?I:r,_).delay(d||0),t.addAnimator(R,e),o.push(R)}}var ke=(function(t){ut(e,t);function e(n){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(n){return this._children[n]},e.prototype.childOfName=function(n){for(var r=this._children,a=0;a<r.length;a++)if(r[a].name===n)return r[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},e.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var a=this._children,i=a.indexOf(r);i>=0&&(a.splice(i,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var a=Xt(this._children,n);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(n,r){var a=this._children,i=a[r];if(n&&n!==this&&n.parent!==this&&n!==i){a[r]=n,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(n)}return this},e.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(n){var r=this.__zr,a=this._children,i=Xt(a,n);return i<0?this:(a.splice(i,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a<n.length;a++){var i=n[a];r&&i.removeSelfFromZr(r),i.parent=null}return n.length=0,this},e.prototype.eachChild=function(n,r){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];n.call(r,o,i)}return this},e.prototype.traverse=function(n,r){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=n.call(r,i);i.isGroup&&!o&&i.traverse(n,r)}return this},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.addSelfToZr(n)}},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.removeSelfFromZr(n)}},e.prototype.getBoundingRect=function(n){for(var r=new Kt(0,0,0,0),a=n||this._children,i=[],o=null,u=0;u<a.length;u++){var f=a[u];if(!(f.ignore||f.invisible)){var c=f.getBoundingRect(),d=f.getLocalTransform(i);d?(Kt.applyTransform(r,c,d),o=o||r.clone(),o.union(r)):(o=o||c.clone(),o.union(c))}}return o||r},e})(Pv);ke.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 Id={},Qo={};function fB(t){delete Qo[t]}function cB(t){if(!t)return!1;if(typeof t=="string")return Gf(t,1)<n_;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,a=0;a<r;a++)n+=Gf(e[a].color,1);return n/=r,n<n_}return!1}var hB=(function(){function t(e,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=e;var i=new w3,o=r.renderer||"canvas";Id[o]||(o=ae(Id)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var u=new Id[o](n,i,r,e),f=r.ssr||u.ssrOnly;this.storage=i,this.painter=u;var c=!Dt.node&&!Dt.worker&&!f?new eB(u.getViewportRoot(),u.root):null,d=r.useCoarsePointer,v=d==null||d==="auto"?Dt.touchEventsSupported:!!d,p=44,g;v&&(g=Pt(r.pointerSize,p)),this.handler=new rR(i,u,c,u.root,g),this.animation=new Z3({stage:{update:f?null:function(){return a._flush(!0)}}}),f||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,n),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=cB(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=Cs();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=Cs();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,n){if(!this._disposed)return this.handler.findHover(e,n)},t.prototype.on=function(e,n,r){return this._disposed||this.handler.on(e,n,r),this},t.prototype.off=function(e,n){this._disposed||this.handler.off(e,n)},t.prototype.trigger=function(e,n){this._disposed||this.handler.trigger(e,n)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),n=0;n<e.length;n++)e[n]instanceof ke&&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,fB(this.id))},t})();function i_(t,e){var n=new hB(uS(),t,e);return Qo[n.id]=n,n}function dB(t){t.dispose()}function vB(){for(var t in Qo)Qo.hasOwnProperty(t)&&Qo[t].dispose();Qo={}}function pB(t){return Qo[t]}function yR(t,e){Id[t]=e}var o_;function gB(t){if(typeof o_=="function")return o_(t)}function _R(t){o_=t}var mB="5.6.1";const yB=Object.freeze(Object.defineProperty({__proto__:null,dispose:dB,disposeAll:vB,getElementSSRData:gB,getInstance:pB,init:i_,registerPainter:yR,registerSSRDataGetter:_R,version:mB},Symbol.toStringTag,{value:"Module"}));var LC=1e-4,SR=20;function _B(t){return t.replace(/^\s+|\s+$/g,"")}function $e(t,e,n,r){var a=e[0],i=e[1],o=n[0],u=n[1],f=i-a,c=u-o;if(f===0)return c===0?o:(o+u)/2;if(r)if(f>0){if(t<=a)return o;if(t>=i)return u}else{if(t>=a)return o;if(t<=i)return u}else{if(t===a)return o;if(t===i)return u}return(t-a)/f*c+o}function de(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return pt(t)?_B(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Be(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),SR),t=(+t).toFixed(e),n?t:+t}function Ts(t){return t.sort(function(e,n){return e-n}),t}function va(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 bR(t)}function bR(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,a=n>0?n:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function xS(t,e){var n=Math.log,r=Math.LN10,a=Math.floor(n(t[1]-t[0])/r),i=Math.round(n(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function SB(t,e,n){if(!t[e])return 0;var r=xR(t,n);return r[e]||0}function xR(t,e){var n=Jr(t,function(g,y){return g+(isNaN(y)?0:y)},0);if(n===0)return[];for(var r=Math.pow(10,e),a=mt(t,function(g){return(isNaN(g)?0:g)/n*r*100}),i=r*100,o=mt(a,function(g){return Math.floor(g)}),u=Jr(o,function(g,y){return g+y},0),f=mt(a,function(g,y){return g-o[y]});u<i;){for(var c=Number.NEGATIVE_INFINITY,d=null,v=0,p=f.length;v<p;++v)f[v]>c&&(c=f[v],d=v);++o[d],f[d]=0,++u}return mt(o,function(g){return g/r})}function bB(t,e){var n=Math.max(va(t),va(e)),r=t+e;return n>SR?r:Be(r,n)}var xB=9007199254740991;function wS(t){var e=Math.PI*2;return(t%e+e)%e}function Uf(t){return t>-LC&&t<LC}var wB=/^(?:(\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 Br(t){if(t instanceof Date)return t;if(pt(t)){var e=wB.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 wR(t){return Math.pow(10,Hv(t))}function Hv(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 MS(t,e){var n=Hv(t),r=Math.pow(10,n),a=t/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,t=i*r,n>=-20?+t.toFixed(n<0?-n:0):t}function MB(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),a=+t[r-1],i=n-r;return i?a+i*(t[r]-a):a}function CB(t){t.sort(function(f,c){return u(f,c,0)?-1:1});for(var e=-1/0,n=1,r=0;r<t.length;){for(var a=t[r].interval,i=t[r].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-n),e=a[o],n=i[o];a[0]===a[1]&&i[0]*i[1]!==1?t.splice(r,1):r++}return t;function u(f,c,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 jf(t){var e=parseFloat(t);return e==t&&(e!==0||!pt(t)||t.indexOf("x")<=0)?e:NaN}function MR(t){return!isNaN(jf(t))}function CR(){return Math.round(Math.random()*9)}function TR(t,e){return e===0?t:TR(e,t%e)}function OC(t,e){return t==null?e:e==null?t:t*e/TR(t,e)}function Yn(t){throw new Error(t)}function zC(t,e,n){return(e-t)*n+t}var AR="series\0",TB="\0_ec_\0";function We(t){return t instanceof Array?t:t==null?[]:[t]}function l_(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,a=n.length;r<a;r++){var i=n[r];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var NC=["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 fc(t){return St(t)&&!ct(t)&&!(t instanceof Date)?t.value:t}function AB(t){return St(t)&&!(t instanceof Array)}function DR(t,e,n){var r=n==="normalMerge",a=n==="replaceMerge",i=n==="replaceAll";t=t||[],e=(e||[]).slice();var o=wt();P(e,function(f,c){if(!St(f)){e[c]=null;return}});var u=DB(t,o,n);return(r||a)&&RB(u,t,o,e),r&&EB(u,e),r||a?LB(u,e,a):i&&OB(u,e),zB(u),u}function DB(t,e,n){var r=[];if(n==="replaceAll")return r;for(var a=0;a<t.length;a++){var i=t[a];i&&i.id!=null&&e.set(i.id,a),r.push({existing:n==="replaceMerge"||Yf(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}function RB(t,e,n,r){P(r,function(a,i){if(!(!a||a.id==null)){var o=Af(a.id),u=n.get(o);if(u!=null){var f=t[u];ga(!f.newOption,'Duplicated option on id "'+o+'".'),f.newOption=a,f.existing=e[u],r[i]=null}}})}function EB(t,e){P(e,function(n,r){if(!(!n||n.name==null))for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(i.id==null||n.id==null)&&!Yf(n)&&!Yf(i)&&RR("name",i,n)){t[a].newOption=n,e[r]=null;return}}})}function LB(t,e,n){P(e,function(r){if(r){for(var a,i=0;(a=t[i])&&(a.newOption||Yf(a.existing)||a.existing&&r.id!=null&&!RR("id",r,a.existing));)i++;a?(a.newOption=r,a.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),i++}})}function OB(t,e){P(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function zB(t){var e=wt();P(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),P(t,function(n){var r=n.newOption;ga(!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={})}),P(t,function(n,r){var a=n.existing,i=n.newOption,o=n.keyInfo;if(St(i)){if(o.name=i.name!=null?Af(i.name):a?a.name:AR+r,a)o.id=Af(a.id);else if(i.id!=null)o.id=Af(i.id);else{var u=0;do o.id="\0"+o.name+"\0"+u++;while(e.get(o.id))}e.set(o.id,n)}})}function RR(t,e,n){var r=Xn(e[t],null),a=Xn(n[t],null);return r!=null&&a!=null&&r===a}function Af(t){return Xn(t,"")}function Xn(t,e){return t==null?e:pt(t)?t:ve(t)||Xd(t)?t+"":e}function CS(t){var e=t.name;return!!(e&&e.indexOf(AR))}function Yf(t){return t&&t.id!=null&&Af(t.id).indexOf(TB)===0}function NB(t,e,n){P(t,function(r){var a=r.newOption;St(a)&&(r.keyInfo.mainType=e,r.keyInfo.subType=IB(e,a,r.existing,n))})}function IB(t,e,n,r){var a=e.type?e.type:n?n.subType:r.determineSubType(t,e);return a}function fl(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return ct(e.dataIndex)?mt(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return ct(e.name)?mt(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function Me(){var t="__ec_inner_"+BB++;return function(e){return e[t]||(e[t]={})}}var BB=CR();function p0(t,e,n){var r=TS(e,n),a=r.mainTypeSpecified,i=r.queryOptionMap,o=r.others,u=o,f=n?n.defaultMainType:null;return!a&&f&&i.set(f,{}),i.each(function(c,d){var v=cc(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 TS(t,e){var n;if(pt(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var a=wt(),i={},o=!1;return P(n,function(u,f){if(f==="dataIndex"||f==="dataIndexInside"){i[f]=u;return}var c=f.match(/^(\w+)(Index|Id|Name)$/)||[],d=c[1],v=(c[2]||"").toLowerCase();if(!(!d||!v||e&&e.includeMainTypes&&Xt(e.includeMainTypes,d)<0)){o=o||!!d;var p=a.get(d)||a.set(d,{});p[v]=u}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Zn={useDefault:!0,enableAll:!1,enableNone:!1},kB={useDefault:!1,enableAll:!0,enableNone:!0};function cc(t,e,n,r){r=r||Zn;var a=n.index,i=n.id,o=n.name,u={models:null,specified:a!=null||i!=null||o!=null};if(!u.specified){var f=void 0;return u.models=r.useDefault&&(f=t.getComponent(e))?[f]:[],u}return a==="none"||a===!1?(ga(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),u.models=[],u):(a==="all"&&(ga(r.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),u.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),u)}function ER(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function PB(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function HB(t){return t==="auto"?Dt.domSupported?"html":"richText":t||"html"}function FB(t,e,n,r,a){var i=e==null||e==="auto";if(r==null)return r;if(ve(r)){var o=zC(n||0,r,a);return Be(o,i?Math.max(va(n||0),va(r)):e)}else{if(pt(r))return a<1?n:r;for(var u=[],f=n,c=r,d=Math.max(f?f.length:0,c.length),v=0;v<d;++v){var p=t.getDimensionInfo(v);if(p&&p.type==="ordinal")u[v]=(a<1&&f?f:c)[v];else{var g=f&&f[v]?f[v]:0,y=c[v],o=zC(g,y,a);u[v]=Be(o,i?Math.max(va(g),va(y)):e)}}return u}}var VB=".",Io="___EC__COMPONENT__CONTAINER___",LR="___EC__EXTENDED_CLASS___";function pa(t){var e={main:"",sub:""};if(t){var n=t.split(VB);e.main=n[0]||"",e.sub=n[1]||""}return e}function GB(t){ga(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function UB(t){return!!(t&&t[LR])}function AS(t,e){t.$constructor=t,t.extend=function(n){var r=this,a;return jB(r)?a=(function(i){ut(o,i);function o(){return i.apply(this,arguments)||this}return o})(r):(a=function(){(n.$constructor||r).apply(this,arguments)},fS(a,this)),st(a.prototype,n),a[LR]=!0,a.extend=this.extend,a.superCall=XB,a.superApply=ZB,a.superClass=r,a}}function jB(t){return Rt(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function OR(t,e){t.extend=e.extend}var YB=Math.round(Math.random()*10);function qB(t){var e=["__\0is_clz",YB++].join("_");t.prototype[e]=!0,t.isInstance=function(n){return!!(n&&n[e])}}function XB(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 ZB(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Fv(t){var e={};t.registerClass=function(r){var a=r.type||r.prototype.type;if(a){GB(a),r.prototype.type=a;var i=pa(a);if(!i.sub)e[i.main]=r;else if(i.sub!==Io){var o=n(i);o[i.sub]=r}}return r},t.getClass=function(r,a,i){var o=e[r];if(o&&o[Io]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+r+"."+(a||"")+" is used but not imported.":r+".type should be specified.");return o},t.getClassesByMainType=function(r){var a=pa(r),i=[],o=e[a.main];return o&&o[Io]?P(o,function(u,f){f!==Io&&i.push(u)}):i.push(o),i},t.hasClass=function(r){var a=pa(r);return!!e[a.main]},t.getAllClassMainTypes=function(){var r=[];return P(e,function(a,i){r.push(i)}),r},t.hasSubTypes=function(r){var a=pa(r),i=e[a.main];return i&&i[Io]};function n(r){var a=e[r.main];return(!a||!a[Io])&&(a=e[r.main]={},a[Io]=!0),a}}function qf(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(r,a,i){for(var o={},u=0;u<t.length;u++){var f=t[u][1];if(!(a&&Xt(a,f)>=0||i&&Xt(i,f)<0)){var c=r.getShallow(f,e);c!=null&&(o[t[u][0]]=c)}}return o}}var $B=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],WB=qf($B),QB=(function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return WB(this,e,n)},t})(),s_=new uc(50);function KB(t){if(typeof t=="string"){var e=s_.get(t);return e&&e.image}else return t}function zR(t,e,n,r,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var i=s_.get(t),o={hostEl:n,cb:r,cbPayload:a};return i?(e=i.image,!Vv(e)&&i.pending.push(o)):(e=Ja.loadImage(t,IC,IC),e.__zrImageSrc=t,s_.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function IC(){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 Vv(t){return t&&t.width&&t.height}var g0=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function JB(t,e,n,r,a){var i={};return NR(i,t,e,n,r,a),i.text}function NR(t,e,n,r,a,i){if(!n){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
72
|
+
`);i=IR(n,r,a,i);for(var u=!1,f={},c=0,d=o.length;c<d;c++)BR(f,o[c],i),o[c]=f.textLine,u=u||f.isTruncated;t.text=o.join(`
|
|
73
|
+
`),t.isTruncated=u}function IR(t,e,n,r){r=r||{};var a=st({},r);a.font=e,n=Pt(n,"..."),a.maxIterations=Pt(r.maxIterations,2);var i=a.minChar=Pt(r.minChar,0);a.cnCharWidth=ur("国",e);var o=a.ascCharWidth=ur("a",e);a.placeholder=Pt(r.placeholder,"");for(var u=t=Math.max(0,t-1),f=0;f<i&&u>=o;f++)u-=o;var c=ur(n,e);return c>u&&(n="",c=0),u=t-c,a.ellipsis=n,a.ellipsisWidth=c,a.contentWidth=u,a.containerWidth=t,a}function BR(t,e,n){var r=n.containerWidth,a=n.font,i=n.contentWidth;if(!r){t.textLine="",t.isTruncated=!1;return}var o=ur(e,a);if(o<=r){t.textLine=e,t.isTruncated=!1;return}for(var u=0;;u++){if(o<=i||u>=n.maxIterations){e+=n.ellipsis;break}var f=u===0?tk(e,i,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,f),o=ur(e,a)}e===""&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function tk(t,e,n,r){for(var a=0,i=0,o=t.length;i<o&&a<e;i++){var u=t.charCodeAt(i);a+=0<=u&&u<=127?n:r}return i}function ek(t,e){t!=null&&(t+="");var n=e.overflow,r=e.padding,a=e.font,i=n==="truncate",o=bS(a),u=Pt(e.lineHeight,o),f=!!e.backgroundColor,c=e.lineOverflow==="truncate",d=!1,v=e.width,p;v!=null&&(n==="break"||n==="breakAll")?p=t?kR(t,e.font,v,n==="breakAll",0).lines:[]:p=t?t.split(`
|
|
74
|
+
`):[];var g=p.length*u,y=Pt(e.height,g);if(g>y&&c){var _=Math.floor(y/u);d=d||p.length>_,p=p.slice(0,_)}if(t&&i&&v!=null)for(var S=IR(v,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x={},M=0;M<p.length;M++)BR(x,p[M],S),p[M]=x.textLine,d=d||x.isTruncated;for(var C=y,T=0,M=0;M<p.length;M++)T=Math.max(ur(p[M],a),T);v==null&&(v=T);var R=T;return r&&(C+=r[0]+r[2],R+=r[1]+r[3],v+=r[1]+r[3]),f&&(R=v),{lines:p,height:y,outerWidth:R,outerHeight:C,lineHeight:u,calculatedLineHeight:o,contentWidth:T,contentHeight:g,width:v,isTruncated:d}}var nk=(function(){function t(){}return t})(),BC=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),rk=(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 ak(t,e){var n=new rk;if(t!=null&&(t+=""),!t)return n;for(var r=e.width,a=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:i==="breakAll"}:null,u=g0.lastIndex=0,f;(f=g0.exec(t))!=null;){var c=f.index;c>u&&m0(n,t.substring(u,c),e,o),m0(n,f[2],e,o,f[1]),u=g0.lastIndex}u<t.length&&m0(n,t.substring(u,t.length),e,o);var d=[],v=0,p=0,g=e.padding,y=i==="truncate",_=e.lineOverflow==="truncate",S={};function x(it,k,q){it.width=k,it.lineHeight=q,v+=q,p=Math.max(p,k)}t:for(var M=0;M<n.lines.length;M++){for(var C=n.lines[M],T=0,R=0,D=0;D<C.tokens.length;D++){var E=C.tokens[D],z=E.styleName&&e.rich[E.styleName]||{},I=E.textPadding=z.padding,N=I?I[1]+I[3]:0,L=E.font=z.font||e.font;E.contentHeight=bS(L);var F=Pt(z.height,E.contentHeight);if(E.innerHeight=F,I&&(F+=I[0]+I[2]),E.height=F,E.lineHeight=Ds(z.lineHeight,e.lineHeight,F),E.align=z&&z.align||e.align,E.verticalAlign=z&&z.verticalAlign||"middle",_&&a!=null&&v+E.lineHeight>a){var G=n.lines.length;D>0?(C.tokens=C.tokens.slice(0,D),x(C,R,T),n.lines=n.lines.slice(0,M+1)):n.lines=n.lines.slice(0,M),n.isTruncated=n.isTruncated||n.lines.length<G;break t}var Y=z.width,Z=Y==null||Y==="auto";if(typeof Y=="string"&&Y.charAt(Y.length-1)==="%")E.percentWidth=Y,d.push(E),E.contentWidth=ur(E.text,L);else{if(Z){var H=z.backgroundColor,X=H&&H.image;X&&(X=KB(X),Vv(X)&&(E.width=Math.max(E.width,X.width*F/X.height)))}var U=y&&r!=null?r-R:null;U!=null&&U<E.width?!Z||U<N?(E.text="",E.width=E.contentWidth=0):(NR(S,E.text,U-N,L,e.ellipsis,{minChar:e.truncateMinChar}),E.text=S.text,n.isTruncated=n.isTruncated||S.isTruncated,E.width=E.contentWidth=ur(E.text,L)):E.contentWidth=ur(E.text,L)}E.width+=N,R+=E.width,z&&(T=Math.max(T,E.lineHeight))}x(C,R,T)}n.outerWidth=n.width=Pt(r,p),n.outerHeight=n.height=Pt(a,v),n.contentHeight=v,n.contentWidth=p,g&&(n.outerWidth+=g[1]+g[3],n.outerHeight+=g[0]+g[2]);for(var M=0;M<d.length;M++){var E=d[M],W=E.percentWidth;E.width=parseInt(W,10)/100*n.width}return n}function m0(t,e,n,r,a){var i=e==="",o=a&&n.rich[a]||{},u=t.lines,f=o.font||n.font,c=!1,d,v;if(r){var p=o.padding,g=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var y=io(o.width,r.width)+g;u.length>0&&y+r.accumWidth>r.width&&(d=e.split(`
|
|
75
|
+
`),c=!0),r.accumWidth=y}else{var _=kR(e,f,r.width,r.breakAll,r.accumWidth);r.accumWidth=_.accumWidth+g,v=_.linesWidths,d=_.lines}}else d=e.split(`
|
|
76
|
+
`);for(var S=0;S<d.length;S++){var x=d[S],M=new nk;if(M.styleName=a,M.text=x,M.isLineHolder=!x&&!i,typeof o.width=="number"?M.width=o.width:M.width=v?v[S]:ur(x,f),!S&&!c){var C=(u[u.length-1]||(u[0]=new BC)).tokens,T=C.length;T===1&&C[0].isLineHolder?C[0]=M:(x||!T||i)&&C.push(M)}else u.push(new BC([M]))}}function ik(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var ok=Jr(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function lk(t){return ik(t)?!!ok[t]:!0}function kR(t,e,n,r,a){for(var i=[],o=[],u="",f="",c=0,d=0,v=0;v<t.length;v++){var p=t.charAt(v);if(p===`
|
|
77
|
+
`){f&&(u+=f,d+=c),i.push(u),o.push(d),u="",f="",c=0,d=0;continue}var g=ur(p,e),y=r?!1:!lk(p);if(i.length?d+g>n:a+d+g>n){d?(u||f)&&(y?(u||(u=f,f="",c=0,d=c),i.push(u),o.push(d-c),f+=p,c+=g,u="",d=c):(f&&(u+=f,f="",c=0),i.push(u),o.push(d),u=p,d=g)):y?(i.push(f),o.push(c),f=p,c=g):(i.push(p),o.push(g));continue}d+=g,y?(f+=p,c+=g):(f&&(u+=f,f="",c=0),u+=p)}return!i.length&&!u&&(u=t,f="",c=0),f&&(u+=f),u&&(i.push(u),o.push(d)),i.length===1&&(d+=a),{accumWidth:d,lines:i,linesWidths:o}}var u_="__zr_style_"+Math.round(Math.random()*10),al={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Gv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};al[u_]=!0;var kC=["z","z2","invisible"],sk=["invisible"],gl=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=ae(n),a=0;a<r.length;a++){var i=r[a];i==="style"?this.useStyle(n[i]):t.prototype.attrKV.call(this,i,n[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(n,r,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&uk(this,n,r)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var u=0;u<this.__clipPaths.length;++u)if(this.__clipPaths[u].isZeroArea())return!1}if(i&&this.parent)for(var f=this.parent;f;){if(f.ignore)return!1;f=f.parent}return!0},e.prototype.contain=function(n,r){return this.rectContain(n,r)},e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,u=i.shadowOffsetX||0,f=i.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Kt(0,0,0,0)),r?Kt.applyTransform(n,a,r):n.copy(a),(o||u||f)&&(n.width+=o*2+Math.abs(u),n.height+=o*2+Math.abs(f),n.x=Math.min(n.x,n.x+u-o),n.y=Math.min(n.y,n.y+f-o));var c=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-c),n.y=Math.floor(n.y-c),n.width=Math.ceil(n.width+1+c*2),n.height=Math.ceil(n.height+1+c*2))}return n},e.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Kt(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(n){return this.animate("style",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(n,r){n!=="style"?t.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:st(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=mf,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&mf)},e.prototype.styleUpdated=function(){this.__dirty&=~mf},e.prototype.createStyle=function(n){return oc(al,n)},e.prototype.useStyle=function(n){n[u_]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[u_]},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,kC)},e.prototype._applyStateObj=function(n,r,a,i,o,u){t.prototype._applyStateObj.call(this,n,r,a,i,o,u);var f=!(r&&i),c;if(r&&r.style?o?i?c=r.style:(c=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(c,r.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(c,r.style)):f&&(c=a.style),c)if(o){var d=this.style;if(this.style=this.createStyle(f?{}:d),f)for(var v=ae(d),p=0;p<v.length;p++){var g=v[p];g in c&&(c[g]=c[g],this.style[g]=d[g])}for(var y=ae(c),p=0;p<y.length;p++){var g=y[p];this.style[g]=this.style[g]}this._transitionState(n,{style:c},u,this.getAnimationStyleProps())}else this.useStyle(c);for(var _=this.__inHover?sk:kC,p=0;p<_.length;p++){var g=_[p];r&&r[g]!=null?this[g]=r[g]:f&&a[g]!=null&&(this[g]=a[g])}},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(r.style=a),r},e.prototype._mergeStyle=function(n,r){return st(n,r),n},e.prototype.getAnimationStyleProps=function(){return Gv},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=lr|mf})(),e})(Pv),y0=new Kt(0,0,0,0),_0=new Kt(0,0,0,0);function uk(t,e,n){return y0.copy(t.getBoundingRect()),t.transform&&y0.applyTransform(t.transform),_0.width=e,_0.height=n,!y0.intersect(_0)}var zr=Math.min,Nr=Math.max,S0=Math.sin,b0=Math.cos,Bo=Math.PI*2,Xh=pl(),Zh=pl(),$h=pl();function PC(t,e,n,r,a,i){a[0]=zr(t,n),a[1]=zr(e,r),i[0]=Nr(t,n),i[1]=Nr(e,r)}var HC=[],FC=[];function fk(t,e,n,r,a,i,o,u,f,c){var d=sR,v=on,p=d(t,n,a,o,HC);f[0]=1/0,f[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var g=0;g<p;g++){var y=v(t,n,a,o,HC[g]);f[0]=zr(y,f[0]),c[0]=Nr(y,c[0])}p=d(e,r,i,u,FC);for(var g=0;g<p;g++){var _=v(e,r,i,u,FC[g]);f[1]=zr(_,f[1]),c[1]=Nr(_,c[1])}f[0]=zr(t,f[0]),c[0]=Nr(t,c[0]),f[0]=zr(o,f[0]),c[0]=Nr(o,c[0]),f[1]=zr(e,f[1]),c[1]=Nr(e,c[1]),f[1]=zr(u,f[1]),c[1]=Nr(u,c[1])}function ck(t,e,n,r,a,i,o,u){var f=uR,c=jn,d=Nr(zr(f(t,n,a),1),0),v=Nr(zr(f(e,r,i),1),0),p=c(t,n,a,d),g=c(e,r,i,v);o[0]=zr(t,a,p),o[1]=zr(e,i,g),u[0]=Nr(t,a,p),u[1]=Nr(e,i,g)}function hk(t,e,n,r,a,i,o,u,f){var c=Gi,d=Ui,v=Math.abs(a-i);if(v%Bo<1e-4&&v>1e-4){u[0]=t-n,u[1]=e-r,f[0]=t+n,f[1]=e+r;return}if(Xh[0]=b0(a)*n+t,Xh[1]=S0(a)*r+e,Zh[0]=b0(i)*n+t,Zh[1]=S0(i)*r+e,c(u,Xh,Zh),d(f,Xh,Zh),a=a%Bo,a<0&&(a=a+Bo),i=i%Bo,i<0&&(i=i+Bo),a>i&&!o?i+=Bo:a<i&&o&&(a+=Bo),o){var p=i;i=a,a=p}for(var g=0;g<i;g+=Math.PI/2)g>a&&($h[0]=b0(g)*n+t,$h[1]=S0(g)*r+e,c(u,$h,u),d(f,$h,f))}var ie={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ko=[],Po=[],la=[],Oi=[],sa=[],ua=[],x0=Math.min,w0=Math.max,Ho=Math.cos,Fo=Math.sin,ja=Math.abs,f_=Math.PI,Fi=f_*2,M0=typeof Float32Array<"u",Qu=[];function C0(t){var e=Math.round(t/f_*1e8)/1e8;return e%2*f_}function PR(t,e){var n=C0(t[0]);n<0&&(n+=Fi);var r=n-t[0],a=t[1];a+=r,!e&&a-n>=Fi?a=n+Fi:e&&n-a>=Fi?a=n-Fi:!e&&n>a?a=n+(Fi-C0(n-a)):e&&n<a&&(a=n-(Fi-C0(a-n))),t[0]=n,t[1]=a}var cl=(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=ja(r/rv/e)||0,this._uy=ja(r/rv/n)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,n){return this._drawPendingPt(),this.addData(ie.M,e,n),this._ctx&&this._ctx.moveTo(e,n),this._x0=e,this._y0=n,this._xi=e,this._yi=n,this},t.prototype.lineTo=function(e,n){var r=ja(e-this._xi),a=ja(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(ie.L,e,n),this._ctx&&i&&this._ctx.lineTo(e,n),i)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,n,r,a,i,o){return this._drawPendingPt(),this.addData(ie.C,e,n,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,n,r,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,n,r,a){return this._drawPendingPt(),this.addData(ie.Q,e,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,n,r,a),this._xi=r,this._yi=a,this},t.prototype.arc=function(e,n,r,a,i,o){this._drawPendingPt(),Qu[0]=a,Qu[1]=i,PR(Qu,o),a=Qu[0],i=Qu[1];var u=i-a;return this.addData(ie.A,e,n,r,r,a,u,0,o?0:1),this._ctx&&this._ctx.arc(e,n,r,a,i,o),this._xi=Ho(i)*r+e,this._yi=Fo(i)*r+n,this},t.prototype.arcTo=function(e,n,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,a,i),this},t.prototype.rect=function(e,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,a),this.addData(ie.R,e,n,r,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ie.Z);var e=this._ctx,n=this._x0,r=this._y0;return e&&e.closePath(),this._xi=n,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var n=e.length;!(this.data&&this.data.length===n)&&M0&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=e[r];this._len=n},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var n=e.length,r=0,a=this._len,i=0;i<n;i++)r+=e[i].len();M0&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+r));for(var i=0;i<n;i++)for(var o=e[i].data,u=0;u<o.length;u++)this.data[a++]=o[u];this._len=a},t.prototype.addData=function(e,n,r,a,i,o,u,f,c){if(this._saveData){var 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,M0&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){la[0]=la[1]=sa[0]=sa[1]=Number.MAX_VALUE,Oi[0]=Oi[1]=ua[0]=ua[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,a=0,i=0,o;for(o=0;o<this._len;){var u=e[o++],f=o===1;switch(f&&(n=e[o],r=e[o+1],a=n,i=r),u){case ie.M:n=a=e[o++],r=i=e[o++],sa[0]=a,sa[1]=i,ua[0]=a,ua[1]=i;break;case ie.L:PC(n,r,e[o],e[o+1],sa,ua),n=e[o++],r=e[o++];break;case ie.C:fk(n,r,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],sa,ua),n=e[o++],r=e[o++];break;case ie.Q:ck(n,r,e[o++],e[o++],e[o],e[o+1],sa,ua),n=e[o++],r=e[o++];break;case ie.A:var c=e[o++],d=e[o++],v=e[o++],p=e[o++],g=e[o++],y=e[o++]+g;o+=1;var _=!e[o++];f&&(a=Ho(g)*v+c,i=Fo(g)*p+d),hk(c,d,v,p,g,y,_,sa,ua),n=Ho(y)*v+c,r=Fo(y)*p+d;break;case ie.R:a=n=e[o++],i=r=e[o++];var S=e[o++],x=e[o++];PC(a,i,a+S,i+x,sa,ua);break;case ie.Z:n=a,r=i;break}Gi(la,la,sa),Ui(Oi,Oi,ua)}return o===0&&(la[0]=la[1]=Oi[0]=Oi[1]=0),new Kt(la[0],la[1],Oi[0]-la[0],Oi[1]-la[1])},t.prototype._calculateLength=function(){var e=this.data,n=this._len,r=this._ux,a=this._uy,i=0,o=0,u=0,f=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,d=0,v=0,p=0;p<n;){var g=e[p++],y=p===1;y&&(i=e[p],o=e[p+1],u=i,f=o);var _=-1;switch(g){case ie.M:i=u=e[p++],o=f=e[p++];break;case ie.L:{var S=e[p++],x=e[p++],M=S-i,C=x-o;(ja(M)>r||ja(C)>a||p===n-1)&&(_=Math.sqrt(M*M+C*C),i=S,o=x);break}case ie.C:{var T=e[p++],R=e[p++],S=e[p++],x=e[p++],D=e[p++],E=e[p++];_=C3(i,o,T,R,S,x,D,E,10),i=D,o=E;break}case ie.Q:{var T=e[p++],R=e[p++],S=e[p++],x=e[p++];_=D3(i,o,T,R,S,x,10),i=S,o=x;break}case ie.A:var z=e[p++],I=e[p++],N=e[p++],L=e[p++],F=e[p++],G=e[p++],Y=G+F;p+=1,y&&(u=Ho(F)*N+z,f=Fo(F)*L+I),_=w0(N,L)*x0(Fi,Math.abs(G)),i=Ho(Y)*N+z,o=Fo(Y)*L+I;break;case ie.R:{u=i=e[p++],f=o=e[p++];var Z=e[p++],H=e[p++];_=Z*2+H*2;break}case ie.Z:{var M=u-i,C=f-o;_=Math.sqrt(M*M+C*C),i=u,o=f;break}}_>=0&&(c[v++]=_,d+=_)}return this._pathLen=d,d},t.prototype.rebuildPath=function(e,n){var r=this.data,a=this._ux,i=this._uy,o=this._len,u,f,c,d,v,p,g=n<1,y,_,S=0,x=0,M,C=0,T,R;if(!(g&&(this._pathSegLen||this._calculateLength(),y=this._pathSegLen,_=this._pathLen,M=n*_,!M)))t:for(var D=0;D<o;){var E=r[D++],z=D===1;switch(z&&(c=r[D],d=r[D+1],u=c,f=d),E!==ie.L&&C>0&&(e.lineTo(T,R),C=0),E){case ie.M:u=c=r[D++],f=d=r[D++],e.moveTo(c,d);break;case ie.L:{v=r[D++],p=r[D++];var I=ja(v-c),N=ja(p-d);if(I>a||N>i){if(g){var L=y[x++];if(S+L>M){var F=(M-S)/L;e.lineTo(c*(1-F)+v*F,d*(1-F)+p*F);break t}S+=L}e.lineTo(v,p),c=v,d=p,C=0}else{var G=I*I+N*N;G>C&&(T=v,R=p,C=G)}break}case ie.C:{var Y=r[D++],Z=r[D++],H=r[D++],X=r[D++],U=r[D++],W=r[D++];if(g){var L=y[x++];if(S+L>M){var F=(M-S)/L;ev(c,Y,H,U,F,ko),ev(d,Z,X,W,F,Po),e.bezierCurveTo(ko[1],Po[1],ko[2],Po[2],ko[3],Po[3]);break t}S+=L}e.bezierCurveTo(Y,Z,H,X,U,W),c=U,d=W;break}case ie.Q:{var Y=r[D++],Z=r[D++],H=r[D++],X=r[D++];if(g){var L=y[x++];if(S+L>M){var F=(M-S)/L;nv(c,Y,H,F,ko),nv(d,Z,X,F,Po),e.quadraticCurveTo(ko[1],Po[1],ko[2],Po[2]);break t}S+=L}e.quadraticCurveTo(Y,Z,H,X),c=H,d=X;break}case ie.A:var it=r[D++],k=r[D++],q=r[D++],rt=r[D++],lt=r[D++],ft=r[D++],gt=r[D++],At=!r[D++],Mt=q>rt?q:rt,Bt=ja(q-rt)>.001,le=lt+ft,yt=!1;if(g){var L=y[x++];S+L>M&&(le=lt+ft*(M-S)/L,yt=!0),S+=L}if(Bt&&e.ellipse?e.ellipse(it,k,q,rt,gt,lt,le,At):e.arc(it,k,Mt,lt,le,At),yt)break t;z&&(u=Ho(lt)*q+it,f=Fo(lt)*rt+k),c=Ho(le)*q+it,d=Fo(le)*rt+k;break;case ie.R:u=c=r[D],f=d=r[D+1],v=r[D++],p=r[D++];var Nt=r[D++],ge=r[D++];if(g){var L=y[x++];if(S+L>M){var ne=M-S;e.moveTo(v,p),e.lineTo(v+x0(ne,Nt),p),ne-=Nt,ne>0&&e.lineTo(v+Nt,p+x0(ne,ge)),ne-=ge,ne>0&&e.lineTo(v+w0(Nt-ne,0),p+ge),ne-=Nt,ne>0&&e.lineTo(v,p+w0(ge-ne,0));break t}S+=L}e.rect(v,p,Nt,ge);break;case ie.Z:if(g){var L=y[x++];if(S+L>M){var F=(M-S)/L;e.lineTo(c*(1-F)+u*F,d*(1-F)+f*F);break t}S+=L}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=ie,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function us(t,e,n,r,a,i,o){if(a===0)return!1;var u=a,f=0,c=t;if(o>e+u&&o>r+u||o<e-u&&o<r-u||i>t+u&&i>n+u||i<t-u&&i<n-u)return!1;if(t!==n)f=(e-r)/(t-n),c=(t*r-n*e)/(t-n);else return Math.abs(i-t)<=u/2;var d=f*i-o+c,v=d*d/(f*f+1);return v<=u/2*u/2}function dk(t,e,n,r,a,i,o,u,f,c,d){if(f===0)return!1;var v=f;if(d>e+v&&d>r+v&&d>i+v&&d>u+v||d<e-v&&d<r-v&&d<i-v&&d<u-v||c>t+v&&c>n+v&&c>a+v&&c>o+v||c<t-v&&c<n-v&&c<a-v&&c<o-v)return!1;var p=M3(t,e,n,r,a,i,o,u,c,d);return p<=v/2}function vk(t,e,n,r,a,i,o,u,f){if(o===0)return!1;var c=o;if(f>e+c&&f>r+c&&f>i+c||f<e-c&&f<r-c&&f<i-c||u>t+c&&u>n+c&&u>a+c||u<t-c&&u<n-c&&u<a-c)return!1;var d=A3(t,e,n,r,a,i,u,f);return d<=c/2}var VC=Math.PI*2;function Wh(t){return t%=VC,t<0&&(t+=VC),t}var Ku=Math.PI*2;function pk(t,e,n,r,a,i,o,u,f){if(o===0)return!1;var c=o;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-a)%Ku<1e-4)return!0;if(i){var v=r;r=Wh(a),a=Wh(v)}else r=Wh(r),a=Wh(a);r>a&&(a+=Ku);var p=Math.atan2(f,u);return p<0&&(p+=Ku),p>=r&&p<=a||p+Ku>=r&&p+Ku<=a}function Xa(t,e,n,r,a,i){if(i>e&&i>r||i<e&&i<r||r===e)return 0;var o=(i-e)/(r-e),u=r<e?1:-1;(o===1||o===0)&&(u=r<e?.5:-.5);var f=o*(n-t)+t;return f===a?1/0:f>a?u:0}var zi=cl.CMD,Vo=Math.PI*2,gk=1e-4;function mk(t,e){return Math.abs(t-e)<gk}var xn=[-1,-1,-1],Er=[-1,-1];function yk(){var t=Er[0];Er[0]=Er[1],Er[1]=t}function _k(t,e,n,r,a,i,o,u,f,c){if(c>e&&c>r&&c>i&&c>u||c<e&&c<r&&c<i&&c<u)return 0;var d=tv(e,r,i,u,c,xn);if(d===0)return 0;for(var v=0,p=-1,g=void 0,y=void 0,_=0;_<d;_++){var S=xn[_],x=S===0||S===1?.5:1,M=on(t,n,a,o,S);M<f||(p<0&&(p=sR(e,r,i,u,Er),Er[1]<Er[0]&&p>1&&yk(),g=on(e,r,i,u,Er[0]),p>1&&(y=on(e,r,i,u,Er[1]))),p===2?S<Er[0]?v+=g<e?x:-x:S<Er[1]?v+=y<g?x:-x:v+=u<y?x:-x:S<Er[0]?v+=g<e?x:-x:v+=u<g?x:-x)}return v}function Sk(t,e,n,r,a,i,o,u){if(u>e&&u>r&&u>i||u<e&&u<r&&u<i)return 0;var f=T3(e,r,i,u,xn);if(f===0)return 0;var c=uR(e,r,i);if(c>=0&&c<=1){for(var d=0,v=jn(e,r,i,c),p=0;p<f;p++){var g=xn[p]===0||xn[p]===1?.5:1,y=jn(t,n,a,xn[p]);y<o||(xn[p]<c?d+=v<e?g:-g:d+=i<v?g:-g)}return d}else{var g=xn[0]===0||xn[0]===1?.5:1,y=jn(t,n,a,xn[0]);return y<o?0:i<e?g:-g}}function bk(t,e,n,r,a,i,o,u){if(u-=e,u>n||u<-n)return 0;var f=Math.sqrt(n*n-u*u);xn[0]=-f,xn[1]=f;var c=Math.abs(r-a);if(c<1e-4)return 0;if(c>=Vo-1e-4){r=0,a=Vo;var d=i?1:-1;return o>=xn[0]+t&&o<=xn[1]+t?d:0}if(r>a){var v=r;r=a,a=v}r<0&&(r+=Vo,a+=Vo);for(var p=0,g=0;g<2;g++){var y=xn[g];if(y+t>o){var _=Math.atan2(u,y),d=i?1:-1;_<0&&(_=Vo+_),(_>=r&&_<=a||_+Vo>=r&&_+Vo<=a)&&(_>Math.PI/2&&_<Math.PI*1.5&&(d=-d),p+=d)}}return p}function HR(t,e,n,r,a){for(var i=t.data,o=t.len(),u=0,f=0,c=0,d=0,v=0,p,g,y=0;y<o;){var _=i[y++],S=y===1;switch(_===zi.M&&y>1&&(n||(u+=Xa(f,c,d,v,r,a))),S&&(f=i[y],c=i[y+1],d=f,v=c),_){case zi.M:d=i[y++],v=i[y++],f=d,c=v;break;case zi.L:if(n){if(us(f,c,i[y],i[y+1],e,r,a))return!0}else u+=Xa(f,c,i[y],i[y+1],r,a)||0;f=i[y++],c=i[y++];break;case zi.C:if(n){if(dk(f,c,i[y++],i[y++],i[y++],i[y++],i[y],i[y+1],e,r,a))return!0}else u+=_k(f,c,i[y++],i[y++],i[y++],i[y++],i[y],i[y+1],r,a)||0;f=i[y++],c=i[y++];break;case zi.Q:if(n){if(vk(f,c,i[y++],i[y++],i[y],i[y+1],e,r,a))return!0}else u+=Sk(f,c,i[y++],i[y++],i[y],i[y+1],r,a)||0;f=i[y++],c=i[y++];break;case zi.A:var x=i[y++],M=i[y++],C=i[y++],T=i[y++],R=i[y++],D=i[y++];y+=1;var E=!!(1-i[y++]);p=Math.cos(R)*C+x,g=Math.sin(R)*T+M,S?(d=p,v=g):u+=Xa(f,c,p,g,r,a);var z=(r-x)*T/C+x;if(n){if(pk(x,M,T,R,R+D,E,e,z,a))return!0}else u+=bk(x,M,T,R,R+D,E,z,a);f=Math.cos(R+D)*C+x,c=Math.sin(R+D)*T+M;break;case zi.R:d=f=i[y++],v=c=i[y++];var I=i[y++],N=i[y++];if(p=d+I,g=v+N,n){if(us(d,v,p,v,e,r,a)||us(p,v,p,g,e,r,a)||us(p,g,d,g,e,r,a)||us(d,g,d,v,e,r,a))return!0}else u+=Xa(p,v,p,g,r,a),u+=Xa(d,g,d,v,r,a);break;case zi.Z:if(n){if(us(f,c,d,v,e,r,a))return!0}else u+=Xa(f,c,d,v,r,a);f=d,c=v;break}}return!n&&!mk(c,v)&&(u+=Xa(f,c,d,v,r,a)||0),u!==0}function xk(t,e,n){return HR(t,0,!1,e,n)}function wk(t,e,n,r){return HR(t,e,!0,n,r)}var FR=Jt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},al),Mk={style:Jt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Gv.style)},T0=ma.concat(["invisible","culling","z","z2","zlevel","parent"]),oe=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(f){n.buildPath(f,n.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var u=0;u<T0.length;++u)a[T0[u]]=this[T0[u]];a.__dirty|=lr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=ae(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<r.length;i++){var o=r[i],u=n[o];o==="style"?this.style?st(this.style,u):this.useStyle(u):o==="shape"?st(this.shape,u):t.prototype.attrKV.call(this,o,u)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(pt(n)){var r=Gf(n,0);return r>.5?r_:r>.2?nB:a_}else if(n)return a_}return r_},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(pt(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Gf(n,0)<n_;if(i===o)return r}},e.prototype.buildPath=function(n,r,a){},e.prototype.pathUpdated=function(){this.__dirty&=~xs},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 cl(!1)},e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&xs)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var u=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){u.copy(n);var f=r.strokeNoScale?this.getLineScale():1,c=r.lineWidth;if(!this.hasFill()){var 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 a=this.transformCoordToLocal(n,r),i=this.getBoundingRect(),o=this.style;if(n=a[0],r=a[1],i.contain(n,r)){var u=this.path;if(this.hasStroke()){var f=o.lineWidth,c=o.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),wk(u,f/c,n,r)))return!0}if(this.hasFill())return xk(u,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=xs,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(n){return this.animate("shape",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):t.prototype.attrKV.call(this,n,r)},e.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:st(a,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&xs)},e.prototype.createStyle=function(n){return oc(FR,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=st({},this.shape))},e.prototype._applyStateObj=function(n,r,a,i,o,u){t.prototype._applyStateObj.call(this,n,r,a,i,o,u);var f=!(r&&i),c;if(r&&r.shape?o?i?c=r.shape:(c=st({},a.shape),st(c,r.shape)):(c=st({},i?this.shape:a.shape),st(c,r.shape)):f&&(c=a.shape),c)if(o){this.shape=st({},this.shape);for(var d={},v=ae(c),p=0;p<v.length;p++){var g=v[p];typeof c[g]=="object"?this.shape[g]=c[g]:d[g]=c[g]}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),a,i=0;i<n.length;i++){var o=n[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(r.shape=a),r},e.prototype.getAnimationStyleProps=function(){return Mk},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=(function(i){ut(o,i);function o(u){var f=i.call(this,u)||this;return n.init&&n.init.call(f,u),f}return o.prototype.getDefaultStyle=function(){return Ht(n.style)},o.prototype.getDefaultShape=function(){return Ht(n.shape)},o})(e);for(var a in n)typeof n[a]=="function"&&(r.prototype[a]=n[a]);return r},e.initDefaultProps=(function(){var n=e.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=lr|mf|xs})(),e})(gl),Ck=Jt({strokeFirst:!0,font:ul,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},FR),iv=(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 oc(Ck,n)},e.prototype.setBoundingRect=function(n){this._rect=n},e.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=SS(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var i=n.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=(function(){var n=e.prototype;n.dirtyRectTolerance=10})(),e})(gl);iv.prototype.type="tspan";var Tk=Jt({x:0,y:0},al),Ak={style:Jt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Gv.style)};function Dk(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var _a=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return oc(Tk,n)},e.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=Dk(r.image)?r.image:this.__image;if(!i)return 0;var o=n==="width"?"height":"width",u=r[o];return u==null?i[n]:i[n]/i[o]*u},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Ak},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Kt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e})(gl);_a.prototype.type="image";function Rk(t,e){var n=e.x,r=e.y,a=e.width,i=e.height,o=e.r,u,f,c,d;a<0&&(n=n+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?u=f=c=d=o:o instanceof Array?o.length===1?u=f=c=d=o[0]:o.length===2?(u=c=o[0],f=d=o[1]):o.length===3?(u=o[0],f=d=o[1],c=o[2]):(u=o[0],f=o[1],c=o[2],d=o[3]):u=f=c=d=0;var v;u+f>a&&(v=u+f,u*=a/v,f*=a/v),c+d>a&&(v=c+d,c*=a/v,d*=a/v),f+c>i&&(v=f+c,f*=i/v,c*=i/v),u+d>i&&(v=u+d,u*=i/v,d*=i/v),t.moveTo(n+u,r),t.lineTo(n+a-f,r),f!==0&&t.arc(n+a-f,r+f,f,-Math.PI/2,0),t.lineTo(n+a,r+i-c),c!==0&&t.arc(n+a-c,r+i-c,c,0,Math.PI/2),t.lineTo(n+d,r+i),d!==0&&t.arc(n+d,r+i-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 As=Math.round;function VR(t,e,n){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=r,t.x2=a,t.y1=i,t.y2=o;var u=n&&n.lineWidth;return u&&(As(r*2)===As(a*2)&&(t.x1=t.x2=Ko(r,u,!0)),As(i*2)===As(o*2)&&(t.y1=t.y2=Ko(i,u,!0))),t}}function GR(t,e,n){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;t.x=r,t.y=a,t.width=i,t.height=o;var u=n&&n.lineWidth;return u&&(t.x=Ko(r,u,!0),t.y=Ko(a,u,!0),t.width=Math.max(Ko(r+i,u,!1)-t.x,i===0?0:1),t.height=Math.max(Ko(a+o,u,!1)-t.y,o===0?0:1)),t}}function Ko(t,e,n){if(!e)return t;var r=As(t*2);return(r+As(e))%2===0?r/2:(r+(n?1:-1))/2}var Ek=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),Lk={},we=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Ek},e.prototype.buildPath=function(n,r){var a,i,o,u;if(this.subPixelOptimize){var f=GR(Lk,r,this.style);a=f.x,i=f.y,o=f.width,u=f.height,f.r=r.r,r=f}else a=r.x,i=r.y,o=r.width,u=r.height;r.r?Rk(n,r):n.rect(a,i,o,u)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(oe);we.prototype.type="rect";var GC={fill:"#000"},UC=2,Ok={style:Jt({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},Gv.style)},Te=(function(t){ut(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=GC,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,kk(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 Kt(0,0,0,0),r=this._children,a=[],i=null,o=0;o<r.length;o++){var u=r[o],f=u.getBoundingRect(),c=u.getLocalTransform(a);c?(n.copy(f),n.applyTransform(c),i=i||n.clone(),i.union(n)):(i=i||f.clone(),i.union(f))}this._rect=i||n}return this._rect},e.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||GC},e.prototype.setTextContent=function(n){},e.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,i=n.rich||a&&{};return st(n,r),a&&i?(this._mergeRich(i,a),n.rich=i):i&&(n.rich=i),n},e.prototype._mergeRich=function(n,r){for(var a=ae(r),i=0;i<a.length;i++){var o=a[i];n[o]=n[o]||{},st(n[o],r[o])}},e.prototype.getAnimationStyleProps=function(){return Ok},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||ul,a=n.padding,i=WC(n),o=ek(i,n),u=A0(n),f=!!n.backgroundColor,c=o.outerHeight,d=o.outerWidth,v=o.contentWidth,p=o.lines,g=o.lineHeight,y=this._defaultStyle;this.isTruncated=!!o.isTruncated;var _=n.x||0,S=n.y||0,x=n.align||y.align||"left",M=n.verticalAlign||y.verticalAlign||"top",C=_,T=ws(S,o.contentHeight,M);if(u||a){var R=_f(_,d,x),D=ws(S,c,M);u&&this._renderBackground(n,n,R,D,d,c)}T+=g/2,a&&(C=$C(_,x,a),M==="top"?T+=a[0]:M==="bottom"&&(T-=a[2]));for(var E=0,z=!1,I=ZC("fill"in n?n.fill:(z=!0,y.fill)),N=XC("stroke"in n?n.stroke:!f&&(!y.autoStroke||z)?(E=UC,y.stroke):null),L=n.textShadowBlur>0,F=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),G=o.calculatedLineHeight,Y=0;Y<p.length;Y++){var Z=this._getOrCreateChild(iv),H=Z.createStyle();Z.useStyle(H),H.text=p[Y],H.x=C,H.y=T,H.textAlign=x,H.textBaseline="middle",H.opacity=n.opacity,H.strokeFirst=!0,L&&(H.shadowBlur=n.textShadowBlur||0,H.shadowColor=n.textShadowColor||"transparent",H.shadowOffsetX=n.textShadowOffsetX||0,H.shadowOffsetY=n.textShadowOffsetY||0),H.stroke=N,H.fill=I,N&&(H.lineWidth=n.lineWidth||E,H.lineDash=n.lineDash,H.lineDashOffset=n.lineDashOffset||0),H.font=r,YC(H,n),T+=g,F&&Z.setBoundingRect(new Kt(_f(H.x,v,H.textAlign),ws(H.y,G,H.textBaseline),v,G))}},e.prototype._updateRichTexts=function(){var n=this.style,r=WC(n),a=ak(r,n),i=a.width,o=a.outerWidth,u=a.outerHeight,f=n.padding,c=n.x||0,d=n.y||0,v=this._defaultStyle,p=n.align||v.align,g=n.verticalAlign||v.verticalAlign;this.isTruncated=!!a.isTruncated;var y=_f(c,o,p),_=ws(d,u,g),S=y,x=_;f&&(S+=f[3],x+=f[0]);var M=S+i;A0(n)&&this._renderBackground(n,n,y,_,o,u);for(var C=!!n.backgroundColor,T=0;T<a.lines.length;T++){for(var R=a.lines[T],D=R.tokens,E=D.length,z=R.lineHeight,I=R.width,N=0,L=S,F=M,G=E-1,Y=void 0;N<E&&(Y=D[N],!Y.align||Y.align==="left");)this._placeToken(Y,n,z,x,L,"left",C),I-=Y.width,L+=Y.width,N++;for(;G>=0&&(Y=D[G],Y.align==="right");)this._placeToken(Y,n,z,x,F,"right",C),I-=Y.width,F-=Y.width,G--;for(L+=(i-(L-S)-(M-F)-I)/2;N<=G;)Y=D[N],this._placeToken(Y,n,z,x,L+Y.width/2,"center",C),L+=Y.width,N++;x+=z}},e.prototype._placeToken=function(n,r,a,i,o,u,f){var c=r.rich[n.styleName]||{};c.text=n.text;var d=n.verticalAlign,v=i+a/2;d==="top"?v=i+n.height/2:d==="bottom"&&(v=i+a-n.height/2);var p=!n.isLineHolder&&A0(c);p&&this._renderBackground(c,r,u==="right"?o-n.width:u==="center"?o-n.width/2:o,v-n.height/2,n.width,n.height);var g=!!c.backgroundColor,y=n.textPadding;y&&(o=$C(o,u,y),v-=n.height/2-y[0]-n.innerHeight/2);var _=this._getOrCreateChild(iv),S=_.createStyle();_.useStyle(S);var x=this._defaultStyle,M=!1,C=0,T=ZC("fill"in c?c.fill:"fill"in r?r.fill:(M=!0,x.fill)),R=XC("stroke"in c?c.stroke:"stroke"in r?r.stroke:!g&&!f&&(!x.autoStroke||M)?(C=UC,x.stroke):null),D=c.textShadowBlur>0||r.textShadowBlur>0;S.text=n.text,S.x=o,S.y=v,D&&(S.shadowBlur=c.textShadowBlur||r.textShadowBlur||0,S.shadowColor=c.textShadowColor||r.textShadowColor||"transparent",S.shadowOffsetX=c.textShadowOffsetX||r.textShadowOffsetX||0,S.shadowOffsetY=c.textShadowOffsetY||r.textShadowOffsetY||0),S.textAlign=u,S.textBaseline="middle",S.font=n.font||ul,S.opacity=Ds(c.opacity,r.opacity,1),YC(S,c),R&&(S.lineWidth=Ds(c.lineWidth,r.lineWidth,C),S.lineDash=Pt(c.lineDash,r.lineDash),S.lineDashOffset=r.lineDashOffset||0,S.stroke=R),T&&(S.fill=T);var E=n.contentWidth,z=n.contentHeight;_.setBoundingRect(new Kt(_f(S.x,E,S.textAlign),ws(S.y,z,S.textBaseline),E,z))},e.prototype._renderBackground=function(n,r,a,i,o,u){var f=n.backgroundColor,c=n.borderWidth,d=n.borderColor,v=f&&f.image,p=f&&!v,g=n.borderRadius,y=this,_,S;if(p||n.lineHeight||c&&d){_=this._getOrCreateChild(we),_.useStyle(_.createStyle()),_.style.fill=null;var x=_.shape;x.x=a,x.y=i,x.width=o,x.height=u,x.r=g,_.dirtyShape()}if(p){var M=_.style;M.fill=f||null,M.fillOpacity=Pt(n.fillOpacity,1)}else if(v){S=this._getOrCreateChild(_a),S.onload=function(){y.dirtyStyle()};var C=S.style;C.image=f.image,C.x=a,C.y=i,C.width=o,C.height=u}if(c&&d){var M=_.style;M.lineWidth=c,M.stroke=d,M.strokeOpacity=Pt(n.strokeOpacity,1),M.lineDash=n.borderDash,M.lineDashOffset=n.borderDashOffset||0,_.strokeContainThreshold=0,_.hasFill()&&_.hasStroke()&&(M.strokeFirst=!0,M.lineWidth*=2)}var T=(_||S).style;T.shadowBlur=n.shadowBlur||0,T.shadowColor=n.shadowColor||"transparent",T.shadowOffsetX=n.shadowOffsetX||0,T.shadowOffsetY=n.shadowOffsetY||0,T.opacity=Ds(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return Bk(n)&&(r=[n.fontStyle,n.fontWeight,Ik(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Wr(r)||n.textFont||n.font},e})(gl),zk={left:!0,right:1,center:1},Nk={top:1,bottom:1,middle:1},jC=["fontStyle","fontWeight","fontSize","fontFamily"];function Ik(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?oS+"px":t+"px"}function YC(t,e){for(var n=0;n<jC.length;n++){var r=jC[n],a=e[r];a!=null&&(t[r]=a)}}function Bk(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function kk(t){return qC(t),P(t.rich,qC),t}function qC(t){if(t){t.font=Te.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||zk[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||Nk[n]?n:"top";var r=t.padding;r&&(t.padding=cS(t.padding))}}function XC(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function ZC(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function $C(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function WC(t){var e=t.text;return e!=null&&(e+=""),e}function A0(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var qt=Me(),Pk=function(t,e,n,r){if(r){var a=qt(r);a.dataIndex=n,a.dataType=e,a.seriesIndex=t,a.ssrType="chart",r.type==="group"&&r.traverse(function(i){var o=qt(i);o.seriesIndex=t,o.dataIndex=n,o.dataType=e,o.ssrType="chart"})}},QC=1,KC={},UR=Me(),DS=Me(),RS=0,Uv=1,jv=2,kr=["emphasis","blur","select"],ov=["normal","emphasis","blur","select"],Hk=10,Fk=9,il="highlight",Bd="downplay",Df="select",kd="unselect",Rf="toggleSelect";function fs(t){return t!=null&&t!=="none"}function Yv(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function jR(t){Yv(t,"emphasis",jv)}function YR(t){t.hoverState===jv&&Yv(t,"normal",RS)}function ES(t){Yv(t,"blur",Uv)}function qR(t){t.hoverState===Uv&&Yv(t,"normal",RS)}function Vk(t){t.selected=!0}function Gk(t){t.selected=!1}function JC(t,e,n){e(t,n)}function ai(t,e,n){JC(t,e,n),t.isGroup&&t.traverse(function(r){JC(r,e,n)})}function tT(t,e){switch(e){case"emphasis":t.hoverState=jv;break;case"normal":t.hoverState=RS;break;case"blur":t.hoverState=Uv;break;case"select":t.selected=!0}}function Uk(t,e,n,r){for(var a=t.style,i={},o=0;o<e.length;o++){var u=e[o],f=a[u];i[u]=f??(r&&r[u])}for(var o=0;o<t.animators.length;o++){var c=t.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName==="style"&&c.saveTo(i,e)}return i}function jk(t,e,n,r){var a=n&&Xt(n,"select")>=0,i=!1;if(t instanceof oe){var o=UR(t),u=a&&o.selectFill||o.normalFill,f=a&&o.selectStroke||o.normalStroke;if(fs(u)||fs(f)){r=r||{};var c=r.style||{};c.fill==="inherit"?(i=!0,r=st({},r),c=st({},c),c.fill=u):!fs(c.fill)&&fs(u)?(i=!0,r=st({},r),c=st({},c),c.fill=Wy(u)):!fs(c.stroke)&&fs(f)&&(i||(r=st({},r),c=st({},c)),c.stroke=Wy(f)),r.style=c}}if(r&&r.z2==null){i||(r=st({},r));var d=t.z2EmphasisLift;r.z2=t.z2+(d??Hk)}return r}function Yk(t,e,n){if(n&&n.z2==null){n=st({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??Fk)}return n}function qk(t,e,n){var r=Xt(t.currentStates,e)>=0,a=t.style.opacity,i=r?null:Uk(t,["opacity"],e,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=st({},n),o=st({opacity:r?a:i.opacity*.1},o),n.style=o),n}function D0(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return jk(this,t,e,n);if(t==="blur")return qk(this,t,n);if(t==="select")return Yk(this,t,n)}return n}function Xk(t){t.stateProxy=D0;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=D0),n&&(n.stateProxy=D0)}function eT(t,e){!WR(t,e)&&!t.__highByOuter&&ai(t,jR)}function nT(t,e){!WR(t,e)&&!t.__highByOuter&&ai(t,YR)}function lv(t,e){t.__highByOuter|=1<<(e||0),ai(t,jR)}function sv(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ai(t,YR)}function Zk(t){ai(t,ES)}function XR(t){ai(t,qR)}function ZR(t){ai(t,Vk)}function $R(t){ai(t,Gk)}function WR(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function QR(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(a,i){var o=DS(i),u=a==="series",f=u?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!u&&r.push(f),o.isBlured&&(f.group.traverse(function(c){qR(c)}),u&&n.push(i)),o.isBlured=!1}),P(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,e)})}function c_(t,e,n,r){var a=r.getModel();n=n||"coordinateSystem";function i(c,d){for(var v=0;v<d.length;v++){var p=c.getItemGraphicEl(d[v]);p&&XR(p)}}if(t!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(t),u=o.coordinateSystem;u&&u.master&&(u=u.master);var f=[];a.eachSeries(function(c){var d=o===c,v=c.coordinateSystem;v&&v.master&&(v=v.master);var p=v&&u?v===u:d;if(!(n==="series"&&!d||n==="coordinateSystem"&&!p||e==="series"&&d)){var g=r.getViewOfSeriesModel(c);if(g.group.traverse(function(S){S.__highByOuter&&d&&e==="self"||ES(S)}),mn(e))i(c.getData(),e);else if(St(e))for(var y=ae(e),_=0;_<y.length;_++)i(c.getData(y[_]),e[y[_]]);f.push(c),DS(c).isBlured=!0}}),a.eachComponent(function(c,d){if(c!=="series"){var v=r.getViewOfComponentModel(d);v&&v.toggleBlurSeries&&v.toggleBlurSeries(f,!0,a)}})}}function h_(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){DS(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(i){ES(i)})}}}function $k(t,e,n){var r=t.seriesIndex,a=t.getData(e.dataType);if(a){var i=fl(a,e);i=(ct(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var u=a.count(),f=0;!o&&f<u;)o=a.getItemGraphicEl(f++);if(o){var c=qt(o);c_(r,c.focus,c.blurScope,n)}else{var d=t.get(["emphasis","focus"]),v=t.get(["emphasis","blurScope"]);d!=null&&c_(r,d,v,n)}}}function LS(t,e,n,r){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||n==null)return a;var i=r.getModel().getComponent(t,e);if(!i)return a;var o=r.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var u=o.findHighDownDispatchers(n),f,c=0;c<u.length;c++)if(qt(u[c]).focus==="self"){f=!0;break}return{focusSelf:f,dispatchers:u}}function Wk(t,e,n){var r=qt(t),a=LS(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=a.dispatchers,o=a.focusSelf;i?(o&&h_(r.componentMainType,r.componentIndex,n),P(i,function(u){return eT(u,e)})):(c_(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&h_(r.componentMainType,r.componentIndex,n),eT(t,e))}function Qk(t,e,n){QR(n);var r=qt(t),a=LS(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?P(a,function(i){return nT(i,e)}):nT(t,e)}function Kk(t,e,n){if(v_(e)){var r=e.dataType,a=t.getData(r),i=fl(a,e);ct(i)||(i=[i]),t[e.type===Rf?"toggleSelect":e.type===Df?"select":"unselect"](i,r)}}function rT(t){var e=t.getAllData();P(e,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?ZR(i):$R(i)})})}function Jk(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();P(r,function(a){a.data;var i=a.type,o=n.getSelectedDataIndices();if(o.length>0){var u={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(u.dataType=i),e.push(u)}})}),e}function Xf(t,e,n){KR(t,!0),ai(t,Xk),eP(t,e,n)}function tP(t){KR(t,!1)}function Zf(t,e,n,r){r?tP(t):Xf(t,e,n)}function eP(t,e,n){var r=qt(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var aT=["emphasis","blur","select"],nP={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function uv(t,e,n,r){n=n||"itemStyle";for(var a=0;a<aT.length;a++){var i=aT[a],o=e.getModel([i,n]),u=t.ensureState(i);u.style=o[nP[n]]()}}function KR(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 d_(t){return!!(t&&t.__highDownDispatcher)}function rP(t){var e=KC[t];return e==null&&QC<=32&&(e=KC[t]=QC++),e}function v_(t){var e=t.type;return e===Df||e===kd||e===Rf}function iT(t){var e=t.type;return e===il||e===Bd}function aP(t){var e=UR(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 cs=cl.CMD,iP=[[],[],[]],oT=Math.sqrt,oP=Math.atan2;function lP(t,e){if(e){var n=t.data,r=t.len(),a,i,o,u,f,c,d=cs.M,v=cs.C,p=cs.L,g=cs.R,y=cs.A,_=cs.Q;for(o=0,u=0;o<r;){switch(a=n[o++],u=o,i=0,a){case d:i=1;break;case p:i=1;break;case v:i=3;break;case _:i=2;break;case y:var S=e[4],x=e[5],M=oT(e[0]*e[0]+e[1]*e[1]),C=oT(e[2]*e[2]+e[3]*e[3]),T=oP(-e[1]/C,e[0]/M);n[o]*=M,n[o++]+=S,n[o]*=C,n[o++]+=x,n[o++]*=M,n[o++]*=C,n[o++]+=T,n[o++]+=T,o+=2,u=o;break;case g:c[0]=n[o++],c[1]=n[o++],An(c,c,e),n[u++]=c[0],n[u++]=c[1],c[0]+=n[o++],c[1]+=n[o++],An(c,c,e),n[u++]=c[0],n[u++]=c[1]}for(f=0;f<i;f++){var R=iP[f];R[0]=n[o++],R[1]=n[o++],An(R,R,e),n[u++]=R[0],n[u++]=R[1]}}t.increaseVersion()}}var R0=Math.sqrt,Qh=Math.sin,Kh=Math.cos,Ju=Math.PI;function lT(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function p_(t,e){return(t[0]*e[0]+t[1]*e[1])/(lT(t)*lT(e))}function sT(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(p_(t,e))}function uT(t,e,n,r,a,i,o,u,f,c,d){var v=f*(Ju/180),p=Kh(v)*(t-n)/2+Qh(v)*(e-r)/2,g=-1*Qh(v)*(t-n)/2+Kh(v)*(e-r)/2,y=p*p/(o*o)+g*g/(u*u);y>1&&(o*=R0(y),u*=R0(y));var _=(a===i?-1:1)*R0((o*o*(u*u)-o*o*(g*g)-u*u*(p*p))/(o*o*(g*g)+u*u*(p*p)))||0,S=_*o*g/u,x=_*-u*p/o,M=(t+n)/2+Kh(v)*S-Qh(v)*x,C=(e+r)/2+Qh(v)*S+Kh(v)*x,T=sT([1,0],[(p-S)/o,(g-x)/u]),R=[(p-S)/o,(g-x)/u],D=[(-1*p-S)/o,(-1*g-x)/u],E=sT(R,D);if(p_(R,D)<=-1&&(E=Ju),p_(R,D)>=1&&(E=0),E<0){var z=Math.round(E/Ju*1e6)/1e6;E=Ju*2+z%2*Ju}d.addData(c,M,C,o,u,T,E,v,i)}var sP=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,uP=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function fP(t){var e=new cl;if(!t)return e;var n=0,r=0,a=n,i=r,o,u=cl.CMD,f=t.match(sP);if(!f)return e;for(var c=0;c<f.length;c++){for(var d=f[c],v=d.charAt(0),p=void 0,g=d.match(uP)||[],y=g.length,_=0;_<y;_++)g[_]=parseFloat(g[_]);for(var S=0;S<y;){var x=void 0,M=void 0,C=void 0,T=void 0,R=void 0,D=void 0,E=void 0,z=n,I=r,N=void 0,L=void 0;switch(v){case"l":n+=g[S++],r+=g[S++],p=u.L,e.addData(p,n,r);break;case"L":n=g[S++],r=g[S++],p=u.L,e.addData(p,n,r);break;case"m":n+=g[S++],r+=g[S++],p=u.M,e.addData(p,n,r),a=n,i=r,v="l";break;case"M":n=g[S++],r=g[S++],p=u.M,e.addData(p,n,r),a=n,i=r,v="L";break;case"h":n+=g[S++],p=u.L,e.addData(p,n,r);break;case"H":n=g[S++],p=u.L,e.addData(p,n,r);break;case"v":r+=g[S++],p=u.L,e.addData(p,n,r);break;case"V":r=g[S++],p=u.L,e.addData(p,n,r);break;case"C":p=u.C,e.addData(p,g[S++],g[S++],g[S++],g[S++],g[S++],g[S++]),n=g[S-2],r=g[S-1];break;case"c":p=u.C,e.addData(p,g[S++]+n,g[S++]+r,g[S++]+n,g[S++]+r,g[S++]+n,g[S++]+r),n+=g[S-2],r+=g[S-1];break;case"S":x=n,M=r,N=e.len(),L=e.data,o===u.C&&(x+=n-L[N-4],M+=r-L[N-3]),p=u.C,z=g[S++],I=g[S++],n=g[S++],r=g[S++],e.addData(p,x,M,z,I,n,r);break;case"s":x=n,M=r,N=e.len(),L=e.data,o===u.C&&(x+=n-L[N-4],M+=r-L[N-3]),p=u.C,z=n+g[S++],I=r+g[S++],n+=g[S++],r+=g[S++],e.addData(p,x,M,z,I,n,r);break;case"Q":z=g[S++],I=g[S++],n=g[S++],r=g[S++],p=u.Q,e.addData(p,z,I,n,r);break;case"q":z=g[S++]+n,I=g[S++]+r,n+=g[S++],r+=g[S++],p=u.Q,e.addData(p,z,I,n,r);break;case"T":x=n,M=r,N=e.len(),L=e.data,o===u.Q&&(x+=n-L[N-4],M+=r-L[N-3]),n=g[S++],r=g[S++],p=u.Q,e.addData(p,x,M,n,r);break;case"t":x=n,M=r,N=e.len(),L=e.data,o===u.Q&&(x+=n-L[N-4],M+=r-L[N-3]),n+=g[S++],r+=g[S++],p=u.Q,e.addData(p,x,M,n,r);break;case"A":C=g[S++],T=g[S++],R=g[S++],D=g[S++],E=g[S++],z=n,I=r,n=g[S++],r=g[S++],p=u.A,uT(z,I,n,r,D,E,C,T,R,p,e);break;case"a":C=g[S++],T=g[S++],R=g[S++],D=g[S++],E=g[S++],z=n,I=r,n+=g[S++],r+=g[S++],p=u.A,uT(z,I,n,r,D,E,C,T,R,p,e);break}}(v==="z"||v==="Z")&&(p=u.Z,e.addData(p),n=a,r=i),o=p}return e.toStatic(),e}var JR=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e})(oe);function tE(t){return t.setData!=null}function eE(t,e){var n=fP(t),r=st({},e);return r.buildPath=function(a){if(tE(a)){a.setData(n.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;n.rebuildPath(i,1)}},r.applyTransform=function(a){lP(n,a),this.dirtyShape()},r}function cP(t,e){return new JR(eE(t,e))}function hP(t,e){var n=eE(t,e),r=(function(a){ut(i,a);function i(o){var u=a.call(this,o)||this;return u.applyTransform=n.applyTransform,u.buildPath=n.buildPath,u}return i})(JR);return r}function dP(t,e){for(var n=[],r=t.length,a=0;a<r;a++){var i=t[a];n.push(i.getUpdatedPathProxy(!0))}var o=new oe(e);return o.createPathProxy(),o.buildPath=function(u){if(tE(u)){u.appendPath(n);var f=u.getContext();f&&u.rebuildPath(f,1)}},o}var vP=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),hc=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new vP},e.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},e})(oe);hc.prototype.type="circle";var pP=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),qv=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new pP},e.prototype.buildPath=function(n,r){var a=.5522848,i=r.cx,o=r.cy,u=r.rx,f=r.ry,c=u*a,d=f*a;n.moveTo(i-u,o),n.bezierCurveTo(i-u,o-d,i-c,o-f,i,o-f),n.bezierCurveTo(i+c,o-f,i+u,o-d,i+u,o),n.bezierCurveTo(i+u,o+d,i+c,o+f,i,o+f),n.bezierCurveTo(i-c,o+f,i-u,o+d,i-u,o),n.closePath()},e})(oe);qv.prototype.type="ellipse";var nE=Math.PI,E0=nE*2,Go=Math.sin,hs=Math.cos,gP=Math.acos,cn=Math.atan2,fT=Math.abs,Ef=Math.sqrt,Sf=Math.max,fa=Math.min,Xr=1e-4;function mP(t,e,n,r,a,i,o,u){var f=n-t,c=r-e,d=o-a,v=u-i,p=v*f-d*c;if(!(p*p<Xr))return p=(d*(e-i)-v*(t-a))/p,[t+p*f,e+p*c]}function Jh(t,e,n,r,a,i,o){var u=t-n,f=e-r,c=(o?i:-i)/Ef(u*u+f*f),d=c*f,v=-c*u,p=t+d,g=e+v,y=n+d,_=r+v,S=(p+y)/2,x=(g+_)/2,M=y-p,C=_-g,T=M*M+C*C,R=a-i,D=p*_-y*g,E=(C<0?-1:1)*Ef(Sf(0,R*R*T-D*D)),z=(D*C-M*E)/T,I=(-D*M-C*E)/T,N=(D*C+M*E)/T,L=(-D*M+C*E)/T,F=z-S,G=I-x,Y=N-S,Z=L-x;return F*F+G*G>Y*Y+Z*Z&&(z=N,I=L),{cx:z,cy:I,x0:-d,y0:-v,x1:z*(a/R-1),y1:I*(a/R-1)}}function yP(t){var e;if(ct(t)){var n=t.length;if(!n)return t;n===1?e=[t[0],t[0],0,0]:n===2?e=[t[0],t[0],t[1],t[1]]:n===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function _P(t,e){var n,r=Sf(e.r,0),a=Sf(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var u=r;r=a,a=u}var f=e.startAngle,c=e.endAngle;if(!(isNaN(f)||isNaN(c))){var d=e.cx,v=e.cy,p=!!e.clockwise,g=fT(c-f),y=g>E0&&g%E0;if(y>Xr&&(g=y),!(r>Xr))t.moveTo(d,v);else if(g>E0-Xr)t.moveTo(d+r*hs(f),v+r*Go(f)),t.arc(d,v,r,f,c,!p),a>Xr&&(t.moveTo(d+a*hs(c),v+a*Go(c)),t.arc(d,v,a,c,f,p));else{var _=void 0,S=void 0,x=void 0,M=void 0,C=void 0,T=void 0,R=void 0,D=void 0,E=void 0,z=void 0,I=void 0,N=void 0,L=void 0,F=void 0,G=void 0,Y=void 0,Z=r*hs(f),H=r*Go(f),X=a*hs(c),U=a*Go(c),W=g>Xr;if(W){var it=e.cornerRadius;it&&(n=yP(it),_=n[0],S=n[1],x=n[2],M=n[3]);var k=fT(r-a)/2;if(C=fa(k,x),T=fa(k,M),R=fa(k,_),D=fa(k,S),I=E=Sf(C,T),N=z=Sf(R,D),(E>Xr||z>Xr)&&(L=r*hs(c),F=r*Go(c),G=a*hs(f),Y=a*Go(f),g<nE)){var q=mP(Z,H,G,Y,L,F,X,U);if(q){var rt=Z-q[0],lt=H-q[1],ft=L-q[0],gt=F-q[1],At=1/Go(gP((rt*ft+lt*gt)/(Ef(rt*rt+lt*lt)*Ef(ft*ft+gt*gt)))/2),Mt=Ef(q[0]*q[0]+q[1]*q[1]);I=fa(E,(r-Mt)/(At+1)),N=fa(z,(a-Mt)/(At-1))}}}if(!W)t.moveTo(d+Z,v+H);else if(I>Xr){var Bt=fa(x,I),le=fa(M,I),yt=Jh(G,Y,Z,H,r,Bt,p),Nt=Jh(L,F,X,U,r,le,p);t.moveTo(d+yt.cx+yt.x0,v+yt.cy+yt.y0),I<E&&Bt===le?t.arc(d+yt.cx,v+yt.cy,I,cn(yt.y0,yt.x0),cn(Nt.y0,Nt.x0),!p):(Bt>0&&t.arc(d+yt.cx,v+yt.cy,Bt,cn(yt.y0,yt.x0),cn(yt.y1,yt.x1),!p),t.arc(d,v,r,cn(yt.cy+yt.y1,yt.cx+yt.x1),cn(Nt.cy+Nt.y1,Nt.cx+Nt.x1),!p),le>0&&t.arc(d+Nt.cx,v+Nt.cy,le,cn(Nt.y1,Nt.x1),cn(Nt.y0,Nt.x0),!p))}else t.moveTo(d+Z,v+H),t.arc(d,v,r,f,c,!p);if(!(a>Xr)||!W)t.lineTo(d+X,v+U);else if(N>Xr){var Bt=fa(_,N),le=fa(S,N),yt=Jh(X,U,L,F,a,-le,p),Nt=Jh(Z,H,G,Y,a,-Bt,p);t.lineTo(d+yt.cx+yt.x0,v+yt.cy+yt.y0),N<z&&Bt===le?t.arc(d+yt.cx,v+yt.cy,N,cn(yt.y0,yt.x0),cn(Nt.y0,Nt.x0),!p):(le>0&&t.arc(d+yt.cx,v+yt.cy,le,cn(yt.y0,yt.x0),cn(yt.y1,yt.x1),!p),t.arc(d,v,a,cn(yt.cy+yt.y1,yt.cx+yt.x1),cn(Nt.cy+Nt.y1,Nt.cx+Nt.x1),p),Bt>0&&t.arc(d+Nt.cx,v+Nt.cy,Bt,cn(Nt.y1,Nt.x1),cn(Nt.y0,Nt.x0),!p))}else t.lineTo(d+X,v+U),t.arc(d,v,a,c,f,p)}t.closePath()}}}var SP=(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})(),ii=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new SP},e.prototype.buildPath=function(n,r){_P(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(oe);ii.prototype.type="sector";var bP=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),Xv=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new bP},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.PI*2;n.moveTo(a+r.r,i),n.arc(a,i,r.r,0,o,!1),n.moveTo(a+r.r0,i),n.arc(a,i,r.r0,0,o,!0)},e})(oe);Xv.prototype.type="ring";function xP(t,e,n,r){var a=[],i=[],o=[],u=[],f,c,d,v;if(r){d=[1/0,1/0],v=[-1/0,-1/0];for(var p=0,g=t.length;p<g;p++)Gi(d,d,t[p]),Ui(v,v,t[p]);Gi(d,d,r[0]),Ui(v,v,r[1])}for(var p=0,g=t.length;p<g;p++){var y=t[p];if(n)f=t[p?p-1:g-1],c=t[(p+1)%g];else if(p===0||p===g-1){a.push(W2(t[p]));continue}else f=t[p-1],c=t[p+1];Q2(i,c,f),Rd(i,i,e);var _=$d(y,f),S=$d(y,c),x=_+S;x!==0&&(_/=x,S/=x),Rd(o,i,-_),Rd(u,i,S);var M=Uy([],y,o),C=Uy([],y,u);r&&(Ui(M,M,d),Gi(M,M,v),Ui(C,C,d),Gi(C,C,v)),a.push(M),a.push(C)}return n&&a.push(a.shift()),a}function rE(t,e,n){var r=e.smooth,a=e.points;if(a&&a.length>=2){if(r){var i=xP(a,r,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,u=0;u<(n?o:o-1);u++){var f=i[u*2],c=i[u*2+1],d=a[(u+1)%o];t.bezierCurveTo(f[0],f[1],c[0],c[1],d[0],d[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var u=1,v=a.length;u<v;u++)t.lineTo(a[u][0],a[u][1])}n&&t.closePath()}}var wP=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),dc=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new wP},e.prototype.buildPath=function(n,r){rE(n,r,!0)},e})(oe);dc.prototype.type="polygon";var MP=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),ml=(function(t){ut(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new MP},e.prototype.buildPath=function(n,r){rE(n,r,!1)},e})(oe);ml.prototype.type="polyline";var CP={},TP=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),ti=(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 TP},e.prototype.buildPath=function(n,r){var a,i,o,u;if(this.subPixelOptimize){var f=VR(CP,r,this.style);a=f.x1,i=f.y1,o=f.x2,u=f.y2}else a=r.x1,i=r.y1,o=r.x2,u=r.y2;var c=r.percent;c!==0&&(n.moveTo(a,i),c<1&&(o=a*(1-c)+o*c,u=i*(1-c)+u*c),n.lineTo(o,u))},e.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},e})(oe);ti.prototype.type="line";var Vn=[],AP=(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 cT(t,e,n){var r=t.cpx2,a=t.cpy2;return r!=null||a!=null?[(n?mC:on)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?mC:on)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?yC:jn)(t.x1,t.cpx1,t.x2,e),(n?yC:jn)(t.y1,t.cpy1,t.y2,e)]}var Zv=(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 AP},e.prototype.buildPath=function(n,r){var a=r.x1,i=r.y1,o=r.x2,u=r.y2,f=r.cpx1,c=r.cpy1,d=r.cpx2,v=r.cpy2,p=r.percent;p!==0&&(n.moveTo(a,i),d==null||v==null?(p<1&&(nv(a,f,o,p,Vn),f=Vn[1],o=Vn[2],nv(i,c,u,p,Vn),c=Vn[1],u=Vn[2]),n.quadraticCurveTo(f,c,o,u)):(p<1&&(ev(a,f,d,o,p,Vn),f=Vn[1],d=Vn[2],o=Vn[3],ev(i,c,v,u,p,Vn),c=Vn[1],v=Vn[2],u=Vn[3]),n.bezierCurveTo(f,c,d,v,o,u)))},e.prototype.pointAt=function(n){return cT(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=cT(this.shape,n,!0);return K2(r,r)},e})(oe);Zv.prototype.type="bezier-curve";var DP=(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})(),vc=(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 DP},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r,0),u=r.startAngle,f=r.endAngle,c=r.clockwise,d=Math.cos(u),v=Math.sin(u);n.moveTo(d*o+a,v*o+i),n.arc(a,i,o,u,f,!c)},e})(oe);vc.prototype.type="arc";var aE=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="compound",n}return e.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),a=0;a<n.length;a++)r=r||n[a].shapeChanged();r&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(r[0],r[1],n[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(n,r){for(var a=r.paths||[],i=0;i<a.length;i++)a[i].buildPath(n,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),oe.prototype.getBoundingRect.call(this)},e})(oe),iE=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t})(),OS=(function(t){ut(e,t);function e(n,r,a,i,o,u){var f=t.call(this,o)||this;return f.x=n??0,f.y=r??0,f.x2=a??1,f.y2=i??0,f.type="linear",f.global=u||!1,f}return e})(iE),oE=(function(t){ut(e,t);function e(n,r,a,i,o){var u=t.call(this,i)||this;return u.x=n??.5,u.y=r??.5,u.r=a??.5,u.type="radial",u.global=o||!1,u}return e})(iE),Uo=[0,0],jo=[0,0],td=new Et,ed=new Et,fv=(function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Et;for(var r=0;r<2;r++)this._axes[r]=new Et;e&&this.fromBoundingRect(e,n)}return t.prototype.fromBoundingRect=function(e,n){var r=this._corners,a=this._axes,i=e.x,o=e.y,u=i+e.width,f=o+e.height;if(r[0].set(i,o),r[1].set(u,o),r[2].set(u,f),r[3].set(i,f),n)for(var c=0;c<4;c++)r[c].transform(n);Et.sub(a[0],r[1],r[0]),Et.sub(a[1],r[3],r[0]),a[0].normalize(),a[1].normalize();for(var c=0;c<2;c++)this._origin[c]=a[c].dot(r[0])},t.prototype.intersect=function(e,n){var r=!0,a=!n;return td.set(1/0,1/0),ed.set(0,0),!this._intersectCheckOneSide(this,e,td,ed,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(e,this,td,ed,a,-1)&&(r=!1,a)||a||Et.copy(n,r?td:ed),r},t.prototype._intersectCheckOneSide=function(e,n,r,a,i,o){for(var u=!0,f=0;f<2;f++){var c=this._axes[f];if(this._getProjMinMaxOnAxis(f,e._corners,Uo),this._getProjMinMaxOnAxis(f,n._corners,jo),Uo[1]<jo[0]||Uo[0]>jo[1]){if(u=!1,i)return u;var d=Math.abs(jo[0]-Uo[1]),v=Math.abs(Uo[0]-jo[1]);Math.min(d,v)>a.len()&&(d<v?Et.scale(a,c,-d*o):Et.scale(a,c,v*o))}else if(r){var d=Math.abs(jo[0]-Uo[1]),v=Math.abs(Uo[0]-jo[1]);Math.min(d,v)<r.len()&&(d<v?Et.scale(r,c,d*o):Et.scale(r,c,-v*o))}}return u},t.prototype._getProjMinMaxOnAxis=function(e,n,r){for(var a=this._axes[e],i=this._origin,o=n[0].dot(a)+i[e],u=o,f=o,c=1;c<n.length;c++){var d=n[c].dot(a)+i[e];u=Math.min(d,u),f=Math.max(d,f)}r[0]=u,r[1]=f},t})(),RP=[],lE=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},e.prototype.addDisplayables=function(n,r){r=r||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],r)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},e.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Kt(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var a=this._displayables[r],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(RP)),n.union(i)}this._rect=n}return this._rect},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var u=this._displayables[o];if(u.contain(n,r))return!0}return!1},e})(gl),EP=Me();function zS(t,e,n,r,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var u=e&&e.isAnimationEnabled(),f=t==="update";if(u){var c=void 0,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")),i&&(i.duration!=null&&(c=i.duration),i.easing!=null&&(d=i.easing),i.delay!=null&&(v=i.delay)),Rt(v)&&(v=v(n,a)),Rt(c)&&(c=c(n));var p={duration:c||0,delay:v,easing:d};return p}else return null}function NS(t,e,n,r,a,i,o){var u=!1,f;Rt(a)?(o=i,i=a,a=null):St(a)&&(i=a.cb,o=a.during,u=a.isFrom,f=a.removeOpt,a=a.dataIndex);var c=t==="leave";c||e.stopAnimation("leave");var d=zS(t,r,a,c?f||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(d&&d.duration>0){var v=d.duration,p=d.delay,g=d.easing,y={duration:v,delay:p||0,easing:g,done:i,force:!!i||!!o,setToFinal:!c,scope:t,during:o};u?e.animateFrom(n,y):e.animateTo(n,y)}else e.stopAnimation(),!u&&e.attr(n),o&&o(1),i&&i()}function sn(t,e,n,r,a,i){NS("update",t,e,n,r,a,i)}function fr(t,e,n,r,a,i){NS("enter",t,e,n,r,a,i)}function Lf(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 cv(t,e,n,r,a,i){Lf(t)||NS("leave",t,e,n,r,a,i)}function hT(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),cv(t,{style:{opacity:0}},e,n,r)}function hv(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||hT(a,e,n,r)}):hT(t,e,n,r)}function IS(t){EP(t).oldStyle=t.style}var dv=Math.max,vv=Math.min,g_={};function sE(t){return oe.extend(t)}var LP=hP;function uE(t,e){return LP(t,e)}function Hr(t,e){g_[t]=e}function BS(t){if(g_.hasOwnProperty(t))return g_[t]}function $v(t,e,n,r){var a=cP(t,e);return n&&(r==="center"&&(n=fE(n,a.getBoundingRect())),PS(a,n)),a}function kS(t,e,n){var r=new _a({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(n==="center"){var i={width:a.width,height:a.height};r.setStyle(fE(e,i))}}});return r}function fE(t,e){var n=e.width/e.height,r=t.height*n,a;r<=t.width?a=t.height:(r=t.width,a=r/n);var i=t.x+t.width/2,o=t.y+t.height/2;return{x:i-r/2,y:o-a/2,width:r,height:a}}var cE=dP;function PS(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function $f(t,e){return VR(t,t,{lineWidth:e}),t}function OP(t){return GR(t.shape,t.shape,t.style),t}var zP=Ko;function HS(t,e){for(var n=lc([]);t&&t!==e;)Ki(n,t.getLocalTransform(),n),t=t.parent;return n}function Wf(t,e,n){return e&&!mn(e)&&(e=_S.getLocalTransform(e)),n&&(e=sc([],e)),An([],t,e)}function hE(t,e,n){var r=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[t==="left"?-r:t==="right"?r:0,t==="top"?-a:t==="bottom"?a:0];return i=Wf(i,e,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function dT(t){return!t.isGroup}function NP(t){return t.shape!=null}function dE(t,e,n){if(!t||!e)return;function r(o){var u={};return o.traverse(function(f){dT(f)&&f.anid&&(u[f.anid]=f)}),u}function a(o){var u={x:o.x,y:o.y,rotation:o.rotation};return NP(o)&&(u.shape=st({},o.shape)),u}var i=r(t);e.traverse(function(o){if(dT(o)&&o.anid){var u=i[o.anid];if(u){var f=a(o);o.attr(a(u)),sn(o,f,n,qt(o).dataIndex)}}})}function vE(t,e){return mt(t,function(n){var r=n[0];r=dv(r,e.x),r=vv(r,e.x+e.width);var a=n[1];return a=dv(a,e.y),a=vv(a,e.y+e.height),[r,a]})}function pE(t,e){var n=dv(t.x,e.x),r=vv(t.x+t.width,e.x+e.width),a=dv(t.y,e.y),i=vv(t.y+t.height,e.y+e.height);if(r>=n&&i>=a)return{x:n,y:a,width:r-n,height:i-a}}function Wv(t,e,n){var r=st({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),Jt(a,n),new _a(r)):$v(t.replace("path://",""),r,n,"center")}function IP(t,e,n,r,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var u=a[i];if(gE(t,e,n,r,u[0],u[1],o[0],o[1]))return!0;o=u}}function gE(t,e,n,r,a,i,o,u){var f=n-t,c=r-e,d=o-a,v=u-i,p=L0(d,v,f,c);if(BP(p))return!1;var g=t-a,y=e-i,_=L0(g,y,f,c)/p;if(_<0||_>1)return!1;var S=L0(g,y,d,v)/p;return!(S<0||S>1)}function L0(t,e,n,r){return t*r-n*e}function BP(t){return t<=1e-6&&t>=-1e-6}function pc(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,a=pt(e)?{formatter:e}:e,i=n.mainType,o=n.componentIndex,u={componentType:i,name:r,$vars:["name"]};u[i+"Index"]=o;var f=t.formatterParamsExtra;f&&P(ae(f),function(d){zt(u,d)||(u[d]=f[d],u.$vars.push(d))});var c=qt(t.el);c.componentMainType=i,c.componentIndex=o,c.tooltipConfig={name:r,option:Jt({content:r,encodeHTMLContent:!0,formatterParams:u},a)}}function vT(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Qv(t,e){if(t)if(ct(t))for(var n=0;n<t.length;n++)vT(t[n],e);else vT(t,e)}Hr("circle",hc);Hr("ellipse",qv);Hr("sector",ii);Hr("ring",Xv);Hr("polygon",dc);Hr("polyline",ml);Hr("rect",we);Hr("line",ti);Hr("bezierCurve",Zv);Hr("arc",vc);const kP=Object.freeze(Object.defineProperty({__proto__:null,Arc:vc,BezierCurve:Zv,BoundingRect:Kt,Circle:hc,CompoundPath:aE,Ellipse:qv,Group:ke,Image:_a,IncrementalDisplayable:lE,Line:ti,LinearGradient:OS,OrientedBoundingRect:fv,Path:oe,Point:Et,Polygon:dc,Polyline:ml,RadialGradient:oE,Rect:we,Ring:Xv,Sector:ii,Text:Te,applyTransform:Wf,clipPointsByRect:vE,clipRectByRect:pE,createIcon:Wv,extendPath:uE,extendShape:sE,getShapeClass:BS,getTransform:HS,groupTransition:dE,initProps:fr,isElementRemoved:Lf,lineLineIntersect:gE,linePolygonIntersect:IP,makeImage:kS,makePath:$v,mergePath:cE,registerShape:Hr,removeElement:cv,removeElementWithFadeOut:hv,resizePath:PS,setTooltipConfig:pc,subPixelOptimize:zP,subPixelOptimizeLine:$f,subPixelOptimizeRect:OP,transformDirection:hE,traverseElements:Qv,updateProps:sn},Symbol.toStringTag,{value:"Module"}));var Kv={};function PP(t,e){for(var n=0;n<kr.length;n++){var r=kr[n],a=e[r],i=t.ensureState(r);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function pT(t,e,n){var r=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal,u;r&&(u=r.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),n!=null?{interpolatedValue:n}:null)),u==null&&(u=Rt(t.defaultText)?t.defaultText(a,t,n):t.defaultText);for(var f={normal:u},c=0;c<kr.length;c++){var d=kr[c],v=e[d];f[d]=Pt(r?r.getFormattedLabel(a,d,null,i,v&&v.get("formatter")):null,u)}return f}function gc(t,e,n,r){n=n||Kv;for(var a=t instanceof Te,i=!1,o=0;o<ov.length;o++){var u=e[ov[o]];if(u&&u.getShallow("show")){i=!0;break}}var f=a?t:t.getTextContent();if(i){a||(f||(f=new Te,t.setTextContent(f)),t.stateProxy&&(f.stateProxy=t.stateProxy));var c=pT(n,e),d=e.normal,v=!!d.getShallow("show"),p=ya(d,r&&r.normal,n,!1,!a);p.text=c.normal,a||t.setTextConfig(gT(d,n,!1));for(var o=0;o<kr.length;o++){var g=kr[o],u=e[g];if(u){var y=f.ensureState(g),_=!!Pt(u.getShallow("show"),v);if(_!==v&&(y.ignore=!_),y.style=ya(u,r&&r[g],n,!0,!a),y.style.text=c[g],!a){var S=t.ensureState(g);S.textConfig=gT(u,n,!0)}}}f.silent=!!d.getShallow("silent"),f.style.x!=null&&(p.x=f.style.x),f.style.y!=null&&(p.y=f.style.y),f.ignore=!v,f.useStyle(p),f.dirty(),n.enableTextSetter&&(Jv(f).setLabelText=function(x){var M=pT(n,e,x);PP(f,M)})}else f&&(f.ignore=!0);t.dirty()}function mc(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<kr.length;r++){var a=kr[r];n[a]=t.getModel([a,e])}return n}function ya(t,e,n,r,a){var i={};return HP(i,t,n,r,a),e&&st(i,e),i}function gT(t,e,n){e=e||{};var r={},a,i=t.getShallow("rotate"),o=Pt(t.getShallow("distance"),n?null:5),u=t.getShallow("offset");return a=t.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(r.position=a),u!=null&&(r.offset=u),i!=null&&(i*=Math.PI/180,r.rotation=i),o!=null&&(r.distance=o),r.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",r}function HP(t,e,n,r,a){n=n||Kv;var i=e.ecModel,o=i&&i.option.textStyle,u=FP(e),f;if(u){f={};for(var c in u)if(u.hasOwnProperty(c)){var d=e.getModel(["rich",c]);ST(f[c]={},d,o,n,r,a,!1,!0)}}f&&(t.rich=f);var v=e.get("overflow");v&&(t.overflow=v);var p=e.get("minMargin");p!=null&&(t.margin=p),ST(t,e,o,n,r,a,!0,!1)}function FP(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||Kv).rich;if(n){e=e||{};for(var r=ae(n),a=0;a<r.length;a++){var i=r[a];e[i]=1}}t=t.parentModel}return e}var mT=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],yT=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],_T=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ST(t,e,n,r,a,i,o,u){n=!a&&n||Kv;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),i||(c=c||n.color,d=d||n.textBorderColor),c!=null&&(t.fill=c),d!=null&&(t.stroke=d);var p=Pt(e.getShallow("textBorderWidth"),n.textBorderWidth);p!=null&&(t.lineWidth=p);var g=Pt(e.getShallow("textBorderType"),n.textBorderType);g!=null&&(t.lineDash=g);var y=Pt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);y!=null&&(t.lineDashOffset=y),!a&&v==null&&!u&&(v=r&&r.defaultOpacity),v!=null&&(t.opacity=v),!a&&!i&&t.fill==null&&r.inheritColor&&(t.fill=r.inheritColor);for(var _=0;_<mT.length;_++){var S=mT[_],x=Pt(e.getShallow(S),n[S]);x!=null&&(t[S]=x)}for(var _=0;_<yT.length;_++){var S=yT[_],x=e.getShallow(S);x!=null&&(t[S]=x)}if(t.verticalAlign==null){var M=e.getShallow("baseline");M!=null&&(t.verticalAlign=M)}if(!o||!r.disableBox){for(var _=0;_<_T.length;_++){var S=_T[_],x=e.getShallow(S);x!=null&&(t[S]=x)}var C=e.getShallow("borderType");C!=null&&(t.borderDash=C),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function VP(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 Jv=Me();function GP(t,e,n,r){if(t){var a=Jv(t);a.prevValue=a.value,a.value=n;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=r,a.statesModels=e)}}var UP=["textStyle","color"],O0=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],z0=new Te,jP=(function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(UP):null)},t.prototype.getFont=function(){return VP({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<O0.length;r++)n[O0[r]]=this.getShallow(O0[r]);return z0.useStyle(n),z0.update(),z0.getBoundingRect()},t})(),mE=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],YP=qf(mE),qP=(function(){function t(){}return t.prototype.getLineStyle=function(e){return YP(this,e)},t})(),yE=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],XP=qf(yE),ZP=(function(){function t(){}return t.prototype.getItemStyle=function(e,n){return XP(this,e,n)},t})(),xe=(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){Zt(this.option,e,!0)},t.prototype.get=function(e,n){return e==null?this.option:this._doGet(this.parsePath(e),!n&&this.parentModel)},t.prototype.getShallow=function(e,n){var r=this.option,a=r==null?r:r[e];if(a==null&&!n){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,n){var r=e!=null,a=r?this.parsePath(e):null,i=r?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(i,n,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Ht(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Dt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,n){var r=this.option;if(!e)return r;for(var a=0;a<e.length&&!(e[a]&&(r=r&&typeof r=="object"?r[e[a]]:null,r==null));a++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(e),n.parentModel)),r},t})();AS(xe);qB(xe);Pr(xe,qP);Pr(xe,ZP);Pr(xe,QB);Pr(xe,jP);var $P=Math.round(Math.random()*10);function tp(t){return[t||"",$P++].join("_")}function WP(t){var e={};t.registerSubTypeDefaulter=function(n,r){var a=pa(n);e[a.main]=r},t.determineSubType=function(n,r){var a=r.type;if(!a){var i=pa(n).main;t.hasSubTypes(n)&&e[i]&&(a=e[i](r))}return a}}function QP(t,e){t.topologicalTravel=function(i,o,u,f){if(!i.length)return;var c=n(o),d=c.graph,v=c.noEntryList,p={};for(P(i,function(M){p[M]=!0});v.length;){var g=v.pop(),y=d[g],_=!!p[g];_&&(u.call(f,g,y.originalDeps.slice()),delete p[g]),P(y.successor,_?x:S)}P(p,function(){var M="";throw new Error(M)});function S(M){d[M].entryCount--,d[M].entryCount===0&&v.push(M)}function x(M){p[M]=!0,S(M)}};function n(i){var o={},u=[];return P(i,function(f){var c=r(o,f),d=c.originalDeps=e(f),v=a(d,i);c.entryCount=v.length,c.entryCount===0&&u.push(f),P(v,function(p){Xt(c.predecessor,p)<0&&c.predecessor.push(p);var g=r(o,p);Xt(g.successor,p)<0&&g.successor.push(f)})}),{graph:o,noEntryList:u}}function r(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var u=[];return P(i,function(f){Xt(o,f)>=0&&u.push(f)}),u}}function ep(t,e){return Zt(Zt({},t,!0),e,!0)}const KP={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:". "}}}},JP={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 pv="ZH",FS="EN",Ls=FS,Pd={},VS={},_E=Dt.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ls).toUpperCase();return t.indexOf(pv)>-1?pv:Ls})():Ls;function GS(t,e){t=t.toUpperCase(),VS[t]=new xe(e),Pd[t]=e}function t4(t){if(pt(t)){var e=Pd[t.toUpperCase()]||{};return t===pv||t===FS?Ht(e):Zt(Ht(e),Ht(Pd[Ls]),!1)}else return Zt(Ht(t),Ht(Pd[Ls]),!1)}function e4(t){return VS[t]}function n4(){return VS[Ls]}GS(FS,KP);GS(pv,JP);var US=1e3,jS=US*60,Of=jS*60,Ir=Of*24,bT=Ir*365,bf={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}"},nd="{yyyy}-{MM}-{dd}",xT={year:"{yyyy}",month:"{yyyy}-{MM}",day:nd,hour:nd+" "+bf.hour,minute:nd+" "+bf.minute,second:nd+" "+bf.second,millisecond:bf.none},N0=["year","month","day","hour","minute","second","millisecond"],SE=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function wn(t,e){return t+="","0000".substr(0,e-t.length)+t}function Os(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 r4(t){return t===Os(t)}function a4(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function yc(t,e,n,r){var a=Br(t),i=a[YS(n)](),o=a[zs(n)]()+1,u=Math.floor((o-1)/3)+1,f=a[np(n)](),c=a["get"+(n?"UTC":"")+"Day"](),d=a[Qf(n)](),v=(d-1)%12+1,p=a[rp(n)](),g=a[ap(n)](),y=a[ip(n)](),_=d>=12?"pm":"am",S=_.toUpperCase(),x=r instanceof xe?r:e4(r||_E)||n4(),M=x.getModel("time"),C=M.get("month"),T=M.get("monthAbbr"),R=M.get("dayOfWeek"),D=M.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,_+"").replace(/{A}/g,S+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,wn(i%100+"",2)).replace(/{Q}/g,u+"").replace(/{MMMM}/g,C[o-1]).replace(/{MMM}/g,T[o-1]).replace(/{MM}/g,wn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,wn(f,2)).replace(/{d}/g,f+"").replace(/{eeee}/g,R[c]).replace(/{ee}/g,D[c]).replace(/{e}/g,c+"").replace(/{HH}/g,wn(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,wn(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,wn(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,wn(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,wn(y,3)).replace(/{S}/g,y+"")}function i4(t,e,n,r,a){var i=null;if(pt(n))i=n;else if(Rt(n))i=n(t.value,e,{level:t.level});else{var o=st({},bf);if(t.level>0)for(var u=0;u<N0.length;++u)o[N0[u]]="{primary|"+o[N0[u]]+"}";var f=n?n.inherit===!1?n:Jt(n,o):o,c=bE(t.value,a);if(f[c])i=f[c];else if(f.inherit){for(var d=SE.indexOf(c),u=d-1;u>=0;--u)if(f[c]){i=f[c];break}i=i||o.none}if(ct(i)){var v=t.level==null?0:t.level>=0?t.level:i.length+t.level;v=Math.min(v,i.length-1),i=i[v]}}return yc(new Date(t.value),i,a,r)}function bE(t,e){var n=Br(t),r=n[zs(e)]()+1,a=n[np(e)](),i=n[Qf(e)](),o=n[rp(e)](),u=n[ap(e)](),f=n[ip(e)](),c=f===0,d=c&&u===0,v=d&&o===0,p=v&&i===0,g=p&&a===1,y=g&&r===1;return y?"year":g?"month":p?"day":v?"hour":d?"minute":c?"second":"millisecond"}function wT(t,e,n){var r=ve(t)?Br(t):t;switch(e=e||bE(t,n),e){case"year":return r[YS(n)]();case"half-year":return r[zs(n)]()>=6?1:0;case"quarter":return Math.floor((r[zs(n)]()+1)/4);case"month":return r[zs(n)]();case"day":return r[np(n)]();case"half-day":return r[Qf(n)]()/24;case"hour":return r[Qf(n)]();case"minute":return r[rp(n)]();case"second":return r[ap(n)]();case"millisecond":return r[ip(n)]()}}function YS(t){return t?"getUTCFullYear":"getFullYear"}function zs(t){return t?"getUTCMonth":"getMonth"}function np(t){return t?"getUTCDate":"getDate"}function Qf(t){return t?"getUTCHours":"getHours"}function rp(t){return t?"getUTCMinutes":"getMinutes"}function ap(t){return t?"getUTCSeconds":"getSeconds"}function ip(t){return t?"getUTCMilliseconds":"getMilliseconds"}function o4(t){return t?"setUTCFullYear":"setFullYear"}function xE(t){return t?"setUTCMonth":"setMonth"}function wE(t){return t?"setUTCDate":"setDate"}function ME(t){return t?"setUTCHours":"setHours"}function CE(t){return t?"setUTCMinutes":"setMinutes"}function TE(t){return t?"setUTCSeconds":"setSeconds"}function AE(t){return t?"setUTCMilliseconds":"setMilliseconds"}function l4(t,e,n,r,a,i,o,u){var f=new Te({style:{text:t,font:e,align:n,verticalAlign:r,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:u}});return f.getBoundingRect()}function qS(t){if(!MR(t))return pt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function XS(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 _c=cS;function m_(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(d){return d&&Wr(d)?d:"-"}function i(d){return!!(d!=null&&!isNaN(d)&&isFinite(d))}var o=e==="time",u=t instanceof Date;if(o||u){var f=o?Br(t):t;if(isNaN(+f)){if(u)return"-"}else return yc(f,r,n)}if(e==="ordinal")return Xd(t)?a(t):ve(t)&&i(t)?t+"":"-";var c=jf(t);return i(c)?qS(c):Xd(t)?a(t):typeof t=="boolean"?t+"":"-"}var MT=["a","b","c","d","e","f","g"],I0=function(t,e){return"{"+t+(e??"")+"}"};function ZS(t,e,n){ct(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=MT[i];t=t.replace(I0(o),I0(o,0))}for(var u=0;u<r;u++)for(var f=0;f<a.length;f++){var c=e[u][a[f]];t=t.replace(I0(MT[f],u),n?Cn(c):c)}return t}function DE(t,e){var n=pt(t)?{color:t,extraCssText:e}:t||{},r=n.color,a=n.type;e=n.extraCssText;var i=n.renderMode||"html";if(!r)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Cn(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Cn(r)+";"+(e||"")+'"></span>';var o=n.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function s4(t,e,n){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
|
|
78
|
+
yyyy`);var r=Br(e),a=n?"getUTC":"get",i=r[a+"FullYear"](),o=r[a+"Month"]()+1,u=r[a+"Date"](),f=r[a+"Hours"](),c=r[a+"Minutes"](),d=r[a+"Seconds"](),v=r[a+"Milliseconds"]();return t=t.replace("MM",wn(o,2)).replace("M",o).replace("yyyy",i).replace("yy",wn(i%100+"",2)).replace("dd",wn(u,2)).replace("d",u).replace("hh",wn(f,2)).replace("h",f).replace("mm",wn(c,2)).replace("m",c).replace("ss",wn(d,2)).replace("s",d).replace("SSS",wn(v,3)),t}function u4(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function hl(t,e){return e=e||"transparent",pt(t)?t:St(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function CT(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Hd=P,RE=["left","right","top","bottom","width","height"],rd=[["width","left","right"],["height","top","bottom"]];function $S(t,e,n,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var u=0;e.eachChild(function(f,c){var d=f.getBoundingRect(),v=e.childAt(c+1),p=v&&v.getBoundingRect(),g,y;if(t==="horizontal"){var _=d.width+(p?-p.x+d.x:0);g=i+_,g>r||f.newline?(i=0,g=_,o+=u+n,u=d.height):u=Math.max(u,d.height)}else{var S=d.height+(p?-p.y+d.y:0);y=o+S,y>a||f.newline?(i+=u+n,o=0,y=S,u=d.width):u=Math.max(u,d.width)}f.newline||(f.x=i,f.y=o,f.markRedraw(),t==="horizontal"?i=g+n:o=y+n)})}var zf=$S;be($S,"vertical");be($S,"horizontal");function ei(t,e,n){n=_c(n||0);var r=e.width,a=e.height,i=de(t.left,r),o=de(t.top,a),u=de(t.right,r),f=de(t.bottom,a),c=de(t.width,r),d=de(t.height,a),v=n[2]+n[0],p=n[1]+n[3],g=t.aspect;switch(isNaN(c)&&(c=r-u-p-i),isNaN(d)&&(d=a-f-v-o),g!=null&&(isNaN(c)&&isNaN(d)&&(g>r/a?c=r*.8:d=a*.8),isNaN(c)&&(c=g*d),isNaN(d)&&(d=c/g)),isNaN(i)&&(i=r-u-c-p),isNaN(o)&&(o=a-f-d-v),t.left||t.right){case"center":i=r/2-c/2-n[3];break;case"right":i=r-c-p;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-d/2-n[0];break;case"bottom":o=a-d-v;break}i=i||0,o=o||0,isNaN(c)&&(c=r-p-i-(u||0)),isNaN(d)&&(d=a-v-o-(f||0));var y=new Kt(i+n[3],o+n[0],c,d);return y.margin=n,y}function f4(t,e,n,r,a,i){var o=!a||!a.hv||a.hv[0],u=!a||!a.hv||a.hv[1],f=a&&a.boundingMode||"all";if(i=i||t,i.x=t.x,i.y=t.y,!o&&!u)return!1;var c;if(f==="raw")c=t.type==="group"?new Kt(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(c=t.getBoundingRect(),t.needLocalTransform()){var d=t.getLocalTransform();c=c.clone(),c.applyTransform(d)}var v=ei(Jt({width:c.width,height:c.height},e),n,r),p=o?v.x-c.x:0,g=u?v.y-c.y:0;return f==="raw"?(i.x=p,i.y=g):(i.x+=p,i.y+=g),i===t&&t.markRedraw(),!0}function Kf(t){var e=t.layoutMode||t.constructor.layoutMode;return St(e)?e:e?{type:e}:null}function dl(t,e,n){var r=n&&n.ignoreSize;!ct(r)&&(r=[r,r]);var a=o(rd[0],0),i=o(rd[1],1);c(rd[0],t,a),c(rd[1],t,i);function o(d,v){var p={},g=0,y={},_=0,S=2;if(Hd(d,function(C){y[C]=t[C]}),Hd(d,function(C){u(e,C)&&(p[C]=y[C]=e[C]),f(p,C)&&g++,f(y,C)&&_++}),r[v])return f(e,d[1])?y[d[2]]=null:f(e,d[2])&&(y[d[1]]=null),y;if(_===S||!g)return y;if(g>=S)return p;for(var x=0;x<d.length;x++){var M=d[x];if(!u(p,M)&&u(t,M)){p[M]=t[M];break}}return p}function u(d,v){return d.hasOwnProperty(v)}function f(d,v){return d[v]!=null&&d[v]!=="auto"}function c(d,v,p){Hd(d,function(g){v[g]=p[g]})}}function Sc(t){return EE({},t)}function EE(t,e){return e&&t&&Hd(RE,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var c4=Me(),Qt=(function(t){ut(e,t);function e(n,r,a){var i=t.call(this,n,r,a)||this;return i.uid=tp("ec_cpt_model"),i}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=Kf(this),i=a?Sc(n):{},o=r.getTheme();Zt(n,o.get(this.mainType)),Zt(n,this.getDefaultOption()),a&&dl(n,i,a)},e.prototype.mergeOption=function(n,r){Zt(this.option,n,!0);var a=Kf(this);a&&dl(this.option,n,a)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!UB(n))return n.defaultOption;var r=c4(this);if(!r.defaultOption){for(var a=[],i=n;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var u={},f=a.length-1;f>=0;f--)u=Zt(u,a[f],!0);r.defaultOption=u}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return cc(this.ecModel,n,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(n){this.option.zlevel=n},e.protoInitialize=(function(){var n=e.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),e})(xe);OR(Qt,xe);Fv(Qt);WP(Qt);QP(Qt,h4);function h4(t){var e=[];return P(Qt.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=mt(e,function(n){return pa(n).main}),t!=="dataset"&&Xt(e,"dataset")<=0&&e.unshift("dataset"),e}var LE="";typeof navigator<"u"&&(LE=navigator.platform||"");var ds="rgba(0, 0, 0, 0.2)";const d4={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ds,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ds,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ds,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ds,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ds,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ds,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:LE.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 OE=wt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Fr="original",$n="arrayRows",ea="objectRows",Sa="keyedColumns",to="typedArray",zE="unknown",Ka="column",Vs="row",rn={Must:1,Might:2,Not:3},NE=Me();function v4(t){NE(t).datasetMap=wt()}function p4(t,e,n){var r={},a=WS(e);if(!a||!t)return r;var i=[],o=[],u=e.ecModel,f=NE(u).datasetMap,c=a.uid+"_"+n.seriesLayoutBy,d,v;t=t.slice(),P(t,function(_,S){var x=St(_)?_:t[S]={name:_};x.type==="ordinal"&&d==null&&(d=S,v=y(x)),r[x.name]=[]});var p=f.get(c)||f.set(c,{categoryWayDim:v,valueWayDim:0});P(t,function(_,S){var x=_.name,M=y(_);if(d==null){var C=p.valueWayDim;g(r[x],C,M),g(o,C,M),p.valueWayDim+=M}else if(d===S)g(r[x],0,M),g(i,0,M);else{var C=p.categoryWayDim;g(r[x],C,M),g(o,C,M),p.categoryWayDim+=M}});function g(_,S,x){for(var M=0;M<x;M++)_.push(S+M)}function y(_){var S=_.dimsDef;return S?S.length:1}return i.length&&(r.itemName=i),o.length&&(r.seriesName=o),r}function g4(t,e,n){var r={},a=WS(t);if(!a)return r;var i=e.sourceFormat,o=e.dimensionsDefine,u;(i===ea||i===Sa)&&P(o,function(d,v){(St(d)?d.name:d)==="name"&&(u=v)});var f=(function(){for(var d={},v={},p=[],g=0,y=Math.min(5,n);g<y;g++){var _=BE(e.data,i,e.seriesLayoutBy,o,e.startIndex,g);p.push(_);var S=_===rn.Not;if(S&&d.v==null&&g!==u&&(d.v=g),(d.n==null||d.n===d.v||!S&&p[d.n]===rn.Not)&&(d.n=g),x(d)&&p[d.n]!==rn.Not)return d;S||(_===rn.Might&&v.v==null&&g!==u&&(v.v=g),(v.n==null||v.n===v.v)&&(v.n=g))}function x(M){return M.v!=null&&M.n!=null}return x(d)?d:x(v)?v:null})();if(f){r.value=[f.v];var c=u??f.n;r.itemName=[c],r.seriesName=[c]}return r}function WS(t){var e=t.get("data",!0);if(!e)return cc(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Zn).models[0]}function m4(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:cc(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Zn).models}function IE(t,e){return BE(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function BE(t,e,n,r,a,i){var o,u=5;if(En(t))return rn.Not;var f,c;if(r){var d=r[i];St(d)?(f=d.name,c=d.type):pt(d)&&(f=d)}if(c!=null)return c==="ordinal"?rn.Must:rn.Not;if(e===$n){var v=t;if(n===Vs){for(var p=v[i],g=0;g<(p||[]).length&&g<u;g++)if((o=T(p[a+g]))!=null)return o}else for(var g=0;g<v.length&&g<u;g++){var y=v[a+g];if(y&&(o=T(y[i]))!=null)return o}}else if(e===ea){var _=t;if(!f)return rn.Not;for(var g=0;g<_.length&&g<u;g++){var S=_[g];if(S&&(o=T(S[f]))!=null)return o}}else if(e===Sa){var x=t;if(!f)return rn.Not;var p=x[f];if(!p||En(p))return rn.Not;for(var g=0;g<p.length&&g<u;g++)if((o=T(p[g]))!=null)return o}else if(e===Fr)for(var M=t,g=0;g<M.length&&g<u;g++){var S=M[g],C=fc(S);if(!ct(C))return rn.Not;if((o=T(C[i]))!=null)return o}function T(R){var D=pt(R);if(R!=null&&Number.isFinite(Number(R))&&R!=="")return D?rn.Might:rn.Not;if(D&&R!=="-")return rn.Must}return rn.Not}var y4=wt();function _4(t,e,n){var r=y4.get(e);if(!r)return n;var a=r(t);return a?n.concat(a):n}var TT=Me();Me();var QS=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var a=We(this.get("color",!0)),i=this.get("colorLayer",!0);return b4(this,TT,a,i,e,n,r)},t.prototype.clearColorPalette=function(){x4(this,TT)},t})();function S4(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 b4(t,e,n,r,a,i,o){i=i||t;var u=e(i),f=u.paletteIdx||0,c=u.paletteNameMap=u.paletteNameMap||{};if(c.hasOwnProperty(a))return c[a];var d=o==null||!r?n:S4(r,o);if(d=d||n,!(!d||!d.length)){var v=d[f];return a&&(c[a]=v),u.paletteIdx=(f+1)%d.length,v}}function x4(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var ad,tf,AT,DT="\0_ec_inner",w4=1,KS=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,a,i,o,u){i=i||{},this.option=null,this._theme=new xe(i),this._locale=new xe(o),this._optionManager=u},e.prototype.setOption=function(n,r,a){var i=LT(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(n,r){return this._resetOption(n,LT(r))},e.prototype._resetOption=function(n,r){var a=!1,i=this._optionManager;if(!n||n==="recreate"){var o=i.mountOption(n==="recreate");!this.option||n==="recreate"?AT(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var u=i.getTimelineOption(this);u&&(a=!0,this._mergeOption(u,r))}if(!n||n==="recreate"||n==="media"){var f=i.getMediaOption(this);f.length&&P(f,function(c){a=!0,this._mergeOption(c,r)},this)}return a},e.prototype.mergeOption=function(n){this._mergeOption(n,null)},e.prototype._mergeOption=function(n,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,u=[],f=wt(),c=r&&r.replaceMergeMainTypeMap;v4(this),P(n,function(v,p){v!=null&&(Qt.hasClass(p)?p&&(u.push(p),f.set(p,!0)):a[p]=a[p]==null?Ht(v):Zt(a[p],v,!0))}),c&&c.each(function(v,p){Qt.hasClass(p)&&!f.get(p)&&(u.push(p),f.set(p,!0))}),Qt.topologicalTravel(u,Qt.getAllClassMainTypes(),d,this);function d(v){var p=_4(this,v,We(n[v])),g=i.get(v),y=g?c&&c.get(v)?"replaceMerge":"normalMerge":"replaceAll",_=DR(g,p,y);NB(_,v,Qt),a[v]=null,i.set(v,null),o.set(v,0);var S=[],x=[],M=0,C;P(_,function(T,R){var D=T.existing,E=T.newOption;if(!E)D&&(D.mergeOption({},this),D.optionUpdated({},!1));else{var z=v==="series",I=Qt.getClass(v,T.keyInfo.subType,!z);if(!I)return;if(v==="tooltip"){if(C)return;C=!0}if(D&&D.constructor===I)D.name=T.keyInfo.name,D.mergeOption(E,this),D.optionUpdated(E,!1);else{var N=st({componentIndex:R},T.keyInfo);D=new I(E,this,this,N),st(D,N),T.brandNew&&(D.__requireNewView=!0),D.init(E,this,this),D.optionUpdated(null,!0)}}D?(S.push(D.option),x.push(D),M++):(S.push(void 0),x.push(void 0))},this),a[v]=S,i.set(v,x),o.set(v,M),v==="series"&&ad(this)}this._seriesIndices||ad(this)},e.prototype.getOption=function(){var n=Ht(this.option);return P(n,function(r,a){if(Qt.hasClass(a)){for(var i=We(r),o=i.length,u=!1,f=o-1;f>=0;f--)i[f]&&!Yf(i[f])?u=!0:(i[f]=null,!u&&o--);i.length=o,n[a]=i}}),delete n[DT],n},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(n){this._payload=n},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var a=n.index,i=n.id,o=n.name,u=this._componentsMap.get(r);if(!u||!u.length)return[];var f;return a!=null?(f=[],P(We(a),function(c){u[c]&&f.push(u[c])})):i!=null?f=RT("id",i,u):o!=null?f=RT("name",o,u):f=Oe(u,function(c){return!!c}),ET(f,n)},e.prototype.findComponents=function(n){var r=n.query,a=n.mainType,i=u(r),o=i?this.queryComponents(i):Oe(this._componentsMap.get(a),function(c){return!!c});return f(ET(o,n));function u(c){var d=a+"Index",v=a+"Id",p=a+"Name";return c&&(c[d]!=null||c[v]!=null||c[p]!=null)?{mainType:a,index:c[d],id:c[v],name:c[p]}:null}function f(c){return n.filter?Oe(c,n.filter):c}},e.prototype.eachComponent=function(n,r,a){var i=this._componentsMap;if(Rt(n)){var o=r,u=n;i.each(function(v,p){for(var g=0;v&&g<v.length;g++){var y=v[g];y&&u.call(o,p,y,y.componentIndex)}})}else for(var f=pt(n)?i.get(n):St(n)?this.findComponents(n):null,c=0;f&&c<f.length;c++){var d=f[c];d&&r.call(a,d,d.componentIndex)}},e.prototype.getSeriesByName=function(n){var r=Xn(n,null);return Oe(this._componentsMap.get("series"),function(a){return!!a&&r!=null&&a.name===r})},e.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},e.prototype.getSeriesByType=function(n){return Oe(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return Oe(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){tf(this),P(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];n.call(r,i,a)},this)},e.prototype.eachRawSeries=function(n,r){P(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,a){tf(this),P(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===n&&r.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(n,r,a){return P(this.getSeriesByType(n),r,a)},e.prototype.isSeriesFiltered=function(n){return tf(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){tf(this);var a=[];P(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=wt(a)},e.prototype.restoreData=function(n){ad(this);var r=this._componentsMap,a=[];r.each(function(i,o){Qt.hasClass(o)&&a.push(o)}),Qt.topologicalTravel(a,Qt.getAllClassMainTypes(),function(i){P(r.get(i),function(o){o&&(i!=="series"||!M4(o,n))&&o.restoreData()})})},e.internalField=(function(){ad=function(n){var r=n._seriesIndices=[];P(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=wt(r)},tf=function(n){},AT=function(n,r){n.option={},n.option[DT]=w4,n._componentsMap=wt({series:[]}),n._componentsCount=wt();var a=r.aria;St(a)&&a.enabled==null&&(a.enabled=!0),C4(r,n._theme.option),Zt(r,d4,!1),n._mergeOption(r,null)}})(),e})(xe);function M4(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,a=e.seriesName;return n!=null&&t.componentIndex!==n||r!=null&&t.id!==r||a!=null&&t.name!==a}}function C4(t,e){var n=t.color&&!t.colorLayer;P(e,function(r,a){a==="colorLayer"&&n||Qt.hasClass(a)||(typeof r=="object"?t[a]=t[a]?Zt(t[a],r,!1):Ht(r):t[a]==null&&(t[a]=r))})}function RT(t,e,n){if(ct(e)){var r=wt();return P(e,function(i){if(i!=null){var o=Xn(i,null);o!=null&&r.set(i,!0)}}),Oe(n,function(i){return i&&r.get(i[t])})}else{var a=Xn(e,null);return Oe(n,function(i){return i&&a!=null&&i[t]===a})}}function ET(t,e){return e.hasOwnProperty("subType")?Oe(t,function(n){return n&&n.subType===e.subType}):t}function LT(t){var e=wt();return t&&P(We(t.replaceMerge),function(n){e.set(n,!0)}),{replaceMergeMainTypeMap:e}}Pr(KS,QS);var T4=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],kE=(function(){function t(e){P(T4,function(n){this[n]=xt(e[n],e)},this)}return t})(),B0={},op=(function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,n){var r=[];P(B0,function(a,i){var o=a.create(e,n);r=r.concat(o||[])}),this._coordinateSystems=r},t.prototype.update=function(e,n){P(this._coordinateSystems,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,n){B0[e]=n},t.get=function(e){return B0[e]},t})(),A4=/^(min|max)?(.+)$/,D4=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(P(We(e.series),function(o){o&&o.data&&En(o.data)&&Zd(o.data)}),P(We(e.dataset),function(o){o&&o.source&&En(o.source)&&Zd(o.source)})),e=Ht(e);var a=this._optionBackup,i=R4(e,n,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Ht(e?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var n,r=this._timelineOptions;if(r.length){var a=e.getComponent("timeline");a&&(n=Ht(r[a.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(e){var n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],u=[];if(!a.length&&!i)return u;for(var f=0,c=a.length;f<c;f++)E4(a[f].query,n,r)&&o.push(f);return!o.length&&i&&(o=[-1]),o.length&&!O4(o,this._currentMediaIndices)&&(u=mt(o,function(d){return Ht(d===-1?i.option:a[d].option)})),this._currentMediaIndices=o,u},t})();function R4(t,e,n){var r=[],a,i,o=t.baseOption,u=t.timeline,f=t.options,c=t.media,d=!!t.media,v=!!(f||u||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=u)):((v||d)&&(t.options=t.media=null),i=t),d&&ct(c)&&P(c,function(g){g&&g.option&&(g.query?r.push(g):a||(a=g))}),p(i),P(f,function(g){return p(g)}),P(r,function(g){return p(g.option)});function p(g){P(e,function(y){y(g,n)})}return{baseOption:i,timelineOptions:f||[],mediaDefault:a,mediaList:r}}function E4(t,e,n){var r={width:e,height:n,aspectratio:e/n},a=!0;return P(t,function(i,o){var u=o.match(A4);if(!(!u||!u[1]||!u[2])){var f=u[1],c=u[2].toLowerCase();L4(r[c],i,f)||(a=!1)}}),a}function L4(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function O4(t,e){return t.join(",")===e.join(",")}var jr=P,Jf=St,OT=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function k0(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=OT.length;n<r;n++){var a=OT[n],i=e.normal,o=e.emphasis;i&&i[a]&&(t[a]=t[a]||{},t[a].normal?Zt(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?Zt(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function pn(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,Jt(t[e],r)):t[e]=r),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function xf(t){pn(t,"itemStyle"),pn(t,"lineStyle"),pn(t,"areaStyle"),pn(t,"label"),pn(t,"labelLine"),pn(t,"upperLabel"),pn(t,"edgeLabel")}function Ie(t,e){var n=Jf(t)&&t[e],r=Jf(n)&&n.textStyle;if(r)for(var a=0,i=NC.length;a<i;a++){var o=NC[a];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Rr(t){t&&(xf(t),Ie(t,"label"),t.emphasis&&Ie(t.emphasis,"label"))}function z4(t){if(Jf(t)){k0(t),xf(t),Ie(t,"label"),Ie(t,"upperLabel"),Ie(t,"edgeLabel"),t.emphasis&&(Ie(t.emphasis,"label"),Ie(t.emphasis,"upperLabel"),Ie(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(k0(e),Rr(e));var n=t.markLine;n&&(k0(n),Rr(n));var r=t.markArea;r&&Rr(r);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var i=t.links||t.edges;if(i&&!En(i))for(var o=0;o<i.length;o++)Rr(i[o]);P(t.categories,function(c){xf(c)})}if(a&&!En(a))for(var o=0;o<a.length;o++)Rr(a[o]);if(e=t.markPoint,e&&e.data)for(var u=e.data,o=0;o<u.length;o++)Rr(u[o]);if(n=t.markLine,n&&n.data)for(var f=n.data,o=0;o<f.length;o++)ct(f[o])?(Rr(f[o][0]),Rr(f[o][1])):Rr(f[o]);t.type==="gauge"?(Ie(t,"axisLabel"),Ie(t,"title"),Ie(t,"detail")):t.type==="treemap"?(pn(t.breadcrumb,"itemStyle"),P(t.levels,function(c){xf(c)})):t.type==="tree"&&xf(t.leaves)}}function Ya(t){return ct(t)?t:t?[t]:[]}function zT(t){return(ct(t)?t[0]:t)||{}}function N4(t,e){jr(Ya(t.series),function(r){Jf(r)&&z4(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),jr(n,function(r){jr(Ya(t[r]),function(a){a&&(Ie(a,"axisLabel"),Ie(a.axisPointer,"label"))})}),jr(Ya(t.parallel),function(r){var a=r&&r.parallelAxisDefault;Ie(a,"axisLabel"),Ie(a&&a.axisPointer,"label")}),jr(Ya(t.calendar),function(r){pn(r,"itemStyle"),Ie(r,"dayLabel"),Ie(r,"monthLabel"),Ie(r,"yearLabel")}),jr(Ya(t.radar),function(r){Ie(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)}),jr(Ya(t.geo),function(r){Jf(r)&&(Rr(r),jr(Ya(r.regions),function(a){Rr(a)}))}),jr(Ya(t.timeline),function(r){Rr(r),pn(r,"label"),pn(r,"itemStyle"),pn(r,"controlStyle",!0);var a=r.data;ct(a)&&P(a,function(i){St(i)&&(pn(i,"label"),pn(i,"itemStyle"))})}),jr(Ya(t.toolbox),function(r){pn(r,"iconStyle"),jr(r.feature,function(a){pn(a,"iconStyle")})}),Ie(zT(t.axisPointer),"label"),Ie(zT(t.tooltip).axisPointer,"label")}function I4(t,e){for(var n=e.split(","),r=t,a=0;a<n.length&&(r=r&&r[n[a]],r!=null);a++);return r}function B4(t,e,n,r){for(var a=e.split(","),i=t,o,u=0;u<a.length-1;u++)o=a[u],i[o]==null&&(i[o]={}),i=i[o];i[a[u]]==null&&(i[a[u]]=n)}function NT(t){t&&P(k4,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var k4=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],P4=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],P0=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ef(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<P0.length;n++){var r=P0[n][1],a=P0[n][0];e[r]!=null&&(e[a]=e[r])}}function IT(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function BT(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function H4(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function PE(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&PE(t[n].children,e)}function HE(t,e){N4(t,e),t.series=We(t.series),P(t.series,function(n){if(St(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),IT(n.label);var a=n.data;if(a&&!En(a))for(var i=0;i<a.length;i++)IT(a[i]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=I4(n,"pointer.color");o!=null&&B4(n,"itemStyle.color",o)}else if(r==="bar"){ef(n),ef(n.backgroundStyle),ef(n.emphasis);var a=n.data;if(a&&!En(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(ef(a[i]),ef(a[i]&&a[i].emphasis))}else if(r==="sunburst"){var u=n.highlightPolicy;u&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=u)),BT(n),PE(n.data,BT)}else r==="graph"||r==="sankey"?H4(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&Jt(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),NT(n)}}),t.dataRange&&(t.visualMap=t.dataRange),P(P4,function(n){var r=t[n];r&&(ct(r)||(r=[r]),P(r,function(a){NT(a)}))})}function F4(t){var e=wt();t.eachSeries(function(n){var r=n.get("stack");if(r){var a=e.get(r)||e.set(r,[]),i=n.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:n};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),e.each(V4)}function V4(t){P(t,function(e,n){var r=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,u=e.isStackedByIndex,f=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(c,d,v){var p=o.get(e.stackedDimension,v);if(isNaN(p))return a;var g,y;u?y=o.getRawIndex(v):g=o.get(e.stackedByDimension,v);for(var _=NaN,S=n-1;S>=0;S--){var x=t[S];if(u||(y=x.data.rawIndexOf(x.stackedByDimension,g)),y>=0){var M=x.data.getByRawIndex(x.stackResultDimension,y);if(f==="all"||f==="positive"&&M>0||f==="negative"&&M<0||f==="samesign"&&p>=0&&M>0||f==="samesign"&&p<=0&&M<0){p=bB(p,M),_=M;break}}}return r[0]=p,r[1]=_,r})})}var lp=(function(){function t(e){this.data=e.data||(e.sourceFormat===Sa?{}:[]),this.sourceFormat=e.sourceFormat||zE,this.seriesLayoutBy=e.seriesLayoutBy||Ka,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var n=this.dimensionsDefine=e.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var a=n[r];a.type==null&&IE(this,r)===rn.Must&&(a.type="ordinal")}}return t})();function JS(t){return t instanceof lp}function y_(t,e,n){n=n||VE(t);var r=e.seriesLayoutBy,a=U4(t,n,r,e.sourceHeader,e.dimensions),i=new lp({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Ht(e)});return i}function FE(t){return new lp({data:t,sourceFormat:En(t)?to:Fr})}function G4(t){return new lp({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Ht(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function VE(t){var e=zE;if(En(t))e=to;else if(ct(t)){t.length===0&&(e=$n);for(var n=0,r=t.length;n<r;n++){var a=t[n];if(a!=null){if(ct(a)||En(a)){e=$n;break}else if(St(a)){e=ea;break}}}}else if(St(t)){for(var i in t)if(zt(t,i)&&mn(t[i])){e=Sa;break}}return e}function U4(t,e,n,r,a){var i,o;if(!t)return{dimensionsDefine:kT(a),startIndex:o,dimensionsDetectedCount:i};if(e===$n){var u=t;r==="auto"||r==null?PT(function(c){c!=null&&c!=="-"&&(pt(c)?o==null&&(o=1):o=0)},n,u,10):o=ve(r)?r:r?1:0,!a&&o===1&&(a=[],PT(function(c,d){a[d]=c!=null?c+"":""},n,u,1/0)),i=a?a.length:n===Vs?u.length:u[0]?u[0].length:null}else if(e===ea)a||(a=j4(t));else if(e===Sa)a||(a=[],P(t,function(c,d){a.push(d)}));else if(e===Fr){var f=fc(t[0]);i=ct(f)&&f.length||1}return{startIndex:o,dimensionsDefine:kT(a),dimensionsDetectedCount:i}}function j4(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n)return ae(n)}function kT(t){if(t){var e=wt();return mt(t,function(n,r){n=St(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function PT(t,e,n,r){if(e===Vs)for(var a=0;a<n.length&&a<r;a++)t(n[a]?n[a][0]:null,a);else for(var i=n[0]||[],a=0;a<i.length&&a<r;a++)t(i[a],a)}function GE(t){var e=t.sourceFormat;return e===ea||e===Sa}var Yo,qo,Xo,HT,FT,UE=(function(){function t(e,n){var r=JS(e)?e:FE(e);this._source=r;var a=this._data=r.data;r.sourceFormat===to&&(this._offset=0,this._dimSize=n,this._data=a),FT(this,a,r)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,n){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;FT=function(o,u,f){var c=f.sourceFormat,d=f.seriesLayoutBy,v=f.startIndex,p=f.dimensionsDefine,g=HT[t1(c,d)];if(st(o,g),c===to)o.getItem=n,o.count=a,o.fillStorage=r;else{var y=jE(c,d);o.getItem=xt(y,null,u,v,p);var _=YE(c,d);o.count=xt(_,null,u,v,p)}};var n=function(o,u){o=o-this._offset,u=u||[];for(var f=this._data,c=this._dimSize,d=c*o,v=0;v<c;v++)u[v]=f[d+v];return u},r=function(o,u,f,c){for(var d=this._data,v=this._dimSize,p=0;p<v;p++){for(var g=c[p],y=g[0]==null?1/0:g[0],_=g[1]==null?-1/0:g[1],S=u-o,x=f[p],M=0;M<S;M++){var C=d[M*v+p];x[o+M]=C,C<y&&(y=C),C>_&&(_=C)}g[0]=y,g[1]=_}},a=function(){return this._data?this._data.length/this._dimSize:0};HT=(e={},e[$n+"_"+Ka]={pure:!0,appendData:i},e[$n+"_"+Vs]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[ea]={pure:!0,appendData:i},e[Sa]={pure:!0,appendData:function(o){var u=this._data;P(o,function(f,c){for(var d=u[c]||(u[c]=[]),v=0;v<(f||[]).length;v++)d.push(f[v])})}},e[Fr]={appendData:i},e[to]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var u=0;u<o.length;u++)this._data.push(o[u])}})(),t})(),VT=function(t,e,n,r){return t[r]},Y4=(Yo={},Yo[$n+"_"+Ka]=function(t,e,n,r){return t[r+e]},Yo[$n+"_"+Vs]=function(t,e,n,r,a){r+=e;for(var i=a||[],o=t,u=0;u<o.length;u++){var f=o[u];i[u]=f?f[r]:null}return i},Yo[ea]=VT,Yo[Sa]=function(t,e,n,r,a){for(var i=a||[],o=0;o<n.length;o++){var u=n[o].name,f=t[u];i[o]=f?f[r]:null}return i},Yo[Fr]=VT,Yo);function jE(t,e){var n=Y4[t1(t,e)];return n}var GT=function(t,e,n){return t.length},q4=(qo={},qo[$n+"_"+Ka]=function(t,e,n){return Math.max(0,t.length-e)},qo[$n+"_"+Vs]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},qo[ea]=GT,qo[Sa]=function(t,e,n){var r=n[0].name,a=t[r];return a?a.length:0},qo[Fr]=GT,qo);function YE(t,e){var n=q4[t1(t,e)];return n}var H0=function(t,e,n){return t[e]},X4=(Xo={},Xo[$n]=H0,Xo[ea]=function(t,e,n){return t[n]},Xo[Sa]=H0,Xo[Fr]=function(t,e,n){var r=fc(t);return r instanceof Array?r[e]:r},Xo[to]=H0,Xo);function qE(t){var e=X4[t];return e}function t1(t,e){return t===$n?t+"_"+e:t}function ks(t,e,n){if(t){var r=t.getRawDataItem(e);if(r!=null){var a=t.getStore(),i=a.getSource().sourceFormat;if(n!=null){var o=t.getDimensionIndex(n),u=a.getDimensionProperty(o);return qE(i)(r,o,u)}else{var f=r;return i===Fr&&(f=fc(r)),f}}}}var Z4=/\{@(.+?)\}/g,$4=(function(){function t(){}return t.prototype.getDataParams=function(e,n){var r=this.getData(n),a=this.getRawValue(e,n),i=r.getRawIndex(e),o=r.getName(e),u=r.getRawDataItem(e),f=r.getItemVisual(e,"style"),c=f&&f[r.getItemVisual(e,"drawType")||"fill"],d=f&&f.stroke,v=this.mainType,p=v==="series",g=r.userOutput&&r.userOutput.get();return{componentType:v,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:i,data:u,dataType:n,value:a,color:c,borderColor:d,dimensionNames:g?g.fullDimensions:null,encode:g?g.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,n,r,a,i,o){n=n||"normal";var u=this.getData(r),f=this.getDataParams(e,r);if(o&&(f.value=o.interpolatedValue),a!=null&&ct(f.value)&&(f.value=f.value[a]),!i){var c=u.getItemModel(e);i=c.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(Rt(i))return f.status=n,f.dimensionIndex=a,i(f);if(pt(i)){var d=ZS(i,f);return d.replace(Z4,function(v,p){var g=p.length,y=p;y.charAt(0)==="["&&y.charAt(g-1)==="]"&&(y=+y.slice(1,g-1));var _=ks(u,e,y);if(o&&ct(o.interpolatedValue)){var S=u.getDimensionIndex(y);S>=0&&(_=o.interpolatedValue[S])}return _!=null?_+"":""})}},t.prototype.getRawValue=function(e,n){return ks(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t})();function UT(t){var e,n;return St(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Nf(t){return new W4(t)}var W4=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=d(this._modBy),u=this._modDataCount||0,f=d(e&&e.modBy),c=e&&e.modDataCount||0;(o!==f||u!==c)&&(i="reset");function d(M){return!(M>=1)&&(M=1),M}var v;(this._dirty||i==="reset")&&(this._dirty=!1,v=this._doReset(r)),this._modBy=f,this._modDataCount=c;var p=e&&e.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,y=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(v||g<y)){var _=this._progress;if(ct(_))for(var S=0;S<_.length;S++)this._doProgress(_[S],g,y,f,c);else this._doProgress(_,g,y,f,c)}this._dueIndex=y;var x=this._settedOutputEnd!=null?this._settedOutputEnd:y;this._outputDueEnd=x}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,n,r,a,i){jT.reset(n,r,a,i),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:jT.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!e&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),ct(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),r},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),jT=(function(){var t,e,n,r,a,i={reset:function(f,c,d,v){e=f,t=c,n=d,r=v,a=Math.ceil(r/n),i.next=n>1&&r>0?u:o}};return i;function o(){return e<t?e++:null}function u(){var f=e%a*n+Math.ceil(e/a),c=e>=t?null:f<r?f:e;return e++,c}})();function Fd(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!ve(t)&&t!=null&&t!=="-"&&(t=+Br(t)),t==null||t===""?NaN:Number(t))}wt({number:function(t){return parseFloat(t)},time:function(t){return+Br(t)},trim:function(t){return pt(t)?Wr(t):t}});var Q4=(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:jf(e),a=ve(n)?n:jf(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var u=pt(e),f=pt(n);u&&(r=f?e:0),f&&(a=u?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},t})(),K4=(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 Fd(e,n)},t})();function J4(t,e){var n=new K4,r=t.data,a=n.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==Ka&&Yn(o);var u=[],f={},c=t.dimensionsDefine;if(c)P(c,function(_,S){var x=_.name,M={index:S,name:x,displayName:_.displayName};if(u.push(M),x!=null){var C="";zt(f,x)&&Yn(C),f[x]=M}});else for(var d=0;d<t.dimensionsDetectedCount;d++)u.push({index:d});var v=jE(a,Ka);e.__isBuiltIn&&(n.getRawDataItem=function(_){return v(r,i,u,_)},n.getRawData=xt(tH,null,t)),n.cloneRawData=xt(eH,null,t);var p=YE(a,Ka);n.count=xt(p,null,r,i,u);var g=qE(a);n.retrieveValue=function(_,S){var x=v(r,i,u,_);return y(x,S)};var y=n.retrieveValueFromItem=function(_,S){if(_!=null){var x=u[S];if(x)return g(_,S,x.name)}};return n.getDimensionInfo=xt(nH,null,u,f),n.cloneAllDimensionInfo=xt(rH,null,u),n}function tH(t){var e=t.sourceFormat;if(!e1(e)){var n="";Yn(n)}return t.data}function eH(t){var e=t.sourceFormat,n=t.data;if(!e1(e)){var r="";Yn(r)}if(e===$n){for(var a=[],i=0,o=n.length;i<o;i++)a.push(n[i].slice());return a}else if(e===ea){for(var a=[],i=0,o=n.length;i<o;i++)a.push(st({},n[i]));return a}}function nH(t,e,n){if(n!=null){if(ve(n)||!isNaN(n)&&!zt(e,n))return t[n];if(zt(e,n))return e[n]}}function rH(t){return Ht(t)}var XE=wt();function aH(t){t=Ht(t);var e=t.type,n="";e||Yn(n);var r=e.split(":");r.length!==2&&Yn(n);var a=!1;r[0]==="echarts"&&(e=r[1],a=!0),t.__isBuiltIn=a,XE.set(e,t)}function iH(t,e,n){var r=We(t),a=r.length,i="";a||Yn(i);for(var o=0,u=a;o<u;o++){var f=r[o];e=oH(f,e),o!==u-1&&(e.length=Math.max(e.length,1))}return e}function oH(t,e,n,r){var a="";e.length||Yn(a),St(t)||Yn(a);var i=t.type,o=XE.get(i);o||Yn(a);var u=mt(e,function(c){return J4(c,o)}),f=We(o.transform({upstream:u[0],upstreamList:u,config:Ht(t.config)}));return mt(f,function(c,d){var v="";St(c)||Yn(v),c.data||Yn(v);var p=VE(c.data);e1(p)||Yn(v);var g,y=e[0];if(y&&d===0&&!c.dimensions){var _=y.startIndex;_&&(c.data=y.data.slice(0,_).concat(c.data)),g={seriesLayoutBy:Ka,sourceHeader:_,dimensions:y.metaRawOption.dimensions}}else g={seriesLayoutBy:Ka,sourceHeader:0,dimensions:c.dimensions};return y_(c.data,g,null)})}function e1(t){return t===$n||t===ea}var sp="undefined",lH=typeof Uint32Array===sp?Array:Uint32Array,sH=typeof Uint16Array===sp?Array:Uint16Array,ZE=typeof Int32Array===sp?Array:Int32Array,YT=typeof Float64Array===sp?Array:Float64Array,$E={float:YT,int:ZE,ordinal:Array,number:Array,time:YT},F0;function vs(t){return t>65535?lH:sH}function ps(){return[1/0,-1/0]}function uH(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function qT(t,e,n,r,a){var i=$E[n||"float"];if(a){var o=t[e],u=o&&o.length;if(u!==r){for(var f=new i(r),c=0;c<u;c++)f[c]=o[c];t[e]=f}}else t[e]=new i(r)}var __=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=wt()}return t.prototype.initData=function(e,n,r){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=F0[a.sourceFormat];this._dimValueGetter=r||i,this._rawExtent=[],GE(a),this._dimensions=mt(n,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,n){var r=this._calcDimNameToIdx,a=this._dimensions,i=r.get(e);if(i!=null){if(a[i].type===n)return i}else i=a.length;return a[i]={type:n},r.set(e,i),this._chunks[i]=new $E[n||"float"](this._rawCount),this._rawExtent[i]=ps(),i},t.prototype.collectOrdinalMeta=function(e,n){var r=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,u=r.length;o===0&&(i[e]=ps());for(var f=i[e],c=o;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]))}a.ordinalMeta=n,a.ordinalOffset=u,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var n=this._dimensions[e],r=n.ordinalMeta;return r},t.prototype.getDimensionProperty=function(e){var n=this._dimensions[e];return n&&n.property},t.prototype.appendData=function(e){var n=this._provider,r=this.count();n.appendData(e);var a=n.count();return n.persistent||(a+=r),r<a&&this._initDataFromProvider(r,a,!0),[r,a]},t.prototype.appendValues=function(e,n){for(var r=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,u=this.count(),f=u+Math.max(e.length,n||0),c=0;c<i;c++){var d=a[c];qT(r,c,d.type,f,!0)}for(var v=[],p=u;p<f;p++)for(var g=p-u,y=0;y<i;y++){var d=a[y],_=F0.arrayRows.call(this,e[g]||v,d.property,g,y);r[y][p]=_;var S=o[y];_<S[0]&&(S[0]=_),_>S[1]&&(S[1]=_)}return this._rawCount=this._count=f,{start:u,end:f}},t.prototype._initDataFromProvider=function(e,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,u=o.length,f=this._rawExtent,c=mt(o,function(M){return M.property}),d=0;d<u;d++){var v=o[d];f[d]||(f[d]=ps()),qT(i,d,v.type,n,r)}if(a.fillStorage)a.fillStorage(e,n,i,f);else for(var p=[],g=e;g<n;g++){p=a.getItem(g,p);for(var y=0;y<u;y++){var _=i[y],S=this._dimValueGetter(p,c[y],g,y);_[g]=S;var x=f[y];S<x[0]&&(x[0]=S),S>x[1]&&(x[1]=S)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[e];return r?r[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(e,n){var r=[],a=[];if(n==null){n=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)r.push(this.get(a[i],n));return r},t.prototype.getByRawIndex=function(e,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[e];return r?r[n]:NaN},t.prototype.getSum=function(e){var n=this._chunks[e],r=0;if(n)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(r+=o)}return r},t.prototype.getMedian=function(e){var n=[];this.each([e],function(i){isNaN(i)||n.push(i)});var r=n.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?r[(a-1)/2]:(r[a/2]+r[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&r<this._count&&r===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(n[o]<e)a=o+1;else if(n[o]>e)i=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,n,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var u=1/0,f=-1,c=0,d=0,v=this.count();d<v;d++){var p=this.getRawIndex(d),g=n-i[p],y=Math.abs(g);y<=r&&((y<u||y===u&&g>=0&&f<0)&&(u=y,f=g,c=0),g===f&&(o[c++]=d))}return o.length=c,o},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i<a;i++)e[i]=n[i]}else e=new r(n.buffer,0,a)}else{var r=vs(this._rawCount);e=new r(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,n){if(!this._count)return this;for(var r=this.clone(),a=r.count(),i=vs(r._rawCount),o=new i(a),u=[],f=e.length,c=0,d=e[0],v=r._chunks,p=0;p<a;p++){var g=void 0,y=r.getRawIndex(p);if(f===0)g=n(p);else if(f===1){var _=v[d][y];g=n(_,p)}else{for(var S=0;S<f;S++)u[S]=v[e[S]][y];u[S]=p,g=n.apply(null,u)}g&&(o[c++]=y)}return c<a&&(r._indices=o),r._count=c,r._extent=[],r._updateGetRawIdx(),r},t.prototype.selectRange=function(e){var n=this.clone(),r=n._count;if(!r)return this;var a=ae(e),i=a.length;if(!i)return this;var o=n.count(),u=vs(n._rawCount),f=new u(o),c=0,d=a[0],v=e[d][0],p=e[d][1],g=n._chunks,y=!1;if(!n._indices){var _=0;if(i===1){for(var S=g[a[0]],x=0;x<r;x++){var M=S[x];(M>=v&&M<=p||isNaN(M))&&(f[c++]=_),_++}y=!0}else if(i===2){for(var S=g[a[0]],C=g[a[1]],T=e[a[1]][0],R=e[a[1]][1],x=0;x<r;x++){var M=S[x],D=C[x];(M>=v&&M<=p||isNaN(M))&&(D>=T&&D<=R||isNaN(D))&&(f[c++]=_),_++}y=!0}}if(!y)if(i===1)for(var x=0;x<o;x++){var E=n.getRawIndex(x),M=g[a[0]][E];(M>=v&&M<=p||isNaN(M))&&(f[c++]=E)}else for(var x=0;x<o;x++){for(var z=!0,E=n.getRawIndex(x),I=0;I<i;I++){var N=a[I],M=g[N][E];(M<e[N][0]||M>e[N][1])&&(z=!1)}z&&(f[c++]=n.getRawIndex(x))}return c<o&&(n._indices=f),n._count=c,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(e,n){var r=this.clone(e);return this._updateDims(r,e,n),r},t.prototype.modify=function(e,n){this._updateDims(this,e,n)},t.prototype._updateDims=function(e,n,r){for(var a=e._chunks,i=[],o=n.length,u=e.count(),f=[],c=e._rawExtent,d=0;d<n.length;d++)c[n[d]]=ps();for(var v=0;v<u;v++){for(var p=e.getRawIndex(v),g=0;g<o;g++)f[g]=a[n[g]][p];f[o]=v;var y=r&&r.apply(null,f);if(y!=null){typeof y!="object"&&(i[0]=y,y=i);for(var d=0;d<y.length;d++){var _=n[d],S=y[d],x=c[_],M=a[_];M&&(M[p]=S),S<x[0]&&(x[0]=S),S>x[1]&&(x[1]=S)}}}},t.prototype.lttbDownSample=function(e,n){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),u=0,f=Math.floor(1/n),c=this.getRawIndex(0),d,v,p,g=new(vs(this._rawCount))(Math.min((Math.ceil(o/f)+2)*2,o));g[u++]=c;for(var y=1;y<o-1;y+=f){for(var _=Math.min(y+f,o-1),S=Math.min(y+f*2,o),x=(S+_)/2,M=0,C=_;C<S;C++){var T=this.getRawIndex(C),R=i[T];isNaN(R)||(M+=R)}M/=S-_;var D=y,E=Math.min(y+f,o),z=y-1,I=i[c];d=-1,p=D;for(var N=-1,L=0,C=D;C<E;C++){var T=this.getRawIndex(C),R=i[T];if(isNaN(R)){L++,N<0&&(N=T);continue}v=Math.abs((z-x)*(R-I)-(z-C)*(M-I)),v>d&&(d=v,p=T)}L>0&&L<E-D&&(g[u++]=Math.min(N,p),p=Math.max(N,p)),g[u++]=p,c=p}return g[u++]=this.getRawIndex(o-1),r._count=u,r._indices=g,r.getRawIndex=this._getRawIdx,r},t.prototype.minmaxDownSample=function(e,n){for(var r=this.clone([e],!0),a=r._chunks,i=Math.floor(1/n),o=a[e],u=this.count(),f=new(vs(this._rawCount))(Math.ceil(u/i)*2),c=0,d=0;d<u;d+=i){var v=d,p=o[this.getRawIndex(v)],g=d,y=o[this.getRawIndex(g)],_=i;d+i>u&&(_=u-d);for(var S=0;S<_;S++){var x=this.getRawIndex(d+S),M=o[x];M<p&&(p=M,v=d+S),M>y&&(y=M,g=d+S)}var C=this.getRawIndex(v),T=this.getRawIndex(g);v<g?(f[c++]=C,f[c++]=T):(f[c++]=T,f[c++]=C)}return r._count=c,r._indices=f,r._updateGetRawIdx(),r},t.prototype.downSample=function(e,n,r,a){for(var i=this.clone([e],!0),o=i._chunks,u=[],f=Math.floor(1/n),c=o[e],d=this.count(),v=i._rawExtent[e]=ps(),p=new(vs(this._rawCount))(Math.ceil(d/f)),g=0,y=0;y<d;y+=f){f>d-y&&(f=d-y,u.length=f);for(var _=0;_<f;_++){var S=this.getRawIndex(y+_);u[_]=c[S]}var x=r(u),M=this.getRawIndex(Math.min(y+a(u,x)||0,d-1));c[M]=x,x<v[0]&&(v[0]=x),x>v[1]&&(v[1]=x),p[g++]=M}return i._count=g,i._indices=p,i._updateGetRawIdx(),i},t.prototype.each=function(e,n){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var u=this.getRawIndex(i);switch(r){case 0:n(i);break;case 1:n(a[e[0]][u],i);break;case 2:n(a[e[0]][u],a[e[1]][u],i);break;default:for(var f=0,c=[];f<r;f++)c[f]=a[e[f]][u];c[f]=i,n.apply(null,c)}}},t.prototype.getDataExtent=function(e){var n=this._chunks[e],r=ps();if(!n)return r;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=r;for(var u=o[0],f=o[1],c=0;c<a;c++){var d=this.getRawIndex(c),v=n[d];v<u&&(u=v),v>f&&(f=v)}return o=[u,f],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var n=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,i=0;i<a.length;i++)r.push(a[i][n]);return r},t.prototype.clone=function(e,n){var r=new t,a=this._chunks,i=e&&Jr(e,function(u,f){return u[f]=!0,u},{});if(i)for(var o=0;o<a.length;o++)r._chunks[o]=i[o]?uH(a[o]):a[o];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Ht(this._extent),e._rawExtent=Ht(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,n=void 0;if(e===Array){var r=this._indices.length;n=new e(r);for(var a=0;a<r;a++)n[a]=this._indices[a]}else n=new e(this._indices);return n}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(n,r,a,i){return Fd(n[i],this._dimensions[i])}F0={arrayRows:e,objectRows:function(n,r,a,i){return Fd(n[r],this._dimensions[i])},keyedColumns:e,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return Fd(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}})(),t})(),fH=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,n){this._sourceList=e,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,a,i;if(id(e)){var o=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,i=[d._getVersionSign()]}else u=o.get("data",!0),f=En(u)?to:Fr,i=[];var v=this._getSourceMetaRawOption()||{},p=c&&c.metaRawOption||{},g=Pt(v.seriesLayoutBy,p.seriesLayoutBy)||null,y=Pt(v.sourceHeader,p.sourceHeader),_=Pt(v.dimensions,p.dimensions),S=g!==p.seriesLayoutBy||!!y!=!!p.sourceHeader||_;a=S?[y_(u,{seriesLayoutBy:g,sourceHeader:y,dimensions:_},f)]:[]}else{var x=e;if(r){var M=this._applyTransform(n);a=M.sourceList,i=M.upstreamSignList}else{var C=x.get("source",!0);a=[y_(C,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&XT(i)}var o,u=[],f=[];return P(e,function(c){c.prepareSource();var d=c.getSource(a||0),v="";a!=null&&!d&&XT(v),u.push(d),f.push(c._getVersionSign())}),r?o=iH(r,u,{datasetIndex:n.componentIndex}):a!=null&&(o=[G4(u[0])]),{sourceList:o,upstreamSignList:f}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var r=e[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var n=this._sourceList[e];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(e)}return n},t.prototype.getSharedDataStore=function(e){var n=e.makeStoreSchema();return this._innerGetDataStore(n.dimensions,e.source,n.hash)},t.prototype._innerGetDataStore=function(e,n,r){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var u=o[r];if(!u){var f=this._getUpstreamSourceManagers()[0];id(this._sourceHost)&&f?u=f._innerGetDataStore(e,n,r):(u=new __,u.initData(new UE(n,e.length),e)),o[r]=u}return u},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(id(e)){var n=WS(e);return n?[n.getSourceManager()]:[]}else return mt(m4(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,a;if(id(e))n=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;n=i.get("seriesLayoutBy",!0),r=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:a}},t})();function id(t){return t.mainType==="series"}function XT(t){throw new Error(t)}var cH="line-height:1";function WE(t){var e=t.lineHeight;return e==null?cH:"line-height:"+Cn(e+"")+"px"}function QE(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,a=t.fontWeight||"400",i=t.color||"#464646",o=t.fontSize||14,u=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Cn(r+"")+"px;color:"+Cn(n)+";font-weight:"+Cn(a+""),valueStyle:"font-size:"+Cn(o+"")+"px;color:"+Cn(i)+";font-weight:"+Cn(u+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:u}}}var hH=[0,10,20,30],dH=["",`
|
|
79
|
+
`,`
|
|
80
|
+
|
|
81
|
+
`,`
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
`];function tc(t,e){return e.type=t,e}function S_(t){return t.type==="section"}function KE(t){return S_(t)?vH:pH}function JE(t){if(S_(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return P(t.blocks,function(a){var i=JE(a);i>=e&&(e=i+ +(r&&(!i||S_(a)&&!a.noHeader)))}),e}return 0}function vH(t,e,n,r){var a=e.noHeader,i=gH(JE(e)),o=[],u=e.blocks||[];ga(!u||ct(u)),u=u||[];var f=t.orderMode;if(e.sortBlocks&&f){u=u.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(zt(c,f)){var d=new Q4(c[f],null);u.sort(function(_,S){return d.evaluate(_.sortParam,S.sortParam)})}else f==="seriesDesc"&&u.reverse()}P(u,function(_,S){var x=e.valueFormatter,M=KE(_)(x?st(st({},t),{valueFormatter:x}):t,_,S>0?i.html:0,r);M!=null&&o.push(M)});var v=t.renderMode==="richText"?o.join(i.richText):b_(r,o.join(""),a?n:i.html);if(a)return v;var p=m_(e.header,"ordinal",t.useUTC),g=QE(r,t.renderMode).nameStyle,y=WE(r);return t.renderMode==="richText"?tL(t,p,g)+i.richText+v:b_(r,'<div style="'+g+";"+y+';">'+Cn(p)+"</div>"+v,n)}function pH(t,e,n,r){var a=t.renderMode,i=e.noName,o=e.noValue,u=!e.markerType,f=e.name,c=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(T){return T=ct(T)?T:[T],mt(T,function(R,D){return m_(R,ct(g)?g[D]:g,c)})};if(!(i&&o)){var v=u?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),p=i?"":m_(f,"ordinal",c),g=e.valueType,y=o?[]:d(e.value,e.dataIndex),_=!u||!i,S=!u&&i,x=QE(r,a),M=x.nameStyle,C=x.valueStyle;return a==="richText"?(u?"":v)+(i?"":tL(t,p,M))+(o?"":_H(t,y,_,S,C)):b_(r,(u?"":v)+(i?"":mH(p,!u,M))+(o?"":yH(y,_,S,C)),n)}}function ZT(t,e,n,r,a,i){if(t){var o=KE(t),u={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(u,t,0,i)}}function gH(t){return{html:hH[t],richText:dH[t]}}function b_(t,e,n){var r='<div style="clear:both"></div>',a="margin: "+n+"px 0 0",i=WE(t);return'<div style="'+a+";"+i+';">'+e+r+"</div>"}function mH(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Cn(t)+"</span>"}function yH(t,e,n,r){var a=n?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=ct(t)?t:[t],'<span style="'+i+";"+r+'">'+mt(t,function(o){return Cn(o)}).join(" ")+"</span>"}function tL(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function _H(t,e,n,r,a){var i=[a],o=r?10:20;return n&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(ct(e)?e.join(" "):e,i)}function SH(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return hl(r)}function eL(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var V0=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=CR()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,n,r){var a=r==="richText"?this._generateStyleName():null,i=DE({color:n,type:e,renderMode:r,markerId:a});return pt(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};ct(n)?P(n,function(i){return st(r,i)}):st(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},t})();function bH(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,u=e.getRawValue(n),f=ct(u),c=SH(e,n),d,v,p,g;if(o>1||f&&!o){var y=xH(u,e,n,i,c);d=y.inlineValues,v=y.inlineValueTypes,p=y.blocks,g=y.inlineValues[0]}else if(o){var _=a.getDimensionInfo(i[0]);g=d=ks(a,n,i[0]),v=_.type}else g=d=f?u[0]:u;var S=CS(e),x=S&&e.name||"",M=a.getName(n),C=r?x:M;return tc("section",{header:x,noHeader:r||!S,sortParam:g,blocks:[tc("nameValue",{markerType:"item",markerColor:c,name:C,noName:!Wr(C),value:d,valueType:v,dataIndex:n})].concat(p||[])})}function xH(t,e,n,r,a){var i=e.getData(),o=Jr(t,function(v,p,g){var y=i.getDimensionInfo(g);return v=v||y&&y.tooltip!==!1&&y.displayName!=null},!1),u=[],f=[],c=[];r.length?P(r,function(v){d(ks(i,n,v),v)}):P(t,d);function d(v,p){var g=i.getDimensionInfo(p);!g||g.otherDims.tooltip===!1||(o?c.push(tc("nameValue",{markerType:"subItem",markerColor:a,name:g.displayName,value:v,valueType:g.type})):(u.push(v),f.push(g.type)))}return{inlineValues:u,inlineValueTypes:f,blocks:c}}var Ni=Me();function od(t,e){return t.getName(e)||t.getId(e)}var wH="__universalTransitionEnabled",Wn=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return e.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=Nf({count:CH,reset:TH}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=Ni(this).sourceManager=new fH(this);i.prepareSource();var o=this.getInitialData(n,a);WT(o,this),this.dataTask.context.data=o,Ni(this).dataBeforeProcessed=o,$T(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=Kf(this),i=a?Sc(n):{},o=this.subType;Qt.hasClass(o)&&(o+="Series"),Zt(n,r.getTheme().get(this.subType)),Zt(n,this.getDefaultOption()),l_(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&dl(n,i,a)},e.prototype.mergeOption=function(n,r){n=Zt(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Kf(this);a&&dl(this.option,n,a);var i=Ni(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);WT(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ni(this).dataBeforeProcessed=o,$T(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(n){if(n&&!En(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&l_(n[a],"label",r)},e.prototype.getInitialData=function(n,r){},e.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},e.prototype.getData=function(n){var r=x_(this);if(r){var a=r.context.data;return n==null||!a.getLinkedData?a:a.getLinkedData(n)}else return Ni(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=x_(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}Ni(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return wt(n)},e.prototype.getSourceManager=function(){return Ni(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Ni(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},e.prototype.formatTooltip=function(n,r,a){return bH({series:this,dataIndex:n,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Dt.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(n,r,a){var i=this.ecModel,o=QS.prototype.getColorFromPalette.call(this,n,r,a);return o||(o=i.getColorFromPalette(n,r,a)),o},e.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},e.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var u=0;u<n.length;u++){var f=n[u],c=od(o,f);a[c]=!1,this._selectedDataIndicesMap[c]=-1}}},e.prototype.toggleSelect=function(n,r){for(var a=[],i=0;i<n.length;i++)a[0]=n[i],this.isSelected(n[i],r)?this.unselect(a,r):this.select(a,r)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=ae(n),a=[],i=0;i<r.length;i++){var o=n[r[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[od(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[wH])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.prototype._innerSelect=function(n,r){var a,i,o=this.option,u=o.selectedMode,f=r.length;if(!(!u||!f)){if(u==="series")o.selectedMap="all";else if(u==="multiple"){St(o.selectedMap)||(o.selectedMap={});for(var c=o.selectedMap,d=0;d<f;d++){var v=r[d],p=od(n,v);c[p]=!0,this._selectedDataIndicesMap[p]=n.getRawIndex(v)}}else if(u==="single"||u===!0){var g=r[f-1],p=od(n,g);o.selectedMap=(a={},a[p]=!0,a),this._selectedDataIndicesMap=(i={},i[p]=n.getRawIndex(g),i)}}},e.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(a){var i=n.getRawDataItem(a);i&&i.selected&&r.push(a)}),r.length>0&&this._innerSelect(n,r)}},e.registerClass=function(n){return 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);Pr(Wn,$4);Pr(Wn,QS);OR(Wn,Qt);function $T(t){var e=t.name;CS(t)||(t.name=MH(t)||e)}function MH(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return P(n,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function CH(t){return t.model.getRawData().count()}function TH(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),AH}function AH(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function WT(t,e){P(Z2(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,be(DH,e))})}function DH(t,e){var n=x_(t);return n&&n.setOutputEnd((e||this).count()),e}function x_(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(t.uid))}return r}}var yn=(function(){function t(){this.group=new ke,this.uid=tp("viewComponent")}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){},t.prototype.updateLayout=function(e,n,r,a){},t.prototype.updateVisual=function(e,n,r,a){},t.prototype.toggleBlurSeries=function(e,n,r){},t.prototype.eachRendered=function(e){var n=this.group;n&&n.traverse(e)},t})();AS(yn);Fv(yn);function n1(){var t=Me();return function(e){var n=t(e),r=e.pipelineContext,a=!!n.large,i=!!n.progressiveRender,o=n.large=!!(r&&r.large),u=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==u)&&"reset"}}var nL=Me(),RH=n1(),Dn=(function(){function t(){this.group=new ke,this.uid=tp("viewChart"),this.renderTask=Nf({plan:EH,reset:LH}),this.renderTask.context={view:this}}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.highlight=function(e,n,r,a){var i=e.getData(a&&a.dataType);i&&KT(i,a,"emphasis")},t.prototype.downplay=function(e,n,r,a){var i=e.getData(a&&a.dataType);i&&KT(i,a,"normal")},t.prototype.remove=function(e,n){this.group.removeAll()},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateLayout=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateVisual=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.eachRendered=function(e){Qv(this.group,e)},t.markUpdateMethod=function(e,n){nL(e).updateMethod=n},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function QT(t,e,n){t&&d_(t)&&(e==="emphasis"?lv:sv)(t,n)}function KT(t,e,n){var r=fl(t,e),a=e&&e.highlightKey!=null?rP(e.highlightKey):null;r!=null?P(We(r),function(i){QT(t.getItemGraphicEl(i),n,a)}):t.eachItemGraphicEl(function(i){QT(i,n,a)})}AS(Dn);Fv(Dn);function EH(t){return RH(t.model)}function LH(t){var e=t.model,n=t.ecModel,r=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,u=a&&nL(a).updateMethod,f=i?"incrementalPrepareRender":u&&o[u]?u:"render";return f!=="render"&&o[f](e,n,r,a),OH[f]}var OH={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)}}},gv="\0__throttleOriginMethod",JT="\0__throttleRate",tA="\0__throttleType";function up(t,e,n){var r,a=0,i=0,o=null,u,f,c,d;e=e||0;function v(){i=new Date().getTime(),o=null,t.apply(f,c||[])}var p=function(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];r=new Date().getTime(),f=this,c=g;var _=d||e,S=d||n;d=null,u=r-(S?a:i)-_,clearTimeout(o),S?o=setTimeout(v,_):u>=0?v():o=setTimeout(v,-u),a=r};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(g){d=g},p}function fp(t,e,n,r){var a=t[e];if(a){var i=a[gv]||a,o=a[tA],u=a[JT];if(u!==n||o!==r){if(n==null||!r)return t[e]=i;a=t[e]=up(i,n,r==="debounce"),a[gv]=i,a[tA]=r,a[JT]=n}return a}}function mv(t,e){var n=t[e];n&&n[gv]&&(n.clear&&n.clear(),t[e]=n[gv])}var eA=Me(),nA={itemStyle:qf(yE,!0),lineStyle:qf(mE,!0)},zH={lineStyle:"stroke",itemStyle:"fill"};function rL(t,e){var n=t.visualStyleMapper||nA[e];return n||(console.warn("Unknown style type '"+e+"'."),nA.itemStyle)}function aL(t,e){var n=t.visualDrawType||zH[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var NH={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=t.getModel(r),i=rL(t,r),o=i(a),u=a.getShallow("decal");u&&(n.setVisual("decal",u),u.dirty=!0);var f=aL(t,r),c=o[f],d=Rt(c)?c:null,v=o.fill==="auto"||o.stroke==="auto";if(!o[f]||d||v){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[f]||(o[f]=p,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Rt(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||Rt(o.stroke)?p:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",f),!e.isSeriesFiltered(t)&&d)return n.setVisual("colorFromPalette",!1),{dataEach:function(g,y){var _=t.getDataParams(y),S=st({},o);S[f]=d(_),g.setItemVisual(y,"style",S)}}}},nf=new xe,IH={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=rL(t,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,u){var f=o.getRawDataItem(u);if(f&&f[r]){nf.option=f[r];var c=a(nf),d=o.ensureUniqueItemVisual(u,"style");st(d,c),nf.option.decal&&(o.setItemVisual(u,"decal",nf.option.decal),nf.option.decal.dirty=!0),i in c&&o.setItemVisual(u,"colorFromPalette",!1)}}:null}}}},BH={performRawSeries:!0,overallReset:function(t){var e=wt();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),eA(n).scope=i}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=eA(n).scope,u=n.visualStyleAccessPath||"itemStyle",f=aL(n,u);i.each(function(c){var d=i.getRawIndex(c);a[d]=c}),r.each(function(c){var d=a[c],v=i.getItemVisual(d,"colorFromPalette");if(v){var p=i.ensureUniqueItemVisual(d,"style"),g=r.getName(c)||c+"",y=r.count();p[f]=n.getColorFromPalette(g,o,y)}})}})}},ld=Math.PI;function kH(t,e){e=e||{},Jt(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 ke,r=new we({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var a=new Te({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new we({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(i);var o;return e.showSpinner&&(o=new vc({shape:{startAngle:-ld/2,endAngle:-ld/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ld*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ld*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var u=a.getBoundingRect().width,f=e.showSpinner?e.spinnerRadius:0,c=(t.getWidth()-f*2-(e.showSpinner&&u?10:0)-u)/2-(e.showSpinner&&u?0:5+u/2)+(e.showSpinner?0:u/2)+(u?0:f),d=t.getHeight()/2;e.showSpinner&&o.setShape({cx:c,cy:d}),i.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 iL=(function(){function t(e,n,r,a){this._stageTaskMap=wt(),this.ecInstance=e,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return t.prototype.restoreData=function(e,n){e.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,n){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,u=a&&a.modDataCount,f=u!=null?Math.ceil(u/o):null;return{step:o,modBy:f,modDataCount:u}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,n){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&i>=r.threshold,u=e.get("large")&&i>=e.get("largeThreshold"),f=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:f,large:u}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=wt();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;P(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";ga(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,n,r),a.overallReset&&this._createOverallStageTask(a,i,n,r)},this)},t.prototype.prepareView=function(e,n,r,a){var i=e.renderTask,o=i.context;o.model=n,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(n,i)},t.prototype.performDataProcessorTasks=function(e,n){this._performStageTasks(this._dataProcessorHandlers,e,n,{block:!0})},t.prototype.performVisualTasks=function(e,n,r){this._performStageTasks(this._visualHandlers,e,n,r)},t.prototype._performStageTasks=function(e,n,r,a){a=a||{};var i=!1,o=this;P(e,function(f,c){if(!(a.visualType&&a.visualType!==f.visualType)){var d=o._stageTaskMap.get(f.uid),v=d.seriesTaskMap,p=d.overallTask;if(p){var g,y=p.agentStubMap;y.each(function(S){u(a,S)&&(S.dirty(),g=!0)}),g&&p.dirty(),o.updatePayload(p,r);var _=o.getPerformArgs(p,a.block);y.each(function(S){S.perform(_)}),p.perform(_)&&(i=!0)}else v&&v.each(function(S,x){u(a,S)&&S.dirty();var M=o.getPerformArgs(S,a.block);M.skip=!f.performRawSeries&&n.isSeriesFiltered(S.context.model),o.updatePayload(S,r),S.perform(M)&&(i=!0)})}});function u(f,c){return f.setDirty&&(!f.dirtyMap||f.dirtyMap.get(c.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var n;e.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var n=e.tail;do{if(n.__block){e.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(e,n){n!=="remain"&&(e.context.payload=n)},t.prototype._createSeriesStageTask=function(e,n,r,a){var i=this,o=n.seriesTaskMap,u=n.seriesTaskMap=wt(),f=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(d):f?r.eachRawSeriesByType(f,d):c&&c(r,a).each(d);function d(v){var p=v.uid,g=u.set(p,o&&o.get(p)||Nf({plan:GH,reset:UH,count:YH}));g.context={model:v,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(v,g)}},t.prototype._createOverallStageTask=function(e,n,r,a){var i=this,o=n.overallTask=n.overallTask||Nf({reset:PH});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var u=o.agentStubMap,f=o.agentStubMap=wt(),c=e.seriesType,d=e.getTargetSeries,v=!0,p=!1,g="";ga(!e.createOnAllSeries,g),c?r.eachRawSeriesByType(c,y):d?d(r,a).each(y):(v=!1,P(r.getSeries(),y));function y(_){var S=_.uid,x=f.set(S,u&&u.get(S)||(p=!0,Nf({reset:HH,onDirty:VH})));x.context={model:_,overallProgress:v},x.agent=o,x.__block=v,i._pipe(_,x)}p&&o.dirty()},t.prototype._pipe=function(e,n){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},t.wrapStageHandler=function(e,n){return Rt(e)&&(e={overallReset:e,seriesType:qH(e)}),e.uid=tp("stageHandler"),n&&(e.visualType=n),e},t})();function PH(t){t.overallReset(t.ecModel,t.api,t.payload)}function HH(t){return t.overallProgress&&FH}function FH(){this.agent.dirty(),this.getDownstream().dirty()}function VH(){this.agent&&this.agent.dirty()}function GH(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function UH(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=We(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?mt(e,function(n,r){return oL(r)}):jH}var jH=oL(0);function oL(t){return function(e,n){var r=n.data,a=n.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(r,i);else a&&a.progress&&a.progress(e,r)}}function YH(t){return t.data.count()}function qH(t){yv=null;try{t(ec,lL)}catch{}return yv}var ec={},lL={},yv;sL(ec,KS);sL(lL,kE);ec.eachSeriesByType=ec.eachRawSeriesByType=function(t){yv=t};ec.eachComponent=function(t){t.mainType==="series"&&t.subType&&(yv=t.subType)};function sL(t,e){for(var n in e.prototype)t[n]=gn}var rA=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const XH={color:rA,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],rA]};var vn="#B9B8CE",aA="#100C2A",sd=function(){return{axisLine:{lineStyle:{color:vn}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},iA=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],uL={darkMode:!0,color:iA,backgroundColor:aA,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:vn},pageTextStyle:{color:vn}},textStyle:{color:vn},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:vn}},dataZoom:{borderColor:"#71708A",textStyle:{color:vn},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:vn}},timeline:{lineStyle:{color:vn},label:{color:vn},controlStyle:{color:vn,borderColor:vn}},calendar:{itemStyle:{color:aA},dayLabel:{color:vn},monthLabel:{color:vn},yearLabel:{color:vn}},timeAxis:sd(),logAxis:sd(),valueAxis:sd(),categoryAxis:sd(),line:{symbol:"circle"},graph:{color:iA},gauge:{title:{color:vn},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:vn},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};uL.categoryAxis.splitLine.show=!1;var ZH=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},a={};if(pt(e)){var i=pa(e);n.mainType=i.main||null,n.subType=i.sub||null}else{var o=["Index","Name","Id"],u={name:1,dataIndex:1,dataType:1};P(e,function(f,c){for(var d=!1,v=0;v<o.length;v++){var p=o[v],g=c.lastIndexOf(p);if(g>0&&g===c.length-p.length){var y=c.slice(0,g);y!=="data"&&(n.mainType=y,n[p.toLowerCase()]=f,d=!0)}}u.hasOwnProperty(c)&&(r[c]=f,d=!0),d||(a[c]=f)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},t.prototype.filter=function(e,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,u=r.view;if(!o||!u)return!0;var f=n.cptQuery,c=n.dataQuery;return d(f,o,"mainType")&&d(f,o,"subType")&&d(f,o,"index","componentIndex")&&d(f,o,"name")&&d(f,o,"id")&&d(c,i,"name")&&d(c,i,"dataIndex")&&d(c,i,"dataType")&&(!u.filterForExposedEvent||u.filterForExposedEvent(e,n.otherQuery,a,i));function d(v,p,g,y){return v[g]==null||p[y||g]===v[g]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),w_=["symbol","symbolSize","symbolRotate","symbolOffset"],oA=w_.concat(["symbolKeepAspect"]),$H={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o<w_.length;o++){var u=w_[o],f=t.get(u);Rt(f)?(i=!0,a[u]=f):r[u]=f}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(st({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var c=ae(a);function d(v,p){for(var g=t.getRawValue(p),y=t.getDataParams(p),_=0;_<c.length;_++){var S=c[_];v.setItemVisual(p,S,a[S](g,y))}}return{dataEach:i?d:null}}},WH={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var n=t.getData();function r(a,i){for(var o=a.getItemModel(i),u=0;u<oA.length;u++){var f=oA[u],c=o.getShallow(f,!0);c!=null&&a.setItemVisual(i,f,c)}}return{dataEach:n.hasItemOption?r:null}}};function QH(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 KH(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 JH(t,e){function n(r,a){var i=[];return r.eachComponent({mainType:"series",subType:t,query:a},function(o){i.push(o.seriesIndex)}),i}P([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(r){e(r[0],function(a,i,o){a=st({},a),o.dispatchAction(st(a,{type:r[1],seriesIndex:n(i,a)}))})})}function gs(t,e,n,r,a){var i=t+e;n.isSilent(i)||r.eachComponent({mainType:"series",subType:"pie"},function(o){for(var u=o.seriesIndex,f=o.option.selectedMap,c=a.selected,d=0;d<c.length;d++)if(c[d].seriesIndex===u){var v=o.getData(),p=fl(v,a.fromActionPayload);n.trigger(i,{type:i,seriesId:o.id,name:ct(p)?v.getName(p[0]):v.getName(p),selected:pt(f)?f:st({},f)})}})}function tF(t,e,n){t.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(gs("map","selectchanged",e,a,r),gs("pie","selectchanged",e,a,r)):r.fromAction==="select"?(gs("map","selected",e,a,r),gs("pie","selected",e,a,r)):r.fromAction==="unselect"&&(gs("map","unselected",e,a,r),gs("pie","unselected",e,a,r))})}function wf(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var eF=Math.round(Math.random()*9),nF=typeof Object.defineProperty=="function",rF=(function(){function t(){this._id="__ec_inner_"+eF++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return nF?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})(),aF=oe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,i=e.height/2;t.moveTo(n,r-i),t.lineTo(n+a,r+i),t.lineTo(n-a,r+i),t.closePath()}}),iF=oe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,i=e.height/2;t.moveTo(n,r-i),t.lineTo(n+a,r),t.lineTo(n,r+i),t.lineTo(n-a,r),t.closePath()}}),oF=oe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,u=o*o/(i-o),f=r-i+o+u,c=Math.asin(u/o),d=Math.cos(c)*o,v=Math.sin(c),p=Math.cos(c),g=o*.6,y=o*.7;t.moveTo(n-d,f+u),t.arc(n,f,o,Math.PI-c,Math.PI*2+c),t.bezierCurveTo(n+d-v*g,f+u+p*g,n,r-y,n,r),t.bezierCurveTo(n,r-y,n-d+v*g,f+u+p*g,n-d,f+u),t.closePath()}}),lF=oe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,a=e.x,i=e.y,o=r/3*2;t.moveTo(a,i),t.lineTo(a+o,i+n),t.lineTo(a,i+n/4*3),t.lineTo(a-o,i+n),t.lineTo(a,i),t.closePath()}}),sF={line:ti,rect:we,roundRect:we,square:we,circle:hc,diamond:iF,pin:oF,arrow:lF,triangle:aF},uF={line:function(t,e,n,r,a){a.x1=t,a.y1=e+r/2,a.x2=t+n,a.y2=e+r/2},rect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r},roundRect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r,a.r=Math.min(n,r)/4},square:function(t,e,n,r,a){var i=Math.min(n,r);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.r=Math.min(n,r)/2},diamond:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r},pin:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},arrow:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},triangle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r}},_v={};P(sF,function(t,e){_v[e]=new t});var fF=oe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=av(t,e,n),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(t,e,n){var r=e.symbolType;if(r!=="none"){var a=_v[r];a||(r="rect",a=_v[r]),uF[r](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,n)}}});function cF(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 ni(t,e,n,r,a,i,o){var u=t.indexOf("empty")===0;u&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var f;return t.indexOf("image://")===0?f=kS(t.slice(8),new Kt(e,n,r,a),o?"center":"cover"):t.indexOf("path://")===0?f=$v(t.slice(7),{},new Kt(e,n,r,a),o?"center":"cover"):f=new fF({shape:{symbolType:t,x:e,y:n,width:r,height:a}}),f.__isEmptyBrush=u,f.setColor=cF,i&&f.setColor(i),f}function hF(t){return ct(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function fL(t,e){if(t!=null)return ct(t)||(t=[t,t]),[de(t[0],e[0])||0,de(Pt(t[1],t[0]),e[1])||0]}function Jo(t){return isFinite(t)}function dF(t,e,n){var r=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(r=r*n.width+n.x,a=a*n.width+n.x,i=i*n.height+n.y,o=o*n.height+n.y),r=Jo(r)?r:0,a=Jo(a)?a:1,i=Jo(i)?i:0,o=Jo(o)?o:0;var u=t.createLinearGradient(r,i,a,o);return u}function vF(t,e,n){var r=n.width,a=n.height,i=Math.min(r,a),o=e.x==null?.5:e.x,u=e.y==null?.5:e.y,f=e.r==null?.5:e.r;e.global||(o=o*r+n.x,u=u*a+n.y,f=f*i),o=Jo(o)?o:.5,u=Jo(u)?u:.5,f=f>=0&&Jo(f)?f:.5;var c=t.createRadialGradient(o,u,0,o,u,f);return c}function M_(t,e,n){for(var r=e.type==="radial"?vF(t,e,n):dF(t,e,n),a=e.colorStops,i=0;i<a.length;i++)r.addColorStop(a[i].offset,a[i].color);return r}function pF(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 ud(t){return parseInt(t,10)}function fd(t,e,n){var r=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var u=document.defaultView.getComputedStyle(t);return(t[a]||ud(u[r])||ud(t.style[r]))-(ud(u[i])||0)-(ud(u[o])||0)|0}function gF(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:ve(t)?[t]:ct(t)?t:null}function cL(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&gF(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(n=mt(n,function(i){return i/a}),r/=a)}return[n,r]}var mF=new cl(!0);function Sv(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function lA(t){return typeof t=="string"&&t!=="none"}function bv(t){var e=t.fill;return e!=null&&e!=="none"}function sA(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 uA(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 C_(t,e,n){var r=zR(e.image,e.__image,n);if(Vv(r)){var a=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*$2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function yF(t,e,n,r){var a,i=Sv(n),o=bv(n),u=n.strokePercent,f=u<1,c=!e.path;(!e.silent||f)&&c&&e.createPathProxy();var d=e.path||mF,v=e.__dirty;if(!r){var p=n.fill,g=n.stroke,y=o&&!!p.colorStops,_=i&&!!g.colorStops,S=o&&!!p.image,x=i&&!!g.image,M=void 0,C=void 0,T=void 0,R=void 0,D=void 0;(y||_)&&(D=e.getBoundingRect()),y&&(M=v?M_(t,p,D):e.__canvasFillGradient,e.__canvasFillGradient=M),_&&(C=v?M_(t,g,D):e.__canvasStrokeGradient,e.__canvasStrokeGradient=C),S&&(T=v||!e.__canvasFillPattern?C_(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=T),x&&(R=v||!e.__canvasStrokePattern?C_(t,g,e):e.__canvasStrokePattern,e.__canvasStrokePattern=T),y?t.fillStyle=M:S&&(T?t.fillStyle=T:o=!1),_?t.strokeStyle=C:x&&(R?t.strokeStyle=R:i=!1)}var E=e.getGlobalScale();d.setScale(E[0],E[1],e.segmentIgnoreThreshold);var z,I;t.setLineDash&&n.lineDash&&(a=cL(e),z=a[0],I=a[1]);var N=!0;(c||v&xs)&&(d.setDPR(t.dpr),f?d.setContext(null):(d.setContext(t),N=!1),d.reset(),e.buildPath(d,e.shape,r),d.toStatic(),e.pathUpdated()),N&&d.rebuildPath(t,f?u:1),z&&(t.setLineDash(z),t.lineDashOffset=I),r||(n.strokeFirst?(i&&uA(t,n),o&&sA(t,n)):(o&&sA(t,n),i&&uA(t,n))),z&&t.setLineDash([])}function _F(t,e,n){var r=e.__image=zR(n.image,e.__image,e,e.onload);if(!(!r||!Vv(r))){var a=n.x||0,i=n.y||0,o=e.getWidth(),u=e.getHeight(),f=r.width/r.height;if(o==null&&u!=null?o=u*f:u==null&&o!=null?u=o/f:o==null&&u==null&&(o=r.width,u=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,d=n.sy||0;t.drawImage(r,c,d,n.sWidth,n.sHeight,a,i,o,u)}else if(n.sx&&n.sy){var c=n.sx,d=n.sy,v=o-c,p=u-d;t.drawImage(r,c,d,v,p,a,i,o,u)}else t.drawImage(r,a,i,o,u)}}function SF(t,e,n){var r,a=n.text;if(a!=null&&(a+=""),a){t.font=n.font||ul,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var i=void 0,o=void 0;t.setLineDash&&n.lineDash&&(r=cL(e),i=r[0],o=r[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),n.strokeFirst?(Sv(n)&&t.strokeText(a,n.x,n.y),bv(n)&&t.fillText(a,n.x,n.y)):(bv(n)&&t.fillText(a,n.x,n.y),Sv(n)&&t.strokeText(a,n.x,n.y)),i&&t.setLineDash([])}}var fA=["shadowBlur","shadowOffsetX","shadowOffsetY"],cA=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function hL(t,e,n,r,a){var i=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){qn(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?al.opacity:o}(r||e.blend!==n.blend)&&(i||(qn(t,a),i=!0),t.globalCompositeOperation=e.blend||al.blend);for(var u=0;u<fA.length;u++){var f=fA[u];(r||e[f]!==n[f])&&(i||(qn(t,a),i=!0),t[f]=t.dpr*(e[f]||0))}return(r||e.shadowColor!==n.shadowColor)&&(i||(qn(t,a),i=!0),t.shadowColor=e.shadowColor||al.shadowColor),i}function hA(t,e,n,r,a){var i=nc(e,a.inHover),o=r?null:n&&nc(n,a.inHover)||{};if(i===o)return!1;var u=hL(t,i,o,r,a);if((r||i.fill!==o.fill)&&(u||(qn(t,a),u=!0),lA(i.fill)&&(t.fillStyle=i.fill)),(r||i.stroke!==o.stroke)&&(u||(qn(t,a),u=!0),lA(i.stroke)&&(t.strokeStyle=i.stroke)),(r||i.opacity!==o.opacity)&&(u||(qn(t,a),u=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var f=i.lineWidth,c=f/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==c&&(u||(qn(t,a),u=!0),t.lineWidth=c)}for(var d=0;d<cA.length;d++){var v=cA[d],p=v[0];(r||i[p]!==o[p])&&(u||(qn(t,a),u=!0),t[p]=i[p]||v[1])}return u}function bF(t,e,n,r,a){return hL(t,nc(e,a.inHover),n&&nc(n,a.inHover),r,a)}function dL(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 xF(t,e,n){for(var r=!1,a=0;a<t.length;a++){var i=t[a];r=r||i.isZeroArea(),dL(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}n.allClipped=r}function wF(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 dA=1,vA=2,pA=3,gA=4;function MF(t){var e=bv(t),n=Sv(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 qn(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function nc(t,e){return e&&t.__hoverStyle||t.style}function r1(t,e){tl(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function tl(t,e,n,r){var a=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~lr,e.__isRendered=!1;return}var i=e.__clipPaths,o=n.prevElClipPaths,u=!1,f=!1;if((!o||pF(i,o))&&(o&&o.length&&(qn(t,n),t.restore(),f=u=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(qn(t,n),t.save(),xF(i,t,n),u=!0),n.prevElClipPaths=i),n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var c=n.prevEl;c||(f=u=!0);var d=e instanceof oe&&e.autoBatch&&MF(e.style);u||wF(a,c.transform)?(qn(t,n),dL(t,e)):d||qn(t,n);var v=nc(e,n.inHover);e instanceof oe?(n.lastDrawType!==dA&&(f=!0,n.lastDrawType=dA),hA(t,e,c,f,n),(!d||!n.batchFill&&!n.batchStroke)&&t.beginPath(),yF(t,e,v,d),d&&(n.batchFill=v.fill||"",n.batchStroke=v.stroke||"")):e instanceof iv?(n.lastDrawType!==pA&&(f=!0,n.lastDrawType=pA),hA(t,e,c,f,n),SF(t,e,v)):e instanceof _a?(n.lastDrawType!==vA&&(f=!0,n.lastDrawType=vA),bF(t,e,c,f,n),_F(t,e,v)):e.getTemporalDisplayables&&(n.lastDrawType!==gA&&(f=!0,n.lastDrawType=gA),CF(t,e,n)),d&&r&&qn(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function CF(t,e,n){var r=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,u;for(o=e.getCursor(),u=r.length;o<u;o++){var f=r[o];f.beforeBrush&&f.beforeBrush(),f.innerBeforeBrush(),tl(t,f,i,o===u-1),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),i.prevEl=f}for(var c=0,d=a.length;c<d;c++){var f=a[c];f.beforeBrush&&f.beforeBrush(),f.innerBeforeBrush(),tl(t,f,i,c===d-1),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),i.prevEl=f}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var G0=new rF,mA=new uc(100),yA=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function T_(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),a=r.painter.type==="svg";t.dirty&&G0.delete(t);var i=G0.get(t);if(i)return i;var o=Jt(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var u={repeat:"repeat"};return f(u),u.rotation=o.rotation,u.scaleX=u.scaleY=a?1:1/n,G0.set(t,u),t.dirty=!1,u;function f(c){for(var d=[n],v=!0,p=0;p<yA.length;++p){var g=o[yA[p]];if(g!=null&&!ct(g)&&!pt(g)&&!ve(g)&&typeof g!="boolean"){v=!1;break}d.push(g)}var y;if(v){y=d.join(",")+(a?"-svg":"");var _=mA.get(y);_&&(a?c.svgElement=_:c.image=_)}var S=pL(o.dashArrayX),x=TF(o.dashArrayY),M=vL(o.symbol),C=AF(S),T=gL(x),R=!a&&Ja.createCanvas(),D=a&&{tag:"g",attrs:{},key:"dcl",children:[]},E=I(),z;R&&(R.width=E.width*n,R.height=E.height*n,z=R.getContext("2d")),N(),v&&mA.put(y,R||D),c.image=R,c.svgElement=D,c.svgWidth=E.width,c.svgHeight=E.height;function I(){for(var L=1,F=0,G=C.length;F<G;++F)L=OC(L,C[F]);for(var Y=1,F=0,G=M.length;F<G;++F)Y=OC(Y,M[F].length);L*=Y;var Z=T*C.length*M.length;return{width:Math.max(1,Math.min(L,o.maxTileWidth)),height:Math.max(1,Math.min(Z,o.maxTileHeight))}}function N(){z&&(z.clearRect(0,0,R.width,R.height),o.backgroundColor&&(z.fillStyle=o.backgroundColor,z.fillRect(0,0,R.width,R.height)));for(var L=0,F=0;F<x.length;++F)L+=x[F];if(L<=0)return;for(var G=-T,Y=0,Z=0,H=0;G<E.height;){if(Y%2===0){for(var X=Z/2%M.length,U=0,W=0,it=0;U<E.width*2;){for(var k=0,F=0;F<S[H].length;++F)k+=S[H][F];if(k<=0)break;if(W%2===0){var q=(1-o.symbolSize)*.5,rt=U+S[H][W]*q,lt=G+x[Y]*q,ft=S[H][W]*o.symbolSize,gt=x[Y]*o.symbolSize,At=it/2%M[X].length;Mt(rt,lt,ft,gt,M[X][At])}U+=S[H][W],++it,++W,W===S[H].length&&(W=0)}++H,H===S.length&&(H=0)}G+=x[Y],++Z,++Y,Y===x.length&&(Y=0)}function Mt(Bt,le,yt,Nt,ge){var ne=a?1:n,Ln=ni(ge,Bt*ne,le*ne,yt*ne,Nt*ne,o.color,o.symbolKeepAspect);if(a){var _n=r.painter.renderOneToVNode(Ln);_n&&D.children.push(_n)}else r1(z,Ln)}}}}function vL(t){if(!t||t.length===0)return[["rect"]];if(pt(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!pt(t[n])){e=!1;break}if(e)return vL([t]);for(var r=[],n=0;n<t.length;++n)pt(t[n])?r.push([t[n]]):r.push(t[n]);return r}function pL(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 pL([t]);for(var a=[],r=0;r<t.length;++r)if(ve(t[r])){var e=Math.ceil(t[r]);a.push([e,e])}else{var e=mt(t[r],function(u){return Math.ceil(u)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function TF(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=mt(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function AF(t){return mt(t,function(e){return gL(e)})}function gL(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function DF(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(o){var u=r.getItemVisual(o,"decal");if(u){var f=r.ensureUniqueItemVisual(o,"style");f.decal=T_(u,e)}});var a=r.getVisual("decal");if(a){var i=r.getVisual("style");i.decal=T_(a,e)}}})}var $r=new ta,mL={};function RF(t,e){mL[t]=e}function yL(t){return mL[t]}var EF="5.6.0",LF={zrender:"5.6.1"},OF=1,zF=800,NF=900,IF=1e3,BF=2e3,kF=5e3,_L=1e3,PF=1100,a1=2e3,SL=3e3,HF=4e3,cp=4500,FF=4600,VF=5e3,GF=6e3,bL=7e3,xL={PROCESSOR:{FILTER:IF,SERIES_FILTER:zF,STATISTIC:kF},VISUAL:{LAYOUT:_L,PROGRESSIVE_LAYOUT:PF,GLOBAL:a1,CHART:SL,POST_CHART_LAYOUT:FF,COMPONENT:HF,BRUSH:VF,CHART_ITEM:cp,ARIA:GF,DECAL:bL}},hn="__flagInMainProcess",Gn="__pendingUpdate",U0="__needsUpdateStatus",_A=/^[a-zA-Z0-9_]+$/,j0="__connectUpdateStatus",SA=0,UF=1,jF=2;function wL(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){this.id;return}return CL(this,t,e)}}function ML(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return CL(this,t,e)}}function CL(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ta.prototype[e].apply(t,n)}var TL=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(ta),AL=TL.prototype;AL.on=ML("on");AL.off=ML("off");var ms,Y0,cd,Ii,q0,X0,Z0,rf,af,bA,xA,$0,wA,hd,MA,DL,Cr,CA,xv=(function(t){ut(e,t);function e(n,r,a){var i=t.call(this,new ZH)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},pt(r)&&(r=RL[r]),i._dom=n;var o="canvas",u="auto",f=!1;a.ssr&&_R(function(p){var g=qt(p),y=g.dataIndex;if(y!=null){var _=wt();return _.set("series_index",g.seriesIndex),_.set("data_index",y),g.ssrType&&_.set("ssr_type",g.ssrType),_}});var c=i._zr=i_(n,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Pt(a.useDirtyRect,f),useCoarsePointer:Pt(a.useCoarsePointer,u),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=up(xt(c.flush,c),17),r=Ht(r),r&&HE(r,!0),i._theme=r,i._locale=t4(a.locale||_E),i._coordSysMgr=new op;var d=i._api=MA(i);function v(p,g){return p.__prio-g.__prio}return Ld(Mv,v),Ld(A_,v),i._scheduler=new iL(i,d,A_,Mv),i._messageCenter=new TL,i._initEvents(),i.resize=xt(i.resize,i),c.animation.on("frame",i._onframe,i),bA(c,i),xA(c,i),Zd(i),i}return e.prototype._onframe=function(){if(!this._disposed){CA(this);var n=this._scheduler;if(this[Gn]){var r=this[Gn].silent;this[hn]=!0;try{ms(this),Ii.update.call(this,null,this[Gn].updateParams)}catch(f){throw this[hn]=!1,this[Gn]=null,f}this._zr.flush(),this[hn]=!1,this[Gn]=null,rf.call(this,r),af.call(this,r)}else if(n.unfinished){var a=OF,i=this._model,o=this._api;n.unfinished=!1;do{var u=+new Date;n.performSeriesTasks(i),n.performDataProcessorTasks(i),X0(this,i),n.performVisualTasks(i),hd(this,this._model,o,"remain",{}),a-=+new Date-u}while(a>0&&n.unfinished);n.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(n,r,a){if(!this[hn]){if(this._disposed){this.id;return}var i,o,u;if(St(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,u=r.transition,r=r.notMerge),this[hn]=!0,!this._model||r){var f=new D4(this._api),c=this._theme,d=this._model=new KS;d.scheduler=this._scheduler,d.ssr=this._ssr,d.init(null,null,null,c,this._locale,f)}this._model.setOption(n,{replaceMerge:o},D_);var v={seriesTransition:u,optionChanged:!0};if(a)this[Gn]={silent:i,updateParams:v},this[hn]=!1,this.getZr().wakeUp();else{try{ms(this),Ii.update.call(this,null,v)}catch(p){throw this[Gn]=null,this[hn]=!1,p}this._ssr||this._zr.flush(),this[Gn]=null,this[hn]=!1,rf.call(this,i),af.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Dt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},e.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},e.prototype.getSvgDataURL=function(){if(Dt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return P(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},e.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,i=[],o=this;P(r,function(f){a.eachComponent({mainType:f},function(c){var d=o._componentsMap[c.__viewId];d.group.ignore||(i.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 P(i,function(f){f.group.ignore=!1}),u},e.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,i=Math.min,o=Math.max,u=1/0;if(Cv[a]){var f=u,c=u,d=-u,v=-u,p=[],g=n&&n.pixelRatio||this.getDevicePixelRatio();P(ol,function(C,T){if(C.group===a){var R=r?C.getZr().painter.getSvgDom().innerHTML:C.renderToCanvas(Ht(n)),D=C.getDom().getBoundingClientRect();f=i(D.left,f),c=i(D.top,c),d=o(D.right,d),v=o(D.bottom,v),p.push({dom:R,left:D.left,top:D.top})}}),f*=g,c*=g,d*=g,v*=g;var y=d-f,_=v-c,S=Ja.createCanvas(),x=i_(S,{renderer:r?"svg":"canvas"});if(x.resize({width:y,height:_}),r){var M="";return P(p,function(C){var T=C.left-f,R=C.top-c;M+='<g transform="translate('+T+","+R+')">'+C.dom+"</g>"}),x.painter.getSvgRoot().innerHTML=M,n.connectedBackgroundColor&&x.painter.setBackgroundColor(n.connectedBackgroundColor),x.refreshImmediately(),x.painter.toDataURL()}else return n.connectedBackgroundColor&&x.add(new we({shape:{x:0,y:0,width:y,height:_},style:{fill:n.connectedBackgroundColor}})),P(p,function(C){var T=new _a({style:{x:C.left*g-f,y:C.top*g-c,image:C.dom}});x.add(T)}),x.refreshImmediately(),S.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return q0(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return q0(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=p0(a,n);return P(o,function(u,f){f.indexOf("Models")>=0&&P(u,function(c){var d=c.coordinateSystem;if(d&&d.containPoint)i=i||!!d.containPoint(r);else if(f==="seriesModels"){var v=this._chartsMap[c.__viewId];v&&v.containPoint&&(i=i||v.containPoint(r,c))}},this)},this),!!i},e.prototype.getVisual=function(n,r){var a=this._model,i=p0(a,n,{defaultMainType:"series"}),o=i.seriesModel,u=o.getData(),f=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?u.indexOfRawIndex(i.dataIndex):null;return f!=null?QH(u,f,r):KH(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;P(YF,function(r){var a=function(i){var o=n.getModel(),u=i.target,f,c=r==="globalout";if(c?f={}:u&&wf(u,function(y){var _=qt(y);if(_&&_.dataIndex!=null){var S=_.dataModel||o.getSeriesByIndex(_.seriesIndex);return f=S&&S.getDataParams(_.dataIndex,_.dataType,u)||{},!0}else if(_.eventData)return f=st({},_.eventData),!0},!0),f){var d=f.componentType,v=f.componentIndex;(d==="markLine"||d==="markPoint"||d==="markArea")&&(d="series",v=f.seriesIndex);var p=d&&v!=null&&o.getComponent(d,v),g=p&&n[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];f.event=i,f.type=r,n._$eventProcessor.eventInfo={targetEl:u,packedEvent:f,model:p,view:g},n.trigger(r,f)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),P(If,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),P(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),tF(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&&ER(this.getDom(),o1,"");var r=this,a=r._api,i=r._model;P(r._componentsViews,function(o){o.dispose(i,a)}),P(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete ol[r.id]},e.prototype.resize=function(n){if(!this[hn]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=n&&n.silent;this[Gn]&&(i==null&&(i=this[Gn].silent),a=!0,this[Gn]=null),this[hn]=!0;try{a&&ms(this),Ii.update.call(this,{type:"resize",animation:st({duration:0},n&&n.animation)})}catch(o){throw this[hn]=!1,o}this[hn]=!1,rf.call(this,i),af.call(this,i)}}},e.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(St(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!R_[n]){var a=R_[n](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(n){var r=st({},n);return r.type=If[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(St(r)||(r={silent:!!r}),!!wv[n.type]&&this._model){if(this[hn]){this._pendingActions.push(n);return}var a=r.silent;Z0.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&Dt.browser.weChat&&this._throttledZrFlush(),rf.call(this,a),af.call(this,a)}},e.prototype.updateLabelLayout=function(){$r.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){ms=function(v){var p=v._scheduler;p.restorePipelines(v._model),p.prepareStageTasks(),Y0(v,!0),Y0(v,!1),p.plan()},Y0=function(v,p){for(var g=v._model,y=v._scheduler,_=p?v._componentsViews:v._chartsViews,S=p?v._componentsMap:v._chartsMap,x=v._zr,M=v._api,C=0;C<_.length;C++)_[C].__alive=!1;p?g.eachComponent(function(D,E){D!=="series"&&T(E)}):g.eachSeries(T);function T(D){var E=D.__requireNewView;D.__requireNewView=!1;var z="_ec_"+D.id+"_"+D.type,I=!E&&S[z];if(!I){var N=pa(D.type),L=p?yn.getClass(N.main,N.sub):Dn.getClass(N.sub);I=new L,I.init(g,M),S[z]=I,_.push(I),x.add(I.group)}D.__viewId=I.__id=z,I.__alive=!0,I.__model=D,I.group.__ecComponentInfo={mainType:D.mainType,index:D.componentIndex},!p&&y.prepareView(I,D,g,M)}for(var C=0;C<_.length;){var R=_[C];R.__alive?C++:(!p&&R.renderTask.dispose(),x.remove(R.group),R.dispose(g,M),_.splice(C,1),S[R.__id]===R&&delete S[R.__id],R.__id=R.group.__ecComponentInfo=null)}},cd=function(v,p,g,y,_){var S=v._model;if(S.setUpdatePayload(g),!y){P([].concat(v._componentsViews).concat(v._chartsViews),R);return}var x={};x[y+"Id"]=g[y+"Id"],x[y+"Index"]=g[y+"Index"],x[y+"Name"]=g[y+"Name"];var M={mainType:y,query:x};_&&(M.subType=_);var C=g.excludeSeriesId,T;C!=null&&(T=wt(),P(We(C),function(D){var E=Xn(D,null);E!=null&&T.set(E,!0)})),S&&S.eachComponent(M,function(D){var E=T&&T.get(D.id)!=null;if(!E)if(iT(g))if(D instanceof Wn)g.type===il&&!g.notBlur&&!D.get(["emphasis","disabled"])&&$k(D,g,v._api);else{var z=LS(D.mainType,D.componentIndex,g.name,v._api),I=z.focusSelf,N=z.dispatchers;g.type===il&&I&&!g.notBlur&&h_(D.mainType,D.componentIndex,v._api),N&&P(N,function(L){g.type===il?lv(L):sv(L)})}else v_(g)&&D instanceof Wn&&(Kk(D,g,v._api),rT(D),Cr(v))},v),S&&S.eachComponent(M,function(D){var E=T&&T.get(D.id)!=null;E||R(v[y==="series"?"_chartsMap":"_componentsMap"][D.__viewId])},v);function R(D){D&&D.__alive&&D[p]&&D[p](D.__model,S,v._api,g)}},Ii={prepareAndUpdate:function(v){ms(this),Ii.update.call(this,v,{optionChanged:v.newOption!=null})},update:function(v,p){var g=this._model,y=this._api,_=this._zr,S=this._coordSysMgr,x=this._scheduler;if(g){g.setUpdatePayload(v),x.restoreData(g,v),x.performSeriesTasks(g),S.create(g,y),x.performDataProcessorTasks(g,v),X0(this,g),S.update(g,y),n(g),x.performVisualTasks(g,v),$0(this,g,y,v,p);var M=g.get("backgroundColor")||"transparent",C=g.get("darkMode");_.setBackgroundColor(M),C!=null&&C!=="auto"&&_.setDarkMode(C),$r.trigger("afterupdate",g,y)}},updateTransform:function(v){var p=this,g=this._model,y=this._api;if(g){g.setUpdatePayload(v);var _=[];g.eachComponent(function(x,M){if(x!=="series"){var C=p.getViewOfComponentModel(M);if(C&&C.__alive)if(C.updateTransform){var T=C.updateTransform(M,g,y,v);T&&T.update&&_.push(C)}else _.push(C)}});var S=wt();g.eachSeries(function(x){var M=p._chartsMap[x.__viewId];if(M.updateTransform){var C=M.updateTransform(x,g,y,v);C&&C.update&&S.set(x.uid,1)}else S.set(x.uid,1)}),n(g),this._scheduler.performVisualTasks(g,v,{setDirty:!0,dirtyMap:S}),hd(this,g,y,v,{},S),$r.trigger("afterupdate",g,y)}},updateView:function(v){var p=this._model;p&&(p.setUpdatePayload(v),Dn.markUpdateMethod(v,"updateView"),n(p),this._scheduler.performVisualTasks(p,v,{setDirty:!0}),$0(this,p,this._api,v,{}),$r.trigger("afterupdate",p,this._api))},updateVisual:function(v){var p=this,g=this._model;g&&(g.setUpdatePayload(v),g.eachSeries(function(y){y.getData().clearAllVisual()}),Dn.markUpdateMethod(v,"updateVisual"),n(g),this._scheduler.performVisualTasks(g,v,{visualType:"visual",setDirty:!0}),g.eachComponent(function(y,_){if(y!=="series"){var S=p.getViewOfComponentModel(_);S&&S.__alive&&S.updateVisual(_,g,p._api,v)}}),g.eachSeries(function(y){var _=p._chartsMap[y.__viewId];_.updateVisual(y,g,p._api,v)}),$r.trigger("afterupdate",g,this._api))},updateLayout:function(v){Ii.update.call(this,v)}},q0=function(v,p,g,y){if(v._disposed){v.id;return}for(var _=v._model,S=v._coordSysMgr.getCoordinateSystems(),x,M=p0(_,g),C=0;C<S.length;C++){var T=S[C];if(T[p]&&(x=T[p](_,M,y))!=null)return x}},X0=function(v,p){var g=v._chartsMap,y=v._scheduler;p.eachSeries(function(_){y.updateStreamModes(_,g[_.__viewId])})},Z0=function(v,p){var g=this,y=this.getModel(),_=v.type,S=v.escapeConnect,x=wv[_],M=x.actionInfo,C=(M.update||"update").split(":"),T=C.pop(),R=C[0]!=null&&pa(C[0]);this[hn]=!0;var D=[v],E=!1;v.batch&&(E=!0,D=mt(v.batch,function(Y){return Y=Jt(st({},Y),v),Y.batch=null,Y}));var z=[],I,N=v_(v),L=iT(v);if(L&&QR(this._api),P(D,function(Y){if(I=x.action(Y,g._model,g._api),I=I||st({},Y),I.type=M.event||I.type,z.push(I),L){var Z=TS(v),H=Z.queryOptionMap,X=Z.mainTypeSpecified,U=X?H.keys()[0]:"series";cd(g,T,Y,U),Cr(g)}else N?(cd(g,T,Y,"series"),Cr(g)):R&&cd(g,T,Y,R.main,R.sub)}),T!=="none"&&!L&&!N&&!R)try{this[Gn]?(ms(this),Ii.update.call(this,v),this[Gn]=null):Ii[T].call(this,v)}catch(Y){throw this[hn]=!1,Y}if(E?I={type:M.event||_,escapeConnect:S,batch:z}:I=z[0],this[hn]=!1,!p){var F=this._messageCenter;if(F.trigger(I.type,I),N){var G={type:"selectchanged",escapeConnect:S,selected:Jk(y),isFromClick:v.isFromClick||!1,fromAction:v.type,fromActionPayload:v};F.trigger(G.type,G)}}},rf=function(v){for(var p=this._pendingActions;p.length;){var g=p.shift();Z0.call(this,g,v)}},af=function(v){!v&&this.trigger("updated")},bA=function(v,p){v.on("rendered",function(g){p.trigger("rendered",g),v.animation.isFinished()&&!p[Gn]&&!p._scheduler.unfinished&&!p._pendingActions.length&&p.trigger("finished")})},xA=function(v,p){v.on("mouseover",function(g){var y=g.target,_=wf(y,d_);_&&(Wk(_,g,p._api),Cr(p))}).on("mouseout",function(g){var y=g.target,_=wf(y,d_);_&&(Qk(_,g,p._api),Cr(p))}).on("click",function(g){var y=g.target,_=wf(y,function(M){return qt(M).dataIndex!=null},!0);if(_){var S=_.selected?"unselect":"select",x=qt(_);p._api.dispatchAction({type:S,dataType:x.dataType,dataIndexInside:x.dataIndex,seriesIndex:x.seriesIndex,isFromClick:!0})}})};function n(v){v.clearColorPalette(),v.eachSeries(function(p){p.clearColorPalette()})}function r(v){var p=[],g=[],y=!1;if(v.eachComponent(function(M,C){var T=C.get("zlevel")||0,R=C.get("z")||0,D=C.getZLevelKey();y=y||!!D,(M==="series"?g:p).push({zlevel:T,z:R,idx:C.componentIndex,type:M,key:D})}),y){var _=p.concat(g),S,x;Ld(_,function(M,C){return M.zlevel===C.zlevel?M.z-C.z:M.zlevel-C.zlevel}),P(_,function(M){var C=v.getComponent(M.type,M.idx),T=M.zlevel,R=M.key;S!=null&&(T=Math.max(S,T)),R?(T===S&&R!==x&&T++,x=R):x&&(T===S&&T++,x=""),S=T,C.setZLevel(T)})}}$0=function(v,p,g,y,_){r(p),wA(v,p,g,y,_),P(v._chartsViews,function(S){S.__alive=!1}),hd(v,p,g,y,_),P(v._chartsViews,function(S){S.__alive||S.remove(p,g)})},wA=function(v,p,g,y,_,S){P(S||v._componentsViews,function(x){var M=x.__model;c(M,x),x.render(M,p,g,y),u(M,x),d(M,x)})},hd=function(v,p,g,y,_,S){var x=v._scheduler;_=st(_||{},{updatedSeries:p.getSeries()}),$r.trigger("series:beforeupdate",p,g,_);var M=!1;p.eachSeries(function(C){var T=v._chartsMap[C.__viewId];T.__alive=!0;var R=T.renderTask;x.updatePayload(R,y),c(C,T),S&&S.get(C.uid)&&R.dirty(),R.perform(x.getPerformArgs(R))&&(M=!0),T.group.silent=!!C.get("silent"),o(C,T),rT(C)}),x.unfinished=M||x.unfinished,$r.trigger("series:layoutlabels",p,g,_),$r.trigger("series:transition",p,g,_),p.eachSeries(function(C){var T=v._chartsMap[C.__viewId];u(C,T),d(C,T)}),i(v,p),$r.trigger("series:afterupdate",p,g,_)},Cr=function(v){v[U0]=!0,v.getZr().wakeUp()},CA=function(v){v[U0]&&(v.getZr().storage.traverse(function(p){Lf(p)||a(p)}),v[U0]=!1)};function a(v){for(var p=[],g=v.currentStates,y=0;y<g.length;y++){var _=g[y];_==="emphasis"||_==="blur"||_==="select"||p.push(_)}v.selected&&v.states.select&&p.push("select"),v.hoverState===jv&&v.states.emphasis?p.push("emphasis"):v.hoverState===Uv&&v.states.blur&&p.push("blur"),v.useStates(p)}function i(v,p){var g=v._zr,y=g.storage,_=0;y.traverse(function(S){S.isGroup||_++}),_>p.get("hoverLayerThreshold")&&!Dt.node&&!Dt.worker&&p.eachSeries(function(S){if(!S.preventUsingHoverLayer){var x=v._chartsMap[S.__viewId];x.__alive&&x.eachRendered(function(M){M.states.emphasis&&(M.states.emphasis.hoverLayer=!0)})}})}function o(v,p){var g=v.get("blendMode")||null;p.eachRendered(function(y){y.isGroup||(y.style.blend=g)})}function u(v,p){if(!v.preventAutoZ){var g=v.get("z")||0,y=v.get("zlevel")||0;p.eachRendered(function(_){return f(_,g,y,-1/0),!0})}}function f(v,p,g,y){var _=v.getTextContent(),S=v.getTextGuideLine(),x=v.isGroup;if(x)for(var M=v.childrenRef(),C=0;C<M.length;C++)y=Math.max(f(M[C],p,g,y),y);else v.z=p,v.zlevel=g,y=Math.max(v.z2,y);if(_&&(_.z=p,_.zlevel=g,isFinite(y)&&(_.z2=y+2)),S){var T=v.textGuideLineConfig;S.z=p,S.zlevel=g,isFinite(y)&&(S.z2=y+(T&&T.showAbove?1:-1))}return y}function c(v,p){p.eachRendered(function(g){if(!Lf(g)){var y=g.getTextContent(),_=g.getTextGuideLine();g.stateTransition&&(g.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),_&&_.stateTransition&&(_.stateTransition=null),g.hasState()?(g.prevStates=g.currentStates,g.clearStates()):g.prevStates&&(g.prevStates=null)}})}function d(v,p){var g=v.getModel("stateAnimation"),y=v.isAnimationEnabled(),_=g.get("duration"),S=_>0?{duration:_,delay:g.get("delay"),easing:g.get("easing")}:null;p.eachRendered(function(x){if(x.states&&x.states.emphasis){if(Lf(x))return;if(x instanceof oe&&aP(x),x.__dirty){var M=x.prevStates;M&&x.useStates(M)}if(y){x.stateTransition=S;var C=x.getTextContent(),T=x.getTextGuideLine();C&&(C.stateTransition=S),T&&(T.stateTransition=S)}x.__dirty&&a(x)}})}MA=function(v){return new((function(p){ut(g,p);function g(){return p!==null&&p.apply(this,arguments)||this}return g.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},g.prototype.getComponentByElement=function(y){for(;y;){var _=y.__ecComponentInfo;if(_!=null)return v._model.getComponent(_.mainType,_.index);y=y.parent}},g.prototype.enterEmphasis=function(y,_){lv(y,_),Cr(v)},g.prototype.leaveEmphasis=function(y,_){sv(y,_),Cr(v)},g.prototype.enterBlur=function(y){Zk(y),Cr(v)},g.prototype.leaveBlur=function(y){XR(y),Cr(v)},g.prototype.enterSelect=function(y){ZR(y),Cr(v)},g.prototype.leaveSelect=function(y){$R(y),Cr(v)},g.prototype.getModel=function(){return v.getModel()},g.prototype.getViewOfComponentModel=function(y){return v.getViewOfComponentModel(y)},g.prototype.getViewOfSeriesModel=function(y){return v.getViewOfSeriesModel(y)},g})(kE))(v)},DL=function(v){function p(g,y){for(var _=0;_<g.length;_++){var S=g[_];S[j0]=y}}P(If,function(g,y){v._messageCenter.on(y,function(_){if(Cv[v.group]&&v[j0]!==SA){if(_&&_.escapeConnect)return;var S=v.makeActionFromEvent(_),x=[];P(ol,function(M){M!==v&&M.group===v.group&&x.push(M)}),p(x,SA),P(x,function(M){M[j0]!==UF&&M.dispatchAction(S)}),p(x,jF)}})})}})(),e})(ta),i1=xv.prototype;i1.on=wL("on");i1.off=wL("off");i1.one=function(t,e,n){var r=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,a)}this.on.call(this,t,a,n)};var YF=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var wv={},If={},A_=[],D_=[],Mv=[],RL={},R_={},ol={},Cv={},qF=+new Date-0,XF=+new Date-0,o1="_echarts_instance_";function ZF(t,e,n){var r=!(n&&n.ssr);if(r){var a=l1(t);if(a)return a}var i=new xv(t,e,n);return i.id="ec_"+qF++,ol[i.id]=i,r&&ER(t,o1,i.id),DL(i),$r.trigger("afterinit",i),i}function $F(t){if(ct(t)){var e=t;t=null,P(e,function(n){n.group!=null&&(t=n.group)}),t=t||"g_"+XF++,P(e,function(n){n.group=t})}return Cv[t]=!0,t}function EL(t){Cv[t]=!1}var WF=EL;function QF(t){pt(t)?t=ol[t]:t instanceof xv||(t=l1(t)),t instanceof xv&&!t.isDisposed()&&t.dispose()}function l1(t){return ol[PB(t,o1)]}function KF(t){return ol[t]}function s1(t,e){RL[t]=e}function u1(t){Xt(D_,t)<0&&D_.push(t)}function f1(t,e){c1(A_,t,e,BF)}function LL(t){hp("afterinit",t)}function OL(t){hp("afterupdate",t)}function hp(t,e){$r.on(t,e)}function so(t,e,n){Rt(e)&&(n=e,e="");var r=St(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,!If[e]&&(ga(_A.test(r)&&_A.test(e)),wv[r]||(wv[r]={action:n,actionInfo:t}),If[e]=r)}function zL(t,e){op.register(t,e)}function JF(t){var e=op.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function NL(t,e){c1(Mv,t,e,_L,"layout")}function uo(t,e){c1(Mv,t,e,SL,"visual")}var TA=[];function c1(t,e,n,r,a){if((Rt(e)||St(e))&&(n=e,e=r),!(Xt(TA,n)>=0)){TA.push(n);var i=iL.wrapStageHandler(n,a);i.__prio=e,i.__raw=n,t.push(i)}}function h1(t,e){R_[t]=e}function tV(t){V2({createCanvas:t})}function IL(t,e,n){var r=yL("registerMap");r&&r(t,e,n)}function eV(t){var e=yL("getMap");return e&&e(t)}var BL=aH;uo(a1,NH);uo(cp,IH);uo(cp,BH);uo(a1,$H);uo(cp,WH);uo(bL,DF);u1(HE);f1(NF,F4);h1("default",kH);so({type:il,event:il,update:il},gn);so({type:Bd,event:Bd,update:Bd},gn);so({type:Df,event:Df,update:Df},gn);so({type:kd,event:kd,update:kd},gn);so({type:Rf,event:Rf,update:Rf},gn);s1("light",XH);s1("dark",uL);var nV={};function of(t){return t==null?0:t.length||1}function AA(t){return t}var rV=(function(){function t(e,n,r,a,i,o){this._old=e,this._new=n,this._oldKeyGetter=r||AA,this._newKeyGetter=a||AA,this.context=i,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,n=this._new,r={},a=new Array(e.length),i=new Array(n.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var u=a[o],f=r[u],c=of(f);if(c>1){var d=f.shift();f.length===1&&(r[u]=f[0]),this._update&&this._update(d,o)}else c===1?(r[u]=null,this._update&&this._update(f,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(n,a,o,"_newKeyGetter");for(var u=0;u<i.length;u++){var f=i[u],c=r[f],d=a[f],v=of(c),p=of(d);if(v>1&&p===1)this._updateManyToOne&&this._updateManyToOne(d,c),a[f]=null;else if(v===1&&p>1)this._updateOneToMany&&this._updateOneToMany(d,c),a[f]=null;else if(v===1&&p===1)this._update&&this._update(d,c),a[f]=null;else if(v>1&&p>1)this._updateManyToMany&&this._updateManyToMany(d,c),a[f]=null;else if(v>1)for(var g=0;g<v;g++)this._remove&&this._remove(c[g]);else this._remove&&this._remove(c)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,n){for(var r=0;r<e.length;r++){var a=e[r],i=n[a],o=of(i);if(o>1)for(var u=0;u<o;u++)this._add&&this._add(i[u]);else o===1&&this._add&&this._add(i);n[a]=null}},t.prototype._initIndexMap=function(e,n,r,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var u="_ec_"+this[a](e[o],o);if(i||(r[o]=u),!!n){var f=n[u],c=of(f);c===0?(n[u]=o,i&&r.push(u)):c===1?n[u]=[f,o]:f.push(o)}}},t})(),aV=(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 iV(t,e){var n={},r=n.encode={},a=wt(),i=[],o=[],u={};P(t.dimensions,function(p){var g=t.getDimensionInfo(p),y=g.coordDim;if(y){var _=g.coordDimIndex;W0(r,y)[_]=p,g.isExtraCoord||(a.set(y,1),lV(g.type)&&(i[0]=p),W0(u,y)[_]=t.getDimensionIndex(g.name)),g.defaultTooltip&&o.push(p)}OE.each(function(S,x){var M=W0(r,x),C=g.otherDims[x];C!=null&&C!==!1&&(M[C]=g.name)})});var f=[],c={};a.each(function(p,g){var y=r[g];c[g]=y[0],f=f.concat(y)}),n.dataDimsOnCoord=f,n.dataDimIndicesOnCoord=mt(f,function(p){return t.getDimensionInfo(p).storeDimIndex}),n.encodeFirstDimNotExtra=c;var d=r.label;d&&d.length&&(i=d.slice());var v=r.tooltip;return v&&v.length?o=v.slice():o.length||(o=i.slice()),r.defaultedLabel=i,r.defaultedTooltip=o,n.userOutput=new aV(u,e),n}function W0(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function oV(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function lV(t){return!(t==="ordinal"||t==="time")}var Vd=(function(){function t(e){this.otherDims={},e!=null&&st(this,e)}return t})(),sV=Me(),uV={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},kL=(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=FL(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=GE(this.source),r=!VL(e),a="",i=[],o=0,u=0;o<e;o++){var f=void 0,c=void 0,d=void 0,v=this.dimensions[u];if(v&&v.storeDimIndex===o)f=n?v.name:null,c=v.type,d=v.ordinalMeta,u++;else{var p=this.getSourceDimension(o);p&&(f=n?p.name:null,c=p.type)}i.push({property:f,type:c,ordinalMeta:d}),n&&f!=null&&(!v||!v.isCalculationCoord)&&(a+=r?f.replace(/\`/g,"`1").replace(/\$/g,"`2"):f),a+="$",a+=uV[c]||"f",d&&(a+=d.uid),a+="$"}var g=this.source,y=[g.seriesLayoutBy,g.startIndex,a].join("$$");return{dimensions:i,hash:y}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],n=0,r=0;n<this._fullDimCount;n++){var a=void 0,i=this.dimensions[r];if(i&&i.storeDimIndex===n)i.isCalculationCoord||(a=i.name),r++;else{var o=this.getSourceDimension(n);o&&(a=o.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function PL(t){return t instanceof kL}function HL(t){for(var e=wt(),n=0;n<(t||[]).length;n++){var r=t[n],a=St(r)?r.name:r;a!=null&&e.get(a)==null&&e.set(a,n)}return e}function FL(t){var e=sV(t);return e.dimNameMap||(e.dimNameMap=HL(t.dimensionsDefine))}function VL(t){return t>30}var lf=St,Bi=mt,fV=typeof Int32Array>"u"?Array:Int32Array,cV="e\0\0",DA=-1,hV=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],dV=["_approximateExtent"],RA,dd,sf,uf,Q0,ff,K0,d1=(function(){function t(e,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,a=!1;PL(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],u={},f=!1,c={},d=0;d<r.length;d++){var v=r[d],p=pt(v)?new Vd({name:v}):v instanceof Vd?v:new Vd(v),g=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=g,p.coordDimIndex=0);var y=p.otherDims=p.otherDims||{};o.push(g),i[g]=p,c[g]!=null&&(f=!0),p.createInvertedIndices&&(u[g]=[]),y.itemName===0&&(this._nameDimIdx=d),y.itemId===0&&(this._idDimIdx=d),a&&(p.storeDimIndex=d)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(f),this.hostModel=n,this._invertedIndicesMap=u,this._dimOmitted){var _=this._dimIdxToName=wt();P(o,function(S){_.set(i[S].storeDimIndex,S)})}}return t.prototype.getDimension=function(e){var n=this._recognizeDimIndex(e);if(n==null)return e;if(n=e,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var a=this._schema.getSourceDimension(n);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var n=this._recognizeDimIndex(e);if(n!=null)return n;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(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 a=r.encode[e];return a?a[n]:null},t.prototype.mapDimensionsAll=function(e){var n=this._dimSummary,r=n.encode[e];return(r||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,n,r){var a=this,i;if(e instanceof __&&(i=e),!i){var o=this.dimensions,u=JS(e)||mn(e)?new UE(e,o.length):e;i=new __;var f=Bi(o,function(c){return{type:a._dimInfos[c].type,property:c}});i.initData(u,f,r)}this._store=i,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=iV(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var n=this._store.appendData(e);this._doInit(n[0],n[1])},t.prototype.appendValues=function(e,n){var r=this._store.appendValues(e,n&&n.length),a=r.start,i=r.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var u=a;u<i;u++){var f=u-a;this._nameList[u]=n[f],o&&K0(this,u)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,n=this.dimensions,r=0;r<n.length;r++){var a=this._dimInfos[n[r]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==to&&!e.fillStorage},t.prototype._doInit=function(e,n){if(!(e>=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,u=a.getSource().sourceFormat,f=u===Fr;if(f&&!a.pure)for(var c=[],d=e;d<n;d++){var v=a.getItem(d,c);if(!this.hasItemOption&&AB(v)&&(this.hasItemOption=!0),v){var p=v.name;i[d]==null&&p!=null&&(i[d]=Xn(p,null));var g=v.id;o[d]==null&&g!=null&&(o[d]=Xn(g,null))}}if(this._shouldMakeIdFromName())for(var d=e;d<n;d++)K0(this,d);RA(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){lf(e)?st(this._calculationInfo,e):this._calculationInfo[e]=n},t.prototype.getName=function(e){var n=this.getRawIndex(e),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=sf(this,this._nameDimIdx,n)),r==null&&(r=""),r},t.prototype._getCategory=function(e,n){var r=this._store.get(e,n),a=this._store.getOrdinalMeta(e);return a?a.categories[r]:r},t.prototype.getId=function(e){return dd(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.get(a.storeDimIndex,n)},t.prototype.getByRawIndex=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.getByRawIndex(a.storeDimIndex,n)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,n){var r=this,a=this._store;return ct(e)?a.getValues(Bi(e,function(i){return r._getStoreDimIndex(i)}),n):a.getValues(e)},t.prototype.hasValue=function(e){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,a=n.length;r<a;r++)if(isNaN(this._store.get(n[r],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===e)return n;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,n){var r=e&&this._invertedIndicesMap[e],a=r&&r[n];return a==null||isNaN(a)?DA:a},t.prototype.indicesOfNearest=function(e,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),n,r)},t.prototype.each=function(e,n,r){Rt(e)&&(r=n,n=e,e=[]);var a=r||this,i=Bi(uf(e),this._getStoreDimIndex,this);this._store.each(i,a?xt(n,a):n)},t.prototype.filterSelf=function(e,n,r){Rt(e)&&(r=n,n=e,e=[]);var a=r||this,i=Bi(uf(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?xt(n,a):n),this},t.prototype.selectRange=function(e){var n=this,r={},a=ae(e);return P(a,function(i){var o=n._getStoreDimIndex(i);r[o]=e[i]}),this._store=this._store.selectRange(r),this},t.prototype.mapArray=function(e,n,r){Rt(e)&&(r=n,n=e,e=[]),r=r||this;var a=[];return this.each(e,function(){a.push(n&&n.apply(this,arguments))},r),a},t.prototype.map=function(e,n,r,a){var i=r||a||this,o=Bi(uf(e),this._getStoreDimIndex,this),u=ff(this);return u._store=this._store.map(o,i?xt(n,i):n),u},t.prototype.modify=function(e,n,r,a){var i=r||a||this,o=Bi(uf(e),this._getStoreDimIndex,this);this._store.modify(o,i?xt(n,i):n)},t.prototype.downSample=function(e,n,r,a){var i=ff(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),n,r,a),i},t.prototype.minmaxDownSample=function(e,n){var r=ff(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),n),r},t.prototype.lttbDownSample=function(e,n){var r=ff(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 xe(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new rV(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return dd(e,r)},function(r){return dd(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||{},lf(e)?st(this._visual,e):this._visual[e]=n},t.prototype.getItemVisual=function(e,n){var r=this._itemVisuals[e],a=r&&r[n];return a??this.getVisual(n)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,n){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[n];return i==null&&(i=this.getVisual(n),ct(i)?i=i.slice():lf(i)&&(i=st({},i)),a[n]=i),i},t.prototype.setItemVisual=function(e,n,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,lf(n)?st(a,n):a[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){lf(e)?st(this._layout,e):this._layout[e]=n},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,n,r){this._itemLayouts[e]=r?st(this._itemLayouts[e]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,n){var r=this.hostModel&&this.hostModel.seriesIndex;Pk(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){P(this._graphicEls,function(r,a){r&&e&&e.call(n,r,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Bi(this.dimensions,this._getDimInfo,this),this.hostModel)),Q0(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];Rt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(Bv(arguments)))})},t.internalField=(function(){RA=function(e){var n=e._invertedIndicesMap;P(n,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,u=e._store;if(o){r=n[a]=new fV(o.categories.length);for(var f=0;f<r.length;f++)r[f]=DA;for(var f=0;f<u.count();f++)r[u.get(i.storeDimIndex,f)]=f}})},sf=function(e,n,r){return Xn(e._getCategory(n,r),null)},dd=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=sf(e,e._idDimIdx,n)),r==null&&(r=cV+n),r},uf=function(e){return ct(e)||(e=e!=null?[e]:[]),e},ff=function(e){var n=new t(e._schema?e._schema:Bi(e.dimensions,e._getDimInfo,e),e.hostModel);return Q0(n,e),n},Q0=function(e,n){P(hV.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,P(dV,function(r){e[r]=Ht(n[r])}),e._calculationInfo=st({},n._calculationInfo)},K0=function(e,n){var r=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,u=r[n],f=a[n];if(u==null&&i!=null&&(r[n]=u=sf(e,i,n)),f==null&&o!=null&&(a[n]=f=sf(e,o,n)),f==null&&u!=null){var c=e._nameRepeatCount,d=c[u]=(c[u]||0)+1;f=u,d>1&&(f+="__ec__"+d),a[n]=f}}})(),t})();function vV(t,e){return v1(t,e).dimensions}function v1(t,e){JS(t)||(t=FE(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=wt(),i=[],o=gV(t,n,r,e.dimensionsCount),u=e.canOmitUnusedDimensions&&VL(o),f=r===t.dimensionsDefine,c=f?FL(t):HL(r),d=e.encodeDefine;!d&&e.encodeDefaulter&&(d=e.encodeDefaulter(t,o));for(var v=wt(d),p=new ZE(o),g=0;g<p.length;g++)p[g]=-1;function y(I){var N=p[I];if(N<0){var L=r[I],F=St(L)?L:{name:L},G=new Vd,Y=F.name;Y!=null&&c.get(Y)!=null&&(G.name=G.displayName=Y),F.type!=null&&(G.type=F.type),F.displayName!=null&&(G.displayName=F.displayName);var Z=i.length;return p[I]=Z,G.storeDimIndex=I,i.push(G),G}return i[N]}if(!u)for(var g=0;g<o;g++)y(g);v.each(function(I,N){var L=We(I).slice();if(L.length===1&&!pt(L[0])&&L[0]<0){v.set(N,!1);return}var F=v.set(N,[]);P(L,function(G,Y){var Z=pt(G)?c.get(G):G;Z!=null&&Z<o&&(F[Y]=Z,S(y(Z),N,Y))})});var _=0;P(n,function(I){var N,L,F,G;if(pt(I))N=I,G={};else{G=I,N=G.name;var Y=G.ordinalMeta;G.ordinalMeta=null,G=st({},G),G.ordinalMeta=Y,L=G.dimsDef,F=G.otherDims,G.name=G.coordDim=G.coordDimIndex=G.dimsDef=G.otherDims=null}var Z=v.get(N);if(Z!==!1){if(Z=We(Z),!Z.length)for(var H=0;H<(L&&L.length||1);H++){for(;_<o&&y(_).coordDim!=null;)_++;_<o&&Z.push(_++)}P(Z,function(X,U){var W=y(X);if(f&&G.type!=null&&(W.type=G.type),S(Jt(W,G),N,U),W.name==null&&L){var it=L[U];!St(it)&&(it={name:it}),W.name=W.displayName=it.name,W.defaultTooltip=it.defaultTooltip}F&&Jt(W.otherDims,F)})}});function S(I,N,L){OE.get(N)!=null?I.otherDims[N]=L:(I.coordDim=N,I.coordDimIndex=L,a.set(N,!0))}var x=e.generateCoord,M=e.generateCoordCount,C=M!=null;M=x?M||1:0;var T=x||"value";function R(I){I.name==null&&(I.name=I.coordDim)}if(u)P(i,function(I){R(I)}),i.sort(function(I,N){return I.storeDimIndex-N.storeDimIndex});else for(var D=0;D<o;D++){var E=y(D),z=E.coordDim;z==null&&(E.coordDim=mV(T,a,C),E.coordDimIndex=0,(!x||M<=0)&&(E.isExtraCoord=!0),M--),R(E),E.type==null&&(IE(t,D)===rn.Must||E.isExtraCoord&&(E.otherDims.itemName!=null||E.otherDims.seriesName!=null))&&(E.type="ordinal")}return pV(i),new kL({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:u})}function pV(t){for(var e=wt(),n=0;n<t.length;n++){var r=t[n],a=r.name,i=e.get(a)||0;i>0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function gV(t,e,n,r){var a=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return P(e,function(i){var o;St(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function mV(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 yV=(function(){function t(e){this.coordSysDims=[],this.axisMap=wt(),this.categoryAxisMap=wt(),this.coordSysName=e}return t})();function _V(t){var e=t.get("coordinateSystem"),n=new yV(e),r=SV[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var SV={cartesian2d:function(t,e,n,r){var a=t.getReferringComponents("xAxis",Zn).models[0],i=t.getReferringComponents("yAxis",Zn).models[0];e.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),ys(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),ys(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var a=t.getReferringComponents("singleAxis",Zn).models[0];e.coordSysDims=["single"],n.set("single",a),ys(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var a=t.getReferringComponents("polar",Zn).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),ys(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),ys(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();P(i.parallelAxisIndex,function(u,f){var c=a.getComponent("parallelAxis",u),d=o[f];n.set(d,c),ys(c)&&(r.set(d,c),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=f))})}};function ys(t){return t.get("type")==="category"}function GL(t,e,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,u;bV(e)?i=e:(o=e.schema,i=o.dimensions,u=e.store);var f=!!(t&&t.get("stack")),c,d,v,p;if(P(i,function(M,C){pt(M)&&(i[C]=M={name:M}),f&&!M.isExtraCoord&&(!r&&!c&&M.ordinalMeta&&(c=M),!d&&M.type!=="ordinal"&&M.type!=="time"&&(!a||a===M.coordDim)&&(d=M))}),d&&!r&&!c&&(r=!0),d){v="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var g=d.coordDim,y=d.type,_=0;P(i,function(M){M.coordDim===g&&_++});var S={name:v,coordDim:g,coordDimIndex:_,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},x={name:p,coordDim:p,coordDimIndex:_+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(u&&(S.storeDimIndex=u.ensureCalculationDimension(p,y),x.storeDimIndex=u.ensureCalculationDimension(v,y)),o.appendCalculationDimension(S),o.appendCalculationDimension(x)):(i.push(S),i.push(x))}return{stackedDimension:d&&d.name,stackedByDimension:c&&c.name,isStackedByIndex:r,stackedOverDimension:p,stackResultDimension:v}}function bV(t){return!PL(t.schema)}function vl(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function UL(t,e){return vl(t,e)?t.getCalculationInfo("stackResultDimension"):e}function xV(t,e){var n=t.get("coordinateSystem"),r=op.get(n),a;return e&&e.coordSysDims&&(a=mt(e.coordSysDims,function(i){var o={name:i},u=e.axisMap.get(i);if(u){var f=u.get("type");o.type=oV(f)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function wV(t,e,n){var r,a;return n&&P(t,function(i,o){var u=i.coordDim,f=n.categoryAxisMap.get(u);f&&(r==null&&(r=o),i.ordinalMeta=f.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(t[r].otherDims.itemName=0),r}function dp(t,e,n){n=n||{};var r=e.getSourceManager(),a,i=!1;a=r.getSource(),i=a.sourceFormat===Fr;var o=_V(e),u=xV(e,o),f=n.useEncodeDefaulter,c=Rt(f)?f:f?be(p4,u,e):null,d={coordDimensions:u,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!i},v=v1(a,d),p=wV(v.dimensions,n.createInvertedIndices,o),g=i?null:r.getSharedDataStore(v),y=GL(e,{schema:v,store:g}),_=new d1(v,e);_.setCalculationInfo(y);var S=p!=null&&MV(a)?function(x,M,C,T){return T===p?C:this.defaultDimValueGetter(x,M,C,T)}:null;return _.hasItemOption=!1,_.initData(i?a:g,null,S),_}function MV(t){if(t.sourceFormat===Fr){var e=CV(t.data||[]);return!ct(fc(e))}}function CV(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var ba=(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})();Fv(ba);var TV=0,E_=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++TV}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&mt(r,AV);return new t({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var n,r=this._needCollect;if(!pt(e)&&!r)return e;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,n;var a=this._getOrCreateMap();return n=a.get(e),n==null&&(r?(n=this.categories.length,this.categories[n]=e,a.set(e,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=wt(this.categories))},t})();function AV(t){return St(t)&&t.value!=null?t.value:t+""}function L_(t){return t.type==="interval"||t.type==="log"}function DV(t,e,n,r){var a={},i=t[1]-t[0],o=a.interval=MS(i/e,!0);n!=null&&o<n&&(o=a.interval=n),r!=null&&o>r&&(o=a.interval=r);var u=a.intervalPrecision=jL(o),f=a.niceTickExtent=[Be(Math.ceil(t[0]/o)*o,u),Be(Math.floor(t[1]/o)*o,u)];return RV(f,t),a}function J0(t){var e=Math.pow(10,Hv(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Be(n*e)}function jL(t){return va(t)+2}function EA(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function RV(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),EA(t,0,e),EA(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function vp(t,e){return t>=e[0]&&t<=e[1]}function pp(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function gp(t,e){return t*(e[1]-e[0])+e[0]}var p1=(function(t){ut(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new E_({})),ct(a)&&(a=new E_({categories:mt(a,function(i){return St(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:pt(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),vp(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),pp(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(gp(n,this._extent)),this.getRawOrdinalNumber(n)},e.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},e.prototype.getMinorTicks=function(n){},e.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,u=this._ordinalMeta.categories.length,f=Math.min(u,r.length);o<f;++o){var c=r[o];a[o]=c,i[c]=o}for(var d=0;o<u;++o){for(;i[d]!=null;)d++;a.push(d),i[d]=o}},e.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[r];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(ba);ba.registerClass(p1);var Zo=Be,Gs=(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 vp(n,this._extent)},e.prototype.normalize=function(n){return pp(n,this._extent)},e.prototype.scale=function(n){return gp(n,this._extent)},e.prototype.setExtent=function(n,r){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(n){var r=this._extent;n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=jL(n)},e.prototype.getTicks=function(n){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,u=[];if(!r)return u;var f=1e4;a[0]<i[0]&&(n?u.push({value:Zo(i[0]-r,o)}):u.push({value:a[0]}));for(var c=i[0];c<=i[1]&&(u.push({value:c}),c=Zo(c+r,o),c!==u[u.length-1].value);)if(u.length>f)return[];var d=u.length?u[u.length-1].value:i[1];return a[1]>d&&(n?u.push({value:Zo(d+r,o)}):u.push({value:a[1]})),u},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<r.length;o++){for(var u=r[o],f=r[o-1],c=0,d=[],v=u.value-f.value,p=v/n;c<n-1;){var g=Zo(f.value+(c+1)*p);g>i[0]&&g<i[1]&&d.push(g),c++}a.push(d)}return a},e.prototype.getLabel=function(n,r){if(n==null)return"";var a=r&&r.precision;a==null?a=va(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Zo(n.value,a,!0);return qS(i)},e.prototype.calcNiceTicks=function(n,r,a){n=n||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var u=DV(i,n,r,a);this._intervalPrecision=u.intervalPrecision,this._interval=u.interval,this._niceExtent=u.niceTickExtent}},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var a=Math.abs(r[0]);n.fixMax||(r[1]+=a/2),r[0]-=a/2}else r[1]=1;var i=r[1]-r[0];isFinite(i)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var o=this._interval;n.fixMin||(r[0]=Zo(Math.floor(r[0]/o)*o)),n.fixMax||(r[1]=Zo(Math.ceil(r[1]/o)*o))},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e})(ba);ba.registerClass(Gs);var YL=typeof Float32Array<"u",EV=YL?Float32Array:Array;function Wa(t){return ct(t)?YL?new Float32Array(t):t:new EV(t)}var LV="__ec_stack_";function qL(t){return t.get("stack")||LV+t.seriesIndex}function g1(t){return t.dim+t.index}function XL(t,e){var n=[];return e.eachSeriesByType(t,function(r){$L(r)&&n.push(r)}),n}function OV(t){var e={};P(t,function(f){var c=f.coordinateSystem,d=c.getBaseAxis();if(!(d.type!=="time"&&d.type!=="value"))for(var v=f.getData(),p=d.dim+"_"+d.index,g=v.getDimensionIndex(v.mapDimension(d.dim)),y=v.getStore(),_=0,S=y.count();_<S;++_){var x=y.get(g,_);e[p]?e[p].push(x):e[p]=[x]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort(function(f,c){return f-c});for(var i=null,o=1;o<a.length;++o){var u=a[o]-a[o-1];u>0&&(i=i===null?u:Math.min(i,u))}n[r]=i}}return n}function ZL(t){var e=OV(t),n=[];return P(t,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),u;if(i.type==="category")u=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var f=i.dim+"_"+i.index,c=e[f],d=Math.abs(o[1]-o[0]),v=i.scale.getExtent(),p=Math.abs(v[1]-v[0]);u=c?d/p*c:d}else{var g=r.getData();u=Math.abs(o[1]-o[0])/g.count()}var y=de(r.get("barWidth"),u),_=de(r.get("barMaxWidth"),u),S=de(r.get("barMinWidth")||(WL(r)?.5:1),u),x=r.get("barGap"),M=r.get("barCategoryGap");n.push({bandWidth:u,barWidth:y,barMaxWidth:_,barMinWidth:S,barGap:x,barCategoryGap:M,axisKey:g1(i),stackId:qL(r)})}),zV(n)}function zV(t){var e={};P(t,function(r,a){var i=r.axisKey,o=r.bandWidth,u=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},f=u.stacks;e[i]=u;var c=r.stackId;f[c]||u.autoWidthCount++,f[c]=f[c]||{width:0,maxWidth:0};var 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 p=r.barMinWidth;p&&(f[c].minWidth=p);var g=r.barGap;g!=null&&(u.gap=g);var y=r.barCategoryGap;y!=null&&(u.categoryGap=y)});var n={};return P(e,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,u=r.categoryGap;if(u==null){var f=ae(i).length;u=Math.max(35-f*4,15)+"%"}var c=de(u,o),d=de(r.gap,1),v=r.remainedWidth,p=r.autoWidthCount,g=(v-c)/(p+(p-1)*d);g=Math.max(g,0),P(i,function(x){var M=x.maxWidth,C=x.minWidth;if(x.width){var T=x.width;M&&(T=Math.min(T,M)),C&&(T=Math.max(T,C)),x.width=T,v-=T+d*T,p--}else{var T=g;M&&M<T&&(T=Math.min(M,v)),C&&C>T&&(T=C),T!==g&&(x.width=T,v-=T+d*T,p--)}}),g=(v-c)/(p+(p-1)*d),g=Math.max(g,0);var y=0,_;P(i,function(x,M){x.width||(x.width=g),_=x,y+=x.width*(1+d)}),_&&(y-=_.width*d);var S=-y/2;P(i,function(x,M){n[a][M]=n[a][M]||{bandWidth:o,offset:S,width:x.width},S+=x.width*(1+d)})}),n}function NV(t,e,n){if(t&&e){var r=t[g1(e)];return r}}function IV(t,e){var n=XL(t,e),r=ZL(n);P(n,function(a){var i=a.getData(),o=a.coordinateSystem,u=o.getBaseAxis(),f=qL(a),c=r[g1(u)][f],d=c.offset,v=c.width;i.setLayout({bandWidth:c.bandWidth,offset:d,size:v})})}function BV(t){return{seriesType:t,plan:n1(),reset:function(e){if($L(e)){var n=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=n.getDimensionIndex(n.mapDimension(i.dim)),u=n.getDimensionIndex(n.mapDimension(a.dim)),f=e.get("showBackground",!0),c=n.mapDimension(i.dim),d=n.getCalculationInfo("stackResultDimension"),v=vl(n,c)&&!!n.getCalculationInfo("stackedOnSeries"),p=i.isHorizontal(),g=kV(a,i),y=WL(e),_=e.get("barMinHeight")||0,S=d&&n.getDimensionIndex(d),x=n.getLayout("size"),M=n.getLayout("offset");return{progress:function(C,T){for(var R=C.count,D=y&&Wa(R*3),E=y&&f&&Wa(R*3),z=y&&Wa(R),I=r.master.getRect(),N=p?I.width:I.height,L,F=T.getStore(),G=0;(L=C.next())!=null;){var Y=F.get(v?S:o,L),Z=F.get(u,L),H=g,X=void 0;v&&(X=+Y-F.get(o,L));var U=void 0,W=void 0,it=void 0,k=void 0;if(p){var q=r.dataToPoint([Y,Z]);if(v){var rt=r.dataToPoint([X,Z]);H=rt[0]}U=H,W=q[1]+M,it=q[0]-H,k=x,Math.abs(it)<_&&(it=(it<0?-1:1)*_)}else{var q=r.dataToPoint([Z,Y]);if(v){var rt=r.dataToPoint([Z,X]);H=rt[1]}U=q[0]+M,W=H,it=x,k=q[1]-H,Math.abs(k)<_&&(k=(k<=0?-1:1)*_)}y?(D[G]=U,D[G+1]=W,D[G+2]=p?it:k,E&&(E[G]=p?I.x:U,E[G+1]=p?W:I.y,E[G+2]=N),z[L]=L):T.setItemLayout(L,{x:U,y:W,width:it,height:k}),G+=3}y&&T.setLayout({largePoints:D,largeDataIndices:z,largeBackgroundPoints:E,valueAxisHorizontal:p})}}}}}}function $L(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function WL(t){return t.pipelineContext&&t.pipelineContext.large}function kV(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 PV=function(t,e,n,r){for(;n<r;){var a=n+r>>>1;t[a][1]<e?n=a+1:r=a}return n},QL=(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 yc(n.value,xT[a4(Os(this._minLevelUnit))]||xT.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return i4(n,r,a,o,i)},e.prototype.getTicks=function(){var n=this._interval,r=this._extent,a=[];if(!n)return a;a.push({value:r[0],level:0});var i=this.getSetting("useUTC"),o=YV(this._minLevelUnit,this._approxInterval,i,r);return a=a.concat(o),a.push({value:r[1],level:0}),a},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=Ir,r[1]+=Ir),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-Ir}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},e.prototype.calcNiceTicks=function(n,r,a){n=n||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var u=vd.length,f=Math.min(PV(vd,this._approxInterval,0,u),u-1);this._interval=vd[f][1],this._minLevelUnit=vd[Math.max(f-1,0)][0]},e.prototype.parse=function(n){return ve(n)?n:+Br(n)},e.prototype.contain=function(n){return vp(this.parse(n),this._extent)},e.prototype.normalize=function(n){return pp(this.parse(n),this._extent)},e.prototype.scale=function(n){return gp(n,this._extent)},e.type="time",e})(Gs),vd=[["second",US],["minute",jS],["hour",Of],["quarter-day",Of*6],["half-day",Of*12],["day",Ir*1.2],["half-week",Ir*3.5],["week",Ir*7],["month",Ir*31],["quarter",Ir*95],["half-year",bT/2],["year",bT]];function HV(t,e,n,r){var a=Br(e),i=Br(n),o=function(y){return wT(a,y,r)===wT(i,y,r)},u=function(){return o("year")},f=function(){return u()&&o("month")},c=function(){return f()&&o("day")},d=function(){return c()&&o("hour")},v=function(){return d()&&o("minute")},p=function(){return v()&&o("second")},g=function(){return p()&&o("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 p();case"millisecond":return g()}}function FV(t,e){return t/=Ir,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function VV(t){var e=30*Ir;return t/=e,t>6?6:t>3?3:t>2?2:1}function GV(t){return t/=Of,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function LA(t,e){return t/=e?jS:US,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function UV(t){return MS(t,!0)}function jV(t,e,n){var r=new Date(t);switch(Os(e)){case"year":case"month":r[xE(n)](0);case"day":r[wE(n)](1);case"hour":r[ME(n)](0);case"minute":r[CE(n)](0);case"second":r[TE(n)](0),r[AE(n)](0)}return r.getTime()}function YV(t,e,n,r){var a=1e4,i=SE,o=0;function u(N,L,F,G,Y,Z,H){for(var X=new Date(L),U=L,W=X[G]();U<F&&U<=r[1];)H.push({value:U}),W+=N,X[Y](W),U=X.getTime();H.push({value:U,notAdd:!0})}function f(N,L,F){var G=[],Y=!L.length;if(!HV(Os(N),r[0],r[1],n)){Y&&(L=[{value:jV(new Date(r[0]),N,n)},{value:r[1]}]);for(var Z=0;Z<L.length-1;Z++){var H=L[Z].value,X=L[Z+1].value;if(H!==X){var U=void 0,W=void 0,it=void 0,k=!1;switch(N){case"year":U=Math.max(1,Math.round(e/Ir/365)),W=YS(n),it=o4(n);break;case"half-year":case"quarter":case"month":U=VV(e),W=zs(n),it=xE(n);break;case"week":case"half-week":case"day":U=FV(e),W=np(n),it=wE(n),k=!0;break;case"half-day":case"quarter-day":case"hour":U=GV(e),W=Qf(n),it=ME(n);break;case"minute":U=LA(e,!0),W=rp(n),it=CE(n);break;case"second":U=LA(e,!1),W=ap(n),it=TE(n);break;case"millisecond":U=UV(e),W=ip(n),it=AE(n);break}u(U,H,X,W,it,k,G),N==="year"&&F.length>1&&Z===0&&F.unshift({value:F[0].value-U})}}for(var Z=0;Z<G.length;Z++)F.push(G[Z]);return G}}for(var c=[],d=[],v=0,p=0,g=0;g<i.length&&o++<a;++g){var y=Os(i[g]);if(r4(i[g])){f(i[g],c[c.length-1]||[],d);var _=i[g+1]?Os(i[g+1]):null;if(y!==_){if(d.length){p=v,d.sort(function(N,L){return N.value-L.value});for(var S=[],x=0;x<d.length;++x){var M=d[x].value;(x===0||d[x-1].value!==M)&&(S.push(d[x]),M>=r[0]&&M<=r[1]&&v++)}var C=(r[1]-r[0])/e;if(v>C*1.5&&p>C/1.5||(c.push(S),v>C||t===i[g]))break}d=[]}}}for(var T=Oe(mt(c,function(N){return Oe(N,function(L){return L.value>=r[0]&&L.value<=r[1]&&!L.notAdd})}),function(N){return N.length>0}),R=[],D=T.length-1,g=0;g<T.length;++g)for(var E=T[g],z=0;z<E.length;++z)R.push({value:E[z].value,level:D-g});R.sort(function(N,L){return N.value-L.value});for(var I=[],g=0;g<R.length;++g)(g===0||R[g].value!==R[g-1].value)&&I.push(R[g]);return I}ba.registerClass(QL);var OA=ba.prototype,Bf=Gs.prototype,qV=Be,XV=Math.floor,ZV=Math.ceil,pd=Math.pow,Yr=Math.log,m1=(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 Gs,n._interval=0,n}return e.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,i=r.getExtent(),o=Bf.getTicks.call(this,n);return mt(o,function(u){var f=u.value,c=Be(pd(this.base,f));return c=f===a[0]&&this._fixMin?gd(c,i[0]):c,c=f===a[1]&&this._fixMax?gd(c,i[1]):c,{value:c}},this)},e.prototype.setExtent=function(n,r){var a=Yr(this.base);n=Yr(Math.max(0,n))/a,r=Yr(Math.max(0,r))/a,Bf.setExtent.call(this,n,r)},e.prototype.getExtent=function(){var n=this.base,r=OA.getExtent.call(this);r[0]=pd(n,r[0]),r[1]=pd(n,r[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(r[0]=gd(r[0],i[0])),this._fixMax&&(r[1]=gd(r[1],i[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),OA.unionExtent.call(this,n)},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,a=r[1]-r[0];if(!(a===1/0||a<=0)){var i=wR(a),o=n/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var u=[Be(ZV(r[0]/i)*i),Be(XV(r[1]/i)*i)];this._interval=i,this._niceExtent=u}},e.prototype.calcNiceExtent=function(n){Bf.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),vp(n,this._extent)},e.prototype.normalize=function(n){return n=Yr(n)/Yr(this.base),pp(n,this._extent)},e.prototype.scale=function(n){return n=gp(n,this._extent),pd(this.base,n)},e.type="log",e})(ba),KL=m1.prototype;KL.getMinorTicks=Bf.getMinorTicks;KL.getLabel=Bf.getLabel;function gd(t,e){return qV(t,va(e))}ba.registerClass(m1);var $V=(function(){function t(e,n,r){this._prepareParams(e,n,r)}return t.prototype._prepareParams=function(e,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var i=n.get("min",!0);i==null&&(i=n.get("startValue",!0));var o=this._modelMinRaw=i;Rt(o)?this._modelMinNum=md(e,o({min:r[0],max:r[1]})):o!=="dataMin"&&(this._modelMinNum=md(e,o));var u=this._modelMaxRaw=n.get("max",!0);if(Rt(u)?this._modelMaxNum=md(e,u({min:r[0],max:r[1]})):u!=="dataMax"&&(this._modelMaxNum=md(e,u)),a)this._axisDataLen=n.getCategories().length;else{var f=n.get("boundaryGap"),c=ct(f)?f:[f||0,f||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[io(c[0],1),io(c[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,n=this._dataMin,r=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:r-n||Math.abs(n),u=this._modelMinRaw==="dataMin"?n:this._modelMinNum,f=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,c=u!=null,d=f!=null;u==null&&(u=e?a?0:NaN:n-i[0]*o),f==null&&(f=e?a?a-1:NaN:r+i[1]*o),(u==null||!isFinite(u))&&(u=NaN),(f==null||!isFinite(f))&&(f=NaN);var v=Ff(u)||Ff(f)||e&&!a;this._needCrossZero&&(u>0&&f>0&&!c&&(u=0),u<0&&f<0&&!d&&(f=0));var p=this._determinedMin,g=this._determinedMax;return p!=null&&(u=p,c=!0),g!=null&&(f=g,d=!0),{min:u,max:f,minFixed:c,maxFixed:d,isBlank:v}},t.prototype.modifyDataMinMax=function(e,n){this[QV[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=WV[e];this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t})(),WV={min:"_determinedMin",max:"_determinedMax"},QV={min:"_dataMin",max:"_dataMax"};function JL(t,e,n){var r=t.rawExtentInfo;return r||(r=new $V(t,e,n),t.rawExtentInfo=r,r)}function md(t,e){return e==null?null:Ff(e)?NaN:t.parse(e)}function tO(t,e){var n=t.type,r=JL(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&n==="time"){var u=XL("bar",o),f=!1;if(P(u,function(v){f=f||v.getBaseAxis()===e.axis}),f){var c=ZL(u),d=KV(a,i,e,c);a=d.min,i=d.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function KV(t,e,n,r){var a=n.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=NV(r,n.axis);if(o===void 0)return{min:t,max:e};var u=1/0;P(o,function(g){u=Math.min(g.offset,u)});var f=-1/0;P(o,function(g){f=Math.max(g.offset+g.width,f)}),u=Math.abs(u),f=Math.abs(f);var c=u+f,d=e-t,v=1-(u+f)/i,p=d/v-d;return e+=p*(f/c),t-=p*(u/c),{min:t,max:e}}function O_(t,e){var n=e,r=tO(t,n),a=r.extent,i=n.get("splitNumber");t instanceof m1&&(t.base=n.get("logBase"));var o=t.type,u=n.get("interval"),f=o==="interval"||o==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:f?n.get("minInterval"):null,maxInterval:f?n.get("maxInterval"):null}),u!=null&&t.setInterval&&t.setInterval(u)}function eO(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new p1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new QL({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(ba.getClass(e)||Gs)}}function JV(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function Us(t){var e=t.getLabelModel().get("formatter"),n=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?(function(r){return function(a,i){return t.scale.getFormattedLabel(a,i,r)}})(e):pt(e)?(function(r){return function(a){var i=t.scale.getLabel(a),o=r.replace("{value}",i??"");return o}})(e):Rt(e)?(function(r){return function(a,i){return n!=null&&(i=a.value-n),r(y1(t,a),i,a.level!=null?{level:a.level}:null)}})(e):function(r){return t.scale.getLabel(r)}}function y1(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function t6(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof p1?a=n.count():(r=n.getTicks(),a=r.length);var o=t.getLabelModel(),u=Us(t),f,c=1;a>40&&(c=Math.ceil(a/40));for(var d=0;d<a;d+=c){var v=r?r[d]:{value:i[0]+d},p=u(v,d),g=o.getTextRect(p),y=e6(g,o.get("rotate")||0);f?f.union(y):f=y}return f}}function e6(t,e){var n=e*Math.PI/180,r=t.width,a=t.height,i=r*Math.abs(Math.cos(n))+Math.abs(a*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(a*Math.cos(n)),u=new Kt(t.x,t.y,i,o);return u}function _1(t){var e=t.get("interval");return e??"auto"}function nO(t){return t.type==="category"&&_1(t.getLabelModel())===0}function rO(t,e){var n={};return P(t.mapDimensionsAll(e),function(r){n[UL(t,r)]=!0}),ae(n)}function n6(t,e,n){e&&P(rO(e,n),function(r){var a=e.getApproximateExtent(r);a[0]<t[0]&&(t[0]=a[0]),a[1]>t[1]&&(t[1]=a[1])})}var aO=(function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t})();function r6(t){return dp(null,t)}var a6={isDimensionStacked:vl,enableDataStack:GL,getStackedDimension:UL};function i6(t,e){var n=e;e instanceof xe||(n=new xe(e));var r=eO(n);return r.setExtent(t[0],t[1]),O_(r,n),r}function o6(t){Pr(t,aO)}function l6(t,e){return e=e||{},ya(t,null,null,e.state!=="normal")}const s6=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:vV,createList:r6,createScale:i6,createSymbol:ni,createTextStyle:l6,dataStack:a6,enableHoverEmphasis:Xf,getECData:qt,getLayoutRect:ei,mixinAxisModelCommonMethods:o6},Symbol.toStringTag,{value:"Module"}));var zA=[],u6={registerPreprocessor:u1,registerProcessor:f1,registerPostInit:LL,registerPostUpdate:OL,registerUpdateLifecycle:hp,registerAction:so,registerCoordinateSystem:zL,registerLayout:NL,registerVisual:uo,registerTransform:BL,registerLoading:h1,registerMap:IL,registerImpl:RF,PRIORITY:xL,ComponentModel:Qt,ComponentView:yn,SeriesModel:Wn,ChartView:Dn,registerComponentModel:function(t){Qt.registerClass(t)},registerComponentView:function(t){yn.registerClass(t)},registerSeriesModel:function(t){Wn.registerClass(t)},registerChartView:function(t){Dn.registerClass(t)},registerSubTypeDefaulter:function(t,e){Qt.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){yR(t,e)}};function Qn(t){if(ct(t)){P(t,function(e){Qn(e)});return}Xt(zA,t)>=0||(zA.push(t),Rt(t)&&(t={install:t}),t.install(u6))}var f6=1e-8;function NA(t,e){return Math.abs(t-e)<f6}function IA(t,e,n){var r=0,a=t[0];if(!a)return!1;for(var i=1;i<t.length;i++){var o=t[i];r+=Xa(a[0],a[1],o[0],o[1],e,n),a=o}var u=t[0];return(!NA(a[0],u[0])||!NA(a[1],u[1]))&&(r+=Xa(a[0],a[1],u[0],u[1],e,n)),r!==0}var c6=[];function ty(t,e){for(var n=0;n<t.length;n++)An(t[n],t[n],e)}function BA(t,e,n,r){for(var a=0;a<t.length;a++){var i=t[a];r&&(i=r.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Gi(e,e,i),Ui(n,n,i))}}function h6(t){for(var e=0,n=0,r=0,a=t.length,i=t[a-1][0],o=t[a-1][1],u=0;u<a;u++){var f=t[u][0],c=t[u][1],d=i*c-f*o;e+=d,n+=(i+f)*d,r+=(o+c)*d,i=f,o=c}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var iO=(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})(),kA=(function(){function t(e,n){this.type="polygon",this.exterior=e,this.interiors=n}return t})(),PA=(function(){function t(e){this.type="linestring",this.points=e}return t})(),d6=(function(t){ut(e,t);function e(n,r,a){var i=t.call(this,n)||this;return i.type="geoJSON",i.geometries=r,i._center=a&&[a[0],a[1]],i}return e.prototype.calcCenter=function(){for(var n=this.geometries,r,a=0,i=0;i<n.length;i++){var o=n[i],u=o.exterior,f=u&&u.length;f>a&&(r=o,a=f)}if(r)return h6(r.exterior);var c=this.getBoundingRect();return[c.x+c.width/2,c.y+c.height/2]},e.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return P(o,function(u){u.type==="polygon"?BA(u.exterior,a,i,n):P(u.points,function(f){BA(f,a,i,n)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new Kt(a[0],a[1],i[0]-a[0],i[1]-a[1]),n||(this._rect=r),r},e.prototype.contain=function(n){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(n[0],n[1]))return!1;t:for(var i=0,o=a.length;i<o;i++){var u=a[i];if(u.type==="polygon"){var f=u.exterior,c=u.interiors;if(IA(f,n[0],n[1])){for(var d=0;d<(c?c.length:0);d++)if(IA(c[d],n[0],n[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(n,r,a,i){var o=this.getBoundingRect(),u=o.width/o.height;a?i||(i=a/u):a=u*i;for(var f=new Kt(n,r,a,i),c=o.calculateTransform(f),d=this.geometries,v=0;v<d.length;v++){var p=d[v];p.type==="polygon"?(ty(p.exterior,c),P(p.interiors,function(g){ty(g,c)})):P(p.points,function(g){ty(g,c)})}o=this._rect,o.copy(f),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(n){n==null&&(n=this.name);var r=new e(n,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},e})(iO);(function(t){ut(e,t);function e(n,r){var a=t.call(this,n)||this;return a.type="geoSVG",a._elOnlyForCalculate=r,a}return e.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),a=[r.x+r.width/2,r.y+r.height/2],i=lc(c6),o=n;o&&!o.isGeoSVGGraphicRoot;)Ki(i,o.getLocalTransform(),i),o=o.parent;return sc(i,i),An(a,a,i),a},e})(iO);function v6(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;n==null&&(n=1024);var r=e.features;return P(r,function(a){var i=a.geometry,o=i.encodeOffsets,u=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=oO(u,o,n);break;case"Polygon":ey(u,o,n);break;case"MultiLineString":ey(u,o,n);break;case"MultiPolygon":P(u,function(f,c){return ey(f,o[c],n)})}}),e.UTF8Encoding=!1,e}function ey(t,e,n){for(var r=0;r<t.length;r++)t[r]=oO(t[r],e[r],n)}function oO(t,e,n){for(var r=[],a=e[0],i=e[1],o=0;o<t.length;o+=2){var u=t.charCodeAt(o)-64,f=t.charCodeAt(o+1)-64;u=u>>1^-(u&1),f=f>>1^-(f&1),u+=a,f+=i,a=u,i=f,r.push([u/n,f/n])}return r}function HA(t,e){return t=v6(t),mt(Oe(t.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new kA(o[0],o.slice(1)));break;case"MultiPolygon":P(a.coordinates,function(f){f[0]&&i.push(new kA(f[0],f.slice(1)))});break;case"LineString":i.push(new PA([a.coordinates]));break;case"MultiLineString":i.push(new PA(a.coordinates))}var u=new d6(r[e||"name"],i,r.cp);return u.properties=r,u})}const p6=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:xB,asc:Ts,getPercentWithPrecision:SB,getPixelPrecision:xS,getPrecision:va,getPrecisionSafe:bR,isNumeric:MR,isRadianAroundZero:Uf,linearMap:$e,nice:MS,numericToNumber:jf,parseDate:Br,quantile:MB,quantity:wR,quantityExponent:Hv,reformIntervals:CB,remRadian:wS,round:Be},Symbol.toStringTag,{value:"Module"})),g6=Object.freeze(Object.defineProperty({__proto__:null,format:yc,parse:Br},Symbol.toStringTag,{value:"Module"})),m6=Object.freeze(Object.defineProperty({__proto__:null,Arc:vc,BezierCurve:Zv,BoundingRect:Kt,Circle:hc,CompoundPath:aE,Ellipse:qv,Group:ke,Image:_a,IncrementalDisplayable:lE,Line:ti,LinearGradient:OS,Polygon:dc,Polyline:ml,RadialGradient:oE,Rect:we,Ring:Xv,Sector:ii,Text:Te,clipPointsByRect:vE,clipRectByRect:pE,createIcon:Wv,extendPath:uE,extendShape:sE,getShapeClass:BS,getTransform:HS,initProps:fr,makeImage:kS,makePath:$v,mergePath:cE,registerShape:Hr,resizePath:PS,updateProps:sn},Symbol.toStringTag,{value:"Module"})),y6=Object.freeze(Object.defineProperty({__proto__:null,addCommas:qS,capitalFirst:u4,encodeHTML:Cn,formatTime:s4,formatTpl:ZS,getTextRect:l4,getTooltipMarker:DE,normalizeCssArray:_c,toCamelCase:XS,truncateText:JB},Symbol.toStringTag,{value:"Module"})),_6=Object.freeze(Object.defineProperty({__proto__:null,bind:xt,clone:Ht,curry:be,defaults:Jt,each:P,extend:st,filter:Oe,indexOf:Xt,inherits:fS,isArray:ct,isFunction:Rt,isObject:St,isString:pt,map:mt,merge:Zt,reduce:Jr},Symbol.toStringTag,{value:"Module"}));var rc=Me();function lO(t,e){var n=mt(e,function(r){return t.scale.parse(r)});return t.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function S6(t){var e=t.getLabelModel().get("customValues");if(e){var n=Us(t),r=t.scale.getExtent(),a=lO(t,e),i=Oe(a,function(o){return o>=r[0]&&o<=r[1]});return{labels:mt(i,function(o){var u={value:o};return{formattedLabel:n(u),rawLabel:t.scale.getLabel(u),tickValue:o}})}}return t.type==="category"?x6(t):M6(t)}function b6(t,e){var n=t.getTickModel().get("customValues");if(n){var r=t.scale.getExtent(),a=lO(t,n);return{ticks:Oe(a,function(i){return i>=r[0]&&i<=r[1]})}}return t.type==="category"?w6(t,e):{ticks:mt(t.scale.getTicks(),function(i){return i.value})}}function x6(t){var e=t.getLabelModel(),n=sO(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function sO(t,e){var n=uO(t,"labels"),r=_1(e),a=fO(n,r);if(a)return a;var i,o;return Rt(r)?i=dO(t,r):(o=r==="auto"?C6(t):r,i=hO(t,o)),cO(n,r,{labels:i,labelCategoryInterval:o})}function w6(t,e){var n=uO(t,"ticks"),r=_1(e),a=fO(n,r);if(a)return a;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),Rt(r))i=dO(t,r,!0);else if(r==="auto"){var u=sO(t,t.getLabelModel());o=u.labelCategoryInterval,i=mt(u.labels,function(f){return f.tickValue})}else o=r,i=hO(t,o,!0);return cO(n,r,{ticks:i,tickCategoryInterval:o})}function M6(t){var e=t.scale.getTicks(),n=Us(t);return{labels:mt(e,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function uO(t,e){return rc(t)[e]||(rc(t)[e]=[])}function fO(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function cO(t,e,n){return t.push({key:e,value:n}),n}function C6(t){var e=rc(t).autoInterval;return e??(rc(t).autoInterval=t.calculateCategoryInterval())}function T6(t){var e=A6(t),n=Us(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var u=1;o>40&&(u=Math.max(1,Math.floor(o/40)));for(var f=i[0],c=t.dataToCoord(f+1)-t.dataToCoord(f),d=Math.abs(c*Math.cos(r)),v=Math.abs(c*Math.sin(r)),p=0,g=0;f<=i[1];f+=u){var y=0,_=0,S=SS(n({value:f}),e.font,"center","top");y=S.width*1.3,_=S.height*1.3,p=Math.max(p,y,7),g=Math.max(g,_,7)}var x=p/d,M=g/v;isNaN(x)&&(x=1/0),isNaN(M)&&(M=1/0);var C=Math.max(0,Math.floor(Math.min(x,M))),T=rc(t.model),R=t.getExtent(),D=T.lastAutoInterval,E=T.lastTickCount;return D!=null&&E!=null&&Math.abs(D-C)<=1&&Math.abs(E-o)<=1&&D>C&&T.axisExtent0===R[0]&&T.axisExtent1===R[1]?C=D:(T.lastTickCount=o,T.lastAutoInterval=C,T.axisExtent0=R[0],T.axisExtent1=R[1]),C}function A6(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 hO(t,e,n){var r=Us(t),a=t.scale,i=a.getExtent(),o=t.getLabelModel(),u=[],f=Math.max((e||0)+1,1),c=i[0],d=a.count();c!==0&&f>1&&d/f>2&&(c=Math.round(Math.ceil(c/f)*f));var v=nO(t),p=o.get("showMinLabel")||v,g=o.get("showMaxLabel")||v;p&&c!==i[0]&&_(i[0]);for(var y=c;y<=i[1];y+=f)_(y);g&&y-f!==i[1]&&_(i[1]);function _(S){var x={value:S};u.push(n?S:{formattedLabel:r(x),rawLabel:a.getLabel(x),tickValue:S})}return u}function dO(t,e,n){var r=t.scale,a=Us(t),i=[];return P(r.getTicks(),function(o){var u=r.getLabel(o),f=o.value;e(o.value,u)&&i.push(n?f:{formattedLabel:a(o),rawLabel:u,tickValue:f})}),i}var FA=[0,1],vO=(function(){function t(e,n,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=n,this._extent=r||[0,0]}return t.prototype.contain=function(e){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return e>=r&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return xS(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,n){var r=this._extent;r[0]=e,r[1]=n},t.prototype.dataToCoord=function(e,n){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),VA(r,a.count())),$e(e,FA,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),VA(r,a.count()));var i=$e(e,r,FA,n);return this.scale.scale(i)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=b6(this,n),a=r.ticks,i=mt(a,function(u){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(u):u),tickValue:u}},this),o=n.get("alignWithLabel");return D6(this,i,o,e.clamp),i},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),n=e.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=mt(r,function(i){return mt(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(){return S6(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},t.prototype.calculateCategoryInterval=function(){return T6(this)},t})();function VA(t,e){var n=t[1]-t[0],r=e,a=n/r/2;t[0]+=a,t[1]-=a}function D6(t,e,n,r){var a=e.length;if(!t.onBand||n||!a)return;var i=t.getExtent(),o,u;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1],tickValue:e[0].tickValue};else{var f=e[a-1].tickValue-e[0].tickValue,c=(e[a-1].coord-e[0].coord)/f;P(e,function(g){g.coord-=c/2});var d=t.scale.getExtent();u=1+d[1]-e[a-1].tickValue,o={coord:e[a-1].coord+c*u,tickValue:d[1]+1},e.push(o)}var v=i[0]>i[1];p(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&p(i[0],e[0].coord)&&e.unshift({coord:i[0]}),p(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&p(o.coord,i[1])&&e.push({coord:i[1]});function p(g,y){return g=Be(g),y=Be(y),v?g>y:g<y}}function R6(t){var e=Qt.extend(t);return Qt.registerClass(e),e}function E6(t){var e=yn.extend(t);return yn.registerClass(e),e}function L6(t){var e=Wn.extend(t);return Wn.registerClass(e),e}function O6(t){var e=Dn.extend(t);return Dn.registerClass(e),e}function pO(t,e,n,r,a,i,o,u){var f=a-t,c=i-e,d=n-t,v=r-e,p=Math.sqrt(d*d+v*v);d/=p,v/=p;var g=f*d+c*v,y=g/p;y*=p;var _=o[0]=t+y*d,S=o[1]=e+y*v;return Math.sqrt((_-a)*(_-a)+(S-i)*(S-i))}var qi=new Et,Le=new Et,an=new Et,Xi=new Et,da=new Et,Tv=[],Mn=new Et;function z6(t,e){if(e<=180&&e>0){e=e/180*Math.PI,qi.fromArray(t[0]),Le.fromArray(t[1]),an.fromArray(t[2]),Et.sub(Xi,qi,Le),Et.sub(da,an,Le);var n=Xi.len(),r=da.len();if(!(n<.001||r<.001)){Xi.scale(1/n),da.scale(1/r);var a=Xi.dot(da),i=Math.cos(e);if(i<a){var o=pO(Le.x,Le.y,an.x,an.y,qi.x,qi.y,Tv);Mn.fromArray(Tv),Mn.scaleAndAdd(da,o/Math.tan(Math.PI-e));var u=an.x!==Le.x?(Mn.x-Le.x)/(an.x-Le.x):(Mn.y-Le.y)/(an.y-Le.y);if(isNaN(u))return;u<0?Et.copy(Mn,Le):u>1&&Et.copy(Mn,an),Mn.toArray(t[1])}}}}function N6(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,qi.fromArray(t[0]),Le.fromArray(t[1]),an.fromArray(t[2]),Et.sub(Xi,Le,qi),Et.sub(da,an,Le);var r=Xi.len(),a=da.len();if(!(r<.001||a<.001)){Xi.scale(1/r),da.scale(1/a);var i=Xi.dot(e),o=Math.cos(n);if(i<o){var u=pO(Le.x,Le.y,an.x,an.y,qi.x,qi.y,Tv);Mn.fromArray(Tv);var f=Math.PI/2,c=Math.acos(da.dot(e)),d=f+c-n;if(d>=f)Et.copy(Mn,an);else{Mn.scaleAndAdd(da,u/Math.tan(Math.PI/2-d));var v=an.x!==Le.x?(Mn.x-Le.x)/(an.x-Le.x):(Mn.y-Le.y)/(an.y-Le.y);if(isNaN(v))return;v<0?Et.copy(Mn,Le):v>1&&Et.copy(Mn,an)}Mn.toArray(t[1])}}}}function ny(t,e,n,r){var a=n==="normal",i=a?t:t.ensureState(n);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var u=r.getModel("lineStyle").getLineStyle();a?t.useStyle(u):i.style=u}function I6(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=Wd(r[0],r[1]),i=Wd(r[1],r[2]);if(!a||!i){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*n,u=Ed([],r[1],r[0],o/a),f=Ed([],r[1],r[2],o/i),c=Ed([],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 B6(t,e,n){var r=t.getTextGuideLine(),a=t.getTextContent();if(!a){r&&t.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),u=a.ignore,f=0;f<ov.length;f++){var c=ov[f],d=e[c],v=c==="normal";if(d){var p=d.get("show"),g=v?u:Pt(a.states[c]&&a.states[c].ignore,u);if(g||!Pt(p,o)){var y=v?r:r&&r.states[c];y&&(y.ignore=!0),r&&ny(r,!0,c,d);continue}r||(r=new ml,t.setTextGuideLine(r),!v&&(u||!o)&&ny(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),ny(r,!1,c,d)}}if(r){Jt(r.style,n),r.style.fill=null;var _=i.get("showAbove"),S=t.textGuideLineConfig=t.textGuideLineConfig||{};S.showAbove=_||!1,r.buildPath=I6}}function k6(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<kr.length;r++){var a=kr[r];n[a]=t.getModel([a,e])}return n}function P6(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var a=r.label,i=a.getComputedTransform(),o=a.getBoundingRect(),u=!i||i[1]<1e-5&&i[2]<1e-5,f=a.style.margin||0,c=o.clone();c.applyTransform(i),c.x-=f/2,c.y-=f/2,c.width+=f,c.height+=f;var d=u?new fv(o,i):null;e.push({label:a,labelLine:r.labelLine,rect:c,localRect:o,obb:d,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:u,transform:i})}}return e}function H6(t,e,n,r,a,i){var o=t.length;if(o<2)return;t.sort(function(D,E){return D.rect[e]-E.rect[e]});for(var u=0,f,c=!1,d=0;d<o;d++){var v=t[d],p=v.rect;f=p[e]-u,f<0&&(p[e]-=f,v.label[e]-=f,c=!0),u=p[e]+p[n]}var g=t[0],y=t[o-1],_,S;x(),_<0&&T(-_,.8),S<0&&T(S,.8),x(),M(_,S,1),M(S,_,-1),x(),_<0&&R(-_),S<0&&R(S);function x(){_=g.rect[e]-r,S=a-y.rect[e]-y.rect[n]}function M(D,E,z){if(D<0){var I=Math.min(E,-D);if(I>0){C(I*z,0,o);var N=I+D;N<0&&T(-N*z,1)}else T(-D*z,1)}}function C(D,E,z){D!==0&&(c=!0);for(var I=E;I<z;I++){var N=t[I],L=N.rect;L[e]+=D,N.label[e]+=D}}function T(D,E){for(var z=[],I=0,N=1;N<o;N++){var L=t[N-1].rect,F=Math.max(t[N].rect[e]-L[e]-L[n],0);z.push(F),I+=F}if(I){var G=Math.min(Math.abs(D)/I,E);if(D>0)for(var N=0;N<o-1;N++){var Y=z[N]*G;C(Y,0,N+1)}else for(var N=o-1;N>0;N--){var Y=z[N-1]*G;C(-Y,N,o)}}}function R(D){var E=D<0?-1:1;D=Math.abs(D);for(var z=Math.ceil(D/(o-1)),I=0;I<o-1;I++)if(E>0?C(z,0,I+1):C(-z,o-I-1,o),D-=z,D<=0)return}return c}function F6(t,e,n,r){return H6(t,"y","height",e,n)}function V6(t){var e=[];t.sort(function(_,S){return S.priority-_.priority});var n=new Kt(0,0,0,0);function r(_){if(!_.ignore){var S=_.ensureState("emphasis");S.ignore==null&&(S.ignore=!1)}_.ignore=!0}for(var a=0;a<t.length;a++){var i=t[a],o=i.axisAligned,u=i.localRect,f=i.transform,c=i.label,d=i.labelLine;n.copy(i.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var v=i.obb,p=!1,g=0;g<e.length;g++){var y=e[g];if(n.intersect(y.rect)){if(o&&y.axisAligned){p=!0;break}if(y.obb||(y.obb=new fv(y.localRect,y.transform)),v||(v=new fv(u,f)),v.intersect(y.obb)){p=!0;break}}}p?(r(c),d&&r(d)):(c.attr("ignore",i.defaultAttr.ignore),d&&d.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}const Rn=Object.freeze(Object.defineProperty({__proto__:null,Axis:vO,ChartView:Dn,ComponentModel:Qt,ComponentView:yn,List:d1,Model:xe,PRIORITY:xL,SeriesModel:Wn,color:F3,connect:$F,dataTool:nV,dependencies:LF,disConnect:WF,disconnect:EL,dispose:QF,env:Dt,extendChartView:O6,extendComponentModel:R6,extendComponentView:E6,extendSeriesModel:L6,format:y6,getCoordinateSystemDimensions:JF,getInstanceByDom:l1,getInstanceById:KF,getMap:eV,graphic:m6,helper:s6,init:ZF,innerDrawElementOnCanvas:r1,matrix:v3,number:p6,parseGeoJSON:HA,parseGeoJson:HA,registerAction:so,registerCoordinateSystem:zL,registerLayout:NL,registerLoading:h1,registerLocale:GS,registerMap:IL,registerPostInit:LL,registerPostUpdate:OL,registerPreprocessor:u1,registerProcessor:f1,registerTheme:s1,registerTransform:BL,registerUpdateLifecycle:hp,registerVisual:uo,setCanvasCreator:tV,setPlatformAPI:V2,throttle:up,time:g6,use:Qn,util:_6,vector:K5,version:EF,zrUtil:G5,zrender:yB},Symbol.toStringTag,{value:"Module"}));var G6=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n){return dp(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(n){var r=new ke,a=ni("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(a),a.setStyle(n.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),u=i==="none"?"circle":i,f=n.itemHeight*.8,c=ni(u,(n.itemWidth-f)/2,(n.itemHeight-f)/2,f,f,n.itemStyle.fill);r.add(c),c.setStyle(n.itemStyle);var d=n.iconRotate==="inherit"?o:n.iconRotate||0;return c.rotation=d*Math.PI/180,c.setOrigin([n.itemWidth/2,n.itemHeight/2]),u.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e})(Wn);function S1(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=ks(t,e,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o<n.length;o++)i.push(ks(t,e,n[o]));return i.join(" ")}}function gO(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!ct(e))return e+"";for(var r=[],a=0;a<n.length;a++){var i=t.getDimensionIndex(n[a]);i>=0&&r.push(e[i])}return r.join(" ")}var b1=(function(t){ut(e,t);function e(n,r,a,i){var o=t.call(this)||this;return o.updateData(n,r,a,i),o}return e.prototype._createSymbol=function(n,r,a,i,o){this.removeAll();var u=ni(n,-1,-1,2,2,null,o);u.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),u.drift=U6,this._symbolType=n,this.add(u)},e.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){lv(this.childAt(0))},e.prototype.downplay=function(){sv(this.childAt(0))},e.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},e.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},e.prototype.updateData=function(n,r,a,i){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",u=n.hostModel,f=e.getSymbolSize(n,r),c=o!==this._symbolType,d=i&&i.disableAnimation;if(c){var v=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,f,v)}else{var p=this.childAt(0);p.silent=!1;var g={scaleX:f[0]/2,scaleY:f[1]/2};d?p.attr(g):sn(p,g,u,r),IS(p)}if(this._updateCommon(n,r,f,a,i),c){var p=this.childAt(0);if(!d){var g={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,fr(p,g,u,r)}}d&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(n,r,a,i,o){var u=this.childAt(0),f=n.hostModel,c,d,v,p,g,y,_,S,x;if(i&&(c=i.emphasisItemStyle,d=i.blurItemStyle,v=i.selectItemStyle,p=i.focus,g=i.blurScope,_=i.labelStatesModels,S=i.hoverScale,x=i.cursorStyle,y=i.emphasisDisabled),!i||n.hasItemOption){var M=i&&i.itemModel?i.itemModel:n.getItemModel(r),C=M.getModel("emphasis");c=C.getModel("itemStyle").getItemStyle(),v=M.getModel(["select","itemStyle"]).getItemStyle(),d=M.getModel(["blur","itemStyle"]).getItemStyle(),p=C.get("focus"),g=C.get("blurScope"),y=C.get("disabled"),_=mc(M),S=C.getShallow("scale"),x=M.getShallow("cursor")}var T=n.getItemVisual(r,"symbolRotate");u.attr("rotation",(T||0)*Math.PI/180||0);var R=fL(n.getItemVisual(r,"symbolOffset"),a);R&&(u.x=R[0],u.y=R[1]),x&&u.attr("cursor",x);var D=n.getItemVisual(r,"style"),E=D.fill;if(u instanceof _a){var z=u.style;u.useStyle(st({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},D))}else u.__isEmptyBrush?u.useStyle(st({},D)):u.useStyle(D),u.style.decal=null,u.setColor(E,o&&o.symbolInnerColor),u.style.strokeNoScale=!0;var I=n.getItemVisual(r,"liftZ"),N=this._z2;I!=null?N==null&&(this._z2=u.z2,u.z2+=I):N!=null&&(u.z2=N,this._z2=null);var L=o&&o.useNameLabel;gc(u,_,{labelFetcher:f,labelDataIndex:r,defaultText:F,inheritColor:E,defaultOpacity:D.opacity});function F(Z){return L?n.getName(Z):S1(n,Z)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var G=u.ensureState("emphasis");G.style=c,u.ensureState("select").style=v,u.ensureState("blur").style=d;var Y=S==null||S===!0?Math.max(1.1,3/this._sizeY):isFinite(S)&&S>0?+S:1;G.scaleX=this._sizeX*Y,G.scaleY=this._sizeY*Y,this.setSymbolScale(1),Zf(this,p,g,y)},e.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},e.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=qt(this).dataIndex,u=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var f=i.getTextContent();f&&cv(f,{style:{opacity:0}},r,{dataIndex:o,removeOpt:u,cb:function(){i.removeTextContent()}})}else i.removeTextContent();cv(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:u})},e.getSymbolSize=function(n,r){return hF(n.getItemVisual(r,"symbolSize"))},e})(ke);function U6(t,e){this.parent.drift(t,e)}function ry(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&t.getItemVisual(n,"symbol")!=="none"}function GA(t){return t!=null&&!St(t)&&(t={isIgnore:t}),t||{}}function UA(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:mc(e),cursorStyle:e.get("cursor")}}var j6=(function(){function t(e){this.group=new ke,this._SymbolCtor=e||b1}return t.prototype.updateData=function(e,n){this._progressiveEls=null,n=GA(n);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,u=n.disableAnimation,f=UA(e),c={disableAnimation:u},d=n.getSymbolPoint||function(v){return e.getItemLayout(v)};i||r.removeAll(),e.diff(i).add(function(v){var p=d(v);if(ry(e,p,v,n)){var g=new o(e,v,f,c);g.setPosition(p),e.setItemGraphicEl(v,g),r.add(g)}}).update(function(v,p){var g=i.getItemGraphicEl(p),y=d(v);if(!ry(e,y,v,n)){r.remove(g);return}var _=e.getItemVisual(v,"symbol")||"circle",S=g&&g.getSymbolType&&g.getSymbolType();if(!g||S&&S!==_)r.remove(g),g=new o(e,v,f,c),g.setPosition(y);else{g.updateData(e,v,f,c);var x={x:y[0],y:y[1]};u?g.attr(x):sn(g,x,a)}r.add(g),e.setItemGraphicEl(v,g)}).remove(function(v){var p=i.getItemGraphicEl(v);p&&p.fadeOut(function(){r.remove(p)},a)}).execute(),this._getSymbolPoint=d,this._data=e},t.prototype.updateLayout=function(){var e=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=UA(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n,r){this._progressiveEls=[],r=GA(r);function a(f){f.isGroup||(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=n.getItemLayout(i);if(ry(n,o,i,r)){var u=new this._SymbolCtor(n,i,this._seriesScope);u.traverse(a),u.setPosition(o),this.group.add(u),n.setItemGraphicEl(i,u),this._progressiveEls.push(u)}}},t.prototype.eachRendered=function(e){Qv(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var n=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(a){a.fadeOut(function(){n.remove(a)},r.hostModel)}):n.removeAll()},t})();function mO(t,e,n){var r=t.getBaseAxis(),a=t.getOtherAxis(r),i=Y6(a,n),o=r.dim,u=a.dim,f=e.mapDimension(u),c=e.mapDimension(o),d=u==="x"||u==="radius"?1:0,v=mt(t.dimensions,function(y){return e.mapDimension(y)}),p=!1,g=e.getCalculationInfo("stackResultDimension");return vl(e,v[0])&&(p=!0,v[0]=g),vl(e,v[1])&&(p=!0,v[1]=g),{dataDimsForPoint:v,valueStart:i,valueAxisDim:u,baseAxisDim:o,stacked:!!p,valueDim:f,baseDim:c,baseDataOffset:d,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Y6(t,e){var n=0,r=t.scale.getExtent();return e==="start"?n=r[0]:e==="end"?n=r[1]:ve(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function yO(t,e,n,r){var a=NaN;t.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=t.valueStart);var i=t.baseDataOffset,o=[];return o[i]=n.get(t.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function q6(t,e){var n=[];return e.diff(t).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,a){n.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function X6(t,e,n,r,a,i,o,u){for(var f=q6(t,e),c=[],d=[],v=[],p=[],g=[],y=[],_=[],S=mO(a,e,o),x=t.getLayout("points")||[],M=e.getLayout("points")||[],C=0;C<f.length;C++){var T=f[C],R=!0,D=void 0,E=void 0;switch(T.cmd){case"=":D=T.idx*2,E=T.idx1*2;var z=x[D],I=x[D+1],N=M[E],L=M[E+1];(isNaN(z)||isNaN(I))&&(z=N,I=L),c.push(z,I),d.push(N,L),v.push(n[D],n[D+1]),p.push(r[E],r[E+1]),_.push(e.getRawIndex(T.idx1));break;case"+":var F=T.idx,G=S.dataDimsForPoint,Y=a.dataToPoint([e.get(G[0],F),e.get(G[1],F)]);E=F*2,c.push(Y[0],Y[1]),d.push(M[E],M[E+1]);var Z=yO(S,a,e,F);v.push(Z[0],Z[1]),p.push(r[E],r[E+1]),_.push(e.getRawIndex(F));break;case"-":R=!1}R&&(g.push(T),y.push(y.length))}y.sort(function(ft,gt){return _[ft]-_[gt]});for(var H=c.length,X=Wa(H),U=Wa(H),W=Wa(H),it=Wa(H),k=[],C=0;C<y.length;C++){var q=y[C],rt=C*2,lt=q*2;X[rt]=c[lt],X[rt+1]=c[lt+1],U[rt]=d[lt],U[rt+1]=d[lt+1],W[rt]=v[lt],W[rt+1]=v[lt+1],it[rt]=p[lt],it[rt+1]=p[lt+1],k[C]=g[q]}return{current:X,next:U,stackedOnCurrent:W,stackedOnNext:it,status:k}}var ki=Math.min,Pi=Math.max;function ll(t,e){return isNaN(t)||isNaN(e)}function z_(t,e,n,r,a,i,o,u,f){for(var c,d,v,p,g,y,_=n,S=0;S<r;S++){var x=e[_*2],M=e[_*2+1];if(_>=a||_<0)break;if(ll(x,M)){if(f){_+=i;continue}break}if(_===n)t[i>0?"moveTo":"lineTo"](x,M),v=x,p=M;else{var C=x-c,T=M-d;if(C*C+T*T<.5){_+=i;continue}if(o>0){for(var R=_+i,D=e[R*2],E=e[R*2+1];D===x&&E===M&&S<r;)S++,R+=i,_+=i,D=e[R*2],E=e[R*2+1],x=e[_*2],M=e[_*2+1],C=x-c,T=M-d;var z=S+1;if(f)for(;ll(D,E)&&z<r;)z++,R+=i,D=e[R*2],E=e[R*2+1];var I=.5,N=0,L=0,F=void 0,G=void 0;if(z>=r||ll(D,E))g=x,y=M;else{N=D-c,L=E-d;var Y=x-c,Z=D-x,H=M-d,X=E-M,U=void 0,W=void 0;if(u==="x"){U=Math.abs(Y),W=Math.abs(Z);var it=N>0?1:-1;g=x-it*U*o,y=M,F=x+it*W*o,G=M}else if(u==="y"){U=Math.abs(H),W=Math.abs(X);var k=L>0?1:-1;g=x,y=M-k*U*o,F=x,G=M+k*W*o}else U=Math.sqrt(Y*Y+H*H),W=Math.sqrt(Z*Z+X*X),I=W/(W+U),g=x-N*o*(1-I),y=M-L*o*(1-I),F=x+N*o*I,G=M+L*o*I,F=ki(F,Pi(D,x)),G=ki(G,Pi(E,M)),F=Pi(F,ki(D,x)),G=Pi(G,ki(E,M)),N=F-x,L=G-M,g=x-N*U/W,y=M-L*U/W,g=ki(g,Pi(c,x)),y=ki(y,Pi(d,M)),g=Pi(g,ki(c,x)),y=Pi(y,ki(d,M)),N=x-g,L=M-y,F=x+N*W/U,G=M+L*W/U}t.bezierCurveTo(v,p,g,y,x,M),v=F,p=G}else t.lineTo(x,M)}c=x,d=M,_+=i}return S}var _O=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),Z6=(function(t){ut(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _O},e.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&ll(a[o*2-2],a[o*2-1]);o--);for(;i<o&&ll(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=z_(n,a,i,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=cl.CMD,u,f,c=r==="x",d=[],v=0;v<i.length;){var p=i[v++],g=void 0,y=void 0,_=void 0,S=void 0,x=void 0,M=void 0,C=void 0;switch(p){case o.M:u=i[v++],f=i[v++];break;case o.L:if(g=i[v++],y=i[v++],C=c?(n-u)/(g-u):(n-f)/(y-f),C<=1&&C>=0){var T=c?(y-f)*C+f:(g-u)*C+u;return c?[n,T]:[T,n]}u=g,f=y;break;case o.C:g=i[v++],y=i[v++],_=i[v++],S=i[v++],x=i[v++],M=i[v++];var R=c?tv(u,g,_,x,n,d):tv(f,y,S,M,n,d);if(R>0)for(var D=0;D<R;D++){var E=d[D];if(E<=1&&E>=0){var T=c?on(f,y,S,M,E):on(u,g,_,x,E);return c?[n,T]:[T,n]}}u=x,f=M;break}}},e})(oe),$6=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(_O),W6=(function(t){ut(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new $6},e.prototype.buildPath=function(n,r){var a=r.points,i=r.stackedOnPoints,o=0,u=a.length/2,f=r.smoothMonotone;if(r.connectNulls){for(;u>0&&ll(a[u*2-2],a[u*2-1]);u--);for(;o<u&&ll(a[o*2],a[o*2+1]);o++);}for(;o<u;){var c=z_(n,a,o,u,u,1,r.smooth,f,r.connectNulls);z_(n,i,o+c-1,c,u,-1,r.stackedOnSmooth,f,r.connectNulls),o+=c+1,n.closePath()}},e})(oe);function SO(t,e,n,r,a){var i=t.getArea(),o=i.x,u=i.y,f=i.width,c=i.height,d=n.get(["lineStyle","width"])||0;o-=d/2,u-=d/2,f+=d,c+=d,f=Math.ceil(f),o!==Math.floor(o)&&(o=Math.floor(o),f++);var v=new we({shape:{x:o,y:u,width:f,height:c}});if(e){var p=t.getBaseAxis(),g=p.isHorizontal(),y=p.inverse;g?(y&&(v.shape.x+=f),v.shape.width=0):(y||(v.shape.y+=c),v.shape.height=0);var _=Rt(a)?function(S){a(S,v)}:null;fr(v,{shape:{width:f,height:c,x:o,y:u}},n,null,r,_)}return v}function bO(t,e,n){var r=t.getArea(),a=Be(r.r0,1),i=Be(r.r,1),o=new ii({shape:{cx:Be(t.cx,1),cy:Be(t.cy,1),r0:a,r:i,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var u=t.getBaseAxis().dim==="angle";u?o.shape.endAngle=r.startAngle:o.shape.r=a,fr(o,{shape:{endAngle:r.endAngle,r:i}},n)}return o}function Q6(t,e,n,r,a){if(t){if(t.type==="polar")return bO(t,e,n);if(t.type==="cartesian2d")return SO(t,e,n,r,a)}else return null;return null}function x1(t,e){return t.type===e}function jA(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function YA(t){for(var e=1/0,n=1/0,r=-1/0,a=-1/0,i=0;i<t.length;){var o=t[i++],u=t[i++];isNaN(o)||(e=Math.min(o,e),r=Math.max(o,r)),isNaN(u)||(n=Math.min(u,n),a=Math.max(u,a))}return[[e,n],[r,a]]}function qA(t,e){var n=YA(t),r=n[0],a=n[1],i=YA(e),o=i[0],u=i[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(a[0]-u[0]),Math.abs(a[1]-u[1]))}function XA(t){return ve(t)?t:t?.5:0}function K6(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),a=Wa(r*2),i=0;i<r;i++){var o=yO(n,t,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Hi(t,e,n,r,a){var i=n.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,u=[],f=0,c=[],d=[],v=[],p=[];if(a){for(f=0;f<t.length;f+=2){var g=e||t;!isNaN(g[f])&&!isNaN(g[f+1])&&p.push(t[f],t[f+1])}t=p}for(f=0;f<t.length-2;f+=2)switch(v[0]=t[f+2],v[1]=t[f+3],d[0]=t[f],d[1]=t[f+1],u.push(d[0],d[1]),r){case"end":c[o]=v[o],c[1-o]=d[1-o],u.push(c[0],c[1]);break;case"middle":var y=(d[o]+v[o])/2,_=[];c[o]=_[o]=y,c[1-o]=d[1-o],_[1-o]=v[1-o],u.push(c[0],c[1]),u.push(_[0],_[1]);break;default:c[o]=d[o],c[1-o]=v[1-o],u.push(c[0],c[1])}return u.push(t[f++],t[f++]),u}function J6(t,e){var n=[],r=t.length,a,i;function o(d,v,p){var g=d.coord,y=(p-g)/(v.coord-g),_=mS(y,[d.color,v.color]);return{coord:p,color:_}}for(var u=0;u<r;u++){var f=t[u],c=f.coord;if(c<0)a=f;else if(c>e){i?n.push(o(i,f,e)):a&&n.push(o(a,f,0),o(a,f,e));break}else a&&(n.push(o(a,f,0)),a=null),n.push(f),i=f}return n}function tG(t,e,n){var r=t.getVisual("visualMeta");if(!(!r||!r.length||!t.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var u=t.getDimensionInfo(r[o].dimension);if(a=u&&u.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var f=e.getAxis(a),c=mt(i.stops,function(C){return{coord:f.toGlobalCoord(f.dataToCoord(C.value)),color:C.color}}),d=c.length,v=i.outerColors.slice();d&&c[0].coord>c[d-1].coord&&(c.reverse(),v.reverse());var p=J6(c,a==="x"?n.getWidth():n.getHeight()),g=p.length;if(!g&&d)return c[0].coord<0?v[1]?v[1]:c[d-1].color:v[0]?v[0]:c[0].color;var y=10,_=p[0].coord-y,S=p[g-1].coord+y,x=S-_;if(x<.001)return"transparent";P(p,function(C){C.offset=(C.coord-_)/x}),p.push({offset:g?p[g-1].offset:.5,color:v[1]||"transparent"}),p.unshift({offset:g?p[0].offset:.5,color:v[0]||"transparent"});var M=new OS(0,0,0,0,p,!0);return M[a]=_,M[a+"2"]=S,M}}}function eG(t,e,n){var r=t.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&nG(i,e))){var o=e.mapDimension(i.dim),u={};return P(i.getViewLabels(),function(f){var c=i.scale.getRawOrdinalNumber(f.tickValue);u[c]=1}),function(f){return!u.hasOwnProperty(e.get(o,f))}}}}function nG(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(b1.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>r)return!1;return!0}function rG(t,e){return isNaN(t)||isNaN(e)}function aG(t){for(var e=t.length/2;e>0&&rG(t[e*2-2],t[e*2-1]);e--);return e-1}function ZA(t,e){return[t[e*2],t[e*2+1]]}function iG(t,e,n){for(var r=t.length/2,a=n==="x"?0:1,i,o,u=0,f=-1,c=0;c<r;c++)if(o=t[c*2+a],!(isNaN(o)||isNaN(t[c*2+1-a]))){if(c===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){f=c;break}u=c,i=o}return{range:[u,f],t:(e-i)/(o-i)}}function xO(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<kr.length;e++)if(t.get([kr[e],"endLabel","show"]))return!0;return!1}function ay(t,e,n,r){if(x1(e,"cartesian2d")){var a=r.getModel("endLabel"),i=a.get("valueAnimation"),o=r.getData(),u={lastFrameIndex:0},f=xO(r)?function(g,y){t._endLabelOnDuring(g,y,o,u,i,a,e)}:null,c=e.getBaseAxis().isHorizontal(),d=SO(e,n,r,function(){var g=t._endLabel;g&&n&&u.originalX!=null&&g.attr({x:u.originalX,y:u.originalY})},f);if(!r.get("clip",!0)){var v=d.shape,p=Math.max(v.width,v.height);c?(v.y-=p,v.height+=p*2):(v.x-=p,v.width+=p*2)}return f&&f(1,d),d}else return bO(e,n,r)}function oG(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),a=n.inverse,i=r?a?"right":"left":"center",o=r?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||i,verticalAlign:t.get("verticalAlign")||o}}}var lG=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var n=new ke,r=new j6;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n,this._changePolyState=xt(this._changePolyState,this)},e.prototype.render=function(n,r,a){var i=n.coordinateSystem,o=this.group,u=n.getData(),f=n.getModel("lineStyle"),c=n.getModel("areaStyle"),d=u.getLayout("points")||[],v=i.type==="polar",p=this._coordSys,g=this._symbolDraw,y=this._polyline,_=this._polygon,S=this._lineGroup,x=!r.ssr&&n.get("animation"),M=!c.isEmpty(),C=c.get("origin"),T=mO(i,u,C),R=M&&K6(i,u,T),D=n.get("showSymbol"),E=n.get("connectNulls"),z=D&&!v&&eG(n,u,i),I=this._data;I&&I.eachItemGraphicEl(function(ft,gt){ft.__temp&&(o.remove(ft),I.setItemGraphicEl(gt,null))}),D||g.remove(),o.add(S);var N=v?!1:n.get("step"),L;i&&i.getArea&&n.get("clip",!0)&&(L=i.getArea(),L.width!=null?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var F=tG(u,i,a)||u.getVisual("style")[u.getVisual("drawType")];if(!(y&&p.type===i.type&&N===this._step))D&&g.updateData(u,{isIgnore:z,clipShape:L,disableAnimation:!0,getSymbolPoint:function(ft){return[d[ft*2],d[ft*2+1]]}}),x&&this._initSymbolLabelAnimation(u,i,L),N&&(R&&(R=Hi(R,d,i,N,E)),d=Hi(d,null,i,N,E)),y=this._newPolyline(d),M?_=this._newPolygon(d,R):_&&(S.remove(_),_=this._polygon=null),v||this._initOrUpdateEndLabel(n,i,hl(F)),S.setClipPath(ay(this,i,!0,n));else{M&&!_?_=this._newPolygon(d,R):_&&!M&&(S.remove(_),_=this._polygon=null),v||this._initOrUpdateEndLabel(n,i,hl(F));var G=S.getClipPath();if(G){var Y=ay(this,i,!1,n);fr(G,{shape:Y.shape},n)}else S.setClipPath(ay(this,i,!0,n));D&&g.updateData(u,{isIgnore:z,clipShape:L,disableAnimation:!0,getSymbolPoint:function(ft){return[d[ft*2],d[ft*2+1]]}}),(!jA(this._stackedOnPoints,R)||!jA(this._points,d))&&(x?this._doUpdateAnimation(u,R,i,a,N,C,E):(N&&(R&&(R=Hi(R,d,i,N,E)),d=Hi(d,null,i,N,E)),y.setShape({points:d}),_&&_.setShape({points:d,stackedOnPoints:R})))}var Z=n.getModel("emphasis"),H=Z.get("focus"),X=Z.get("blurScope"),U=Z.get("disabled");if(y.useStyle(Jt(f.getLineStyle(),{fill:"none",stroke:F,lineJoin:"bevel"})),uv(y,n,"lineStyle"),y.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var W=y.getState("emphasis").style;W.lineWidth=+y.style.lineWidth+1}qt(y).seriesIndex=n.seriesIndex,Zf(y,H,X,U);var it=XA(n.get("smooth")),k=n.get("smoothMonotone");if(y.setShape({smooth:it,smoothMonotone:k,connectNulls:E}),_){var q=u.getCalculationInfo("stackedOnSeries"),rt=0;_.useStyle(Jt(c.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:u.getVisual("style").decal})),q&&(rt=XA(q.get("smooth"))),_.setShape({smooth:it,stackedOnSmooth:rt,smoothMonotone:k,connectNulls:E}),uv(_,n,"areaStyle"),qt(_).seriesIndex=n.seriesIndex,Zf(_,H,X,U)}var lt=this._changePolyState;u.eachItemGraphicEl(function(ft){ft&&(ft.onHoverStateChange=lt)}),this._polyline.onHoverStateChange=lt,this._data=u,this._coordSys=i,this._stackedOnPoints=R,this._points=d,this._step=N,this._valueOrigin=C,n.get("triggerLineEvent")&&(this.packEventData(n,y),_&&this.packEventData(n,_))},e.prototype.packEventData=function(n,r){qt(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},e.prototype.highlight=function(n,r,a,i){var o=n.getData(),u=fl(o,i);if(this._changePolyState("emphasis"),!(u instanceof Array)&&u!=null&&u>=0){var f=o.getLayout("points"),c=o.getItemGraphicEl(u);if(!c){var d=f[u*2],v=f[u*2+1];if(isNaN(d)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(d,v))return;var p=n.get("zlevel")||0,g=n.get("z")||0;c=new b1(o,u),c.x=d,c.y=v,c.setZ(p,g);var y=c.getSymbolPath().getTextContent();y&&(y.zlevel=p,y.z=g,y.z2=this._polyline.z2+1),c.__temp=!0,o.setItemGraphicEl(u,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else Dn.prototype.highlight.call(this,n,r,a,i)},e.prototype.downplay=function(n,r,a,i){var o=n.getData(),u=fl(o,i);if(this._changePolyState("normal"),u!=null&&u>=0){var f=o.getItemGraphicEl(u);f&&(f.__temp?(o.setItemGraphicEl(u,null),this.group.remove(f)):f.downplay())}else Dn.prototype.downplay.call(this,n,r,a,i)},e.prototype._changePolyState=function(n){var r=this._polygon;tT(this._polyline,n),r&&tT(r,n)},e.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Z6({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(n,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new W6({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(n,r,a){var i,o,u=r.getBaseAxis(),f=u.inverse;r.type==="cartesian2d"?(i=u.isHorizontal(),o=!1):r.type==="polar"&&(i=u.dim==="angle",o=!0);var c=n.hostModel,d=c.get("animationDuration");Rt(d)&&(d=d(null));var v=c.get("animationDelay")||0,p=Rt(v)?v(null):v;n.eachItemGraphicEl(function(g,y){var _=g;if(_){var S=[g.x,g.y],x=void 0,M=void 0,C=void 0;if(a)if(o){var T=a,R=r.pointToCoord(S);i?(x=T.startAngle,M=T.endAngle,C=-R[1]/180*Math.PI):(x=T.r0,M=T.r,C=R[0])}else{var D=a;i?(x=D.x,M=D.x+D.width,C=g.x):(x=D.y+D.height,M=D.y,C=g.y)}var E=M===x?0:(C-x)/(M-x);f&&(E=1-E);var z=Rt(v)?v(y):d*E+p,I=_.getSymbolPath(),N=I.getTextContent();_.attr({scaleX:0,scaleY:0}),_.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:z}),N&&N.animateFrom({style:{opacity:0}},{duration:300,delay:z}),I.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(xO(n)){var o=n.getData(),u=this._polyline,f=o.getLayout("points");if(!f){u.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new Te({z2:200}),c.ignoreClip=!0,u.setTextContent(this._endLabel),u.disableLabelAnimation=!0);var d=aG(f);d>=0&&(gc(u,mc(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:d,defaultText:function(v,p,g){return g!=null?gO(o,g):S1(o,v)},enableTextSetter:!0},oG(i,r)),u.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(n,r,a,i,o,u,f){var c=this._endLabel,d=this._polyline;if(c){n<1&&i.originalX==null&&(i.originalX=c.x,i.originalY=c.y);var v=a.getLayout("points"),p=a.hostModel,g=p.get("connectNulls"),y=u.get("precision"),_=u.get("distance")||0,S=f.getBaseAxis(),x=S.isHorizontal(),M=S.inverse,C=r.shape,T=M?x?C.x:C.y+C.height:x?C.x+C.width:C.y,R=(x?_:0)*(M?-1:1),D=(x?0:-_)*(M?-1:1),E=x?"x":"y",z=iG(v,T,E),I=z.range,N=I[1]-I[0],L=void 0;if(N>=1){if(N>1&&!g){var F=ZA(v,I[0]);c.attr({x:F[0]+R,y:F[1]+D}),o&&(L=p.getRawValue(I[0]))}else{var F=d.getPointOn(T,E);F&&c.attr({x:F[0]+R,y:F[1]+D});var G=p.getRawValue(I[0]),Y=p.getRawValue(I[1]);o&&(L=FB(a,y,G,Y,z.t))}i.lastFrameIndex=I[0]}else{var Z=n===1||i.lastFrameIndex>0?I[0]:0,F=ZA(v,Z);o&&(L=p.getRawValue(Z)),c.attr({x:F[0]+R,y:F[1]+D})}if(o){var H=Jv(c);typeof H.setLabelText=="function"&&H.setLabelText(L)}}},e.prototype._doUpdateAnimation=function(n,r,a,i,o,u,f){var c=this._polyline,d=this._polygon,v=n.hostModel,p=X6(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),g=p.current,y=p.stackedOnCurrent,_=p.next,S=p.stackedOnNext;if(o&&(y=Hi(p.stackedOnCurrent,p.current,a,o,f),g=Hi(p.current,null,a,o,f),S=Hi(p.stackedOnNext,p.next,a,o,f),_=Hi(p.next,null,a,o,f)),qA(g,_)>3e3||d&&qA(y,S)>3e3){c.stopAnimation(),c.setShape({points:_}),d&&(d.stopAnimation(),d.setShape({points:_,stackedOnPoints:S}));return}c.shape.__points=p.current,c.shape.points=g;var x={shape:{points:_}};p.current!==g&&(x.shape.__points=p.next),c.stopAnimation(),sn(c,x,v),d&&(d.setShape({points:g,stackedOnPoints:y}),d.stopAnimation(),sn(d,{shape:{stackedOnPoints:S}},v),c.shape.points!==d.shape.points&&(d.shape.points=c.shape.points));for(var M=[],C=p.status,T=0;T<C.length;T++){var R=C[T].cmd;if(R==="="){var D=n.getItemGraphicEl(C[T].idx1);D&&M.push({el:D,ptIdx:T})}}c.animators&&c.animators.length&&c.animators[0].during(function(){d&&d.dirtyShape();for(var E=c.shape.__points,z=0;z<M.length;z++){var I=M[z].el,N=M[z].ptIdx*2;I.x=E[N],I.y=E[N+1],I.markRedraw()}})},e.prototype.remove=function(n){var r=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(r.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(Dn);function sG(t,e){return{seriesType:t,plan:n1(),reset:function(n){var r=n.getData(),a=n.coordinateSystem;if(n.pipelineContext,!!a){var i=mt(a.dimensions,function(v){return r.mapDimension(v)}).slice(0,2),o=i.length,u=r.getCalculationInfo("stackResultDimension");vl(r,i[0])&&(i[0]=u),vl(r,i[1])&&(i[1]=u);var f=r.getStore(),c=r.getDimensionIndex(i[0]),d=r.getDimensionIndex(i[1]);return o&&{progress:function(v,p){for(var g=v.end-v.start,y=Wa(g*o),_=[],S=[],x=v.start,M=0;x<v.end;x++){var C=void 0;if(o===1){var T=f.get(c,x);C=a.dataToPoint(T,null,S)}else _[0]=f.get(c,x),_[1]=f.get(d,x),C=a.dataToPoint(_,null,S);y[M++]=C[0],y[M++]=C[1]}p.setLayout("points",y)}}}}}}var uG={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]}},fG=function(t){return Math.round(t.length/2)};function wO(t){return{seriesType:t,reset:function(e,n,r){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,u=a.count();if(u>10&&o.type==="cartesian2d"&&i){var f=o.getBaseAxis(),c=o.getOtherAxis(f),d=f.getExtent(),v=r.getDevicePixelRatio(),p=Math.abs(d[1]-d[0])*(v||1),g=Math.round(u/p);if(isFinite(g)&&g>1){i==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(c.dim),1/g)):i==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(c.dim),1/g));var y=void 0;pt(i)?y=uG[i]:Rt(i)&&(y=i),y&&e.setData(a.downSample(a.mapDimension(c.dim),1/g,y,fG))}}}}}function cG(t){t.registerChartView(lG),t.registerSeriesModel(G6),t.registerLayout(sG("line")),t.registerVisual({seriesType:"line",reset:function(e){var n=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,wO("line"))}var N_=(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 dp(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(n),u=i.dataToPoint(o);if(a)P(i.getAxes(),function(p,g){if(p.type==="category"&&r!=null){var y=p.getTicksCoords(),_=p.getTickModel().get("alignWithLabel"),S=o[g],x=r[g]==="x1"||r[g]==="y1";if(x&&!_&&(S+=1),y.length<2)return;if(y.length===2){u[g]=p.toGlobalCoord(p.getExtent()[x?1:0]);return}for(var M=void 0,C=void 0,T=1,R=0;R<y.length;R++){var D=y[R].coord,E=R===y.length-1?y[R-1].tickValue+T:y[R].tickValue;if(E===S){C=D;break}else if(E<S)M=D;else if(M!=null&&E>S){C=(D+M)/2;break}R===1&&(T=E-y[0].tickValue)}C==null&&(M?M&&(C=y[y.length-1].coord):C=y[0].coord),u[g]=p.toGlobalCoord(C)}});else{var f=this.getData(),c=f.getLayout("offset"),d=f.getLayout("size"),v=i.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})(Wn);Wn.registerClass(N_);var hG=(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 dp(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},e.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ep(N_.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})(N_),dG=(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})(),$A=(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 dG},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),u=Math.max(r.r,0),f=(u-o)*.5,c=o+f,d=r.startAngle,v=r.endAngle,p=r.clockwise,g=Math.PI*2,y=p?v-d<g:d-v<g;y||(d=v-(p?g:-g));var _=Math.cos(d),S=Math.sin(d),x=Math.cos(v),M=Math.sin(v);y?(n.moveTo(_*o+a,S*o+i),n.arc(_*c+a,S*c+i,f,-Math.PI+d,d,!p)):n.moveTo(_*u+a,S*u+i),n.arc(a,i,u,d,v,!p),n.arc(x*c+a,M*c+i,f,v-Math.PI*2,v-Math.PI,!p),o!==0&&n.arc(a,i,o,v,d,p)},e})(oe);function vG(t,e){e=e||{};var n=e.isRoundCap;return function(r,a,i){var o=a.position;if(!o||o instanceof Array)return av(r,a,i);var u=t(o),f=a.distance!=null?a.distance:5,c=this.shape,d=c.cx,v=c.cy,p=c.r,g=c.r0,y=(p+g)/2,_=c.startAngle,S=c.endAngle,x=(_+S)/2,M=n?Math.abs(p-g)/2:0,C=Math.cos,T=Math.sin,R=d+p*C(_),D=v+p*T(_),E="left",z="top";switch(u){case"startArc":R=d+(g-f)*C(x),D=v+(g-f)*T(x),E="center",z="top";break;case"insideStartArc":R=d+(g+f)*C(x),D=v+(g+f)*T(x),E="center",z="bottom";break;case"startAngle":R=d+y*C(_)+yd(_,f+M,!1),D=v+y*T(_)+_d(_,f+M,!1),E="right",z="middle";break;case"insideStartAngle":R=d+y*C(_)+yd(_,-f+M,!1),D=v+y*T(_)+_d(_,-f+M,!1),E="left",z="middle";break;case"middle":R=d+y*C(x),D=v+y*T(x),E="center",z="middle";break;case"endArc":R=d+(p+f)*C(x),D=v+(p+f)*T(x),E="center",z="bottom";break;case"insideEndArc":R=d+(p-f)*C(x),D=v+(p-f)*T(x),E="center",z="top";break;case"endAngle":R=d+y*C(S)+yd(S,f+M,!0),D=v+y*T(S)+_d(S,f+M,!0),E="left",z="middle";break;case"insideEndAngle":R=d+y*C(S)+yd(S,-f+M,!0),D=v+y*T(S)+_d(S,-f+M,!0),E="right",z="middle";break;default:return av(r,a,i)}return r=r||{},r.x=R,r.y=D,r.align=E,r.verticalAlign=z,r}}function pG(t,e,n,r){if(ve(r)){t.setTextConfig({rotation:r});return}else if(ct(e)){t.setTextConfig({rotation:0});return}var a=t.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,u=(i+o)/2,f,c=n(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":f=u;break;case"startAngle":case"insideStartAngle":f=i;break;case"endAngle":case"insideEndAngle":f=o;break;default:t.setTextConfig({rotation:0});return}var 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 yd(t,e,n){return e*Math.sin(t)*(n?-1:1)}function _d(t,e,n){return e*Math.cos(t)*(n?1:-1)}function Mf(t,e,n){var r=t.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;ct(r)||(r=[r,r,r,r]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:mt(r,function(i){return io(i,a)})}}var iy=Math.max,oy=Math.min;function gG(t,e){var n=t.getArea&&t.getArea();if(x1(t,"cartesian2d")){var r=t.getBaseAxis();if(r.type!=="category"||!r.onBand){var a=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=a,n.width+=a*2):(n.y-=a,n.height+=a*2)}}return n}var mG=(function(t){ut(e,t);function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return e.prototype.render=function(n,r,a,i){this._model=n,this._removeOnRenderedListener(a),this._updateDrawMode(n);var o=n.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,a):this._renderNormal(n,r,a,i))},e.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},e.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},e.prototype.eachRendered=function(n){Qv(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n,r,a,i){var o=this.group,u=n.getData(),f=this._data,c=n.coordinateSystem,d=c.getBaseAxis(),v;c.type==="cartesian2d"?v=d.isHorizontal():c.type==="polar"&&(v=d.dim==="angle");var p=n.isAnimationEnabled()?n:null,g=yG(n,c);g&&this._enableRealtimeSort(g,u,a);var y=n.get("clip",!0)||g,_=gG(c,u);o.removeClipPath();var S=n.get("roundCap",!0),x=n.get("showBackground",!0),M=n.getModel("backgroundStyle"),C=M.get("borderRadius")||0,T=[],R=this._backgroundEls,D=i&&i.isInitSort,E=i&&i.type==="changeAxisOrder";function z(L){var F=Sd[c.type](u,L),G=CG(c,v,F);return G.useStyle(M.getItemStyle()),c.type==="cartesian2d"?G.setShape("r",C):G.setShape("cornerRadius",C),T[L]=G,G}u.diff(f).add(function(L){var F=u.getItemModel(L),G=Sd[c.type](u,L,F);if(x&&z(L),!(!u.hasValue(L)||!tD[c.type](G))){var Y=!1;y&&(Y=WA[c.type](_,G));var Z=QA[c.type](n,u,L,G,v,p,d.model,!1,S);g&&(Z.forceLabelAnimation=!0),eD(Z,u,L,F,G,n,v,c.type==="polar"),D?Z.attr({shape:G}):g?KA(g,p,Z,G,L,v,!1,!1):fr(Z,{shape:G},n,L),u.setItemGraphicEl(L,Z),o.add(Z),Z.ignore=Y}}).update(function(L,F){var G=u.getItemModel(L),Y=Sd[c.type](u,L,G);if(x){var Z=void 0;R.length===0?Z=z(F):(Z=R[F],Z.useStyle(M.getItemStyle()),c.type==="cartesian2d"?Z.setShape("r",C):Z.setShape("cornerRadius",C),T[L]=Z);var H=Sd[c.type](u,L),X=CO(v,H,c);sn(Z,{shape:X},p,L)}var U=f.getItemGraphicEl(F);if(!u.hasValue(L)||!tD[c.type](Y)){o.remove(U);return}var W=!1;if(y&&(W=WA[c.type](_,Y),W&&o.remove(U)),U?IS(U):U=QA[c.type](n,u,L,Y,v,p,d.model,!!U,S),g&&(U.forceLabelAnimation=!0),E){var it=U.getTextContent();if(it){var k=Jv(it);k.prevValue!=null&&(k.prevValue=k.value)}}else eD(U,u,L,G,Y,n,v,c.type==="polar");D?U.attr({shape:Y}):g?KA(g,p,U,Y,L,v,!0,E):sn(U,{shape:Y},n,L,null),u.setItemGraphicEl(L,U),U.ignore=W,o.add(U)}).remove(function(L){var F=f.getItemGraphicEl(L);F&&hv(F,n,L)}).execute();var I=this._backgroundGroup||(this._backgroundGroup=new ke);I.removeAll();for(var N=0;N<T.length;++N)I.add(T[N]);o.add(I),this._backgroundEls=T,this._data=u},e.prototype._renderLarge=function(n,r,a){this._clear(),rD(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),rD(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&Q6(n.coordinateSystem,!1,n),a=this.group;r?a.setClipPath(r):a.removeClipPath()},e.prototype._enableRealtimeSort=function(n,r,a){var i=this;if(r.count()){var o=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,a),this._isFirstFrame=!1;else{var u=function(f){var c=r.getItemGraphicEl(f),d=c&&c.shape;return d&&Math.abs(o.isHorizontal()?d.height:d.width)||0};this._onRendered=function(){i._updateSortWithinSameData(r,u,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(n,r,a){var i=[];return n.each(n.mapDimension(r.dim),function(o,u){var f=a(u);f=f??NaN,i.push({dataIndex:u,mappedValue:f,ordinalNumber:o})}),i.sort(function(o,u){return u.mappedValue-o.mappedValue}),{ordinalNumbers:mt(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(n,r,a){for(var i=a.scale,o=n.mapDimension(a.dim),u=Number.MAX_VALUE,f=0,c=i.getOrdinalMeta().categories.length;f<c;++f){var d=n.rawIndexOf(o,i.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 a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),u=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=u;++o)if(n.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(n,r,a,i){if(this._isOrderChangedWithinSameData(n,r,a)){var o=this._dataSort(n,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(n,r,a){var i=r.baseAxis,o=this._dataSort(n,i,function(u){return n.get(n.mapDimension(r.otherAxis.dim),u)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){hv(i,n,qt(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(Dn),WA={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,i=t.y+t.height,o=iy(e.x,t.x),u=oy(e.x+e.width,a),f=iy(e.y,t.y),c=oy(e.y+e.height,i),d=u<o,v=c<f;return e.x=d&&o>a?u:o,e.y=v&&f>i?c:f,e.width=d?0:u-o,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 a=oy(e.r,t.r),i=iy(e.r0,t.r0);e.r=a,e.r0=i;var o=a-i<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},QA={cartesian2d:function(t,e,n,r,a,i,o,u,f){var c=new we({shape:st({},r),z2:1});if(c.__dataIndex=n,c.name="item",i){var d=c.shape,v=a?"height":"width";d[v]=0}return c},polar:function(t,e,n,r,a,i,o,u,f){var c=!a&&f?$A:ii,d=new c({shape:r,z2:1});d.name="item";var v=MO(a);if(d.calculateTextPosition=vG(v,{isRoundCap:c===$A}),i){var p=d.shape,g=a?"r":"endAngle",y={};p[g]=a?r.r0:r.startAngle,y[g]=r[g],(u?sn:fr)(d,{shape:y},i)}return d}};function yG(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 KA(t,e,n,r,a,i,o,u){var f,c;i?(c={x:r.x,width:r.width},f={y:r.y,height:r.height}):(c={y:r.y,height:r.height},f={x:r.x,width:r.width}),u||(o?sn:fr)(n,{shape:f},e,a,null);var d=e?t.baseAxis.model:null;(o?sn:fr)(n,{shape:c},d,a)}function JA(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var _G=["x","y","width","height"],SG=["cx","cy","r","startAngle","endAngle"],tD={cartesian2d:function(t){return!JA(t,_G)},polar:function(t){return!JA(t,SG)}},Sd={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),a=n?xG(n,r):0,i=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function bG(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function MO(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 eD(t,e,n,r,a,i,o,u){var f=e.getItemVisual(n,"style");if(u){if(!i.get("roundCap")){var d=t.shape,v=Mf(r.getModel("itemStyle"),d,!0);st(d,v),t.setShape(d)}}else{var c=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(f);var p=r.getShallow("cursor");p&&t.attr("cursor",p);var g=u?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",y=mc(r);gc(t,y,{labelFetcher:i,labelDataIndex:n,defaultText:S1(i.getData(),n),inheritColor:f.fill,defaultOpacity:f.opacity,defaultOutsidePosition:g});var _=t.getTextContent();if(u&&_){var S=r.get(["label","position"]);t.textConfig.inside=S==="middle"?!0:null,pG(t,S==="outside"?g:S,MO(o),r.get(["label","rotate"]))}GP(_,y,i.getRawValue(n),function(M){return gO(e,M)});var x=r.getModel(["emphasis"]);Zf(t,x.get("focus"),x.get("blurScope"),x.get("disabled")),uv(t,r),bG(a)&&(t.style.fill="none",t.style.stroke="none",P(t.states,function(M){M.style&&(M.style.fill=M.style.stroke="none")}))}function xG(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var wG=(function(){function t(){}return t})(),nD=(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 wG},e.prototype.buildPath=function(n,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,u=[],f=[],c=this.barWidth,d=0;d<a.length;d+=3)f[i]=c,f[o]=a[d+2],u[i]=a[d+i],u[o]=a[d+o],n.rect(u[0],u[1],f[0],f[1])},e})(oe);function rD(t,e,n,r){var a=t.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),u=a.getLayout("size"),f=t.getModel("backgroundStyle"),c=a.getLayout("largeBackgroundPoints");if(c){var d=new nD({shape:{points:c},incremental:!!r,silent:!0,z2:0});d.baseDimIdx=i,d.largeDataIndices=o,d.barWidth=u,d.useStyle(f.getItemStyle()),e.add(d),n&&n.push(d)}var v=new nD({shape:{points:a.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=u,e.add(v),v.useStyle(a.getVisual("style")),v.style.stroke=null,qt(v).seriesIndex=t.seriesIndex,t.get("silent")||(v.on("mousedown",aD),v.on("mousemove",aD)),n&&n.push(v)}var aD=up(function(t){var e=this,n=MG(e,t.offsetX,t.offsetY);qt(e).dataIndex=n>=0?n:null},30,!1);function MG(t,e,n){for(var r=t.baseDimIdx,a=1-r,i=t.shape.points,o=t.largeDataIndices,u=[],f=[],c=t.barWidth,d=0,v=i.length/3;d<v;d++){var p=d*3;if(f[r]=c,f[a]=i[p+2],u[r]=i[p+r],u[a]=i[p+a],f[a]<0&&(u[a]+=f[a],f[a]=-f[a]),e>=u[0]&&e<=u[0]+f[0]&&n>=u[1]&&n<=u[1]+f[1])return o[d]}return-1}function CO(t,e,n){if(x1(n,"cartesian2d")){var r=e,a=n.getArea();return{x:t?r.x:a.x,y:t?a.y:r.y,width:t?r.width:a.width,height:t?a.height:r.height}}else{var a=n.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:i.r0,r:t?a.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function CG(t,e,n){var r=t.type==="polar"?ii:we;return new r({shape:CO(e,n,t),silent:!0,z2:0})}function mp(t){t.registerChartView(mG),t.registerSeriesModel(hG),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,be(IV,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,BV("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,wO("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,n){var r=e.componentType||"series";n.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var iD=Math.PI*2,bd=Math.PI/180;function TO(t,e){return ei(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function AO(t,e){var n=TO(t,e),r=t.get("center"),a=t.get("radius");ct(a)||(a=[0,a]);var i=de(n.width,e.getWidth()),o=de(n.height,e.getHeight()),u=Math.min(i,o),f=de(a[0],u/2),c=de(a[1],u/2),d,v,p=t.coordinateSystem;if(p){var g=p.dataToPoint(r);d=g[0]||0,v=g[1]||0}else ct(r)||(r=[r,r]),d=de(r[0],i)+n.x,v=de(r[1],o)+n.y;return{cx:d,cy:v,r0:f,r:c}}function TG(t,e,n){e.eachSeriesByType(t,function(r){var a=r.getData(),i=a.mapDimension("value"),o=TO(r,n),u=AO(r,n),f=u.cx,c=u.cy,d=u.r,v=u.r0,p=-r.get("startAngle")*bd,g=r.get("endAngle"),y=r.get("padAngle")*bd;g=g==="auto"?p-iD:-g*bd;var _=r.get("minAngle")*bd,S=_+y,x=0;a.each(i,function(X){!isNaN(X)&&x++});var M=a.getSum(i),C=Math.PI/(M||x)*2,T=r.get("clockwise"),R=r.get("roseType"),D=r.get("stillShowZeroSum"),E=a.getDataExtent(i);E[0]=0;var z=T?1:-1,I=[p,g],N=z*y/2;PR(I,!T),p=I[0],g=I[1];var L=DO(r);L.startAngle=p,L.endAngle=g,L.clockwise=T;var F=Math.abs(g-p),G=F,Y=0,Z=p;if(a.setLayout({viewRect:o,r:d}),a.each(i,function(X,U){var W;if(isNaN(X)){a.setItemLayout(U,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:T,cx:f,cy:c,r0:v,r:R?NaN:d});return}R!=="area"?W=M===0&&D?C:X*C:W=F/x,W<S?(W=S,G-=S):Y+=X;var it=Z+z*W,k=0,q=0;y>W?(k=Z+z*W/2,q=k):(k=Z+N,q=it-N),a.setItemLayout(U,{angle:W,startAngle:k,endAngle:q,clockwise:T,cx:f,cy:c,r0:v,r:R?$e(X,E,[v,d]):d}),Z=it}),G<iD&&x)if(G<=.001){var H=F/x;a.each(i,function(X,U){if(!isNaN(X)){var W=a.getItemLayout(U);W.angle=H;var it=0,k=0;H<y?(it=p+z*(U+1/2)*H,k=it):(it=p+z*U*H+N,k=p+z*(U+1)*H-N),W.startAngle=it,W.endAngle=k}})}else C=G/Y,Z=p,a.each(i,function(X,U){if(!isNaN(X)){var W=a.getItemLayout(U),it=W.angle===S?S:X*C,k=0,q=0;it<y?(k=Z+z*it/2,q=k):(k=Z+N,q=Z+z*it-N),W.startAngle=k,W.endAngle=q,Z+=z*it}})})}var DO=Me();function AG(t){return{seriesType:t,reset:function(e,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),u=0;u<r.length;u++)if(!r[u].isSelected(o))return!1;return!0})}}}}var DG=Math.PI/180;function oD(t,e,n,r,a,i,o,u,f,c){if(t.length<2)return;function d(_){for(var S=_.rB,x=S*S,M=0;M<_.list.length;M++){var C=_.list[M],T=Math.abs(C.label.y-n),R=r+C.len,D=R*R,E=Math.sqrt(Math.abs((1-T*T/x)*D)),z=e+(E+C.len2)*a,I=z-C.label.x,N=C.targetTextWidth-I*a;RO(C,N,!0),C.label.x=z}}function v(_){for(var S={list:[],maxY:0},x={list:[],maxY:0},M=0;M<_.length;M++)if(_[M].labelAlignTo==="none"){var C=_[M],T=C.label.y>n?x:S,R=Math.abs(C.label.y-n);if(R>=T.maxY){var D=C.label.x-e-C.len2*a,E=r+C.len,z=Math.abs(D)<E?Math.sqrt(R*R/(1-D*D/E/E)):E;T.rB=z,T.maxY=R}T.list.push(C)}d(S),d(x)}for(var p=t.length,g=0;g<p;g++)if(t[g].position==="outer"&&t[g].labelAlignTo==="labelLine"){var y=t[g].label.x-c;t[g].linePoints[1][0]+=y,t[g].label.x=c}F6(t,f,f+o)&&v(t)}function RG(t,e,n,r,a,i,o,u){for(var f=[],c=[],d=Number.MAX_VALUE,v=-Number.MAX_VALUE,p=0;p<t.length;p++){var g=t[p].label;ly(t[p])||(g.x<e?(d=Math.min(d,g.x),f.push(t[p])):(v=Math.max(v,g.x),c.push(t[p])))}for(var p=0;p<t.length;p++){var y=t[p];if(!ly(y)&&y.linePoints){if(y.labelStyleWidth!=null)continue;var g=y.label,_=y.linePoints,S=void 0;y.labelAlignTo==="edge"?g.x<e?S=_[2][0]-y.labelDistance-o-y.edgeDistance:S=o+a-y.edgeDistance-_[2][0]-y.labelDistance:y.labelAlignTo==="labelLine"?g.x<e?S=d-o-y.bleedMargin:S=o+a-v-y.bleedMargin:g.x<e?S=g.x-o-y.bleedMargin:S=o+a-g.x-y.bleedMargin,y.targetTextWidth=S,RO(y,S)}}oD(c,e,n,r,1,a,i,o,u,v),oD(f,e,n,r,-1,a,i,o,u,d);for(var p=0;p<t.length;p++){var y=t[p];if(!ly(y)&&y.linePoints){var g=y.label,_=y.linePoints,x=y.labelAlignTo==="edge",M=g.style.padding,C=M?M[1]+M[3]:0,T=g.style.backgroundColor?0:C,R=y.rect.width+T,D=_[1][0]-_[2][0];x?g.x<e?_[2][0]=o+y.edgeDistance+R+y.labelDistance:_[2][0]=o+a-y.edgeDistance-R-y.labelDistance:(g.x<e?_[2][0]=g.x+y.labelDistance:_[2][0]=g.x-y.labelDistance,_[1][0]=_[2][0]+D),_[1][1]=_[2][1]=g.y}}}function RO(t,e,n){if(n===void 0&&(n=!1),t.labelStyleWidth==null){var r=t.label,a=r.style,i=t.rect,o=a.backgroundColor,u=a.padding,f=u?u[1]+u[3]:0,c=a.overflow,d=i.width+(o?0:f);if(e<d||n){var v=i.height;if(c&&c.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-f);var p=r.getBoundingRect();r.setStyle("width",Math.ceil(p.width)),r.setStyle("backgroundColor",o)}else{var g=e-f,y=e<d?g:n?g>t.unconstrainedWidth?null:g:null;r.setStyle("width",y)}var _=r.getBoundingRect();i.width=_.width;var S=(r.style.margin||0)+2.1;i.height=_.height+S,i.y-=(i.height-v)/2}}}function ly(t){return t.position==="center"}function EG(t){var e=t.getData(),n=[],r,a,i=!1,o=(t.get("minShowLabelAngle")||0)*DG,u=e.getLayout("viewRect"),f=e.getLayout("r"),c=u.width,d=u.x,v=u.y,p=u.height;function g(D){D.ignore=!0}function y(D){if(!D.ignore)return!0;for(var E in D.states)if(D.states[E].ignore===!1)return!0;return!1}e.each(function(D){var E=e.getItemGraphicEl(D),z=E.shape,I=E.getTextContent(),N=E.getTextGuideLine(),L=e.getItemModel(D),F=L.getModel("label"),G=F.get("position")||L.get(["emphasis","label","position"]),Y=F.get("distanceToLabelLine"),Z=F.get("alignTo"),H=de(F.get("edgeDistance"),c),X=F.get("bleedMargin"),U=L.getModel("labelLine"),W=U.get("length");W=de(W,c);var it=U.get("length2");if(it=de(it,c),Math.abs(z.endAngle-z.startAngle)<o){P(I.states,g),I.ignore=!0,N&&(P(N.states,g),N.ignore=!0);return}if(y(I)){var k=(z.startAngle+z.endAngle)/2,q=Math.cos(k),rt=Math.sin(k),lt,ft,gt,At;r=z.cx,a=z.cy;var Mt=G==="inside"||G==="inner";if(G==="center")lt=z.cx,ft=z.cy,At="center";else{var Bt=(Mt?(z.r+z.r0)/2*q:z.r*q)+r,le=(Mt?(z.r+z.r0)/2*rt:z.r*rt)+a;if(lt=Bt+q*3,ft=le+rt*3,!Mt){var yt=Bt+q*(W+f-z.r),Nt=le+rt*(W+f-z.r),ge=yt+(q<0?-1:1)*it,ne=Nt;Z==="edge"?lt=q<0?d+H:d+c-H:lt=ge+(q<0?-Y:Y),ft=ne,gt=[[Bt,le],[yt,Nt],[ge,ne]]}At=Mt?"center":Z==="edge"?q>0?"right":"left":q>0?"left":"right"}var Ln=Math.PI,_n=0,xa=F.get("rotate");if(ve(xa))_n=xa*(Ln/180);else if(G==="center")_n=0;else if(xa==="radial"||xa===!0){var yl=q<0?-k+Ln:-k;_n=yl}else if(xa==="tangential"&&G!=="outside"&&G!=="outer"){var hr=Math.atan2(q,rt);hr<0&&(hr=Ln*2+hr);var dr=rt>0;dr&&(hr=Ln+hr),_n=hr-Ln}if(i=!!_n,I.x=lt,I.y=ft,I.rotation=_n,I.setStyle({verticalAlign:"middle"}),Mt){I.setStyle({align:At});var na=I.states.select;na&&(na.x+=I.x,na.y+=I.y)}else{var Kn=I.getBoundingRect().clone();Kn.applyTransform(I.getComputedTransform());var Ae=(I.style.margin||0)+2.1;Kn.y-=Ae/2,Kn.height+=Ae,n.push({label:I,labelLine:N,position:G,len:W,len2:it,minTurnAngle:U.get("minTurnAngle"),maxSurfaceAngle:U.get("maxSurfaceAngle"),surfaceNormal:new Et(q,rt),linePoints:gt,textAlign:At,labelDistance:Y,labelAlignTo:Z,edgeDistance:H,bleedMargin:X,rect:Kn,unconstrainedWidth:Kn.width,labelStyleWidth:I.style.width})}E.setTextConfig({inside:Mt})}}),!i&&t.get("avoidLabelOverlap")&&RG(n,r,a,f,c,p,d,v);for(var _=0;_<n.length;_++){var S=n[_],x=S.label,M=S.labelLine,C=isNaN(x.x)||isNaN(x.y);if(x){x.setStyle({align:S.textAlign}),C&&(P(x.states,g),x.ignore=!0);var T=x.states.select;T&&(T.x+=x.x,T.y+=x.y)}if(M){var R=S.linePoints;C||!R?(P(M.states,g),M.ignore=!0):(z6(R,S.minTurnAngle),N6(R,S.surfaceNormal,S.maxSurfaceAngle),M.setShape({points:R}),x.__hostTarget.textGuideLineConfig={anchor:new Et(R[0][0],R[0][1])})}}}var LG=(function(t){ut(e,t);function e(n,r,a){var i=t.call(this)||this;i.z2=2;var o=new Te;return i.setTextContent(o),i.updateData(n,r,a,!0),i}return e.prototype.updateData=function(n,r,a,i){var o=this,u=n.hostModel,f=n.getItemModel(r),c=f.getModel("emphasis"),d=n.getItemLayout(r),v=st(Mf(f.getModel("itemStyle"),d,!0),d);if(isNaN(v.startAngle)){o.setShape(v);return}if(i){o.setShape(v);var p=u.getShallow("animationType");u.ecModel.ssr?(fr(o,{scaleX:0,scaleY:0},u,{dataIndex:r,isFrom:!0}),o.originX=v.cx,o.originY=v.cy):p==="scale"?(o.shape.r=d.r0,fr(o,{shape:{r:d.r}},u,r)):a!=null?(o.setShape({startAngle:a,endAngle:a}),fr(o,{shape:{startAngle:d.startAngle,endAngle:d.endAngle}},u,r)):(o.shape.endAngle=d.startAngle,sn(o,{shape:{endAngle:d.endAngle}},u,r))}else IS(o),sn(o,{shape:v},u,r);o.useStyle(n.getItemVisual(r,"style")),uv(o,f);var g=(d.startAngle+d.endAngle)/2,y=u.get("selectedOffset"),_=Math.cos(g)*y,S=Math.sin(g)*y,x=f.getShallow("cursor");x&&o.attr("cursor",x),this._updateLabel(u,n,r),o.ensureState("emphasis").shape=st({r:d.r+(c.get("scale")&&c.get("scaleSize")||0)},Mf(c.getModel("itemStyle"),d)),st(o.ensureState("select"),{x:_,y:S,shape:Mf(f.getModel(["select","itemStyle"]),d)}),st(o.ensureState("blur"),{shape:Mf(f.getModel(["blur","itemStyle"]),d)});var M=o.getTextGuideLine(),C=o.getTextContent();M&&st(M.ensureState("select"),{x:_,y:S}),st(C.ensureState("select"),{x:_,y:S}),Zf(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(n,r,a){var i=this,o=r.getItemModel(a),u=o.getModel("labelLine"),f=r.getItemVisual(a,"style"),c=f&&f.fill,d=f&&f.opacity;gc(i,mc(o),{labelFetcher:r.hostModel,labelDataIndex:a,inheritColor:c,defaultOpacity:d,defaultText:n.getFormattedLabel(a,"normal")||r.getName(a)});var v=i.getTextContent();i.setTextConfig({position:null,rotation:null}),v.attr({z2:10});var p=n.get(["label","position"]);if(p!=="outside"&&p!=="outer")i.removeTextGuideLine();else{var g=this.getTextGuideLine();g||(g=new ml,this.setTextGuideLine(g)),B6(this,k6(o),{stroke:c,opacity:Ds(u.get(["lineStyle","opacity"]),d,1)})}},e})(ii),OG=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,a,i){var o=n.getData(),u=this._data,f=this.group,c;if(!u&&o.count()>0){for(var d=o.getItemLayout(0),v=1;isNaN(d&&d.startAngle)&&v<o.count();++v)d=o.getItemLayout(v);d&&(c=d.startAngle)}if(this._emptyCircleSector&&f.remove(this._emptyCircleSector),o.count()===0&&n.get("showEmptyCircle")){var p=DO(n),g=new ii({shape:st(AO(n,a),p)});g.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=g,f.add(g)}o.diff(u).add(function(y){var _=new LG(o,y,c);o.setItemGraphicEl(y,_),f.add(_)}).update(function(y,_){var S=u.getItemGraphicEl(_);S.updateData(o,y,c),S.off("click"),f.add(S),o.setItemGraphicEl(y,S)}).remove(function(y){var _=u.getItemGraphicEl(y);hv(_,n,y)}).execute(),EG(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,u=n[1]-i.cy,f=Math.sqrt(o*o+u*u);return f<=i.r&&f>=i.r0}},e.type="pie",e})(Dn);function zG(t,e,n){e=ct(e)&&{coordDimensions:e}||st({encodeDefine:t.getEncode()},e);var r=t.getSource(),a=v1(r,e).dimensions,i=new d1(a,t);return i.initData(r,n),i}var NG=(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})(),IG=Me(),BG=(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 NG(xt(this.getData,this),xt(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return zG(this,{coordDimensions:["value"],encodeDefaulter:be(g4,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),a=IG(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(f){o.push(f)}),i=a.seats=xR(o,r.hostModel.get("percentPrecision"))}var u=t.prototype.getDataParams.call(this,n);return u.percent=i[n]||0,u.$vars.push("percent"),u},e.prototype._defaultLabelLine=function(n){l_(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(Wn);function kG(t){return{seriesType:t,reset:function(e,n){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(ve(o)&&!isNaN(o)&&o<0)})}}}function yp(t){t.registerChartView(OG),t.registerSeriesModel(BG),JH("pie",t.registerAction),t.registerLayout(be(TG,"pie")),t.registerProcessor(AG("pie")),t.registerProcessor(kG("pie"))}var PG=(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),I_=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Zn).models[0]},e.type="cartesian2dAxis",e})(Qt);Pr(I_,aO);var EO={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)"]}}},HG=Zt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},EO),w1=Zt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},EO),FG=Zt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},w1),VG=Jt({logBase:10},w1);const GG={category:HG,value:w1,time:FG,log:VG};var UG={value:1,category:1,time:1,log:1};function lD(t,e,n,r){P(UG,function(a,i){var o=Zt(Zt({},GG[i],!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."+i,d}return c.prototype.mergeDefaultAndTheme=function(d,v){var p=Kf(this),g=p?Sc(d):{},y=v.getTheme();Zt(d,y.get(i+"Axis")),Zt(d,this.getDefaultOption()),d.type=sD(d),p&&dl(d,g,p)},c.prototype.optionUpdated=function(){var d=this.option;d.type==="category"&&(this.__ordinalMeta=E_.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."+i,c.defaultOption=o,c})(n);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(e+"Axis",sD)}function sD(t){return t.type||(t.data?"category":"value")}var jG=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return mt(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Oe(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})(),B_=["x","y"];function uD(t){return t.type==="interval"||t.type==="time"}var YG=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=B_,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!uD(n)||!uD(r))){var a=n.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),u=this.dataToPoint([a[1],i[1]]),f=a[1]-a[0],c=i[1]-i[0];if(!(!f||!c)){var d=(u[0]-o[0])/f,v=(u[1]-o[1])/c,p=o[0]-a[0]*d,g=o[1]-i[0]*v,y=this._transform=[d,0,0,v,p,g];this._invTransform=sc([],y)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},e.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},e.prototype.containZone=function(n,r){var a=this.dataToPoint(n),i=this.dataToPoint(r),o=this.getArea(),u=new Kt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(u)},e.prototype.dataToPoint=function(n,r,a){a=a||[];var i=n[0],o=n[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return An(a,n,this._transform);var u=this.getAxis("x"),f=this.getAxis("y");return a[0]=u.toGlobalCoord(u.dataToCoord(i,r)),a[1]=f.toGlobalCoord(f.dataToCoord(o,r)),a},e.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),u=i.getExtent(),f=a.parse(n[0]),c=i.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),f),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(u[0],u[1]),c),Math.max(u[0],u[1])),r},e.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return An(a,n,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(n[0]),r),a[1]=o.coordToData(o.toLocalCoord(n[1]),r),a},e.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},e.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1])-n,o=Math.min(a[0],a[1])-n,u=Math.max(r[0],r[1])-i+n,f=Math.max(a[0],a[1])-o+n;return new Kt(i,o,u,f)},e})(jG),qG=(function(t){ut(e,t);function e(n,r,a,i,o){var u=t.call(this,n,r,a)||this;return u.index=0,u.type=i||"value",u.position=o||"bottom",u}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},e})(vO);function k_(t,e,n){n=n||{};var r=t.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],u=a.position,f=o?"onZero":u,c=a.dim,d=r.getRect(),v=[d.x,d.x+d.width,d.y,d.y+d.height],p={left:0,right:1,top:0,bottom:1,onZero:2},g=e.get("offset")||0,y=c==="x"?[v[2]-g,v[3]+g]:[v[0]-g,v[1]+g];if(o){var _=o.toGlobalCoord(o.dataToCoord(0));y[p.onZero]=Math.max(Math.min(_,y[1]),y[0])}i.position=[c==="y"?y[p[f]]:v[0],c==="x"?y[p[f]]:v[3]],i.rotation=Math.PI/2*(c==="x"?0:1);var S={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=S[u],i.labelOffset=o?y[p[u]]-y[p.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Is(n.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var x=e.get(["axisLabel","rotate"]);return i.labelRotate=f==="top"?-x:x,i.z2=1,i}function fD(t){return t.get("coordinateSystem")==="cartesian2d"}function cD(t){var e={xAxisModel:null,yAxisModel:null};return P(e,function(n,r){var a=r.replace(/Model$/,""),i=t.getReferringComponents(a,Zn).models[0];e[r]=i}),e}var sy=Math.log;function XG(t,e,n){var r=Gs.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,u=r.getInterval.call(n),f=tO(t,e),c=f.extent,d=f.fixMin,v=f.fixMax;if(t.type==="log"){var p=sy(t.base);c=[sy(c[0])/p,sy(c[1])/p]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:o,fixMin:d,fixMax:v});var g=r.getExtent.call(t);d&&(c[0]=g[0]),v&&(c[1]=g[1]);var y=r.getInterval.call(t),_=c[0],S=c[1];if(d&&v)y=(S-_)/o;else if(d)for(S=c[0]+y*o;S<c[1]&&isFinite(S)&&isFinite(c[1]);)y=J0(y),S=c[0]+y*o;else if(v)for(_=c[1]-y*o;_>c[0]&&isFinite(_)&&isFinite(c[0]);)y=J0(y),_=c[1]-y*o;else{var x=t.getTicks().length-1;x>o&&(y=J0(y));var M=y*o;S=Math.ceil(c[1]/y)*y,_=Be(S-M),_<0&&c[0]>=0?(_=0,S=Be(M)):S>0&&c[1]<=0&&(S=0,_=-Be(M))}var C=(a[0].value-i[0].value)/u,T=(a[o].value-i[o].value)/u;r.setExtent.call(t,_+y*C,S+y*T),r.setInterval.call(t,y),(C||T)&&r.setNiceExtent.call(t,_+y,S-y)}var ZG=(function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=B_,this._initCartesian(e,n,r),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,n){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var u,f=ae(o),c=f.length;if(c){for(var d=[],v=c-1;v>=0;v--){var p=+f[v],g=o[p],y=g.model,_=g.scale;L_(_)&&y.get("alignTicks")&&y.get("interval")==null?d.push(g):(O_(_,y),L_(_)&&(u=g))}d.length&&(u||(u=d.pop(),O_(u.scale,u.model)),P(d,function(S){XG(S.scale,S.model,u.scale)}))}}a(r.x),a(r.y);var i={};P(r.x,function(o){hD(r,"y",o,i)}),P(r.y,function(o){hD(r,"x",o,i)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=ei(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var u=this._axesList;f(),i&&(P(u,function(c){if(!c.model.get(["axisLabel","inside"])){var d=t6(c);if(d){var v=c.isHorizontal()?"height":"width",p=c.model.get(["axisLabel","margin"]);o[v]-=d[v]+p,c.position==="top"?o.y+=d.height+p:c.position==="left"&&(o.x+=d.width+p)}}}),f()),P(this._coordsList,function(c){c.calcAffineTransform()});function f(){P(u,function(c){var d=c.isHorizontal(),v=d?[0,o.width]:[0,o.height],p=c.inverse?1:0;c.setExtent(v[p],v[1-p]),$G(c,d?o.x:o.y)})}},t.prototype.getAxis=function(e,n){var r=this._axesMap[e];if(r!=null)return r[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,n){if(e!=null&&n!=null){var r="x"+e+"y"+n;return this._coordsMap[r]}St(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===n)return i[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(r):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(r)):null},t.prototype.convertFromPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(r):a.axis?a.axis.coordToData(a.axis.toLocalCoord(r)):null},t.prototype._findConvertTarget=function(e){var n=e.seriesModel,r=e.xAxisModel||n&&n.getReferringComponents("xAxis",Zn).models[0],a=e.yAxisModel||n&&n.getReferringComponents("yAxis",Zn).models[0],i=e.gridModel,o=this._coordsList,u,f;if(n)u=n.coordinateSystem,Xt(o,u)<0&&(u=null);else if(r&&a)u=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)f=this.getAxis("x",r.componentIndex);else if(a)f=this.getAxis("y",a.componentIndex);else if(i){var c=i.coordinateSystem;c===this&&(u=this._coordsList[0])}return{cartesian:u,axis:f}},t.prototype.containPoint=function(e){var n=this._coordsList[0];if(n)return n.containPoint(e)},t.prototype._initCartesian=function(e,n,r){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},u={x:{},y:{}},f={x:0,y:0};if(n.eachComponent("xAxis",c("x"),this),n.eachComponent("yAxis",c("y"),this),!f.x||!f.y){this._axesMap={},this._axesList=[];return}this._axesMap=u,P(u.x,function(d,v){P(u.y,function(p,g){var y="x"+v+"y"+g,_=new YG(y);_.master=a,_.model=e,a._coordsMap[y]=_,a._coordsList.push(_),_.addAxis(d),_.addAxis(p)})});function c(d){return function(v,p){if(uy(v,e)){var g=v.get("position");d==="x"?g!=="top"&&g!=="bottom"&&(g=o.bottom?"top":"bottom"):g!=="left"&&g!=="right"&&(g=o.left?"right":"left"),o[g]=!0;var y=new qG(d,eO(v),[0,0],v.get("type"),g),_=y.type==="category";y.onBand=_&&v.get("boundaryGap"),y.inverse=v.get("inverse"),v.axis=y,y.model=v,y.grid=i,y.index=p,i._axesList.push(y),u[d][p]=y,f[d]++}}}},t.prototype._updateScale=function(e,n){P(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(fD(a)){var i=cD(a),o=i.xAxisModel,u=i.yAxisModel;if(!uy(o,n)||!uy(u,n))return;var f=this.getCartesian(o.componentIndex,u.componentIndex),c=a.getData(),d=f.getAxis("x"),v=f.getAxis("y");r(c,d),r(c,v)}},this);function r(a,i){P(rO(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return P(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);Xt(n,i)<0&&n.push(i),Xt(r,o)<0&&r.push(o)}),{baseAxes:n,otherAxes:r}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(a,i){var o=new t(a,e,n);o.name="grid_"+i,o.resize(a,n,!0),a.coordinateSystem=o,r.push(o)}),e.eachSeries(function(a){if(fD(a)){var i=cD(a),o=i.xAxisModel,u=i.yAxisModel,f=o.getCoordSysModel(),c=f.coordinateSystem;a.coordinateSystem=c.getCartesian(o.componentIndex,u.componentIndex)}}),r},t.dimensions=B_,t})();function uy(t,e){return t.getCoordSysModel()===e}function hD(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var a=t[e],i,o=n.model,u=o.get(["axisLine","onZero"]),f=o.get(["axisLine","onZeroAxisIndex"]);if(!u)return;if(f!=null)dD(a[f])&&(i=a[f]);else for(var c in a)if(a.hasOwnProperty(c)&&dD(a[c])&&!r[d(a[c])]){i=a[c];break}i&&(r[d(i)]=!0);function d(v){return v.dim+"_"+v.index}}function dD(t){return t&&t.type!=="category"&&t.type!=="time"&&JV(t)}function $G(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return r-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return r-a+e}}var Zi=Math.PI,eo=(function(){function t(e,n){this.group=new ke,this.opt=n,this.axisModel=e,Jt(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new ke({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return t.prototype.hasBuilder=function(e){return!!vD[e]},t.prototype.add=function(e){vD[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,n,r){var a=wS(n-e),i,o;return Uf(a)?(o=r>0?"top":"bottom",i="center"):Uf(a-Zi)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Zi?i=r>0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var n={componentType:e.mainType,componentIndex:e.componentIndex};return n[e.mainType+"Index"]=e.componentIndex,n},t.isLabelSilent=function(e){var n=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||n&&n.show)},t})(),vD={axisLine:function(t,e,n,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,u=[i[0],0],f=[i[1],0],c=u[0]>f[0];o&&(An(u,u,o),An(f,f,o));var d=st({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new ti({shape:{x1:u[0],y1:u[1],x2:f[0],y2:f[1]},style:d,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});$f(v.shape,v.style.lineWidth),v.anid="line",n.add(v);var p=e.get(["axisLine","symbol"]);if(p!=null){var g=e.get(["axisLine","symbolSize"]);pt(p)&&(p=[p,p]),(pt(g)||ve(g))&&(g=[g,g]);var y=fL(e.get(["axisLine","symbolOffset"])||0,g),_=g[0],S=g[1];P([{rotate:t.rotation+Math.PI/2,offset:y[0],r:0},{rotate:t.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((u[0]-f[0])*(u[0]-f[0])+(u[1]-f[1])*(u[1]-f[1]))}],function(x,M){if(p[M]!=="none"&&p[M]!=null){var C=ni(p[M],-_/2,-S/2,_,S,d.stroke,!0),T=x.r+x.offset,R=c?f:u;C.attr({rotation:x.rotate,x:R[0]+T*Math.cos(t.rotation),y:R[1]-T*Math.sin(t.rotation),silent:!0,z2:11}),n.add(C)}})}}},axisTickLabel:function(t,e,n,r){var a=KG(n,r,e,t),i=t8(n,r,e,t);if(QG(e,i,a),JG(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=P6(mt(i,function(u){return{label:u,priority:u.z2,defaultAttr:{ignore:u.ignore}}}));V6(o)}},axisName:function(t,e,n,r){var a=Is(t.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=t.nameDirection,u=e.getModel("nameTextStyle"),f=e.get("nameGap")||0,c=e.axis.getExtent(),d=c[0]>c[1]?-1:1,v=[i==="start"?c[0]-d*f:i==="end"?c[1]+d*f:(c[0]+c[1])/2,gD(i)?t.labelOffset+o*f:0],p,g=e.get("nameRotate");g!=null&&(g=g*Zi/180);var y;gD(i)?p=eo.innerTextLayout(t.rotation,g??t.rotation,o):(p=WG(t.rotation,i,g||0,c),y=t.axisNameAvailableWidth,y!=null&&(y=Math.abs(y/Math.sin(p.rotation)),!isFinite(y)&&(y=null)));var _=u.getFont(),S=e.get("nameTruncate",!0)||{},x=S.ellipsis,M=Is(t.nameTruncateMaxWidth,S.maxWidth,y),C=new Te({x:v[0],y:v[1],rotation:p.rotation,silent:eo.isLabelSilent(e),style:ya(u,{text:a,font:_,overflow:"truncate",width:M,ellipsis:x,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||p.textAlign,verticalAlign:u.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(pc({el:C,componentModel:e,itemName:a}),C.__fullText=a,C.anid="name",e.get("triggerEvent")){var T=eo.makeAxisEventDataBase(e);T.targetType="axisName",T.name=a,qt(C).eventData=T}r.add(C),C.updateTransform(),n.add(C),C.decomposeTransform()}}};function WG(t,e,n,r){var a=wS(n-t),i,o,u=r[0]>r[1],f=e==="start"&&!u||e!=="start"&&u;return Uf(a-Zi/2)?(o=f?"bottom":"top",i="center"):Uf(a-Zi*1.5)?(o=f?"top":"bottom",i="center"):(o="middle",a<Zi*1.5&&a>Zi/2?i=f?"left":"right":i=f?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function QG(t,e,n){if(!nO(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var i=e[0],o=e[1],u=e[e.length-1],f=e[e.length-2],c=n[0],d=n[1],v=n[n.length-1],p=n[n.length-2];r===!1?(Tr(i),Tr(c)):pD(i,o)&&(r?(Tr(o),Tr(d)):(Tr(i),Tr(c))),a===!1?(Tr(u),Tr(v)):pD(f,u)&&(a?(Tr(f),Tr(p)):(Tr(u),Tr(v)))}}function Tr(t){t&&(t.ignore=!0)}function pD(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var a=lc([]);return kv(a,a,-t.rotation),n.applyTransform(Ki([],a,t.getLocalTransform())),r.applyTransform(Ki([],a,e.getLocalTransform())),n.intersect(r)}}function gD(t){return t==="middle"||t==="center"}function LO(t,e,n,r,a){for(var i=[],o=[],u=[],f=0;f<t.length;f++){var c=t[f].coord;o[0]=c,o[1]=0,u[0]=c,u[1]=n,e&&(An(o,o,e),An(u,u,e));var d=new ti({shape:{x1:o[0],y1:o[1],x2:u[0],y2:u[1]},style:r,z2:2,autoBatch:!0,silent:!0});$f(d.shape,d.style.lineWidth),d.anid=a+"_"+t[f].tickValue,i.push(d)}return i}function KG(t,e,n,r){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var u=i.getModel("lineStyle"),f=r.tickDirection*i.get("length"),c=a.getTicksCoords(),d=LO(c,e.transform,f,Jt(u.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<d.length;v++)t.add(d[v]);return d}}function JG(t,e,n,r){var a=n.axis,i=n.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var u=i.getModel("lineStyle"),f=r*i.get("length"),c=Jt(u.getLineStyle(),Jt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),d=0;d<o.length;d++)for(var v=LO(o[d],e.transform,f,c,"minorticks_"+d),p=0;p<v.length;p++)t.add(v[p])}}function t8(t,e,n,r){var a=n.axis,i=Is(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=n.getModel("axisLabel"),u=o.get("margin"),f=a.getViewLabels(),c=(Is(r.labelRotate,o.get("rotate"))||0)*Zi/180,d=eo.innerTextLayout(r.rotation,c,r.labelDirection),v=n.getCategories&&n.getCategories(!0),p=[],g=eo.isLabelSilent(n),y=n.get("triggerEvent");return P(f,function(_,S){var x=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(_.tickValue):_.tickValue,M=_.formattedLabel,C=_.rawLabel,T=o;if(v&&v[x]){var R=v[x];St(R)&&R.textStyle&&(T=new xe(R.textStyle,o,n.ecModel))}var D=T.getTextColor()||n.get(["axisLine","lineStyle","color"]),E=a.dataToCoord(x),z=T.getShallow("align",!0)||d.textAlign,I=Pt(T.getShallow("alignMinLabel",!0),z),N=Pt(T.getShallow("alignMaxLabel",!0),z),L=T.getShallow("verticalAlign",!0)||T.getShallow("baseline",!0)||d.textVerticalAlign,F=Pt(T.getShallow("verticalAlignMinLabel",!0),L),G=Pt(T.getShallow("verticalAlignMaxLabel",!0),L),Y=new Te({x:E,y:r.labelOffset+r.labelDirection*u,rotation:d.rotation,silent:g,z2:10+(_.level||0),style:ya(T,{text:M,align:S===0?I:S===f.length-1?N:z,verticalAlign:S===0?F:S===f.length-1?G:L,fill:Rt(D)?D(a.type==="category"?C:a.type==="value"?x+"":x,S):D})});if(Y.anid="label_"+x,pc({el:Y,componentModel:n,itemName:M,formatterParamsExtra:{isTruncated:function(){return Y.isTruncated},value:C,tickIndex:S}}),y){var Z=eo.makeAxisEventDataBase(n);Z.targetType="axisLabel",Z.value=C,Z.tickIndex=S,a.type==="category"&&(Z.dataIndex=x),qt(Y).eventData=Z}e.add(Y),Y.updateTransform(),p.push(Y),t.add(Y),Y.decomposeTransform()}),p}}function e8(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return n8(n,t,e),n.seriesInvolved&&a8(n,t),n}function n8(t,e,n){var r=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];P(n.getCoordinateSystems(),function(u){if(!u.axisPointerEnabled)return;var f=ac(u.model),c=t.coordSysAxesInfo[f]={};t.coordSysMap[f]=u;var d=u.model,v=d.getModel("tooltip",r);if(P(u.getAxes(),be(_,!1,null)),u.getTooltipAxes&&r&&v.get("show")){var p=v.get("trigger")==="axis",g=v.get(["axisPointer","type"])==="cross",y=u.getTooltipAxes(v.get(["axisPointer","axis"]));(p||g)&&P(y.baseAxes,be(_,g?"cross":!0,p)),g&&P(y.otherAxes,be(_,"cross",!1))}function _(S,x,M){var C=M.model.getModel("axisPointer",a),T=C.get("show");if(!(!T||T==="auto"&&!S&&!P_(C))){x==null&&(x=C.get("triggerTooltip")),C=S?r8(M,v,a,e,S,x):C;var R=C.get("snap"),D=C.get("triggerEmphasis"),E=ac(M.model),z=x||R||M.type==="category",I=t.axesInfo[E]={key:E,axis:M,coordSys:u,axisPointerModel:C,triggerTooltip:x,triggerEmphasis:D,involveSeries:z,snap:R,useHandle:P_(C),seriesModels:[],linkGroup:null};c[E]=I,t.seriesInvolved=t.seriesInvolved||z;var N=i8(i,M);if(N!=null){var L=o[N]||(o[N]={axesInfo:{}});L.axesInfo[E]=I,L.mapper=i[N].mapper,I.linkGroup=L}}}})}function r8(t,e,n,r,a,i){var o=e.getModel("axisPointer"),u=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],f={};P(u,function(p){f[p]=Ht(o.get(p))}),f.snap=t.type!=="category"&&!!i,o.get("type")==="cross"&&(f.type="line");var c=f.label||(f.label={});if(c.show==null&&(c.show=!1),a==="cross"){var d=o.get(["label","show"]);if(c.show=d??!0,!i){var v=f.lineStyle=o.get("crossStyle");v&&Jt(c,v.textStyle)}}return t.model.getModel("axisPointer",new xe(f,n,r))}function a8(t,e){e.eachSeries(function(n){var r=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),i=n.get(["tooltip","show"],!0);!r||a==="none"||a===!1||a==="item"||i===!1||n.get(["axisPointer","show"],!0)===!1||P(t.coordSysAxesInfo[ac(r.model)],function(o){var u=o.axis;r.getAxis(u.dim)===u&&(o.seriesModels.push(n),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=n.getData().count())})})}function i8(t,e){for(var n=e.model,r=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(fy(i[r+"AxisId"],n.id)||fy(i[r+"AxisIndex"],n.componentIndex)||fy(i[r+"AxisName"],n.name))return a}}function fy(t,e){return t==="all"||ct(t)&&Xt(t,e)>=0||t===e}function o8(t){var e=M1(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,a=n.option,i=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var u=P_(n);i==null&&(a.status=u?"show":"hide");var f=r.getExtent().slice();f[0]>f[1]&&f.reverse(),(o==null||o>f[1])&&(o=f[1]),o<f[0]&&(o=f[0]),a.value=o,u&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function M1(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ac(t)]}function l8(t){var e=M1(t);return e&&e.axisPointerModel}function P_(t){return!!t.get(["handle","show"])}function ac(t){return t.type+"||"+t.id}var mD={},OO=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,i){this.axisPointerClass&&o8(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,a,!0)},e.prototype.updateAxisPointer=function(n,r,a,i){this._doUpdateAxisPointerClass(n,a,!1)},e.prototype.remove=function(n,r){var a=this._axisPointer;a&&a.remove(r)},e.prototype.dispose=function(n,r){this._disposeAxisPointer(r),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(n,r,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=l8(n);o?(this._axisPointer||(this._axisPointer=new i)).render(n,o,r,a):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},e.registerAxisPointerClass=function(n,r){mD[n]=r},e.getAxisPointerClass=function(n){return n&&mD[n]},e.type="axis",e})(yn),H_=Me();function s8(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitArea"),o=i.getModel("areaStyle"),u=o.get("color"),f=r.coordinateSystem.getRect(),c=a.getTicksCoords({tickModel:i,clamp:!0});if(c.length){var d=u.length,v=H_(t).splitAreaColors,p=wt(),g=0;if(v)for(var y=0;y<c.length;y++){var _=v.get(c[y].tickValue);if(_!=null){g=(_+(d-1)*y)%d;break}}var S=a.toGlobalCoord(c[0].coord),x=o.getAreaStyle();u=ct(u)?u:[u];for(var y=1;y<c.length;y++){var M=a.toGlobalCoord(c[y].coord),C=void 0,T=void 0,R=void 0,D=void 0;a.isHorizontal()?(C=S,T=f.y,R=M-C,D=f.height,S=C+R):(C=f.x,T=S,R=f.width,D=M-T,S=T+D);var E=c[y-1].tickValue;E!=null&&p.set(E,g),e.add(new we({anid:E!=null?"area_"+E:null,shape:{x:C,y:T,width:R,height:D},style:Jt({fill:u[g]},x),autoBatch:!0,silent:!0})),g=(g+1)%d}H_(t).splitAreaColors=p}}}function u8(t){H_(t).splitAreaColors=null}var f8=["axisLine","axisTickLabel","axisName"],c8=["splitArea","splitLine","minorSplitLine"],zO=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return e.prototype.render=function(n,r,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ke,this.group.add(this._axisGroup),!!n.get("show")){var u=n.getCoordSysModel(),f=k_(u,n),c=new eo(n,st({handleAutoShown:function(v){for(var p=u.coordinateSystem.getCartesians(),g=0;g<p.length;g++)if(L_(p[g].getOtherAxis(n.axis).scale))return!0;return!1}},f));P(f8,c.add,c),this._axisGroup.add(c.getGroup()),P(c8,function(v){n.get([v,"show"])&&h8[v](this,this._axisGroup,n,u)},this);var d=i&&i.type==="changeAxisOrder"&&i.isInitSort;d||dE(o,this._axisGroup,n),t.prototype.render.call(this,n,r,a,i)}},e.prototype.remove=function(){u8(this)},e.type="cartesianAxis",e})(OO),h8={splitLine:function(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),u=o.get("color"),f=i.get("showMinLine")!==!1,c=i.get("showMaxLine")!==!1;u=ct(u)?u:[u];for(var d=r.coordinateSystem.getRect(),v=a.isHorizontal(),p=0,g=a.getTicksCoords({tickModel:i}),y=[],_=[],S=o.getLineStyle(),x=0;x<g.length;x++){var M=a.toGlobalCoord(g[x].coord);if(!(x===0&&!f||x===g.length-1&&!c)){var C=g[x].tickValue;v?(y[0]=M,y[1]=d.y,_[0]=M,_[1]=d.y+d.height):(y[0]=d.x,y[1]=M,_[0]=d.x+d.width,_[1]=M);var T=p++%u.length,R=new ti({anid:C!=null?"line_"+C:null,autoBatch:!0,shape:{x1:y[0],y1:y[1],x2:_[0],y2:_[1]},style:Jt({stroke:u[T]},S),silent:!0});$f(R.shape,S.lineWidth),e.add(R)}}}},minorSplitLine:function(t,e,n,r){var a=n.axis,i=n.getModel("minorSplitLine"),o=i.getModel("lineStyle"),u=r.coordinateSystem.getRect(),f=a.isHorizontal(),c=a.getMinorTicksCoords();if(c.length)for(var d=[],v=[],p=o.getLineStyle(),g=0;g<c.length;g++)for(var y=0;y<c[g].length;y++){var _=a.toGlobalCoord(c[g][y].coord);f?(d[0]=_,d[1]=u.y,v[0]=_,v[1]=u.y+u.height):(d[0]=u.x,d[1]=_,v[0]=u.x+u.width,v[1]=_);var S=new ti({anid:"minor_line_"+c[g][y].tickValue,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:v[0],y2:v[1]},style:p,silent:!0});$f(S.shape,p.lineWidth),e.add(S)}},splitArea:function(t,e,n,r){s8(t,e,n,r)}},NO=(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})(zO),d8=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=NO.type,n}return e.type="yAxis",e})(zO),v8=(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 we({shape:n.coordinateSystem.getRect(),style:Jt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(yn),yD={offset:0};function p8(t){t.registerComponentView(v8),t.registerComponentModel(PG),t.registerCoordinateSystem("cartesian2d",ZG),lD(t,"x",I_,yD),lD(t,"y",I_,yD),t.registerComponentView(NO),t.registerComponentView(d8),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var _D="\0_ec_interaction_mutex";function SD(t,e){return!!g8(t)[e]}function g8(t){return t[_D]||(t[_D]={})}so({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},gn);var m8=(function(t){ut(e,t);function e(n){var r=t.call(this)||this;r._zr=n;var a=xt(r._mousedownHandler,r),i=xt(r._mousemoveHandler,r),o=xt(r._mouseupHandler,r),u=xt(r._mousewheelHandler,r),f=xt(r._pinchHandler,r);return r.enable=function(c,d){this.disable(),this._opt=Jt(Ht(d)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),c==null&&(c=!0),(c===!0||c==="move"||c==="pan")&&(n.on("mousedown",a),n.on("mousemove",i),n.on("mouseup",o)),(c===!0||c==="scale"||c==="zoom")&&(n.on("mousewheel",u),n.on("pinch",f))},r.disable=function(){n.off("mousedown",a),n.off("mousemove",i),n.off("mouseup",o),n.off("mousewheel",u),n.off("pinch",f)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(n){this.pointerChecker=n},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(n){if(!uC(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var a=n.offsetX,i=n.offsetY;this.pointerChecker&&this.pointerChecker(n,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!Gd("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||SD(this._zr,"globalPan"))){var r=n.offsetX,a=n.offsetY,i=this._x,o=this._y,u=r-i,f=a-o;this._x=r,this._y=a,this._opt.preventDefaultMouseMove&&Bs(n.event),IO(this,"pan","moveOnMouseMove",n,{dx:u,dy:f,oldX:i,oldY:o,newX:r,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(n){uC(n)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(n){var r=Gd("zoomOnMouseWheel",n,this._opt),a=Gd("moveOnMouseWheel",n,this._opt),i=n.wheelDelta,o=Math.abs(i),u=n.offsetX,f=n.offsetY;if(!(i===0||!r&&!a)){if(r){var c=o>3?1.4:o>1?1.2:1.1,d=i>0?c:1/c;cy(this,"zoom","zoomOnMouseWheel",n,{scale:d,originX:u,originY:f,isAvailableBehavior:null})}if(a){var v=Math.abs(i),p=(i>0?1:-1)*(v>3?.4:v>1?.15:.05);cy(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:p,originX:u,originY:f,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(n){if(!SD(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;cy(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},e})(ta);function cy(t,e,n,r,a){t.pointerChecker&&t.pointerChecker(r,a.originX,a.originY)&&(Bs(r.event),IO(t,e,n,r,a))}function IO(t,e,n,r,a){a.isAvailableBehavior=xt(Gd,null,n,r),t.trigger(e,a)}function Gd(t,e,n){var r=n[t];return!t||r&&(!pt(r)||e.event[r+"Key"])}function _p(t,e,n,r,a,i){t=t||0;var o=n[1]-n[0];if(a!=null&&(a=_s(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var u=Math.abs(e[1]-e[0]);u=_s(u,[0,o]),a=i=_s(u,[a,i]),r=0}e[0]=_s(e[0],n),e[1]=_s(e[1],n);var f=hy(e,r);e[r]+=t;var c=a||0,d=n.slice();f.sign<0?d[0]+=c:d[1]-=c,e[r]=_s(e[r],d);var v;return v=hy(e,r),a!=null&&(v.sign!==f.sign||v.span<a)&&(e[1-r]=e[r]+f.sign*a),v=hy(e,r),i!=null&&v.span>i&&(e[1-r]=e[r]+v.sign*i),e}function hy(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 _s(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}function y8(t,e,n,r){return t&&(t.legacy||t.legacy!==!1&&!n&&!r&&e!=="tspan"&&(e==="text"||zt(t,"text")))}function _8(t,e,n){var r=t,a,i,o;if(e==="text")o=r;else{o={},zt(r,"text")&&(o.text=r.text),zt(r,"rich")&&(o.rich=r.rich),zt(r,"textFill")&&(o.fill=r.textFill),zt(r,"textStroke")&&(o.stroke=r.textStroke),zt(r,"fontFamily")&&(o.fontFamily=r.fontFamily),zt(r,"fontSize")&&(o.fontSize=r.fontSize),zt(r,"fontStyle")&&(o.fontStyle=r.fontStyle),zt(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var u=zt(r,"textPosition");a.position=u?r.textPosition:"inside",zt(r,"textPosition")&&(a.position=r.textPosition),zt(r,"textOffset")&&(a.offset=r.textOffset),zt(r,"textRotation")&&(a.rotation=r.textRotation),zt(r,"textDistance")&&(a.distance=r.textDistance)}return bD(o,t),P(o.rich,function(f){bD(f,f)}),{textConfig:a,textContent:i}}function bD(t,e){e&&(e.font=e.textFont||e.font,zt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),zt(e,"textAlign")&&(t.align=e.textAlign),zt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),zt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),zt(e,"textWidth")&&(t.width=e.textWidth),zt(e,"textHeight")&&(t.height=e.textHeight),zt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),zt(e,"textPadding")&&(t.padding=e.textPadding),zt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),zt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),zt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),zt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),zt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),zt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),zt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}var BO={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},xD=ae(BO);Jr(ma,function(t,e){return t[e]=1,t},{});ma.join(", ");var Av=["","style","shape","extra"],Ps=Me();function C1(t,e,n,r,a){var i=t+"Animation",o=zS(t,r,a)||{},u=Ps(e).userDuring;return o.duration>0&&(o.during=u?xt(C8,{el:e,userDuring:u}):null,o.setToFinal=!0,o.scope=t),st(o,n[i]),o}function dy(t,e,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,u=n.isAnimationEnabled(),f=Ps(t),c=e.style;f.userDuring=e.during;var d={},v={};if(A8(t,e,v),MD("shape",e,v),MD("extra",e,v),!i&&u&&(T8(t,e,d),wD("shape",t,e,d),wD("extra",t,e,d),D8(t,e,c,d)),v.style=c,b8(t,v,o),w8(t,e),u)if(i){var p={};P(Av,function(y){var _=y?e[y]:e;_&&_.enterFrom&&(y&&(p[y]=p[y]||{}),st(y?p[y]:p,_.enterFrom))});var g=C1("enter",t,e,n,a);g.duration>0&&t.animateFrom(p,g)}else x8(t,e,a||0,n,d);kO(t,e),c?t.dirty():t.markRedraw()}function kO(t,e){for(var n=Ps(t).leaveToProps,r=0;r<Av.length;r++){var a=Av[r],i=a?e[a]:e;i&&i.leaveTo&&(n||(n=Ps(t).leaveToProps={}),a&&(n[a]=n[a]||{}),st(a?n[a]:n,i.leaveTo))}}function S8(t,e,n,r){if(t){var a=t.parent,i=Ps(t).leaveToProps;if(i){var o=C1("update",t,e,n,0);o.done=function(){a.remove(t)},t.animateTo(i,o)}else a.remove(t)}}function sl(t){return t==="all"}function b8(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var a=t.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}function x8(t,e,n,r,a){if(a){var i=C1("update",t,e,r,n);i.duration>0&&t.animateFrom(a,i)}}function w8(t,e){zt(e,"silent")&&(t.silent=e.silent),zt(e,"ignore")&&(t.ignore=e.ignore),t instanceof gl&&zt(e,"invisible")&&(t.invisible=e.invisible),t instanceof oe&&zt(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var ca={},M8={setTransform:function(t,e){return ca.el[t]=e,this},getTransform:function(t){return ca.el[t]},setShape:function(t,e){var n=ca.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=ca.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=ca.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=ca.el.style;if(e)return e[t]},setExtra:function(t,e){var n=ca.el.extra||(ca.el.extra={});return n[t]=e,this},getExtra:function(t){var e=ca.el.extra;if(e)return e[t]}};function C8(){var t=this,e=t.el;if(e){var n=Ps(e).userDuring,r=t.userDuring;if(n!==r){t.el=t.userDuring=null;return}ca.el=e,r(M8)}}function wD(t,e,n,r){var a=n[t];if(a){var i=e[t],o;if(i){var u=n.transition,f=a.transition;if(f)if(!o&&(o=r[t]={}),sl(f))st(o,i);else for(var c=We(f),d=0;d<c.length;d++){var v=c[d],p=i[v];o[v]=p}else if(sl(u)||Xt(u,t)>=0){!o&&(o=r[t]={});for(var g=ae(i),d=0;d<g.length;d++){var v=g[d],p=i[v];R8(a[v],p)&&(o[v]=p)}}}}}function MD(t,e,n){var r=e[t];if(r)for(var a=n[t]={},i=ae(r),o=0;o<i.length;o++){var u=i[o];a[u]=Tf(r[u])}}function T8(t,e,n){for(var r=e.transition,a=sl(r)?ma:We(r||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var u=t[o];n[o]=u}}}function A8(t,e,n){for(var r=0;r<xD.length;r++){var a=xD[r],i=BO[a],o=e[a];o&&(n[i[0]]=o[0],n[i[1]]=o[1])}for(var r=0;r<ma.length;r++){var u=ma[r];e[u]!=null&&(n[u]=e[u])}}function D8(t,e,n,r){if(n){var a=t.style,i;if(a){var o=n.transition,u=e.transition;if(o&&!sl(o)){var f=We(o);!i&&(i=r.style={});for(var c=0;c<f.length;c++){var d=f[c],v=a[d];i[d]=v}}else if(t.getAnimationStyleProps&&(sl(u)||sl(o)||Xt(u,"style")>=0)){var p=t.getAnimationStyleProps(),g=p?p.style:null;if(g){!i&&(i=r.style={});for(var y=ae(n),c=0;c<y.length;c++){var d=y[c];if(g[d]){var v=a[d];i[d]=v}}}}}}}function R8(t,e){return mn(t)?t!==e:t!=null&&isFinite(t)}var PO=Me(),E8=["percent","easing","shape","style","extra"];function L8(t){t.stopAnimation("keyframe"),t.attr(PO(t))}function F_(t,e,n){if(!(!n.isAnimationEnabled()||!e)){if(ct(e)){P(e,function(u){F_(t,u,n)});return}var r=e.keyframes,a=e.duration;if(n&&a==null){var i=zS("enter",n,0);a=i&&i.duration}if(!(!r||!a)){var o=PO(t);P(Av,function(u){if(!(u&&!t[u])){var f;r.sort(function(c,d){return c.percent-d.percent}),P(r,function(c){var d=t.animators,v=u?c[u]:c;if(v){var p=ae(v);if(u||(p=Oe(p,function(_){return Xt(E8,_)<0})),!!p.length){f||(f=t.animate(u,e.loop,!0),f.scope="keyframe");for(var g=0;g<d.length;g++)d[g]!==f&&d[g].targetName===f.targetName&&d[g].stopTracks(p);u&&(o[u]=o[u]||{});var y=u?o[u]:o;P(p,function(_){y[_]=((u?t[u]:t)||{})[_]}),f.whenWithKeys(a*c.percent,v,p,c.easing)}}}),f&&f.delay(e.delay||0).duration(a).start(e.easing)}})}}}var Wo=Me(),CD=Ht,vy=xt,O8=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,n,r,a){var i=n.get("value"),o=n.get("status");if(this._axisModel=e,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var u=this._group,f=this._handle;if(!o||o==="hide"){u&&u.hide(),f&&f.hide();return}u&&u.show(),f&&f.show();var c={};this.makeElOption(c,i,e,n,r);var 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 ke,this.createPointerEl(u,c,e,n),this.createLabelEl(u,c,e,n),r.getZr().add(u);else{var p=be(TD,n,v);this.updatePointerEl(u,c,p),this.updateLabelEl(u,c,p,n)}DD(u,n,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,n){var r=n.get("animation"),a=e.axis,i=a.type==="category",o=n.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var u=this.animationThreshold;if(i&&a.getBandWidth()>u)return!0;if(o){var f=M1(e).seriesDataCount,c=a.getExtent();return Math.abs(c[0]-c[1])/f>u}return!1}return r===!0},t.prototype.makeElOption=function(e,n,r,a,i){},t.prototype.createPointerEl=function(e,n,r,a){var i=n.pointer;if(i){var o=Wo(e).pointerEl=new kP[i.type](CD(n.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,n,r,a){if(n.label){var i=Wo(e).labelEl=new Te(CD(n.label));e.add(i),AD(i,a)}},t.prototype.updatePointerEl=function(e,n,r){var a=Wo(e).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(e,n,r,a){var i=Wo(e).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),AD(i,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=n.getModel("handle"),o=n.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var u;this._handle||(u=!0,a=this._handle=Wv(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){Bs(c.event)},onmousedown:vy(this._onHandleDragMove,this,0,0),drift:vy(this._onHandleDragMove,this),ondragend:vy(this._onHandleDragEnd,this)}),r.add(a)),DD(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var f=i.get("size");ct(f)||(f=[f,f]),a.scaleX=f[0]/2,a.scaleY=f[1]/2,fp(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,u)}},t.prototype._moveHandleToValue=function(e,n){TD(this._axisPointerModel,!n&&this._moveAnimation,this._handle,py(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(py(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(py(a)),Wo(r).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var n=e.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),mv(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 TD(t,e,n,r){HO(Wo(n).lastProp,r)||(Wo(n).lastProp=r,e?sn(n,r,t):(n.stopAnimation(),n.attr(r)))}function HO(t,e){if(St(t)&&St(e)){var n=!0;return P(e,function(r,a){n=n&&HO(t[a],r)}),!!n}else return t===e}function AD(t,e){t[e.get(["label","show"])?"show":"hide"]()}function py(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function DD(t,e,n){var r=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=n)})}function z8(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 N8(t,e,n,r,a){var i=n.get("value"),o=FO(i,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),u=n.getModel("label"),f=_c(u.get("padding")||0),c=u.getFont(),d=SS(o,c),v=a.position,p=d.width+f[1]+f[3],g=d.height+f[0]+f[2],y=a.align;y==="right"&&(v[0]-=p),y==="center"&&(v[0]-=p/2);var _=a.verticalAlign;_==="bottom"&&(v[1]-=g),_==="middle"&&(v[1]-=g/2),I8(v,p,g,r);var S=u.get("backgroundColor");(!S||S==="auto")&&(S=e.get(["axisLine","lineStyle","color"])),t.label={x:v[0],y:v[1],style:ya(u,{text:o,font:c,fill:u.getTextColor(),padding:f,backgroundColor:S}),z2:10}}function I8(t,e,n,r){var a=r.getWidth(),i=r.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+n,i)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function FO(t,e,n,r,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var u={value:y1(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};P(r,function(f){var c=n.getSeriesByIndex(f.seriesIndex),d=f.dataIndexInside,v=c&&c.getDataParams(d);v&&u.seriesData.push(v)}),pt(o)?i=o.replace("{value}",i):Rt(o)&&(i=o(u))}return i}function VO(t,e,n){var r=Qi();return kv(r,r,n.rotation),Qd(r,r,n.position),Wf([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function B8(t,e,n,r,a,i){var o=eo.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),N8(e,r,a,i,{position:VO(r.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function k8(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function P8(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}var H8=(function(t){ut(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,a,i,o){var u=a.axis,f=u.grid,c=i.get("type"),d=RD(f,u).getOtherAxis(u).getGlobalExtent(),v=u.toGlobalCoord(u.dataToCoord(r,!0));if(c&&c!=="none"){var p=z8(i),g=F8[c](u,v,d);g.style=p,n.graphicKey=g.type,n.pointer=g}var y=k_(f.model,a);B8(r,n,y,a,i,o)},e.prototype.getHandleTransform=function(n,r,a){var i=k_(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=VO(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,u=o.grid,f=o.getGlobalExtent(!0),c=RD(u,o).getOtherAxis(o).getGlobalExtent(),d=o.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 p=(c[1]+c[0])/2,g=[p,p];g[d]=v[d];var y=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:n.rotation,cursorPoint:g,tooltipOption:y[d]}},e})(O8);function RD(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var F8={line:function(t,e,n){var r=k8([e,n[0]],[e,n[1]],ED(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:P8([e-r/2,n[0]],[r,a],ED(t))}}};function ED(t){return t.dim==="x"?0:1}var V8=(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),Qa=Me(),G8=P;function GO(t,e,n){if(!Dt.node){var r=e.getZr();Qa(r).records||(Qa(r).records={}),U8(r,e);var a=Qa(r).records[t]||(Qa(r).records[t]={});a.handler=n}}function U8(t,e){if(Qa(t).initialized)return;Qa(t).initialized=!0,n("click",be(LD,"click")),n("mousemove",be(LD,"mousemove")),n("globalout",Y8);function n(r,a){t.on(r,function(i){var o=q8(e);G8(Qa(t).records,function(u){u&&a(u,i,o.dispatchAction)}),j8(o.pendings,e)})}}function j8(t,e){var n=t.showTip.length,r=t.hideTip.length,a;n?a=t.showTip[n-1]:r&&(a=t.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function Y8(t,e,n){t.handler("leave",null,n)}function LD(t,e,n,r){e.handler(t,n,r)}function q8(t){var e={showTip:[],hideTip:[]},n=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function V_(t,e){if(!Dt.node){var n=e.getZr(),r=(Qa(n).records||{})[t];r&&(Qa(n).records[t]=null)}}var X8=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=r.getComponent("tooltip"),o=n.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";GO("axisPointer",a,function(u,f,c){o!=="none"&&(u==="leave"||o.indexOf(u)>=0)&&c({type:"updateAxisPointer",currTrigger:u,x:f&&f.offsetX,y:f&&f.offsetY})})},e.prototype.remove=function(n,r){V_("axisPointer",r)},e.prototype.dispose=function(n,r){V_("axisPointer",r)},e.type="axisPointer",e})(yn);function UO(t,e){var n=[],r=t.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=fl(i,t);if(o==null||o<0||ct(o))return{point:[]};var u=i.getItemGraphicEl(o),f=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(o)||[];else if(f&&f.dataToPoint)if(t.isStacked){var c=f.getBaseAxis(),d=f.getOtherAxis(c),v=d.dim,p=c.dim,g=v==="x"||v==="radius"?1:0,y=i.mapDimension(p),_=[];_[g]=i.get(y,o),_[1-g]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=f.dataToPoint(_)||[]}else n=f.dataToPoint(i.getValues(mt(f.dimensions,function(x){return i.mapDimension(x)}),o))||[];else if(u){var S=u.getBoundingRect().clone();S.applyTransform(u.transform),n=[S.x+S.width/2,S.y+S.height/2]}return{point:n,el:u}}var OD=Me();function Z8(t,e,n){var r=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||xt(n.dispatchAction,n),u=e.getComponent("axisPointer").coordSysAxesInfo;if(u){Ud(a)&&(a=UO({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var f=Ud(a),c=i.axesInfo,d=u.axesInfo,v=r==="leave"||Ud(a),p={},g={},y={list:[],map:{}},_={showPointer:be(W8,g),showTooltip:be(Q8,y)};P(u.coordSysMap,function(x,M){var C=f||x.containPoint(a);P(u.coordSysAxesInfo[M],function(T,R){var D=T.axis,E=eU(c,T);if(!v&&C&&(!c||E)){var z=E&&E.value;z==null&&!f&&(z=D.pointToData(a)),z!=null&&zD(T,z,_,!1,p)}})});var S={};return P(d,function(x,M){var C=x.linkGroup;C&&!g[M]&&P(C.axesInfo,function(T,R){var D=g[R];if(T!==x&&D){var E=D.value;C.mapper&&(E=x.axis.scale.parse(C.mapper(E,ND(T),ND(x)))),S[x.key]=E}})}),P(S,function(x,M){zD(d[M],x,_,!0,p)}),K8(g,d,p),J8(y,a,t,o),tU(d,o,n),p}}function zD(t,e,n,r,a){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){n.showPointer(t,e);return}var o=$8(e,t),u=o.payloadBatch,f=o.snapToValue;u[0]&&a.seriesIndex==null&&st(a,u[0]),!r&&t.snap&&i.containData(f)&&f!=null&&(e=f),n.showPointer(t,e,u),n.showTooltip(t,o,f)}}function $8(t,e){var n=e.axis,r=n.dim,a=t,i=[],o=Number.MAX_VALUE,u=-1;return P(e.seriesModels,function(f,c){var d=f.getData().mapDimensionsAll(r),v,p;if(f.getAxisTooltipData){var g=f.getAxisTooltipData(d,t,n);p=g.dataIndices,v=g.nestestValue}else{if(p=f.getData().indicesOfNearest(d[0],t,n.type==="category"?.5:null),!p.length)return;v=f.getData().get(d[0],p[0])}if(!(v==null||!isFinite(v))){var y=t-v,_=Math.abs(y);_<=o&&((_<o||y>=0&&u<0)&&(o=_,u=y,a=v,i.length=0),P(p,function(S){i.push({seriesIndex:f.seriesIndex,dataIndexInside:S,dataIndex:f.getData().getRawIndex(S)})}))}}),{payloadBatch:i,snapToValue:a}}function W8(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function Q8(t,e,n,r){var a=n.payloadBatch,i=e.axis,o=i.model,u=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var f=e.coordSys.model,c=ac(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:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:u.get(["label","precision"]),formatter:u.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function K8(t,e,n){var r=n.axesInfo=[];P(e,function(a,i){var o=a.axisPointerModel.option,u=t[i];u?(!a.useHandle&&(o.status="show"),o.value=u.value,o.seriesDataIndices=(u.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function J8(t,e,n,r){if(Ud(e)||!t.list.length){r({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function tU(t,e,n){var r=n.getZr(),a="axisPointerLastHighlights",i=OD(r)[a]||{},o=OD(r)[a]={};P(t,function(c,d){var v=c.axisPointerModel.option;v.status==="show"&&c.triggerEmphasis&&P(v.seriesDataIndices,function(p){var g=p.seriesIndex+" | "+p.dataIndex;o[g]=p})});var u=[],f=[];P(i,function(c,d){!o[d]&&f.push(c)}),P(o,function(c,d){!i[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 eU(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 ND(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 Ud(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function jO(t){OO.registerAxisPointerClass("CartesianAxisPointer",H8),t.registerComponentModel(V8),t.registerComponentView(X8),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!ct(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=e8(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Z8)}function Sp(t){Qn(p8),Qn(jO)}function nU(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function ID(t,e){var n;return P(e,function(r){t[r]!=null&&t[r]!=="auto"&&(n=!0)}),n}function rU(t,e,n){var r=st({},n),a=t[e],i=n.$action||"merge";i==="merge"?a?(Zt(a,r,!0),dl(a,r,{ignoreSize:!0}),EE(n,a),xd(n,a),xd(n,a,"shape"),xd(n,a,"style"),xd(n,a,"extra"),n.clipPath=a.clipPath):t[e]=r:i==="replace"?t[e]=r:i==="remove"&&a&&(t[e]=null)}var YO=["transition","enterFrom","leaveTo"],aU=YO.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function xd(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),!(!t||!e))for(var r=n?YO:aU,a=0;a<r.length;a++){var i=r[a];t[i]==null&&e[i]!=null&&(t[i]=e[i])}}function iU(t,e){if(t&&(t.hv=e.hv=[ID(e,["left","right"]),ID(e,["top","bottom"])],t.type==="group")){var n=t,r=e;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var oU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return e.prototype.mergeOption=function(n,r){var a=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,n,r),this.option.elements=a},e.prototype.optionUpdated=function(n,r){var a=this.option,i=(r?a:n).elements,o=a.elements=r?[]:a.elements,u=[];this._flatten(i,u,null);var f=DR(o,u,"normalMerge"),c=this._elOptionsToUpdate=[];P(f,function(d,v){var p=d.newOption;p&&(c.push(p),nU(d,p),rU(o,v,p),iU(o[v],p))},this),a.elements=Oe(o,function(d){return d&&delete d.$action,d!=null})},e.prototype._flatten=function(n,r,a){P(n,function(i){if(i){a&&(i.parentOption=a),r.push(i);var o=i.children;o&&o.length&&this._flatten(o,r,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},e.type="graphic",e.defaultOption={elements:[]},e})(Qt),BD={path:null,compoundPath:null,group:ke,image:_a,text:Te},Lr=Me(),lU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this._elMap=wt()},e.prototype.render=function(n,r,a){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,a)},e.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var a=this._elMap,i=this.group,o=n.get("z"),u=n.get("zlevel");P(r,function(f){var c=Xn(f.id,null),d=c!=null?a.get(c):null,v=Xn(f.parentId,null),p=v!=null?a.get(v):i,g=f.type,y=f.style;g==="text"&&y&&f.hv&&f.hv[1]&&(y.textVerticalAlign=y.textBaseline=y.verticalAlign=y.align=null);var _=f.textContent,S=f.textConfig;if(y&&y8(y,g,!!S,!!_)){var x=_8(y,g);!S&&x.textConfig&&(S=f.textConfig=x.textConfig),!_&&x.textContent&&(_=x.textContent)}var M=sU(f),C=f.$action||"merge",T=C==="merge",R=C==="replace";if(T){var D=!d,E=d;D?E=kD(c,p,f.type,a):(E&&(Lr(E).isNew=!1),L8(E)),E&&(dy(E,M,n,{isInit:D}),PD(E,f,o,u))}else if(R){jd(d,f,a,n);var z=kD(c,p,f.type,a);z&&(dy(z,M,n,{isInit:!0}),PD(z,f,o,u))}else C==="remove"&&(kO(d,f),jd(d,f,a,n));var I=a.get(c);if(I&&_)if(T){var N=I.getTextContent();N?N.attr(_):I.setTextContent(new Te(_))}else R&&I.setTextContent(new Te(_));if(I){var L=f.clipPath;if(L){var F=L.type,G=void 0,D=!1;if(T){var Y=I.getClipPath();D=!Y||Lr(Y).type!==F,G=D?G_(F):Y}else R&&(D=!0,G=G_(F));I.setClipPath(G),dy(G,L,n,{isInit:D}),F_(G,L.keyframeAnimation,n)}var Z=Lr(I);I.setTextConfig(S),Z.option=f,uU(I,n,f),pc({el:I,componentModel:n,itemName:I.name,itemTooltipOption:f.tooltip}),F_(I,f.keyframeAnimation,n)}})}},e.prototype._relocate=function(n,r){for(var a=n.option.elements,i=this.group,o=this._elMap,u=r.getWidth(),f=r.getHeight(),c=["x","y"],d=0;d<a.length;d++){var v=a[d],p=Xn(v.id,null),g=p!=null?o.get(p):null;if(!(!g||!g.isGroup)){var y=g.parent,_=y===i,S=Lr(g),x=Lr(y);S.width=de(S.option.width,_?u:x.width)||0,S.height=de(S.option.height,_?f:x.height)||0}}for(var d=a.length-1;d>=0;d--){var v=a[d],p=Xn(v.id,null),g=p!=null?o.get(p):null;if(g){var y=g.parent,x=Lr(y),M=y===i?{width:u,height:f}:{width:x.width,height:x.height},C={},T=f4(g,v,M,null,{hv:v.hv,boundingMode:v.bounding},C);if(!Lr(g).isNew&&T){for(var R=v.transition,D={},E=0;E<c.length;E++){var z=c[E],I=C[z];R&&(sl(R)||Xt(R,z)>=0)?D[z]=I:g[z]=I}sn(g,D,n,0)}else g.attr(C)}}},e.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){jd(a,Lr(a).option,r,n._lastGraphicModel)}),this._elMap=wt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(yn);function G_(t){var e=zt(BD,t)?BD[t]:BS(t),n=new e({});return Lr(n).type=t,n}function kD(t,e,n,r){var a=G_(n);return e.add(a),r.set(t,a),Lr(a).id=t,Lr(a).isNew=!0,a}function jd(t,e,n,r){var a=t&&t.parent;a&&(t.type==="group"&&t.traverse(function(i){jd(i,e,n,r)}),S8(t,e,r),n.removeKey(Lr(t).id))}function PD(t,e,n,r){t.isGroup||P([["cursor",gl.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];zt(e,i)?t[i]=Pt(e[i],a[1]):t[i]==null&&(t[i]=a[1])}),P(ae(e),function(a){if(a.indexOf("on")===0){var i=e[a];t[a]=Rt(i)?i:null}}),zt(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function sU(t){return t=st({},t),P(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(RE),function(e){delete t[e]}),t}function uU(t,e,n){var r=qt(t).eventData;!t.silent&&!t.ignore&&!r&&(r=qt(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function fU(t){t.registerComponentModel(oU),t.registerComponentView(lU),t.registerPreprocessor(function(e){var n=e.graphic;ct(n)?!n[0]||!n[0].elements?e.graphic=[{elements:n}]:e.graphic=[e.graphic[0]]:n&&!n.elements&&(e.graphic=[{elements:[n]}])})}var HD=["x","y","radius","angle","single"],cU=["cartesian2d","polar","singleAxis"];function hU(t){var e=t.get("coordinateSystem");return Xt(cU,e)>=0}function $i(t){return t+"Axis"}function dU(t,e){var n=wt(),r=[],a=wt();t.eachComponent({mainType:"dataZoom",query:e},function(d){a.get(d.uid)||u(d)});var i;do i=!1,t.eachComponent("dataZoom",o);while(i);function o(d){!a.get(d.uid)&&f(d)&&(u(d),i=!0)}function u(d){a.set(d.uid,!0),r.push(d),c(d)}function f(d){var v=!1;return d.eachTargetAxis(function(p,g){var y=n.get(p);y&&y[g]&&(v=!0)}),v}function c(d){d.eachTargetAxis(function(v,p){(n.get(v)||n.set(v,[]))[p]=!0})}return r}function qO(t){var e=t.ecModel,n={infoList:[],infoMap:wt()};return t.eachTargetAxis(function(r,a){var i=e.getComponent($i(r),a);if(i){var o=i.getCoordSysModel();if(o){var u=o.uid,f=n.infoMap.get(u);f||(f={model:o,axisModels:[]},n.infoList.push(f),n.infoMap.set(u,f)),f.axisModels.push(i)}}}),n}var gy=(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})(),Dv=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return e.prototype.init=function(n,r,a){var i=FD(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},e.prototype.mergeOption=function(n){var r=FD(n);Zt(this.option,n,!0),Zt(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;P([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=wt(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return P(HD,function(a){var i=this.getReferringComponents($i(a),kB);if(i.specified){r=!0;var o=new gy;P(i.models,function(u){o.add(u.componentIndex)}),n.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",u=a.findComponents({mainType:o+"Axis"});f(u,o)}if(i){var u=a.findComponents({mainType:"singleAxis",filter:function(d){return d.get("orient",!0)===r}});f(u,"single")}function f(c,d){var v=c[0];if(v){var p=new gy;if(p.add(v.componentIndex),n.set(d,p),i=!1,d==="x"||d==="y"){var g=v.getReferringComponents("grid",Zn).models[0];g&&P(c,function(y){v.componentIndex!==y.componentIndex&&g===y.getReferringComponents("grid",Zn).models[0]&&p.add(y.componentIndex)})}}}i&&P(HD,function(c){if(i){var d=a.findComponents({mainType:$i(c),filter:function(p){return p.get("type",!0)==="category"}});if(d[0]){var v=new gy;v.add(d[0].componentIndex),n.set(c,v),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");P([["start","startValue"],["end","endValue"]],function(i,o){var u=n[i[0]]!=null,f=n[i[1]]!=null;u&&!f?r[o]="percent":!u&&f?r[o]="value":a?r[o]=a[o]:u&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent($i(r),a))},this),n},e.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){P(a.indexList,function(o){n.call(r,i,o)})})},e.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent($i(n),r)},e.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;P([["start","startValue"],["end","endValue"]],function(i){(n[i[0]]!=null||n[i[1]]!=null)&&(r[i[0]]=a[i[0]]=n[i[0]],r[i[1]]=a[i[1]]=n[i[1]])},this),this._updateRangeUse(n)},e.prototype.setCalculatedRange=function(n){var r=this.option;P(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},e.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},e.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],u=this._targetAxisInfoMap.get(o),f=0;f<u.indexList.length;f++){var c=this.getAxisProxy(o,u.indexList[f]);if(c.hostedBy(this))return c;r||(r=c)}return r},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e})(Qt);function FD(t){var e={};return P(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var XO=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,i){this.dataZoomModel=n,this.ecModel=r,this.api=a},e.type="dataZoom",e})(yn),Ms=P,VD=Ts,vU=(function(){function t(e,n,r,a){this._dimName=e,this._axisIndex=n,this.ecModel=a,this._dataZoomModel=r}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(n){if(hU(n)){var r=$i(this._dimName),a=n.getReferringComponents(r,Zn).models[0];a&&this._axisIndex===a.componentIndex&&e.push(n)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return Ht(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var n=this._dataExtent,r=this.getAxisModel(),a=r.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],u=[],f=[],c;Ms(["start","end"],function(p,g){var y=e[p],_=e[p+"Value"];i[g]==="percent"?(y==null&&(y=o[g]),_=a.parse($e(y,o,n))):(c=!0,_=_==null?n[g]:a.parse(_),y=$e(_,n,o)),f[g]=_==null||isNaN(_)?n[g]:_,u[g]=y==null||isNaN(y)?o[g]:y}),VD(f),VD(u);var d=this._minMaxSpan;c?v(f,u,n,o,!1):v(u,f,o,n,!0);function v(p,g,y,_,S){var x=S?"Span":"ValueSpan";_p(0,p,y,"all",d["min"+x],d["max"+x]);for(var M=0;M<2;M++)g[M]=$e(p[M],y,_,!0),S&&(g[M]=a.parse(g[M]))}return{valueWindow:f,percentWindow:u}},t.prototype.reset=function(e){if(e===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=pU(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(e,n){if(e!==this._dataZoomModel)return;var r=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;Ms(a,function(f){var c=f.getData(),d=c.mapDimensionsAll(r);if(d.length){if(i==="weakFilter"){var v=c.getStore(),p=mt(d,function(g){return c.getDimensionIndex(g)},c);c.filterSelf(function(g){for(var y,_,S,x=0;x<d.length;x++){var M=v.get(p[x],g),C=!isNaN(M),T=M<o[0],R=M>o[1];if(C&&!T&&!R)return!0;C&&(S=!0),T&&(y=!0),R&&(_=!0)}return S&&y&&_})}else Ms(d,function(g){if(i==="empty")f.setData(c=c.map(g,function(_){return u(_)?_:NaN}));else{var y={};y[g]=o,c.selectRange(y)}});Ms(d,function(g){c.setApproximateExtent(o,g)})}});function u(f){return f>=o[0]&&f<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;Ms(["min","max"],function(a){var i=n.get(a+"Span"),o=n.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=$e(r[0]+o,r,[0,100],!0):i!=null&&(o=$e(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var a=xS(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;n[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),n[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},t})();function pU(t,e,n){var r=[1/0,-1/0];Ms(n,function(o){n6(r,o.getData(),e)});var a=t.getAxisModel(),i=JL(a.axis.scale,a,r).calculate();return[i.min,i.max]}var gU={getTargetSeries:function(t){function e(a){t.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,u){var f=t.getComponent($i(o),u);a(o,u,f,i)})})}e(function(a,i,o,u){o.__dzAxisProxy=null});var n=[];e(function(a,i,o,u){o.__dzAxisProxy||(o.__dzAxisProxy=new vU(a,i,u,t),n.push(o.__dzAxisProxy))});var r=wt();return P(n,function(a){P(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(t,e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,e)})}),t.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function mU(t){t.registerAction("dataZoom",function(e,n){var r=dU(n,e);P(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var GD=!1;function ZO(t){GD||(GD=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,gU),mU(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function yU(t,e){var n=_c(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new we({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 _U=(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 $O(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function WO(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 QO=WO(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),SU=WO(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function KO(t,e){if(!t)return e;e=XS(e,!0);var n=t.indexOf(e);return t=n===-1?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function bU(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?n[e]:null}var xU=KO(SU,"transition"),T1=KO(QO,"transform"),wU="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Dt.transform3dSupported?"will-change:transform;":"");function MU(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function CU(t,e,n){if(!pt(n)||n==="inside")return"";var r=t.get("backgroundColor"),a=t.get("borderWidth");e=hl(e);var i=MU(n),o=Math.max(Math.round(a)*1.5,6),u="",f=T1+":",c;Xt(["left","right"],i)>-1?(u+="top:50%",f+="translateY(-50%) rotate("+(c=i==="left"?-225:-45)+"deg)"):(u+="left:50%",f+="translateX(-50%) rotate("+(c=i==="top"?225:45)+"deg)");var d=c*Math.PI/180,v=o+a,p=v*Math.abs(Math.cos(d))+v*Math.abs(Math.sin(d)),g=Math.round(((p-Math.SQRT2*a)/2+Math.SQRT2*a-(p-v)/2)*100)/100;u+=";"+i+":-"+g+"px";var y=e+" solid "+a+"px;",_=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",u+";"+f+";","border-bottom:"+y,"border-right:"+y,"background-color:"+r+";"];return'<div style="'+_.join("")+'"></div>'}function TU(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,a="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,a+=Dt.transformSupported?","+T1+r:",left"+r+",top"+r),xU+":"+a}function UD(t,e,n){var r=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Dt.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=Dt.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+T1+":"+o+";":[["top",0],["left",0],[QO,o]]}function AU(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont());var a=Pt(t.get("lineHeight"),Math.round(n*3/2));n&&e.push("line-height:"+a+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,u=t.get("textShadowOffsetX")||0,f=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+u+"px "+f+"px "+o+"px "+i),P(["decoration","align"],function(c){var d=t.get(c);d&&e.push("text-"+c+":"+d)}),e.join(";")}function DU(t,e,n){var r=[],a=t.get("transitionDuration"),i=t.get("backgroundColor"),o=t.get("shadowBlur"),u=t.get("shadowColor"),f=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),d=t.getModel("textStyle"),v=eL(t,"html"),p=f+"px "+c+"px "+o+"px "+u;return r.push("box-shadow:"+p),e&&a&&r.push(TU(a,n)),i&&r.push("background-color:"+i),P(["width","color","radius"],function(g){var y="border-"+g,_=XS(y),S=t.get(_);S!=null&&r.push(y+":"+S+(g==="color"?"":"px"))}),r.push(AU(d)),v!=null&&r.push("padding:"+_c(v).join("px ")+"px"),r.join(";")+";"}function jD(t,e,n,r,a){var i=e&&e.painter;if(n){var o=i&&i.getViewportRoot();o&&e3(t,o,n,r,a)}else{t[0]=r,t[1]=a;var u=i&&i.getViewportRootOffset();u&&(t[0]+=u.offsetLeft,t[1]+=u.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var RU=(function(){function t(e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Dt.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var a=this._zr=e.getZr(),i=n.appendTo,o=i&&(pt(i)?document.querySelector(i):Ns(i)?i:Rt(i)&&i(e.getDom()));jD(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(r),this._api=e,this._container=o;var u=this;r.onmouseenter=function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0},r.onmousemove=function(f){if(f=f||window.event,!u._enterable){var c=a.handler,d=a.painter.getViewportRoot();Dr(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=bU(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},t.prototype.show=function(e,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=wU+DU(e,!this._firstShow,this._longHide)+UD(i[0],i[1],!0)+("border-color:"+hl(n)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,n,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var u="";if(pt(i)&&r.get("trigger")==="item"&&!$O(r)&&(u=CU(r,a,i)),pt(e))o.innerHTML=e+u;else if(e){o.innerHTML="",ct(e)||(e=[e]);for(var f=0;f<e.length;f++)Ns(e[f])&&e[f].parentNode!==o&&o.appendChild(e[f]);if(u&&o.childNodes.length){var c=document.createElement("div");c.innerHTML=u,o.appendChild(c)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,n){if(this.el){var r=this._styleCoord;if(jD(r,this._zr,this._container,e,n),r[0]!=null&&r[1]!=null){var a=this.el.style,i=UD(r[0],r[1]);P(i,function(o){a[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){var e=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Dt.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(xt(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})(),EU=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),qD(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,n,r,a,i){var o=this;St(e)&&Yn(""),this.el&&this._zr.remove(this.el);var u=r.getModel("textStyle");this.el=new Te({style:{rich:n.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:u.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:eL(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),P(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){o.el.style[c]=r.get(c)}),P(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){o.el.style[c]=u.get(c)||0}),this._zr.add(this.el);var f=this;this.el.on("mouseover",function(){f._enterable&&(clearTimeout(f._hideTimeout),f._show=!0),f._inContent=!0}),this.el.on("mouseout",function(){f._enterable&&f._show&&f.hideLater(f._hideDelay),f._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,n=this.el.getBoundingRect(),r=YD(e.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},t.prototype.moveTo=function(e,n){var r=this.el;if(r){var a=this._styleCoord;qD(a,this._zr,e,n),e=a[0],n=a[1];var i=r.style,o=Vi(i.borderWidth||0),u=YD(i);r.x=e+o+u.left,r.y=n+o+u.top,r.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(xt(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function Vi(t){return Math.max(0,t)}function YD(t){var e=Vi(t.shadowBlur||0),n=Vi(t.shadowOffsetX||0),r=Vi(t.shadowOffsetY||0);return{left:Vi(e-n),right:Vi(e+n),top:Vi(e-r),bottom:Vi(e+r)}}function qD(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var LU=new we({shape:{x:-1,y:-1,width:2,height:2}}),OU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){if(!(Dt.node||!r.getDom())){var a=n.getComponent("tooltip"),i=this._renderMode=HB(a.get("renderMode"));this._tooltipContent=i==="richText"?new EU(r):new RU(r,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(n,r,a){if(!(Dt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=a;var i=this._tooltipContent;i.update(n),i.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?fp(this,"_updatePosition",50,"fixRate"):mv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");GO("itemTooltip",this._api,xt(function(a,i,o){r!=="none"&&(r.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,i=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(n,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(n,r,a,i){if(!(i.from===this.uid||Dt.node||!a.getDom())){var o=XD(i,a);this._ticket="";var u=i.dataByCoordSys,f=BU(i,r,a);if(f){var c=f.el.getBoundingRect().clone();c.applyTransform(f.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:f.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var d=LU;d.x=i.x,d.y=i.y,d.update(),qt(d).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:d},o)}else if(u)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:u,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,i))return;var v=UO(i,r),p=v.point[0],g=v.point[1];p!=null&&g!=null&&this._tryShow({offsetX:p,offsetY:g,target:v.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(n,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(XD(i,a))},e.prototype._manuallyAxisShowTip=function(n,r,a,i){var o=i.seriesIndex,u=i.dataIndex,f=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||u==null||f==null)){var c=r.getSeriesByIndex(o);if(c){var d=c.getData(),v=cf([d.getItemModel(u),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:u,position:i.position}),!0}}},e.prototype._tryShow=function(n,r){var a=n.target,i=this._tooltipModel;if(i){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(a){var u=qt(a);if(u.ssrType==="legend")return;this._lastDataByCoordSys=null;var f,c;wf(a,function(d){if(qt(d).dataIndex!=null)return f=d,!0;if(qt(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 a=n.get("showDelay");r=xt(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],u=cf([r.tooltipOption],i),f=this._renderMode,c=[],d=tc("section",{blocks:[],noHeader:!0}),v=[],p=new V0;P(n,function(M){P(M.dataByAxis,function(C){var T=a.getComponent(C.axisDim+"Axis",C.axisIndex),R=C.value;if(!(!T||R==null)){var D=FO(R,T.axis,a,C.seriesDataIndices,C.valueLabelOpt),E=tc("section",{header:D,noHeader:!Wr(D),sortBlocks:!0,blocks:[]});d.blocks.push(E),P(C.seriesDataIndices,function(z){var I=a.getSeriesByIndex(z.seriesIndex),N=z.dataIndexInside,L=I.getDataParams(N);if(!(L.dataIndex<0)){L.axisDim=C.axisDim,L.axisIndex=C.axisIndex,L.axisType=C.axisType,L.axisId=C.axisId,L.axisValue=y1(T.axis,{value:R}),L.axisValueLabel=D,L.marker=p.makeTooltipMarker("item",hl(L.color),f);var F=UT(I.formatTooltip(N,!0,null)),G=F.frag;if(G){var Y=cf([I],i).get("valueFormatter");E.blocks.push(Y?st({valueFormatter:Y},G):G)}F.text&&v.push(F.text),c.push(L)}})}})}),d.blocks.reverse(),v.reverse();var g=r.position,y=u.get("order"),_=ZT(d,p,f,y,a.get("useUTC"),u.get("textStyle"));_&&v.unshift(_);var S=f==="richText"?`
|
|
85
|
+
|
|
86
|
+
`:"<br/>",x=v.join(S);this._showOrMove(u,function(){this._updateContentNotChangedOnAxis(n,c)?this._updatePosition(u,g,o[0],o[1],this._tooltipContent,c):this._showTooltipContent(u,x,c,Math.random()+"",o[0],o[1],g,null,p)})},e.prototype._showSeriesItemTooltip=function(n,r,a){var i=this._ecModel,o=qt(r),u=o.seriesIndex,f=i.getSeriesByIndex(u),c=o.dataModel||f,d=o.dataIndex,v=o.dataType,p=c.getData(v),g=this._renderMode,y=n.positionDefault,_=cf([p.getItemModel(d),c,f&&(f.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),S=_.get("trigger");if(!(S!=null&&S!=="item")){var x=c.getDataParams(d,v),M=new V0;x.marker=M.makeTooltipMarker("item",hl(x.color),g);var C=UT(c.formatTooltip(d,!1,v)),T=_.get("order"),R=_.get("valueFormatter"),D=C.frag,E=D?ZT(R?st({valueFormatter:R},D):D,M,g,T,i.get("useUTC"),_.get("textStyle")):C.text,z="item_"+c.name+"_"+d;this._showOrMove(_,function(){this._showTooltipContent(_,E,x,z,n.offsetX,n.offsetY,n.position,n.target,M)}),a({type:"showTip",dataIndexInside:d,dataIndex:p.getRawIndex(d),seriesIndex:u,from:this.uid})}},e.prototype._showComponentItemTooltip=function(n,r,a){var i=this._renderMode==="html",o=qt(r),u=o.tooltipConfig,f=u.option||{},c=f.encodeHTMLContent;if(pt(f)){var d=f;f={content:d,formatter:d},c=!0}c&&i&&f.content&&(f=Ht(f),f.content=Cn(f.content));var v=[f],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&v.push(p),v.push({formatter:f.content});var g=n.positionDefault,y=cf(v,this._tooltipModel,g?{position:g}:null),_=y.get("content"),S=Math.random()+"",x=new V0;this._showOrMove(y,function(){var M=Ht(y.get("formatterParams")||{});this._showTooltipContent(y,_,M,S,n.offsetX,n.offsetY,n.position,r,x)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,a,i,o,u,f,c,d){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var v=this._tooltipContent;v.setEnterable(n.get("enterable"));var p=n.get("formatter");f=f||n.get("position");var g=r,y=this._getNearestPoint([o,u],a,n.get("trigger"),n.get("borderColor")),_=y.color;if(p)if(pt(p)){var S=n.ecModel.get("useUTC"),x=ct(a)?a[0]:a,M=x&&x.axisType&&x.axisType.indexOf("time")>=0;g=p,M&&(g=yc(x.axisValue,g,S)),g=ZS(g,a,!0)}else if(Rt(p)){var C=xt(function(T,R){T===this._ticket&&(v.setContent(R,d,n,_,f),this._updatePosition(n,f,o,u,v,a,c))},this);this._ticket=i,g=p(a,i,C)}else g=p;v.setContent(g,d,n,_,f),v.show(n,_),this._updatePosition(n,f,o,u,v,a,c)}},e.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||ct(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!ct(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,a,i,o,u,f){var c=this._api.getWidth(),d=this._api.getHeight();r=r||n.get("position");var v=o.getSize(),p=n.get("align"),g=n.get("verticalAlign"),y=f&&f.getBoundingRect().clone();if(f&&y.applyTransform(f.transform),Rt(r)&&(r=r([a,i],u,o.el,y,{viewSize:[c,d],contentSize:v.slice()})),ct(r))a=de(r[0],c),i=de(r[1],d);else if(St(r)){var _=r;_.width=v[0],_.height=v[1];var S=ei(_,{width:c,height:d});a=S.x,i=S.y,p=null,g=null}else if(pt(r)&&f){var x=IU(r,y,v,n.get("borderWidth"));a=x[0],i=x[1]}else{var x=zU(a,i,o,c,d,p?null:20,g?null:20);a=x[0],i=x[1]}if(p&&(a-=ZD(p)?v[0]/2:p==="right"?v[0]:0),g&&(i-=ZD(g)?v[1]/2:g==="bottom"?v[1]:0),$O(n)){var x=NU(a,i,o,c,d);a=x[0],i=x[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&P(a,function(u,f){var c=u.dataByAxis||[],d=n[f]||{},v=d.dataByAxis||[];o=o&&c.length===v.length,o&&P(c,function(p,g){var y=v[g]||{},_=p.seriesDataIndices||[],S=y.seriesDataIndices||[];o=o&&p.value===y.value&&p.axisType===y.axisType&&p.axisId===y.axisId&&_.length===S.length,o&&P(_,function(x,M){var C=S[M];o=o&&x.seriesIndex===C.seriesIndex&&x.dataIndex===C.dataIndex}),i&&P(p.seriesDataIndices,function(x){var M=x.seriesIndex,C=r[M],T=i[M];C&&T&&T.data!==C.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){Dt.node||!r.getDom()||(mv(this,"_updatePosition"),this._tooltipContent.dispose(),V_("itemTooltip",r))},e.type="tooltip",e})(yn);function cf(t,e,n){var r=e.ecModel,a;n?(a=new xe(n,r,r),a=new xe(e.option,a,r)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof xe&&(o=o.get("tooltip",!0)),pt(o)&&(o={formatter:o}),o&&(a=new xe(o,a,r)))}return a}function XD(t,e){return t.dispatchAction||xt(e.dispatchAction,e)}function zU(t,e,n,r,a,i,o){var u=n.getSize(),f=u[0],c=u[1];return i!=null&&(t+f+i+2>r?t-=f+i:t+=i),o!=null&&(e+c+o>a?e-=c+o:e+=o),[t,e]}function NU(t,e,n,r,a){var i=n.getSize(),o=i[0],u=i[1];return t=Math.min(t+o,r)-o,e=Math.min(e+u,a)-u,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function IU(t,e,n,r){var a=n[0],i=n[1],o=Math.ceil(Math.SQRT2*r)+8,u=0,f=0,c=e.width,d=e.height;switch(t){case"inside":u=e.x+c/2-a/2,f=e.y+d/2-i/2;break;case"top":u=e.x+c/2-a/2,f=e.y-i-o;break;case"bottom":u=e.x+c/2-a/2,f=e.y+d+o;break;case"left":u=e.x-a-o,f=e.y+d/2-i/2;break;case"right":u=e.x+c+o,f=e.y+d/2-i/2}return[u,f]}function ZD(t){return t==="center"||t==="middle"}function BU(t,e,n){var r=TS(t).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=cc(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var u=n.getViewOfComponentModel(o),f;if(u.group.traverse(function(c){var d=qt(c).tooltipConfig;if(d&&d.name===t.name)return f=c,!0}),f)return{componentMainType:a,componentIndex:o.componentIndex,el:f}}}}function bp(t){Qn(jO),t.registerComponentModel(_U),t.registerComponentView(OU),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},gn),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},gn)}var kU=(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),PU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var i=this.group,o=n.getModel("textStyle"),u=n.getModel("subtextStyle"),f=n.get("textAlign"),c=Pt(n.get("textBaseline"),n.get("textVerticalAlign")),d=new Te({style:ya(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=d.getBoundingRect(),p=n.get("subtext"),g=new Te({style:ya(u,{text:p,fill:u.getTextColor(),y:v.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=n.get("link"),_=n.get("sublink"),S=n.get("triggerEvent",!0);d.silent=!y&&!S,g.silent=!_&&!S,y&&d.on("click",function(){CT(y,"_"+n.get("target"))}),_&&g.on("click",function(){CT(_,"_"+n.get("subtarget"))}),qt(d).eventData=qt(g).eventData=S?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(d),p&&i.add(g);var x=i.getBoundingRect(),M=n.getBoxLayoutParams();M.width=x.width,M.height=x.height;var C=ei(M,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));f||(f=n.get("left")||n.get("right"),f==="middle"&&(f="center"),f==="right"?C.x+=C.width:f==="center"&&(C.x+=C.width/2)),c||(c=n.get("top")||n.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?C.y+=C.height:c==="middle"&&(C.y+=C.height/2),c=c||"top"),i.x=C.x,i.y=C.y,i.markRedraw();var T={align:f,verticalAlign:c};d.setStyle(T),g.setStyle(T),x=i.getBoundingRect();var R=C.margin,D=n.getItemStyle(["color","opacity"]);D.fill=n.get("backgroundColor");var E=new we({shape:{x:x.x-R[3],y:x.y-R[0],width:x.width+R[1]+R[3],height:x.height+R[0]+R[2],r:n.get("borderRadius")},style:D,subPixelOptimize:!0,silent:!0});i.add(E)}},e.type="title",e})(yn);function xp(t){t.registerComponentModel(kU),t.registerComponentView(PU)}var HU=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"])}},U_=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},e.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),ct(r)&&P(r,function(i,o){pt(i)&&(i={type:i}),r[o]=Zt(i,HU(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a<n.length;a++){var i=n[a].get("name");if(this.isSelected(i)){this.select(i),r=!0;break}}!r&&this.select(n[0].get("name"))}},e.prototype._updateData=function(n){var r=[],a=[];n.eachRawSeries(function(f){var c=f.name;a.push(c);var d;if(f.legendVisualProvider){var v=f.legendVisualProvider,p=v.getAllNames();n.isSeriesFiltered(f)||(a=a.concat(p)),p.length?r=r.concat(p):d=!0}else d=!0;d&&CS(f)&&r.push(f.name)}),this._availableNames=a;var i=this.get("data")||r,o=wt(),u=mt(i,function(f){return(pt(f)||ve(f))&&(f={name:f}),o.get(f.name)?null:(o.set(f.name,!0),new xe(f,this,this.ecModel))},this);this._data=Oe(u,function(f){return!!f})},e.prototype.getData=function(){return this._data},e.prototype.select=function(n){var r=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;P(i,function(o){r[o.get("name")]=!1})}r[n]=!0},e.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},e.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},e.prototype.allSelect=function(){var n=this._data,r=this.option.selected;P(n,function(a){r[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;P(n,function(a){var i=a.get("name",!0);r.hasOwnProperty(i)||(r[i]=!0),r[i]=!r[i]})},e.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&Xt(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),Ss=be,j_=P,wd=ke,JO=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return e.prototype.init=function(){this.group.add(this._contentGroup=new wd),this.group.add(this._selectorGroup=new wd),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(n,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),u=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&u==="vertical"?"right":"left");var f=n.get("selector",!0),c=n.get("selectorPosition",!0);f&&(!c||c==="auto")&&(c=u==="horizontal"?"end":"start"),this.renderInner(o,n,r,a,f,u,c);var d=n.getBoxLayoutParams(),v={width:a.getWidth(),height:a.getHeight()},p=n.get("padding"),g=ei(d,v,p),y=this.layoutInner(n,o,g,i,f,c),_=ei(Jt({width:y.width,height:y.height},d),v,p);this.group.x=_.x-y.x,this.group.y=_.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yU(y,n))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(n,r,a,i,o,u,f){var c=this.getContentGroup(),d=wt(),v=r.get("selectedMode"),p=[];a.eachRawSeries(function(g){!g.get("legendHoverLink")&&p.push(g.id)}),j_(r.getData(),function(g,y){var _=g.get("name");if(!this.newlineDisabled&&(_===""||_===`
|
|
87
|
+
`)){var S=new wd;S.newline=!0,c.add(S);return}var x=a.getSeriesByName(_)[0];if(!d.get(_))if(x){var M=x.getData(),C=M.getVisual("legendLineStyle")||{},T=M.getVisual("legendIcon"),R=M.getVisual("style"),D=this._createItem(x,_,y,g,r,n,C,R,T,v,i);D.on("click",Ss($D,_,null,i,p)).on("mouseover",Ss(Y_,x.name,null,i,p)).on("mouseout",Ss(q_,x.name,null,i,p)),a.ssr&&D.eachChild(function(E){var z=qt(E);z.seriesIndex=x.seriesIndex,z.dataIndex=y,z.ssrType="legend"}),d.set(_,!0)}else a.eachRawSeries(function(E){if(!d.get(_)&&E.legendVisualProvider){var z=E.legendVisualProvider;if(!z.containName(_))return;var I=z.indexOfName(_),N=z.getItemVisual(I,"style"),L=z.getItemVisual(I,"legendIcon"),F=sr(N.fill);F&&F[3]===0&&(F[3]=.2,N=st(st({},N),{fill:lo(F,"rgba")}));var G=this._createItem(E,_,y,g,r,n,{},N,L,v,i);G.on("click",Ss($D,null,_,i,p)).on("mouseover",Ss(Y_,null,_,i,p)).on("mouseout",Ss(q_,null,_,i,p)),a.ssr&&G.eachChild(function(Y){var Z=qt(Y);Z.seriesIndex=E.seriesIndex,Z.dataIndex=y,Z.ssrType="legend"}),d.set(_,!0)}},this)},this),o&&this._createSelector(o,r,i,u,f)},e.prototype._createSelector=function(n,r,a,i,o){var u=this.getSelectorGroup();j_(n,function(c){var d=c.type,v=new Te({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:d==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});u.add(v);var p=r.getModel("selectorLabel"),g=r.getModel(["emphasis","selectorLabel"]);gc(v,{normal:p,emphasis:g},{defaultText:c.title}),Xf(v)})},e.prototype._createItem=function(n,r,a,i,o,u,f,c,d,v,p){var g=n.visualDrawType,y=o.get("itemWidth"),_=o.get("itemHeight"),S=o.isSelected(r),x=i.get("symbolRotate"),M=i.get("symbolKeepAspect"),C=i.get("icon");d=C||d||"roundRect";var T=FU(d,i,f,c,g,S,p),R=new wd,D=i.getModel("textStyle");if(Rt(n.getLegendIcon)&&(!C||C==="inherit"))R.add(n.getLegendIcon({itemWidth:y,itemHeight:_,icon:d,iconRotate:x,itemStyle:T.itemStyle,lineStyle:T.lineStyle,symbolKeepAspect:M}));else{var E=C==="inherit"&&n.getData().getVisual("symbol")?x==="inherit"?n.getData().getVisual("symbolRotate"):x:0;R.add(VU({itemWidth:y,itemHeight:_,icon:d,iconRotate:E,itemStyle:T.itemStyle,symbolKeepAspect:M}))}var z=u==="left"?y+5:-5,I=u,N=o.get("formatter"),L=r;pt(N)&&N?L=N.replace("{name}",r??""):Rt(N)&&(L=N(r));var F=S?D.getTextColor():i.get("inactiveColor");R.add(new Te({style:ya(D,{text:L,x:z,y:_/2,fill:F,align:I,verticalAlign:"middle"},{inheritColor:F})}));var G=new we({shape:R.getBoundingRect(),style:{fill:"transparent"}}),Y=i.getModel("tooltip");return Y.get("show")&&pc({el:G,componentModel:o,itemName:r,itemTooltipOption:Y.option}),R.add(G),R.eachChild(function(Z){Z.silent=!0}),G.silent=!v,this.getContentGroup().add(R),Xf(R),R.__legendDataIndex=a,R},e.prototype.layoutInner=function(n,r,a,i,o,u){var f=this.getContentGroup(),c=this.getSelectorGroup();zf(n.get("orient"),f,n.get("itemGap"),a.width,a.height);var d=f.getBoundingRect(),v=[-d.x,-d.y];if(c.markRedraw(),f.markRedraw(),o){zf("horizontal",c,n.get("selectorItemGap",!0));var p=c.getBoundingRect(),g=[-p.x,-p.y],y=n.get("selectorButtonGap",!0),_=n.getOrient().index,S=_===0?"width":"height",x=_===0?"height":"width",M=_===0?"y":"x";u==="end"?g[_]+=d[S]+y:v[_]+=p[S]+y,g[1-_]+=d[x]/2-p[x]/2,c.x=g[0],c.y=g[1],f.x=v[0],f.y=v[1];var C={x:0,y:0};return C[S]=d[S]+y+p[S],C[x]=Math.max(d[x],p[x]),C[M]=Math.min(0,p[M]+g[1-_]),C}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})(yn);function FU(t,e,n,r,a,i,o){function u(S,x){S.lineWidth==="auto"&&(S.lineWidth=x.lineWidth>0?2:0),j_(S,function(M,C){S[C]==="inherit"&&(S[C]=x[C])})}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:T_(v,o),c.fill==="inherit"&&(c.fill=r[a]),c.stroke==="inherit"&&(c.stroke=r[d]),c.opacity==="inherit"&&(c.opacity=(a==="fill"?r:n).opacity),u(c,r);var p=e.getModel("lineStyle"),g=p.getLineStyle();if(u(g,n),c.fill==="auto"&&(c.fill=r.fill),c.stroke==="auto"&&(c.stroke=r.fill),g.stroke==="auto"&&(g.stroke=r.fill),!i){var y=e.get("inactiveBorderWidth"),_=c[d];c.lineWidth=y==="auto"?r.lineWidth>0&&_?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),g.stroke=p.get("inactiveColor"),g.lineWidth=p.get("inactiveWidth")}return{itemStyle:c,lineStyle:g}}function VU(t){var e=t.icon||"roundRect",n=ni(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 $D(t,e,n,r){q_(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),Y_(t,e,n,r)}function tz(t){for(var e=t.getZr().storage.getDisplayList(),n,r=0,a=e.length;r<a&&!(n=e[r].states.emphasis);)r++;return n&&n.hoverLayer}function Y_(t,e,n,r){tz(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function q_(t,e,n,r){tz(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}function GU(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 hf(t,e,n){var r=t==="allSelect"||t==="inverseSelect",a={},i=[];n.eachComponent({mainType:"legend",query:e},function(u){r?u[t]():u[t](e.name),WD(u,a),i.push(u.componentIndex)});var o={};return n.eachComponent("legend",function(u){P(a,function(f,c){u[f?"select":"unSelect"](c)}),WD(u,o)}),r?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function WD(t,e){var n=e||{};return P(t.getData(),function(r){var a=r.get("name");if(!(a===`
|
|
88
|
+
`||a==="")){var i=t.isSelected(a);zt(n,a)?n[a]=n[a]&&i:n[a]=i}}),n}function UU(t){t.registerAction("legendToggleSelect","legendselectchanged",be(hf,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",be(hf,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",be(hf,"inverseSelect")),t.registerAction("legendSelect","legendselected",be(hf,"select")),t.registerAction("legendUnSelect","legendunselected",be(hf,"unSelect"))}function ez(t){t.registerComponentModel(U_),t.registerComponentView(JO),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,GU),t.registerSubTypeDefaulter("legend",function(){return"plain"}),UU(t)}var jU=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},e.prototype.init=function(n,r,a){var i=Sc(n);t.prototype.init.call(this,n,r,a),QD(this,n,i)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),QD(this,this.option,n)},e.type="legend.scroll",e.defaultOption=ep(U_.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})(U_);function QD(t,e,n){var r=t.getOrient(),a=[1,1];a[r.index]=0,dl(e,n,{type:"box",ignoreSize:!!a})}var KD=ke,my=["width","height"],yy=["x","y"],YU=(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 KD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new KD)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(n,r,a,i,o,u,f){var c=this;t.prototype.renderInner.call(this,n,r,a,i,o,u,f);var d=this._controllerGroup,v=r.get("pageIconSize",!0),p=ct(v)?v:[v,v];y("pagePrev",0);var g=r.getModel("pageTextStyle");d.add(new Te({name:"pageText",style:{text:"xx/xx",fill:g.getTextColor(),font:g.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1);function y(_,S){var x=_+"DataIndex",M=Wv(r.get("pageIcons",!0)[r.getOrient().name][S],{onclick:xt(c._pageGo,c,x,r,i)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});M.name=_,d.add(M)}},e.prototype.layoutInner=function(n,r,a,i,o,u){var f=this.getSelectorGroup(),c=n.getOrient().index,d=my[c],v=yy[c],p=my[1-c],g=yy[1-c];o&&zf("horizontal",f,n.get("selectorItemGap",!0));var y=n.get("selectorButtonGap",!0),_=f.getBoundingRect(),S=[-_.x,-_.y],x=Ht(a);o&&(x[d]=a[d]-_[d]-y);var M=this._layoutContentAndController(n,i,x,c,d,p,g,v);if(o){if(u==="end")S[c]+=M[d]+y;else{var C=_[d]+y;S[c]-=C,M[v]-=C}M[d]+=_[d]+y,S[1-c]+=M[g]+M[p]/2-_[p]/2,M[p]=Math.max(M[p],_[p]),M[g]=Math.min(M[g],_[g]+S[1-c]),f.x=S[0],f.y=S[1],f.markRedraw()}return M},e.prototype._layoutContentAndController=function(n,r,a,i,o,u,f,c){var d=this.getContentGroup(),v=this._containerGroup,p=this._controllerGroup;zf(n.get("orient"),d,n.get("itemGap"),i?a.width:null,i?null:a.height),zf("horizontal",p,n.get("pageButtonItemGap",!0));var g=d.getBoundingRect(),y=p.getBoundingRect(),_=this._showController=g[o]>a[o],S=[-g.x,-g.y];r||(S[i]=d[c]);var x=[0,0],M=[-y.x,-y.y],C=Pt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(_){var T=n.get("pageButtonPosition",!0);T==="end"?M[i]+=a[o]-y[o]:x[i]+=y[o]+C}M[1-i]+=g[u]/2-y[u]/2,d.setPosition(S),v.setPosition(x),p.setPosition(M);var R={x:0,y:0};if(R[o]=_?a[o]:g[o],R[u]=Math.max(g[u],y[u]),R[f]=Math.min(0,y[f]+M[1-i]),v.__rectSize=a[o],_){var D={x:0,y:0};D[o]=Math.max(a[o]-y[o]-C,0),D[u]=R[u],v.setClipPath(new we({shape:D})),v.__rectSize=D[o]}else p.eachChild(function(z){z.attr({invisible:!0,silent:!0})});var E=this._getPageInfo(n);return E.pageIndex!=null&&sn(d,{x:E.contentPosition[0],y:E.contentPosition[1]},_?n:null),this._updatePageInfoView(n,E),R},e.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;P(["pagePrev","pageNext"],function(d){var v=d+"DataIndex",p=r[v]!=null,g=a.childOfName(d);g&&(g.setStyle("fill",p?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),g.cursor=p?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),u=r.pageIndex,f=u!=null?u+1:0,c=r.pageCount;i&&o&&i.setStyle("text",pt(o)?o.replace("{current}",f==null?"":f+"").replace("{total}",c==null?"":c+""):o({current:f,total:c}))},e.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,u=my[o],f=yy[o],c=this._findTargetItemIndex(r),d=a.children(),v=d[c],p=d.length,g=p?1:0,y={contentPosition:[a.x,a.y],pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return y;var _=T(v);y.contentPosition[o]=-_.s;for(var S=c+1,x=_,M=_,C=null;S<=p;++S)C=T(d[S]),(!C&&M.e>x.s+i||C&&!R(C,x.s))&&(M.i>x.i?x=M:x=C,x&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=x.i),++y.pageCount)),M=C;for(var S=c-1,x=_,M=_,C=null;S>=-1;--S)C=T(d[S]),(!C||!R(M,C.s))&&x.i<M.i&&(M=x,y.pagePrevDataIndex==null&&(y.pagePrevDataIndex=x.i),++y.pageCount,++y.pageIndex),x=C;return y;function T(D){if(D){var E=D.getBoundingRect(),z=E[f]+D[f];return{s:z,e:z+E[u],i:D.__legendDataIndex}}}function R(D,E){return D.e>=E&&D.s<=E+i}},e.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,u){var f=o.__legendDataIndex;i==null&&f!=null&&(i=u),f===n&&(r=u)}),r??i},e.type="legend.scroll",e})(JO);function qU(t){t.registerAction("legendScroll","legendscroll",function(e,n){var r=e.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function XU(t){Qn(ez),t.registerComponentModel(jU),t.registerComponentView(YU),qU(t)}function nz(t){Qn(ez),Qn(XU)}var ZU=(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=ep(Dv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(Dv),A1=Me();function $U(t,e,n){A1(t).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=n)})}function WU(t,e){for(var n=A1(t).coordSysRecordMap,r=n.keys(),a=0;a<r.length;a++){var i=r[a],o=n.get(i),u=o.dataZoomInfoMap;if(u){var f=e.uid,c=u.get(f);c&&(u.removeKey(f),u.keys().length||rz(n,o))}}}function rz(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function QU(t,e){var n={model:e,containsPoint:be(JU,e),dispatchAction:be(KU,t),dataZoomInfoMap:null,controller:null},r=n.controller=new m8(t.getZr());return P(["pan","zoom","scrollMove"],function(a){r.on(a,function(i){var o=[];n.dataZoomInfoMap.each(function(u){if(i.isAvailableBehavior(u.model.option)){var f=(u.getRange||{})[a],c=f&&f(u.dzReferCoordSysInfo,n.model.mainType,n.controller,i);!u.model.get("disabled",!0)&&c&&o.push({dataZoomId:u.model.id,start:c[0],end:c[1]})}}),o.length&&n.dispatchAction(o)})}),n}function KU(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function JU(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function t9(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return t.each(function(i){var o=i.model,u=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;r[n+u]>r[n+e]&&(e=u),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function e9(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,n){var r=A1(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=wt());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=qO(i);P(o.infoList,function(u){var f=u.model.uid,c=a.get(f)||a.set(f,QU(n,u.model)),d=c.dataZoomInfoMap||(c.dataZoomInfoMap=wt());d.set(i.uid,{dzReferCoordSysInfo:u,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,u,f=i.dataZoomInfoMap;if(f){var c=f.keys()[0];c!=null&&(u=f.get(c))}if(!u){rz(a,i);return}var d=t9(f);o.enable(d.controlType,d.opt),o.setPointerChecker(i.containsPoint),fp(i,"dispatchAction",u.model.get("throttle",!0),"fixRate")})})}var n9=(function(t){ut(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return e.prototype.render=function(n,r,a){if(t.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),$U(a,n,{pan:xt(_y.pan,this),zoom:xt(_y.zoom,this),scrollMove:xt(_y.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){WU(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(XO),_y={zoom:function(t,e,n,r){var a=this.range,i=a.slice(),o=t.axisModels[0];if(o){var u=Sy[e](null,[r.originX,r.originY],o,n,t),f=(u.signal>0?u.pixelStart+u.pixelLength-u.pixel:u.pixel-u.pixelStart)/u.pixelLength*(i[1]-i[0])+i[0],c=Math.max(1/r.scale,0);i[0]=(i[0]-f)*c+f,i[1]=(i[1]-f)*c+f;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(_p(0,i,[0,100],0,d.minSpan,d.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:JD(function(t,e,n,r,a,i){var o=Sy[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:JD(function(t,e,n,r,a,i){var o=Sy[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,n);return o.signal*(t[1]-t[0])*i.scrollDelta})};function JD(t){return function(e,n,r,a){var i=this.range,o=i.slice(),u=e.axisModels[0];if(u){var f=t(o,u,e,n,r,a);if(_p(f,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Sy={grid:function(t,e,n,r,a){var i=n.axis,o={},u=a.model.coordinateSystem.getRect();return t=t||[0,0],i.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=u.width,o.pixelStart=u.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u.height,o.pixelStart=u.y,o.signal=i.inverse?-1:1),o},polar:function(t,e,n,r,a){var i=n.axis,o={},u=a.model.coordinateSystem,f=u.getRadiusAxis().getExtent(),c=u.getAngleAxis().getExtent();return t=t?u.pointToCoord(t):[0,0],e=u.pointToCoord(e),n.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=f[1]-f[0],o.pixelStart=f[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=i.inverse?-1:1),o},singleAxis:function(t,e,n,r,a){var i=n.axis,o=a.model.coordinateSystem.getRect(),u={};return t=t||[0,0],i.orient==="horizontal"?(u.pixel=e[0]-t[0],u.pixelLength=o.width,u.pixelStart=o.x,u.signal=i.inverse?1:-1):(u.pixel=e[1]-t[1],u.pixelLength=o.height,u.pixelStart=o.y,u.signal=i.inverse?-1:1),u}};function r9(t){ZO(t),t.registerComponentModel(ZU),t.registerComponentView(n9),e9(t)}var a9=(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=ep(Dv.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})(Dv),df=we,t2=7,i9=1,by=30,o9=7,vf="horizontal",e2="vertical",l9=5,s9=["line","bar","candlestick","scatter"],u9={easing:"cubicOut",duration:100,delay:0},f9=(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=xt(this._onBrush,this),this._onBrushEnd=xt(this._onBrushEnd,this)},e.prototype.render=function(n,r,a,i){if(t.prototype.render.apply(this,arguments),fp(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){mv(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 ke;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),i=a?o9:0,o=this._findCoordRect(),u={width:r.getWidth(),height:r.getHeight()},f=this._orient===vf?{right:u.width-o.x-o.width,top:u.height-by-t2-i,width:o.width,height:by}:{right:t2,top:o.y,width:by,height:o.height},c=Sc(n.option);P(["right","top","width","height"],function(v){c[v]==="ph"&&(c[v]=f[v])});var d=ei(c,u);this._location={x:d.x,y:d.y},this._size=[d.width,d.height],this._orient===e2&&this._size.reverse()},e.prototype._positionGroup=function(){var n=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),u=this._displayables.sliderGroup,f=(this._dataShadowInfo||{}).otherAxisInverse;u.attr(a===vf&&!o?{scaleY:f?1:-1,scaleX:1}:a===vf&&o?{scaleY:f?1:-1,scaleX:-1}:a===e2&&!o?{scaleY:f?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:f?-1:1,scaleX:-1,rotation:Math.PI/2});var c=n.getBoundingRect([u]);n.x=r.x-c.x,n.y=r.y-c.y,n.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=n.get("brushSelect");a.add(new df({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new df({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:xt(this._onClickPanel,this)}),u=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",u.on("mousemove",this._onBrush),u.on("mouseup",this._onBrushEnd)):(u.off("mousemove",this._onBrush),u.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),u=i.getShadowDim&&i.getShadowDim(),f=u&&o.getDimensionInfo(u)?i.getShadowDim():n.otherDim;if(f==null)return;var c=this._shadowPolygonPts,d=this._shadowPolylinePts;if(o!==this._shadowData||f!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var v=o.getDataExtent(f),p=(v[1]-v[0])*.3;v=[v[0]-p,v[1]+p];var g=[0,r[1]],y=[0,r[0]],_=[[r[0],0],[0,0]],S=[],x=y[1]/(o.count()-1),M=0,C=Math.round(o.count()/r[0]),T;o.each([f],function(I,N){if(C>0&&N%C){M+=x;return}var L=I==null||isNaN(I)||I==="",F=L?0:$e(I,v,g,!0);L&&!T&&N?(_.push([_[_.length-1][0],0]),S.push([S[S.length-1][0],0])):!L&&T&&(_.push([M,0]),S.push([M,0])),_.push([M,F]),S.push([M,F]),M+=x,T=L}),c=this._shadowPolygonPts=_,d=this._shadowPolylinePts=S}this._shadowData=o,this._shadowDim=f,this._shadowSize=[r[0],r[1]];var R=this.dataZoomModel;function D(I){var N=R.getModel(I?"selectedDataBackground":"dataBackground"),L=new ke,F=new dc({shape:{points:c},segmentIgnoreThreshold:1,style:N.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),G=new ml({shape:{points:d},segmentIgnoreThreshold:1,style:N.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return L.add(F),L.add(G),L}for(var E=0;E<3;E++){var z=D(E===1);this._displayables.sliderGroup.add(z),this._displayables.dataShadowSegs.push(z)}},e.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return n.eachTargetAxis(function(o,u){var f=n.getAxisProxy(o,u).getTargetSeriesModels();P(f,function(c){if(!a&&!(r!==!0&&Xt(s9,c.get("type"))<0)){var d=i.getComponent($i(o),u).axis,v=c9(o),p,g=c.coordinateSystem;v!=null&&g.getOtherAxis&&(p=g.getOtherAxis(d).inverse),v=c.getData().mapDimension(v),a={thisAxis:d,series:c,thisDim:o,otherDim:v,otherAxisInverse:p}}},this)},this),a}},e.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,u=this._size,f=this.dataZoomModel,c=this.api,d=f.get("borderRadius")||0,v=f.get("brushSelect"),p=r.filler=new df({silent:v,style:{fill:f.get("fillerColor")},textConfig:{position:"inside"}});o.add(p),o.add(new df({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:i9,fill:"rgba(0,0,0,0)"}})),P([0,1],function(C){var T=f.get("handleIcon");!_v[T]&&T.indexOf("path://")<0&&T.indexOf("image://")<0&&(T="path://"+T);var R=ni(T,-1,0,2,2,null,!0);R.attr({cursor:n2(this._orient),draggable:!0,drift:xt(this._onDragMove,this,C),ondragend:xt(this._onDragEnd,this),onmouseover:xt(this._showDataInfo,this,!0),onmouseout:xt(this._showDataInfo,this,!1),z2:5});var D=R.getBoundingRect(),E=f.get("handleSize");this._handleHeight=de(E,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(),Xf(R);var z=f.get("handleColor");z!=null&&(R.style.fill=z),o.add(a[C]=R);var I=f.getModel("textStyle"),N=f.get("handleLabel")||{},L=N.show||!1;n.add(i[C]=new Te({silent:!0,invisible:!L,style:ya(I,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:I.getTextColor(),font:I.getFont()}),z2:10}))},this);var g=p;if(v){var y=de(f.get("moveHandleSize"),u[1]),_=r.moveHandle=new we({style:f.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:u[1]-.5,height:y}}),S=y*.8,x=r.moveHandleIcon=ni(f.get("moveHandleIcon"),-S/2,-S/2,S,S,"#fff",!0);x.silent=!0,x.y=u[1]+y/2-.5,_.ensureState("emphasis").style=f.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var M=Math.min(u[1]/2,Math.max(y,10));g=r.moveZone=new we({invisible:!0,shape:{y:u[1]-M,height:y+M}}),g.on("mouseover",function(){c.enterEmphasis(_)}).on("mouseout",function(){c.leaveEmphasis(_)}),o.add(_),o.add(x),o.add(g)}g.attr({draggable:!0,cursor:n2(this._orient),drift:xt(this._onDragMove,this,"all"),ondragstart:xt(this._showDataInfo,this,!0),ondragend:xt(this._onDragEnd,this),onmouseover:xt(this._showDataInfo,this,!0),onmouseout:xt(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[$e(n[0],[0,100],r,!0),$e(n[1],[0,100],r,!0)]},e.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),u=a.findRepresentativeAxisProxy().getMinMaxSpan(),f=[0,100];_p(r,i,o,a.get("zoomLock")?"all":n,u.minSpan!=null?$e(u.minSpan,f,o,!0):null,u.maxSpan!=null?$e(u.maxSpan,f,o,!0):null);var c=this._range,d=this._range=Ts([$e(i[0],o,f,!0),$e(i[1],o,f,!0)]);return!c||c[0]!==d[0]||c[1]!==d[1]},e.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,i=Ts(a.slice()),o=this._size;P([0,1],function(g){var y=r.handles[g],_=this._handleHeight;y.attr({scaleX:_/2,scaleY:_/2,x:a[g]+(g?-1:1),y:o[1]/2-_/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var u={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(u),r.moveZone.setShape(u),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",u.x+u.width/2));for(var f=r.dataShadowSegs,c=[0,i[0],i[1],o[0]],d=0;d<f.length;d++){var v=f[d],p=v.getClipPath();p||(p=new we,v.setClipPath(p)),p.setShape({x:c[d],y:0,width:c[d+1]-c[d],height:o[1]})}this._updateDataInfo(n)},e.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,u=["",""];if(r.get("showDetail")){var f=r.findRepresentativeAxisProxy();if(f){var c=f.getAxisModel().axis,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 p=Ts(this._handleEnds.slice());g.call(this,0),g.call(this,1);function g(y){var _=HS(a.handles[y].parent,this.group),S=hE(y===0?"right":"left",_),x=this._handleWidth/2+l9,M=Wf([p[y]+(y===0?-x:x),this._size[1]/2],_);i[y].setStyle({x:M[0],y:M[1],verticalAlign:o===vf?"middle":S,align:o===vf?S:"center",text:u[y]})}},e.prototype._formatLabel=function(n,r){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var u=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(o,20));return Rt(i)?i(n,u):pt(i)?i.replace("{value}",u):u},e.prototype._showDataInfo=function(n){var r=this.dataZoomModel.get("handleLabel")||{},a=r.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,u=n||this._dragging?o:a,f=this._displayables,c=f.handleLabels;c[0].attr("invisible",!u),c[1].attr("invisible",!u),f.moveHandle&&this.api[u?"enterEmphasis":"leaveEmphasis"](f.moveHandle,1)},e.prototype._onDragMove=function(n,r,a,i){this._dragging=!0,Bs(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),u=Wf([r,a],o,!0),f=this._updateInterval(n,u[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),f&&c&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(n){var r=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(a[0]<0||a[0]>r[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,u=this._updateInterval("all",a[0]-o);this._updateView(),u&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new Et(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),u=[0,100];this._range=Ts([$e(a.x,o,u,!0),$e(a.x+a.width,o,u,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(n){this._brushing&&(Bs(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},e.prototype._updateBrushRect=function(n,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new df({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var u=this._brushStart,f=this._displayables.sliderGroup,c=f.transformCoordToLocal(n,r),d=f.transformCoordToLocal(u.x,u.y),v=this._size;c[0]=Math.max(Math.min(v[0],c[0]),0),o.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?u9:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var n,r=qO(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var i=this.api.getWidth(),o=this.api.getHeight();n={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return n},e.type="dataZoom.slider",e})(XO);function c9(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function n2(t){return t==="vertical"?"ns-resize":"ew-resize"}function h9(t){t.registerComponentModel(a9),t.registerComponentView(f9),ZO(t)}function d9(t){Qn(r9),Qn(h9)}function r2(t,e,n){var r=Ja.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*n,r.height=i*n,r}var xy=(function(t){ut(e,t);function e(n,r,a){var i=t.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||rv,typeof n=="string"?o=r2(n,r,a):St(n)&&(o=n,n=o.id),i.id=n,i.dom=o;var u=o.style;return u&&(hS(o),o.onselectstart=function(){return!1},u.padding="0",u.margin="0",u.borderWidth="0"),i.painter=r,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=r2("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},e.prototype.createRepaintRects=function(n,r,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],u=this.maxRepaintRectCount,f=!1,c=new Kt(0,0,0,0);function d(M){if(!(!M.isFinite()||M.isZero()))if(o.length===0){var C=new Kt(0,0,0,0);C.copy(M),o.push(C)}else{for(var T=!1,R=1/0,D=0,E=0;E<o.length;++E){var z=o[E];if(z.intersect(M)){var I=new Kt(0,0,0,0);I.copy(z),I.union(M),o[E]=I,T=!0;break}else if(f){c.copy(M),c.union(z);var N=M.width*M.height,L=z.width*z.height,F=c.width*c.height,G=F-N-L;G<R&&(R=G,D=E)}}if(f&&(o[D].union(M),T=!0),!T){var C=new Kt(0,0,0,0);C.copy(M),o.push(C)}f||(f=o.length>=u)}}for(var v=this.__startIndex;v<this.__endIndex;++v){var p=n[v];if(p){var g=p.shouldBePainted(a,i,!0,!0),y=p.__isRendered&&(p.__dirty&lr||!g)?p.getPrevPaintRect():null;y&&d(y);var _=g&&(p.__dirty&lr||!p.__isRendered)?p.getPaintRect():null;_&&d(_)}}for(var v=this.__prevStartIndex;v<this.__prevEndIndex;++v){var p=r[v],g=p&&p.shouldBePainted(a,i,!0,!0);if(p&&(!g||!p.__zr)&&p.__isRendered){var y=p.getPrevPaintRect();y&&d(y)}}var S;do{S=!1;for(var v=0;v<o.length;){if(o[v].isZero()){o.splice(v,1);continue}for(var x=v+1;x<o.length;)o[v].intersect(o[x])?(S=!0,o[v].union(o[x]),o.splice(x,1)):x++;v++}}while(S);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(n,r){var a=this.dpr,i=this.dom,o=i.style,u=this.domBack;o&&(o.width=n+"px",o.height=r+"px"),i.width=n*a,i.height=r*a,u&&(u.width=n*a,u.height=r*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(n,r,a){var i=this.dom,o=this.ctx,u=i.width,f=i.height;r=r||this.clearColor;var c=this.motionBlur&&!n,d=this.lastFrameAlpha,v=this.dpr,p=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,u/v,f/v));var g=this.domBack;function y(_,S,x,M){if(o.clearRect(_,S,x,M),r&&r!=="transparent"){var C=void 0;if(ic(r)){var T=r.global||r.__width===x&&r.__height===M;C=T&&r.__canvasGradient||M_(o,r,{x:0,y:0,width:x,height:M}),r.__canvasGradient=C,r.__width=x,r.__height=M}else j2(r)&&(r.scaleX=r.scaleX||v,r.scaleY=r.scaleY||v,C=C_(o,r,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=C||r,o.fillRect(_,S,x,M),o.restore()}c&&(o.save(),o.globalAlpha=d,o.drawImage(g,_,S,x,M),o.restore())}!a||c?y(0,0,u,f):a.length&&P(a,function(_){y(_.x*v,_.y*v,_.width*v,_.height*v)})},e})(ta),a2=1e5,$o=314159,Md=.01,v9=.001;function p9(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function g9(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 m9=(function(){function t(e,n,r,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=st({},r||{}),this.dpr=r.devicePixelRatio||rv,this._singleCanvas=i,this.root=e;var o=e.style;o&&(hS(e),e.innerHTML=""),this.storage=n;var u=this._zlevelList;this._prevDisplayList=[];var f=this._layers;if(i){var d=e,v=d.width,p=d.height;r.width!=null&&(v=r.width),r.height!=null&&(p=r.height),this.dpr=r.devicePixelRatio||1,d.width=v*this.dpr,d.height=p*this.dpr,this._width=v,this._height=p;var g=new xy(d,this,this.dpr);g.__builtin__=!0,g.initContext(),f[$o]=g,g.zlevel=$o,u.push($o),this._domRoot=e}else{this._width=fd(e,0,r),this._height=fd(e,1,r);var c=this._domRoot=g9(this._width,this._height);e.appendChild(c)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],u=this._layers[o];if(!u.__builtin__&&u.refresh){var f=i===0?this._backgroundColor:null;u.refresh(f)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var n=e.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<n;o++){var u=e[o];u.__inHover&&(r||(r=this._hoverlayer=this.getLayer(a2)),i||(i=r.ctx,i.save()),tl(i,u,a,o===n-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(a2)},t.prototype.paintOne=function(e,n){r1(e,n)},t.prototype._paintList=function(e,n,r,a){if(this._redrawId===a){r=r||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,n,r),o=i.finished,u=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),u&&this._paintHoverList(e),o)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var f=this;Kd(function(){f._paintList(e,n,r,a)})}}},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(a){a.virtual&&e.drawImage(a.dom,0,0,n,r)})},t.prototype._doPaintList=function(e,n,r){for(var a=this,i=[],o=this._opts.useDirtyRect,u=0;u<this._zlevelList.length;u++){var f=this._zlevelList[u],c=this._layers[f];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||r)&&i.push(c)}for(var d=!0,v=!1,p=function(_){var S=i[_],x=S.ctx,M=o&&S.createRepaintRects(e,n,g._width,g._height),C=r?S.__startIndex:S.__drawIndex,T=!r&&S.incremental&&Date.now,R=T&&Date.now(),D=S.zlevel===g._zlevelList[0]?g._backgroundColor:null;if(S.__startIndex===S.__endIndex)S.clear(!1,D,M);else if(C===S.__startIndex){var E=e[C];(!E.incremental||!E.notClear||r)&&S.clear(!1,D,M)}C===-1&&(console.error("For some unknown reason. drawIndex is -1"),C=S.__startIndex);var z,I=function(G){var Y={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(z=C;z<S.__endIndex;z++){var Z=e[z];if(Z.__inHover&&(v=!0),a._doPaintEl(Z,S,o,G,Y,z===S.__endIndex-1),T){var H=Date.now()-R;if(H>15)break}}Y.prevElClipPaths&&x.restore()};if(M)if(M.length===0)z=S.__endIndex;else for(var N=g.dpr,L=0;L<M.length;++L){var F=M[L];x.save(),x.beginPath(),x.rect(F.x*N,F.y*N,F.width*N,F.height*N),x.clip(),I(F),x.restore()}else x.save(),I(),x.restore();S.__drawIndex=z,S.__drawIndex<S.__endIndex&&(d=!1)},g=this,y=0;y<i.length;y++)p(y);return Dt.wxa&&P(this._layers,function(_){_&&_.ctx&&_.ctx.draw&&_.ctx.draw()}),{finished:d,needsRefreshHover:v}},t.prototype._doPaintEl=function(e,n,r,a,i,o){var u=n.ctx;if(r){var f=e.getPaintRect();(!a||f&&f.intersect(a))&&(tl(u,e,i,o),e.setPrevPaintRect(f))}else tl(u,e,i,o)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=$o);var r=this._layers[e];return r||(r=new xy("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?Zt(r,this._layerConfig[e],!0):this._layerConfig[e-Md]&&Zt(r,this._layerConfig[e-Md],!0),n&&(r.virtual=n),this.insertLayer(e,r),r.initContext()),r},t.prototype.insertLayer=function(e,n){var r=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,u=null,f=-1;if(!r[e]&&p9(n)){if(i>0&&e>a[0]){for(f=0;f<i-1&&!(a[f]<e&&a[f+1]>e);f++);u=r[a[f]]}if(a.splice(f+1,0,e),r[e]=n,!n.virtual)if(u){var c=u.dom;c.nextSibling?o.insertBefore(n.dom,c.nextSibling):o.appendChild(n.dom)}else o.firstChild?o.insertBefore(n.dom,o.firstChild):o.appendChild(n.dom);n.painter||(n.painter=this)}},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a];e.call(n,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a],o=this._layers[i];o.__builtin__&&e.call(n,o,i)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a],o=this._layers[i];o.__builtin__||e.call(n,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(v,p){v.__dirty=v.__used=!1});function n(v){i&&(i.__endIndex!==v&&(i.__dirty=!0),i.__endIndex=v)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var a=e[r];if(a.zlevel!==e[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,u,f;for(f=0;f<e.length;f++){var a=e[f],c=a.zlevel,d=void 0;u!==c&&(u=c,o=0),a.incremental?(d=this.getLayer(c+v9,this._needsManuallyCompositing),d.incremental=!0,o=1):d=this.getLayer(c+(o>0?Md:0),this._needsManuallyCompositing),d.__builtin__||Iv("ZLevel "+c+" has been used by unkown layer "+d.id),d!==i&&(d.__used=!0,d.__startIndex!==f&&(d.__dirty=!0),d.__startIndex=f,d.incremental?d.__drawIndex=-1:d.__drawIndex=f,n(f),i=d),a.__dirty&lr&&!a.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=f))}n(f),this.eachBuiltinLayer(function(v,p){!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,P(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?Zt(r[e],n,!0):r[e]=n;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+Md){var o=this._layers[i];Zt(o,r[e],!0)}}}},t.prototype.delLayer=function(e){var n=this._layers,r=this._zlevelList,a=n[e];a&&(a.dom.parentNode.removeChild(a.dom),delete n[e],r.splice(Xt(r,e),1))},t.prototype.resize=function(e,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),n!=null&&(a.height=n),e=fd(i,0,a),n=fd(i,1,a),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,n);this.refresh(!0)}this._width=e,this._height=n}else{if(e==null||n==null)return;this._width=e,this._height=n,this.getLayer($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 xy("image",this,e.pixelRatio||this.dpr);n.initContext(),n.clear(!1,e.backgroundColor||this._backgroundColor);var r=n.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,i=n.dom.height;this.eachLayer(function(v){v.__builtin__?r.drawImage(v.dom,0,0,a,i):v.renderToCanvas&&(r.save(),v.renderToCanvas(r),r.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},u=this.storage.getDisplayList(!0),f=0,c=u.length;f<c;f++){var d=u[f];tl(r,d,o,f===c-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function wp(t){t.registerPainter("canvas",m9)}function az(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 i2=["#6366f1","#f59e0b","#10b981","#ef4444","#8b5cf6","#ec4899","#06b6d4","#f97316","#14b8a6","#a855f7","#84cc16","#e879f9","#22d3ee","#fb923c","#34d399","#c084fc","#fbbf24","#2dd4bf","#f472b6","#a3e635"],o2={"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"},y9={review:"#06b6d4",exploration:"#f97316",planning:"#eab308",memory:"#ec4899",generic:"#64748b"},_9={low:"#10b981",medium:"#06b6d4",high:"#f59e0b",xhigh:"#a855f7","x-high":"#a855f7",unknown:"#64748b"};function S9(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 Rv(t){const e=az(t)%i2.length;return i2[e]}function X_(t){const e=t.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i);if(!e)return"#ffffff";const n=parseInt(e[1],16)/255,r=parseInt(e[2],16)/255,a=parseInt(e[3],16)/255;return .2126*n+.7152*r+.0722*a>.5?"#1f2937":"#ffffff"}function b9(t,e,n){e/=100,n/=100;const r=(1-Math.abs(2*n-1))*e,a=r*(1-Math.abs(t/60%2-1)),i=n-r/2;let o=0,u=0,f=0;t<60?(o=r,u=a):t<120?(o=a,u=r):t<180?(u=r,f=a):t<240?(u=a,f=r):t<300?(o=a,f=r):(o=r,f=a);const c=d=>Math.round((d+i)*255).toString(16).padStart(2,"0");return"#"+c(o)+c(u)+c(f)}function ri(t){if(o2[t])return o2[t];const e=az(t)%300;return b9(e,72,62)}function Hs(t){return y9[t]||"#64748b"}function Cd(t){const e=S9(t);return _9[e]??"#64748b"}function bc(t){if(t==null||!Number.isFinite(t))return"—";const e=Math.abs(t);return e>=1e9?wy(t,1e9,"B"):e>=1e6?wy(t,1e6,"M"):e>=1e3?wy(t,1e3,"K"):Math.round(t).toLocaleString()}function wy(t,e,n){const r=t/e,i=Math.abs(r)>=100?0:1;return`${r.toFixed(i)}${n}`}const bn="auto",ye={speed:1,main:{presentationDurationMs:300,chartAppearDurationMs:0,chartUpdateDurationMs:200,easing:"linear",easingUpdate:"linear"},tail:{startPercent:.85,durationScale:20,easing:"cubicOut"},daily:{chartAppearDurationMs:bn,chartUpdateDurationMs:30,easing:bn,easingUpdate:bn},bars:{chartAppearDurationMs:bn,chartUpdateDurationMs:20,easing:bn,easingUpdate:bn},donuts:{chartAppearDurationMs:bn,chartUpdateDurationMs:bn,easing:bn,easingUpdate:"linear",seriesAnimation:!1},heatmap:{popDurationMs:380,settleThreshold:.998,intensityRiseThreshold:.08,whiteThreshold:.88,nearMaxRatio:.985},videoExport:{introFadeEnabled:!0,introFadeStartOpacity:.95,introContentStartOpacity:.05,introFadeDurationMs:400,introFadeDelayMs:0,introFadeEasing:"cubicOut",startHoldDurationMs:100,replayDurationMs:1e4,tailDurationMs:5e3,finalHoldDurationMs:5e3,finalFlashDurationMs:1e3,finalFlashMaxOpacity:.35,displayTweenStartMs:200,displayTweenBaseMs:240,displayTweenLateMs:420,displayTweenLateWindowMs:2200,barsChartUpdateDurationMs:50,barsChartTailUpdateDurationMs:240,donutsChartUpdateDurationMs:50,donutsChartTailUpdateDurationMs:240}},Mp={animationDuration:750,animationDurationUpdate:220,animationEasing:"cubicOut",animationEasingUpdate:"cubicOut"},Cp={show:!0,animationDuration:250,animationDurationUpdate:220,animationDelay:250,animationDelayUpdate:180,animationEasing:"cubicOut",animationEasingUpdate:"cubicOut"},l2={...Mp,animationDurationUpdate:200,animationDelayUpdate:0,animationEasingUpdate:"cubicOut"},x9={animationDuration:700,animationDurationUpdate:220,animationDelay:250,animationDelayUpdate:140,animationEasing:"cubicOut",animationEasingUpdate:"cubicOut"},w9={...Cp,animationDelay:950,animationDelayUpdate:360};function M9(t){return Number.isFinite(t)&&t>0?t:1}function iz(t){return Math.max(0,Math.round(t/M9(ye.speed)))}function s2(t,e){return t===bn?iz(e):t}function u2(t,e){return t===bn?e:t}function Tp(t){return{animation:!0,animationDuration:s2(t.chartAppearDurationMs,ye.main.chartAppearDurationMs),animationDurationUpdate:s2(t.chartUpdateDurationMs,ye.main.chartUpdateDurationMs),animationEasing:u2(t.easing,ye.main.easing),animationEasingUpdate:u2(t.easingUpdate,ye.main.easingUpdate)}}const D1=iz(ye.main.presentationDurationMs);function C9(t=0,e=!1){const n=D1,r=ye.tail;if(!e)return n;const a=Math.min(Math.max(r.startPercent,0),.999),i=Math.min(Math.max(t||0,0),1);if(i<=a)return n;const o=(i-a)/Math.max(1-a,.001),u=Math.round(n*Math.max(r.durationScale,1));return Math.round(n+(u-n)*D9(o))}function f2(t=0,e=!1){const n=ye.tail;if(!e)return"linear";const r=Math.min(Math.max(n.startPercent,0),.999);return Math.min(Math.max(t||0,0),1)<=r?"linear":n.easing||"cubicOut"}function c2(t=0,e=!1){const n=ye.tail;if(!e)return!1;const r=Math.min(Math.max(n.startPercent,0),.999);return Math.min(Math.max(t||0,0),1)>r}Tp({chartAppearDurationMs:bn,chartUpdateDurationMs:bn,easing:bn,easingUpdate:bn});const T9=Tp(ye.daily),A9=Tp(ye.bars),h2=Tp(ye.donuts),d2=ye.donuts.seriesAnimation;function D9(t){const e=Math.min(Math.max(t,0),1);return 1-Math.pow(1-e,3)}function Un(t,e,n){return t+(e-t)*n}function Ot(t){return Number.isFinite(t)?t:0}function My(t,e){var n,r;return Array.isArray(t==null?void 0:t.data)?t.data:Array.isArray(t)?t:((n=t==null?void 0:t.data)==null?void 0:n[e])||((r=t==null?void 0:t.data)==null?void 0:r.total)||[]}function R9(t,e){return e!=null&&e.length?t==="d7"?e.slice(-7):t==="d30"?e.slice(-30):e:[]}function Cy(t,e,n){return t.map(r=>({key:(r==null?void 0:r[e])||"",label:(r==null?void 0:r[n])||"",tokens:Ot(r==null?void 0:r.tokens)})).filter(r=>r.key)}function E9(t,e){const n=Array.isArray(t==null?void 0:t.data)?t.data:Array.isArray(t)?t:[];if(!n.length)return{dates:[],series:[]};const r=n.map(f=>f.date),a=R9(e,r),i=new Map(n.map(f=>[f.date,f])),o=new Set;for(const f of a){const c=i.get(f);for(const d of Object.keys((c==null?void 0:c.by_model)||{}))o.add(d)}const u=[...o].map(f=>({key:f,label:f,data:a.map(c=>{var d,v,p;return Ot((p=(v=(d=i.get(c))==null?void 0:d.by_model)==null?void 0:v[f])==null?void 0:p.tokens)})}));return{dates:a,series:u}}function L9(t){const e=t!=null&&t.data&&typeof t.data=="object"?t.data:{},n={};for(const[r,a]of Object.entries(e))n[r]={tokens:Ot(a==null?void 0:a.tokens),elapsed:Ot(a==null?void 0:a.elapsed),cost:Ot(a==null?void 0:a.cost)};return n}function R1({overview:t,heatmap:e,daily:n,families:r,repos:a,models:i,range:o}){const u=t==null?void 0:t.data;if(!u)return{ready:!0,stats:{tokens:0,elapsed:0,cost:0,sessions:0,enriched:0,priced:0,exactPriced:0,fallbackPriced:0,unpriced:0,days:1},topRepos:[],topFamilies:[],topModels:[],daily:{dates:[],series:[]},heatmap:{}};const f=(u==null?void 0:u[o])||(u==null?void 0:u.total)||{},c=f.coverage||{},d=Ot(c.thread_rows??c.total),v=Ot(c.root_sessions??f.total_sessions),p=Ot(c.priced),g=Ot(c.priced_exact),y=Ot(c.priced_fallback),_=Ot(c.unpriced??Math.max(d-p,0)),S=f.date_range,x=(S==null?void 0:S.from)!=null&&(S==null?void 0:S.to)!=null?Math.max(1,Math.ceil((S.to-S.from)/86400)):1;return{ready:!0,stats:{tokens:Ot(f.total_tokens),elapsed:Ot(f.total_elapsed_seconds),cost:Ot(f.total_cost),sessions:v,enriched:Ot(c.enriched),priced:p,exactPriced:g,fallbackPriced:y,unpriced:_,days:x},topRepos:Cy(My(a,o).slice(0,6),"repo_label","repo_label"),topFamilies:Cy(My(r,o),"family","family"),topModels:Cy(My(i,o).slice(0,6),"model_name","model_name"),daily:E9(n,o),heatmap:L9(e)}}function Ty(t,e,n){const r=new Map((t||[]).map(f=>[f.key,f])),a=new Map((e||[]).map(f=>[f.key,f])),i=[],o=new Set;for(const f of e||[])o.has(f.key)||(o.add(f.key),i.push(f.key));for(const f of t||[])o.has(f.key)||(o.add(f.key),i.push(f.key));const u=[];for(const f of i){const c=r.get(f),d=a.get(f),v=(d==null?void 0:d.label)||(c==null?void 0:c.label)||f,p=Un(Ot(c==null?void 0:c.tokens),Ot(d==null?void 0:d.tokens),n);p<=.001&&!d||u.push({key:f,label:v,tokens:p})}return u}function O9(t,e,n){var f;const r=((f=e==null?void 0:e.dates)!=null&&f.length?e.dates:(t==null?void 0:t.dates)||[]).slice(),a=new Map(((t==null?void 0:t.series)||[]).map(c=>[c.key,c])),i=new Map(((e==null?void 0:e.series)||[]).map(c=>[c.key,c])),o=new Set([...a.keys(),...i.keys()]),u=[];for(const c of o){const d=a.get(c),v=i.get(c),p=new Map(((d==null?void 0:d.data)||[]).map((_,S)=>{var x;return[(x=t==null?void 0:t.dates)==null?void 0:x[S],_]})),g=new Map(((v==null?void 0:v.data)||[]).map((_,S)=>{var x;return[(x=e==null?void 0:e.dates)==null?void 0:x[S],_]})),y=r.map(_=>Un(Ot(p.get(_)),Ot(g.get(_)),n));y.every(_=>_<=.001)&&!v||u.push({key:c,label:(v==null?void 0:v.label)||(d==null?void 0:d.label)||c,data:y})}return{dates:r,series:u}}function z9(t,e,n){const r=new Set([...Object.keys(t||{}),...Object.keys(e||{})]),a={};for(const i of r){const o=t==null?void 0:t[i],u=e==null?void 0:e[i];a[i]={tokens:Un(Ot(o==null?void 0:o.tokens),Ot(u==null?void 0:u.tokens),n),elapsed:Un(Ot(o==null?void 0:o.elapsed),Ot(u==null?void 0:u.elapsed),n),cost:Un(Ot(o==null?void 0:o.cost),Ot(u==null?void 0:u.cost),n)}}return a}function no(t,e,n){var r,a,i,o,u,f,c,d,v,p,g,y,_,S,x,M,C,T,R;return{ready:e.ready,stats:{tokens:Un(Ot((r=t==null?void 0:t.stats)==null?void 0:r.tokens),Ot((a=e==null?void 0:e.stats)==null?void 0:a.tokens),n),elapsed:Un(Ot((i=t==null?void 0:t.stats)==null?void 0:i.elapsed),Ot((o=e==null?void 0:e.stats)==null?void 0:o.elapsed),n),cost:Un(Ot((u=t==null?void 0:t.stats)==null?void 0:u.cost),Ot((f=e==null?void 0:e.stats)==null?void 0:f.cost),n),sessions:Un(Ot((c=t==null?void 0:t.stats)==null?void 0:c.sessions),Ot((d=e==null?void 0:e.stats)==null?void 0:d.sessions),n),enriched:Un(Ot((v=t==null?void 0:t.stats)==null?void 0:v.enriched),Ot((p=e==null?void 0:e.stats)==null?void 0:p.enriched),n),priced:Un(Ot((g=t==null?void 0:t.stats)==null?void 0:g.priced),Ot((y=e==null?void 0:e.stats)==null?void 0:y.priced),n),exactPriced:Un(Ot((_=t==null?void 0:t.stats)==null?void 0:_.exactPriced),Ot((S=e==null?void 0:e.stats)==null?void 0:S.exactPriced),n),fallbackPriced:Un(Ot((x=t==null?void 0:t.stats)==null?void 0:x.fallbackPriced),Ot((M=e==null?void 0:e.stats)==null?void 0:M.fallbackPriced),n),unpriced:Un(Ot((C=t==null?void 0:t.stats)==null?void 0:C.unpriced),Ot((T=e==null?void 0:e.stats)==null?void 0:T.unpriced),n),days:Ot((R=e==null?void 0:e.stats)==null?void 0:R.days)||1},topRepos:Ty(t==null?void 0:t.topRepos,e==null?void 0:e.topRepos,n),topFamilies:Ty(t==null?void 0:t.topFamilies,e==null?void 0:e.topFamilies,n),topModels:Ty(t==null?void 0:t.topModels,e==null?void 0:e.topModels,n),daily:O9(t==null?void 0:t.daily,e==null?void 0:e.daily,n),heatmap:z9(t==null?void 0:t.heatmap,e==null?void 0:e.heatmap,n)}}function N9(t,{duration:e=D1,onSettledChange:n,ingestProgress:r=0,isIngestActive:a=!1,clockNowMs:i=null}={}){const o=et.useMemo(()=>R1(t),[t.overview,t.heatmap,t.daily,t.families,t.repos,t.models,t.range]),[u,f]=et.useState(o),c=et.useRef(o),d=et.useRef(o),v=et.useRef(0),p=et.useRef(0),g=et.useRef(u),y=et.useRef(!0),_=et.useRef(n),S=et.useRef(0),x=et.useRef(o),M=et.useRef(o),C=et.useRef("smooth");et.useEffect(()=>{_.current=n},[n]);const T=z=>{var I;y.current!==z&&(y.current=z,(I=_.current)==null||I.call(_,z))};et.useEffect(()=>{g.current=u},[u]);const R=z=>{c.current=z,d.current=z,g.current=z,f(z),T(!0),p.current=0,S.current=0,x.current=z,M.current=z},D=z=>{d.current=z,T(!1);const N=c2(r,a)?"tail":"smooth";C.current!==N&&(C.current=N,S.current=0),N==="tail"&&(x.current=c.current,M.current=z,S.current=0)},E=(z,I)=>{z<p.current&&(p.current=0,S.current=0,x.current=c.current,M.current=I),p.current||(p.current=z);const N=Math.max(1,z-p.current);p.current=z;const L=C9(r,a)||e,F=c.current,Y=c2(r,a)?"tail":"smooth";C.current!==Y&&(C.current=Y,S.current=0);let Z,H;if(Y==="tail"){M.current!==I&&(x.current=F,M.current=I,S.current=z),S.current||(S.current=z);const X=Math.max(0,z-S.current),U=Math.min(1,X/Math.max(L,1)),W=v2(U,f2(r,a));Z=no(x.current,M.current,W),H=U>=1||p2(Z,I)<=.002}else{const X=1-Math.exp(-N/Math.max(L,1)),U=v2(X,f2(r,a));Z=no(F,I,U),H=U>=.999||p2(Z,I)<=.002}return c.current=Z,H?(c.current=I,g.current=I,f(I),T(!0),S.current=0,x.current=I,M.current=I,I):(g.current=Z,f(Z),Z)};return et.useLayoutEffect(()=>{if(i!=null){if(e<=0){R(o);return}D(o),E(i,o)}},[o,e,r,a,i]),et.useEffect(()=>{if(i!=null)return;if(d.current=o,e<=0){R(o);return}if(D(o),v.current)return;const z=I=>{if(E(I,d.current)===d.current&&y.current){v.current=0,p.current=0;return}v.current=requestAnimationFrame(z)};v.current=requestAnimationFrame(z)},[o,e,r,a,i]),et.useEffect(()=>()=>{v.current&&cancelAnimationFrame(v.current),v.current=0,p.current=0},[]),u}function v2(t,e){const n=Math.min(Math.max(t,0),1);return e==="cubicOut"?1-Math.pow(1-n,3):n}function p2(t,e){var u,f,c,d,v,p,g,y,_;if(!t||!e)return 0;const n=Math.max(Math.abs((((u=t.stats)==null?void 0:u.tokens)||0)-(((f=e.stats)==null?void 0:f.tokens)||0)),Math.abs((((c=t.stats)==null?void 0:c.elapsed)||0)-(((d=e.stats)==null?void 0:d.elapsed)||0)),Math.abs((((v=t.stats)==null?void 0:v.cost)||0)-(((p=e.stats)==null?void 0:p.cost)||0)),Math.abs((((g=t.stats)==null?void 0:g.sessions)||0)-(((y=e.stats)==null?void 0:y.sessions)||0))),r=Ay(t.topRepos,e.topRepos),a=Ay(t.topFamilies,e.topFamilies),i=Ay(t.topModels,e.topModels),o=I9(t.daily,e.daily);return Math.max(n,r,a,i,o)/Math.max(1,((_=e.stats)==null?void 0:_.tokens)||1)}function Ay(t=[],e=[]){const n=new Map(t.map(a=>[a.key,a.tokens||0]));let r=0;for(const a of e)r=Math.max(r,Math.abs((n.get(a.key)||0)-(a.tokens||0)));return r}function I9(t,e){var a;const n=new Map(((t==null?void 0:t.series)||[]).map(i=>[i.key,i]));let r=0;for(const i of(e==null?void 0:e.series)||[]){const o=n.get(i.key);for(let u=0;u<i.data.length;u+=1)r=Math.max(r,Math.abs((((a=o==null?void 0:o.data)==null?void 0:a[u])||0)-(i.data[u]||0)))}return r}Qn([mp,yp,Sp,bp,xp,nz,wp]);function $a(t){return bc(t)}function Z_(t){return t==null?"—":t>=1e3?"$"+(t/1e3).toFixed(1)+"K":"$"+t.toFixed(2)}function $_(t){return t?(t/3600).toFixed(1)+"h":"0h"}function B9(t,e=16){if(!t)return"";const n=String(t).split(/([-/])/).filter(Boolean),r=[""];for(const a of n){const i=r[r.length-1];if(!i.length||(i+a).length<=e){r[r.length-1]=i+a;continue}if(r.length===2){r[1]+=a;break}r.push(a)}return r.join(`
|
|
89
|
+
`)}function k9(t){return t<=7?{barWidth:"72%",barMaxWidth:28}:t<=30?{barWidth:"54%",barMaxWidth:18}:{barWidth:null,barMaxWidth:12}}function g2(t,e){return t.map(n=>{const r=e(n.key);return{name:n.label,value:n.tokens,itemStyle:{color:r},label:{show:!0,color:r},labelLine:{show:!0}}})}function m2(t){return t.length!==1?null:e=>{const n=e.rect||{x:0,y:0,width:0,height:0},r=e.labelRect||{height:0},a=n.x+n.width+14,i=n.y+n.height/2-r.height/2;return{x:a,y:i,align:"left",verticalAlign:"middle",moveOverlap:"shiftY",hideOverlap:!1}}}function P9({daily:t,exportMode:e=!1}){var i;if(!((i=t==null?void 0:t.dates)!=null&&i.length))return B.jsxs("div",{className:"overview-daily-spark overview-daily-spark-empty",children:[B.jsx("span",{className:"overview-daily-spark-title",children:"Daily Usage"}),B.jsx("span",{className:"overview-daily-spark-empty-text",children:"No daily data"})]});const{barWidth:n,barMaxWidth:r}=k9(t.dates.length),a={backgroundColor:"transparent",...T9,tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:o=>{if(!(o!=null&&o.length))return"";let u=`<b>${o[0].axisValue}</b><br/>`,f=0;const c=[...o].filter(d=>d.value>0).sort((d,v)=>(v.value||0)-(d.value||0));for(const d of c)u+=`${d.marker} ${d.seriesName}: ${$a(d.value)}<br/>`,f+=d.value;return u+=`<b>Total: ${$a(f)}</b>`,u}},grid:{left:4,right:4,top:4,bottom:4},xAxis:{type:"category",data:t.dates,show:!1},yAxis:{type:"value",show:!1,scale:!1,min:0},series:t.series.map(o=>({name:o.label,type:"bar",stack:"total",data:o.data,itemStyle:{color:ri(o.key)},...n?{barWidth:n}:{},barMaxWidth:r}))};return B.jsxs("div",{className:"overview-daily-spark",children:[B.jsx("span",{className:"overview-daily-spark-title",children:"Daily Usage"}),B.jsx("div",{className:"overview-daily-spark-chart",children:B.jsx(Tn,{echarts:Rn,option:a,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!1,notMerge:e})})]})}const y2=[{key:"tokens",label:"Tokens",fmt:$a},{key:"elapsed",label:"Time",fmt:t=>$_(t)},{key:"cost",label:"Cost",fmt:Z_}];var I2;const H9=(I2=ye.heatmap)==null?void 0:I2.popDurationMs;var B2;const F9=(B2=ye.heatmap)==null?void 0:B2.settleThreshold;function V9({heatmapData:t,isIngestActive:e=!1,ingestProgress:n=0}){var C;const[r,a]=et.useState("tokens"),[i,o]=et.useState(new Set),[u,f]=et.useState(new Set),c=et.useRef({}),d=et.useRef(1),v=t||{},p=new Date,g=[],y=[];for(let T=364;T>=0;T--){const R=new Date(p);R.setDate(R.getDate()-T);const D=R.toLocaleDateString("en-CA"),E=v[D]&&v[D][r]||0;g.push({key:D,val:E,date:R}),R.getDate()===1&&y.push({idx:364-T,label:R.toLocaleDateString("en-US",{month:"short"})})}const _=Math.max(...g.map(T=>T.val),1);et.useEffect(()=>{var Y,Z,H;if(!e||n>=F9){c.current={},d.current=1;return}const T=new Date,R=c.current,D=d.current,E=new Set,z=new Set,I=Math.max(.05,Math.min(D,_)*.002),N=.02,L=(Y=ye.heatmap)==null?void 0:Y.intensityRiseThreshold,F=(Z=ye.heatmap)==null?void 0:Z.whiteThreshold,G=(H=ye.heatmap)==null?void 0:H.nearMaxRatio;for(let X=364;X>=0;X--){const U=new Date(T);U.setDate(U.getDate()-X);const W=U.toLocaleDateString("en-CA"),it=v[W]&&v[W][r]||0,q=R[W]??0,rt=D>0?q/D:0,lt=_>0?it/_:0,ft=_>D+I&&it>=_*G&&(q<_*G||q===void 0),gt=lt>=F&&rt<F,At=it>q+I,Mt=lt>rt+L;ft||gt||At||Mt?E.add(W):(it<q-I||it>0&&D>0&&_>D+I&&rt>=.85&<<rt-N)&&z.add(W),R[W]=it}if(d.current=_,E.size>0||z.size>0){o(E),f(z);const X=setTimeout(()=>{o(new Set),f(new Set)},H9);return()=>clearTimeout(X)}},[v,r,e,n,_]);function S(T){if(T===0)return"var(--bg-elevated)";const R=T/_,D=1/4;return R<D?"rgba(99, 102, 241, 0.14)":R<2*D?"rgba(99, 102, 241, 0.38)":R<3*D?"rgba(99, 102, 241, 0.62)":R<1?"rgba(99, 102, 241, 0.88)":"#fff"}const x=((C=g[0])==null?void 0:C.date.getDay())||0,M=Array(x).fill(null).concat(g);return B.jsxs("div",{className:"heatmap-wrap",children:[B.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.75rem"},children:[B.jsx("span",{className:"chart-title",children:"Activity"}),B.jsx("div",{className:"btn-group",children:y2.map(T=>B.jsx("button",{className:`btn ${r===T.key?"active":""}`,onClick:()=>a(T.key),children:T.label},T.key))})]}),B.jsx("div",{className:"heatmap-grid",style:{gridTemplateRows:"repeat(7, 1fr)"},children:M.map((T,R)=>T?B.jsx("div",{className:`heatmap-cell ${T.val>0?"active":""} ${i.has(T.key)?"heatmap-cell-pop":""} ${u.has(T.key)?"heatmap-cell-pop-dim":""}`,style:{background:S(T.val)},title:`${T.key}: ${y2.find(D=>D.key===r).fmt(T.val)}`},T.key):B.jsx("div",{className:"heatmap-cell",style:{visibility:"hidden"}},`pad-${R}`))}),B.jsx("div",{className:"heatmap-labels",children:y.slice(-12).map((T,R)=>B.jsx("span",{children:T.label},R))})]})}function oz({presentation:t,rawPresentation:e=null,ingestProgress:n=0,isIngestActive:r=!1,exportMode:a=!1,exportPlayback:i=!1,exportPhase:o=null}){var Y,Z,H,X;if(!(t!=null&&t.ready))return null;const u=i&&o==="replay"&&(e!=null&&e.ready)?e:t,{stats:f,topRepos:c,topFamilies:d,topModels:v}=t,p=u.topRepos||[],g=u.topFamilies||[],y=u.topModels||[],_=[...p.slice(0,6)].reverse(),S=Math.max(...p.slice(0,6).map(U=>U.tokens||0),1),x=[...g].sort((U,W)=>String(U.label).localeCompare(String(W.label))),M=[...y.slice(0,6)].sort((U,W)=>String(U.label).localeCompare(String(W.label))),C=o==="tail"||o==="final_hold"?(Y=ye.videoExport)==null?void 0:Y.barsChartTailUpdateDurationMs:(Z=ye.videoExport)==null?void 0:Z.barsChartUpdateDurationMs,T=o==="tail"||o==="final_hold"?(H=ye.videoExport)==null?void 0:H.donutsChartTailUpdateDurationMs:(X=ye.videoExport)==null?void 0:X.donutsChartUpdateDurationMs,R={backgroundColor:"transparent",...A9,...a?{animation:!1}:{},...i?{animationDurationUpdate:C,animationEasingUpdate:"cubicOut"}:{},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:U=>U!=null&&U.length?`${U[0].axisValue}: ${$a(U[0].value)} tokens`:""},grid:{left:100,right:5,top:5,bottom:5},xAxis:{type:"value",show:!1,max:S||1},yAxis:{type:"category",data:_.map(U=>U.label),axisLabel:{color:"#8b949e",fontSize:11,formatter:U=>B9(U)},axisTick:{show:!1},axisLine:{show:!1}},series:[{type:"bar",data:_.map(U=>{const W=U.tokens||0,k=W/S>=.7,q=Rv(U.label);return{value:W,itemStyle:{color:q,borderRadius:[0,3,3,0]},label:{show:!0,position:k?"insideRight":"right",distance:5,offset:[0,1.5],formatter:()=>$a(W),color:k?X_(q):"#8b949e",fontSize:10}}}),barWidth:"80%"}]},D=x.reduce((U,W)=>U+(W.tokens||0),0),E=x.filter(U=>D>0?(U.tokens||0)/D>=.01:!1),z=m2(E),I={backgroundColor:"transparent",...h2,...a?{animation:!1}:{},...i?{animationDurationUpdate:T,animationEasingUpdate:"cubicOut"}:{},tooltip:{trigger:"item",appendToBody:!0,confine:!0,formatter:U=>`${U.name}: ${$a(U.value)} tokens (${U.percent}%)`},series:[{type:"pie",animation:a?!1:d2,avoidLabelOverlap:!z,radius:["48%","72%"],center:["50%","50%"],label:{show:!0,color:"#8b949e",fontSize:11,formatter:"{b}",alignTo:"edge",edgeDistance:5,bleedMargin:5,distanceToLabelLine:5},labelLine:{lineStyle:{color:"#30363d"},length:8,length2:6},itemStyle:{borderColor:"#161b22",borderWidth:2},...z?{labelLayout:z}:{},data:g2(E,Hs)}]},N=M.reduce((U,W)=>U+(W.tokens||0),0),L=M.filter(U=>N>0?(U.tokens||0)/N>=.01:!1),F=m2(L),G={backgroundColor:"transparent",...h2,...a?{animation:!1}:{},...i?{animationDurationUpdate:T,animationEasingUpdate:"cubicOut"}:{},tooltip:{trigger:"item",appendToBody:!0,confine:!0,formatter:U=>`${U.name}: ${$a(U.value)} tokens (${U.percent}%)`},series:[{type:"pie",animation:a?!1:d2,avoidLabelOverlap:!F,radius:["48%","72%"],center:["50%","50%"],label:{show:!0,color:"#8b949e",fontSize:11,formatter:"{b}",alignTo:"edge",edgeDistance:5,bleedMargin:5,distanceToLabelLine:5},labelLine:{lineStyle:{color:"#30363d"},length:8,length2:6},itemStyle:{borderColor:"#161b22",borderWidth:2},...F?{labelLayout:F}:{},data:g2(L,ri)}]};return B.jsxs("div",{className:"animate-in",children:[B.jsxs("div",{className:"stat-row",children:[B.jsxs("div",{className:"stat-cards",children:[B.jsxs("div",{className:"stat-card",children:[B.jsx("div",{className:"stat-label",children:"Tokens"}),B.jsx("div",{className:"stat-value",children:$a(f.tokens)}),B.jsxs("div",{className:"stat-per-day",children:[B.jsx("span",{className:"stat-per-day-value",children:$a(f.tokens/f.days)})," per day"]})]}),B.jsxs("div",{className:"stat-card",children:[B.jsx("div",{className:"stat-label",children:"Agent Time"}),B.jsx("div",{className:"stat-value",children:$_(f.elapsed)}),B.jsxs("div",{className:"stat-per-day",children:[B.jsx("span",{className:"stat-per-day-value",children:$_(f.elapsed/f.days)})," per day"]})]}),B.jsxs("div",{className:"stat-card",children:[B.jsx("div",{className:"stat-label",children:"Est. API Cost"}),B.jsx("div",{className:"stat-value",children:Z_(f.cost)}),B.jsxs("div",{className:"stat-per-day",children:[B.jsx("span",{className:"stat-per-day-value",children:Z_(f.cost/f.days)})," per day"]})]}),B.jsxs("div",{className:"stat-card",children:[B.jsx("div",{className:"stat-label",children:"Sessions"}),B.jsx("div",{className:"stat-value",children:Math.round(f.sessions).toLocaleString()}),B.jsxs("div",{className:"stat-per-day",children:[B.jsx("span",{className:"stat-per-day-value",children:(f.sessions/f.days).toFixed(1)})," per day"]})]})]}),B.jsx(P9,{daily:t.daily,exportMode:a})]}),B.jsx(V9,{heatmapData:t.heatmap,isIngestActive:r,ingestProgress:n}),B.jsxs("div",{className:"grid-3",children:[B.jsxs("div",{className:"chart-card overview-donut-card",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Top Repos"}),c.length>0?B.jsx(Tn,{echarts:Rn,option:R,style:{height:180},theme:"dark",lazyUpdate:!1,notMerge:a}):B.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem 0",textAlign:"center"},children:"No data"})]}),B.jsxs("div",{className:"chart-card overview-donut-card",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Work Type"}),d.length>0?B.jsx(Tn,{echarts:Rn,option:I,style:{height:180},theme:"dark",lazyUpdate:!1,notMerge:!0}):B.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem 0",textAlign:"center"},children:"No data"})]}),B.jsxs("div",{className:"chart-card",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Models"}),v.length>0?B.jsx(Tn,{echarts:Rn,option:G,style:{height:180},theme:"dark",lazyUpdate:!1,notMerge:!0}):B.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem 0",textAlign:"center"},children:"No data"})]})]}),B.jsxs("div",{className:"coverage-subtle",children:[B.jsx("span",{style:{fontWeight:500},children:"Session coverage:"}),B.jsxs("span",{className:"coverage-item",children:[B.jsx("span",{className:"coverage-dot",style:{background:"#22c55e"}}),B.jsx("span",{className:"coverage-nums",children:Math.round(f.exactPriced)})," ","exact-priced"]}),B.jsxs("span",{className:"coverage-item",children:[B.jsx("span",{className:"coverage-dot",style:{background:"#c084fc"}}),B.jsx("span",{className:"coverage-nums",children:Math.round(f.fallbackPriced)})," ","fallback-priced"]}),B.jsxs("span",{className:"coverage-item",children:[B.jsx("span",{className:"coverage-dot",style:{background:"#64748b"}}),B.jsx("span",{className:"coverage-nums",children:Math.round(f.unpriced)})," ","unpriced"]})]})]})}function G9({data:t,heatmap:e,daily:n,families:r,repos:a,models:i,range:o="total",onPresentationSettledChange:u=null,ingestProgress:f=0,isIngestActive:c=!1,clockNowMs:d=null}){const v=N9({overview:t,heatmap:e,daily:n,families:r,repos:a,models:i,range:o},{duration:D1,onSettledChange:u,ingestProgress:f,isIngestActive:c,clockNowMs:d});return B.jsx(oz,{presentation:v,ingestProgress:f,isIngestActive:c})}function U9(t,e){return t.data===e.data&&t.heatmap===e.heatmap&&t.daily===e.daily&&t.families===e.families&&t.repos===e.repos&&t.models===e.models&&t.range===e.range&&t.onPresentationSettledChange===e.onPresentationSettledChange&&t.ingestProgress===e.ingestProgress&&t.isIngestActive===e.isIngestActive&&t.clockNowMs===e.clockNowMs}const j9=et.memo(G9,U9);function Y9(t,e){return t==="default"?e:t}function kf(t,e="tokens"){return Object.entries(t||{}).map(([n,r])=>({key:n,...r})).sort((n,r)=>(r[e]||0)-(n[e]||0))}function ro({title:t,rows:e,valueKey:n="tokens",colorForKey:r,valueFormatter:a,chartMode:i="default",defaultMode:o="bar",emptyLabel:u="No data",renderTitleInChart:f=!0,barLabelProgress:c=1}){const d=Y9(i,o),v=(e||[]).map((S,x)=>{const M=(S==null?void 0:S.key)??(S==null?void 0:S.repo_label)??(S==null?void 0:S.model_name)??(S==null?void 0:S.family)??null;return M?{...S,key:String(M),_idx:x}:null}).filter(Boolean),p={xAxis:{show:!1},yAxis:{show:!1},series:[],graphic:{type:"text",left:"center",top:"60%",style:{text:u,fill:"#484f58",fontSize:11}}};if(f&&(p.title={text:t,left:"center",top:"middle",textStyle:{fontSize:12,color:"#484f58",fontWeight:"normal"}}),!v.length)return p;if(d==="donut"){const S=v.reduce((M,C)=>M+(C[n]||0),0),x={backgroundColor:"transparent",...l2,tooltip:{trigger:"item",appendToBody:!0,confine:!0,formatter:M=>`${M.name}: ${a(M.value)} (${M.percent}%)`},series:[{type:"pie",...l2,radius:["40%","62%"],center:["50%","52%"],label:{show:!0,color:"#8b949e",fontSize:10,formatter:"{b}",overflow:"truncate",width:90,...Cp},labelLine:{lineStyle:{color:"#30363d"}},itemStyle:{borderColor:"#161b22",borderWidth:2},data:v.map(M=>{const C=M[n]||0,R=(S>0?C/S:0)>=.01;return{name:M.key,value:C,itemStyle:{color:r(M.key)},label:{show:R,color:r(M.key)},labelLine:{show:R}}})}]};return f&&(x.title={text:t,left:"center",top:8,textStyle:{fontSize:11,color:"#8b949e",fontWeight:"normal"}}),x}const g=[...v].reverse(),y=Math.max(...v.map(S=>S[n]||0),0),_={backgroundColor:"transparent",...x9,tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:S=>{var C;const x=(C=S==null?void 0:S[0])==null?void 0:C.dataIndex,M=g[x];return M?`${M.key}: ${a(M[n]||0)}`:""}},grid:{left:65,right:50,top:f?35:20,bottom:20},xAxis:{type:"value",splitNumber:4,max:y||1,axisLabel:{formatter:S=>a(S),color:"#484f58",fontSize:10,showMinLabel:!0,showMaxLabel:!0},splitLine:{lineStyle:{color:["transparent","#21262d","#21262d","#21262d","transparent"]}}},yAxis:{type:"category",data:g.map(S=>S.key),axisLabel:{color:"#8b949e",fontSize:10,overflow:"truncate",width:55},axisTick:{show:!1},axisLine:{show:!1}},series:[{type:"bar",data:g.map(S=>({value:S[n]||0,itemStyle:{color:r(S.key),borderRadius:[0,3,3,0]}})),barMaxWidth:14,label:{show:!0,position:"right",formatter:S=>a((S.value??0)*c),color:"#8b949e",fontSize:9,...w9}}]};return f&&(_.title={text:t,left:"center",top:8,textStyle:{fontSize:11,color:"#8b949e",fontWeight:"normal"}}),_}Qn([mp,yp,Sp,bp,xp,wp]);function el(t){return bc(t)}function W_(t){return t==null||t===0?"—":t>=1e3?"$"+(t/1e3).toFixed(1)+"K":"$"+t.toFixed(2)}const q9=["all","review","exploration","planning","memory","generic"],_2=["review","exploration","planning","memory","generic"];function X9(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 Z9(t,e="total"){const n=t==null?void 0:t.data;return Array.isArray(n)?n:(n==null?void 0:n[e])||(n==null?void 0:n.total)||[]}function $9({repo:t,chartMode:e}){const[n,r]=et.useState(!1),a=et.useMemo(()=>kf(t.by_model),[t.by_model]),i=et.useMemo(()=>kf(t.by_family),[t.by_family]),o=ro({title:"Models in repo",rows:a,valueKey:"tokens",colorForKey:ri,valueFormatter:el,chartMode:e,defaultMode:"donut",renderTitleInChart:!1}),u=ro({title:"Work type in repo",rows:i,valueKey:"tokens",colorForKey:Hs,valueFormatter:el,chartMode:e,defaultMode:"donut",renderTitleInChart:!1}),f=[...a.slice(0,4).map(c=>({...c,scope:"model"})),...i.slice(0,4).map(c=>({...c,scope:"family"}))];return B.jsxs("div",{className:"model-detail-wrap",children:[B.jsxs("div",{className:"model-detail-charts",children:[B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Models in repo"}),B.jsx(Tn,{echarts:Rn,option:o,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]}),B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Work type in repo"}),B.jsx(Tn,{echarts:Rn,option:u,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]})]}),B.jsx("div",{className:"model-detail-footer",children:B.jsxs("button",{type:"button",className:"model-detail-toggle",onClick:()=>r(c=>!c),"aria-expanded":n,children:[B.jsx("span",{className:"model-detail-toggle-text",children:n?"Hide details":"Show details"}),B.jsx("span",{className:`model-detail-toggle-arrow ${n?"expanded":""}`,"aria-hidden":!0,children:"▼"})]})}),B.jsx("div",{className:`model-detail-summary-wrap ${n?"expanded":""}`,children:B.jsx("div",{className:"model-detail-summary",children:f.map(c=>B.jsxs("div",{className:"model-detail-summary-card",children:[B.jsxs("div",{className:"model-detail-summary-head",children:[B.jsx("span",{className:"model-detail-swatch",style:{background:c.scope==="model"?ri(c.key):Hs(c.key)}}),B.jsx("span",{className:"model-detail-summary-name",title:c.key,children:c.key})]}),B.jsxs("div",{className:"model-detail-summary-line",children:[el(c.tokens)," tokens"]}),B.jsxs("div",{className:"model-detail-summary-line",children:[c.sessions||0," sessions"]}),B.jsx("div",{className:"model-detail-summary-line",children:W_(c.cost)})]},`${c.scope}-${c.key}`))})})]})}function W9({data:t,range:e="total",chartMode:n="default"}){const[r,a]=et.useState("all"),[i,o]=et.useState(null),u=et.useRef(null),f=et.useMemo(()=>Z9(t,e),[t,e]),c=et.useMemo(()=>f!=null&&f.length?r==="all"?f:f.map(S=>{var M;const x=(M=S.by_family)==null?void 0:M[r];return x?{...S,tokens:x.tokens,cost:x.cost,sessions:x.sessions}:null}).filter(Boolean).sort((S,x)=>x.tokens-S.tokens):[],[f,r]);if(et.useEffect(()=>{i&&(c.some(S=>S.repo_key===i)||o(null))},[i,c]),!(f!=null&&f.length))return B.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem"},children:"No data"});const d=c.slice(0,15),v=[...d].reverse(),p=Math.max(...d.map(S=>S.tokens||0),0),g=Math.max(250,d.length*28),y=et.useMemo(()=>({backgroundColor:"transparent",...Mp,tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:S=>{const x=d[d.length-1-S[0].dataIndex];return x?`<b>${x.repo_label}</b><br/>Tokens: ${el(x.tokens)}<br/>Cost: ${W_(x.cost)}<br/>Sessions: ${x.sessions}`:""}},grid:{left:150,right:50,top:8,bottom:8},xAxis:{type:"value",splitNumber:4,max:p||1,axisLabel:{formatter:S=>el(S),color:"#484f58",showMinLabel:!0,showMaxLabel:!0},splitLine:{lineStyle:{color:["transparent","#21262d","#21262d","#21262d","transparent"]}}},yAxis:{type:"category",data:v.map(S=>S.repo_label),axisLabel:{color:"#8b949e",fontSize:11},axisTick:{show:!1},axisLine:{show:!1}},series:[{id:"repos-range-bars",type:"bar",universalTransition:!0,data:v.map(S=>({id:S.repo_key,name:S.repo_label,value:S.tokens,itemStyle:{color:Rv(S.repo_label),borderRadius:[0,3,3,0]}})),barMaxWidth:16,label:{show:!0,position:"right",formatter:S=>el(S.value??0),color:"#8b949e",fontSize:10,...Cp}}]}),[p,v,d]),_=et.useMemo(()=>({click:S=>{if((S==null?void 0:S.componentType)==="series"&&(S==null?void 0:S.dataIndex)!=null){const x=d[d.length-1-S.dataIndex];x&&o(M=>M===x.repo_key?null:x.repo_key)}}}),[d]);return B.jsxs("div",{className:"animate-in",children:[B.jsxs("div",{className:"section-header",children:[B.jsx("span",{className:"section-title",children:"Repos"}),B.jsx("div",{className:"btn-group",children:q9.map(S=>B.jsx("button",{className:`btn ${r===S?"active":""}`,onClick:()=>a(S),children:S},S))})]}),B.jsxs("div",{className:"chart-card",children:[B.jsx("button",{className:"export-btn",onClick:()=>X9(u),children:"PNG"}),B.jsx("div",{style:{height:g,transition:"height 220ms cubic-bezier(0.22, 1, 0.36, 1)"},children:B.jsx(Tn,{ref:u,echarts:Rn,option:y,style:{height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1,onEvents:_})})]}),B.jsx("div",{className:"table-wrap",children:B.jsxs("table",{children:[B.jsx("thead",{children:B.jsxs("tr",{children:[B.jsx("th",{children:"Repo"}),B.jsx("th",{children:"Tokens"}),B.jsx("th",{children:"Cost"}),B.jsx("th",{children:"Sessions"}),B.jsx("th",{style:{width:200},children:"Families"})]})}),B.jsx("tbody",{children:c.map(S=>B.jsxs(zv.Fragment,{children:[B.jsxs("tr",{onClick:()=>o(i===S.repo_key?null:S.repo_key),style:{cursor:"pointer"},children:[B.jsxs("td",{style:{fontWeight:500,color:"var(--text-primary)"},children:[B.jsx("span",{style:{display:"inline-block",width:8,height:8,borderRadius:2,background:Rv(S.repo_label),marginRight:8}}),S.repo_label]}),B.jsx("td",{style:{fontFamily:"var(--font-mono)"},children:el(S.tokens)}),B.jsx("td",{style:{fontFamily:"var(--font-mono)"},children:W_(S.cost)}),B.jsx("td",{children:S.sessions}),B.jsx("td",{children:Object.entries(S.by_family||{}).sort(([x],[M])=>{const C=_2.indexOf(x),T=_2.indexOf(M);return(C===-1?999:C)-(T===-1?999:T)}).slice(0,3).map(([x])=>B.jsx("span",{className:`tag tag-${x}`,style:{marginRight:3},children:x},x))})]}),i===S.repo_key&&B.jsx("tr",{children:B.jsx("td",{colSpan:5,style:{background:"var(--bg-surface)",padding:"0.75rem 1rem"},children:B.jsx($9,{repo:S,chartMode:n})})})]},S.repo_key))})]})})]})}Qn([mp,yp,Sp,bp,xp,wp]);function pf(t){return bc(t)}function Q_(t){return t==null||t===0?"—":t>=1e3?"$"+(t/1e3).toFixed(1)+"K":"$"+t.toFixed(2)}const S2=["low","medium","high","xhigh","unknown"];function Q9(t){return[...t].sort(([e],[n])=>{const r=S2.indexOf((e||"").toLowerCase()),a=S2.indexOf((n||"").toLowerCase());return(r===-1?999:r)-(a===-1?999:a)})}function K9({model:t,fmt:e,chartMode:n}){const[r,a]=et.useState(!1),i=et.useMemo(()=>Q9(Object.entries(t.by_effort||{})),[t.by_effort]);if(!i.length)return null;const o=i.map(([v,p])=>({effort:v,sessions:p.sessions,tokens:p.tokens,avgTokens:p.sessions?Math.round(p.tokens/p.sessions):0,cost:p.cost,exactPriced:p.exact_priced||0,fallbackPriced:p.heuristic_priced||0})),u=o.map(v=>({key:v.effort,sessions:v.sessions,tokens:v.tokens,avgTokens:v.avgTokens})),f=ro({title:"Sessions by effort",rows:u,valueKey:"sessions",colorForKey:Cd,valueFormatter:v=>Math.round(v).toLocaleString(),chartMode:n,defaultMode:"donut",renderTitleInChart:!1}),c=ro({title:"Tokens by effort",rows:u,valueKey:"tokens",colorForKey:Cd,valueFormatter:e,chartMode:n,defaultMode:"donut",renderTitleInChart:!1}),d=ro({title:"Avg tokens per session",rows:u,valueKey:"avgTokens",colorForKey:Cd,valueFormatter:e,chartMode:n,defaultMode:"bar",renderTitleInChart:!1});return B.jsxs("div",{className:"model-detail-wrap",children:[B.jsxs("div",{className:"model-detail-charts",children:[B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Sessions by effort"}),B.jsx(Tn,{echarts:Rn,option:f,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]}),B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Tokens by effort"}),B.jsx(Tn,{echarts:Rn,option:c,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]}),B.jsxs("div",{className:"model-detail-bar",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Avg tokens per session"}),B.jsx(Tn,{echarts:Rn,option:d,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]})]}),B.jsx("div",{className:"model-detail-footer",children:B.jsxs("button",{type:"button",className:"model-detail-toggle",onClick:()=>a(v=>!v),"aria-expanded":r,children:[B.jsx("span",{className:"model-detail-toggle-text",children:r?"Hide details":"Show details"}),B.jsx("span",{className:`model-detail-toggle-arrow ${r?"expanded":""}`,"aria-hidden":!0,children:"▼"})]})}),B.jsx("div",{className:`model-detail-summary-wrap ${r?"expanded":""}`,children:B.jsx("div",{className:"model-detail-summary",children:o.map(v=>B.jsxs("div",{className:"model-detail-summary-card",children:[B.jsxs("div",{className:"model-detail-summary-head",children:[B.jsx("span",{className:"model-detail-swatch",style:{background:Cd(v.effort)}}),B.jsx("span",{className:"model-detail-summary-name",title:v.effort,children:v.effort})]}),B.jsxs("div",{className:"model-detail-summary-line",children:[v.sessions," sessions"]}),B.jsxs("div",{className:"model-detail-summary-line",children:[e(v.tokens)," tokens"]}),B.jsxs("div",{className:"model-detail-summary-line",children:[e(v.avgTokens)," avg/session"]}),B.jsxs("div",{className:"model-detail-summary-line",children:[Q_(v.cost)," cost"]}),B.jsxs("div",{className:"model-detail-summary-line",children:[v.exactPriced," exact · ",v.fallbackPriced," fallback"]})]},v.effort))})})]})}function J9(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 t7(t,e="total"){const n=t==null?void 0:t.data;return Array.isArray(n)?n:(n==null?void 0:n[e])||(n==null?void 0:n.total)||[]}function e7({data:t,range:e="total",chartMode:n="default"}){const[r,a]=et.useState(null),i=et.useRef(null),o=et.useMemo(()=>t7(t,e),[t,e]);if(et.useEffect(()=>{r&&(o.some(p=>p.model_name===r)||a(null))},[r,o]),!(o!=null&&o.length))return B.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem"},children:"No data"});const u=[...o].reverse(),f=Math.max(...o.map(p=>p.tokens||0),0),c=Math.max(180,o.length*34),d=et.useMemo(()=>({backgroundColor:"transparent",...Mp,tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,confine:!0,formatter:p=>{const g=o[o.length-1-p[0].dataIndex];return`<b>${g.model_name}</b><br/>Tokens: ${pf(g.tokens)}<br/>Cost: ${Q_(g.cost)}<br/>Sessions: ${g.sessions}`}},grid:{left:160,right:50,top:8,bottom:8},xAxis:{type:"value",splitNumber:4,max:f||1,axisLabel:{formatter:p=>pf(p),color:"#484f58",fontSize:10,showMinLabel:!0,showMaxLabel:!0},splitLine:{lineStyle:{color:["transparent","#21262d","#21262d","#21262d","transparent"]}}},yAxis:{type:"category",data:u.map(p=>p.model_name),axisLabel:{color:"#8b949e",fontSize:11},axisTick:{show:!1},axisLine:{show:!1}},series:[{id:"models-range-bars",type:"bar",universalTransition:!0,data:u.map(p=>({id:p.model_name,name:p.model_name,value:p.tokens,itemStyle:{color:ri(p.model_name),borderRadius:[0,3,3,0]}})),barMaxWidth:18,label:{show:!0,position:"right",formatter:p=>pf(p.value??0),color:"#8b949e",fontSize:10,...Cp}}]}),[f,o,u]),v=et.useMemo(()=>({click:p=>{if((p==null?void 0:p.componentType)==="series"&&(p==null?void 0:p.dataIndex)!=null){const g=o[o.length-1-p.dataIndex];g&&a(y=>y===g.model_name?null:g.model_name)}}}),[o]);return B.jsxs("div",{className:"animate-in",children:[B.jsx("div",{className:"section-header",children:B.jsx("span",{className:"section-title",children:"Models"})}),B.jsxs("div",{className:"chart-card",children:[B.jsx("button",{className:"export-btn",onClick:()=>J9(i),children:"PNG"}),B.jsx("div",{style:{height:c,transition:"height 220ms cubic-bezier(0.22, 1, 0.36, 1)"},children:B.jsx(Tn,{ref:i,echarts:Rn,option:d,style:{height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1,onEvents:v})})]}),B.jsx("div",{className:"table-wrap",children:B.jsxs("table",{children:[B.jsx("thead",{children:B.jsxs("tr",{children:[B.jsx("th",{children:"Model"}),B.jsx("th",{children:"Tokens"}),B.jsx("th",{children:"Cost"}),B.jsx("th",{children:"Sessions"}),B.jsx("th",{children:"Effort Levels"})]})}),B.jsx("tbody",{children:o.map(p=>B.jsxs(zv.Fragment,{children:[B.jsxs("tr",{onClick:()=>a(r===p.model_name?null:p.model_name),style:{cursor:"pointer"},children:[B.jsxs("td",{style:{fontWeight:500,color:"var(--text-primary)",fontFamily:"var(--font-mono)"},children:[B.jsx("span",{style:{display:"inline-block",width:8,height:8,borderRadius:2,background:ri(p.model_name),marginRight:8}}),p.model_name]}),B.jsx("td",{style:{fontFamily:"var(--font-mono)"},children:pf(p.tokens)}),B.jsx("td",{style:{fontFamily:"var(--font-mono)"},children:Q_(p.cost)}),B.jsx("td",{children:p.sessions}),B.jsx("td",{children:Object.keys(p.by_effort).length})]}),r===p.model_name&&B.jsx("tr",{children:B.jsx("td",{colSpan:5,style:{background:"var(--bg-surface)",padding:"0.75rem 1rem"},children:B.jsx(K9,{model:p,fmt:pf,chartMode:n})})})]},p.model_name))})]})})]})}Qn([mp,cG,yp,Sp,bp,xp,nz,d9,fU,wp]);function Yd(t){return bc(t)}function n7(t){return t==null||t===0?"$0":"$"+t.toFixed(2)}function r7(t){return t?(t/3600).toFixed(1)+"h":"0h"}const lz=[{key:"tokens",label:"Tokens",fn:Yd},{key:"elapsed_seconds",label:"Time",fn:r7},{key:"cost",label:"Cost",fn:n7}],a7=[{key:"model",label:"By Model"},{key:"family",label:"By Work"}],i7=[{key:"absolute",label:"Absolute"},{key:"relative",label:"Relative"}];function o7(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 l7(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 s7(t,e){return t==="d7"?44:t==="d30"?22:e<=14?36:e<=31?18:14}function u7(t,e){return t==="d7"?"72%":t==="d30"?"54%":e<=14?"64%":e<=31?"48%":"36%"}function f7(t,e){const n=t.length;if(n===0)return null;const r=new Array(n),a=new Array(n),i=[];for(let d=0;d<n;d++){for(;i.length&&t[i[i.length-1]]>=t[d];)i.pop();r[d]=i.length?i[i.length-1]:-1,i.push(d)}i.length=0;for(let d=n-1;d>=0;d--){for(;i.length&&t[i[i.length-1]]>=t[d];)i.pop();a[d]=i.length?i[i.length-1]:n,i.push(d)}let o=0,u=0;for(let d=0;d<n;d++){const p=(a[d]-r[d]-1)*t[d];p>o&&(o=p,u=d)}const f=(r[u]+a[u])/2,c=e[u]+t[u]/2;return[f,c]}function c7({day:t,chartMode:e}){const n=et.useMemo(()=>kf(t.by_model),[t.by_model]),r=et.useMemo(()=>kf(t.by_repo),[t.by_repo]),a=et.useMemo(()=>kf(t.by_family),[t.by_family]),i=ro({title:"Models",rows:n,valueKey:"tokens",colorForKey:ri,valueFormatter:Yd,chartMode:e,defaultMode:"donut",renderTitleInChart:!1}),o=ro({title:"Repos",rows:r,valueKey:"tokens",colorForKey:Rv,valueFormatter:Yd,chartMode:e,defaultMode:"donut",renderTitleInChart:!1}),u=ro({title:"Work Type",rows:a,valueKey:"tokens",colorForKey:Hs,valueFormatter:Yd,chartMode:e,defaultMode:"donut",renderTitleInChart:!1});return B.jsx("div",{className:"model-detail-wrap",children:B.jsxs("div",{className:"model-detail-charts",children:[B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Repos"}),B.jsx(Tn,{echarts:Rn,option:o,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]}),B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Models"}),B.jsx(Tn,{echarts:Rn,option:i,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]}),B.jsxs("div",{className:"model-detail-donut",children:[B.jsx("div",{className:"chart-title",style:{marginBottom:"0.5rem"},children:"Work Type"}),B.jsx(Tn,{echarts:Rn,option:u,style:{width:"100%",height:"100%"},theme:"dark",lazyUpdate:!0,notMerge:!1})]})]})})}const h7=zv.memo(function({daily:e,range:n,metric:r,split:a,displayMode:i,onSelectDate:o}){const[u,f]=et.useState({start:0,end:100}),c=et.useRef(null),d=e.map(N=>N.date),v=lz.find(N=>N.key===r),p=et.useMemo(()=>l7(n,d.length),[n,d.length]);et.useEffect(()=>{f({start:p,end:100})},[p]);const g=et.useMemo(()=>{if(!d.length)return 0;const N=Math.max(0,Math.min(100,u.start??p)),L=Math.max(N,Math.min(100,u.end??100)),F=Math.max(0,Math.floor(N/100*d.length)),G=Math.min(d.length-1,Math.ceil(L/100*d.length)-1);return Math.max(1,G-F+1)},[d.length,u,p]),y=et.useMemo(()=>s7(n,g),[n,g]),_=et.useMemo(()=>u7(n,g),[n,g]),S=et.useMemo(()=>{const N=new Set;for(const L of e){const F=a==="model"?L.by_model:L.by_family||{};for(const G of Object.keys(F))N.add(G)}return[...N]},[e,a]),x=et.useMemo(()=>S.map(N=>({name:N,values:e.map(L=>{const G=(a==="model"?L.by_model:L.by_family||{})[N];return G?r==="elapsed_seconds"?G.elapsed_seconds||0:r==="cost"?G.cost||0:G.tokens||0:0})})),[S,e,a,r]),M=et.useMemo(()=>e.map((N,L)=>{let F=0;for(const G of x)F+=G.values[L]||0;return F}),[e,x]),C=et.useMemo(()=>Math.max(...M,0),[M]),T=i==="relative";let R=null;if(T){const N=x.map(F=>{const G=F.values.map((Y,Z)=>M[Z]>0?Y/M[Z]*100:0);for(let Y=1;Y<G.length;Y++)M[Y]===0&&(G[Y]=G[Y-1]);return G});let L=N[0].map(()=>0);R=N.map((F,G)=>{const Y=[...L];return L=L.map((Z,H)=>Z+F[H]),{values:F,prevStack:Y}})}const D=x.map((N,L)=>{const F=a==="model"?ri(N.name):Hs(N.name);let G;if(T){const Y=R[L];G=Y.values,X_(F);let Z=0,H=0;for(let U=0;U<G.length;U++)G[U]>H&&(H=G[U],Z=U);return H>=8&&Y.prevStack[Z]+G[Z]/2,{name:N.name,type:"line",stack:"total",smooth:.2,areaStyle:{opacity:1},lineStyle:{width:0},symbol:"none",data:G,itemStyle:{color:F}}}return G=N.values,{name:N.name,type:"bar",stack:"total",data:G,itemStyle:{color:F},barWidth:_,barMaxWidth:y,barMinWidth:Math.min(10,y)}}),E=et.useMemo(()=>!T||!R?[]:R.map((N,L)=>{const F=x[L],G=a==="model"?ri(F.name):Hs(F.name),Y=X_(G),Z=f7(N.values,N.prevStack);return!Z||Math.max(...N.values)<8?null:{name:F.name,labelColor:Y,coord:Z}}).filter(Boolean),[T,R,x,a]),z=et.useCallback(()=>{if(!c.current)return;const N=c.current.getEchartsInstance();if(!T||E.length===0){N.setOption({graphic:{elements:[]}},{notMerge:!1});return}const L=E.map(F=>{const[G,Y]=N.convertToPixel({xAxisIndex:0,yAxisIndex:0},F.coord);return{type:"text",left:G,top:Y,style:{text:F.name,fill:F.labelColor,fontSize:10,fontWeight:500,textAlign:"center",textVerticalAlign:"middle"},z:10,silent:!0}});N.setOption({graphic:{elements:L}},{notMerge:!1})},[T,E]);et.useEffect(()=>{const N=setTimeout(z,150);return()=>clearTimeout(N)},[T,E,z]),et.useEffect(()=>{const N=()=>z();return window.addEventListener("resize",N),()=>window.removeEventListener("resize",N)},[z]);const I={backgroundColor:"transparent",tooltip:{trigger:"axis",axisPointer:{type:T?"line":"shadow"},appendToBody:!0,confine:!0,formatter:N=>{var X,U;const L=(X=N==null?void 0:N[0])==null?void 0:X.dataIndex,F=L!=null?M[L]:0;let G=L;if(i==="relative"&&F===0&&L!=null){for(let W=L-1;W>=0;W--)if(M[W]>0){G=W;break}}const Y=i==="relative"&&F===0?M[G]??0:F;let Z=`<b>${N[0].axisValue}</b><br/>`;const H=[...N].filter(W=>W.seriesName!=="__day_click_overlay__"&&W.value>0).sort((W,it)=>(it.value||0)-(W.value||0));for(const W of H){const it=i==="relative"?((U=x.find(k=>k.name===W.seriesName))==null?void 0:U.values[G])??0:W.value;i==="relative"?Z+=`${W.marker} ${W.seriesName}: ${W.value.toFixed(1)}% (${v.fn(it)})<br/>`:Z+=`${W.marker} ${W.seriesName}: ${v.fn(W.value)}<br/>`}return Z+=i==="relative"?`<b>Total: 100% (${v.fn(Y)})</b>`:`<b>Total: ${v.fn(F)}</b>`,Z}},legend:{data:S,textStyle:{color:"#8b949e",fontSize:10},top:0,itemWidth:10,itemHeight:10},grid:{left:70,right:20,top:35,bottom:55},dataZoom:[{type:"slider",start:u.start,end:u.end,borderColor:"#30363d",fillerColor:"rgba(99, 102, 241, 0.08)",handleStyle:{color:"#6366f1"},textStyle:{color:"#484f58"}}],xAxis:{type:"category",data:d,axisLabel:{color:"#484f58",fontSize:10,rotate:45},axisTick:{show:!1},axisLine:{lineStyle:{color:"#30363d"}}},yAxis:{type:"value",min:i==="relative"?0:void 0,max:i==="relative"?100:void 0,axisLabel:{formatter:i==="relative"?N=>N+"%":N=>v.fn(N),color:"#484f58"},splitLine:{lineStyle:{color:"#21262d"}}},series:[...D,{name:"__day_click_overlay__",type:"bar",data:M.map(()=>i==="relative"?100:C),barWidth:"96%",barGap:"-100%",itemStyle:{color:"rgba(0,0,0,0)"},emphasis:{disabled:!0},tooltip:{show:!1},z:100,animation:!1}],...Mp};return B.jsxs("div",{className:"chart-card",children:[B.jsx("button",{className:"export-btn",onClick:()=>o7(c),children:"PNG"}),B.jsx(Tn,{ref:c,echarts:Rn,option:I,style:{height:400},theme:"dark",notMerge:!1,replaceMerge:["series","legend","graphic"],lazyUpdate:!0,onChartReady:z,onEvents:{click:N=>{const L=(N==null?void 0:N.axisValue)||(N==null?void 0:N.name);L&&o(L)},datazoom:()=>{var F,G,Y;const N=(F=c.current)==null?void 0:F.getEchartsInstance(),L=(Y=(G=N==null?void 0:N.getOption())==null?void 0:G.dataZoom)==null?void 0:Y[0];L&&f({start:typeof L.start=="number"?L.start:p,end:typeof L.end=="number"?L.end:100}),requestAnimationFrame(()=>z())}}})]})});function d7({data:t,range:e="total",chartMode:n="default"}){var y;const[r,a]=et.useState("tokens"),[i,o]=et.useState("model"),[u,f]=et.useState("absolute"),[c,d]=et.useState(null);if(!((y=t==null?void 0:t.data)!=null&&y.length))return B.jsx("div",{style:{color:"var(--text-muted)",padding:"2rem"},children:"No data"});const v=t.data;et.useEffect(()=>{var _,S;!c&&v[0]&&d(((_=v[v.length-1])==null?void 0:_.date)||((S=v[0])==null?void 0:S.date))},[v,c]);const p=et.useCallback(_=>{_&&d(_)},[]),g=v.find(_=>_.date===c)||null;return B.jsxs("div",{className:"animate-in",children:[B.jsxs("div",{className:"section-header",children:[B.jsx("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem"},children:B.jsx("span",{className:"section-title",children:"Daily Usage"})}),B.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[B.jsx("div",{className:"btn-group",children:lz.map(_=>B.jsx("button",{className:`btn ${r===_.key?"active":""}`,onClick:()=>a(_.key),children:_.label},_.key))}),B.jsx("div",{className:"btn-group",children:a7.map(_=>B.jsx("button",{className:`btn ${i===_.key?"active":""}`,onClick:()=>o(_.key),children:_.label},_.key))}),B.jsx("div",{className:"btn-group",children:i7.map(_=>B.jsx("button",{className:`btn ${u===_.key?"active":""}`,onClick:()=>f(_.key),children:_.label},_.key))})]})]}),B.jsx(h7,{daily:v,range:e,metric:r,split:i,displayMode:u,onSelectDate:p}),g&&B.jsxs("div",{className:"chart-card",children:[B.jsxs("div",{className:"chart-title",style:{marginBottom:"0.75rem"},children:["Day detail: ",g.date]}),B.jsx(c7,{day:g,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 v7(){return{accessor:(t,e)=>typeof t=="function"?{...e,accessorFn:t}:{...e,accessorKey:t},display:t=>t,group:t=>t}}function Wi(t,e){return typeof t=="function"?t(e):t}function cr(t,e){return n=>{e.setState(r=>({...r,[t]:Wi(n,r[t])}))}}function Ap(t){return t instanceof Function}function p7(t){return Array.isArray(t)&&t.every(e=>typeof e=="number")}function g7(t,e){const n=[],r=a=>{a.forEach(i=>{n.push(i);const o=e(i);o!=null&&o.length&&r(o)})};return r(t),n}function Ct(t,e,n){let r=[],a;return i=>{let o;n.key&&n.debug&&(o=Date.now());const u=t(i);if(!(u.length!==r.length||u.some((d,v)=>r[v]!==d)))return a;r=u;let c;if(n.key&&n.debug&&(c=Date.now()),a=e(...u),n==null||n.onChange==null||n.onChange(a),n.key&&n.debug&&n!=null&&n.debug()){const d=Math.round((Date.now()-o)*100)/100,v=Math.round((Date.now()-c)*100)/100,p=v/16,g=(y,_)=>{for(y=String(y);y.length<_;)y=" "+y;return y};console.info(`%c⏱ ${g(v,5)} /${g(d,5)} ms`,`
|
|
99
|
+
font-size: .6rem;
|
|
100
|
+
font-weight: bold;
|
|
101
|
+
color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,n==null?void 0:n.key)}return a}}function Tt(t,e,n,r){return{debug:()=>{var a;return(a=t==null?void 0:t.debugAll)!=null?a:t[e]},key:!1,onChange:r}}function m7(t,e,n,r){const a=()=>{var o;return(o=i.getValue())!=null?o:t.options.renderFallbackValue},i={id:`${e.id}_${n.id}`,row:e,column:n,getValue:()=>e.getValue(r),renderValue:a,getContext:Ct(()=>[t,n,e,i],(o,u,f,c)=>({table:o,column:u,row:f,cell:c,getValue:c.getValue,renderValue:c.renderValue}),Tt(t.options,"debugCells"))};return t._features.forEach(o=>{o.createCell==null||o.createCell(i,n,e,t)},{}),i}function y7(t,e,n,r){var a,i;const u={...t._getDefaultColumnDef(),...e},f=u.accessorKey;let c=(a=(i=u.id)!=null?i:f?typeof String.prototype.replaceAll=="function"?f.replaceAll(".","_"):f.replace(/\./g,"_"):void 0)!=null?a:typeof u.header=="string"?u.header:void 0,d;if(u.accessorFn?d=u.accessorFn:f&&(f.includes(".")?d=p=>{let g=p;for(const _ of f.split(".")){var y;g=(y=g)==null?void 0:y[_]}return g}:d=p=>p[u.accessorKey]),!c)throw new Error;let v={id:`${String(c)}`,accessorFn:d,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:Ct(()=>[!0],()=>{var p;return[v,...(p=v.columns)==null?void 0:p.flatMap(g=>g.getFlatColumns())]},Tt(t.options,"debugColumns")),getLeafColumns:Ct(()=>[t._getOrderColumnsFn()],p=>{var g;if((g=v.columns)!=null&&g.length){let y=v.columns.flatMap(_=>_.getLeafColumns());return p(y)}return[v]},Tt(t.options,"debugColumns"))};for(const p of t._features)p.createColumn==null||p.createColumn(v,t);return v}const dn="debugHeaders";function b2(t,e,n){var r;let i={id:(r=n.id)!=null?r:e.id,column:e,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],u=f=>{f.subHeaders&&f.subHeaders.length&&f.subHeaders.map(u),o.push(f)};return u(i),o},getContext:()=>({table:t,header:i,column:e})};return t._features.forEach(o=>{o.createHeader==null||o.createHeader(i,t)}),i}const _7={createTable:t=>{t.getHeaderGroups=Ct(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r,a)=>{var i,o;const u=(i=r==null?void 0:r.map(v=>n.find(p=>p.id===v)).filter(Boolean))!=null?i:[],f=(o=a==null?void 0:a.map(v=>n.find(p=>p.id===v)).filter(Boolean))!=null?o:[],c=n.filter(v=>!(r!=null&&r.includes(v.id))&&!(a!=null&&a.includes(v.id)));return Td(e,[...u,...c,...f],t)},Tt(t.options,dn)),t.getCenterHeaderGroups=Ct(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r,a)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(a!=null&&a.includes(i.id))),Td(e,n,t,"center")),Tt(t.options,dn)),t.getLeftHeaderGroups=Ct(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left],(e,n,r)=>{var a;const i=(a=r==null?void 0:r.map(o=>n.find(u=>u.id===o)).filter(Boolean))!=null?a:[];return Td(e,i,t,"left")},Tt(t.options,dn)),t.getRightHeaderGroups=Ct(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.right],(e,n,r)=>{var a;const i=(a=r==null?void 0:r.map(o=>n.find(u=>u.id===o)).filter(Boolean))!=null?a:[];return Td(e,i,t,"right")},Tt(t.options,dn)),t.getFooterGroups=Ct(()=>[t.getHeaderGroups()],e=>[...e].reverse(),Tt(t.options,dn)),t.getLeftFooterGroups=Ct(()=>[t.getLeftHeaderGroups()],e=>[...e].reverse(),Tt(t.options,dn)),t.getCenterFooterGroups=Ct(()=>[t.getCenterHeaderGroups()],e=>[...e].reverse(),Tt(t.options,dn)),t.getRightFooterGroups=Ct(()=>[t.getRightHeaderGroups()],e=>[...e].reverse(),Tt(t.options,dn)),t.getFlatHeaders=Ct(()=>[t.getHeaderGroups()],e=>e.map(n=>n.headers).flat(),Tt(t.options,dn)),t.getLeftFlatHeaders=Ct(()=>[t.getLeftHeaderGroups()],e=>e.map(n=>n.headers).flat(),Tt(t.options,dn)),t.getCenterFlatHeaders=Ct(()=>[t.getCenterHeaderGroups()],e=>e.map(n=>n.headers).flat(),Tt(t.options,dn)),t.getRightFlatHeaders=Ct(()=>[t.getRightHeaderGroups()],e=>e.map(n=>n.headers).flat(),Tt(t.options,dn)),t.getCenterLeafHeaders=Ct(()=>[t.getCenterFlatHeaders()],e=>e.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Tt(t.options,dn)),t.getLeftLeafHeaders=Ct(()=>[t.getLeftFlatHeaders()],e=>e.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Tt(t.options,dn)),t.getRightLeafHeaders=Ct(()=>[t.getRightFlatHeaders()],e=>e.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Tt(t.options,dn)),t.getLeafHeaders=Ct(()=>[t.getLeftHeaderGroups(),t.getCenterHeaderGroups(),t.getRightHeaderGroups()],(e,n,r)=>{var a,i,o,u,f,c;return[...(a=(i=e[0])==null?void 0:i.headers)!=null?a:[],...(o=(u=n[0])==null?void 0:u.headers)!=null?o:[],...(f=(c=r[0])==null?void 0:c.headers)!=null?f:[]].map(d=>d.getLeafHeaders()).flat()},Tt(t.options,dn))}};function Td(t,e,n,r){var a,i;let o=0;const u=function(p,g){g===void 0&&(g=1),o=Math.max(o,g),p.filter(y=>y.getIsVisible()).forEach(y=>{var _;(_=y.columns)!=null&&_.length&&u(y.columns,g+1)},0)};u(t);let f=[];const c=(p,g)=>{const y={depth:g,id:[r,`${g}`].filter(Boolean).join("_"),headers:[]},_=[];p.forEach(S=>{const x=[..._].reverse()[0],M=S.column.depth===y.depth;let C,T=!1;if(M&&S.column.parent?C=S.column.parent:(C=S.column,T=!0),x&&(x==null?void 0:x.column)===C)x.subHeaders.push(S);else{const R=b2(n,C,{id:[r,g,C.id,S==null?void 0:S.id].filter(Boolean).join("_"),isPlaceholder:T,placeholderId:T?`${_.filter(D=>D.column===C).length}`:void 0,depth:g,index:_.length});R.subHeaders.push(S),_.push(R)}y.headers.push(S),S.headerGroup=y}),f.push(y),g>0&&c(_,g-1)},d=e.map((p,g)=>b2(n,p,{depth:o,index:g}));c(d,o-1),f.reverse();const v=p=>p.filter(y=>y.column.getIsVisible()).map(y=>{let _=0,S=0,x=[0];y.subHeaders&&y.subHeaders.length?(x=[],v(y.subHeaders).forEach(C=>{let{colSpan:T,rowSpan:R}=C;_+=T,x.push(R)})):_=1;const M=Math.min(...x);return S=S+M,y.colSpan=_,y.rowSpan=S,{colSpan:_,rowSpan:S}});return v((a=(i=f[0])==null?void 0:i.headers)!=null?a:[]),f}const S7=(t,e,n,r,a,i,o)=>{let u={id:e,index:r,original:n,depth:a,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:f=>{if(u._valuesCache.hasOwnProperty(f))return u._valuesCache[f];const c=t.getColumn(f);if(c!=null&&c.accessorFn)return u._valuesCache[f]=c.accessorFn(u.original,r),u._valuesCache[f]},getUniqueValues:f=>{if(u._uniqueValuesCache.hasOwnProperty(f))return u._uniqueValuesCache[f];const c=t.getColumn(f);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(u._uniqueValuesCache[f]=c.columnDef.getUniqueValues(u.original,r),u._uniqueValuesCache[f]):(u._uniqueValuesCache[f]=[u.getValue(f)],u._uniqueValuesCache[f])},renderValue:f=>{var c;return(c=u.getValue(f))!=null?c:t.options.renderFallbackValue},subRows:[],getLeafRows:()=>g7(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=>m7(t,u,c,c.id)),Tt(t.options,"debugRows")),_getAllCellsByColumnId:Ct(()=>[u.getAllCells()],f=>f.reduce((c,d)=>(c[d.column.id]=d,c),{}),Tt(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},b7={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()}}},sz=(t,e,n)=>{var r,a;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((a=t.getValue(e))==null||(a=a.toString())==null||(a=a.toLowerCase())==null)&&a.includes(i))};sz.autoRemove=t=>Kr(t);const uz=(t,e,n)=>{var r;return!!(!((r=t.getValue(e))==null||(r=r.toString())==null)&&r.includes(n))};uz.autoRemove=t=>Kr(t);const fz=(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())};fz.autoRemove=t=>Kr(t);const cz=(t,e,n)=>{var r;return(r=t.getValue(e))==null?void 0:r.includes(n)};cz.autoRemove=t=>Kr(t);const hz=(t,e,n)=>!n.some(r=>{var a;return!((a=t.getValue(e))!=null&&a.includes(r))});hz.autoRemove=t=>Kr(t)||!(t!=null&&t.length);const dz=(t,e,n)=>n.some(r=>{var a;return(a=t.getValue(e))==null?void 0:a.includes(r)});dz.autoRemove=t=>Kr(t)||!(t!=null&&t.length);const vz=(t,e,n)=>t.getValue(e)===n;vz.autoRemove=t=>Kr(t);const pz=(t,e,n)=>t.getValue(e)==n;pz.autoRemove=t=>Kr(t);const E1=(t,e,n)=>{let[r,a]=n;const i=t.getValue(e);return i>=r&&i<=a};E1.resolveFilterValue=t=>{let[e,n]=t,r=typeof e!="number"?parseFloat(e):e,a=typeof n!="number"?parseFloat(n):n,i=e===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(a)?1/0:a;if(i>o){const u=i;i=o,o=u}return[i,o]};E1.autoRemove=t=>Kr(t)||Kr(t[0])&&Kr(t[1]);const Za={includesString:sz,includesStringSensitive:uz,equalsString:fz,arrIncludes:cz,arrIncludesAll:hz,arrIncludesSome:dz,equals:vz,weakEquals:pz,inNumberRange:E1};function Kr(t){return t==null||t===""}const x7={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:t=>({columnFilters:[],...t}),getDefaultOptions:t=>({onColumnFiltersChange:cr("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"?Za.includesString:typeof r=="number"?Za.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Za.equals:Array.isArray(r)?Za.arrIncludes:Za.weakEquals},t.getFilterFn=()=>{var n,r;return Ap(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:Za[t.columnDef.filterFn]},t.getCanFilter=()=>{var n,r,a;return((n=t.columnDef.enableColumnFilter)!=null?n:!0)&&((r=e.options.enableColumnFilters)!=null?r:!0)&&((a=e.options.enableFilters)!=null?a:!0)&&!!t.accessorFn},t.getIsFiltered=()=>t.getFilterIndex()>-1,t.getFilterValue=()=>{var n;return(n=e.getState().columnFilters)==null||(n=n.find(r=>r.id===t.id))==null?void 0:n.value},t.getFilterIndex=()=>{var n,r;return(n=(r=e.getState().columnFilters)==null?void 0:r.findIndex(a=>a.id===t.id))!=null?n:-1},t.setFilterValue=n=>{e.setColumnFilters(r=>{const a=t.getFilterFn(),i=r==null?void 0:r.find(d=>d.id===t.id),o=Wi(n,i?i.value:void 0);if(x2(a,o,t)){var u;return(u=r==null?void 0:r.filter(d=>d.id!==t.id))!=null?u:[]}const f={id:t.id,value:o};if(i){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=a=>{var i;return(i=Wi(e,a))==null?void 0:i.filter(o=>{const u=n.find(f=>f.id===o.id);if(u){const f=u.getFilterFn();if(x2(f,o.value,u))return!1}return!0})};t.options.onColumnFiltersChange==null||t.options.onColumnFiltersChange(r)},t.resetColumnFilters=e=>{var n,r;t.setColumnFilters(e?[]:(n=(r=t.initialState)==null?void 0:r.columnFilters)!=null?n:[])},t.getPreFilteredRowModel=()=>t.getCoreRowModel(),t.getFilteredRowModel=()=>(!t._getFilteredRowModel&&t.options.getFilteredRowModel&&(t._getFilteredRowModel=t.options.getFilteredRowModel(t)),t.options.manualFiltering||!t._getFilteredRowModel?t.getPreFilteredRowModel():t._getFilteredRowModel())}};function x2(t,e,n){return(t&&t.autoRemove?t.autoRemove(e,n):!1)||typeof e>"u"||typeof e=="string"&&!e}const w7=(t,e,n)=>n.reduce((r,a)=>{const i=a.getValue(t);return r+(typeof i=="number"?i:0)},0),M7=(t,e,n)=>{let r;return n.forEach(a=>{const i=a.getValue(t);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},C7=(t,e,n)=>{let r;return n.forEach(a=>{const i=a.getValue(t);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},T7=(t,e,n)=>{let r,a;return n.forEach(i=>{const o=i.getValue(t);o!=null&&(r===void 0?o>=o&&(r=a=o):(r>o&&(r=o),a<o&&(a=o)))}),[r,a]},A7=(t,e)=>{let n=0,r=0;if(e.forEach(a=>{let i=a.getValue(t);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},D7=(t,e)=>{if(!e.length)return;const n=e.map(i=>i.getValue(t));if(!p7(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),a=n.sort((i,o)=>i-o);return n.length%2!==0?a[r]:(a[r-1]+a[r])/2},R7=(t,e)=>Array.from(new Set(e.map(n=>n.getValue(t))).values()),E7=(t,e)=>new Set(e.map(n=>n.getValue(t))).size,L7=(t,e)=>e.length,Dy={sum:w7,min:M7,max:C7,extent:T7,mean:A7,median:D7,unique:R7,uniqueCount:E7,count:L7},O7={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:cr("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 Dy.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Dy.extent},t.getAggregationFn=()=>{var n,r;if(!t)throw new Error;return Ap(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:Dy[t.columnDef.aggregationFn]}},createTable:t=>{t.setGrouping=e=>t.options.onGroupingChange==null?void 0:t.options.onGroupingChange(e),t.resetGrouping=e=>{var n,r;t.setGrouping(e?[]:(n=(r=t.initialState)==null?void 0:r.grouping)!=null?n:[])},t.getPreGroupedRowModel=()=>t.getFilteredRowModel(),t.getGroupedRowModel=()=>(!t._getGroupedRowModel&&t.options.getGroupedRowModel&&(t._getGroupedRowModel=t.options.getGroupedRowModel(t)),t.options.manualGrouping||!t._getGroupedRowModel?t.getPreGroupedRowModel():t._getGroupedRowModel())},createRow:(t,e)=>{t.getIsGrouped=()=>!!t.groupingColumnId,t.getGroupingValue=n=>{if(t._groupingValuesCache.hasOwnProperty(n))return t._groupingValuesCache[n];const r=e.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(t._groupingValuesCache[n]=r.columnDef.getGroupingValue(t.original),t._groupingValuesCache[n]):t.getValue(n)},t._groupingValuesCache={}},createCell:(t,e,n,r)=>{t.getIsGrouped=()=>e.getIsGrouped()&&e.id===n.groupingColumnId,t.getIsPlaceholder=()=>!t.getIsGrouped()&&e.getIsGrouped(),t.getIsAggregated=()=>{var a;return!t.getIsGrouped()&&!t.getIsPlaceholder()&&!!((a=n.subRows)!=null&&a.length)}}};function z7(t,e,n){if(!(e!=null&&e.length)||!n)return t;const r=t.filter(i=>!e.includes(i.id));return n==="remove"?r:[...e.map(i=>t.find(o=>o.id===i)).filter(Boolean),...r]}const N7={getInitialState:t=>({columnOrder:[],...t}),getDefaultOptions:t=>({onColumnOrderChange:cr("columnOrder",t)}),createColumn:(t,e)=>{t.getIndex=Ct(n=>[Pf(e,n)],n=>n.findIndex(r=>r.id===t.id),Tt(e.options,"debugColumns")),t.getIsFirstColumn=n=>{var r;return((r=Pf(e,n)[0])==null?void 0:r.id)===t.id},t.getIsLastColumn=n=>{var r;const a=Pf(e,n);return((r=a[a.length-1])==null?void 0:r.id)===t.id}},createTable:t=>{t.setColumnOrder=e=>t.options.onColumnOrderChange==null?void 0:t.options.onColumnOrderChange(e),t.resetColumnOrder=e=>{var n;t.setColumnOrder(e?[]:(n=t.initialState.columnOrder)!=null?n:[])},t._getOrderColumnsFn=Ct(()=>[t.getState().columnOrder,t.getState().grouping,t.options.groupedColumnMode],(e,n,r)=>a=>{let i=[];if(!(e!=null&&e.length))i=a;else{const o=[...e],u=[...a];for(;u.length&&o.length;){const f=o.shift(),c=u.findIndex(d=>d.id===f);c>-1&&i.push(u.splice(c,1)[0])}i=[...i,...u]}return z7(i,n,r)},Tt(t.options,"debugTable"))}},Ry=()=>({left:[],right:[]}),I7={getInitialState:t=>({columnPinning:Ry(),...t}),getDefaultOptions:t=>({onColumnPinningChange:cr("columnPinning",t)}),createColumn:(t,e)=>{t.pin=n=>{const r=t.getLeafColumns().map(a=>a.id).filter(Boolean);e.setColumnPinning(a=>{var i,o;if(n==="right"){var u,f;return{left:((u=a==null?void 0:a.left)!=null?u:[]).filter(v=>!(r!=null&&r.includes(v))),right:[...((f=a==null?void 0:a.right)!=null?f:[]).filter(v=>!(r!=null&&r.includes(v))),...r]}}if(n==="left"){var c,d;return{left:[...((c=a==null?void 0:a.left)!=null?c:[]).filter(v=>!(r!=null&&r.includes(v))),...r],right:((d=a==null?void 0:a.right)!=null?d:[]).filter(v=>!(r!=null&&r.includes(v)))}}return{left:((i=a==null?void 0:a.left)!=null?i:[]).filter(v=>!(r!=null&&r.includes(v))),right:((o=a==null?void 0:a.right)!=null?o:[]).filter(v=>!(r!=null&&r.includes(v)))}})},t.getCanPin=()=>t.getLeafColumns().some(r=>{var a,i,o;return((a=r.columnDef.enablePinning)!=null?a:!0)&&((i=(o=e.options.enableColumnPinning)!=null?o:e.options.enablePinning)!=null?i:!0)}),t.getIsPinned=()=>{const n=t.getLeafColumns().map(u=>u.id),{left:r,right:a}=e.getState().columnPinning,i=n.some(u=>r==null?void 0:r.includes(u)),o=n.some(u=>a==null?void 0:a.includes(u));return i?"left":o?"right":!1},t.getPinnedIndex=()=>{var n,r;const a=t.getIsPinned();return a?(n=(r=e.getState().columnPinning)==null||(r=r[a])==null?void 0:r.indexOf(t.id))!=null?n:-1:0}},createRow:(t,e)=>{t.getCenterVisibleCells=Ct(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,r,a)=>{const i=[...r??[],...a??[]];return n.filter(o=>!i.includes(o.column.id))},Tt(e.options,"debugRows")),t.getLeftVisibleCells=Ct(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(o=>o.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),Tt(e.options,"debugRows")),t.getRightVisibleCells=Ct(()=>[t._getAllVisibleCells(),e.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(o=>o.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),Tt(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?Ry():(n=(r=t.initialState)==null?void 0:r.columnPinning)!=null?n:Ry())},t.getIsSomeColumnsPinned=e=>{var n;const r=t.getState().columnPinning;if(!e){var a,i;return!!((a=r.left)!=null&&a.length||(i=r.right)!=null&&i.length)}return!!((n=r[e])!=null&&n.length)},t.getLeftLeafColumns=Ct(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left],(e,n)=>(n??[]).map(r=>e.find(a=>a.id===r)).filter(Boolean),Tt(t.options,"debugColumns")),t.getRightLeafColumns=Ct(()=>[t.getAllLeafColumns(),t.getState().columnPinning.right],(e,n)=>(n??[]).map(r=>e.find(a=>a.id===r)).filter(Boolean),Tt(t.options,"debugColumns")),t.getCenterLeafColumns=Ct(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r)=>{const a=[...n??[],...r??[]];return e.filter(i=>!a.includes(i.id))},Tt(t.options,"debugColumns"))}};function B7(t){return t||(typeof document<"u"?document:null)}const Ad={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Ey=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),k7={getDefaultColumnDef:()=>Ad,getInitialState:t=>({columnSizing:{},columnSizingInfo:Ey(),...t}),getDefaultOptions:t=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:cr("columnSizing",t),onColumnSizingInfoChange:cr("columnSizingInfo",t)}),createColumn:(t,e)=>{t.getSize=()=>{var n,r,a;const i=e.getState().columnSizing[t.id];return Math.min(Math.max((n=t.columnDef.minSize)!=null?n:Ad.minSize,(r=i??t.columnDef.size)!=null?r:Ad.size),(a=t.columnDef.maxSize)!=null?a:Ad.maxSize)},t.getStart=Ct(n=>[n,Pf(e,n),e.getState().columnSizing],(n,r)=>r.slice(0,t.getIndex(n)).reduce((a,i)=>a+i.getSize(),0),Tt(e.options,"debugColumns")),t.getAfter=Ct(n=>[n,Pf(e,n),e.getState().columnSizing],(n,r)=>r.slice(t.getIndex(n)+1).reduce((a,i)=>a+i.getSize(),0),Tt(e.options,"debugColumns")),t.resetSize=()=>{e.setColumnSizing(n=>{let{[t.id]:r,...a}=n;return a})},t.getCanResize=()=>{var n,r;return((n=t.columnDef.enableResizing)!=null?n:!0)&&((r=e.options.enableColumnResizing)!=null?r:!0)},t.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===t.id},createHeader:(t,e)=>{t.getSize=()=>{let n=0;const r=a=>{if(a.subHeaders.length)a.subHeaders.forEach(r);else{var i;n+=(i=a.column.getSize())!=null?i:0}};return r(t),n},t.getStart=()=>{if(t.index>0){const n=t.headerGroup.headers[t.index-1];return n.getStart()+n.getSize()}return 0},t.getResizeHandler=n=>{const r=e.getColumn(t.column.id),a=r==null?void 0:r.getCanResize();return i=>{if(!r||!a||(i.persist==null||i.persist(),Ly(i)&&i.touches&&i.touches.length>1))return;const o=t.getSize(),u=t?t.getLeafHeaders().map(x=>[x.column.id,x.column.getSize()]):[[r.id,r.getSize()]],f=Ly(i)?Math.round(i.touches[0].clientX):i.clientX,c={},d=(x,M)=>{typeof M=="number"&&(e.setColumnSizingInfo(C=>{var T,R;const D=e.options.columnResizeDirection==="rtl"?-1:1,E=(M-((T=C==null?void 0:C.startOffset)!=null?T:0))*D,z=Math.max(E/((R=C==null?void 0:C.startSize)!=null?R:0),-.999999);return C.columnSizingStart.forEach(I=>{let[N,L]=I;c[N]=Math.round(Math.max(L+L*z,0)*100)/100}),{...C,deltaOffset:E,deltaPercentage:z}}),(e.options.columnResizeMode==="onChange"||x==="end")&&e.setColumnSizing(C=>({...C,...c})))},v=x=>d("move",x),p=x=>{d("end",x),e.setColumnSizingInfo(M=>({...M,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},g=B7(n),y={moveHandler:x=>v(x.clientX),upHandler:x=>{g==null||g.removeEventListener("mousemove",y.moveHandler),g==null||g.removeEventListener("mouseup",y.upHandler),p(x.clientX)}},_={moveHandler:x=>(x.cancelable&&(x.preventDefault(),x.stopPropagation()),v(x.touches[0].clientX),!1),upHandler:x=>{var M;g==null||g.removeEventListener("touchmove",_.moveHandler),g==null||g.removeEventListener("touchend",_.upHandler),x.cancelable&&(x.preventDefault(),x.stopPropagation()),p((M=x.touches[0])==null?void 0:M.clientX)}},S=P7()?{passive:!1}:!1;Ly(i)?(g==null||g.addEventListener("touchmove",_.moveHandler,S),g==null||g.addEventListener("touchend",_.upHandler,S)):(g==null||g.addEventListener("mousemove",y.moveHandler,S),g==null||g.addEventListener("mouseup",y.upHandler,S)),e.setColumnSizingInfo(x=>({...x,startOffset:f,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:u,isResizingColumn:r.id}))}}},createTable:t=>{t.setColumnSizing=e=>t.options.onColumnSizingChange==null?void 0:t.options.onColumnSizingChange(e),t.setColumnSizingInfo=e=>t.options.onColumnSizingInfoChange==null?void 0:t.options.onColumnSizingInfoChange(e),t.resetColumnSizing=e=>{var n;t.setColumnSizing(e?{}:(n=t.initialState.columnSizing)!=null?n:{})},t.resetHeaderSizeInfo=e=>{var n;t.setColumnSizingInfo(e?Ey():(n=t.initialState.columnSizingInfo)!=null?n:Ey())},t.getTotalSize=()=>{var e,n;return(e=(n=t.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?e:0},t.getLeftTotalSize=()=>{var e,n;return(e=(n=t.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?e:0},t.getCenterTotalSize=()=>{var e,n;return(e=(n=t.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?e:0},t.getRightTotalSize=()=>{var e,n;return(e=(n=t.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,a)=>r+a.getSize(),0))!=null?e:0}}};let Dd=null;function P7(){if(typeof Dd=="boolean")return Dd;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 Dd=t,Dd}function Ly(t){return t.type==="touchstart"}const H7={getInitialState:t=>({columnVisibility:{},...t}),getDefaultOptions:t=>({onColumnVisibilityChange:cr("columnVisibility",t)}),createColumn:(t,e)=>{t.toggleVisibility=n=>{t.getCanHide()&&e.setColumnVisibility(r=>({...r,[t.id]:n??!t.getIsVisible()}))},t.getIsVisible=()=>{var n,r;const a=t.columns;return(n=a.length?a.some(i=>i.getIsVisible()):(r=e.getState().columnVisibility)==null?void 0:r[t.id])!=null?n:!0},t.getCanHide=()=>{var n,r;return((n=t.columnDef.enableHiding)!=null?n:!0)&&((r=e.options.enableHiding)!=null?r:!0)},t.getToggleVisibilityHandler=()=>n=>{t.toggleVisibility==null||t.toggleVisibility(n.target.checked)}},createRow:(t,e)=>{t._getAllVisibleCells=Ct(()=>[t.getAllCells(),e.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),Tt(e.options,"debugRows")),t.getVisibleCells=Ct(()=>[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()],(n,r,a)=>[...n,...r,...a],Tt(e.options,"debugRows"))},createTable:t=>{const e=(n,r)=>Ct(()=>[r(),r().filter(a=>a.getIsVisible()).map(a=>a.id).join("_")],a=>a.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),Tt(t.options,"debugColumns"));t.getVisibleFlatColumns=e("getVisibleFlatColumns",()=>t.getAllFlatColumns()),t.getVisibleLeafColumns=e("getVisibleLeafColumns",()=>t.getAllLeafColumns()),t.getLeftVisibleLeafColumns=e("getLeftVisibleLeafColumns",()=>t.getLeftLeafColumns()),t.getRightVisibleLeafColumns=e("getRightVisibleLeafColumns",()=>t.getRightLeafColumns()),t.getCenterVisibleLeafColumns=e("getCenterVisibleLeafColumns",()=>t.getCenterLeafColumns()),t.setColumnVisibility=n=>t.options.onColumnVisibilityChange==null?void 0:t.options.onColumnVisibilityChange(n),t.resetColumnVisibility=n=>{var r;t.setColumnVisibility(n?{}:(r=t.initialState.columnVisibility)!=null?r:{})},t.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!t.getIsAllColumnsVisible(),t.setColumnVisibility(t.getAllLeafColumns().reduce((a,i)=>({...a,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},t.getIsAllColumnsVisible=()=>!t.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),t.getIsSomeColumnsVisible=()=>t.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),t.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;t.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Pf(t,e){return e?e==="center"?t.getCenterVisibleLeafColumns():e==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns()}const F7={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()}}},V7={getInitialState:t=>({globalFilter:void 0,...t}),getDefaultOptions:t=>({onGlobalFilterChange:cr("globalFilter",t),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var n;const r=(n=t.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[e.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(t,e)=>{t.getCanGlobalFilter=()=>{var n,r,a,i;return((n=t.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=e.options.enableGlobalFilter)!=null?r:!0)&&((a=e.options.enableFilters)!=null?a:!0)&&((i=e.options.getColumnCanGlobalFilter==null?void 0:e.options.getColumnCanGlobalFilter(t))!=null?i:!0)&&!!t.accessorFn}},createTable:t=>{t.getGlobalAutoFilterFn=()=>Za.includesString,t.getGlobalFilterFn=()=>{var e,n;const{globalFilterFn:r}=t.options;return Ap(r)?r:r==="auto"?t.getGlobalAutoFilterFn():(e=(n=t.options.filterFns)==null?void 0:n[r])!=null?e:Za[r]},t.setGlobalFilter=e=>{t.options.onGlobalFilterChange==null||t.options.onGlobalFilterChange(e)},t.resetGlobalFilter=e=>{t.setGlobalFilter(e?void 0:t.initialState.globalFilter)}}},G7={getInitialState:t=>({expanded:{},...t}),getDefaultOptions:t=>({onExpandedChange:cr("expanded",t),paginateExpandedRows:!0}),createTable:t=>{let e=!1,n=!1;t._autoResetExpanded=()=>{var r,a;if(!e){t._queue(()=>{e=!0});return}if((r=(a=t.options.autoResetAll)!=null?a:t.options.autoResetExpanded)!=null?r:!t.options.manualExpanding){if(n)return;n=!0,t._queue(()=>{t.resetExpanded(),n=!1})}},t.setExpanded=r=>t.options.onExpandedChange==null?void 0:t.options.onExpandedChange(r),t.toggleAllRowsExpanded=r=>{r??!t.getIsAllRowsExpanded()?t.setExpanded(!0):t.setExpanded({})},t.resetExpanded=r=>{var a,i;t.setExpanded(r?{}:(a=(i=t.initialState)==null?void 0:i.expanded)!=null?a:{})},t.getCanSomeRowsExpand=()=>t.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),t.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),t.toggleAllRowsExpanded()},t.getIsSomeRowsExpanded=()=>{const r=t.getState().expanded;return r===!0||Object.values(r).some(Boolean)},t.getIsAllRowsExpanded=()=>{const r=t.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||t.getRowModel().flatRows.some(a=>!a.getIsExpanded()))},t.getExpandedDepth=()=>{let r=0;return(t.getState().expanded===!0?Object.keys(t.getRowModel().rowsById):Object.keys(t.getState().expanded)).forEach(i=>{const o=i.split(".");r=Math.max(r,o.length)}),r},t.getPreExpandedRowModel=()=>t.getSortedRowModel(),t.getExpandedRowModel=()=>(!t._getExpandedRowModel&&t.options.getExpandedRowModel&&(t._getExpandedRowModel=t.options.getExpandedRowModel(t)),t.options.manualExpanding||!t._getExpandedRowModel?t.getPreExpandedRowModel():t._getExpandedRowModel())},createRow:(t,e)=>{t.toggleExpanded=n=>{e.setExpanded(r=>{var a;const i=r===!0?!0:!!(r!=null&&r[t.id]);let o={};if(r===!0?Object.keys(e.getRowModel().rowsById).forEach(u=>{o[u]=!0}):o=r,n=(a=n)!=null?a:!i,!i&&n)return{...o,[t.id]:!0};if(i&&!n){const{[t.id]:u,...f}=o;return f}return r})},t.getIsExpanded=()=>{var n;const r=e.getState().expanded;return!!((n=e.options.getIsRowExpanded==null?void 0:e.options.getIsRowExpanded(t))!=null?n:r===!0||r!=null&&r[t.id])},t.getCanExpand=()=>{var n,r,a;return(n=e.options.getRowCanExpand==null?void 0:e.options.getRowCanExpand(t))!=null?n:((r=e.options.enableExpanding)!=null?r:!0)&&!!((a=t.subRows)!=null&&a.length)},t.getIsAllParentsExpanded=()=>{let n=!0,r=t;for(;n&&r.parentId;)r=e.getRow(r.parentId,!0),n=r.getIsExpanded();return n},t.getToggleExpandedHandler=()=>{const n=t.getCanExpand();return()=>{n&&t.toggleExpanded()}}}},K_=0,J_=10,Oy=()=>({pageIndex:K_,pageSize:J_}),U7={getInitialState:t=>({...t,pagination:{...Oy(),...t==null?void 0:t.pagination}}),getDefaultOptions:t=>({onPaginationChange:cr("pagination",t)}),createTable:t=>{let e=!1,n=!1;t._autoResetPageIndex=()=>{var r,a;if(!e){t._queue(()=>{e=!0});return}if((r=(a=t.options.autoResetAll)!=null?a:t.options.autoResetPageIndex)!=null?r:!t.options.manualPagination){if(n)return;n=!0,t._queue(()=>{t.resetPageIndex(),n=!1})}},t.setPagination=r=>{const a=i=>Wi(r,i);return t.options.onPaginationChange==null?void 0:t.options.onPaginationChange(a)},t.resetPagination=r=>{var a;t.setPagination(r?Oy():(a=t.initialState.pagination)!=null?a:Oy())},t.setPageIndex=r=>{t.setPagination(a=>{let i=Wi(r,a.pageIndex);const o=typeof t.options.pageCount>"u"||t.options.pageCount===-1?Number.MAX_SAFE_INTEGER:t.options.pageCount-1;return i=Math.max(0,Math.min(i,o)),{...a,pageIndex:i}})},t.resetPageIndex=r=>{var a,i;t.setPageIndex(r?K_:(a=(i=t.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?a:K_)},t.resetPageSize=r=>{var a,i;t.setPageSize(r?J_:(a=(i=t.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?a:J_)},t.setPageSize=r=>{t.setPagination(a=>{const i=Math.max(1,Wi(r,a.pageSize)),o=a.pageSize*a.pageIndex,u=Math.floor(o/i);return{...a,pageIndex:u,pageSize:i}})},t.setPageCount=r=>t.setPagination(a=>{var i;let o=Wi(r,(i=t.options.pageCount)!=null?i:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...a,pageCount:o}}),t.getPageOptions=Ct(()=>[t.getPageCount()],r=>{let a=[];return r&&r>0&&(a=[...new Array(r)].fill(null).map((i,o)=>o)),a},Tt(t.options,"debugTable")),t.getCanPreviousPage=()=>t.getState().pagination.pageIndex>0,t.getCanNextPage=()=>{const{pageIndex:r}=t.getState().pagination,a=t.getPageCount();return a===-1?!0:a===0?!1:r<a-1},t.previousPage=()=>t.setPageIndex(r=>r-1),t.nextPage=()=>t.setPageIndex(r=>r+1),t.firstPage=()=>t.setPageIndex(0),t.lastPage=()=>t.setPageIndex(t.getPageCount()-1),t.getPrePaginationRowModel=()=>t.getExpandedRowModel(),t.getPaginationRowModel=()=>(!t._getPaginationRowModel&&t.options.getPaginationRowModel&&(t._getPaginationRowModel=t.options.getPaginationRowModel(t)),t.options.manualPagination||!t._getPaginationRowModel?t.getPrePaginationRowModel():t._getPaginationRowModel()),t.getPageCount=()=>{var r;return(r=t.options.pageCount)!=null?r:Math.ceil(t.getRowCount()/t.getState().pagination.pageSize)},t.getRowCount=()=>{var r;return(r=t.options.rowCount)!=null?r:t.getPrePaginationRowModel().rows.length}}},zy=()=>({top:[],bottom:[]}),j7={getInitialState:t=>({rowPinning:zy(),...t}),getDefaultOptions:t=>({onRowPinningChange:cr("rowPinning",t)}),createRow:(t,e)=>{t.pin=(n,r,a)=>{const i=r?t.getLeafRows().map(f=>{let{id:c}=f;return c}):[],o=a?t.getParentRows().map(f=>{let{id:c}=f;return c}):[],u=new Set([...o,t.id,...i]);e.setRowPinning(f=>{var c,d;if(n==="bottom"){var v,p;return{top:((v=f==null?void 0:f.top)!=null?v:[]).filter(_=>!(u!=null&&u.has(_))),bottom:[...((p=f==null?void 0:f.bottom)!=null?p:[]).filter(_=>!(u!=null&&u.has(_))),...Array.from(u)]}}if(n==="top"){var g,y;return{top:[...((g=f==null?void 0:f.top)!=null?g:[]).filter(_=>!(u!=null&&u.has(_))),...Array.from(u)],bottom:((y=f==null?void 0:f.bottom)!=null?y:[]).filter(_=>!(u!=null&&u.has(_)))}}return{top:((c=f==null?void 0:f.top)!=null?c:[]).filter(_=>!(u!=null&&u.has(_))),bottom:((d=f==null?void 0:f.bottom)!=null?d:[]).filter(_=>!(u!=null&&u.has(_)))}})},t.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:a}=e.options;return typeof r=="function"?r(t):(n=r??a)!=null?n:!0},t.getIsPinned=()=>{const n=[t.id],{top:r,bottom:a}=e.getState().rowPinning,i=n.some(u=>r==null?void 0:r.includes(u)),o=n.some(u=>a==null?void 0:a.includes(u));return i?"top":o?"bottom":!1},t.getPinnedIndex=()=>{var n,r;const a=t.getIsPinned();if(!a)return-1;const i=(n=a==="top"?e.getTopRows():e.getBottomRows())==null?void 0:n.map(o=>{let{id:u}=o;return u});return(r=i==null?void 0:i.indexOf(t.id))!=null?r:-1}},createTable:t=>{t.setRowPinning=e=>t.options.onRowPinningChange==null?void 0:t.options.onRowPinningChange(e),t.resetRowPinning=e=>{var n,r;return t.setRowPinning(e?zy():(n=(r=t.initialState)==null?void 0:r.rowPinning)!=null?n:zy())},t.getIsSomeRowsPinned=e=>{var n;const r=t.getState().rowPinning;if(!e){var a,i;return!!((a=r.top)!=null&&a.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[e])!=null&&n.length)},t._getPinnedRows=(e,n,r)=>{var a;return((a=t.options.keepPinnedRows)==null||a?(n??[]).map(o=>{const u=t.getRow(o,!0);return u.getIsAllParentsExpanded()?u:null}):(n??[]).map(o=>e.find(u=>u.id===o))).filter(Boolean).map(o=>({...o,position:r}))},t.getTopRows=Ct(()=>[t.getRowModel().rows,t.getState().rowPinning.top],(e,n)=>t._getPinnedRows(e,n,"top"),Tt(t.options,"debugRows")),t.getBottomRows=Ct(()=>[t.getRowModel().rows,t.getState().rowPinning.bottom],(e,n)=>t._getPinnedRows(e,n,"bottom"),Tt(t.options,"debugRows")),t.getCenterRows=Ct(()=>[t.getRowModel().rows,t.getState().rowPinning.top,t.getState().rowPinning.bottom],(e,n,r)=>{const a=new Set([...n??[],...r??[]]);return e.filter(i=>!a.has(i.id))},Tt(t.options,"debugRows"))}},Y7={getInitialState:t=>({rowSelection:{},...t}),getDefaultOptions:t=>({onRowSelectionChange:cr("rowSelection",t),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:t=>{t.setRowSelection=e=>t.options.onRowSelectionChange==null?void 0:t.options.onRowSelectionChange(e),t.resetRowSelection=e=>{var n;return t.setRowSelection(e?{}:(n=t.initialState.rowSelection)!=null?n:{})},t.toggleAllRowsSelected=e=>{t.setRowSelection(n=>{e=typeof e<"u"?e:!t.getIsAllRowsSelected();const r={...n},a=t.getPreGroupedRowModel().flatRows;return e?a.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):a.forEach(i=>{delete r[i.id]}),r})},t.toggleAllPageRowsSelected=e=>t.setRowSelection(n=>{const r=typeof e<"u"?e:!t.getIsAllPageRowsSelected(),a={...n};return t.getRowModel().rows.forEach(i=>{tS(a,i.id,r,!0,t)}),a}),t.getPreSelectedRowModel=()=>t.getCoreRowModel(),t.getSelectedRowModel=Ct(()=>[t.getState().rowSelection,t.getCoreRowModel()],(e,n)=>Object.keys(e).length?Ny(t,n):{rows:[],flatRows:[],rowsById:{}},Tt(t.options,"debugTable")),t.getFilteredSelectedRowModel=Ct(()=>[t.getState().rowSelection,t.getFilteredRowModel()],(e,n)=>Object.keys(e).length?Ny(t,n):{rows:[],flatRows:[],rowsById:{}},Tt(t.options,"debugTable")),t.getGroupedSelectedRowModel=Ct(()=>[t.getState().rowSelection,t.getSortedRowModel()],(e,n)=>Object.keys(e).length?Ny(t,n):{rows:[],flatRows:[],rowsById:{}},Tt(t.options,"debugTable")),t.getIsAllRowsSelected=()=>{const e=t.getFilteredRowModel().flatRows,{rowSelection:n}=t.getState();let r=!!(e.length&&Object.keys(n).length);return r&&e.some(a=>a.getCanSelect()&&!n[a.id])&&(r=!1),r},t.getIsAllPageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows.filter(a=>a.getCanSelect()),{rowSelection:n}=t.getState();let r=!!e.length;return r&&e.some(a=>!n[a.id])&&(r=!1),r},t.getIsSomeRowsSelected=()=>{var e;const n=Object.keys((e=t.getState().rowSelection)!=null?e:{}).length;return n>0&&n<t.getFilteredRowModel().flatRows.length},t.getIsSomePageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows;return t.getIsAllPageRowsSelected()?!1:e.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},t.getToggleAllRowsSelectedHandler=()=>e=>{t.toggleAllRowsSelected(e.target.checked)},t.getToggleAllPageRowsSelectedHandler=()=>e=>{t.toggleAllPageRowsSelected(e.target.checked)}},createRow:(t,e)=>{t.toggleSelected=(n,r)=>{const a=t.getIsSelected();e.setRowSelection(i=>{var o;if(n=typeof n<"u"?n:!a,t.getCanSelect()&&a===n)return i;const u={...i};return tS(u,t.id,n,(o=r==null?void 0:r.selectChildren)!=null?o:!0,e),u})},t.getIsSelected=()=>{const{rowSelection:n}=e.getState();return L1(t,n)},t.getIsSomeSelected=()=>{const{rowSelection:n}=e.getState();return eS(t,n)==="some"},t.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=e.getState();return eS(t,n)==="all"},t.getCanSelect=()=>{var n;return typeof e.options.enableRowSelection=="function"?e.options.enableRowSelection(t):(n=e.options.enableRowSelection)!=null?n:!0},t.getCanSelectSubRows=()=>{var n;return typeof e.options.enableSubRowSelection=="function"?e.options.enableSubRowSelection(t):(n=e.options.enableSubRowSelection)!=null?n:!0},t.getCanMultiSelect=()=>{var n;return typeof e.options.enableMultiRowSelection=="function"?e.options.enableMultiRowSelection(t):(n=e.options.enableMultiRowSelection)!=null?n:!0},t.getToggleSelectedHandler=()=>{const n=t.getCanSelect();return r=>{var a;n&&t.toggleSelected((a=r.target)==null?void 0:a.checked)}}}},tS=(t,e,n,r,a)=>{var i;const o=a.getRow(e,!0);n?(o.getCanMultiSelect()||Object.keys(t).forEach(u=>delete t[u]),o.getCanSelect()&&(t[e]=!0)):delete t[e],r&&(i=o.subRows)!=null&&i.length&&o.getCanSelectSubRows()&&o.subRows.forEach(u=>tS(t,u.id,n,r,a))};function Ny(t,e){const n=t.getState().rowSelection,r=[],a={},i=function(o,u){return o.map(f=>{var c;const d=L1(f,n);if(d&&(r.push(f),a[f.id]=f),(c=f.subRows)!=null&&c.length&&(f={...f,subRows:i(f.subRows)}),d)return f}).filter(Boolean)};return{rows:i(e.rows),flatRows:r,rowsById:a}}function L1(t,e){var n;return(n=e[t.id])!=null?n:!1}function eS(t,e,n){var r;if(!((r=t.subRows)!=null&&r.length))return!1;let a=!0,i=!1;return t.subRows.forEach(o=>{if(!(i&&!a)&&(o.getCanSelect()&&(L1(o,e)?i=!0:a=!1),o.subRows&&o.subRows.length)){const u=eS(o,e);u==="all"?i=!0:(u==="some"&&(i=!0),a=!1)}}),a?"all":i?"some":!1}const nS=/([0-9]+)/gm,q7=(t,e,n)=>gz(oo(t.getValue(n)).toLowerCase(),oo(e.getValue(n)).toLowerCase()),X7=(t,e,n)=>gz(oo(t.getValue(n)),oo(e.getValue(n))),Z7=(t,e,n)=>O1(oo(t.getValue(n)).toLowerCase(),oo(e.getValue(n)).toLowerCase()),$7=(t,e,n)=>O1(oo(t.getValue(n)),oo(e.getValue(n))),W7=(t,e,n)=>{const r=t.getValue(n),a=e.getValue(n);return r>a?1:r<a?-1:0},Q7=(t,e,n)=>O1(t.getValue(n),e.getValue(n));function O1(t,e){return t===e?0:t>e?1:-1}function oo(t){return typeof t=="number"?isNaN(t)||t===1/0||t===-1/0?"":String(t):typeof t=="string"?t:""}function gz(t,e){const n=t.split(nS).filter(Boolean),r=e.split(nS).filter(Boolean);for(;n.length&&r.length;){const a=n.shift(),i=r.shift(),o=parseInt(a,10),u=parseInt(i,10),f=[o,u].sort();if(isNaN(f[0])){if(a>i)return 1;if(i>a)return-1;continue}if(isNaN(f[1]))return isNaN(o)?-1:1;if(o>u)return 1;if(u>o)return-1}return n.length-r.length}const gf={alphanumeric:q7,alphanumericCaseSensitive:X7,text:Z7,textCaseSensitive:$7,datetime:W7,basic:Q7},K7={getInitialState:t=>({sorting:[],...t}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:t=>({onSortingChange:cr("sorting",t),isMultiSortEvent:e=>e.shiftKey}),createColumn:(t,e)=>{t.getAutoSortingFn=()=>{const n=e.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const a of n){const i=a==null?void 0:a.getValue(t.id);if(Object.prototype.toString.call(i)==="[object Date]")return gf.datetime;if(typeof i=="string"&&(r=!0,i.split(nS).length>1))return gf.alphanumeric}return r?gf.text:gf.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 Ap(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:gf[t.columnDef.sortingFn]},t.toggleSorting=(n,r)=>{const a=t.getNextSortingOrder(),i=typeof n<"u"&&n!==null;e.setSorting(o=>{const u=o==null?void 0:o.find(g=>g.id===t.id),f=o==null?void 0:o.findIndex(g=>g.id===t.id);let c=[],d,v=i?n:a==="desc";if(o!=null&&o.length&&t.getCanMultiSort()&&r?u?d="toggle":d="add":o!=null&&o.length&&f!==o.length-1?d="replace":u?d="toggle":d="replace",d==="toggle"&&(i||a||(d="remove")),d==="add"){var p;c=[...o,{id:t.id,desc:v}],c.splice(0,c.length-((p=e.options.maxMultiSortColCount)!=null?p:Number.MAX_SAFE_INTEGER))}else d==="toggle"?c=o.map(g=>g.id===t.id?{...g,desc:v}:g):d==="remove"?c=o.filter(g=>g.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,a;const i=t.getFirstSortDir(),o=t.getIsSorted();return o?o!==i&&((r=e.options.enableSortingRemoval)==null||r)&&(!(n&&(a=e.options.enableMultiRemove)!=null)||a)?!1:o==="desc"?"asc":"desc":i},t.getCanSort=()=>{var n,r;return((n=t.columnDef.enableSorting)!=null?n:!0)&&((r=e.options.enableSorting)!=null?r:!0)&&!!t.accessorFn},t.getCanMultiSort=()=>{var n,r;return(n=(r=t.columnDef.enableMultiSort)!=null?r:e.options.enableMultiSort)!=null?n:!!t.accessorFn},t.getIsSorted=()=>{var n;const r=(n=e.getState().sorting)==null?void 0:n.find(a=>a.id===t.id);return r?r.desc?"desc":"asc":!1},t.getSortIndex=()=>{var n,r;return(n=(r=e.getState().sorting)==null?void 0:r.findIndex(a=>a.id===t.id))!=null?n:-1},t.clearSorting=()=>{e.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==t.id):[])},t.getToggleSortingHandler=()=>{const n=t.getCanSort();return r=>{n&&(r.persist==null||r.persist(),t.toggleSorting==null||t.toggleSorting(void 0,t.getCanMultiSort()?e.options.isMultiSortEvent==null?void 0:e.options.isMultiSortEvent(r):!1))}}},createTable:t=>{t.setSorting=e=>t.options.onSortingChange==null?void 0:t.options.onSortingChange(e),t.resetSorting=e=>{var n,r;t.setSorting(e?[]:(n=(r=t.initialState)==null?void 0:r.sorting)!=null?n:[])},t.getPreSortedRowModel=()=>t.getGroupedRowModel(),t.getSortedRowModel=()=>(!t._getSortedRowModel&&t.options.getSortedRowModel&&(t._getSortedRowModel=t.options.getSortedRowModel(t)),t.options.manualSorting||!t._getSortedRowModel?t.getPreSortedRowModel():t._getSortedRowModel())}},J7=[_7,H7,N7,I7,b7,x7,F7,V7,K7,O7,G7,U7,j7,Y7,k7];function tj(t){var e,n;const r=[...J7,...(e=t._features)!=null?e:[]];let a={_features:r};const i=a._features.reduce((p,g)=>Object.assign(p,g.getDefaultOptions==null?void 0:g.getDefaultOptions(a)),{}),o=p=>a.options.mergeOptions?a.options.mergeOptions(i,p):{...i,...p};let f={...{},...(n=t.initialState)!=null?n:{}};a._features.forEach(p=>{var g;f=(g=p.getInitialState==null?void 0:p.getInitialState(f))!=null?g:f});const c=[];let d=!1;const v={_features:r,options:{...i,...t},initialState:f,_queue:p=>{c.push(p),d||(d=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();d=!1}).catch(g=>setTimeout(()=>{throw g})))},reset:()=>{a.setState(a.initialState)},setOptions:p=>{const g=Wi(p,a.options);a.options=o(g)},getState:()=>a.options.state,setState:p=>{a.options.onStateChange==null||a.options.onStateChange(p)},_getRowId:(p,g,y)=>{var _;return(_=a.options.getRowId==null?void 0:a.options.getRowId(p,g,y))!=null?_:`${y?[y.id,g].join("."):g}`},getCoreRowModel:()=>(a._getCoreRowModel||(a._getCoreRowModel=a.options.getCoreRowModel(a)),a._getCoreRowModel()),getRowModel:()=>a.getPaginationRowModel(),getRow:(p,g)=>{let y=(g?a.getPrePaginationRowModel():a.getRowModel()).rowsById[p];if(!y&&(y=a.getCoreRowModel().rowsById[p],!y))throw new Error;return y},_getDefaultColumnDef:Ct(()=>[a.options.defaultColumn],p=>{var g;return p=(g=p)!=null?g:{},{header:y=>{const _=y.header.column.columnDef;return _.accessorKey?_.accessorKey:_.accessorFn?_.id:null},cell:y=>{var _,S;return(_=(S=y.renderValue())==null||S.toString==null?void 0:S.toString())!=null?_:null},...a._features.reduce((y,_)=>Object.assign(y,_.getDefaultColumnDef==null?void 0:_.getDefaultColumnDef()),{}),...p}},Tt(t,"debugColumns")),_getColumnDefs:()=>a.options.columns,getAllColumns:Ct(()=>[a._getColumnDefs()],p=>{const g=function(y,_,S){return S===void 0&&(S=0),y.map(x=>{const M=y7(a,x,S,_),C=x;return M.columns=C.columns?g(C.columns,M,S+1):[],M})};return g(p)},Tt(t,"debugColumns")),getAllFlatColumns:Ct(()=>[a.getAllColumns()],p=>p.flatMap(g=>g.getFlatColumns()),Tt(t,"debugColumns")),_getAllFlatColumnsById:Ct(()=>[a.getAllFlatColumns()],p=>p.reduce((g,y)=>(g[y.id]=y,g),{}),Tt(t,"debugColumns")),getAllLeafColumns:Ct(()=>[a.getAllColumns(),a._getOrderColumnsFn()],(p,g)=>{let y=p.flatMap(_=>_.getLeafColumns());return g(y)},Tt(t,"debugColumns")),getColumn:p=>a._getAllFlatColumnsById()[p]};Object.assign(a,v);for(let p=0;p<a._features.length;p++){const g=a._features[p];g==null||g.createTable==null||g.createTable(a)}return a}function ej(){return t=>Ct(()=>[t.options.data],e=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(a,i,o){i===void 0&&(i=0);const u=[];for(let c=0;c<a.length;c++){const d=S7(t,t._getRowId(a[c],c,o),a[c],c,i,void 0,o==null?void 0:o.id);if(n.flatRows.push(d),n.rowsById[d.id]=d,u.push(d),t.options.getSubRows){var f;d.originalSubRows=t.options.getSubRows(a[c],c),(f=d.originalSubRows)!=null&&f.length&&(d.subRows=r(d.originalSubRows,i+1,d))}}return u};return n.rows=r(e),n},Tt(t.options,"debugTable","getRowModel",()=>t._autoResetPageIndex()))}function nj(){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,a=[],i=r.filter(f=>{var c;return(c=t.getColumn(f.id))==null?void 0:c.getCanSort()}),o={};i.forEach(f=>{const c=t.getColumn(f.id);c&&(o[f.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const u=f=>{const c=f.map(d=>({...d}));return c.sort((d,v)=>{for(let g=0;g<i.length;g+=1){var p;const y=i[g],_=o[y.id],S=_.sortUndefined,x=(p=y==null?void 0:y.desc)!=null?p:!1;let M=0;if(S){const C=d.getValue(y.id),T=v.getValue(y.id),R=C===void 0,D=T===void 0;if(R||D){if(S==="first")return R?-1:1;if(S==="last")return R?1:-1;M=R&&D?0:R?S:-S}}if(M===0&&(M=_.sortingFn(d,v,y.id)),M!==0)return x&&(M*=-1),_.invertSorting&&(M*=-1),M}return d.index-v.index}),c.forEach(d=>{var v;a.push(d),(v=d.subRows)!=null&&v.length&&(d.subRows=u(d.subRows))}),c};return{rows:u(n.rows),flatRows:a,rowsById:n.rowsById}},Tt(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 w2(t,e){return t?rj(t)?et.createElement(t,e):t:null}function rj(t){return aj(t)||typeof t=="function"||ij(t)}function aj(t){return typeof t=="function"&&(()=>{const e=Object.getPrototypeOf(t);return e.prototype&&e.prototype.isReactComponent})()}function ij(t){return typeof t=="object"&&typeof t.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(t.$$typeof.description)}function oj(t){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[n]=et.useState(()=>({current:tj(e)})),[r,a]=et.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...t,state:{...r,...t.state},onStateChange:o=>{a(o),t.onStateChange==null||t.onStateChange(o)}})),n.current}var lj=k2();function bs(t,e,n){let r=n.initialDeps??[],a,i=!0;function o(){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,_)=>r[_]!==y)))return a;r=v;let g;if(n.key&&((f=n.debug)!=null&&f.call(n))&&(g=Date.now()),a=e(...v),n.key&&((c=n.debug)!=null&&c.call(n))){const y=Math.round((Date.now()-d)*100)/100,_=Math.round((Date.now()-g)*100)/100,S=_/16,x=(M,C)=>{for(M=String(M);M.length<C;)M=" "+M;return M};console.info(`%c⏱ ${x(_,5)} /${x(y,5)} ms`,`
|
|
111
|
+
font-size: .6rem;
|
|
112
|
+
font-weight: bold;
|
|
113
|
+
color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(i&&n.skipInitialOnChange)&&n.onChange(a),i=!1,a}return o.updateDeps=u=>{r=u},o}function M2(t,e){if(t===void 0)throw new Error("Unexpected undefined");return t}const sj=(t,e)=>Math.abs(t-e)<1.01,uj=(t,e,n)=>{let r;return function(...a){t.clearTimeout(r),r=t.setTimeout(()=>e.apply(this,a),n)}},C2=t=>{const{offsetWidth:e,offsetHeight:n}=t;return{width:e,height:n}},fj=t=>t,cj=t=>{const e=Math.max(t.startIndex-t.overscan,0),n=Math.min(t.endIndex+t.overscan,t.count-1),r=[];for(let a=e;a<=n;a++)r.push(a);return r},hj=(t,e)=>{const n=t.scrollElement;if(!n)return;const r=t.targetWindow;if(!r)return;const a=o=>{const{width:u,height:f}=o;e({width:Math.round(u),height:Math.round(f)})};if(a(C2(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(o=>{const u=()=>{const f=o[0];if(f!=null&&f.borderBoxSize){const c=f.borderBoxSize[0];if(c){a({width:c.inlineSize,height:c.blockSize});return}}a(C2(n))};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(u):u()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},T2={passive:!0},A2=typeof window>"u"?!0:"onscrollend"in window,dj=(t,e)=>{const n=t.scrollElement;if(!n)return;const r=t.targetWindow;if(!r)return;let a=0;const i=t.options.useScrollendEvent&&A2?()=>{}:uj(r,()=>{e(a,!1)},t.options.isScrollingResetDelay),o=d=>()=>{const{horizontal:v,isRtl:p}=t.options;a=v?n.scrollLeft*(p&&-1||1):n.scrollTop,i(),e(a,d)},u=o(!0),f=o(!1);n.addEventListener("scroll",u,T2);const c=t.options.useScrollendEvent&&A2;return c&&n.addEventListener("scrollend",f,T2),()=>{n.removeEventListener("scroll",u),c&&n.removeEventListener("scrollend",f)}},vj=(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"]},pj=(t,{adjustments:e=0,behavior:n},r)=>{var a,i;const o=t+e;(i=(a=r.scrollElement)==null?void 0:a.scrollTo)==null||i.call(a,{[r.options.horizontal?"left":"top"]:o,behavior:n})};class gj{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,r,a;return((a=(r=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:r.now)==null?void 0:a.call(r))??Date.now()},this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(a=>{a.forEach(i=>{const o=()=>{const u=i.target,f=this.indexFromElement(u);if(!u.isConnected){this.observer.unobserve(u),this.elementsCache.delete(this.options.getItemKey(f));return}this.shouldMeasureDuringScroll(f)&&this.resizeItem(f,this.options.measureElement(u,i,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var a;(a=r())==null||a.disconnect(),n=null},observe:a=>{var i;return(i=r())==null?void 0:i.observe(a,{box:"border-box"})},unobserve:a=>{var i;return(i=r())==null?void 0:i.unobserve(a)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,a])=>{typeof a>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:fj,rangeExtractor:cj,onChange:()=>{},measureElement:vj,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,a;(a=(r=this.options).onChange)==null||a.call(r,this,n)},this.maybeNotify=bs(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=i,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const a=new Map,i=new Map;for(let o=r-1;o>=0;o--){const u=n[o];if(a.has(u.lane))continue;const f=i.get(u.lane);if(f==null||u.end>f.end?i.set(u.lane,u):u.end<f.end&&a.set(u.lane,!0),a.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((o,u)=>o.end===u.end?o.index-u.index:o.end-u.end)[0]:void 0},this.getMeasurementOptions=bs(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,r,a,i,o,u)=>(this.prevLanes!==void 0&&this.prevLanes!==u&&(this.lanesChangedFlag=!0),this.prevLanes=u,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:a,getItemKey:i,enabled:o,lanes:u}),{key:!1}),this.getMeasurements=bs(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:a,getItemKey:i,enabled:o,lanes:u},f)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const p of this.laneAssignments.keys())p>=n&&this.laneAssignments.delete(p);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(p=>{this.itemSizeCache.set(p.key,p.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 p=0;p<c;p++){const g=d[p];g&&(v[g.lane]=p)}for(let p=c;p<n;p++){const g=i(p),y=this.laneAssignments.get(p);let _,S;if(y!==void 0&&this.options.lanes>1){_=y;const T=v[_],R=T!==void 0?d[T]:void 0;S=R?R.end+this.options.gap:r+a}else{const T=this.options.lanes===1?d[p-1]:this.getFurthestMeasurement(d,p);S=T?T.end+this.options.gap:r+a,_=T?T.lane:p%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(p,_)}const x=f.get(g),M=typeof x=="number"?x:this.options.estimateSize(p),C=S+M;d[p]={index:p,start:S,size:M,end:C,key:g,lane:_},v[_]=p}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=bs(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,a,i)=>this.range=n.length>0&&r>0?mj({measurements:n,outerSize:r,scrollOffset:a,lanes:i}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=bs(()=>{let n=null,r=null;const a=this.calculateRange();return a&&(n=a.startIndex,r=a.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,a,i,o)=>i===null||o===null?[]:n({startIndex:i,endIndex:o,overscan:r,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,a=n.getAttribute(r);return a?parseInt(a,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var r;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const a=this.scrollState.index??((r=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:r.index);if(a!==void 0&&this.range){const i=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),o=Math.max(0,a-i),u=Math.min(this.options.count-1,a+i);return n>=o&&n<=u}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((o,u)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(u))});return}const r=this.indexFromElement(n),a=this.options.getItemKey(r),i=this.elementsCache.get(a);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.elementsCache.set(a,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,r)=>{var a;const i=this.measurementsCache[n];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,u=r-o;u!==0&&(((a=this.scrollState)==null?void 0:a.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,u,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.getVirtualItems=bs(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const a=[];for(let i=0,o=n.length;i<o;i++){const u=n[i],f=r[u];a.push(f)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return M2(r[mz(0,r.length-1,a=>M2(r[a]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,r,a=0)=>{if(!this.scrollElement)return 0;const i=this.getSize(),o=this.getScrollOffset();r==="auto"&&(r=n>=o+i?"end":"start"),r==="center"?n+=(a-i)/2:r==="end"&&(n-=i);const u=this.getMaxScrollOffset();return Math.max(Math.min(u,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.getSize(),i=this.getScrollOffset(),o=this.measurementsCache[n];if(!o)return;if(r==="auto")if(o.end>=i+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=i+this.options.scrollPaddingStart)r="start";else return[i,r];if(r==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),r];const u=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(u,r,o.size),r]},this.scrollToOffset=(n,{align:r="start",behavior:a="auto"}={})=>{const i=this.getOffsetForAlignment(n,r),o=this.now();this.scrollState={index:null,align:r,behavior:a,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:r="auto",behavior:a="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.getOffsetForIndex(n,r);if(!i)return;const[o,u]=i,f=this.now();this.scrollState={index:n,align:u,behavior:a,startedAt:f,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:r="auto"}={})=>{const a=this.getScrollOffset()+n,i=this.now();this.scrollState={index:null,align:"start",behavior:r,startedAt:i,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let a;if(r.length===0)a=this.options.paddingStart;else if(this.options.lanes===1)a=((n=r[r.length-1])==null?void 0:n.end)??0;else{const i=Array(this.options.lanes).fill(null);let o=r.length-1;for(;o>=0&&i.some(u=>u===null);){const u=r[o];i[u.lane]===null&&(i[u.lane]=u.end),o--}a=Math.max(...i.filter(u=>u!==null))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:a})=>{this.options.scrollToFn(n,{behavior:a,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const r=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,a=r?r[0]:this.scrollState.lastTargetOffset,i=1,o=a!==this.scrollState.lastTargetOffset;if(!o&&sj(a,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=i){this.scrollState=null;return}}else this.scrollState.stableFrames=0,o&&(this.scrollState.lastTargetOffset=a,this.scrollState.behavior="auto",this._scrollToOffset(a,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const mz=(t,e,n,r)=>{for(;t<=e;){const a=(t+e)/2|0,i=n(a);if(i<r)t=a+1;else if(i>r)e=a-1;else return a}return t>0?t-1:0};function mj({measurements:t,outerSize:e,scrollOffset:n,lanes:r}){const a=t.length-1,i=f=>t[f].start;if(t.length<=r)return{startIndex:0,endIndex:a};let o=mz(0,a,i,n),u=o;if(r===1)for(;u<a&&t[u].end<n+e;)u++;else if(r>1){const f=Array(r).fill(0);for(;u<a&&f.some(d=>d<n+e);){const d=t[u];f[d.lane]=d.end,u++}const c=Array(r).fill(n+e);for(;o>=0&&c.some(d=>d>=n);){const d=t[o];c[d.lane]=d.start,o--}o=Math.max(0,o-o%r),u=Math.min(a,u+(r-1-u%r))}return{startIndex:o,endIndex:u}}const D2=typeof document<"u"?et.useLayoutEffect:et.useEffect;function yj({useFlushSync:t=!0,...e}){const n=et.useReducer(()=>({}),{})[1],r={...e,onChange:(i,o)=>{var u;t&&o?lj.flushSync(n):n(),(u=e.onChange)==null||u.call(e,i,o)}},[a]=et.useState(()=>new gj(r));return a.setOptions(r),D2(()=>a._didMount(),[]),D2(()=>a._willUpdate()),a}function _j(t){return yj({observeElementRect:hj,observeElementOffset:dj,scrollToFn:pj,...t})}function R2(t){return bc(t)}function E2(t){return t==null?"—":"$"+t.toFixed(2)}function L2(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 Sj(t){return t?new Date(t*1e3).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}const qr=v7(),bj={review:"tag-review",exploration:"tag-exploration",planning:"tag-planning",memory:"tag-memory",generic:"tag-generic"};function xj({data:t}){const[e,n]=et.useState(""),[r,a]=et.useState([{id:"started_at",desc:!0}]),i=et.useRef(null),o=et.useMemo(()=>{if(!(t!=null&&t.data))return[];const _=e.toLowerCase();return _?t.data.filter(S=>(S.repo_label||"").toLowerCase().includes(_)||(S.model_name||"").toLowerCase().includes(_)||(S.agent_role||"").toLowerCase().includes(_)||(S.agent_nickname||"").toLowerCase().includes(_)||(S.title||"").toLowerCase().includes(_)||(S.descendant_models||[]).some(x=>(x||"").toLowerCase().includes(_))||(S.descendant_families||[]).some(x=>(x||"").toLowerCase().includes(_))||(S.descendant_roles||[]).some(x=>(x||"").toLowerCase().includes(_))||(S.descendant_nicknames||[]).some(x=>(x||"").toLowerCase().includes(_))||(S.related_titles||[]).some(x=>(x||"").toLowerCase().includes(_))):t.data},[t,e]),u=et.useMemo(()=>[qr.accessor("started_at",{header:"Time",cell:_=>Sj(_.getValue()),size:130}),qr.accessor("repo_label",{header:"Repo",cell:_=>_.getValue()||"—",size:140}),qr.accessor("model_name",{header:"Model",cell:_=>B.jsx("span",{style:{fontFamily:"var(--font-mono)",fontSize:"0.72rem"},children:_.getValue()||"?"}),size:130}),qr.accessor("thread_count",{header:"Threads",cell:_=>{const S=_.getValue()||1,x=_.row.original;return S>1?`${S} (${x.subagent_count||0} sub)`:"1"},size:92}),qr.accessor("agent_family",{header:"Root",cell:_=>B.jsx("span",{className:`tag ${bj[_.getValue()]||"tag-generic"}`,children:_.getValue()}),size:100}),qr.accessor("agent_nickname",{header:"Agent",cell:_=>_.getValue()||"—",size:85}),qr.accessor("reasoning_effort",{header:"Effort",cell:_=>_.getValue()||"—",size:70}),qr.accessor("elapsed_seconds",{header:"Duration",cell:_=>L2(_.getValue()),size:85}),qr.accessor("tokens_used",{header:"Tokens",cell:_=>B.jsx("span",{style:{fontFamily:"var(--font-mono)"},children:R2(_.getValue())}),size:90}),qr.accessor("cost",{header:"Cost",cell:_=>B.jsx("span",{style:{fontFamily:"var(--font-mono)"},children:_.getValue()!=null?E2(_.getValue()):"—"}),size:80}),qr.accessor("title",{header:"Title",cell:_=>B.jsx("span",{title:_.getValue(),style:{opacity:.6},children:(_.getValue()||"").slice(0,55)}),size:240})],[]),f=oj({data:o,columns:u,state:{sorting:r},onSortingChange:a,getCoreRowModel:ej(),getSortedRowModel:nj()}),c=f.getRowModel().rows,d=et.useMemo(()=>o.reduce((_,S)=>(_.sessions+=1,_.tokens+=S.tokens_used||0,_.cost+=S.cost||0,_.elapsed+=S.elapsed_seconds||0,_),{sessions:0,tokens:0,cost:0,elapsed:0}),[o]),v=_j({count:c.length,getScrollElement:()=>i.current,estimateSize:()=>36,overscan:10,getItemKey:_=>{var S;return((S=c[_])==null?void 0:S.id)??_}}),p=v.getVirtualItems(),g=p.length>0?p[0].start:0,y=p.length>0?v.getTotalSize()-p[p.length-1].end:0;return B.jsx("div",{className:"animate-in",children:B.jsxs("div",{className:"table-wrap",children:[B.jsx("div",{className:"table-search",children:B.jsx("input",{placeholder:"Search sessions...",value:e,onChange:_=>n(_.target.value)})}),B.jsxs("div",{style:{fontSize:"0.7rem",color:"var(--text-muted)",padding:"0.4rem 1rem",borderBottom:"1px solid var(--border)"},children:[o.length.toLocaleString()," root sessions",t&&!t.complete&&B.jsx("span",{className:"incomplete-badge",style:{marginLeft:"0.5rem"},children:"partial"})]}),B.jsxs("div",{style:{fontSize:"0.7rem",color:"var(--text-muted)",padding:"0.45rem 1rem",borderBottom:"1px solid var(--border)",display:"flex",gap:"1rem",flexWrap:"wrap"},children:[B.jsxs("span",{children:["Filtered sessions: ",B.jsx("strong",{style:{color:"var(--text-secondary)"},children:d.sessions.toLocaleString()})]}),B.jsxs("span",{children:["Tokens: ",B.jsx("strong",{style:{color:"var(--text-secondary)"},children:R2(d.tokens)})]}),B.jsxs("span",{children:["Cost: ",B.jsx("strong",{style:{color:"var(--text-secondary)"},children:E2(d.cost)})]}),B.jsxs("span",{children:["Time: ",B.jsx("strong",{style:{color:"var(--text-secondary)"},children:L2(d.elapsed)})]})]}),B.jsx("div",{ref:i,style:{height:"600px",overflow:"auto"},children:B.jsxs("table",{style:{tableLayout:"fixed",width:"100%"},children:[B.jsx("thead",{style:{position:"sticky",top:0,background:"var(--bg-card)",zIndex:1},children:f.getHeaderGroups().map(_=>B.jsx("tr",{children:_.headers.map(S=>B.jsxs("th",{style:{width:S.getSize()},onClick:S.column.getToggleSortingHandler(),children:[w2(S.column.columnDef.header,S.getContext()),{asc:" ↑",desc:" ↓"}[S.column.getIsSorted()]||""]},S.id))},_.id))}),B.jsxs("tbody",{children:[p.length===0&&B.jsx("tr",{children:B.jsx("td",{colSpan:u.length,style:{textAlign:"center",padding:"2rem",color:"var(--text-muted)"},children:"No sessions"})}),g>0&&B.jsx("tr",{children:B.jsx("td",{colSpan:u.length,style:{height:`${g}px`,padding:0,borderBottom:"none"}})}),p.map(_=>{const S=c[_.index];return B.jsx("tr",{style:{height:_.size},children:S.getVisibleCells().map(x=>B.jsx("td",{style:{width:x.column.getSize()},children:w2(x.column.columnDef.cell,x.getContext())},x.id))},S.id)}),y>0&&B.jsx("tr",{children:B.jsx("td",{colSpan:u.length,style:{height:`${y}px`,padding:0,borderBottom:"none"}})})]})]})})]})})}function wj(){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 z1(t,e,n){var a,i,o,u,f,c;const r=n==="bootstrap"||!t||t.ingest_id!==e.ingest_id?wj():{...t};return r.ingest_id=e.ingest_id,r.seq=e.seq,(a=e.data)!=null&&a.overview?r.overview={...r.overview,...e.data.overview,total:e.data.overview.total?{...r.overview.total,...e.data.overview.total}:r.overview.total,d7:e.data.overview.d7?{...r.overview.d7,...e.data.overview.d7}:r.overview.d7,d30:e.data.overview.d30?{...r.overview.d30,...e.data.overview.d30}:r.overview.d30}:t&&(r.overview=t.overview),r.repos=Iy(t==null?void 0:t.repos,(i=e.data)==null?void 0:i.repos,r.repos),r.models=Iy(t==null?void 0:t.models,(o=e.data)==null?void 0:o.models,r.models),r.families=Iy(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 Iy(t,e,n){if(!e)return t||n;const r={total:t?t.total:n.total,d7:t?t.d7:n.d7,d30:t?t.d30:n.d30};for(const a of["total","d7","d30"])e[a]&&(r[a]=e[a]);return r}function Mj(t){var e,n;return t?{overview:{data:t.overview,coverage:((n=(e=t.overview)==null?void 0:e.total)==null?void 0:n.coverage)||{total:0,enriched:0,priced:0,time_valid:0}},repos:{data:t.repos},models:{data:t.models},families:{data:t.families},daily:{data:Object.entries(t.daily).sort(([r],[a])=>r.localeCompare(a)).map(([r,a])=>({date:r,...a}))},heatmap:{data:t.heatmap}}:null}function Cj({jobId:t}){var y;const[e,n]=et.useState(null),[r,a]=et.useState(null),[i,o]=et.useState(null),[u,f]=et.useState(!1),c=et.useRef(null),d=et.useRef(0),v=et.useRef(null),p=et.useRef(0),g=et.useRef(null);return et.useEffect(()=>{let _=!0;return(async()=>{try{const S=await fetch(nn.url(`/api/export/${encodeURIComponent(t)}/render-data`));if(!S.ok)throw new Error(`API error: ${S.status}`);const x=await S.json();if(!_)return;n(x),c.current=Tj(x);const M=yz(c.current);v.current=M,p.current=0,o(M),f(!1),g.current=null}catch(S){if(!_)return;a(S.message||String(S))}})(),()=>{_=!1,d.current&&cancelAnimationFrame(d.current)}},[t]),et.useEffect(()=>{if(!(i!=null&&i.liveData)||r)return;let _=!1,S=0,x=0,M=0,C=0,T=0;const R=()=>{const D=Array.from(document.querySelectorAll(".stat-card .stat-value")),E=Array.from(document.querySelectorAll("canvas")),z=D.length>=4&&D.every(L=>String(L.textContent||"").trim().length>0),I=E.length>=4&&E.every(L=>{const F=L.getBoundingClientRect();return F.width>0&&F.height>0}),N=document.querySelectorAll(".heatmap-cell").length>=300;if(!(z&&I&&N)){C=requestAnimationFrame(R);return}T=window.setTimeout(()=>{_||f(!0)},180)};return S=requestAnimationFrame(()=>{x=requestAnimationFrame(()=>{M=requestAnimationFrame(()=>{C=requestAnimationFrame(R)})})}),()=>{_=!0,S&&cancelAnimationFrame(S),x&&cancelAnimationFrame(x),M&&cancelAnimationFrame(M),C&&cancelAnimationFrame(C),T&&window.clearTimeout(T)}},[r,i]),et.useEffect(()=>{if(i){if(i.phase==="final_hold"){g.current==null&&(g.current=i.seekMs||0);return}g.current=null}},[i==null?void 0:i.phase,i==null?void 0:i.seekMs]),et.useEffect(()=>{const _=()=>{const S=c.current;if(!S||S.started)return;S.started=!0,S.startWallClockMs=Date.now();const x=()=>{const M=c.current;if(!M)return;const C=Date.now(),T=Math.min(M.totalDurationMs,C-M.startWallClockMs),R=Aj(M,T),D=p.current?Math.max(1,C-p.current):16;p.current=C;const E=Rj(v.current,R,D,T);if(v.current=E,o(E),T>=M.totalDurationMs){M.finished=!0,d.current=0;return}d.current=requestAnimationFrame(x)};d.current=requestAnimationFrame(x)};return window.__CODEXMETER_EXPORT__={ready:!!(e&&!r&&u),jobId:t,start(){_()},get currentTimeMs(){var S;return((S=c.current)==null?void 0:S.currentSeekMs)||0},get finished(){var S;return!!((S=c.current)!=null&&S.finished)},getDebugState(){var S;return((S=c.current)==null?void 0:S.debugState)||null},getDebugTrace(){var S;return((S=c.current)==null?void 0:S.debugTrace)||[]}},()=>{delete window.__CODEXMETER_EXPORT__}},[u,r,t,e]),r?B.jsx("div",{style:ky,children:B.jsxs("div",{style:z2,children:["Export error: ",r]})}):i!=null&&i.liveData?B.jsx("div",{style:ky,children:B.jsxs("div",{style:Pj,children:[B.jsxs("div",{style:{...Uj,opacity:Oj(i.seekMs)},children:[B.jsx(oz,{presentation:i.presentation,rawPresentation:i.rawPresentation,ingestProgress:Math.min(Math.max(((y=i.progress)==null?void 0:y.percent)||0,0),1),isIngestActive:!!(i.progress&&!i.progress.complete),exportMode:!1,exportPlayback:!0,exportPhase:i.phase}),B.jsxs("div",{style:Hj,children:["Made with ",B.jsx("span",{style:Fj,children:"♥"})," by JJ"]})]}),B.jsx("div",{style:{...Gj,opacity:Lj(i.seekMs)}}),B.jsx("div",{style:{...Vj,...Ej(i.seekMs,g.current)}})]})}):B.jsx("div",{style:ky,children:B.jsx("div",{style:z2,children:"CodexMeter exporting…"})})}function Tj(t){var U,W,it,k,q,rt,lt,ft;const e=((W=(U=t.replay)==null?void 0:U.bootstrap)==null?void 0:W.payload)||{},n=By(e.progress||{percent:0,complete:!1}),r=z1(null,e,"bootstrap"),a=((it=t.replay)==null?void 0:it.events)||[],i=a.findIndex(gt=>gt.event==="patch"),o=i>=0&&a[i].at_ms||0,u=zj(t,r,a),f=((k=u[0])==null?void 0:k.presentation)||xc(),c=i>=0?By(((q=a[i].payload)==null?void 0:q.progress)||n):By(n),d=Math.max(t.startHoldDurationMs||0,0),v=0,p=Math.max(t.replayDurationMs||((rt=t.replay)==null?void 0:rt.duration_ms)||1,1),g=Math.max(t.tailDurationMs||0,0),y=Math.max(t.finalHoldDurationMs||0,0),_=Math.max(t.durationMs||d+p+g+y||1,1),S=Math.max(((lt=t.replay)==null?void 0:lt.duration_ms)||0,0),x=Math.min(Math.max(o,0),S),M=Math.max(1,S-x),C=ln(t.tailSourceFraction??.035),T=Math.max(1,Math.round(M*C)),R=Math.max(0,M-T),D=Math.max(x,S-T),E=t.replayEasing||"cubicInOut",z=t.tailEasing||"cubicInOut",I=((ft=u[u.length-1])==null?void 0:ft.presentation)||f,N=Ev(u,D),L=Math.min(3600,Math.max(1800,Math.round(p*.32))),F=Math.max(v+d,v+d+p-L),G=ln((F-(v+d))/Math.max(p,1)),Y=Math.round(x+R*N1(G)),Z=Ev(u,Y),H=_z({keyframes:u,startSourceMs:Y,endSourceMs:D,startPresentation:Z,endPresentation:N,durationMs:L,startSmoothing:.05,endSmoothing:.14}),X=Ij({keyframes:u,tailSourceStartMs:D,sourceDurationMs:S,tailStartPresentation:N,finalPresentation:I,tailDurationMs:g});return{renderData:t,totalDurationMs:_,frontloadSettledDurationMs:v,startHoldDurationMs:d,replayDurationMs:p,tailDurationMs:g,finalHoldDurationMs:y,sourceDurationMs:S,sourceStartMs:x,effectiveSourceDurationMs:M,tailSourceDurationMs:T,tailSourceStartMs:D,mainReplaySourceDurationMs:R,replayStartMs:d,lateReplayStartMs:F,lateReplayDurationMs:L,lateReplaySourceStartMs:Y,tailStartMs:d+p,finalHoldStartMs:d+p+g,currentSeekMs:0,started:!1,finished:!1,startWallClockMs:0,initialPresentation:f,presentation:f,keyframes:u,keyframeIndex:0,lateReplayFrames:H,tailStartPresentation:N,tailFrames:X,finalPresentation:I,progress:c||{...n,percent:0,complete:!1},bootstrapProgress:n,replayEasing:E,tailEasing:z,debugState:null,debugTrace:[]}}function yz(t){var e;return{liveData:{ready:!0},presentation:t.presentation,rawPresentation:t.presentation,progress:t.progress,phase:((e=t.debugState)==null?void 0:e.phase)||"replay",seekMs:t.currentSeekMs||0}}function Aj(t,e){var u,f;const n=Math.min(Math.max(Number(e)||0,0),t.totalDurationMs);t.currentSeekMs=n;let r="replay",a=0,i=null;if(n<t.startHoldDurationMs)r="start_hold",t.presentation=t.initialPresentation||xc();else if(n<t.tailStartMs)if(n<t.lateReplayStartMs)a=Dj(t,n),t.presentation=Nj(t,a);else{const c=ln((n-t.lateReplayStartMs)/Math.max(t.lateReplayDurationMs,1));a=ao(t.lateReplaySourceStartMs,t.tailSourceStartMs,c),t.presentation=O2(t.lateReplayFrames,I1(c))}else n<t.finalHoldStartMs?(r="tail",i=ln((n-t.tailStartMs)/Math.max(t.tailDurationMs,1)),t.presentation=O2(t.tailFrames,B1(t.tailEasing,i))):(r="final_hold",t.presentation=t.finalPresentation);if(n>=t.finalHoldStartMs){const c=ln((n-t.finalHoldStartMs)/Math.max(t.finalHoldDurationMs||1,1));t.progress={...t.progress||{},percent:1,complete:!0,phase:(c>=1,"complete")}}else t.progress={...t.progress||{},complete:!1};n>=t.totalDurationMs&&(t.finished=!0);const o={frame:t.debugTrace.length,seekMs:n,phase:r,sourceMs:a,tailProgress:i,progress:((u=t.progress)==null?void 0:u.percent)??0,complete:!!((f=t.progress)!=null&&f.complete),signature:Bj(t.presentation)};return t.debugState=o,t.debugTrace.push(o),yz(t)}function Dj(t,e){if(e<=t.replayStartMs)return 0;const n=e-t.replayStartMs;if(n<=t.replayDurationMs){const r=ln(n/Math.max(t.replayDurationMs,1));return t.sourceStartMs+t.mainReplaySourceDurationMs*N1(r)}return t.sourceDurationMs}function By(t){return t?{...t}:null}function Rj(t,e,n,r){if(!t)return e;const a=ye.videoExport||{},i=a.displayTweenStartMs??200;if(r<i)return e;const o=(a.startHoldDurationMs??0)+(a.replayDurationMs??0)+(a.tailDurationMs??0)+(a.finalHoldDurationMs??0)||19e3,u=a.displayTweenLateWindowMs??2200,f=o-u,c=ln((r-f)/Math.max(u,1)),d=Math.round(ao(a.displayTweenBaseMs??240,a.displayTweenLateMs??420,Lv(c))),v=Lv(1-Math.exp(-n/Math.max(d,1))),p=t.progress||{},g=e.progress||{};return{liveData:e.liveData,presentation:no(t.presentation,e.presentation,v),rawPresentation:e.rawPresentation||e.presentation,progress:{...g,percent:ao(p.percent||0,g.percent||0,v),complete:g.complete},phase:e.phase,seekMs:e.seekMs||0}}function Ej(t,e){const n=ye.videoExport||{},r=Math.max(n.finalFlashDurationMs??280,0),a=Math.max(n.finalFlashMaxOpacity??.22,0);if(!r||!a)return{opacity:0,boxShadow:"none"};if(e==null)return{opacity:0,boxShadow:"none"};const i=t-e;if(i<0||i>r)return{opacity:0,boxShadow:"none"};const o=ln(i/r),u=a*(1-Lv(o)),f=Math.min(1,u*.7);return{opacity:u,boxShadow:`0 0 120px 50px rgba(255, 255, 255, ${f}) inset`}}function Lj(t){const e=ye.videoExport||{};if(!e.introFadeEnabled)return 0;const n=Math.max(0,Math.min(1,e.introFadeStartOpacity??.2)),r=Math.max(0,e.introFadeDelayMs??0),a=Math.max(0,e.introFadeDurationMs??900);if(!n)return 0;if(t<=r)return n;if(!a)return 0;const i=ln((t-r)/a),o=B1(e.introFadeEasing||"cubicOut",i);return n*(1-o)}function Oj(t){const e=ye.videoExport||{};if(!e.introFadeEnabled)return 1;const n=Math.max(0,Math.min(1,e.introContentStartOpacity??.35)),r=Math.max(0,e.introFadeDelayMs??0),a=Math.max(0,e.introFadeDurationMs??900);if(t<=r)return n;if(!a)return 1;const i=ln((t-r)/a),o=B1(e.introFadeEasing||"cubicOut",i);return ao(n,1,o)}function zj(t,e,n){const r=[];let a=e;for(const i of n)i.event==="patch"&&(a=z1(a,i.payload,"patch"),r.push({at_ms:Math.max(0,i.at_ms||0),presentation:R1({overview:{data:a.overview},heatmap:{data:a.heatmap},daily:{data:Object.entries(a.daily).sort(([o],[u])=>o.localeCompare(u)).map(([o,u])=>({date:o,...u}))},families:{data:a.families},repos:{data:a.repos},models:{data:a.models},range:"total"})}));return r.length||r.push({at_ms:0,presentation:xc()}),r}function Nj(t,e){return Ev(t.keyframes,e,t)}function O2(t,e){if(!(t!=null&&t.length))return xc();if(e<=t[0].u)return t[0].presentation;for(let n=0;n<t.length-1;n+=1){const r=t[n],a=t[n+1];if(e<=a.u){const i=ln((e-r.u)/Math.max(a.u-r.u,1e-6));return no(r.presentation,a.presentation,i)}}return t[t.length-1].presentation}function Ij({keyframes:t,tailSourceStartMs:e,sourceDurationMs:n,tailStartPresentation:r,finalPresentation:a,tailDurationMs:i}){return _z({keyframes:t,startSourceMs:e,endSourceMs:n,startPresentation:r,endPresentation:a,durationMs:i,startSmoothing:.08,endSmoothing:.2,bidirectional:!0})}function _z({keyframes:t,startSourceMs:e,endSourceMs:n,startPresentation:r,endPresentation:a,durationMs:i,startSmoothing:o,endSmoothing:u,bidirectional:f=!1}){const c=Math.max(36,Math.min(96,Math.round(i/80))),d=[{u:0,presentation:r}];for(let _=1;_<c-1;_+=1){const S=_/(c-1),x=ao(e,n,S);d.push({u:S,presentation:Ev(t,x)})}d.push({u:1,presentation:a});const v=[{u:0,presentation:r}];let p=r;for(let _=1;_<d.length-1;_+=1){const S=d[_],x=ao(o,u,S.u);p=no(p,S.presentation,x),v.push({u:S.u,presentation:p})}if(v.push({u:1,presentation:a}),!f)return v;const g=new Array(d.length);g[d.length-1]={u:1,presentation:a};let y=a;for(let _=d.length-2;_>0;_-=1){const S=d[_],x=ao(u,o,1-S.u);y=no(y,S.presentation,x),g[_]={u:S.u,presentation:y}}return g[0]={u:0,presentation:r},d.map((_,S)=>S===0?{u:0,presentation:r}:S===d.length-1?{u:1,presentation:a}:{u:_.u,presentation:no(v[S].presentation,g[S].presentation,I1(_.u))})}function Ev(t,e,n=null){if(!t.length)return xc();if(e<=t[0].at_ms)return t[0].presentation;let r=(n==null?void 0:n.keyframeIndex)||0;for(;r+1<t.length&&t[r+1].at_ms<=e;)r+=1;n&&(n.keyframeIndex=r);const a=t[r],i=t[Math.min(r+1,t.length-1)];if(!i||i.at_ms<=a.at_ms)return a.presentation;const o=ln((e-a.at_ms)/Math.max(i.at_ms-a.at_ms,1));return no(a.presentation,i.presentation,o)}function xc(){return R1({overview:{data:null},heatmap:{data:{}},daily:{data:[]},families:{data:{total:[],d7:[],d30:[]}},repos:{data:{total:[],d7:[],d30:[]}},models:{data:{total:[],d7:[],d30:[]}},range:"total"})}function ln(t){return Math.min(Math.max(t||0,0),1)}function ao(t,e,n){return t+(e-t)*n}function Bj(t){var d,v,p;if(!t)return null;const e=t.stats||{},n=t.daily||{dates:[],series:[]},r=Array.isArray(t.topRepos)?t.topRepos:[],a=Array.isArray(t.topModels)?t.topModels:[],i=Math.max(0,(((d=n.dates)==null?void 0:d.length)||0)-1),o=((v=n.dates)==null?void 0:v[i])||null,u=(n.series||[]).reduce((g,y)=>{var _;return g+(Number((_=y==null?void 0:y.data)==null?void 0:_[i])||0)},0),f=r[0]||null,c=a[0]||null;return{totalTokens:Math.round(Number(e.tokens)||0),totalCost:Number((Number(e.cost)||0).toFixed(4)),totalSessions:Math.round(Number(e.sessions)||0),dailyPoints:((p=n.dates)==null?void 0:p.length)||0,lastDailyDate:o,lastDailyTotal:Math.round(u),topRepo:(f==null?void 0:f.label)||null,topRepoValue:Math.round(Number(f==null?void 0:f.tokens)||0),topModel:(c==null?void 0:c.label)||null,topModelValue:Math.round(Number(c==null?void 0:c.tokens)||0)}}function N1(t){const e=ln(t);return e*e*e}function I1(t){const e=ln(t);return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}function Lv(t){const e=ln(t);return 1-Math.pow(1-e,3)}function kj(t){const e=ln(t),n=[[0,0],[.12,.03],[.24,.09],[.4,.22],[.58,.42],[.74,.62],[.86,.77],[.93,.86],[.975,.93],[.992,.975],[1,1]];for(let r=0;r<n.length-1;r+=1){const[a,i]=n[r],[o,u]=n[r+1];if(e<=o){const f=ln((e-a)/Math.max(o-a,1e-6));return ao(i,u,I1(f))}}return 1}function B1(t,e){switch(t){case"trainBrake":return kj(e);case"cubicOut":return Lv(e);case"cubicIn":default:return N1(e)}}const ky={width:"100vw",minHeight:"100vh",background:"#06080f",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},Pj={position:"relative",width:1080,height:864,padding:"24px 28px 20px",background:"#06080f",overflow:"hidden"},z2={color:"#8b949e",fontFamily:"'JetBrains Mono', 'Fira Code', monospace",fontSize:18},Hj={position:"absolute",right:18,bottom:10,color:"rgba(139, 148, 158, 0.58)",fontSize:10,fontFamily:"'JetBrains Mono', 'Fira Code', monospace",letterSpacing:"0.02em",opacity:.62,pointerEvents:"none"},Fj={color:"rgba(244, 63, 94, 0.52)"},Vj={position:"absolute",inset:0,background:"linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,255,1) 100%)",pointerEvents:"none",zIndex:20,mixBlendMode:"screen"},Gj={position:"absolute",inset:0,background:"#000000",pointerEvents:"none",zIndex:30},Uj={position:"relative",zIndex:1},jj=["Overview","Repos","Models","Daily","Sessions"],Yj=[{key:"d7",label:"7d"},{key:"d30",label:"30d"},{key:"total",label:"All"}];function N2(t){return t?new Date(t*1e3).toLocaleDateString("en-US",{month:"short",day:"2-digit"}):"—"}function Py(t){return!Number.isFinite(t)||t<=0?0:Math.floor(t/86400)*86400}const qj={idle:"Starting...",inventory:"Reading threads",normalizing:"Normalizing",enrichment:"Enriching rollouts",aggregation:"Building aggregates",finalizing:"Finalizing view",complete:"Complete",error:"Error"};function Xj(){var js;const t=typeof window<"u"?new URLSearchParams(window.location.search):null,e=t==null?void 0:t.get("export"),n=t==null?void 0:t.get("job");if(e==="overview-video"&&n)return B.jsx(Cj,{jobId:n});const[r,a]=et.useState(null),[i,o]=et.useState("Overview"),[u,f]=et.useState("total"),[c,d]=et.useState({}),[v,p]=et.useState(null),[g,y]=et.useState(!0),[_,S]=et.useState(!1),[x,M]=et.useState(!1),[C,T]=et.useState(!1),[R,D]=et.useState(!1),[E,z]=et.useState(!0),[I,N]=et.useState(!1),[L,F]=et.useState(null),[G,Y]=et.useState(!1),[Z,H]=et.useState(!1),[X,U]=et.useState({available:!0,reason:null,portable_download:null}),[W,it]=et.useState(null),k=et.useRef(!1),q=et.useRef(0),rt=et.useRef(null),lt=et.useCallback(async()=>{try{const[dt,me,Wt,un,On,je,De]=await Promise.all([nn.overview(),nn.repos(),nn.models(),nn.daily(),nn.sessions(),nn.heatmap(),nn.families()]),He={overview:dt,repos:me,models:Wt,daily:un,sessions:On,heatmap:je,families:De};return d(He),He}catch(dt){throw console.error("Fetch error:",dt),dt}},[]),ft=et.useCallback(async()=>{if(!R)try{D(!0),o("Overview"),await nn.rerun(),window.location.reload()}catch(dt){console.error("Rerun error:",dt),D(!1)}},[R]),gt=et.useCallback(async()=>{var dt;if(!(G||["queued","running"].includes(L==null?void 0:L.status)))try{Y(!0);const me=!(X!=null&&X.available)&&((dt=X==null?void 0:X.portable_download)==null?void 0:dt.available);let Wt=!1;if(me){const On=X.portable_download.approx_size_mb?`about ${X.portable_download.approx_size_mb} MB`:"a fairly large download";if(!window.confirm(`No supported browser was found for video export.
|
|
114
|
+
|
|
115
|
+
CodexMeter can download a single-use portable Chromium bundle (${On}) for this export only, then delete it afterward.
|
|
116
|
+
|
|
117
|
+
Do you want to continue?`))return;Wt=!0,H(!0)}const un=await nn.startOverviewVideoExport(Wt?{install_portable_browser:!0}:{});F(un)}catch(me){console.error("Video export error:",me)}finally{Y(!1)}},[L==null?void 0:L.status,X,G]);et.useEffect(()=>{Z&&L&&L.phase!=="downloading_browser"&&(L.phase==="rendering"||L.phase==="encoding"||L.status==="complete"||L.status==="failed")&&H(!1)},[L,Z]);const At=et.useCallback(()=>{!(L!=null&&L.id)||L.status!=="complete"||(window.location.href=nn.url(`/api/export/${encodeURIComponent(L.id)}/file`))},[L]);et.useEffect(()=>{!(L!=null&&L.id)||L.status!=="complete"||rt.current!==L.id&&(rt.current=L.id,window.location.href=nn.url(`/api/export/${encodeURIComponent(L.id)}/file`))},[L]),et.useEffect(()=>{let dt=!0;return(async()=>{try{const me=await nn.exportSupport();dt&&U(me)}catch(me){console.error("Export support probe error:",me),dt&&U({available:!1,reason:"Video export availability could not be detected.",portable_download:null})}})(),()=>{dt=!1}},[]),et.useEffect(()=>{let dt=!0,me=null,Wt=null,un=!1,On=!1,je=!1,De=[],He=0,Ye=null,oi=null;const _l=()=>{if(He=0,!dt||De.length===0)return;let Ft=Ye,Ut=oi;for(const Jn of De){const{payload:Sl,mode:Mc,progressOnly:qs}=Jn;if(Ut=Sl.progress,!qs){if(Ft&&Sl.ingest_id===Ft.ingest_id&&Sl.seq<=Ft.seq)continue;Ft=z1(Ft,Sl,Mc)}}De=[],Ut!==oi&&(oi=Ut,a(Ut)),Ft!==Ye&&(Ye=Ft,p(Ft))},zn=(Ft,Ut,Jn=!1)=>{De.push({payload:Ft,mode:Ut,progressOnly:Jn}),He||(He=requestAnimationFrame(_l))},li=async(Ft,Ut=null)=>{!dt||!(Ft!=null&&Ft.complete)||je||(je=!0,await lt())},fo=()=>{if(un||!dt)return;un=!0;const Ft=async()=>{try{const Ut=await nn.progress();if(!dt)return;if(a(Ut),Ut.percent>.1&&await lt(),Ut.complete){await lt(),clearInterval(me);return}(Ut.error||Ut.phase==="error")&&clearInterval(me)}catch(Ut){console.error("Polling fallback error:",Ut)}};Ft(),me=setInterval(Ft,1200)};return(()=>{if(typeof EventSource>"u"){fo();return}Wt=nn.live(),Wt.addEventListener("bootstrap",Ft=>{if(!dt)return;const Ut=JSON.parse(Ft.data);zn(Ut,"bootstrap"),li(Ut.progress,Ut.ingest_id).catch(Jn=>{console.error("Settled fetch error:",Jn),je=!1})}),Wt.addEventListener("progress",Ft=>{if(!dt)return;const Ut=JSON.parse(Ft.data);zn(Ut,"progress",!0),li(Ut.progress,Ut.ingest_id).catch(Jn=>{console.error("Settled fetch error:",Jn),je=!1})}),Wt.addEventListener("patch",Ft=>{if(!dt)return;const Ut=JSON.parse(Ft.data);zn(Ut,"patch")}),Wt.addEventListener("complete",async Ft=>{if(!dt)return;const Ut=JSON.parse(Ft.data);On=!0,zn(Ut,"progress",!0),await li(Ut.progress,Ut.ingest_id),dt&&(Wt==null||Wt.close())}),Wt.addEventListener("ingest-error",Ft=>{if(!dt)return;const Ut=JSON.parse(Ft.data);On=!0,zn(Ut,"progress",!0),Wt==null||Wt.close()}),Wt.addEventListener("error",Ft=>{dt&&(On||(console.error("SSE stream error:",Ft),Wt==null||Wt.close(),fo()))})})(),()=>{dt=!1,clearInterval(me),He&&cancelAnimationFrame(He),Wt==null||Wt.close()}},[lt]),et.useEffect(()=>{if(r){if(r.percent>.1&&g&&!_){S(!0);const dt=setTimeout(()=>y(!1),600);return()=>clearTimeout(dt)}if(r.complete&&g&&!_){S(!0);const dt=setTimeout(()=>y(!1),600);return()=>clearTimeout(dt)}}},[r,g,_]);const Mt=!!(r!=null&&r.complete),Bt=Math.round(((r==null?void 0:r.percent)||0)*100),le=Math.min(Math.max((r==null?void 0:r.percent)||0,0),1),yt=!Mt||I,Nt=!!(r&&yt&&r.phase!=="error");et.useEffect(()=>{r!=null&&r.complete||z(!1)},[r==null?void 0:r.complete]),et.useEffect(()=>{const dt=Mt&&!k.current;if(k.current=Mt,!Mt){N(!1);return}if(dt&&!E){N(!0);return}I&&E&&N(!1)},[Mt,E,I]),et.useEffect(()=>{let dt=!0,me=null;const Wt=async()=>{try{const un=!!(L!=null&&L.id),On=un?await nn.exportStatus(L.id):await nn.activeExport();if(!dt)return;const je=un?On:On.job;if(!je){L!=null&&L.id||F(null);return}F(je),["complete","failed"].includes(je.status)||(me=setTimeout(Wt,900))}catch(un){if(!dt)return;console.error("Export status error:",un)}};return Mt&&Wt(),()=>{dt=!1,me&&clearTimeout(me)}},[Mt,L==null?void 0:L.id]),et.useEffect(()=>{!yt&&!x&&M(!0),yt&&(M(!1),T(!1))},[yt,x]),et.useEffect(()=>{if(!x)return;const dt=setTimeout(()=>T(!0),350);return()=>clearTimeout(dt)},[x]);const ge=et.useMemo(()=>v?Mj(v):null,[v]),ne=ge?ge.overview:c.overview,Ln=ge?ge.heatmap:c.heatmap,_n=ge?ge.daily:c.daily,xa=ge?ge.families:c.families,yl=ge?ge.repos:c.repos,hr=ge?ge.models:c.models,dr=ne==null?void 0:ne.data,Kn=(dr==null?void 0:dr[u])||(dr==null?void 0:dr.total)||{},Ae=Kn==null?void 0:Kn.date_range;et.useEffect(()=>{if(q.current&&(cancelAnimationFrame(q.current),q.current=0),!(Ae!=null&&Ae.from)||!(Ae!=null&&Ae.to)){it(null);return}const dt={from:Py(Ae.from),to:Py(Ae.to)};return it(me=>{if(!me||Mt||me.from!==dt.from||dt.to<=me.to)return dt;const Wt=me.to,un=dt.to,On=Math.max(1,Math.round((un-Wt)/86400)),je=Math.min(1400,Math.max(320,On*110)),De=performance.now(),He=Ye=>{const oi=Math.min(1,(Ye-De)/je),_l=Py(Wt+(un-Wt)*oi);it(zn=>!zn||zn.from!==dt.from||_l<=zn.to?zn:{...zn,to:_l}),oi<1?q.current=requestAnimationFrame(He):(q.current=0,it(dt))};return q.current=requestAnimationFrame(He),me}),()=>{q.current&&(cancelAnimationFrame(q.current),q.current=0)}},[Mt,Ae==null?void 0:Ae.from,Ae==null?void 0:Ae.to]);const na=G||["queued","running"].includes(L==null?void 0:L.status),Pe=!(X!=null&&X.available)&&((js=X==null?void 0:X.portable_download)==null?void 0:js.available),Dp=Z||Pe&&G||Pe&&(L==null?void 0:L.phase)==="downloading_browser"?"Downloading single-use portable Chromium for this export.":!(X!=null&&X.available)&&!Pe?X.reason||"Video export requires Chrome, Chromium, or Edge.":Pe?"No supported browser found. Click to download a single-use portable Chromium for this export.":Mt?na?"Video export is already running.":"Render Overview ingest replay video":"Finish ingest to render the replay video.",wc=(L==null?void 0:L.status)==="complete"?"Download MP4":Z||na&&(G&&Pe||(L==null?void 0:L.phase)==="downloading_browser")?`Downloading ${Math.max(1,Math.round(((L==null?void 0:L.progress)||.03)*100))}%`:na?`Rendering ${Math.max(1,Math.round(((L==null?void 0:L.progress)||0)*100))}%`:"Render Video";return B.jsxs("div",{className:"app",children:[g&&B.jsxs("div",{className:`loading-overlay ${_?"fading":""}`,children:[B.jsx("div",{className:"loading-logo",children:"CodexMeter"}),B.jsx("div",{className:"loading-bar-wrap",children:B.jsx("div",{className:"loading-bar",style:{width:`${Bt}%`}})}),B.jsx("div",{className:"loading-phase",children:qj[r==null?void 0:r.phase]||"Starting..."}),(r==null?void 0:r.phase)==="enrichment"&&B.jsxs("div",{className:"loading-detail",children:[r.enriched,"/",r.needs_enrichment," rollouts",r.current_date_bucket&&` — ${r.current_date_bucket}`]}),(r==null?void 0:r.phase)==="error"&&(r==null?void 0:r.error)&&B.jsx("div",{className:"loading-detail",children:r.error}),B.jsxs("div",{className:"loading-footer",children:["Made with ",B.jsx("span",{className:"loading-heart",children:"♥"})," by JJ"]})]}),B.jsxs("div",{className:`app-content ${_||!g?"app-content-revealed":""}`,children:[B.jsx("nav",{className:"navbar",children:B.jsxs("div",{className:"navbar-inner",children:[B.jsx("span",{className:"navbar-brand",children:"CodexMeter"}),B.jsx("div",{className:"navbar-tabs",children:jj.map(dt=>B.jsx("button",{className:`navbar-tab ${i===dt?"active":""} ${!(Mt&&C)&&dt!=="Overview"?"navbar-tab-dimmed":""}`,onClick:()=>o(dt),disabled:!Mt&&dt!=="Overview",children:dt},dt))}),B.jsx("div",{className:"navbar-meta",children:Ae&&B.jsxs("div",{className:`navbar-date-wrap ${Mt?"":"navbar-date-wrap-dimmed"}`,children:[B.jsxs("span",{className:"navbar-date",style:{fontSize:"0.78rem",color:"var(--text-muted)",fontFamily:"var(--font-mono)"},children:[N2((W==null?void 0:W.from)||Ae.from)," — ",N2((W==null?void 0:W.to)||Ae.to)]}),B.jsx("div",{className:"range-toggle",children:Yj.map(dt=>B.jsx("button",{className:`range-btn ${u===dt.key?"active":""}`,onClick:()=>f(dt.key),disabled:!Mt,children:dt.label},dt.key))}),B.jsx("button",{type:"button",className:"icon-btn","aria-label":"Rerun ingest",title:"Rerun ingest",onClick:ft,disabled:R||!Mt,children:"↻"}),B.jsx("button",{type:"button",className:`navbar-tab active export-video-btn ${X!=null&&X.available?"":"range-btn-unsupported"}`,onClick:(L==null?void 0:L.status)==="complete"?At:gt,disabled:!(X!=null&&X.available)&&!Pe||!Mt||na,style:{minWidth:110},title:(L==null?void 0:L.status)==="complete"?"Download rendered Overview video":Dp,children:wc})]})})]})}),B.jsxs("div",{className:"main-content",children:[i==="Overview"&&B.jsx(j9,{data:ne,heatmap:Ln,daily:_n,families:xa,repos:yl,models:hr,range:u,onPresentationSettledChange:z,ingestProgress:le,isIngestActive:Nt}),i==="Repos"&&B.jsx(W9,{data:c.repos,range:u}),i==="Models"&&B.jsx(e7,{data:c.models,range:u}),i==="Daily"&&B.jsx(d7,{data:c.daily,range:u}),i==="Sessions"&&B.jsx(xj,{data:c.sessions})]}),B.jsxs("div",{className:"app-footer",children:["Made with ",B.jsx("span",{className:"loading-heart",children:"♥"})," by JJ"]})]})]})}GI.createRoot(document.getElementById("root")).render(B.jsx(zv.StrictMode,{children:B.jsx(Xj,{})}));
|