codexmeter 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,31 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ee(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function M(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,M(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=M(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=M(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return M(ee(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function N(e,t,n){if(e==null)return e;var r=[],i=0;return M(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function P(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var F=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},I={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=I,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:P}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,F)}catch(e){F(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),p=s(((e,t)=>{t.exports=f()})),m=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),h=s(((e,t)=>{t.exports=m()})),g=s((e=>{var t=p();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),_=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=s((e=>{var t=h(),n=p(),r=_();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,m=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function ee(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var M=Symbol.for(`react.client.reference`);function N(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===M?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?N(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return N(e(t))}catch{}}return null}var P=Array.isArray,F=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ne=[],re=-1;function ie(e){return{current:e}}function ae(e){0>re||(e.current=ne[re],ne[re]=null,re--)}function oe(e,t){re++,ne[re]=e.current,e.current=t}var se=ie(null),ce=ie(null),L=ie(null),le=ie(null);function ue(e,t){switch(oe(L,t),oe(ce,e),oe(se,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wd(t),e=Gd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(se),oe(se,e)}function de(){ae(se),ae(ce),ae(L)}function fe(e){e.memoizedState!==null&&oe(le,e);var t=se.current,n=Gd(t,e.type);t!==n&&(oe(ce,e),oe(se,n))}function pe(e){ce.current===e&&(ae(se),ae(ce)),le.current===e&&(ae(le),tp._currentValue=te)}var me,he;function R(e){if(me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);me=t&&t[1]||``,he=-1<e.stack.indexOf(`
2
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
+ `+me+e+he}var ge=!1;function _e(e,t){if(!e||ge)return``;ge=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4
+ `),l=s.split(`
5
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ge=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?R(n):``}function ve(e,t){switch(e.tag){case 26:case 27:case 5:return R(e.type);case 16:return R(`Lazy`);case 13:return e.child!==t&&t!==null?R(`Suspense Fallback`):R(`Suspense`);case 19:return R(`SuspenseList`);case 0:case 15:return _e(e.type,!1);case 11:return _e(e.type.render,!1);case 1:return _e(e.type,!0);case 31:return R(`Activity`);default:return``}}function ye(e){try{var t=``,n=null;do t+=ve(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
+ Error generating stack: `+e.message+`
8
+ `+e.stack}}var be=Object.prototype.hasOwnProperty,xe=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,Ce=t.unstable_shouldYield,we=t.unstable_requestPaint,Te=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,ke=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,je=t.unstable_IdlePriority,Me=t.log,Ne=t.unstable_setDisableYieldValue,Pe=null,Fe=null;function Ie(e){if(typeof Me==`function`&&Ne(e),Fe&&typeof Fe.setStrictMode==`function`)try{Fe.setStrictMode(Pe,e)}catch{}}var Le=Math.clz32?Math.clz32:Be,Re=Math.log,ze=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Ve=256,He=262144,Ue=4194304;function We(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ge(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=We(n))):i=We(o):i=We(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=We(n))):i=We(o)):i=We(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ke(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Je(){var e=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),e}function Ye(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ze(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Le(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Qe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Qe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Le(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function $e(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Le(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function et(e,t){var n=t&-t;return n=n&42?1:tt(n),(n&(e.suspendedLanes|t))===0?n:0}function tt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function nt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function rt(){var e=I.p;return e===0?(e=window.event,e===void 0?32:_p(e.type)):e}function it(e,t){var n=I.p;try{return I.p=e,t()}finally{I.p=n}}var at=Math.random().toString(36).slice(2),z=`__reactFiber$`+at,ot=`__reactProps$`+at,st=`__reactContainer$`+at,ct=`__reactEvents$`+at,lt=`__reactListeners$`+at,ut=`__reactHandles$`+at,dt=`__reactResources$`+at,ft=`__reactMarker$`+at;function pt(e){delete e[z],delete e[ot],delete e[ct],delete e[lt],delete e[ut]}function mt(e){var t=e[z];if(t)return t;for(var n=e.parentNode;n;){if(t=n[st]||n[z]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mf(e);e!==null;){if(n=e[z])return n;e=mf(e)}return t}e=n,n=e.parentNode}return null}function ht(e){if(e=e[z]||e[st]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function gt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function _t(e){var t=e[dt];return t||=e[dt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function vt(e){e[ft]=!0}var yt=new Set,bt={};function xt(e,t){St(e,t),St(e+`Capture`,t)}function St(e,t){for(bt[e]=t,e=0;e<t.length;e++)yt.add(t[e])}var Ct=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]*$`),wt={},Tt={};function Et(e){return be.call(Tt,e)?!0:be.call(wt,e)?!1:Ct.test(e)?Tt[e]=!0:(wt[e]=!0,!1)}function Dt(e,t,n){if(Et(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Ot(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function kt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function At(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function jt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Mt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nt(e){if(!e._valueTracker){var t=jt(e)?`checked`:`value`;e._valueTracker=Mt(e,t,``+e[t])}}function Pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=jt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Ft(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var It=/[\n"\\]/g;function Lt(e){return e.replace(It,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Rt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+At(t)):e.value!==``+At(t)&&(e.value=``+At(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Bt(e,o,At(n)):Bt(e,o,At(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+At(s):e.removeAttribute(`name`)}function zt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Nt(e);return}n=n==null?``:``+At(n),t=t==null?n:``+At(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Nt(e)}function Bt(e,t,n){t===`number`&&Ft(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function B(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+At(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Vt(e,t,n){if(t!=null&&(t=``+At(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+At(n)}function Ht(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(P(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=At(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Nt(e)}function Ut(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wt=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 Gt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Wt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Kt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Gt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Gt(e,o,t[o])}function qt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){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 V=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`]]),H=/^[\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 Jt(e){return H.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Yt(){}var Xt=null;function Zt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qt=null,U=null;function $t(e){var t=ht(e);if(t&&(e=t.stateNode)){var n=e[ot]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Rt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Lt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ot]||null;if(!a)throw Error(i(90));Rt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Pt(r)}break a;case`textarea`:Vt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&B(e,!!n.multiple,t,!1)}}}var W=!1;function en(e,t,n){if(W)return e(t,n);W=!0;try{return e(t)}finally{if(W=!1,(Qt!==null||U!==null)&&(bu(),Qt&&(t=Qt,e=U,U=Qt=null,$t(t),e)))for(t=0;t<e.length;t++)$t(e[t])}}function G(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ot]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var tn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),nn=!1;if(tn)try{var K={};Object.defineProperty(K,"passive",{get:function(){nn=!0}}),window.addEventListener(`test`,K,K),window.removeEventListener(`test`,K,K)}catch{nn=!1}var rn=null,an=null,on=null;function sn(){if(on)return on;var e,t=an,n=t.length,r,i=`value`in rn?rn.value:rn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return on=i.slice(e,1<r?1-r:void 0)}function cn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ln(){return!0}function un(){return!1}function dn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?ln:un,this.isPropagationStopped=un,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=ln)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=ln)},persist:function(){},isPersistent:ln}),t}var q={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=dn(q),pn=f({},q,{view:0,detail:0}),mn=dn(pn),hn,gn,_n,vn=f({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==_n&&(_n&&e.type===`mousemove`?(hn=e.screenX-_n.screenX,gn=e.screenY-_n.screenY):gn=hn=0,_n=e),hn)},movementY:function(e){return`movementY`in e?e.movementY:gn}}),yn=dn(vn),bn=dn(f({},vn,{dataTransfer:0})),xn=dn(f({},pn,{relatedTarget:0})),Sn=dn(f({},q,{animationName:0,elapsedTime:0,pseudoElement:0})),Cn=dn(f({},q,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),J=dn(f({},q,{data:0})),wn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Tn={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`},En={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Y(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=En[e])?!!t[e]:!1}function Dn(){return Y}var On=dn(f({},pn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=cn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Tn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dn,charCode:function(e){return e.type===`keypress`?cn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?cn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),kn=dn(f({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=dn(f({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dn})),jn=dn(f({},q,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=dn(f({},vn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Nn=dn(f({},q,{newState:0,oldState:0})),Pn=[9,13,27,32],Fn=tn&&`CompositionEvent`in window,In=null;tn&&`documentMode`in document&&(In=document.documentMode);var Ln=tn&&`TextEvent`in window&&!In,Rn=tn&&(!Fn||In&&8<In&&11>=In),zn=` `,Bn=!1;function Vn(e,t){switch(e){case`keyup`:return Pn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Hn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Un=!1;function Wn(e,t){switch(e){case`compositionend`:return Hn(t);case`keypress`:return t.which===32?(Bn=!0,zn):null;case`textInput`:return e=t.data,e===zn&&Bn?null:e;default:return null}}function Gn(e,t){if(Un)return e===`compositionend`||!Fn&&Vn(e,t)?(e=sn(),on=an=rn=null,Un=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Rn&&t.locale!==`ko`?null:t.data;default:return null}}var Kn={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 qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Kn[e.type]:t===`textarea`}function Jn(e,t,n,r){Qt?U?U.push(r):U=[r]:Qt=r,t=Od(t,`onChange`),0<t.length&&(n=new fn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Xn=null;function Zn(e){bd(e,0)}function Qn(e){if(Pt(gt(e)))return e}function $n(e,t){if(e===`change`)return t}var er=!1;if(tn){var tr;if(tn){var nr=`oninput`in document;if(!nr){var rr=document.createElement(`div`);rr.setAttribute(`oninput`,`return;`),nr=typeof rr.oninput==`function`}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function ir(){Yn&&(Yn.detachEvent(`onpropertychange`,ar),Xn=Yn=null)}function ar(e){if(e.propertyName===`value`&&Qn(Xn)){var t=[];Jn(t,Xn,e,Zt(e)),en(Zn,t)}}function or(e,t,n){e===`focusin`?(ir(),Yn=t,Xn=n,Yn.attachEvent(`onpropertychange`,ar)):e===`focusout`&&ir()}function sr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Qn(Xn)}function cr(e,t){if(e===`click`)return Qn(t)}function lr(e,t){if(e===`input`||e===`change`)return Qn(t)}function ur(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var dr=typeof Object.is==`function`?Object.is:ur;function fr(e,t){if(dr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!be.call(t,i)||!dr(e[i],t[i]))return!1}return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mr(e,t){var n=pr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=pr(n)}}function hr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ft(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ft(e.document)}return t}function _r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var vr=tn&&`documentMode`in document&&11>=document.documentMode,yr=null,br=null,xr=null,Sr=!1;function Cr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Sr||yr==null||yr!==Ft(r)||(r=yr,`selectionStart`in r&&_r(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),xr&&fr(xr,r)||(xr=r,r=Od(br,`onSelect`),0<r.length&&(t=new fn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Tr={animationend:wr(`Animation`,`AnimationEnd`),animationiteration:wr(`Animation`,`AnimationIteration`),animationstart:wr(`Animation`,`AnimationStart`),transitionrun:wr(`Transition`,`TransitionRun`),transitionstart:wr(`Transition`,`TransitionStart`),transitioncancel:wr(`Transition`,`TransitionCancel`),transitionend:wr(`Transition`,`TransitionEnd`)},Er={},Dr={};tn&&(Dr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Tr.animationend.animation,delete Tr.animationiteration.animation,delete Tr.animationstart.animation),`TransitionEvent`in window||delete Tr.transitionend.transition);function Or(e){if(Er[e])return Er[e];if(!Tr[e])return e;var t=Tr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Dr)return Er[e]=t[n];return e}var kr=Or(`animationend`),Ar=Or(`animationiteration`),jr=Or(`animationstart`),Mr=Or(`transitionrun`),Nr=Or(`transitionstart`),Pr=Or(`transitioncancel`),Fr=Or(`transitionend`),Ir=new Map,Lr=`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(` `);Lr.push(`scrollEnd`);function Rr(e,t){Ir.set(e,t),xt(t,[e])}var zr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Br=[],Vr=0,Hr=0;function Ur(){for(var e=Vr,t=Hr=Vr=0;t<e;){var n=Br[t];Br[t++]=null;var r=Br[t];Br[t++]=null;var i=Br[t];Br[t++]=null;var a=Br[t];if(Br[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&qr(n,i,a)}}function Wr(e,t,n,r){Br[Vr++]=e,Br[Vr++]=t,Br[Vr++]=n,Br[Vr++]=r,Hr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Gr(e,t,n,r){return Wr(e,t,n,r),Jr(e)}function Kr(e,t){return Wr(e,null,null,t),Jr(e)}function qr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Le(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Jr(e){if(50<du)throw du=0,fu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Yr={};function Xr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zr(e,t,n,r){return new Xr(e,t,n,r)}function Qr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $r(e,t){var n=e.alternate;return n===null?(n=Zr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ei(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ti(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)Qr(e)&&(s=1);else if(typeof e==`string`)s=Kf(e,n,se.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=Zr(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return ni(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=Zr(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=Zr(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=Zr(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Zr(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ni(e,t,n,r){return e=Zr(7,e,r,t),e.lanes=n,e}function ri(e,t,n){return e=Zr(6,e,null,t),e.lanes=n,e}function ii(e){var t=Zr(18,null,null,0);return t.stateNode=e,t}function X(e,t,n){return t=Zr(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ai=new WeakMap;function oi(e,t){if(typeof e==`object`&&e){var n=ai.get(e);return n===void 0?(t={value:e,source:t,stack:ye(t)},ai.set(e,t),t):n}return{value:e,source:t,stack:ye(t)}}var si=[],ci=0,li=null,ui=0,di=[],fi=0,pi=null,mi=1,hi=``;function gi(e,t){si[ci++]=ui,si[ci++]=li,li=e,ui=t}function _i(e,t,n){di[fi++]=mi,di[fi++]=hi,di[fi++]=pi,pi=e;var r=mi;e=hi;var i=32-Le(r)-1;r&=~(1<<i),n+=1;var a=32-Le(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,mi=1<<32-Le(t)+i|n<<i|r,hi=a+e}else mi=1<<a|n<<i|r,hi=e}function vi(e){e.return!==null&&(gi(e,1),_i(e,1,0))}function yi(e){for(;e===li;)li=si[--ci],si[ci]=null,ui=si[--ci],si[ci]=null;for(;e===pi;)pi=di[--fi],di[fi]=null,hi=di[--fi],di[fi]=null,mi=di[--fi],di[fi]=null}function bi(e,t){di[fi++]=mi,di[fi++]=hi,di[fi++]=pi,mi=t.id,hi=t.overflow,pi=e}var xi=null,Si=null,Ci=!1,wi=null,Ti=!1,Ei=Error(i(519));function Di(e){throw Ni(oi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ei}function Oi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[z]=e,t[ot]=r,n){case`dialog`:xd(`cancel`,t),xd(`close`,t);break;case`iframe`:case`object`:case`embed`:xd(`load`,t);break;case`video`:case`audio`:for(n=0;n<vd.length;n++)xd(vd[n],t);break;case`source`:xd(`error`,t);break;case`img`:case`image`:case`link`:xd(`error`,t),xd(`load`,t);break;case`details`:xd(`toggle`,t);break;case`input`:xd(`invalid`,t),zt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:xd(`invalid`,t);break;case`textarea`:xd(`invalid`,t),Ht(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Pd(t.textContent,n)?(r.popover!=null&&(xd(`beforetoggle`,t),xd(`toggle`,t)),r.onScroll!=null&&xd(`scroll`,t),r.onScrollEnd!=null&&xd(`scrollend`,t),r.onClick!=null&&(t.onclick=Yt),t=!0):t=!1,t||Di(e,!0)}function ki(e){for(xi=e.return;xi;)switch(xi.tag){case 5:case 31:case 13:Ti=!1;return;case 27:case 3:Ti=!0;return;default:xi=xi.return}}function Ai(e){if(e!==xi)return!1;if(!Ci)return ki(e),Ci=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Kd(e.type,e.memoizedProps)),n=!n),n&&Si&&Di(e),ki(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Si=pf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Si=pf(e)}else t===27?(t=Si,ef(e.type)?(e=ff,ff=null,Si=e):Si=t):Si=xi?df(e.stateNode.nextSibling):null;return!0}function ji(){Si=xi=null,Ci=!1}function Mi(){var e=wi;return e!==null&&(Zl===null?Zl=e:Zl.push.apply(Zl,e),wi=null),e}function Ni(e){wi===null?wi=[e]:wi.push(e)}var Pi=ie(null),Fi=null,Ii=null;function Li(e,t,n){oe(Pi,t._currentValue),t._currentValue=n}function Ri(e){e._currentValue=Pi.current,ae(Pi)}function zi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Bi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),zi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),zi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Vi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;dr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===le.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[tp]:e.push(tp))}a=a.return}e!==null&&Bi(t,e,n,r),t.flags|=262144}function Hi(e){for(e=e.firstContext;e!==null;){if(!dr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ui(e){Fi=e,Ii=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Wi(e){return Ki(Fi,e)}function Gi(e,t){return Fi===null&&Ui(e),Ki(e,t)}function Ki(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ii===null){if(e===null)throw Error(i(308));Ii=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ii=Ii.next=t;return n}var qi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ji=t.unstable_scheduleCallback,Yi=t.unstable_NormalPriority,Xi={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zi(){return{controller:new qi,data:new Map,refCount:0}}function Qi(e){e.refCount--,e.refCount===0&&Ji(Yi,function(){e.controller.abort()})}var $i=null,ea=0,ta=0,na=null;function ra(e,t){if($i===null){var n=$i=[];ea=0,ta=fd(),na={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ea++,t.then(ia,ia),t}function ia(){if(--ea===0&&$i!==null){na!==null&&(na.status=`fulfilled`);var e=$i;$i=null,ta=0,na=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function aa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var oa=F.S;F.S=function(e,t){eu=Te(),typeof t==`object`&&t&&typeof t.then==`function`&&ra(e,t),oa!==null&&oa(e,t)};var sa=ie(null);function ca(){var e=sa.current;return e===null?Fl.pooledCache:e}function la(e,t){t===null?oe(sa,sa.current):oe(sa,t.pool)}function ua(){var e=ca();return e===null?null:{parent:Xi._currentValue,pool:e}}var da=Error(i(460)),fa=Error(i(474)),pa=Error(i(542)),ma={then:function(){}};function ha(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ga(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Yt,Yt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ba(e),e;default:if(typeof t.status==`string`)t.then(Yt,Yt);else{if(e=Fl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ba(e),e}throw va=t,da}}function _a(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(va=e,da):e}}var va=null;function ya(){if(va===null)throw Error(i(459));var e=va;return va=null,e}function ba(e){if(e===da||e===pa)throw Error(i(483))}var xa=null,Sa=0;function Ca(e){var t=Sa;return Sa+=1,xa===null&&(xa=[]),ga(xa,e,t)}function wa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ta(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ea(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=$r(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ri(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&_a(i)===t.type)?(t=a(t,n.props),wa(t,n),t.return=e,t):(t=ti(n.type,n.key,n.props,null,e.mode,r),wa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=X(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ni(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ri(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=ti(t.type,t.key,t.props,null,e.mode,n),wa(n,t),n.return=e,n;case v:return t=X(t,e.mode,n),t.return=e,t;case O:return t=_a(t),f(e,t,n)}if(P(t)||ee(t))return t=ni(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ca(t),n);if(t.$$typeof===C)return f(e,Gi(e,t),n);Ta(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=_a(n),p(e,t,n,r)}if(P(n)||ee(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ca(n),r);if(n.$$typeof===C)return p(e,t,Gi(e,n),r);Ta(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=_a(r),m(e,t,n,r,i)}if(P(r)||ee(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ca(r),i);if(r.$$typeof===C)return m(e,t,n,Gi(t,r),i);Ta(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ci&&gi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Ci&&gi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Ci&&gi(i,h),l}function _(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Ci&&gi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ci&&gi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Ci&&gi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&_a(l)===r.type){n(e,r.sibling),c=a(r,o.props),wa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=ni(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ti(o.type,o.key,o.props,null,e.mode,c),wa(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=X(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=_a(o),b(e,r,o,c)}if(P(o))return h(e,r,o,c);if(ee(o)){if(l=ee(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),_(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ca(o),c);if(o.$$typeof===C)return b(e,r,Gi(e,o),c);Ta(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ri(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Sa=0;var i=b(e,t,n,r);return xa=null,i}catch(t){if(t===da||t===pa)throw t;var a=Zr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Da=Ea(!0),Oa=Ea(!1),ka=!1;function Aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ja(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Na(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Pl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Jr(e),qr(e,null,n),t}return Wr(e,r,t,n),Jr(e)}function Pa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}function Fa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ia=!1;function La(){if(Ia){var e=na;if(e!==null)throw e}}function Ra(e,t,n,r){Ia=!1;var i=e.updateQueue;ka=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Ll&p)===p:(r&p)===p){p!==0&&p===ta&&(Ia=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:ka=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Gl|=o,e.lanes=o,e.memoizedState=d}}function za(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ba(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)za(n[e],t)}var Va=ie(null),Ha=ie(0);function Ua(e,t){e=Ul,oe(Ha,e),oe(Va,t),Ul=e|t.baseLanes}function Wa(){oe(Ha,Ul),oe(Va,Va.current)}function Ga(){Ul=Ha.current,ae(Va),ae(Ha)}var Ka=ie(null),qa=null;function Ja(e){var t=e.alternate;oe($a,$a.current&1),oe(Ka,e),qa===null&&(t===null||Va.current!==null||t.memoizedState!==null)&&(qa=e)}function Ya(e){oe($a,$a.current),oe(Ka,e),qa===null&&(qa=e)}function Xa(e){e.tag===22?(oe($a,$a.current),oe(Ka,e),qa===null&&(qa=e)):Za(e)}function Za(){oe($a,$a.current),oe(Ka,Ka.current)}function Qa(e){ae(Ka),qa===e&&(qa=null),ae($a)}var $a=ie(0);function eo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||cf(n)||lf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var to=0,no=null,ro=null,io=null,ao=!1,oo=!1,so=!1,co=0,lo=0,uo=null,fo=0;function po(){throw Error(i(321))}function mo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!dr(e[n],t[n]))return!1;return!0}function ho(e,t,n,r,i,a){return to=a,no=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e===null||e.memoizedState===null?Ms:Ns,so=!1,a=n(r,i),so=!1,oo&&(a=_o(t,n,r,i)),go(e),a}function go(e){F.H=js;var t=ro!==null&&ro.next!==null;if(to=0,io=ro=no=null,ao=!1,lo=0,uo=null,t)throw Error(i(300));e===null||Xs||(e=e.dependencies,e!==null&&Hi(e)&&(Xs=!0))}function _o(e,t,n,r){no=e;var a=0;do{if(oo&&(uo=null),lo=0,oo=!1,25<=a)throw Error(i(301));if(a+=1,io=ro=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}F.H=Ps,o=t(n,r)}while(oo);return o}function vo(){var e=F.H,t=e.useState()[0];return t=typeof t.then==`function`?To(t):t,e=e.useState()[0],(ro===null?null:ro.memoizedState)!==e&&(no.flags|=1024),t}function yo(){var e=co!==0;return co=0,e}function bo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function xo(e){if(ao){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ao=!1}to=0,io=ro=no=null,oo=!1,lo=co=0,uo=null}function So(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return io===null?no.memoizedState=io=e:io=io.next=e,io}function Co(){if(ro===null){var e=no.alternate;e=e===null?null:e.memoizedState}else e=ro.next;var t=io===null?no.memoizedState:io.next;if(t!==null)io=t,ro=e;else{if(e===null)throw no.alternate===null?Error(i(467)):Error(i(310));ro=e,e={memoizedState:ro.memoizedState,baseState:ro.baseState,baseQueue:ro.baseQueue,queue:ro.queue,next:null},io===null?no.memoizedState=io=e:io=io.next=e}return io}function wo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function To(e){var t=lo;return lo+=1,uo===null&&(uo=[]),e=ga(uo,e,t),t=no,(io===null?t.memoizedState:io.next)===null&&(t=t.alternate,F.H=t===null||t.memoizedState===null?Ms:Ns),e}function Eo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return To(e);if(e.$$typeof===C)return Wi(e)}throw Error(i(438,String(e)))}function Do(e){var t=null,n=no.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=no.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=wo(),no.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function Oo(e,t){return typeof t==`function`?t(e):t}function ko(e){return Ao(Co(),ro,e)}function Ao(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(to&f)===f:(Ll&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ta&&(d=!0);else if((to&p)===p){u=u.next,p===ta&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,no.lanes|=p,Gl|=p;f=u.action,so&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,no.lanes|=f,Gl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!dr(o,e.memoizedState)&&(Xs=!0,d&&(n=na,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function jo(e){var t=Co(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);dr(o,t.memoizedState)||(Xs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Mo(e,t,n){var r=no,a=Co(),o=Ci;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!dr((ro||a).memoizedState,n);if(s&&(a.memoizedState=n,Xs=!0),a=a.queue,rs(Fo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||io!==null&&io.memoizedState.tag&1){if(r.flags|=2048,Qo(9,{destroy:void 0},Po.bind(null,r,a,n,t),null),Fl===null)throw Error(i(349));o||to&127||No(r,t,n)}return n}function No(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=no.updateQueue,t===null?(t=wo(),no.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Po(e,t,n,r){t.value=n,t.getSnapshot=r,Io(t)&&Lo(e)}function Fo(e,t,n){return n(function(){Io(t)&&Lo(e)})}function Io(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!dr(e,n)}catch{return!0}}function Lo(e){var t=Kr(e,2);t!==null&&hu(t,e,2)}function Ro(e){var t=So();if(typeof e==`function`){var n=e;if(e=n(),so){Ie(!0);try{n()}finally{Ie(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:e},t}function zo(e,t,n,r){return e.baseState=n,Ao(e,ro,typeof r==`function`?r:Oo)}function Bo(e,t,n,r,a){if(Os(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};F.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Vo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Vo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=F.T,o={};F.T=o;try{var s=n(i,r),c=F.S;c!==null&&c(o,s),Ho(e,t,s)}catch(n){Wo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),F.T=a}}else try{a=n(i,r),Ho(e,t,a)}catch(n){Wo(e,t,n)}}function Ho(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Uo(e,t,n)},function(n){return Wo(e,t,n)}):Uo(e,t,n)}function Uo(e,t,n){t.status=`fulfilled`,t.value=n,Go(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Vo(e,n)))}function Wo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Go(t),t=t.next;while(t!==r)}e.action=null}function Go(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ko(e,t){return t}function qo(e,t){if(Ci){var n=Fl.formState;if(n!==null){a:{var r=no;if(Ci){if(Si){b:{for(var i=Si,a=Ti;i.nodeType!==8;){if(!a){i=null;break b}if(i=df(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Si=df(i.nextSibling),r=i.data===`F!`;break a}}Di(r)}r=!1}r&&(t=n[0])}}return n=So(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ko,lastRenderedState:t},n.queue=r,n=Ts.bind(null,no,r),r.dispatch=n,r=Ro(!1),a=Ds.bind(null,no,!1,r.queue),r=So(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Bo.bind(null,no,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Jo(e){return Yo(Co(),ro,e)}function Yo(e,t,n){if(t=Ao(e,t,Ko)[0],e=ko(Oo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=To(t)}catch(e){throw e===da?pa:e}else r=t;t=Co();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(no.flags|=2048,Qo(9,{destroy:void 0},Xo.bind(null,i,n),null)),[r,a,e]}function Xo(e,t){e.action=t}function Zo(e){var t=Co(),n=ro;if(n!==null)return Yo(t,n,e);Co(),t=t.memoizedState,n=Co();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Qo(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=no.updateQueue,t===null&&(t=wo(),no.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function $o(){return Co().memoizedState}function es(e,t,n,r){var i=So();no.flags|=e,i.memoizedState=Qo(1|t,{destroy:void 0},n,r===void 0?null:r)}function ts(e,t,n,r){var i=Co();r=r===void 0?null:r;var a=i.memoizedState.inst;ro!==null&&r!==null&&mo(r,ro.memoizedState.deps)?i.memoizedState=Qo(t,a,n,r):(no.flags|=e,i.memoizedState=Qo(1|t,a,n,r))}function ns(e,t){es(8390656,8,e,t)}function rs(e,t){ts(2048,8,e,t)}function is(e){no.flags|=4;var t=no.updateQueue;if(t===null)t=wo(),no.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function as(e){var t=Co().memoizedState;return is({ref:t,nextImpl:e}),function(){if(Pl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function os(e,t){return ts(4,2,e,t)}function ss(e,t){return ts(4,4,e,t)}function cs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ls(e,t,n){n=n==null?null:n.concat([e]),ts(4,4,cs.bind(null,t,e),n)}function us(){}function ds(e,t){var n=Co();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&mo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fs(e,t){var n=Co();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&mo(t,r[1]))return r[0];if(r=e(),so){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r}function ps(e,t,n){return n===void 0||to&1073741824&&!(Ll&261930)?e.memoizedState=t:(e.memoizedState=n,e=mu(),no.lanes|=e,Gl|=e,n)}function ms(e,t,n,r){return dr(n,t)?n:Va.current===null?!(to&42)||to&1073741824&&!(Ll&261930)?(Xs=!0,e.memoizedState=n):(e=mu(),no.lanes|=e,Gl|=e,t):(e=ps(e,n,r),dr(e,t)||(Xs=!0),e)}function hs(e,t,n,r,i){var a=I.p;I.p=a!==0&&8>a?a:8;var o=F.T,s={};F.T=s,Ds(e,!1,t,n);try{var c=i(),l=F.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Es(e,t,aa(c,r),pu(e)):Es(e,t,r,pu(e))}catch(n){Es(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{I.p=a,o!==null&&s.types!==null&&(o.types=s.types),F.T=o}}function gs(){}function _s(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=vs(e).queue;hs(e,a,t,te,n===null?gs:function(){return ys(e),n(r)})}function vs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ys(e){var t=vs(e);t.next===null&&(t=e.alternate.memoizedState),Es(e,t.next.queue,{},pu())}function bs(){return Wi(tp)}function xs(){return Co().memoizedState}function Ss(){return Co().memoizedState}function Cs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Ma(n);var r=Na(t,e,n);r!==null&&(hu(r,t,n),Pa(r,t,n)),t={cache:Zi()},e.payload=t;return}t=t.return}}function ws(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Os(e)?ks(t,n):(n=Gr(e,t,n,r),n!==null&&(hu(n,e,r),As(n,t,r)))}function Ts(e,t,n){Es(e,t,n,pu())}function Es(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Os(e))ks(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,dr(s,o))return Wr(e,t,i,0),Fl===null&&Ur(),!1}catch{}if(n=Gr(e,t,i,r),n!==null)return hu(n,e,r),As(n,t,r),!0}return!1}function Ds(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Os(e)){if(t)throw Error(i(479))}else t=Gr(e,n,r,2),t!==null&&hu(t,e,2)}function Os(e){var t=e.alternate;return e===no||t!==null&&t===no}function ks(e,t){oo=ao=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function As(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var js={readContext:Wi,use:Eo,useCallback:po,useContext:po,useEffect:po,useImperativeHandle:po,useLayoutEffect:po,useInsertionEffect:po,useMemo:po,useReducer:po,useRef:po,useState:po,useDebugValue:po,useDeferredValue:po,useTransition:po,useSyncExternalStore:po,useId:po,useHostTransitionStatus:po,useFormState:po,useActionState:po,useOptimistic:po,useMemoCache:po,useCacheRefresh:po};js.useEffectEvent=po;var Ms={readContext:Wi,use:Eo,useCallback:function(e,t){return So().memoizedState=[e,t===void 0?null:t],e},useContext:Wi,useEffect:ns,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),es(4194308,4,cs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return es(4194308,4,e,t)},useInsertionEffect:function(e,t){es(4,2,e,t)},useMemo:function(e,t){var n=So();t=t===void 0?null:t;var r=e();if(so){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=So();if(n!==void 0){var i=n(t);if(so){Ie(!0);try{n(t)}finally{Ie(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ws.bind(null,no,e),[r.memoizedState,e]},useRef:function(e){var t=So();return e={current:e},t.memoizedState=e},useState:function(e){e=Ro(e);var t=e.queue,n=Ts.bind(null,no,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:us,useDeferredValue:function(e,t){return ps(So(),e,t)},useTransition:function(){var e=Ro(!1);return e=hs.bind(null,no,e.queue,!0,!1),So().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=no,a=So();if(Ci){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Fl===null)throw Error(i(349));Ll&127||No(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ns(Fo.bind(null,r,o,e),[e]),r.flags|=2048,Qo(9,{destroy:void 0},Po.bind(null,r,o,n,t),null),n},useId:function(){var e=So(),t=Fl.identifierPrefix;if(Ci){var n=hi,r=mi;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=co++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=fo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:bs,useFormState:qo,useActionState:qo,useOptimistic:function(e){var t=So();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ds.bind(null,no,!0,n),n.dispatch=t,[e,t]},useMemoCache:Do,useCacheRefresh:function(){return So().memoizedState=Cs.bind(null,no)},useEffectEvent:function(e){var t=So(),n={impl:e};return t.memoizedState=n,function(){if(Pl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ns={readContext:Wi,use:Eo,useCallback:ds,useContext:Wi,useEffect:rs,useImperativeHandle:ls,useInsertionEffect:os,useLayoutEffect:ss,useMemo:fs,useReducer:ko,useRef:$o,useState:function(){return ko(Oo)},useDebugValue:us,useDeferredValue:function(e,t){return ms(Co(),ro.memoizedState,e,t)},useTransition:function(){var e=ko(Oo)[0],t=Co().memoizedState;return[typeof e==`boolean`?e:To(e),t]},useSyncExternalStore:Mo,useId:xs,useHostTransitionStatus:bs,useFormState:Jo,useActionState:Jo,useOptimistic:function(e,t){return zo(Co(),ro,e,t)},useMemoCache:Do,useCacheRefresh:Ss};Ns.useEffectEvent=as;var Ps={readContext:Wi,use:Eo,useCallback:ds,useContext:Wi,useEffect:rs,useImperativeHandle:ls,useInsertionEffect:os,useLayoutEffect:ss,useMemo:fs,useReducer:jo,useRef:$o,useState:function(){return jo(Oo)},useDebugValue:us,useDeferredValue:function(e,t){var n=Co();return ro===null?ps(n,e,t):ms(n,ro.memoizedState,e,t)},useTransition:function(){var e=jo(Oo)[0],t=Co().memoizedState;return[typeof e==`boolean`?e:To(e),t]},useSyncExternalStore:Mo,useId:xs,useHostTransitionStatus:bs,useFormState:Zo,useActionState:Zo,useOptimistic:function(e,t){var n=Co();return ro===null?(n.baseState=e,[e,n.queue.dispatch]):zo(n,ro,e,t)},useMemoCache:Do,useCacheRefresh:Ss};Ps.useEffectEvent=as;function Fs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Is={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Ma(r);i.payload=t,n!=null&&(i.callback=n),t=Na(e,i,r),t!==null&&(hu(t,e,r),Pa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Ma(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Na(e,i,r),t!==null&&(hu(t,e,r),Pa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pu(),r=Ma(n);r.tag=2,t!=null&&(r.callback=t),t=Na(e,r,n),t!==null&&(hu(t,e,n),Pa(t,e,n))}};function Ls(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!fr(n,r)||!fr(i,a):!0}function Rs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Is.enqueueReplaceState(t,t.state,null)}function zs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Bs(e){zr(e)}function Vs(e){console.error(e)}function Hs(e){zr(e)}function Us(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ws(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Gs(e,t,n){return n=Ma(n),n.tag=3,n.payload={element:null},n.callback=function(){Us(e,t)},n}function Ks(e){return e=Ma(e),e.tag=3,e}function qs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ws(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ws(t,n,r),typeof i!=`function`&&(ru===null?ru=new Set([this]):ru.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Js(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Vi(t,n,a,!0),n=Ka.current,n!==null){switch(n.tag){case 31:case 13:return qa===null?Du():n.alternate===null&&Wl===0&&(Wl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ma?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ku(e,r,a)),!1;case 22:return n.flags|=65536,r===ma?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Ku(e,r,a)),!1}throw Error(i(435,n.tag))}return Ku(e,r,a),Du(),!1}if(Ci)return t=Ka.current,t===null?(r!==Ei&&(t=Error(i(423),{cause:r}),Ni(oi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=oi(r,n),a=Gs(e.stateNode,r,a),Fa(e,a),Wl!==4&&(Wl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ei&&(e=Error(i(422),{cause:r}),Ni(oi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=oi(o,n),Xl===null?Xl=[o]:Xl.push(o),Wl!==4&&(Wl=2),t===null)return!0;r=oi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Gs(n.stateNode,r,e),Fa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(ru===null||!ru.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ks(a),qs(a,e,n,r),Fa(n,a),!1}n=n.return}while(n!==null);return!1}var Ys=Error(i(461)),Xs=!1;function Zs(e,t,n,r){t.child=e===null?Oa(t,null,n,r):Da(t,e.child,n,r)}function Qs(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ui(t),r=ho(e,t,n,o,a,i),s=yo(),e!==null&&!Xs?(bo(e,t,i),Sc(e,t,i)):(Ci&&s&&vi(t),t.flags|=1,Zs(e,t,r,i),t.child)}function $s(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Qr(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ec(e,t,a,r,i)):(e=ti(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Cc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?fr:n,n(o,r)&&e.ref===t.ref)return Sc(e,t,i)}return t.flags|=1,e=$r(a,r),e.ref=t.ref,e.return=t,t.child=e}function ec(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(fr(a,r)&&e.ref===t.ref)if(Xs=!1,t.pendingProps=r=a,Cc(e,i))e.flags&131072&&(Xs=!0);else return t.lanes=e.lanes,Sc(e,t,i)}return cc(e,t,n,r,i)}function tc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return rc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&la(t,a===null?null:a.cachePool),a===null?Wa():Ua(t,a),Xa(t);else return r=t.lanes=536870912,rc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&la(t,null),Wa(),Za(t)):(la(t,a.cachePool),Ua(t,a),Za(t),t.memoizedState=null);return Zs(e,t,i,n),t.child}function nc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rc(e,t,n,r,i){var a=ca();return a=a===null?null:{parent:Xi._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&la(t,null),Wa(),Xa(t),e!==null&&Vi(e,t,r,!0),t.childLanes=i,null}function ic(e,t){return t=_c({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ac(e,t,n){return Da(t,e.child,null,n),e=ic(t,t.pendingProps),e.flags|=2,Qa(t),t.memoizedState=null,e}function oc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Ci){if(r.mode===`hidden`)return e=ic(t,r),t.lanes=536870912,nc(null,e);if(Ya(t),(e=Si)?(e=sf(e,Ti),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pi===null?null:{id:mi,overflow:hi},retryLane:536870912,hydrationErrors:null},n=ii(e),n.return=t,t.child=n,xi=t,Si=null)):e=null,e===null)throw Di(t);return t.lanes=536870912,null}return ic(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Ya(t),a)if(t.flags&256)t.flags&=-257,t=ac(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Xs||Vi(e,t,n,!1),a=(n&e.childLanes)!==0,Xs||a){if(r=Fl,r!==null&&(s=et(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Kr(e,s),hu(r,e,s),Ys;Du(),t=ac(e,t,n)}else e=o.treeContext,Si=df(s.nextSibling),xi=t,Ci=!0,wi=null,Ti=!1,e!==null&&bi(t,e),t=ic(t,r),t.flags|=4096;return t}return e=$r(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function sc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function cc(e,t,n,r,i){return Ui(t),n=ho(e,t,n,r,void 0,i),r=yo(),e!==null&&!Xs?(bo(e,t,i),Sc(e,t,i)):(Ci&&r&&vi(t),t.flags|=1,Zs(e,t,n,i),t.child)}function lc(e,t,n,r,i,a){return Ui(t),t.updateQueue=null,n=_o(t,r,n,i),go(e),r=yo(),e!==null&&!Xs?(bo(e,t,a),Sc(e,t,a)):(Ci&&r&&vi(t),t.flags|=1,Zs(e,t,n,a),t.child)}function uc(e,t,n,r,i){if(Ui(t),t.stateNode===null){var a=Yr,o=n.contextType;typeof o==`object`&&o&&(a=Wi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Is,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Aa(t),o=n.contextType,a.context=typeof o==`object`&&o?Wi(o):Yr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Fs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Is.enqueueReplaceState(a,a.state,null),Ra(t,r,a,i),La(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=zs(n,s);a.props=c;var l=a.context,u=n.contextType;o=Yr,typeof u==`object`&&u&&(o=Wi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Rs(t,a,r,o),ka=!1;var f=t.memoizedState;a.state=f,Ra(t,r,a,i),La(),l=t.memoizedState,s||f!==l||ka?(typeof d==`function`&&(Fs(t,n,d,r),l=t.memoizedState),(c=ka||Ls(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ja(e,t),o=t.memoizedProps,u=zs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Yr,typeof l==`object`&&l&&(c=Wi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Rs(t,a,r,c),ka=!1,f=t.memoizedState,a.state=f,Ra(t,r,a,i),La();var p=t.memoizedState;o!==d||f!==p||ka||e!==null&&e.dependencies!==null&&Hi(e.dependencies)?(typeof s==`function`&&(Fs(t,n,s,r),p=t.memoizedState),(u=ka||Ls(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Hi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,sc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Da(t,e.child,null,i),t.child=Da(t,null,n,i)):Zs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Sc(e,t,i),e}function dc(e,t,n,r){return ji(),t.flags|=256,Zs(e,t,n,r),t.child}var fc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pc(e){return{baseLanes:e,cachePool:ua()}}function mc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Jl),e}function hc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:($a.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Ci){if(a?Ja(t):Za(t),(e=Si)?(e=sf(e,Ti),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pi===null?null:{id:mi,overflow:hi},retryLane:536870912,hydrationErrors:null},n=ii(e),n.return=t,t.child=n,xi=t,Si=null)):e=null,e===null)throw Di(t);return lf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(Za(t),a=t.mode,c=_c({mode:`hidden`,children:c},a),r=ni(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=pc(n),r.childLanes=mc(e,s,n),t.memoizedState=fc,nc(null,r)):(Ja(t),gc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Ja(t),t.flags&=-257,t=vc(e,t,n)):t.memoizedState===null?(Za(t),c=r.fallback,a=t.mode,r=_c({mode:`visible`,children:r.children},a),c=ni(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Da(t,e.child,null,n),r=t.child,r.memoizedState=pc(n),r.childLanes=mc(e,s,n),t.memoizedState=fc,t=nc(null,r)):(Za(t),t.child=e.child,t.flags|=128,t=null);else if(Ja(t),lf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ni({value:r,source:null,stack:null}),t=vc(e,t,n)}else if(Xs||Vi(e,t,n,!1),s=(n&e.childLanes)!==0,Xs||s){if(s=Fl,s!==null&&(r=et(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Kr(e,r),hu(s,e,r),Ys;cf(c)||Du(),t=vc(e,t,n)}else cf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Si=df(c.nextSibling),xi=t,Ci=!0,wi=null,Ti=!1,e!==null&&bi(t,e),t=gc(t,r.children),t.flags|=4096);return t}return a?(Za(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=$r(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ni(c,a,n,null),c.flags|=2):c=$r(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,nc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=pc(n):(a=c.cachePool,a===null?a=ua():(l=Xi._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=mc(e,s,n),t.memoizedState=fc,nc(e.child,r)):(Ja(t),n=e.child,e=n.sibling,n=$r(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function gc(e,t){return t=_c({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function _c(e,t){return e=Zr(22,e,null,t),e.lanes=0,e}function vc(e,t,n){return Da(t,e.child,null,n),e=gc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),zi(e.return,t,n)}function bc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function xc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=$a.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,oe($a,o),Zs(e,t,r,n),r=Ci?ui:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yc(e,n,t);else if(e.tag===19)yc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&eo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&eo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bc(t,!0,n,null,a,r);break;case`together`:bc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Sc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Vi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=$r(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$r(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Hi(e))):!0}function wc(e,t,n){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),Li(t,Xi,e.memoizedState.cache),ji();break;case 27:case 5:fe(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:Li(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ya(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ja(t),e=Sc(e,t,n),e===null?null:e.sibling):hc(e,t,n):(Ja(t),t.flags|=128,null);Ja(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Vi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return xc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),oe($a,$a.current),r)break;return null;case 22:return t.lanes=0,tc(e,t,n,t.pendingProps);case 24:Li(t,Xi,e.memoizedState.cache)}return Sc(e,t,n)}function Tc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xs=!0;else{if(!Cc(e,n)&&!(t.flags&128))return Xs=!1,wc(e,t,n);Xs=!!(e.flags&131072)}else Xs=!1,Ci&&t.flags&1048576&&_i(t,ui,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=_a(t.elementType),t.type=e,typeof e==`function`)Qr(e)?(r=zs(e,r),t.tag=1,t=uc(null,t,e,r,n)):(t.tag=0,t=cc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=Qs(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=$s(null,t,e,r,n);break a}}throw t=N(e)||e,Error(i(306,t,``))}}return t;case 0:return cc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=zs(r,t.pendingProps),uc(e,t,r,a,n);case 3:a:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,ja(e,t),Ra(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Li(t,Xi,r),r!==o.cache&&Bi(t,[Xi],n,!0),La(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=dc(e,t,r,n);break a}else if(r!==a){a=oi(Error(i(424)),t),Ni(a),t=dc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Si=df(e.firstChild),xi=t,Ci=!0,wi=null,Ti=!0,n=Oa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ji(),r===a){t=Sc(e,t,n);break a}Zs(e,t,r,n)}t=t.child}return t;case 26:return sc(e,t),e===null?(n=Mf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ci||(n=t.type,e=t.pendingProps,r=Ud(L.current).createElement(n),r[z]=t,r[ot]=e,Ld(r,n,e),vt(r),t.stateNode=r):t.memoizedState=Mf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fe(t),e===null&&Ci&&(r=t.stateNode=hf(t.type,t.pendingProps,L.current),xi=t,Ti=!0,a=Si,ef(t.type)?(ff=a,Si=df(r.firstChild)):Si=a),Zs(e,t,t.pendingProps.children,n),sc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ci&&((a=r=Si)&&(r=af(r,t.type,t.pendingProps,Ti),r===null?a=!1:(t.stateNode=r,xi=t,Si=df(r.firstChild),Ti=!1,a=!0)),a||Di(t)),fe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Kd(a,o)?r=null:s!==null&&Kd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=ho(e,t,vo,null,null,n),tp._currentValue=a),sc(e,t),Zs(e,t,r,n),t.child;case 6:return e===null&&Ci&&((e=n=Si)&&(n=of(n,t.pendingProps,Ti),n===null?e=!1:(t.stateNode=n,xi=t,Si=null,e=!0)),e||Di(t)),null;case 13:return hc(e,t,n);case 4:return ue(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Da(t,null,r,n):Zs(e,t,r,n),t.child;case 11:return Qs(e,t,t.type,t.pendingProps,n);case 7:return Zs(e,t,t.pendingProps,n),t.child;case 8:return Zs(e,t,t.pendingProps.children,n),t.child;case 12:return Zs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Li(t,t.type,r.value),Zs(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ui(t),a=Wi(a),r=r(a),t.flags|=1,Zs(e,t,r,n),t.child;case 14:return $s(e,t,t.type,t.pendingProps,n);case 15:return ec(e,t,t.type,t.pendingProps,n);case 19:return xc(e,t,n);case 31:return oc(e,t,n);case 22:return tc(e,t,n,t.pendingProps);case 24:return Ui(t),r=Wi(Xi),e===null?(a=ca(),a===null&&(a=Fl,o=Zi(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Aa(t),Li(t,Xi,a)):((e.lanes&n)!==0&&(ja(e,t),Ra(t,null,null,n),La()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Li(t,Xi,r),r!==a.cache&&Bi(t,[Xi],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Li(t,Xi,r))),Zs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ec(e){e.flags|=4}function Dc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(wu())e.flags|=8192;else throw va=ma,fa}else e.flags&=-16777217}function Oc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!qf(t))if(wu())e.flags|=8192;else throw va=ma,fa}function kc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Je(),e.lanes|=t,Yl|=t)}function Ac(e,t){if(!Ci)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function jc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Mc(e,t,n){var r=t.pendingProps;switch(yi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jc(t),null;case 1:return jc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ri(Xi),de(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ai(t)?Ec(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mi())),jc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Ec(t),o===null?(jc(t),Dc(t,a,null,r,n)):(jc(t),Oc(t,o))):o?o===e.memoizedState?(jc(t),t.flags&=-16777217):(Ec(t),jc(t),Oc(t,o)):(e=e.memoizedProps,e!==r&&Ec(t),jc(t),Dc(t,a,e,r,n)),null;case 27:if(pe(t),n=L.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return jc(t),null}e=se.current,Ai(t)?Oi(t,e):(e=hf(a,r,n),t.stateNode=e,Ec(t))}return jc(t),null;case 5:if(pe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return jc(t),null}if(o=se.current,Ai(t))Oi(t,o);else{var s=Ud(L.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[z]=t,o[ot]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Ld(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ec(t)}}return jc(t),Dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=L.current,Ai(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=xi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[z]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Pd(e.nodeValue,n)),e||Di(t,!0)}else e=Ud(e).createTextNode(r),e[z]=t,t.stateNode=e}return jc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ai(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[z]=t}else ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),e=!1}else n=Mi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Qa(t),t):(Qa(t),null);if(t.flags&128)throw Error(i(558))}return jc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ai(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[z]=t}else ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),a=!1}else a=Mi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Qa(t),t):(Qa(t),null)}return Qa(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),kc(t,t.updateQueue),jc(t),null);case 4:return de(),e===null&&wd(t.stateNode.containerInfo),jc(t),null;case 10:return Ri(t.type),jc(t),null;case 19:if(ae($a),r=t.memoizedState,r===null)return jc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Ac(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=eo(e),o!==null){for(t.flags|=128,Ac(r,!1),e=o.updateQueue,t.updateQueue=e,kc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ei(n,e),n=n.sibling;return oe($a,$a.current&1|2),Ci&&gi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Te()>tu&&(t.flags|=128,a=!0,Ac(r,!1),t.lanes=4194304)}else{if(!a)if(e=eo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,kc(t,e),Ac(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ci)return jc(t),null}else 2*Te()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,a=!0,Ac(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(jc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Te(),e.sibling=null,n=$a.current,oe($a,a?n&1|2:n&1),Ci&&gi(t,r.treeForkCount),e);case 22:case 23:return Qa(t),Ga(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(jc(t),t.subtreeFlags&6&&(t.flags|=8192)):jc(t),n=t.updateQueue,n!==null&&kc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ae(sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ri(Xi),jc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Nc(e,t){switch(yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ri(Xi),de(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(Qa(t),t.alternate===null)throw Error(i(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Qa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae($a),null;case 4:return de(),null;case 10:return Ri(t.type),null;case 22:case 23:return Qa(t),Ga(),e!==null&&ae(sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ri(Xi),null;case 25:return null;default:return null}}function Pc(e,t){switch(yi(t),t.tag){case 3:Ri(Xi),de();break;case 26:case 27:case 5:pe(t);break;case 4:de();break;case 31:t.memoizedState!==null&&Qa(t);break;case 13:Qa(t);break;case 19:ae($a);break;case 10:Ri(t.type);break;case 22:case 23:Qa(t),Ga(),e!==null&&ae(sa);break;case 24:Ri(Xi)}}function Fc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Gu(t,t.return,e)}}function Ic(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Gu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Gu(t,t.return,e)}}function Lc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ba(t,n)}catch(t){Gu(e,e.return,t)}}}function Rc(e,t,n){n.props=zs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Gu(e,t,n)}}function zc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Gu(e,t,n)}}function Bc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Gu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Gu(e,t,n)}else n.current=null}function Vc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Gu(e,e.return,t)}}function Hc(e,t,n){try{var r=e.stateNode;Rd(r,e.type,n,t),r[ot]=t}catch(t){Gu(e,e.return,t)}}function Uc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ef(e.type)||e.tag===4}function Wc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Uc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ef(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yt));else if(r!==4&&(r===27&&ef(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&ef(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ld(t,r,n),t[z]=e,t[ot]=n}catch(t){Gu(e,e.return,t)}}var Jc=!1,Yc=!1,Xc=!1,Zc=typeof WeakSet==`function`?WeakSet:Set,Qc=null;function $c(e,t){if(e=e.containerInfo,Vd=up,e=gr(e),_r(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Hd={focusedElem:e,selectionRange:n},up=!1,Qc=t;Qc!==null;)if(t=Qc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Qc=e;else for(;Qc!==null;){switch(t=Qc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=zs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Gu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)rf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:rf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Qc=e;break}Qc=t.return}}function el(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:hl(e,n),r&4&&Fc(5,n);break;case 1:if(hl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Gu(n,n.return,e)}else{var i=zs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Gu(n,n.return,e)}}r&64&&Lc(n),r&512&&zc(n,n.return);break;case 3:if(hl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ba(e,t)}catch(e){Gu(n,n.return,e)}}break;case 27:t===null&&r&4&&qc(n);case 26:case 5:hl(e,n),t===null&&r&4&&Vc(n),r&512&&zc(n,n.return);break;case 12:hl(e,n);break;case 31:hl(e,n),r&4&&ol(e,n);break;case 13:hl(e,n),r&4&&sl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Yu.bind(null,n),uf(e,n))));break;case 22:if(r=n.memoizedState!==null||Jc,!r){t=t!==null&&t.memoizedState!==null||Yc,i=Jc;var a=Yc;Jc=r,(Yc=t)&&!a?_l(e,n,(n.subtreeFlags&8772)!=0):hl(e,n),Jc=i,Yc=a}break;case 30:break;default:hl(e,n)}}function tl(e){var t=e.alternate;t!==null&&(e.alternate=null,tl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&pt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var nl=null,rl=!1;function il(e,t,n){for(n=n.child;n!==null;)al(e,t,n),n=n.sibling}function al(e,t,n){if(Fe&&typeof Fe.onCommitFiberUnmount==`function`)try{Fe.onCommitFiberUnmount(Pe,n)}catch{}switch(n.tag){case 26:Yc||Bc(n,t),il(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Yc||Bc(n,t);var r=nl,i=rl;ef(n.type)&&(nl=n.stateNode,rl=!1),il(e,t,n),gf(n.stateNode),nl=r,rl=i;break;case 5:Yc||Bc(n,t);case 6:if(r=nl,i=rl,nl=null,il(e,t,n),nl=r,rl=i,nl!==null)if(rl)try{(nl.nodeType===9?nl.body:nl.nodeName===`HTML`?nl.ownerDocument.body:nl).removeChild(n.stateNode)}catch(e){Gu(n,t,e)}else try{nl.removeChild(n.stateNode)}catch(e){Gu(n,t,e)}break;case 18:nl!==null&&(rl?(e=nl,tf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Ip(e)):tf(nl,n.stateNode));break;case 4:r=nl,i=rl,nl=n.stateNode.containerInfo,rl=!0,il(e,t,n),nl=r,rl=i;break;case 0:case 11:case 14:case 15:Ic(2,n,t),Yc||Ic(4,n,t),il(e,t,n);break;case 1:Yc||(Bc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Rc(n,t,r)),il(e,t,n);break;case 21:il(e,t,n);break;case 22:Yc=(r=Yc)||n.memoizedState!==null,il(e,t,n),Yc=r;break;default:il(e,t,n)}}function ol(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ip(e)}catch(e){Gu(t,t.return,e)}}}function sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ip(e)}catch(e){Gu(t,t.return,e)}}function cl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zc),t;default:throw Error(i(435,e.tag))}}function ll(e,t){var n=cl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Xu.bind(null,e,t);t.then(r,r)}})}function ul(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(ef(c.type)){nl=c.stateNode,rl=!1;break a}break;case 5:nl=c.stateNode,rl=!1;break a;case 3:case 4:nl=c.stateNode.containerInfo,rl=!0;break a}c=c.return}if(nl===null)throw Error(i(160));al(o,s,a),nl=null,rl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fl(t,e),t=t.sibling}var dl=null;function fl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ul(t,e),pl(e),r&4&&(Ic(3,e,e.return),Fc(3,e),Ic(5,e,e.return));break;case 1:ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),r&64&&Jc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=dl;if(ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ft]||o[z]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Ld(o,r,n),o[z]=e,vt(o),r=o;break a;case`link`:var s=Wf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Ld(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Wf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Ld(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[z]=e,vt(o),r=o}e.stateNode=r}else Gf(a,e.type,e.stateNode);else e.stateNode=zf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Hc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Gf(a,e.type,e.stateNode):zf(a,r,e.memoizedProps))}break;case 27:ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),n!==null&&r&4&&Hc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ul(t,e),pl(e),r&512&&(Yc||n===null||Bc(n,n.return)),e.flags&32){a=e.stateNode;try{Ut(a,``)}catch(t){Gu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Hc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Xc=!0);break;case 6:if(ul(t,e),pl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Gu(e,e.return,t)}}break;case 3:if(Uf=null,a=dl,dl=yf(t.containerInfo),ul(t,e),dl=a,pl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ip(t.containerInfo)}catch(t){Gu(e,e.return,t)}Xc&&(Xc=!1,ml(e));break;case 4:r=dl,dl=yf(e.stateNode.containerInfo),ul(t,e),pl(e),dl=r;break;case 12:ul(t,e),pl(e);break;case 31:ul(t,e),pl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 13:ul(t,e),pl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&($l=Te()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Jc,d=Yc;if(Jc=u||a,Yc=d||l,ul(t,e),Yc=d,Jc=u,pl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Jc||Yc||gl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Gu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Gu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?nf(m,!0):nf(l.stateNode,!1)}catch(e){Gu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ll(e,n))));break;case 19:ul(t,e),pl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ll(e,r)));break;case 30:break;case 21:break;default:ul(t,e),pl(e)}}function pl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Uc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Kc(e,Wc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Ut(o,``),n.flags&=-33),Kc(e,Wc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Gc(e,Wc(e),s);break;default:throw Error(i(161))}}catch(t){Gu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ml(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ml(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function hl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)el(e,t.alternate,t),t=t.sibling}function gl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ic(4,t,t.return),gl(t);break;case 1:Bc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Rc(t,t.return,n),gl(t);break;case 27:gf(t.stateNode);case 26:case 5:Bc(t,t.return),gl(t);break;case 22:t.memoizedState===null&&gl(t);break;case 30:gl(t);break;default:gl(t)}e=e.sibling}}function _l(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:_l(i,a,n),Fc(4,a);break;case 1:if(_l(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Gu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)za(c[i],s)}catch(e){Gu(r,r.return,e)}}n&&o&64&&Lc(a),zc(a,a.return);break;case 27:qc(a);case 26:case 5:_l(i,a,n),n&&r===null&&o&4&&Vc(a),zc(a,a.return);break;case 12:_l(i,a,n);break;case 31:_l(i,a,n),n&&o&4&&ol(i,a);break;case 13:_l(i,a,n),n&&o&4&&sl(i,a);break;case 22:a.memoizedState===null&&_l(i,a,n),zc(a,a.return);break;case 30:break;default:_l(i,a,n)}t=t.sibling}}function vl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Qi(n))}function yl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qi(e))}function bl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xl(e,t,n,r),t=t.sibling}function xl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:bl(e,t,n,r),i&2048&&Fc(9,t);break;case 1:bl(e,t,n,r);break;case 3:bl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qi(e)));break;case 12:if(i&2048){bl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Gu(t,t.return,e)}}else bl(e,t,n,r);break;case 31:bl(e,t,n,r);break;case 13:bl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?bl(e,t,n,r):(a._visibility|=2,Sl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?bl(e,t,n,r):Cl(e,t),i&2048&&vl(o,t);break;case 24:bl(e,t,n,r),i&2048&&yl(t.alternate,t);break;default:bl(e,t,n,r)}}function Sl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Sl(a,o,s,c,i),Fc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Sl(a,o,s,c,i)):u._visibility&2?Sl(a,o,s,c,i):Cl(a,o),i&&l&2048&&vl(o.alternate,o);break;case 24:Sl(a,o,s,c,i),i&&l&2048&&yl(o.alternate,o);break;default:Sl(a,o,s,c,i)}t=t.sibling}}function Cl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Cl(n,r),i&2048&&vl(r.alternate,r);break;case 24:Cl(n,r),i&2048&&yl(r.alternate,r);break;default:Cl(n,r)}t=t.sibling}}var wl=8192;function Tl(e,t,n){if(e.subtreeFlags&wl)for(e=e.child;e!==null;)El(e,t,n),e=e.sibling}function El(e,t,n){switch(e.tag){case 26:Tl(e,t,n),e.flags&wl&&e.memoizedState!==null&&Jf(n,dl,e.memoizedState,e.memoizedProps);break;case 5:Tl(e,t,n);break;case 3:case 4:var r=dl;dl=yf(e.stateNode.containerInfo),Tl(e,t,n),dl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=wl,wl=16777216,Tl(e,t,n),wl=r):Tl(e,t,n));break;default:Tl(e,t,n)}}function Dl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ol(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qc=r,jl(r,e)}Dl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kl(e),e=e.sibling}function kl(e){switch(e.tag){case 0:case 11:case 15:Ol(e),e.flags&2048&&Ic(9,e,e.return);break;case 3:Ol(e);break;case 12:Ol(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Al(e)):Ol(e);break;default:Ol(e)}}function Al(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qc=r,jl(r,e)}Dl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ic(8,t,t.return),Al(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Al(t));break;default:Al(t)}e=e.sibling}}function jl(e,t){for(;Qc!==null;){var n=Qc;switch(n.tag){case 0:case 11:case 15:Ic(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Qi(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Qc=r;else a:for(n=e;Qc!==null;){r=Qc;var i=r.sibling,a=r.return;if(tl(r),r===n){Qc=null;break a}if(i!==null){i.return=a,Qc=i;break a}Qc=a}}}var Ml={getCacheForType:function(e){var t=Wi(Xi),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Wi(Xi).controller.signal}},Nl=typeof WeakMap==`function`?WeakMap:Map,Pl=0,Fl=null,Il=null,Ll=0,Rl=0,zl=null,Bl=!1,Vl=!1,Hl=!1,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=null,Zl=null,Ql=!1,$l=0,eu=0,tu=1/0,nu=null,ru=null,iu=0,au=null,ou=null,su=0,cu=0,lu=null,uu=null,du=0,fu=null;function pu(){return Pl&2&&Ll!==0?Ll&-Ll:F.T===null?rt():fd()}function mu(){if(Jl===0)if(!(Ll&536870912)||Ci){var e=He;He<<=1,!(He&3932160)&&(He=262144),Jl=e}else Jl=536870912;return e=Ka.current,e!==null&&(e.flags|=32),Jl}function hu(e,t,n){(e===Fl&&(Rl===2||Rl===9)||e.cancelPendingCommit!==null)&&(Su(e,0),yu(e,Ll,Jl,!1)),Xe(e,n),(!(Pl&2)||e!==Fl)&&(e===Fl&&(!(Pl&2)&&(Kl|=n),Wl===4&&yu(e,Ll,Jl,!1)),id(e))}function gu(e,t,n){if(Pl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ke(e,t),a=r?Au(e,t):Ou(e,t,!0),o=r;do{if(a===0){Vl&&!r&&yu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!vu(n)){a=Ou(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Xl;var l=c.current.memoizedState.isDehydrated;if(l&&(Su(c,s).flags|=256),s=Ou(c,s,!1),s!==2){if(Hl&&!l){c.errorRecoveryDisabledLanes|=o,Kl|=o,a=4;break a}o=Zl,Zl=a,o!==null&&(Zl===null?Zl=o:Zl.push.apply(Zl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Su(e,0),yu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:yu(r,t,Jl,!Bl);break a;case 2:Zl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=$l+300-Te(),10<a)){if(yu(r,t,Jl,!Bl),Ge(r,0,!0)!==0)break a;su=t,r.timeoutHandle=Yd(_u.bind(null,r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Bl,o,`Throttled`,-0,0),a);break a}_u(r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Bl,o,null,-0,0)}}break}while(1);id(e)}function _u(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yt},El(t,a,d);var m=(a&62914560)===a?$l-Te():(a&4194048)===a?eu-Te():0;if(m=Xf(d,m),m!==null){su=a,e.cancelPendingCommit=m(Lu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),yu(e,a,o,!l);return}}Lu(e,t,a,n,r,i,o,s,c)}function vu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!dr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yu(e,t,n,r){t&=~ql,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Le(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Qe(e,n,t)}function bu(){return Pl&6?!0:(ad(0,!1),!1)}function xu(){if(Il!==null){if(Rl===0)var e=Il.return;else e=Il,Ii=Fi=null,xo(e),xa=null,Sa=0,e=Il;for(;e!==null;)Pc(e.alternate,e),e=e.return;Il=null}}function Su(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Xd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),su=0,xu(),Fl=e,Il=n=$r(e.current,null),Ll=t,Rl=0,zl=null,Bl=!1,Vl=Ke(e,t),Hl=!1,Yl=Jl=ql=Kl=Gl=Wl=0,Zl=Xl=null,Ql=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Le(r),a=1<<i;t|=e[i],r&=~a}return Ul=t,Ur(),n}function Cu(e,t){no=null,F.H=js,t===da||t===pa?(t=ya(),Rl=3):t===fa?(t=ya(),Rl=4):Rl=t===Ys?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,zl=t,Il===null&&(Wl=1,Us(e,oi(t,e.current)))}function wu(){var e=Ka.current;return e===null?!0:(Ll&4194048)===Ll?qa===null:(Ll&62914560)===Ll||Ll&536870912?e===qa:!1}function Tu(){var e=F.H;return F.H=js,e===null?js:e}function Eu(){var e=F.A;return F.A=Ml,e}function Du(){Wl=4,Bl||(Ll&4194048)!==Ll&&Ka.current!==null||(Vl=!0),!(Gl&134217727)&&!(Kl&134217727)||Fl===null||yu(Fl,Ll,Jl,!1)}function Ou(e,t,n){var r=Pl;Pl|=2;var i=Tu(),a=Eu();(Fl!==e||Ll!==t)&&(nu=null,Su(e,t)),t=!1;var o=Wl;a:do try{if(Rl!==0&&Il!==null){var s=Il,c=zl;switch(Rl){case 8:xu(),o=6;break a;case 3:case 2:case 9:case 6:Ka.current===null&&(t=!0);var l=Rl;if(Rl=0,zl=null,Pu(e,s,c,l),n&&Vl){o=0;break a}break;default:l=Rl,Rl=0,zl=null,Pu(e,s,c,l)}}ku(),o=Wl;break}catch(t){Cu(e,t)}while(1);return t&&e.shellSuspendCounter++,Ii=Fi=null,Pl=r,F.H=i,F.A=a,Il===null&&(Fl=null,Ll=0,Ur()),o}function ku(){for(;Il!==null;)Mu(Il)}function Au(e,t){var n=Pl;Pl|=2;var r=Tu(),a=Eu();Fl!==e||Ll!==t?(nu=null,tu=Te()+500,Su(e,t)):Vl=Ke(e,t);a:do try{if(Rl!==0&&Il!==null){t=Il;var o=zl;b:switch(Rl){case 1:Rl=0,zl=null,Pu(e,t,o,1);break;case 2:case 9:if(ha(o)){Rl=0,zl=null,Nu(t);break}t=function(){Rl!==2&&Rl!==9||Fl!==e||(Rl=7),id(e)},o.then(t,t);break a;case 3:Rl=7;break a;case 4:Rl=5;break a;case 7:ha(o)?(Rl=0,zl=null,Nu(t)):(Rl=0,zl=null,Pu(e,t,o,7));break;case 5:var s=null;switch(Il.tag){case 26:s=Il.memoizedState;case 5:case 27:var c=Il;if(s?qf(s):c.stateNode.complete){Rl=0,zl=null;var l=c.sibling;if(l!==null)Il=l;else{var u=c.return;u===null?Il=null:(Il=u,Fu(u))}break b}}Rl=0,zl=null,Pu(e,t,o,5);break;case 6:Rl=0,zl=null,Pu(e,t,o,6);break;case 8:xu(),Wl=6;break a;default:throw Error(i(462))}}ju();break}catch(t){Cu(e,t)}while(1);return Ii=Fi=null,F.H=r,F.A=a,Pl=n,Il===null?(Fl=null,Ll=0,Ur(),Wl):0}function ju(){for(;Il!==null&&!Ce();)Mu(Il)}function Mu(e){var t=Tc(e.alternate,e,Ul);e.memoizedProps=e.pendingProps,t===null?Fu(e):Il=t}function Nu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=lc(n,t,t.pendingProps,t.type,void 0,Ll);break;case 11:t=lc(n,t,t.pendingProps,t.type.render,t.ref,Ll);break;case 5:xo(t);default:Pc(n,t),t=Il=ei(t,Ul),t=Tc(n,t,Ul)}e.memoizedProps=e.pendingProps,t===null?Fu(e):Il=t}function Pu(e,t,n,r){Ii=Fi=null,xo(t),xa=null,Sa=0;var i=t.return;try{if(Js(e,i,t,n,Ll)){Wl=1,Us(e,oi(n,e.current)),Il=null;return}}catch(t){if(i!==null)throw Il=i,t;Wl=1,Us(e,oi(n,e.current)),Il=null;return}t.flags&32768?(Ci||r===1?e=!0:Vl||Ll&536870912?e=!1:(Bl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ka.current,r!==null&&r.tag===13&&(r.flags|=16384))),Iu(t,e)):Fu(t)}function Fu(e){var t=e;do{if(t.flags&32768){Iu(t,Bl);return}e=t.return;var n=Mc(t.alternate,t,Ul);if(n!==null){Il=n;return}if(t=t.sibling,t!==null){Il=t;return}Il=t=e}while(t!==null);Wl===0&&(Wl=5)}function Iu(e,t){do{var n=Nc(e.alternate,e);if(n!==null){n.flags&=32767,Il=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Il=e;return}Il=e=n}while(e!==null);Wl=6,Il=null}function Lu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Hu();while(iu!==0);if(Pl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Hr,Ze(e,n,o,s,c,l),e===Fl&&(Il=Fl=null,Ll=0),ou=t,au=e,su=n,cu=o,lu=a,uu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Zu(ke,function(){return Uu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=F.T,F.T=null,a=I.p,I.p=2,s=Pl,Pl|=4;try{$c(e,t,n)}finally{Pl=s,I.p=a,F.T=r}}iu=1,Ru(),zu(),Bu()}}function Ru(){if(iu===1){iu=0;var e=au,t=ou,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=F.T,F.T=null;var r=I.p;I.p=2;var i=Pl;Pl|=4;try{fl(t,e);var a=Hd,o=gr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&hr(s.ownerDocument.documentElement,s)){if(c!==null&&_r(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=mr(s,h),v=mr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}up=!!Vd,Hd=Vd=null}finally{Pl=i,I.p=r,F.T=n}}e.current=t,iu=2}}function zu(){if(iu===2){iu=0;var e=au,t=ou,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=F.T,F.T=null;var r=I.p;I.p=2;var i=Pl;Pl|=4;try{el(e,t.alternate,t)}finally{Pl=i,I.p=r,F.T=n}}iu=3}}function Bu(){if(iu===4||iu===3){iu=0,we();var e=au,t=ou,n=su,r=uu;t.subtreeFlags&10256||t.flags&10256?iu=5:(iu=0,ou=au=null,Vu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ru=null),nt(n),t=t.stateNode,Fe&&typeof Fe.onCommitFiberRoot==`function`)try{Fe.onCommitFiberRoot(Pe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=F.T,i=I.p,I.p=2,F.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{F.T=t,I.p=i}}su&3&&Hu(),id(e),i=e.pendingLanes,n&261930&&i&42?e===fu?du++:(du=0,fu=e):du=0,ad(0,!1)}}function Vu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Qi(t)))}function Hu(){return Ru(),zu(),Bu(),Uu()}function Uu(){if(iu!==5)return!1;var e=au,t=cu;cu=0;var n=nt(su),r=F.T,a=I.p;try{I.p=32>n?32:n,F.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,Pl&6)throw Error(i(331));var c=Pl;if(Pl|=4,kl(o.current),xl(o,o.current,s,n),Pl=c,ad(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot==`function`)try{Fe.onPostCommitFiberRoot(Pe,o)}catch{}return!0}finally{I.p=a,F.T=r,Vu(e,t)}}function Wu(e,t,n){t=oi(n,t),t=Gs(e.stateNode,t,2),e=Na(e,t,2),e!==null&&(Xe(e,2),id(e))}function Gu(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=oi(n,e),n=Ks(2),r=Na(t,n,2),r!==null&&(qs(n,r,t,e),Xe(r,2),id(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Hl=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Fl===e&&(Ll&n)===n&&(Wl===4||Wl===3&&(Ll&62914560)===Ll&&300>Te()-$l?!(Pl&2)&&Su(e,0):ql|=n,Yl===Ll&&(Yl=0)),id(e)}function Ju(e,t){t===0&&(t=Je()),e=Kr(e,t),e!==null&&(Xe(e,t),id(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ju(e,n)}function Zu(e,t){return xe(e,t)}var Qu=null,$u=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=Qu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Le(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=Ll,a=Ge(r,r===Fl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ke(r,a)||(n=!0,ud(r,a));r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&Jd()&&(e=rd);for(var t=Te(),n=null,r=Qu;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}iu!==0&&iu!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Le(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Fl,n=Ll,n=Ge(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Rl===2||Rl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Se(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ke(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Se(r),nt(n)){case 2:case 8:n=Oe;break;case 32:n=ke;break;case 268435456:n=je;break;default:n=ke}return r=ld.bind(null,e),n=xe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Se(r),e.callbackPriority=2,e.callbackNode=null,2}function ld(e,t){if(iu!==0&&iu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Hu()&&e.callbackNode!==n)return null;var r=Ll;return r=Ge(e,e===Fl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gu(e,r,t),cd(e,Te()),e.callbackNode!=null&&e.callbackNode===n?ld.bind(null,e):null)}function ud(e,t){if(Hu())return null;gu(e,t,!0)}function dd(){Qd(function(){Pl&6?xe(De,od):sd()})}function fd(){if(rd===0){var e=ta;e===0&&(e=Ve,Ve<<=1,!(Ve&261888)&&(Ve=256)),rd=e}return rd}function pd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Jt(``+e)}function md(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function hd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=pd((i[ot]||null).action),o=r.submitter;o&&(t=(t=o[ot]||null)?pd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new fn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(rd!==0){var e=o?md(i,o):new FormData(i);_s(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?md(i,o):new FormData(i),_s(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var gd=0;gd<Lr.length;gd++){var _d=Lr[gd];Rr(_d.toLowerCase(),`on`+(_d[0].toUpperCase()+_d.slice(1)))}Rr(kr,`onAnimationEnd`),Rr(Ar,`onAnimationIteration`),Rr(jr,`onAnimationStart`),Rr(`dblclick`,`onDoubleClick`),Rr(`focusin`,`onFocus`),Rr(`focusout`,`onBlur`),Rr(Mr,`onTransitionRun`),Rr(Nr,`onTransitionStart`),Rr(Pr,`onTransitionCancel`),Rr(Fr,`onTransitionEnd`),St(`onMouseEnter`,[`mouseout`,`mouseover`]),St(`onMouseLeave`,[`mouseout`,`mouseover`]),St(`onPointerEnter`,[`pointerout`,`pointerover`]),St(`onPointerLeave`,[`pointerout`,`pointerover`]),xt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),xt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),xt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),xt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),xt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),xt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var vd=`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(` `),yd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(vd));function bd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){zr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){zr(e)}i.currentTarget=null,a=c}}}}function xd(e,t){var n=t[ct];n===void 0&&(n=t[ct]=new Set);var r=e+`__bubble`;n.has(r)||(Td(t,e,2,!1),n.add(r))}function Sd(e,t,n){var r=0;t&&(r|=4),Td(n,e,r,t)}var Cd=`_reactListening`+Math.random().toString(36).slice(2);function wd(e){if(!e[Cd]){e[Cd]=!0,yt.forEach(function(t){t!==`selectionchange`&&(yd.has(t)||Sd(t,!1,e),Sd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Cd]||(t[Cd]=!0,Sd(`selectionchange`,!1,t))}}function Td(e,t,n,r){switch(_p(t)){case 2:var i=dp;break;case 8:i=fp;break;default:i=pp}n=i.bind(null,t,n,e),i=void 0,!nn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Ed(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=mt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}en(function(){var r=a,i=Zt(n),s=[];a:{var c=Ir.get(e);if(c!==void 0){var l=fn,u=e;switch(e){case`keypress`:if(cn(n)===0)break a;case`keydown`:case`keyup`:l=On;break;case`focusin`:u=`focus`,l=xn;break;case`focusout`:u=`blur`,l=xn;break;case`beforeblur`:case`afterblur`:l=xn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=yn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=bn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=An;break;case kr:case Ar:case jr:l=Sn;break;case Fr:l=jn;break;case`scroll`:case`scrollend`:l=mn;break;case`wheel`:l=Mn;break;case`copy`:case`cut`:case`paste`:l=Cn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=kn;break;case`toggle`:case`beforetoggle`:l=Nn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=G(m,p),g!=null&&d.push(Dd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Xt&&(u=n.relatedTarget||n.fromElement)&&(mt(u)||u[st]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?mt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=yn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=kn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:gt(l),h=u==null?c:gt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,mt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=kd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Ad(s,c,l,d,!1),u!==null&&f!==null&&Ad(s,f,u,d,!0)}}a:{if(c=r?gt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=$n;else if(qn(c))if(er)v=lr;else{v=sr;var y=or}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&qt(r.elementType)&&(v=$n):v=cr;if(v&&=v(e,r)){Jn(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Bt(c,`number`,c.value)}switch(y=r?gt(r):window,e){case`focusin`:(qn(y)||y.contentEditable===`true`)&&(yr=y,br=r,xr=null);break;case`focusout`:xr=br=yr=null;break;case`mousedown`:Sr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Sr=!1,Cr(s,n,i);break;case`selectionchange`:if(vr)break;case`keydown`:case`keyup`:Cr(s,n,i)}var b;if(Fn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Un?Vn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Rn&&n.locale!==`ko`&&(Un||x!==`onCompositionStart`?x===`onCompositionEnd`&&Un&&(b=sn()):(rn=i,an=`value`in rn?rn.value:rn.textContent,Un=!0)),y=Od(r,x),0<y.length&&(x=new J(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Hn(n),b!==null&&(x.data=b)))),(b=Ln?Wn(e,n):Gn(e,n))&&(x=Od(r,`onBeforeInput`),0<x.length&&(y=new J(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),hd(s,e,r,n,i)}bd(s,t)})}function Dd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Od(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=G(e,n),i!=null&&r.unshift(Dd(e,i,a)),i=G(e,t),i!=null&&r.push(Dd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function kd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ad(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=G(n,a),l!=null&&o.unshift(Dd(n,l,c))):i||(l=G(n,a),l!=null&&o.push(Dd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var jd=/\r\n?/g,Md=/\u0000|\uFFFD/g;function Nd(e){return(typeof e==`string`?e:``+e).replace(jd,`
9
+ `).replace(Md,``)}function Pd(e,t){return t=Nd(t),Nd(e)===t}function Fd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ut(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ut(e,``+r);break;case`className`:Ot(e,`class`,r);break;case`tabIndex`:Ot(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ot(e,n,r);break;case`style`:Kt(e,r,o);break;case`data`:if(t!==`object`){Ot(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Jt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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 o==`function`&&(n===`formAction`?(t!==`input`&&Fd(e,t,`name`,a.name,a,null),Fd(e,t,`formEncType`,a.formEncType,a,null),Fd(e,t,`formMethod`,a.formMethod,a,null),Fd(e,t,`formTarget`,a.formTarget,a,null)):(Fd(e,t,`encType`,a.encType,a,null),Fd(e,t,`method`,a.method,a,null),Fd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Jt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Yt);break;case`onScroll`:r!=null&&xd(`scroll`,e);break;case`onScrollEnd`:r!=null&&xd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Jt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:xd(`beforetoggle`,e),xd(`toggle`,e),Dt(e,`popover`,r);break;case`xlinkActuate`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Dt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=V.get(n)||n,Dt(e,n,r))}}function Id(e,t,n,r,a,o){switch(n){case`style`:Kt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Ut(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ut(e,``+r);break;case`onScroll`:r!=null&&xd(`scroll`,e);break;case`onScrollEnd`:r!=null&&xd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Yt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!bt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ot]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Dt(e,n,r)}}}function Ld(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:xd(`error`,e),xd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Fd(e,t,o,s,n,null)}}a&&Fd(e,t,`srcSet`,n.srcSet,n,null),r&&Fd(e,t,`src`,n.src,n,null);return;case`input`:xd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Fd(e,t,r,d,n,null)}}zt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in xd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Fd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&B(e,!!r,n,!0):B(e,!!r,t,!1);return;case`textarea`:for(s in xd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Fd(e,t,s,c,n,null)}Ht(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Fd(e,t,l,r,n,null)}return;case`dialog`:xd(`beforetoggle`,e),xd(`toggle`,e),xd(`cancel`,e),xd(`close`,e);break;case`iframe`:case`object`:xd(`load`,e);break;case`video`:case`audio`:for(r=0;r<vd.length;r++)xd(vd[r],e);break;case`image`:xd(`error`,e),xd(`load`,e);break;case`details`:xd(`toggle`,e);break;case`embed`:case`source`:case`link`:xd(`error`,e),xd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Fd(e,t,u,r,n,null)}return;default:if(qt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Id(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Fd(e,t,c,r,n,null))}function Rd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Fd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Fd(e,t,p,m,r,f)}}Rt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Fd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Fd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?B(e,!!n,n?[]:``,!1):B(e,!!n,t,!0)):B(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Fd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Fd(e,t,s,a,r,o)}Vt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Fd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Fd(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Fd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Fd(e,t,u,p,r,m)}return;default:if(qt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Id(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Id(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Fd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Fd(e,t,f,p,r,m)}function zd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Bd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&zd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&zd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Vd=null,Hd=null;function Ud(e){return e.nodeType===9?e:e.ownerDocument}function Wd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Gd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Kd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qd=null;function Jd(){var e=window.event;return e&&e.type===`popstate`?e===qd?!1:(qd=e,!0):(qd=null,!1)}var Yd=typeof setTimeout==`function`?setTimeout:void 0,Xd=typeof clearTimeout==`function`?clearTimeout:void 0,Zd=typeof Promise==`function`?Promise:void 0,Qd=typeof queueMicrotask==`function`?queueMicrotask:Zd===void 0?Yd:function(e){return Zd.resolve(null).then(e).catch($d)};function $d(e){setTimeout(function(){throw e})}function ef(e){return e===`head`}function tf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Ip(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)gf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,gf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ft]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&gf(e.ownerDocument.body);n=i}while(n);Ip(t)}function nf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function rf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:rf(n),pt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function af(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ft])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=df(e.nextSibling),e===null)break}return null}function of(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=df(e.nextSibling),e===null))return null;return e}function sf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=df(e.nextSibling),e===null))return null;return e}function cf(e){return e.data===`$?`||e.data===`$~`}function lf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function uf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function df(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var ff=null;function pf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return df(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function mf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function hf(e,t,n){switch(t=Ud(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function gf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);pt(e)}var _f=new Map,vf=new Set;function yf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var bf=I.d;I.d={f:xf,r:Sf,D:Tf,C:Ef,L:Df,m:Of,X:Af,S:kf,M:jf};function xf(){var e=bf.f(),t=bu();return e||t}function Sf(e){var t=ht(e);t!==null&&t.tag===5&&t.type===`form`?ys(t):bf.r(e)}var Cf=typeof document>`u`?null:document;function wf(e,t,n){var r=Cf;if(r&&typeof t==`string`&&t){var i=Lt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),vf.has(i)||(vf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ld(t,`link`,e),vt(t),r.head.appendChild(t)))}}function Tf(e){bf.D(e),wf(`dns-prefetch`,e,null)}function Ef(e,t){bf.C(e,t),wf(`preconnect`,e,t)}function Df(e,t,n){bf.L(e,t,n);var r=Cf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Lt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Lt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Lt(n.imageSizes)+`"]`)):i+=`[href="`+Lt(e)+`"]`;var a=i;switch(t){case`style`:a=Nf(e);break;case`script`:a=Lf(e)}_f.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),_f.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Pf(a))||t===`script`&&r.querySelector(Rf(a))||(t=r.createElement(`link`),Ld(t,`link`,e),vt(t),r.head.appendChild(t)))}}function Of(e,t){bf.m(e,t);var n=Cf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Lt(r)+`"][href="`+Lt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Lf(e)}if(!_f.has(a)&&(e=f({rel:`modulepreload`,href:e},t),_f.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Rf(a)))return}r=n.createElement(`link`),Ld(r,`link`,e),vt(r),n.head.appendChild(r)}}}function kf(e,t,n){bf.S(e,t,n);var r=Cf;if(r&&e){var i=_t(r).hoistableStyles,a=Nf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Pf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=_f.get(a))&&Vf(e,n);var c=o=r.createElement(`link`);vt(c),Ld(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Bf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Af(e,t){bf.X(e,t);var n=Cf;if(n&&e){var r=_t(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=f({src:e,async:!0},t),(t=_f.get(i))&&Hf(e,t),a=n.createElement(`script`),vt(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t){bf.M(e,t);var n=Cf;if(n&&e){var r=_t(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=_f.get(i))&&Hf(e,t),a=n.createElement(`script`),vt(a),Ld(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t,n,r){var a=(a=L.current)?yf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Nf(n.href),n=_t(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Nf(n.href);var o=_t(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Pf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),_f.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},_f.set(e,n),o||If(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Lf(n),n=_t(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Nf(e){return`href="`+Lt(e)+`"`}function Pf(e){return`link[rel="stylesheet"][`+e+`]`}function Ff(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function If(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ld(t,`link`,n),vt(t),e.head.appendChild(t))}function Lf(e){return`[src="`+Lt(e)+`"]`}function Rf(e){return`script[async]`+e}function zf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Lt(n.href)+`"]`);if(r)return t.instance=r,vt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),vt(r),Ld(r,`style`,a),Bf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Nf(n.href);var o=e.querySelector(Pf(a));if(o)return t.state.loading|=4,t.instance=o,vt(o),o;r=Ff(n),(a=_f.get(a))&&Vf(r,a),o=(e.ownerDocument||e).createElement(`link`),vt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ld(o,`link`,r),t.state.loading|=4,Bf(o,n.precedence,e),t.instance=o;case`script`:return o=Lf(n.src),(a=e.querySelector(Rf(o)))?(t.instance=a,vt(a),a):(r=n,(a=_f.get(o))&&(r=f({},n),Hf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),vt(a),Ld(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Bf(r,n.precedence,e));return t.instance}function Bf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Vf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Uf=null;function Wf(e,t,n){if(Uf===null){var r=new Map,i=Uf=new Map;i.set(n,r)}else i=Uf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ft]||a[z]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Gf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Kf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Jf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Nf(r.href),a=t.querySelector(Pf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Zf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,vt(a);return}a=t.ownerDocument||t,r=Ff(r),(i=_f.get(i))&&Vf(r,i),a=a.createElement(`link`),vt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ld(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Zf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Yf=0;function Xf(e,t){return e.stylesheets&&e.count===0&&$f(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&$f(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Yf===0&&(Yf=62500*Bd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$f(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Yf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Zf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$f(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Qf=null;function $f(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Qf=new Map,t.forEach(ep,e),Qf=null,Zf.call(e))}function ep(e,t){if(!(t.state.loading&4)){var n=Qf.get(e);if(n)var r=n.get(null);else{n=new Map,Qf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Zf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var tp={$$typeof:C,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function np(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=Ye(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ye(0),this.hiddenUpdates=Ye(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function rp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new np(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Zr(3,null,null,t),e.current=a,a.stateNode=e,t=Zi(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Aa(a),e}function ip(e){return e?(e=Yr,e):Yr}function ap(e,t,n,r,i,a){i=ip(i),r.context===null?r.context=i:r.pendingContext=i,r=Ma(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Na(e,r,t),n!==null&&(hu(n,e,t),Pa(n,e,t))}function op(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function sp(e,t){op(e,t),(e=e.alternate)&&op(e,t)}function cp(e){if(e.tag===13||e.tag===31){var t=Kr(e,67108864);t!==null&&hu(t,e,67108864),sp(e,67108864)}}function lp(e){if(e.tag===13||e.tag===31){var t=pu();t=tt(t);var n=Kr(e,t);n!==null&&hu(n,e,t),sp(e,t)}}var up=!0;function dp(e,t,n,r){var i=F.T;F.T=null;var a=I.p;try{I.p=2,pp(e,t,n,r)}finally{I.p=a,F.T=i}}function fp(e,t,n,r){var i=F.T;F.T=null;var a=I.p;try{I.p=8,pp(e,t,n,r)}finally{I.p=a,F.T=i}}function pp(e,t,n,r){if(up){var i=mp(r);if(i===null)Ed(e,t,r,hp,n),Ep(e,r);else if(Op(i,e,t,n,r))r.stopPropagation();else if(Ep(e,r),t&4&&-1<Tp.indexOf(e)){for(;i!==null;){var a=ht(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=We(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Le(o);s.entanglements[1]|=c,o&=~c}id(a),!(Pl&6)&&(tu=Te()+500,ad(0,!1))}}break;case 31:case 13:s=Kr(a,2),s!==null&&hu(s,a,2),bu(),sp(a,2)}if(a=mp(r),a===null&&Ed(e,t,r,hp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ed(e,t,r,null,n)}}function mp(e){return e=Zt(e),gp(e)}var hp=null;function gp(e){if(hp=null,e=mt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return hp=e,null}function _p(e){switch(e){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(Ee()){case De:return 2;case Oe:return 8;case ke:case Ae:return 32;case je:return 268435456;default:return 32}default:return 32}}var vp=!1,yp=null,bp=null,xp=null,Sp=new Map,Cp=new Map,wp=[],Tp=`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 Ep(e,t){switch(e){case`focusin`:case`focusout`:yp=null;break;case`dragenter`:case`dragleave`:bp=null;break;case`mouseover`:case`mouseout`:xp=null;break;case`pointerover`:case`pointerout`:Sp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Cp.delete(t.pointerId)}}function Dp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=ht(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Op(e,t,n,r,i){switch(t){case`focusin`:return yp=Dp(yp,e,t,n,r,i),!0;case`dragenter`:return bp=Dp(bp,e,t,n,r,i),!0;case`mouseover`:return xp=Dp(xp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Sp.set(a,Dp(Sp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Cp.set(a,Dp(Cp.get(a)||null,e,t,n,r,i)),!0}return!1}function kp(e){var t=mt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,it(e.priority,function(){lp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,it(e.priority,function(){lp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ap(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xt=r,n.target.dispatchEvent(r),Xt=null}else return t=ht(n),t!==null&&cp(t),e.blockedOn=n,!1;t.shift()}return!0}function jp(e,t,n){Ap(e)&&n.delete(t)}function Mp(){vp=!1,yp!==null&&Ap(yp)&&(yp=null),bp!==null&&Ap(bp)&&(bp=null),xp!==null&&Ap(xp)&&(xp=null),Sp.forEach(jp),Cp.forEach(jp)}function Np(e,n){e.blockedOn===n&&(e.blockedOn=null,vp||(vp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Mp)))}var Pp=null;function Fp(e){Pp!==e&&(Pp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Pp===e&&(Pp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(gp(r||n)===null)continue;break}var a=ht(n);a!==null&&(e.splice(t,3),t-=3,_s(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Ip(e){function t(t){return Np(t,e)}yp!==null&&Np(yp,e),bp!==null&&Np(bp,e),xp!==null&&Np(xp,e),Sp.forEach(t),Cp.forEach(t);for(var n=0;n<wp.length;n++){var r=wp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<wp.length&&(n=wp[0],n.blockedOn===null);)kp(n),n.blockedOn===null&&wp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ot]||null;if(typeof a==`function`)o||Fp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ot]||null)s=o.formAction;else if(gp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Fp(n)}}}function Lp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Rp(e){this._internalRoot=e}zp.prototype.render=Rp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ap(n,pu(),e,t,null,null)},zp.prototype.unmount=Rp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ap(e.current,2,null,e,null,null),bu(),t[st]=null}};function zp(e){this._internalRoot=e}zp.prototype.unstable_scheduleHydration=function(e){if(e){var t=rt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wp.length&&t!==0&&t<wp[n].priority;n++);wp.splice(n,0,e),n===0&&kp(e)}};var Bp=n.version;if(Bp!==`19.2.7`)throw Error(i(527,Bp,`19.2.7`));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Vp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:F,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Hp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hp.isDisabled&&Hp.supportsFiber)try{Pe=Hp.inject(Vp),Fe=Hp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Bs,s=Vs,c=Hs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=rp(e,1,!1,null,null,n,r,null,o,s,c,Lp),e[st]=t.current,wd(e),new Rp(t)}})),y=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),b=u(p(),1),x=u(y(),1),S=``.replace(/\/$/,``);function C(e){return S?`${S}${e}`:e}async function w(e){let t=await fetch(C(e));if(!t.ok)throw Error(`API error: ${t.status}`);return t.json()}async function T(e,t=null,n={}){let r=t?{"Content-Type":`application/json`}:void 0,i=await fetch(C(e),{method:`POST`,...n,headers:{...r||{},...n.headers||{}},body:t?JSON.stringify(t):void 0});if(!i.ok)throw Error(`API error: ${i.status}`);return i.json()}var E={url:C,progress:()=>w(`/api/progress`),overview:()=>w(`/api/overview`),repos:()=>w(`/api/repos`),models:()=>w(`/api/models`),daily:()=>w(`/api/daily`),sessions:(e=``)=>w(`/api/sessions${e?`?q=${encodeURIComponent(e)}`:``}`),heatmap:()=>w(`/api/heatmap`),families:()=>w(`/api/families`),live:()=>new EventSource(C(`/api/live`)),rerun:()=>T(`/api/rerun`),startOverviewVideoExport:(e={})=>T(`/api/export/overview-video`,e),exportSupport:()=>w(`/api/export/support`),exportStatus:e=>w(`/api/export/${encodeURIComponent(e)}/status`),activeExport:()=>w(`/api/export/active`),exportRenderData:e=>w(`/api/export/${encodeURIComponent(e)}/render-data`)},D=c({__assign:()=>pe,__asyncDelegator:()=>oe,__asyncGenerator:()=>ae,__asyncValues:()=>se,__await:()=>ie,__awaiter:()=>M,__classPrivateFieldGet:()=>ue,__classPrivateFieldSet:()=>de,__createBinding:()=>me,__decorate:()=>A,__exportStar:()=>P,__extends:()=>O,__generator:()=>N,__importDefault:()=>le,__importStar:()=>L,__makeTemplateObject:()=>ce,__metadata:()=>ee,__param:()=>j,__read:()=>I,__rest:()=>k,__spread:()=>te,__spreadArray:()=>re,__spreadArrays:()=>ne,__values:()=>F});function O(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);fe(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function k(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function A(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function j(e,t){return function(n,r){t(n,r,e)}}function ee(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function M(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function N(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function P(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&me(t,e,n)}function F(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function I(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function te(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(I(arguments[t]));return e}function ne(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function re(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||t)}function ie(e){return this instanceof ie?(this.v=e,this):new ie(e)}function ae(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i={},o(`next`),o(`throw`),o(`return`),i[Symbol.asyncIterator]=function(){return this},i;function o(e){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{c(r[e](t))}catch(e){d(a[0][3],e)}}function c(e){e.value instanceof ie?Promise.resolve(e.value.v).then(l,u):d(a[0][2],e)}function l(e){s(`next`,e)}function u(e){s(`throw`,e)}function d(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function oe(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:ie(e[r](t)),done:r===`return`}:i?i(t):t}:i}}function se(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof F==`function`?F(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function ce(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function L(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&me(t,e,n);return he(t,e),t}function le(e){return e&&e.__esModule?e:{default:e}}function ue(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)}function de(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n}var fe,pe,me,he,R=o((()=>{fe=function(e,t){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},fe(e,t)},pe=function(){return pe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pe.apply(this,arguments)},me=Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),he=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}})),ge=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return`${t++}`}})),_e=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,n=null;return function(){var r=this,i=[...arguments];clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}}})),ve=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SizeSensorId=e.SensorTabIndex=e.SensorClassName=void 0,e.SizeSensorId=`size-sensor-id`,e.SensorClassName=`size-sensor-object`,e.SensorTabIndex=`-1`})),ye=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=r(_e()),n=ve();function r(e){return e&&e.__esModule?e:{default:e}}e.createSensor=function(e,r){var i=void 0,a=[],o=function(){getComputedStyle(e).position===`static`&&(e.style.position=`relative`);var t=document.createElement(`object`);return t.onload=function(){t.contentDocument.defaultView.addEventListener(`resize`,s),s()},t.style.display=`block`,t.style.position=`absolute`,t.style.top=`0`,t.style.left=`0`,t.style.height=`100%`,t.style.width=`100%`,t.style.overflow=`hidden`,t.style.pointerEvents=`none`,t.style.zIndex=`-1`,t.style.opacity=`0`,t.setAttribute(`class`,n.SensorClassName),t.setAttribute(`tabindex`,n.SensorTabIndex),t.type=`text/html`,e.appendChild(t),t.data=`about:blank`,t},s=(0,t.default)(function(){a.forEach(function(t){t(e)})}),c=function(e){i||=o(),a.indexOf(e)===-1&&a.push(e)},l=function(){i&&i.parentNode&&(i.contentDocument&&i.contentDocument.defaultView.removeEventListener(`resize`,s),i.parentNode.removeChild(i),e.removeAttribute(n.SizeSensorId),i=void 0,a=[],r&&r())};return{element:e,bind:c,destroy:l,unbind:function(e){var t=a.indexOf(e);t!==-1&&a.splice(t,1),a.length===0&&i&&l()}}}})),be=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=ve(),n=r(_e());function r(e){return e&&e.__esModule?e:{default:e}}e.createSensor=function(e,r){var i=void 0,a=[],o=(0,n.default)(function(){a.forEach(function(t){t(e)})}),s=function(){var t=new ResizeObserver(o);return t.observe(e),o(),t},c=function(e){i||=s(),a.indexOf(e)===-1&&a.push(e)},l=function(){i&&i.disconnect(),a=[],i=void 0,e.removeAttribute(t.SizeSensorId),r&&r()};return{element:e,bind:c,destroy:l,unbind:function(e){var t=a.indexOf(e);t!==-1&&a.splice(t,1),a.length===0&&i&&l()}}}})),xe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=ye(),n=be();e.createSensor=typeof ResizeObserver<`u`?n.createSensor:t.createSensor})),Se=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=e.Sensors=void 0;var t=i(ge()),n=xe(),r=ve();function i(e){return e&&e.__esModule?e:{default:e}}var a=e.Sensors={};function o(e){e&&a[e]&&delete a[e]}e.getSensor=function(e){var i=e.getAttribute(r.SizeSensorId);if(i&&a[i])return a[i];var s=(0,t.default)();e.setAttribute(r.SizeSensorId,s);var c=(0,n.createSensor)(e,function(){return o(s)});return a[s]=c,c},e.removeSensor=function(e){var t=e.element.getAttribute(r.SizeSensorId);e.destroy(),o(t)}})),Ce=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var t=Se();e.bind=function(e,n){var r=(0,t.getSensor)(e);return r.bind(n),function(){r.unbind(n)}},e.clear=function(e){var n=(0,t.getSensor)(e);(0,t.removeSensor)(n)},e.ver=`1.0.3`})),we=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pick=void 0;function t(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n}e.pick=t})),Te=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isFunction=void 0;function t(e){return typeof e==`function`}e.isFunction=t})),Ee=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isString=void 0;function t(e){return typeof e==`string`}e.isString=t})),De=s(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),Oe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=void 0,e.isEqual=(R(),d(D)).__importDefault(De()).default})),ke=u(s((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=(R(),d(D)),n=t.__importStar(p()),r=Ce(),i=we(),a=Te(),o=Ee(),s=Oe();e.default=function(e){t.__extends(c,e);function c(t){var n=e.call(this,t)||this;return n.echarts=t.echarts,n.ele=null,n.isInitialResize=!0,n.eventHandlerRefs={},n}return c.prototype.componentDidMount=function(){this.renderNewEcharts()},c.prototype.componentDidUpdate=function(e){var t=this.props.shouldSetOption;if(!((0,a.isFunction)(t)&&!t(e,this.props))){if(!(0,s.isEqual)(e.theme,this.props.theme)||!(0,s.isEqual)(e.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var n=this.getEchartsInstance();(0,s.isEqual)(e.onEvents,this.props.onEvents)||(this.unbindEvents(n),this.bindEvents(n,this.props.onEvents));var r=[`option`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`];(0,s.isEqual)((0,i.pick)(this.props,r),(0,i.pick)(e,r))||this.updateEChartsOption(),(!(0,s.isEqual)(e.style,this.props.style)||!(0,s.isEqual)(e.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 e=this;return t.__generator(this,function(n){return[2,new Promise(function(n){e.echarts.init(e.ele,e.props.theme,e.props.opts),e.getEchartsInstance().on(`finished`,function(){var r=e.ele.clientWidth,i=e.ele.clientHeight;e.echarts.dispose(e.ele);var a=t.__assign({width:r,height:i},e.props.opts);n(e.echarts.init(e.ele,e.props.theme,a))})})]})})},c.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},c.prototype.dispose=function(){if(this.ele){try{(0,r.clear)(this.ele)}catch(e){console.warn(e)}this.echarts.dispose(this.ele)}},c.prototype.renderNewEcharts=function(){return t.__awaiter(this,void 0,void 0,function(){var e,n,i,o,s,c,l=this;return t.__generator(this,function(t){switch(t.label){case 0:return e=this.props,n=e.onEvents,i=e.onChartReady,o=e.autoResize,s=o===void 0?!0:o,[4,this.initEchartsInstance()];case 1:return t.sent(),c=this.updateEChartsOption(),this.bindEvents(c,n||{}),(0,a.isFunction)(i)&&i(c),this.ele&&s&&(0,r.bind)(this.ele,function(){l.resize()}),[2]}})})},c.prototype.bindEvents=function(e,t){var n=this,r=function(t,r){if((0,o.isString)(t)&&(0,a.isFunction)(r)){var i=function(t){r(t,e)};e.on(t,i),n.eventHandlerRefs[t]=i}};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r(i,t[i])},c.prototype.unbindEvents=function(e){for(var t=0,n=Object.entries(this.eventHandlerRefs);t<n.length;t++){var r=n[t],i=r[0],a=r[1];e.off(i,a)}this.eventHandlerRefs={}},c.prototype.updateEChartsOption=function(){var e=this.props,t=e.option,n=e.notMerge,r=n===void 0?!1:n,i=e.replaceMerge,a=i===void 0?null:i,o=e.lazyUpdate,s=o===void 0?!1:o,c=e.showLoading,l=e.loadingOption,u=l===void 0?null:l,d=this.getEchartsInstance();return d.setOption(t,{notMerge:r,replaceMerge:a,lazyUpdate:s}),c?d.showLoading(u):d.hideLoading(),d},c.prototype.resize=function(){var e=this.getEchartsInstance();if(!this.isInitialResize)try{e.resize({width:`auto`,height:`auto`})}catch(e){console.warn(e)}this.isInitialResize=!1},c.prototype.render=function(){var e=this,r=this.props,i=r.style,a=r.className,o=a===void 0?``:a;r.echarts,r.option,r.theme,r.notMerge,r.replaceMerge,r.lazyUpdate,r.showLoading,r.loadingOption,r.opts,r.onChartReady,r.onEvents,r.shouldSetOption,r.autoResize;var s=t.__rest(r,[`style`,`className`,`echarts`,`option`,`theme`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`,`opts`,`onChartReady`,`onEvents`,`shouldSetOption`,`autoResize`]),c=t.__assign({height:300},i);return n.default.createElement(`div`,t.__assign({ref:function(t){e.ele=t},style:c,className:`echarts-for-react ${o}`},s))},c}(n.PureComponent)}))(),1),Ae=ke.default?.default??ke.default;function je(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return Math.abs(t)}var Me=[`#6366f1`,`#f59e0b`,`#10b981`,`#ef4444`,`#8b5cf6`,`#ec4899`,`#06b6d4`,`#f97316`,`#14b8a6`,`#a855f7`,`#84cc16`,`#e879f9`,`#22d3ee`,`#fb923c`,`#34d399`,`#c084fc`,`#fbbf24`,`#2dd4bf`,`#f472b6`,`#a3e635`],Ne={"gpt-5.5":`#22c790`,"gpt-5.4":`#fa4141`,"gpt-5-mini":`#fb7185`,"gpt-5.4-mini":`#fb7185`,"gpt-5-nano":`#fda4af`,"gpt-5.4-nano":`#fda4af`,"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`},Pe={"codex-mini-latest":`o4-mini`,"gpt 5.5":`gpt-5.5`,"gpt-5.5":`gpt-5.5`,"gpt 5 mini":`gpt-5-mini`,"gpt-5 mini":`gpt-5-mini`,"gpt 5.4 mini":`gpt-5.4-mini`,"gpt-5.4 mini":`gpt-5.4-mini`,"gpt 5 nano":`gpt-5-nano`,"gpt-5 nano":`gpt-5-nano`,"gpt 5.4 nano":`gpt-5.4-nano`,"gpt-5.4 nano":`gpt-5.4-nano`},Fe=/[\u2010-\u2015\u2212\uFE58\uFE63\uFF0D]/g,Ie={review:`#06b6d4`,exploration:`#f97316`,planning:`#eab308`,memory:`#ec4899`,generic:`#64748b`},Le={low:`#10b981`,medium:`#06b6d4`,high:`#f59e0b`,xhigh:`#a855f7`,"x-high":`#a855f7`,unknown:`#64748b`};function Re(e){if(!e)return`unknown`;let t=String(e).toLowerCase().trim().replace(/-/g,``);return t===`low`?`low`:t===`medium`?`medium`:t===`high`?`high`:t===`xhigh`?`xhigh`:t===`unknown`?`unknown`:t}function ze(e){return Me[je(e)%Me.length]}function Be(e){let t=e.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i);if(!t)return`#ffffff`;let n=parseInt(t[1],16)/255,r=parseInt(t[2],16)/255,i=parseInt(t[3],16)/255;return .2126*n+.7152*r+.0722*i>.5?`#1f2937`:`#ffffff`}function Ve(e,t,n){t/=100,n/=100;let r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e/60%2-1)),a=n-r/2,o=0,s=0,c=0;e<60?(o=r,s=i):e<120?(o=i,s=r):e<180?(s=r,c=i):e<240?(s=i,c=r):e<300?(o=i,c=r):(o=r,c=i);let l=e=>Math.round((e+a)*255).toString(16).padStart(2,`0`);return`#`+l(o)+l(s)+l(c)}function He(e){if(!e)return``;let t=String(e).normalize(`NFKC`).replace(Fe,`-`).toLowerCase().trim().replace(/\s+/g,` `);return Pe[t]||t}function Ue(e){let t=He(e);return Ne[t]?Ne[t]:Ve(je(t||String(e||`unknown`))%300,72,62)}function We(e){return Ie[e]||`#64748b`}function Ge(e){return Le[Re(e)]??`#64748b`}var Ke=7,qe=304,Je=.18,Ye=1.35;function Xe(e,{seekMs:t=0,startMs:n=0,endMs:r=1}={}){let i=e?.dates||[];if(!i.length)return{dates:[],series:[],cursor:0,xMin:-.5,xMax:Ke-.5,yMax:1,barWidth:1,barMaxWidth:1};let a=i.length-1,o=Math.min(Ke-1,a),s=Math.max(0,n||0),c=Math.max(s+1,r||s+1)-s,l=Math.max(0,Math.min(c,(t||0)-s)),u=Ze(i.length,l,c),d=u<=Ke?o:Math.min(a,u-.5),f=Math.max(o,Math.min(a,Math.ceil(u))),p=i.slice(0,f+1),m=-.5,h=Math.max(Ke-.5,d+.5),g=Math.max(Ke,h-m),_=et(e,0,o),v=Math.max(1.8,Math.min(24,qe/g*.72)),y=(e.series||[]).map(e=>({...e,data:p.map((t,n)=>[n,Math.max(0,Number(e.data?.[n])||0)*$e(n,u,i.length)])}));return{dates:p,series:y,cursor:d,xMin:m,xMax:h,yMax:Math.max(1,_,tt(y)),barWidth:v,barMaxWidth:Math.max(2,Math.min(26,v*1.1))}}function Ze(e,t,n){let r=Math.max(1,Math.floor(Number(e)||1)),i=Qe(r,n),a=Math.max(0,Math.min(n,t||0)),o=0;for(let e=0;e<i.length;e+=1){let t=Math.max(1,i[e]),n=o+t;if(a<=n)return Math.min(r,e+(a-o)/t);o=n}return r}function Qe(e,t){let n=Math.max(1,Math.floor(Number(e)||1)),r=Math.min(n,Math.max(Ke,Math.ceil(n*.08))),i=Math.min(n,Math.max(4,Math.ceil(n*.05))),a=Array.from({length:n},(e,t)=>{let a=r<=1?1:t/(r-1),o=t<r?.95*(1-it(a)):0,s=n-1-t,c=i<=1?1:1-s/(i-1),l=s<i?2.2*it(c):0;return 1+o+l}),o=a.reduce((e,t)=>e+t,0)||1,s=Math.max(1,t||1)/o;return a.map(e=>e*s)}function $e(e,t,n){return t<=0?0:t>=n?1:rt(nt((t-e+Je)/Ye))}function et(e,t,n){let r=e?.dates||[];if(!r.length)return 1;let i=Math.max(0,Math.min(r.length-1,t||0)),a=Math.max(i,Math.min(r.length-1,n??r.length-1)),o=0;for(let t=i;t<=a;t+=1){let n=0;for(let r of e.series||[])n+=Math.max(0,Number(r?.data?.[t])||0);o=Math.max(o,n)}return Math.max(1,o)}function tt(e){let t=Math.max(0,...e.map(e=>e.data?.length||0)),n=0;for(let r=0;r<t;r+=1){let t=0;for(let n of e)t+=Math.max(0,Number(n.data?.[r]?.[1])||0);n=Math.max(n,t)}return n}function nt(e){return Math.max(0,Math.min(1,Number(e)||0))}function rt(e){return 1-(1-nt(e))**2.35}function it(e){let t=nt(e);return t<.5?4*t*t*t:1-(-2*t+2)**3/2}var at=s((e=>{var t=Symbol.for(`react.transitional.element`);function n(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.jsx=n,e.jsxs=n})),z=s(((e,t)=>{t.exports=at()}))();function ot({daily:e,seekMs:t=0,timing:n=null}){let r=(0,b.useRef)(null),[i,a]=(0,b.useState)({width:304,height:104}),o=(0,b.useMemo)(()=>Xe(e,{seekMs:t,startMs:n?.startMs??0,endMs:n?.endMs??1}),[e,t,n?.startMs,n?.endMs]);if((0,b.useLayoutEffect)(()=>{let e=r.current;if(!e)return;let t=()=>{let t=e.getBoundingClientRect();a(e=>{let n=Math.max(1,Math.round(t.width)),r=Math.max(1,Math.round(t.height));return e.width===n&&e.height===r?e:{width:n,height:r}})};if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]),!e?.dates?.length)return(0,z.jsxs)(`div`,{className:`overview-daily-spark overview-daily-spark-empty`,children:[(0,z.jsx)(`span`,{className:`overview-daily-spark-title`,children:`Daily Usage`}),(0,z.jsx)(`span`,{className:`overview-daily-spark-empty-text`,children:`No daily data`})]});let s=st(o),c=Math.max(1,o.xMax-o.xMin),l=Math.max(1,Math.ceil(c)),u=ut(Math.max(2,Math.min(24,i.width/l*.72)));return(0,z.jsxs)(`div`,{className:`overview-daily-spark`,children:[(0,z.jsx)(`span`,{className:`overview-daily-spark-title`,children:`Daily Usage`}),(0,z.jsx)(`div`,{className:`overview-daily-spark-chart`,children:(0,z.jsx)(`div`,{ref:r,className:`overview-daily-spark-bars`,"aria-hidden":`true`,children:s.map(e=>{let t=ut(ut((e.index-o.xMin)/c*i.width)-u/2),n=ct(e.segments,o.yMax,i.height);return(0,z.jsx)(`div`,{className:`overview-daily-spark-bar`,style:{left:0,transform:`translate3d(${t}px, 0, 0)`,width:`${u}px`},children:n.map(({segment:e,bottomPx:t,heightPx:r},i)=>{let a=i===0,o=i===n.length-1,s=u>=3&&r>=3,c=s?lt({isTop:o,isBottom:a,segmentCount:n.length}):0;return(0,z.jsx)(`span`,{className:`overview-daily-spark-segment`,style:{bottom:`${t}px`,height:`${r}px`,background:e.color,borderRadius:c,boxShadow:s&&o&&!a?`0 -1px 0 rgba(6, 8, 15, 0.45)`:void 0}},e.key)})},e.date)})})})]})}function st(e){return(e?.dates||[]).map((t,n)=>{let r=e.series?.[0]?.data?.[n],i=Array.isArray(r)?r[0]:n,a=0,o=[];for(let t of e.series||[]){let e=t.data?.[n],r=Math.max(0,Number(Array.isArray(e)?e[1]:e)||0);r<=0||(o.push({key:t.key,color:Ue(t.key),bottom:a,value:r}),a+=r)}return{date:t,index:i,segments:o}})}function ct(e,t,n){let r=Math.max(1,n)/Math.max(1,Number(t)||1),i=0,a=[];for(let t of e||[]){let e=Math.max(0,t.value*r);if(e<.5)continue;let n=ut(Math.max(.5,e));a.push({segment:t,bottomPx:i,heightPx:n}),i=ut(i+n)}return a}function lt({isTop:e,isBottom:t,segmentCount:n}){return e&&t?`2px`:n>1&&!e?0:e?`2px 2px 0 0`:0}function ut(e){return Math.round(e*2)/2}var dt=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),ft=new(function(){function e(){this.browser=new dt,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 e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(ft.wxa=!0,ft.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?ft.worker=!0:!ft.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(ft.node=!0,ft.svgSupported=!0):pt(navigator.userAgent,ft);function pt(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var mt=`12px sans-serif`,ht=20,gt=100,_t=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function vt(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-ht)/gt}return t}var yt=vt(_t),bt={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=bt.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=yt[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}};function xt(e){for(var t in bt)bt.hasOwnProperty(t)&&e[t]&&(bt[t]=e[t])}var St=c({EPSILON:()=>kn,HashMap:()=>Cn,RADIAN_TO_DEGREE:()=>On,assert:()=>hn,assignProps:()=>Vt,bind:()=>U,clone:()=>Rt,concatArray:()=>wn,createCanvas:()=>Ut,createHashMap:()=>J,createObject:()=>Tn,curry:()=>$t,defaults:()=>Ht,disableUserSelect:()=>En,each:()=>V,eqNaN:()=>un,extend:()=>B,filter:()=>Yt,find:()=>Xt,guid:()=>It,hasOwn:()=>Y,indexOf:()=>Wt,inherits:()=>Gt,isArray:()=>W,isArrayLike:()=>qt,isBuiltInObject:()=>rn,isDom:()=>on,isFunction:()=>en,isGradientObject:()=>sn,isImagePatternObject:()=>cn,isNumber:()=>nn,isObject:()=>K,isPrimitive:()=>yn,isRegExp:()=>ln,isString:()=>G,isStringSafe:()=>tn,isTypedArray:()=>an,keys:()=>Zt,logError:()=>Lt,map:()=>H,merge:()=>zt,mergeAll:()=>Bt,mixin:()=>Kt,noop:()=>Dn,normalizeCssArray:()=>mn,reduce:()=>Jt,retrieve:()=>dn,retrieve2:()=>q,retrieve3:()=>fn,setAsPrimitive:()=>vn,slice:()=>pn,trim:()=>gn}),Ct=Jt([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),wt=Jt([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),Tt=Object.prototype.toString,Et=Array.prototype,Dt=Et.forEach,Ot=Et.filter,kt=Et.slice,At=Et.map,jt=function(){}.constructor,Mt=jt?jt.prototype:null,Nt=`__proto__`,Pt=2311,Ft=2**53-1;function It(){return Pt>=Ft&&(Pt=0),Pt++}function Lt(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function Rt(e){if(typeof e!=`object`||!e)return e;var t=e,n=Tt.call(e);if(n===`[object Array]`){if(!yn(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=Rt(e[r])}}else if(wt[n]){if(!yn(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!Ct[n]&&!yn(e)&&!on(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==Nt&&(t[o]=Rt(e[o]));return t}function zt(e,t,n){if(!K(t)||!K(e))return n?Rt(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Nt){var i=e[r],a=t[r];K(a)&&K(i)&&!W(a)&&!W(i)&&!on(a)&&!on(i)&&!rn(a)&&!rn(i)&&!yn(a)&&!yn(i)?zt(i,a,n):(n||!(r in e))&&(e[r]=Rt(t[r]))}return e}function Bt(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=zt(n,e[r],t);return n}function B(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Nt&&(e[n]=t[n]);return e}function Vt(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function Ht(e,t,n){for(var r=Zt(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var Ut=bt.createCanvas;function Wt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function Gt(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function Kt(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else Ht(e,t,n)}function qt(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function V(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Dt)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function H(e,t,n){if(!e)return[];if(!t)return pn(e);if(e.map&&e.map===At)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function Jt(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function Yt(e,t,n){if(!e)return[];if(!t)return pn(e);if(e.filter&&e.filter===Ot)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Xt(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function Zt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Qt(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(kt.call(arguments)))}}var U=Mt&&en(Mt.bind)?Mt.call.bind(Mt.bind):Qt;function $t(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(kt.call(arguments)))}}function W(e){return Array.isArray?Array.isArray(e):Tt.call(e)===`[object Array]`}function en(e){return typeof e==`function`}function G(e){return typeof e==`string`}function tn(e){return Tt.call(e)===`[object String]`}function nn(e){return typeof e==`number`}function K(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function rn(e){return!!Ct[Tt.call(e)]}function an(e){return!!wt[Tt.call(e)]}function on(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function sn(e){return e.colorStops!=null}function cn(e){return e.image!=null}function ln(e){return Tt.call(e)===`[object RegExp]`}function un(e){return e!==e}function dn(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function q(e,t){return e??t}function fn(e,t,n){return e??t??n}function pn(e){var t=[...arguments].slice(1);return kt.apply(e,t)}function mn(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function hn(e,t){if(!e)throw Error(t)}function gn(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var _n=`__ec_primitive__`;function vn(e){e[_n]=!0}function yn(e){return e[_n]}var bn=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return Zt(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),xn=typeof Map==`function`;function Sn(){return xn?new Map:new bn}var Cn=function(){function e(t){var n=W(t);this.data=Sn();var r=this;t instanceof e?t.each(i):t&&V(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return xn?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function J(e){return new Cn(e)}function wn(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Tn(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&B(n,t),n}function En(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function Y(e,t){return e.hasOwnProperty(t)}function Dn(){}var On=180/Math.PI,kn=2**-52||2**-52,An=c({add:()=>Fn,applyTransform:()=>$n,clone:()=>Nn,copy:()=>Mn,create:()=>jn,dist:()=>Jn,distSquare:()=>Xn,distance:()=>qn,distanceSquare:()=>Yn,div:()=>Un,dot:()=>Wn,len:()=>Rn,lenSquare:()=>Bn,length:()=>zn,lengthSquare:()=>Vn,lerp:()=>Qn,max:()=>tr,min:()=>er,mul:()=>Hn,negate:()=>Zn,normalize:()=>Kn,scale:()=>Gn,scaleAndAdd:()=>In,set:()=>Pn,sub:()=>Ln});function jn(e,t){return e??=0,t??=0,[e,t]}function Mn(e,t){return e[0]=t[0],e[1]=t[1],e}function Nn(e){return[e[0],e[1]]}function Pn(e,t,n){return e[0]=t,e[1]=n,e}function Fn(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function In(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Ln(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Rn(e){return Math.sqrt(Bn(e))}var zn=Rn;function Bn(e){return e[0]*e[0]+e[1]*e[1]}var Vn=Bn;function Hn(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Un(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function Wn(e,t){return e[0]*t[0]+e[1]*t[1]}function Gn(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Kn(e,t){var n=Rn(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function qn(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Jn=qn;function Yn(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Xn=Yn;function Zn(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Qn(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function $n(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function er(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function tr(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var nr=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),rr=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new nr(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new nr(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new nr(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new nr(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new nr(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new nr(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),ir=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),ar=Math.log(2);function or(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/ar);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*or(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function sr(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=or(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*or(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var cr=`___zrEVENTSAVED`,lr=[];function ur(e,t,n,r,i){return fr(lr,t,r,i,!0)&&fr(e,n,lr[0],lr[1])}function dr(e,t){e&&n(e),t&&n(t);function n(e){var t=e[cr];t&&(t.clearMarkers&&t.clearMarkers(),delete e[cr])}}function fr(e,t,n,r,i){if(t.getBoundingClientRect&&ft.domSupported&&!hr(t)){var a=t[cr]||(t[cr]={}),o=mr(pr(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function pr(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){V(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function mr(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?sr(s,o):sr(o,s))}function hr(e){return e.nodeName.toUpperCase()===`CANVAS`}var gr=/([&<>"'])/g,_r={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function vr(e){return e==null?``:(e+``).replace(gr,function(e,t){return _r[t]})}var yr=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,br=[],xr=ft.browser.firefox&&+ft.browser.version.split(`.`)[0]<39;function Sr(e,t,n,r){return n||={},r?Cr(e,t,n):xr&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Cr(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Cr(e,t,n){if(ft.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(hr(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(fr(br,e,r,i)){n.zrX=br[0],n.zrY=br[1];return}}n.zrX=n.zrY=0}function wr(e){return e||window.event}function Tr(e,t,n){if(t=wr(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&Sr(e,i,t,n)}else{Sr(e,t,t,n);var a=Er(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&yr.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Er(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function Dr(e,t,n,r){e.addEventListener(t,n,r)}function Or(e,t,n,r){e.removeEventListener(t,n,r)}var kr=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Ar(e){return e.which===2||e.which===3}var jr=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=Sr(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in Pr)if(Pr.hasOwnProperty(t)){var n=Pr[t](this._track,e);if(n)return n}},e}();function Mr(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Nr(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Pr={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Mr(r)/Mr(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Nr(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},Fr=c({clone:()=>Wr,copy:()=>Rr,create:()=>Ir,identity:()=>Lr,invert:()=>Ur,mul:()=>zr,rotate:()=>Vr,scale:()=>Hr,translate:()=>Br});function Ir(){return[1,0,0,1,0,0]}function Lr(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Rr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function zr(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function Br(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Vr(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function Hr(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Ur(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function Wr(e){var t=Ir();return Rr(t,e),t}var Gr=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Kr=Math.min,qr=Math.max,Jr=Math.abs,Yr=[`x`,`y`],Xr=[`width`,`height`],Zr=new Gr,Qr=new Gr,$r=new Gr,ei=new Gr,ti=fi(),ni=ti.minTv,ri=ti.maxTv,ii=[0,0],X=function(){function e(e,t,n,r){ai(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=Kr(e.x,this.x),n=Kr(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=qr(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=qr(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return si(Ir(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Gr.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=ai(ci,t.x,t.y,t.width,t.height)),n instanceof e||(n=ai(li,n.x,n.y,n.width,n.height));var s=!!r;ti.reset(i,s);var c=ti.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(ii[0]=1/0,ii[1]=0,di(l,u,p,m,0,s,a,o),di(d,f,h,g,1,s,a,o),s&&Gr.copy(r,_?ti.useDir?ti.dirMinTv:ni:ri)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){oi(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&oi(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Zr.x=$r.x=t.x,Zr.y=ei.y=t.y,Qr.x=ei.x=t.x+t.width,Qr.y=$r.y=t.y+t.height,Zr.transform(n),ei.transform(n),Qr.transform(n),$r.transform(n),e.x=Kr(Zr.x,Qr.x,$r.x,ei.x),e.y=Kr(Zr.y,Qr.y,$r.y,ei.y);var s=qr(Zr.x,Qr.x,$r.x,ei.x),c=qr(Zr.y,Qr.y,$r.y,ei.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=Lr(e||[]),Br(e,e,Pn(ui,-t.x,-t.y)),Hr(e,e,Pn(ui,r,i)),Br(e,e,Pn(ui,n.x,n.y)),e},e}();X.create;var ai=X.set,oi=X.copy,si=X.calculateTransform;X.applyTransform,X.contain;var ci=new X(0,0,0,0),li=new X(0,0,0,0),ui=[];function di(e,t,n,r,i,a,o,s){var c=Jr(t-n),l=Jr(r-e),u=Kr(c,l),d=Yr[i],f=Yr[1-i],p=Xr[i];t<n||r<e?c<l?(a&&(ri[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(ri[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=qr(e,n),o[p]=Kr(t,r)-o[d]),a&&(u<ii[0]||ti.useDir)&&(ii[0]=Kr(u,ii[0]),(c<l||!ti.bidirectional)&&(ni[d]=c,ni[f]=0,ti.useDir&&ti.calcDirMTV()),(c>=l||!ti.bidirectional)&&(ni[d]=-l,ni[f]=0,ti.useDir&&ti.calcDirMTV())))}function fi(){var e=0,t=new Gr,n=new Gr,r={minTv:new Gr,maxTv:new Gr,useDir:!1,dirMinTv:new Gr,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=qr(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return Jr(e)<1e-10}return r}R();var pi=`silent`;function mi(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.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:hi}}function hi(){kr(this.event)}var gi=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ir),_i=function(){function e(e,t){this.x=e,this.y=t}return e}(),vi=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],yi=new X(0,0,0,0),bi=function(e){O(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new _i(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new gi,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new rr(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(V(vi,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Ci(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new _i(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new _i(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=mi(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new _i(e,t);if(Si(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new X(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(yi.copy(u.getBoundingRect()),u.transform&&yi.applyTransform(u.transform),yi.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(Si(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new jr;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new _i;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(ir);V([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){bi.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Ci(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||Jn(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function xi(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return i?pi:!0}return!1}function Si(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=xi(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==pi)){t.target=o;break}}}function Ci(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var wi=32,Ti=7;function Ei(e){for(var t=0;e>=wi;)t|=e&1,e>>=1;return e+t}function Di(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;Oi(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Oi(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function ki(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Ai(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function ji(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Mi(e,t){var n=Ti,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=ji(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Ai(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=ji(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=Ai(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=Ti||m>=Ti);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-ji(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-Ai(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=Ti||g>=Ti);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function Ni(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<wi){a=Di(e,n,r,t),ki(e,n,r,n+a,t);return}var o=Mi(e,t),s=Ei(i);do{if(a=Di(e,n,r,t),a<s){var c=i;c>s&&(c=s),ki(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var Pi=!1;function Fi(){Pi||(Pi=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Ii(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Li=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ii}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Ni(n,Ii)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(Fi(),p.z=0),isNaN(p.z2)&&(Fi(),p.z2=0),isNaN(p.zlevel)&&(Fi(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=Wt(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Ri=ft.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},zi={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-zi.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?zi.bounceIn(e*2)*.5:zi.bounceOut(e*2-1)*.5+.5}},Bi=Math.pow,Vi=Math.sqrt,Hi=1e-8,Ui=1e-4,Wi=Vi(3),Gi=1/3,Ki=jn(),qi=jn(),Ji=jn();function Yi(e){return e>-Hi&&e<Hi}function Xi(e){return e>Hi||e<-Hi}function Zi(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Qi(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function $i(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(Yi(u)&&Yi(d))if(Yi(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(Yi(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Vi(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Bi(-y,Gi):Bi(y,Gi),b=b<0?-Bi(-b,Gi):Bi(b,Gi);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Vi(u*u*u)),S=Math.acos(x)/3,C=Vi(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Wi*Math.sin(S)))/(3*o),T=(-s+C*(w-Wi*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function ea(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(Yi(o)){if(Xi(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(Yi(u))i[0]=-a/(2*o);else if(u>0){var d=Vi(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function ta(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function na(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Ki[0]=c,Ki[1]=l;for(var v=0;v<1;v+=.05)qi[0]=Zi(e,n,i,o,v),qi[1]=Zi(t,r,a,s,v),g=Xn(Ki,qi),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Ui);y++)m=d-f,h=d+f,qi[0]=Zi(e,n,i,o,m),qi[1]=Zi(t,r,a,s,m),g=Xn(qi,Ki),m>=0&&g<p?(d=m,p=g):(Ji[0]=Zi(e,n,i,o,h),Ji[1]=Zi(t,r,a,s,h),_=Xn(Ji,Ki),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Zi(e,n,i,o,d),u[1]=Zi(t,r,a,s,d)),Vi(p)}function ra(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Zi(e,n,i,o,m),g=Zi(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function ia(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function aa(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function oa(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(Yi(a)){if(Xi(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(Yi(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Vi(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function sa(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function ca(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function la(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Ki[0]=o,Ki[1]=s;for(var f=0;f<1;f+=.05){qi[0]=ia(e,n,i,f),qi[1]=ia(t,r,a,f);var p=Xn(Ki,qi);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Ui);m++){var h=l-u,g=l+u;qi[0]=ia(e,n,i,h),qi[1]=ia(t,r,a,h);var p=Xn(qi,Ki);if(h>=0&&p<d)l=h,d=p;else{Ji[0]=ia(e,n,i,g),Ji[1]=ia(t,r,a,g);var _=Xn(Ji,Ki);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=ia(e,n,i,l),c[1]=ia(t,r,a,l)),Vi(d)}function ua(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=ia(e,n,i,f),m=ia(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var da=/cubic-bezier\(([0-9,\.e ]+)\)/;function fa(e){var t=e&&da.exec(e);if(t){var n=t[1].split(`,`),r=+gn(n[0]),i=+gn(n[1]),a=+gn(n[2]),o=+gn(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:$i(0,r,a,1,e,s)&&Zi(0,i,o,1,s[0])}}}var pa=function(){function e(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||Dn,this.ondestroy=e.ondestroy||Dn,this.onrestart=e.onrestart||Dn,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=en(e)?e:zi[e]||fa(e)},e}(),ma=function(){function e(e){this.value=e}return e}(),ha=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new ma(e);return this.insertEntry(t),t},e.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++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),ga=function(){function e(e){this._list=new ha,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new ma(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),_a=c({fastLerp:()=>Ia,fastMapToColor:()=>La,lerp:()=>Ra,lift:()=>Pa,liftColor:()=>Ka,lum:()=>Ua,mapToColor:()=>za,modifyAlpha:()=>Va,modifyHSL:()=>Ba,parse:()=>ja,parseCssFloat:()=>Ca,parseCssInt:()=>Sa,random:()=>Wa,stringify:()=>Ha,toHex:()=>Fa}),va={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 ya(e){return e=Math.round(e),e<0?0:e>255?255:e}function ba(e){return e=Math.round(e),e<0?0:e>360?360:e}function xa(e){return e<0?0:e>1?1:e}function Sa(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?ya(parseFloat(t)/100*255):ya(parseInt(t,10))}function Ca(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?xa(parseFloat(t)/100):xa(parseFloat(t))}function wa(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Ta(e,t,n){return e+(t-e)*n}function Ea(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Da(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Oa=new ga(20),ka=null;function Aa(e,t){ka&&Da(ka,t),ka=Oa.put(e,ka||t.slice())}function ja(e,t){if(e){t||=[];var n=Oa.get(e);if(n)return Da(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in va)return Da(t,va[r]),Aa(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Ea(t,0,0,0,1);return}return Ea(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Aa(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ea(t,0,0,0,1);return}return Ea(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Aa(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Ea(t,+l[0],+l[1],+l[2],1):Ea(t,0,0,0,1);u=Ca(l.pop());case`rgb`:if(l.length>=3)return Ea(t,Sa(l[0]),Sa(l[1]),Sa(l[2]),l.length===3?u:Ca(l[3])),Aa(e,t),t;Ea(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Ea(t,0,0,0,1);return}return l[3]=Ca(l[3]),Ma(l,t),Aa(e,t),t;case`hsl`:if(l.length!==3){Ea(t,0,0,0,1);return}return Ma(l,t),Aa(e,t),t;default:return}}Ea(t,0,0,0,1)}}function Ma(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Ca(e[1]),i=Ca(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Ea(t,ya(wa(o,a,n+1/3)*255),ya(wa(o,a,n)*255),ya(wa(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Na(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function Pa(e,t){var n=ja(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Ha(n,n.length===4?`rgba`:`rgb`)}}function Fa(e){var t=ja(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Ia(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=ya(Ta(o[0],s[0],c)),n[1]=ya(Ta(o[1],s[1],c)),n[2]=ya(Ta(o[2],s[2],c)),n[3]=xa(Ta(o[3],s[3],c)),n}}var La=Ia;function Ra(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=ja(t[i]),s=ja(t[a]),c=r-i,l=Ha([ya(Ta(o[0],s[0],c)),ya(Ta(o[1],s[1],c)),ya(Ta(o[2],s[2],c)),xa(Ta(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}var za=Ra;function Ba(e,t,n,r){var i=ja(e);if(e)return i=Na(i),t!=null&&(i[0]=ba(en(t)?t(i[0]):t)),n!=null&&(i[1]=Ca(en(n)?n(i[1]):n)),r!=null&&(i[2]=Ca(en(r)?r(i[2]):r)),Ha(Ma(i),`rgba`)}function Va(e,t){var n=ja(e);if(n&&t!=null)return n[3]=xa(t),Ha(n,`rgba`)}function Ha(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Ua(e,t){var n=ja(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function Wa(){return Ha([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}var Ga=new ga(100);function Ka(e){if(G(e)){var t=Ga.get(e);return t||(t=Pa(e,-.1),Ga.put(e,t)),t}else if(sn(e)){var n=B({},e);return n.colorStops=H(e.colorStops,function(e){return{offset:e.offset,color:Pa(e.color,-.1)}}),n}return e}function qa(e){return e.type===`linear`}function Ja(e){return e.type===`radial`}(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})();var Ya=Array.prototype.slice;function Xa(e,t,n){return(t-e)*n+e}function Za(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Xa(t[a],n[a],r);return e}function Qa(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Xa(t[o][s],n[o][s],r)}return e}function $a(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function eo(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function to(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function no(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Ya.call(i[s]));for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function ro(e){if(qt(e)){var t=e.length;if(qt(e[0])){for(var n=[],r=0;r<t;r++)n.push(Ya.call(e[r]));return n}return Ya.call(e)}return e}function io(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function ao(e){return qt(e&&e[0])?2:1}var oo=0,so=1,co=2,lo=3,uo=4,fo=5,po=6;function mo(e){return e===uo||e===fo}function ho(e){return e===so||e===co}var go=[0,0,0,0],_o=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=po,s=t;if(qt(t)){var c=ao(t);o=c,(c===1&&!nn(t[0])||c===2&&!nn(t[0][0]))&&(a=!0)}else if(nn(t)&&!un(t))o=oo;else if(G(t))if(!isNaN(+t))o=oo;else{var l=ja(t);l&&(s=l,o=lo)}else if(sn(t)){var u=B({},s);u.colorStops=H(t.colorStops,function(e){return{offset:e.offset,color:ja(e.color)}}),qa(t)?o=uo:Ja(t)&&(o=fo),s=u}i===0?this.valType=o:(o!==this.valType||o===po)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=en(n)?n:zi[n]||fa(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=ho(r),c=mo(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?no(d,f,r):c&&to(d.colorStops,f.colorStops))}if(!o&&r!==fo&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===oo?n[l].additiveValue=n[l].value-p:r===lo?n[l].additiveValue=$a([],n[l].value,p,-1):ho(r)&&(n[l].additiveValue=r===so?$a([],n[l].value,p,-1):eo([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===lo,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?go:e[s];if((ho(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(ho(i))i===so?Za(g,f[r],p[r],h):Qa(g,f[r],p[r],h);else if(mo(i)){var _=f[r],v=p[r],y=i===uo;e[s]={type:y?`linear`:`radial`,x:Xa(_.x,v.x,h),y:Xa(_.y,v.y,h),colorStops:H(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Xa(e.offset,n.offset,h),color:io(Za([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Xa(_.x2,v.x2,h),e[s].y2=Xa(_.y2,v.y2,h)):e[s].r=Xa(_.r,v.r,h)}else if(c)Za(g,f[r],p[r],h),n||(e[s]=io(g));else{var b=Xa(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===oo?e[n]=e[n]+r:t===lo?(ja(e[n],go),$a(go,go,r,1),e[n]=io(go)):t===so?$a(e[n],e[n],r,1):t===co&&eo(e[n],e[n],r,1)},e}(),vo=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){Lt(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Zt(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new _o(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===lo&&c&&(c=io(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,ro(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ro(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new pa({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return H(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=ro(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=Zt(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();R();function yo(){return new Date().getTime()}var bo=function(e){O(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=yo()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(Ri(t),!e._paused&&e.update())}Ri(t)},t.prototype.start=function(){this._running||(this._time=yo(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=yo(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=yo()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new vo(e,t.loop);return this.addAnimator(n),n},t}(ir);R();var xo=300,So=ft.domSupported,Co=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:H(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),wo={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},To=!1;function Eo(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Do(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Oo(e){e&&(e.zrByTouch=!0)}function ko(e,t){return Tr(e.dom,new jo(e,t),!0)}function Ao(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var jo=function(){function e(e,t){this.stopPropagation=Dn,this.stopImmediatePropagation=Dn,this.preventDefault=Dn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Mo={mousedown:function(e){e=Tr(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Tr(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=Tr(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Tr(this.dom,e);var t=e.toElement||e.relatedTarget;Ao(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){To=!0,e=Tr(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){To||(e=Tr(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Tr(this.dom,e),Oo(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Mo.mousemove.call(this,e),Mo.mousedown.call(this,e)},touchmove:function(e){e=Tr(this.dom,e),Oo(e),this.handler.processGesture(e,`change`),Mo.mousemove.call(this,e)},touchend:function(e){e=Tr(this.dom,e),Oo(e),this.handler.processGesture(e,`end`),Mo.mouseup.call(this,e),new Date-+this.__lastTouchMoment<xo&&Mo.click.call(this,e)},pointerdown:function(e){Mo.mousedown.call(this,e)},pointermove:function(e){Eo(e)||Mo.mousemove.call(this,e)},pointerup:function(e){Mo.mouseup.call(this,e)},pointerout:function(e){Eo(e)||Mo.mouseout.call(this,e)}};V([`click`,`dblclick`,`contextmenu`],function(e){Mo[e]=function(t){t=Tr(this.dom,t),this.trigger(e,t)}});var No={pointermove:function(e){Eo(e)||No.mousemove.call(this,e)},pointerup:function(e){No.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function Po(e,t){var n=t.domHandlers;ft.pointerEventsSupported?V(Co.pointer,function(r){Io(t,r,function(t){n[r].call(e,t)})}):(ft.touchEventsSupported&&V(Co.touch,function(r){Io(t,r,function(i){n[r].call(e,i),Do(t)})}),V(Co.mouse,function(r){Io(t,r,function(i){i=wr(i),t.touching||n[r].call(e,i)})}))}function Fo(e,t){ft.pointerEventsSupported?V(wo.pointer,n):ft.touchEventsSupported||V(wo.mouse,n);function n(n){function r(r){r=wr(r),Ao(e,r.target)||(r=ko(e,r),t.domHandlers[n].call(e,r))}Io(t,n,r,{capture:!0})}}function Io(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Dr(e.domTarget,t,n,r)}function Lo(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Or(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Ro=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),zo=function(e){O(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Ro(t,Mo),So&&(r._globalHandlerScope=new Ro(document,No)),Po(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Lo(this._localHandlerScope),So&&Lo(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,So&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Fo(this,t):Lo(t)}},t}(ir),Bo=1;ft.hasGlobalWindow&&(Bo=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Vo=Bo,Ho=.4,Uo=`#333`,Wo=`#ccc`,Go=`#eee`,Ko=Lr,qo=5e-5;function Jo(e){return e>qo||e<-qo}var Yo=[],Xo=[],Zo=Ir(),Qo=Math.abs,$o=function(){function e(){}return e.prototype.getLocalTransform=function(e){return es(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Jo(this.rotation)||Jo(this.x)||Jo(this.y)||Jo(this.scaleX-1)||Jo(this.scaleY-1)||Jo(this.skewX)||Jo(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Ko(n),this.invTransform=null);return}n||=Ir(),t?this.getLocalTransform(n):Ko(n),e&&(t?zr(n,e,n):Rr(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Ir(),Ur(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Yo);var n=Yo[0]<0?-1:1,r=Yo[1]<0?-1:1,i=((Yo[0]-n)*t+n)/Yo[0]||0,a=((Yo[1]-r)*t+r)/Yo[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Ir(),zr(Xo,e.invTransform,t),t=Xo);var n=this.originX,r=this.originY;(n||r)&&(Zo[4]=n,Zo[5]=r,zr(Xo,t,Zo),Xo[4]-=n,Xo[5]-=r,t=Xo),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&$n(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&$n(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Qo(e[0]-1)>1e-10&&Qo(e[3]-1)>1e-10?Math.sqrt(Qo(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ns(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Vr(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),es=$o.getLocalTransform,ts=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function ns(e,t){return Vt(e,t,ts)}function rs(e){is||=new ga(100),e||=`12px sans-serif`;var t=is.get(e);return t||(t={font:e,strWidthCache:new ga(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:bt.measureText(`国`,e).width,asciiCharWidth:bt.measureText(`a`,e).width},is.put(e,t)),t}var is;function as(e){if(!(os>=ss)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=bt.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?os=ss:i>2&&os++,t}}var os=0,ss=5;function cs(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=as(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function ls(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=bt.measureText(t,e.font).width,n.put(t,r)),r}function us(e,t,n,r){var i=ls(rs(t),e),a=ms(t);return new X(fs(0,i,n),ps(0,a,r),i,a)}function ds(e,t,n,r){var i=((e||``)+``).split(`
10
+ `);if(i.length===1)return us(i[0],t,n,r);for(var a=new X(0,0,0,0),o=0;o<i.length;o++){var s=us(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function fs(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function ps(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function ms(e){return rs(e).stWideCharWidth}function hs(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function gs(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=hs(r[0],n.width),l+=hs(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var _s=`__zr_normal__`,vs=ts.concat([`ignore`]),ys=Jt(ts,function(e,t){return e[t]=!0,e},{ignore:!1}),bs={},xs=new X(0,0,0,0),Ss=[],Cs=function(){function e(e){this.id=It(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=xs,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(bs,n,d):gs(bs,n,d),i.x=bs.x,i.y=bs.y,a=bs.align,o=bs.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=hs(f[0],d.width),m=hs(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new X(0,0,0,0);i.getLocalTransform(Ss),Ur(Ss,Ss),X.copy(_,d),_.applyTransform(Ss)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Wo:Uo},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&ja(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Ha(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},B(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(K(e))for(var n=Zt(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,vs)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(_s,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===_s;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(Wt(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){Lt(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=js(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,Ns(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=js(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,Ns(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Wt(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Wt(r,e),a=Wt(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];B(t,i),i.textConfig&&(n||={},B(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=B({},r?this.textConfig:n.textConfig),B(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<vs.length;l++){var u=vs[l],d=i&&ys[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new $o,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},B(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new vo(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=Wt(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){ws(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){ws(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=ws(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();Kt(Cs,ir),Kt(Cs,$o);function ws(e,t,n,r,i){n||={};var a=[];As(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function Ts(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Es(e){return qt(e[0])}function Ds(e,t,n){if(qt(t[n]))if(qt(e[n])||(e[n]=[]),an(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Ts(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Es(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?Ts(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else Ts(a,i,o);a.length=i.length}else e[n]=t[n]}function Os(e,t){return e===t||qt(e)&&qt(t)&&ks(e,t)}function ks(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function As(e,t,n,r,i,a,o,s){for(var c=Zt(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!K(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(K(v)&&!qt(v)&&!sn(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}As(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=Wt(m,x);m.splice(S,1)}}if(i.force||(h=Yt(h,function(e){return!Os(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=ro(n[_]),Ds(n,r,_)}}var x=new vo(n,!1,!1,d?Yt(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function js(e,t,n,r){return!(n&&n.hoverLayer||r)||Ms(e)||t&&Ms(t)?0:1}function Ms(e){return e.type===`text`||e.type===`tspan`}function Ns(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}R();var Ps=function(e){O(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=Wt(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=Wt(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new X(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(X.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(Cs);Ps.prototype.type=`group`;var Fs=c({dispose:()=>Hs,disposeAll:()=>Us,getElementSSRData:()=>qs,getInstance:()=>Ws,init:()=>Vs,registerPainter:()=>Gs,registerSSRDataGetter:()=>Js,version:()=>Ys}),Is={},Ls={};function Rs(e){delete Ls[e]}function zs(e){if(!e)return!1;if(typeof e==`string`)return Ua(e,1)<Ho;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Ua(t[i].color,1);return n/=r,n<Ho}return!1}var Bs=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new Li,a=n.renderer||`canvas`;Is[a]||(a=Zt(Is)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var o=new Is[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!ft.node&&!ft.worker&&!s?new zo(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?ft.touchEventsSupported:!!l,d=44,f;u&&(f=q(n.pointerSize,d)),this.handler=new bi(i,o,c,o.root,f),this.animation=new bo({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=zs(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=yo(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=yo();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Ps&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.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,Rs(this.id))},e}();function Vs(e,t){var n=new Bs(It(),e,t);return Ls[n.id]=n,n}function Hs(e){e.dispose()}function Us(){for(var e in Ls)Ls.hasOwnProperty(e)&&Ls[e].dispose();Ls={}}function Ws(e){return Ls[e]}function Gs(e,t){Is[e]=t}var Ks;function qs(e){if(typeof Ks==`function`)return Ks(e)}function Js(e){Ks=e}var Ys=`6.1.0`,Xs=1e-4,Zs=20;function Qs(e){return e.replace(/^\s+|\s+$/g,``)}var $s=Math.min,ec=Math.max,tc=Math.abs,nc=Math.round,rc=Math.floor,ic=Math.ceil,ac=Math.pow,oc=Math.log,sc=Math.LN10,cc=Math.PI,lc=Math.random;function uc(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var dc=fc;function fc(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return pc(e,t,n)}function pc(e,t,n){return G(e)?mc(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function mc(e){return!!Qs(e).match(/%$/)}function hc(e,t,n){return isNaN(t)?n?``+e:+e:(t=$s(ec(0,t),Zs),e=(+e).toFixed(t),n?e:+e)}function gc(e,t,n){return t??=10,hc(e,t,n)}function _c(e){return e.sort(function(e,t){return e-t}),e}function vc(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(nc(e*t)/t===e)return n}return yc(e)}function yc(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return ec(0,(a<0?0:i-1-a)-r)}function bc(e,t){var n=rc(oc(e[1]-e[0])/sc),r=nc(oc(tc(t[1]-t[0]))/sc),i=$s(ec(-n+r,0),Zs);return isFinite(i)?i:Zs}function xc(e,t,n){var r=tc(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=oc(2*tc(n||1)*tc(r))/sc,a=oc(tc(t))/sc,o=ec(0,ic(-i+a));return isFinite(o)||(o=NaN),o}function Sc(e,t,n){return e[t]&&Cc(e,n)[t]||0}function Cc(e,t){var n=Jt(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=ac(10,t),i=H(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=H(i,function(e){return rc(e)}),s=Jt(o,function(e,t){return e+t},0),c=H(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return H(o,function(e){return e/r})}function wc(e,t){var n=ec(vc(e),vc(t)),r=e+t;return n>Zs?r:hc(r,n)}var Tc=ac(2,53)-1;function Ec(e){var t=cc*2;return(e%t+t)%t}function Dc(e){return e>-Xs&&e<Xs}var Oc=/^(?:(\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 kc(e){if(e instanceof Date)return e;if(G(e)){var t=Oc.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(nc(e))}function Ac(e){return ac(10,jc(e))}function jc(e){if(e===0)return 0;var t=rc(oc(e)/sc);return e/ac(10,t)>=10&&t++,t}function Mc(e,t){var n=jc(e),r=ac(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,hc(e,-n)}function Nc(e,t){var n=(e.length-1)*t+1,r=rc(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function Pc(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function Fc(e){var t=parseFloat(e);return t==e&&(t!==0||!G(e)||e.indexOf(`x`)<=0)?t:NaN}function Ic(e){return!isNaN(Fc(e))}function Lc(){return nc(lc()*9)}function Rc(e,t){return t===0?e:Rc(t,e%t)}function zc(e,t){return e==null?t:t==null?e:e*t/Rc(e,t)}function Bc(e){return e!=null&&isFinite(e)}var Vc=`[ECharts] `,Hc={},Uc=typeof console<`u`&&console.warn&&console.log;function Wc(e,t,n){if(Uc){if(n){if(Hc[t])return;Hc[t]=!0}console[e](Vc+t)}}function Gc(e,t){Wc(`error`,e,t)}function Kc(e){throw Error(e)}function qc(e,t,n){return(t-e)*n+e}var Jc=`series\0`,Yc=`\0_ec_\0`;function Xc(e){return e instanceof Array?e:e==null?[]:[e]}function Zc(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Qc=`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`.split(`.`);function $c(e){return K(e)&&!W(e)&&!(e instanceof Date)?e.value:e}function el(e){return K(e)&&!(e instanceof Array)}function tl(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=J();V(t,function(e,n){if(!K(e)){t[n]=null;return}});var s=nl(e,o,n);return(r||i)&&rl(s,e,o,t),r&&il(s,t),r||i?al(s,t,i):a&&ol(s,t),sl(s),s}function nl(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||fl(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function rl(e,t,n,r){V(r,function(i,a){if(!(!i||i.id==null)){var o=ll(i.id),s=n.get(o);if(s!=null){var c=e[s];hn(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function il(e,t){V(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!fl(n)&&!fl(a)&&cl(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function al(e,t,n){V(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||fl(r.existing)||r.existing&&t.id!=null&&!cl(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function ol(e,t){V(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function sl(e){var t=J();V(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),V(e,function(e){var n=e.newOption;hn(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),V(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(K(i)){if(a.name=i.name==null?r?r.name:Jc+n:ll(i.name),r)a.id=ll(r.id);else if(i.id!=null)a.id=ll(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+ o++;while(t.get(a.id))}t.set(a.id,e)}})}function cl(e,t,n){var r=ul(t[e],null),i=ul(n[e],null);return r!=null&&i!=null&&r===i}function ll(e){return ul(e,``)}function ul(e,t){return e==null?t:G(e)?e:nn(e)||tn(e)?e+``:t}function dl(e){var t=e.name;return!!(t&&t.indexOf(Jc))}function fl(e){return e&&e.id!=null&&ll(e.id).indexOf(Yc)===0}function pl(e,t,n){V(e,function(e){var r=e.newOption;K(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=ml(t,r,e.existing,n))})}function ml(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function hl(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return W(t.dataIndex)?H(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return W(t.name)?H(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function gl(){var e=`__ec_inner_`+ _l++;return function(t){return t[e]||(t[e]={})}}var _l=Lc();function vl(e,t,n){var r=yl(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=Sl(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function yl(e,t){var n;if(G(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=J(),a={},o=!1;return V(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&Wt(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var bl={useDefault:!0,enableAll:!1,enableNone:!1},xl={useDefault:!1,enableAll:!0,enableNone:!0};function Sl(e,t,n,r){r||=bl;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function Cl(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function wl(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Tl(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function El(e){return e===`auto`?ft.domSupported?`html`:`richText`:e||`html`}function Dl(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(nn(r)){var o=qc(n||0,r,i);return hc(o,a?Math.max(vc(n||0),vc(r)):t)}else if(G(r))return i<1?n:r;else{for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=qc(p,m,i);s[d]=hc(o,a?Math.max(vc(p),vc(m)):t)}}return s}}(function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0):!1},e})();function Ol(){return[1/0,-1/0]}function kl(e,t){Nl(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function Al(e,t){Nl(t)&&t<e[0]&&(e[0]=t)}function jl(e,t){Nl(t)&&t>e[1]&&(e[1]=t)}function Ml(e,t){Pl(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function Nl(e){return e!=null&&isFinite(e)}function Pl(e,t){return Nl(e)&&Nl(t)&&e<=t}function Fl(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Il(e){Pl(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Ll(){var e=`__ec_once_`+ Rl++;return function(t,n){Y(t,e)||(t[e]=1,n())}}var Rl=Lc();function zl(e,t,n){var r=J(),i=0;V(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Bl(e){return e.value+``}function Vl(e){return e+``}function Hl(e,t){return q(t,!0)?e.seriesIndex+2:0}function Ul(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Wl(e,t){return{seriesType:e,overallReset:t}}function Gl(e){return{overallReset:e}}R();var Kl=`.`,ql=`___EC__COMPONENT__CONTAINER___`,Jl=`___EC__EXTENDED_CLASS___`;function Yl(e){var t={main:``,sub:``};if(e){var n=e.split(Kl);t.main=n[0]||``,t.sub=n[1]||``}return t}function Xl(e){hn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Zl(e){return!!(e&&e[Jl])}function Ql(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return $l(t)?n=function(e){O(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},Gt(n,this)),B(n.prototype,e),n[Jl]=!0,n.extend=this.extend,n.superCall=ru,n.superApply=iu,n.superClass=t,n}}function $l(e){return en(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function eu(e,t){e.extend=t.extend}var tu=Math.round(Math.random()*10);function nu(e){var t=[`__\0is_clz`,tu++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function ru(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function iu(e,t,n){return this.superClass.prototype[t].apply(e,n)}function au(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Xl(r),e.prototype.type=r;var i=Yl(r);if(!i.sub)t[i.main]=e;else if(i.sub!==ql){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[ql]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Yl(e),r=[],i=t[n.main];return i&&i[ql]?V(i,function(e,t){t!==ql&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Yl(e).main]},e.getAllClassMainTypes=function(){var e=[];return V(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Yl(e).main];return n&&n[ql]};function n(e){var n=t[e.main];return(!n||!n[ql])&&(n=t[e.main]={},n[ql]=!0),n}}function ou(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&Wt(r,s)>=0||i&&Wt(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var su=ou([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),cu=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return su(this,e,t)},e}(),lu=new ga(50);function uu(e){if(typeof e==`string`){var t=lu.get(e);return t&&t.image}else return e}function du(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=lu.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!pu(t)&&a.pending.push(o)):(t=bt.loadImage(e,fu,fu),t.__zrImageSrc=e,lu.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function fu(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function pu(e){return e&&e.width&&e.height}var mu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function hu(e,t,n,r,i){var a={};return gu(a,e,t,n,r,i),a.text}function gu(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
11
+ `);a=_u(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)vu(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
12
+ `),e.isTruncated=s}function _u(e,t,n,r){r||={};var i=B({},r);n=q(n,`...`),i.maxIterations=q(r.maxIterations,2);var a=i.minChar=q(r.minChar,0),o=i.fontMeasureInfo=rs(t),s=o.asciiCharWidth;i.placeholder=q(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=ls(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function vu(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=ls(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?yu(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=ls(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function yu(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=cs(n,e.charCodeAt(i));return i}function bu(e,t,n,r){var i=Nu(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=ms(l),f=q(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?ku(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
13
+ `):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=_u(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)vu(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=rs(l),S=0;S<_.length;S++)w=Math.max(ls(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var xu=function(){function e(){}return e}(),Su=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Cu=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function wu(e,t,n,r,i){var a=new Cu,o=Nu(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=mu.lastIndex=0,h;(h=mu.exec(o))!=null;){var g=h.index;g>m&&Tu(a,o.substring(m,g),t,p),Tu(a,h[2],t,p,h[1]),m=mu.lastIndex}m<o.length&&Tu(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,ee=j?j[1]+j[3]:0,M=k.font=A.font||t.font;k.contentHeight=ms(M);var N=q(A.height,k.contentHeight);if(k.innerHeight=N,j&&(N+=j[0]+j[2]),k.height=N,k.lineHeight=fn(A.lineHeight,t.lineHeight,N),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var P=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<P;break outer}var F=A.width,I=F==null||F===`auto`;if(typeof F==`string`&&F.charAt(F.length-1)===`%`)k.percentWidth=F,_.push(k),k.contentWidth=ls(rs(M),k.text);else{if(I){var te=A.backgroundColor,ne=te&&te.image;ne&&(ne=uu(ne),pu(ne)&&(k.width=Math.max(k.width,ne.width*N/ne.height)))}var re=b&&u!=null?u-D:null;re!=null&&re<k.width?!I||re<ee?(k.text=``,k.width=k.contentWidth=0):(gu(S,k.text,re-ee,M,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=ls(rs(M),k.text)):k.contentWidth=ls(rs(M),k.text)}k.width+=ee,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=q(u,y),a.outerHeight=a.height=q(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],ie=k.percentWidth;k.width=parseInt(ie,10)/100*a.width}return a}function Tu(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=hs(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
14
+ `),l=!0),r.accumWidth=m}else{var h=ku(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
15
+ `);for(var g=rs(c),_=0;_<u.length;_++){var v=u[_],y=new xu;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:ls(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new Su)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new Su([y]))}}function Eu(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Du=Jt(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Ou(e){return Eu(e)?!!Du[e]:!0}function ku(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=rs(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
16
+ `){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=cs(d,p.charCodeAt(0)),h=r?!1:!Ou(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function Au(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;X.set(ju,fs(n,o,i),ps(r,s,a),o,s),X.intersect(t,ju,null,Mu);var c=Mu.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=fs(c.x,c.width,i,!0),e.baseY=ps(c.y,c.height,a,!0)}}var ju=new X(0,0,0,0),Mu={outIntersectRect:{},clamp:!0};function Nu(e){return e==null?e=``:e+=``}function Pu(e){var t=Nu(e.text),n=e.font;return Fu(e,ls(rs(n),t),ms(n),null)}function Fu(e,t,n,r){var i=new X(fs(e.x||0,t,e.textAlign),ps(e.y||0,n,e.textBaseline),t,n),a=r??(Iu(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Iu(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}R();var Lu=`__zr_style_`+Math.round(Math.random()*10),Ru={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},zu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ru[Lu]=!0;var Bu=[`z`,`z2`,`invisible`],Vu=[`invisible`],Hu=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=Zt(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Gu(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new X(0,0,0,0),t?X.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new X(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:B(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Tn(Ru,e)},t.prototype.useStyle=function(e){e[Lu]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[Lu]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Bu)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l)if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=Zt(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=Zt(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l);if(!c)for(var h=this.__inHover?Vu:Bu,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return B(e,t),e},t.prototype.getAnimationStyleProps=function(){return zu},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(Cs),Uu=new X(0,0,0,0),Wu=new X(0,0,0,0);function Gu(e,t,n){return Uu.copy(e.getBoundingRect()),e.transform&&Uu.applyTransform(e.transform),Wu.width=t,Wu.height=n,!Uu.intersect(Wu)}var Ku=Math.min,qu=Math.max,Ju=Math.sin,Yu=Math.cos,Xu=Math.PI*2,Zu=jn(),Qu=jn(),$u=jn();function ed(e,t,n,r,i,a){i[0]=Ku(e,n),i[1]=Ku(t,r),a[0]=qu(e,n),a[1]=qu(t,r)}var td=[],nd=[];function rd(e,t,n,r,i,a,o,s,c,l){var u=ea,d=Zi,f=u(e,n,i,o,td);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,td[p]);c[0]=Ku(m,c[0]),l[0]=qu(m,l[0])}f=u(t,r,a,s,nd);for(var p=0;p<f;p++){var h=d(t,r,a,s,nd[p]);c[1]=Ku(h,c[1]),l[1]=qu(h,l[1])}c[0]=Ku(e,c[0]),l[0]=qu(e,l[0]),c[0]=Ku(o,c[0]),l[0]=qu(o,l[0]),c[1]=Ku(t,c[1]),l[1]=qu(t,l[1]),c[1]=Ku(s,c[1]),l[1]=qu(s,l[1])}function id(e,t,n,r,i,a,o,s){var c=sa,l=ia,u=qu(Ku(c(e,n,i),1),0),d=qu(Ku(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Ku(e,i,f),o[1]=Ku(t,a,p),s[0]=qu(e,i,f),s[1]=qu(t,a,p)}function ad(e,t,n,r,i,a,o,s,c){var l=er,u=tr,d=Math.abs(i-a);if(d%Xu<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Zu[0]=Yu(i)*n+e,Zu[1]=Ju(i)*r+t,Qu[0]=Yu(a)*n+e,Qu[1]=Ju(a)*r+t,l(s,Zu,Qu),u(c,Zu,Qu),i%=Xu,i<0&&(i+=Xu),a%=Xu,a<0&&(a+=Xu),i>a&&!o?a+=Xu:i<a&&o&&(i+=Xu),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&($u[0]=Yu(p)*n+e,$u[1]=Ju(p)*r+t,l(s,$u,s),u(c,$u,c))}var od={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},sd=[],cd=[],ld=[],ud=[],dd=[],fd=[],pd=Math.min,md=Math.max,hd=Math.cos,gd=Math.sin,_d=Math.abs,vd=Math.PI,yd=vd*2,bd=typeof Float32Array<`u`,xd=[];function Sd(e){return Math.round(e/vd*1e8)/1e8%2*vd}function Cd(e,t){var n=Sd(e[0]);n<0&&(n+=yd);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=yd?i=n+yd:t&&n-i>=yd?i=n-yd:!t&&n>i?i=n+(yd-Sd(n-i)):t&&n<i&&(i=n-(yd-Sd(i-n))),e[0]=n,e[1]=i}var wd=function(){function e(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 e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=_d(n/Vo/e)||0,this._uy=_d(n/Vo/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(od.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=_d(e-this._xi),r=_d(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(od.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(od.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(od.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),xd[0]=r,xd[1]=i,Cd(xd,a),r=xd[0],i=xd[1];var o=i-r;return this.addData(od.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=hd(i)*n+e,this._yi=gd(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(od.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(od.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&bd&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(bd&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,bd&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){ld[0]=ld[1]=dd[0]=dd[1]=Number.MAX_VALUE,ud[0]=ud[1]=fd[0]=fd[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case od.M:t=r=e[a++],n=i=e[a++],dd[0]=r,dd[1]=i,fd[0]=r,fd[1]=i;break;case od.L:ed(t,n,e[a],e[a+1],dd,fd),t=e[a++],n=e[a++];break;case od.C:rd(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],dd,fd),t=e[a++],n=e[a++];break;case od.Q:id(t,n,e[a++],e[a++],e[a],e[a+1],dd,fd),t=e[a++],n=e[a++];break;case od.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=hd(f)*u+c,i=gd(f)*d+l),ad(c,l,u,d,f,p,m,dd,fd),t=hd(p)*u+c,n=gd(p)*d+l;break;case od.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];ed(r,i,r+h,i+g,dd,fd);break;case od.Z:t=r,n=i;break}er(ld,ld,dd),tr(ud,ud,fd)}return a===0&&(ld[0]=ld[1]=ud[0]=ud[1]=0),new X(ld[0],ld[1],ud[0]-ld[0],ud[1]-ld[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case od.M:i=o=e[d++],a=s=e[d++];break;case od.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(_d(_)>n||_d(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case od.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=ra(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case od.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=ua(i,a,y,b,h,g,10),i=h,a=g;break;case od.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=hd(D)*T+C,s=gd(D)*E+w),m=md(T,E)*pd(yd,Math.abs(O)),i=hd(k)*T+C,a=gd(k)*E+w;break;case od.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case od.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==od.L&&v>0&&(e.lineTo(y,b),v=0),S){case od.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case od.L:u=n[x++],d=n[x++];var w=_d(u-c),T=_d(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case od.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],M=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;ta(c,k,j,M,D,sd),ta(l,A,ee,N,D,cd),e.bezierCurveTo(sd[1],cd[1],sd[2],cd[2],sd[3],cd[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,M,N),c=M,l=N;break;case od.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;ca(c,k,j,D,sd),ca(l,A,ee,D,cd),e.quadraticCurveTo(sd[1],cd[1],sd[2],cd[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case od.A:var P=n[x++],F=n[x++],I=n[x++],te=n[x++],ne=n[x++],re=n[x++],ie=n[x++],ae=!n[x++],oe=I>te?I:te,se=_d(I-te)>.001,ce=ne+re,L=!1;if(f){var E=p[g++];h+E>_&&(ce=ne+re*(_-h)/E,L=!0),h+=E}if(se&&e.ellipse?e.ellipse(P,F,I,te,ie,ne,ce,ae):e.arc(P,F,oe,ne,ce,ae),L)break lo;C&&(o=hd(ne)*I+P,s=gd(ne)*te+F),c=hd(ce)*I+P,l=gd(ce)*te+F;break;case od.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var le=n[x++],ue=n[x++];if(f){var E=p[g++];if(h+E>_){var de=_-h;e.moveTo(u,d),e.lineTo(u+pd(de,le),d),de-=le,de>0&&e.lineTo(u+le,d+pd(de,ue)),de-=ue,de>0&&e.lineTo(u+md(le-de,0),d+ue),de-=le,de>0&&e.lineTo(u,d+md(ue-de,0));break lo}h+=E}e.rect(u,d,le,ue);break;case od.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=od,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function Td(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function Ed(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:na(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function Dd(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:la(e,t,n,r,i,a,s,c,null)<=l/2}var Od=Math.PI*2;function kd(e){return e%=Od,e<0&&(e+=Od),e}var Ad=Math.PI*2;function jd(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%Ad<1e-4)return!0;if(a){var d=r;r=kd(i),i=kd(d)}else r=kd(r),i=kd(i);r>i&&(i+=Ad);var f=Math.atan2(c,s);return f<0&&(f+=Ad),f>=r&&f<=i||f+Ad>=r&&f+Ad<=i}function Md(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var Nd=wd.CMD,Pd=Math.PI*2,Fd=1e-4;function Id(e,t){return Math.abs(e-t)<Fd}var Ld=[-1,-1,-1],Rd=[-1,-1];function zd(){var e=Rd[0];Rd[0]=Rd[1],Rd[1]=e}function Bd(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=$i(t,r,a,s,l,Ld);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Ld[h],_=g===0||g===1?.5:1;Zi(e,n,i,o,g)<c||(f<0&&(f=ea(t,r,a,s,Rd),Rd[1]<Rd[0]&&f>1&&zd(),p=Zi(t,r,a,s,Rd[0]),f>1&&(m=Zi(t,r,a,s,Rd[1]))),f===2?g<Rd[0]?d+=p<t?_:-_:g<Rd[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<Rd[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Vd(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=oa(t,r,a,s,Ld);if(c===0)return 0;var l=sa(t,r,a);if(l>=0&&l<=1){for(var u=0,d=ia(t,r,a,l),f=0;f<c;f++){var p=Ld[f]===0||Ld[f]===1?.5:1,m=ia(e,n,i,Ld[f]);m<o||(Ld[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=Ld[0]===0||Ld[0]===1?.5:1,m=ia(e,n,i,Ld[0]);return m<o?0:a<t?p:-p}}function Hd(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Ld[0]=-c,Ld[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=Pd-1e-4){r=0,i=Pd;var u=a?1:-1;return o>=Ld[0]+e&&o<=Ld[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Pd,i+=Pd);for(var f=0,p=0;p<2;p++){var m=Ld[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=Pd+h),(h>=r&&h<=i||h+Pd>=r&&h+Pd<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Ud(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===Nd.M&&m>1&&(n||(s+=Md(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case Nd.M:u=a[m++],d=a[m++],c=u,l=d;break;case Nd.L:if(n){if(Td(c,l,a[m],a[m+1],t,r,i))return!0}else s+=Md(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Nd.C:if(n){if(Ed(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Bd(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Nd.Q:if(n){if(Dd(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Vd(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Nd.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=Md(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(jd(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Hd(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case Nd.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(Td(u,d,f,d,t,r,i)||Td(f,d,f,p,t,r,i)||Td(f,p,u,p,t,r,i)||Td(u,p,u,d,t,r,i))return!0}else s+=Md(f,d,f,p,r,i),s+=Md(u,p,u,d,r,i);break;case Nd.Z:if(n){if(Td(c,l,u,d,t,r,i))return!0}else s+=Md(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!Id(l,d)&&(s+=Md(c,l,u,d,r,i)||0),s!==0}function Wd(e,t,n){return Ud(e,0,!1,t,n)}function Gd(e,t,n,r){return Ud(e,t,!0,n,r)}R();var Kd=Ht({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ru),qd={style:Ht({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},zu.style)},Jd=ts.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Yd=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Jd.length;++s)i[Jd[s]]=this[Jd[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Zt(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?B(this.style,o):this.useStyle(o):a===`shape`?B(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(G(e)){var t=Ua(e,0);return t>.5?Uo:t>.2?Go:Wo}else if(e)return Wo}return Uo},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(G(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Ua(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new wd(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Gd(a,o/s,e,t)))return!0}if(this.hasFill())return Wd(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:B(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Tn(Kd,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=B({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=B({},r.shape),B(c,n.shape)):(c=B({},i?this.shape:r.shape),B(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=B({},this.shape);for(var l={},u=Zt(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return qd},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){O(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return Rt(e.style)},n.prototype.getDefaultShape=function(){return Rt(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(Hu);R();var Xd=Ht({strokeFirst:!0,font:mt,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Kd),Zd=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Iu(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Tn(Xd,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=Pu(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Hu);Zd.prototype.type=`tspan`,R();var Qd=Ht({x:0,y:0},Ru),$d={style:Ht({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},zu.style)};function ef(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var tf=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Tn(Qd,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=ef(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return $d},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new X(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Hu);tf.prototype.type=`image`;function nf(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var rf=Math.round;function af(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(rf(r*2)===rf(i*2)&&(e.x1=e.x2=sf(r,s,!0)),rf(a*2)===rf(o*2)&&(e.y1=e.y2=sf(a,s,!0)),e):e}}function of(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=sf(r,s,!0),e.y=sf(i,s,!0),e.width=Math.max(sf(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(sf(i+o,s,!1)-e.y,o===0?0:1),e):e}}function sf(e,t,n){if(!t)return e;var r=rf(e*2);return(r+rf(t))%2==0?r/2:(r+(n?1:-1))/2}R();var cf=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),lf={},uf=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new cf},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=of(lf,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?nf(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Yd);uf.prototype.type=`rect`,R();var df={fill:`#000`},ff=2,pf={},mf={style:Ht({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},zu.style)},hf=function(e){O(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=df,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Sf(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new X(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||df},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return B(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Zt(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},B(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return mf},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;Au(pf,r.overflowRect,i,a,o,s),i=pf.baseX,a=pf.baseY;var c=bu(Df(e),e,pf.outerWidth,pf.outerHeight),l=Of(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=ps(a,c.contentHeight,s);if(l||n){var _=fs(i,f,o),v=ps(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=Ef(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=Tf(`fill`in e?e.fill:(x=!0,r.fill)),C=wf(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=ff,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Zd),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,bf(D,e),g+=m,E.setBoundingRect(Fu(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;Au(pf,t.overflowRect,i,a,n,r),i=pf.baseX,a=pf.baseY;var o=wu(Df(e),e,pf.outerWidth,pf.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=fs(i,c,n),f=ps(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;Of(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&Of(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=Ef(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Zd),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=Tf(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=wf(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=ff,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=fn(s.opacity,t.opacity,1),bf(p,s),y&&(p.lineWidth=fn(s.lineWidth,t.lineWidth,g),p.lineDash=q(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Fu(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(uf),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=q(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(tf),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=q(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=fn(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return xf(e)&&(t=[e.fontStyle,e.fontWeight,yf(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&gn(t)||e.textFont||e.font},t}(Hu),gf={left:!0,right:1,center:1},_f={top:1,bottom:1,middle:1},vf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function yf(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function bf(e,t){for(var n=0;n<vf.length;n++){var r=vf[n],i=t[r];i!=null&&(e[r]=i)}}function xf(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Sf(e){return Cf(e),V(e.rich,Cf),e}function Cf(e){if(e){e.font=hf.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||gf[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||_f[n]?n:`top`,e.padding&&=mn(e.padding)}}function wf(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function Tf(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function Ef(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Df(e){var t=e.text;return t!=null&&(t+=``),t}function Of(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var kf=gl(),Af=function(e,t,n,r){if(r){var i=kf(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=kf(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},jf=J([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),Mf=`original`,Nf=`arrayRows`,Pf=`objectRows`,Ff=`keyedColumns`,If=`typedArray`,Lf=`unknown`,Rf=`column`,zf=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Bf=function(){function e(e){V(zf,function(t){this[t]=U(e[t],e)},this)}return e}();function Vf(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Hf=1,Uf={},Wf=gl(),Gf=gl(),Kf=[`emphasis`,`blur`,`select`],qf=[`normal`,`emphasis`,`blur`,`select`],Jf=`highlight`,Yf=`downplay`,Xf=`select`,Zf=`unselect`,Qf=`toggleSelect`,$f=`selectchanged`;function ep(e){return e!=null&&e!==`none`}function tp(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function np(e){tp(e,`emphasis`,2)}function rp(e){e.hoverState===2&&tp(e,`normal`,0)}function ip(e){tp(e,`blur`,1)}function ap(e){e.hoverState===1&&tp(e,`normal`,0)}function op(e){e.selected=!0}function sp(e){e.selected=!1}function cp(e,t,n){t(e,n)}function lp(e,t,n){cp(e,t,n),e.isGroup&&e.traverse(function(e){cp(e,t,n)})}function up(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function dp(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function fp(e,t,n,r){var i=n&&Wt(n,`select`)>=0,a=!1;if(e instanceof Yd){var o=Wf(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(ep(s)||ep(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=B({},r),l=B({},l),l.fill=s):!ep(l.fill)&&ep(s)?(a=!0,r=B({},r),l=B({},l),l.fill=Ka(s)):!ep(l.stroke)&&ep(c)&&(a||(r=B({},r),l=B({},l)),l.stroke=Ka(c)),r.style=l}}if(r&&r.z2==null){a||(r=B({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function pp(e,t,n){if(n&&n.z2==null){n=B({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function mp(e,t,n){var r=Wt(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:dp(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=B({},n),o=B({opacity:r?i:a.opacity*.1},o),n.style=o),n}function hp(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return fp(this,e,t,n);if(e===`blur`)return mp(this,e,n);if(e===`select`)return pp(this,e,n)}return n}function gp(e){e.stateProxy=hp;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=hp),n&&(n.stateProxy=hp)}function _p(e,t){!Tp(e,t)&&!e.__highByOuter&&lp(e,np)}function vp(e,t){!Tp(e,t)&&!e.__highByOuter&&lp(e,rp)}function yp(e,t){e.__highByOuter|=1<<(t||0),lp(e,np)}function bp(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&lp(e,rp)}function xp(e){lp(e,ip)}function Sp(e){lp(e,ap)}function Cp(e){lp(e,op)}function wp(e){lp(e,sp)}function Tp(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Ep(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Gf(i),o=Vf(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){ap(e)}),s&&n.push(i)),a.isBlured=!1}),V(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Dp(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Sp(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||ip(e)}),qt(t))a(e.getData(),t);else if(K(t))for(var u=Zt(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Gf(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function Op(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){Gf(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){ip(e)})}}}function kp(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=hl(i,t);a=(W(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=kf(o);Dp(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Dp(r,u,d,n)}}}function Ap(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(kf(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function jp(e,t,n){var r=kf(e),i=Ap(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Op(r.componentMainType,r.componentIndex,n),V(a,function(e){return _p(e,t)})):(Dp(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Op(r.componentMainType,r.componentIndex,n),_p(e,t))}function Mp(e,t,n){Ep(n);var r=kf(e),i=Ap(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?V(i,function(e){return vp(e,t)}):vp(e,t)}function Np(e,t,n){if(Kp(t)){var r=t.dataType,i=hl(e.getData(r),t);W(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Pp(e){V(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Cp(t):wp(t)})})}function Fp(e){var t=[];return e.eachSeries(function(e){V(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Ip(e,t,n){Up(e,!0),lp(e,gp),zp(e,t,n)}function Lp(e){Up(e,!1)}function Rp(e,t,n,r){r?Lp(e):Ip(e,t,n)}function zp(e,t,n){var r=kf(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var Bp=[`emphasis`,`blur`,`select`],Vp={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function Hp(e,t,n,r){n||=`itemStyle`;for(var i=0;i<Bp.length;i++){var a=Bp[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[Vp[n]]()}}function Up(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Wp(e){return!!(e&&e.__highDownDispatcher)}function Gp(e){var t=Uf[e];return t==null&&Hf<=32&&(t=Uf[e]=Hf++),t}function Kp(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function qp(e){var t=e.type;return t===`highlight`||t===`downplay`}function Jp(e){var t=Wf(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Yp=wd.CMD,Xp=[[],[],[]],Zp=Math.sqrt,Qp=Math.atan2;function $p(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Yp.M,d=Yp.C,f=Yp.L,p=Yp.R,m=Yp.A,h=Yp.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=Zp(t[0]*t[0]+t[1]*t[1]),y=Zp(t[2]*t[2]+t[3]*t[3]),b=Qp(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],$n(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],$n(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Xp[c];x[0]=n[o++],x[1]=n[o++],$n(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}R();var em=Math.sqrt,tm=Math.sin,nm=Math.cos,rm=Math.PI;function im(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function am(e,t){return(e[0]*t[0]+e[1]*t[1])/(im(e)*im(t))}function om(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(am(e,t))}function sm(e,t,n,r,i,a,o,s,c,l,u){var d=rm/180*c,f=nm(d)*(e-n)/2+tm(d)*(t-r)/2,p=-1*tm(d)*(e-n)/2+nm(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=em(m),s*=em(m));var h=(i===a?-1:1)*em((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+nm(d)*g-tm(d)*_,y=(t+r)/2+tm(d)*g+nm(d)*_,b=om([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=om(x,S);if(am(x,S)<=-1&&(C=rm),am(x,S)>=1&&(C=0),C<0){var w=Math.round(C/rm*1e6)/1e6;C=rm*2+w%2*rm}u.addData(l,v,y,o,s,b,C,d,a)}var cm=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,lm=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function um(e){var t=new wd;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=wd.CMD,c=e.match(cm);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(lm)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,sm(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,sm(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var dm=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Yd);function fm(e){return e.setData!=null}function pm(e,t){var n=um(e),r=B({},t);return r.buildPath=function(e){var t=fm(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){$p(n,e),this.dirtyShape()},r}function mm(e,t){return new dm(pm(e,t))}function hm(e,t){var n=pm(e,t);return function(e){O(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(dm)}function gm(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Yd(t);return o.createPathProxy(),o.buildPath=function(e){if(fm(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}R();var _m=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),vm=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new _m},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(Yd);vm.prototype.type=`circle`,R();var ym=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),bm=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ym},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(Yd);bm.prototype.type=`ellipse`;var xm=Math.PI,Sm=xm*2,Cm=Math.sin,wm=Math.cos,Tm=Math.acos,Em=Math.atan2,Dm=Math.abs,Om=Math.sqrt,km=Math.max,Am=Math.min,jm=1e-4;function Mm(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<jm))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Nm(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/Om(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*Om(km(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function Pm(e){var t;if(W(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Fm(e,t){var n,r=km(t.r,0),i=km(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Dm(c-s),p=f>Sm&&f%Sm;if(p>jm&&(f=p),!(r>jm))e.moveTo(l,u);else if(f>Sm-jm)e.moveTo(l+r*wm(s),u+r*Cm(s)),e.arc(l,u,r,s,c,!d),i>jm&&(e.moveTo(l+i*wm(c),u+i*Cm(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*wm(s),j=r*Cm(s),ee=i*wm(c),M=i*Cm(c),N=f>jm;if(N){var P=t.cornerRadius;P&&(n=Pm(P),m=n[0],h=n[1],g=n[2],_=n[3]);var F=Dm(r-i)/2;if(v=Am(F,g),y=Am(F,_),b=Am(F,m),x=Am(F,h),w=S=km(v,y),T=C=km(b,x),(S>jm||C>jm)&&(E=r*wm(c),D=r*Cm(c),O=i*wm(s),k=i*Cm(s),f<xm)){var I=Mm(A,j,O,k,E,D,ee,M);if(I){var te=A-I[0],ne=j-I[1],re=E-I[0],ie=D-I[1],ae=1/Cm(Tm((te*re+ne*ie)/(Om(te*te+ne*ne)*Om(re*re+ie*ie)))/2),oe=Om(I[0]*I[0]+I[1]*I[1]);w=Am(S,(r-oe)/(ae+1)),T=Am(C,(i-oe)/(ae-1))}}}if(!N)e.moveTo(l+A,u+j);else if(w>jm){var se=Am(g,w),ce=Am(_,w),L=Nm(O,k,A,j,r,se,d),le=Nm(E,D,ee,M,r,ce,d);e.moveTo(l+L.cx+L.x0,u+L.cy+L.y0),w<S&&se===ce?e.arc(l+L.cx,u+L.cy,w,Em(L.y0,L.x0),Em(le.y0,le.x0),!d):(se>0&&e.arc(l+L.cx,u+L.cy,se,Em(L.y0,L.x0),Em(L.y1,L.x1),!d),e.arc(l,u,r,Em(L.cy+L.y1,L.cx+L.x1),Em(le.cy+le.y1,le.cx+le.x1),!d),ce>0&&e.arc(l+le.cx,u+le.cy,ce,Em(le.y1,le.x1),Em(le.y0,le.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>jm)||!N)e.lineTo(l+ee,u+M);else if(T>jm){var se=Am(m,T),ce=Am(h,T),L=Nm(ee,M,E,D,i,-ce,d),le=Nm(A,j,O,k,i,-se,d);e.lineTo(l+L.cx+L.x0,u+L.cy+L.y0),T<C&&se===ce?e.arc(l+L.cx,u+L.cy,T,Em(L.y0,L.x0),Em(le.y0,le.x0),!d):(ce>0&&e.arc(l+L.cx,u+L.cy,ce,Em(L.y0,L.x0),Em(L.y1,L.x1),!d),e.arc(l,u,i,Em(L.cy+L.y1,L.cx+L.x1),Em(le.cy+le.y1,le.cx+le.x1),d),se>0&&e.arc(l+le.cx,u+le.cy,se,Em(le.y1,le.x1),Em(le.y0,le.x0),!d))}else e.lineTo(l+ee,u+M),e.arc(l,u,i,c,s,d)}e.closePath()}}}R();var Im=function(){function e(){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 e}(),Lm=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Im},t.prototype.buildPath=function(e,t){Fm(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Yd);Lm.prototype.type=`sector`,R();var Rm=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),zm=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Rm},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Yd);zm.prototype.type=`ring`;function Bm(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)er(u,u,e[f]),tr(d,d,e[f]);er(u,u,r[0]),tr(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Nn(e[f]));continue}else c=e[f-1],l=e[f+1];Ln(a,l,c),Gn(a,a,t);var h=qn(m,c),g=qn(m,l),_=h+g;_!==0&&(h/=_,g/=_),Gn(o,a,-h),Gn(s,a,g);var v=Fn([],m,o),y=Fn([],m,s);r&&(tr(v,v,u),er(v,v,d),tr(y,y,u),er(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function Vm(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Bm(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}R();var Hm=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Um=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Hm},t.prototype.buildPath=function(e,t){Vm(e,t,!0)},t}(Yd);Um.prototype.type=`polygon`,R();var Wm=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Gm=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Wm},t.prototype.buildPath=function(e,t){Vm(e,t,!1)},t}(Yd);Gm.prototype.type=`polyline`,R();var Km={},qm=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Jm=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new qm},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=af(Km,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Yd);Jm.prototype.type=`line`,R();var Ym=[],Xm=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Zm(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Qi:Zi)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Qi:Zi)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?aa:ia)(e.x1,e.cpx1,e.x2,t),(n?aa:ia)(e.y1,e.cpy1,e.y2,t)]}var Qm=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Xm},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(ca(n,o,i,u,Ym),o=Ym[1],i=Ym[2],ca(r,s,a,u,Ym),s=Ym[1],a=Ym[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(ta(n,o,c,i,u,Ym),o=Ym[1],c=Ym[2],i=Ym[3],ta(r,s,l,a,u,Ym),s=Ym[1],l=Ym[2],a=Ym[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Zm(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Zm(this.shape,e,!0);return Kn(t,t)},t}(Yd);Qm.prototype.type=`bezier-curve`,R();var $m=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),eh=function(e){O(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new $m},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(Yd);eh.prototype.type=`arc`,R();var th=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Yd.prototype.getBoundingRect.call(this)},t}(Yd),nh=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();R();var rh=function(e){O(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(nh);R();var ih=function(e){O(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(nh),ah=Math.min,oh=Math.max,sh=Math.abs,ch=[0,0],lh=[0,0],uh=fi(),dh=uh.minTv,fh=uh.maxTv,ph=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Gr;for(var n=0;n<2;n++)this._axes[n]=new Gr;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);Gr.sub(r[0],n[1],n[0]),Gr.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&Gr.set(t,0,0),uh.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!uh.negativeSize&&Gr.copy(t,r?uh.useDir?uh.dirMinTv:dh:fh),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,ch),e._getProjMinMaxOnAxis(a,t._corners,lh),uh.negativeSize||ch[1]<lh[0]||ch[0]>lh[1]){if(i=!1,uh.negativeSize||n)return i;var s=sh(lh[0]-ch[1]),c=sh(ch[0]-lh[1]);ah(s,c)>fh.len()&&(s<c?Gr.scale(fh,o,-s*r):Gr.scale(fh,o,c*r))}else if(!n){var s=sh(lh[0]-ch[1]),c=sh(ch[0]-lh[1]);(uh.useDir||ah(s,c)<dh.len())&&((s<c||!uh.bidirectional)&&(Gr.scale(dh,o,s*r),uh.useDir&&uh.calcDirMTV()),(s>=c||!uh.bidirectional)&&(Gr.scale(dh,o,-c*r),uh.useDir&&uh.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=ah(l,o),s=oh(l,s)}n[0]=o+uh.touchThreshold,n[1]=s-uh.touchThreshold,uh.negativeSize=n[1]<n[0]},e}();R();var mh=[],hh=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new X(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(mh)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(Hu),gh=gl();function _h(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=q(r.duration,200),u=q(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),en(d)&&(d=d(n,i)),en(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function vh(e,t,n,r,i,a,o){var s=!1,c;en(i)?(o=a,a=i,i=null):K(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=_h(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function yh(e,t,n,r,i,a){vh(`update`,e,t,n,r,i,a)}function bh(e,t,n,r,i,a){vh(`enter`,e,t,n,r,i,a)}function xh(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function Sh(e,t,n,r,i,a){xh(e)||vh(`leave`,e,t,n,r,i,a)}function Ch(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Sh(e,{style:{opacity:0}},t,n,r)}function wh(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Ch(e,t,n,r)}):Ch(e,t,n,r)}function Th(e){gh(e).oldStyle=e.style}var Eh=c({Arc:()=>eh,BezierCurve:()=>Qm,BoundingRect:()=>X,Circle:()=>vm,CompoundPath:()=>th,Ellipse:()=>bm,Group:()=>Ps,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>tf,IncrementalDisplayable:()=>hh,Line:()=>Jm,LinearGradient:()=>rh,OrientedBoundingRect:()=>ph,Path:()=>Yd,Point:()=>Gr,Polygon:()=>Um,Polyline:()=>Gm,RadialGradient:()=>ih,Rect:()=>uf,Ring:()=>zm,Sector:()=>Lm,Text:()=>hf,WH:()=>kh,XY:()=>Oh,applyTransform:()=>Wh,calcZ2Range:()=>pg,clipPointsByRect:()=>Yh,clipRectByRect:()=>Xh,createIcon:()=>Zh,decomposeTransform:()=>_g,ensureCopyRect:()=>ug,ensureCopyTransform:()=>dg,expandOrShrinkRect:()=>ng,extendPath:()=>Mh,extendShape:()=>Ah,getCurrentCanvasPainter:()=>yg,getShapeClass:()=>Ph,getTransform:()=>Uh,groupTransition:()=>Jh,initProps:()=>bh,isBoundingRectAxisAligned:()=>cg,isElementRemoved:()=>xh,lineLineIntersect:()=>$h,linePolygonIntersect:()=>Qh,makeImage:()=>Ih,makePath:()=>Fh,mergePath:()=>Rh,payloadDisableAnimation:()=>gg,registerShape:()=>Nh,removeElement:()=>Sh,removeElementWithFadeOut:()=>wh,resizePath:()=>zh,retrieveZInfo:()=>fg,setTooltipConfig:()=>ag,subPixelOptimize:()=>Hh,subPixelOptimizeLine:()=>Bh,subPixelOptimizeRect:()=>Vh,transformDirection:()=>Gh,traverseElements:()=>sg,traverseUpdateZ:()=>mg,updateProps:()=>yh}),Dh={},Oh=[`x`,`y`],kh=[`width`,`height`];function Ah(e){return Yd.extend(e)}var jh=hm;function Mh(e,t){return jh(e,t)}function Nh(e,t){Dh[e]=t}function Ph(e){if(Dh.hasOwnProperty(e))return Dh[e]}function Fh(e,t,n,r){var i=mm(e,t);return n&&(r===`center`&&(n=Lh(n,i.getBoundingRect())),zh(i,n)),i}function Ih(e,t,n){var r=new tf({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(Lh(t,i))}}});return r}function Lh(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var Rh=gm;function zh(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Bh(e,t){return af(e,e,{lineWidth:t}),e}function Vh(e,t){return of(e,e,t),e}var Hh=sf;function Uh(e,t){for(var n=Lr([]);e&&e!==t;)zr(n,e.getLocalTransform(),n),e=e.parent;return n}function Wh(e,t,n){return t&&!qt(t)&&(t=$o.getLocalTransform(t)),n&&(t=Ur([],t)),$n([],e,t)}function Gh(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:tc(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:tc(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Wh(a,t,n),tc(a[0])>tc(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Kh(e){return!e.isGroup}function qh(e){return e.shape!=null}function Jh(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Kh(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return qh(e)&&(t.shape=Rt(e.shape)),t}var a=r(e);t.traverse(function(e){if(Kh(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),yh(e,r,n,kf(e).dataIndex)}}})}function Yh(e,t){return H(e,function(e){var n=e[0];n=ec(n,t.x),n=$s(n,t.x+t.width);var r=e[1];return r=ec(r,t.y),r=$s(r,t.y+t.height),[n,r]})}function Xh(e,t){var n=ec(e.x,t.x),r=$s(e.x+e.width,t.x+t.width),i=ec(e.y,t.y),a=$s(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Zh(e,t,n){var r=B({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),Ht(i,n),new tf(r)):Fh(e.replace(`path://`,``),r,n,`center`)}function Qh(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if($h(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function $h(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=eg(u,d,c,l);if(tg(f))return!1;var p=e-i,m=t-a,h=eg(p,m,c,l)/f;if(h<0||h>1)return!1;var g=eg(p,m,u,d)/f;return!(g<0||g>1)}function eg(e,t,n,r){return e*r-n*t}function tg(e){return e<=1e-6&&e>=-1e-6}function ng(e,t,n,r,i){return t==null?e:(nn(t)?rg[0]=rg[1]=rg[2]=rg[3]=t:(rg[0]=t[0],rg[1]=t[1],rg[2]=t[2],rg[3]=t[3]),r&&(rg[0]=ec(0,rg[0]),rg[1]=ec(0,rg[1]),rg[2]=ec(0,rg[2]),rg[3]=ec(0,rg[3])),n&&(rg[0]=-rg[0],rg[1]=-rg[1],rg[2]=-rg[2],rg[3]=-rg[3]),ig(e,rg,`x`,`width`,3,1,i&&i[0]||0),ig(e,rg,`y`,`height`,0,2,i&&i[1]||0),e)}var rg=[0,0,0,0];function ig(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=ec(0,$s(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:tc(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function ag(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=G(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&V(Zt(c),function(e){Y(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=kf(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:Ht({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function og(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function sg(e,t){if(e)if(W(e))for(var n=0;n<e.length;n++)og(e[n],t);else og(e,t)}function cg(e){return!e||tc(e[1])<lg&&tc(e[2])<lg||tc(e[0])<lg&&tc(e[3])<lg}var lg=1e-5;function ug(e,t){return e?X.copy(e,t):t.clone()}function dg(e,t){return t?Rr(e||Ir(),t):void 0}function fg(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function pg(e){var t=-1/0,n=1/0;og(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function mg(e,t,n){hg(e,t,n,-1/0)}function hg(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=ec(hg(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=ec(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function gg(e){return e.animation={duration:0},e}function _g(e,t){return t?Rr(vg.transform,t):Lr(vg.transform),vg.decomposeTransform(),ns(e,vg),e}var vg=new $o;vg.transform=Ir();function yg(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}Nh(`circle`,vm),Nh(`ellipse`,bm),Nh(`sector`,Lm),Nh(`ring`,zm),Nh(`polygon`,Um),Nh(`polyline`,Gm),Nh(`rect`,uf),Nh(`line`,Jm),Nh(`bezierCurve`,Qm),Nh(`arc`,eh);var bg={};function xg(e,t){for(var n=0;n<Kf.length;n++){var r=Kf[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Sg(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=en(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<Kf.length;l++){var u=Kf[l],d=t[u];c[u]=q(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function Cg(e,t,n,r){n||=bg;for(var i=e instanceof hf,a=!1,o=0;o<qf.length;o++){var s=t[qf[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new hf,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=Sg(n,t),u=t.normal,d=!!u.getShallow(`show`),f=Tg(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(Eg(u,n,!1));for(var o=0;o<Kf.length;o++){var p=Kf[o],s=t[p];if(s){var m=c.ensureState(p),h=!!q(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=Tg(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=Eg(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(Pg(c).setLabelText=function(e){var r=Sg(n,t,e);xg(c,r)})}else c&&(c.ignore=!0);e.dirty()}function wg(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<Kf.length;r++){var i=Kf[r];n[i]=e.getModel([i,t])}return n}function Tg(e,t,n,r,i){var a={};return Dg(a,e,n,r,i),t&&B(a,t),a}function Eg(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=q(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function Dg(e,t,n,r,i){n||=bg;var a=t.ecModel,o=a&&a.option.textStyle,s=Og(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=q(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);Mg(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=nn(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=Ig.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=mn(_),h.__marginType=Ig.textMargin)}Mg(e,t,o,null,null,n,r,i,!0,!1)}function Og(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||bg).rich;if(n){t||={};for(var r=Zt(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var kg=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Ag=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],jg=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function Mg(e,t,n,r,i,a,o,s,c,l){n=!o&&n||bg;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=q(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=q(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=q(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=q(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<kg.length;_++){var v=kg[_],y=i!==!1&&r?fn(t.getShallow(v),r.getShallow(v),n[v]):q(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<Ag.length;_++){var v=Ag[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<jg.length;_++){var v=jg[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function Ng(e,t){var n=t&&t.getModel(`textStyle`);return gn([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var Pg=gl();function Fg(e,t,n,r){if(e){var i=Pg(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}var Ig={minMargin:1,textMargin:2},Lg=[`textStyle`,`color`],Rg=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],zg=new hf,Bg=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Lg):null)},e.prototype.getFont=function(){return Ng({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<Rg.length;n++)t[Rg[n]]=this.getShallow(Rg[n]);return zg.useStyle(t),zg.update(),zg.getBoundingRect()},e}(),Vg=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Hg=ou(Vg),Ug=function(){function e(){}return e.prototype.getLineStyle=function(e){return Hg(this,e)},e}(),Wg=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Gg=ou(Wg),Kg=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Gg(this,e,t)},e}(),qg=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){zt(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(Rt(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!ft.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Ql(qg),nu(qg),Kt(qg,Ug),Kt(qg,Kg),Kt(qg,cu),Kt(qg,Bg);var Jg=Math.round(Math.random()*10);function Yg(e){return[e||``,Jg++].join(`_`)}function Xg(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Yl(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Yl(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Zg(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(V(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),V(u.successor,d?p:f)}V(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return V(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),V(c,function(e){Wt(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);Wt(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return V(e,function(e){Wt(t,e)>=0&&n.push(e)}),n}}function Qg(e,t){return zt(zt({},e,!0),t,!0)}var $g={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:`. `}}}},e_={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:``}}}},t_=`ZH`,n_=`EN`,r_=n_,i_={},a_={},o_=ft.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||r_).toUpperCase().indexOf(t_)>-1?t_:r_}():r_;function s_(e,t){e=e.toUpperCase(),a_[e]=new qg(t),i_[e]=t}function c_(e){if(G(e)){var t=i_[e.toUpperCase()]||{};return e===t_||e===n_?Rt(t):zt(Rt(t),Rt(i_[r_]),!1)}else return zt(Rt(e),Rt(i_[r_]),!1)}function l_(e){return a_[e]}function u_(){return a_[r_]}s_(n_,$g),s_(t_,e_);var d_=null;function f_(){return d_}function p_(e,t){var n=f_(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function m_(e){var t=e.brk;return t?t.breaks:[]}function h_(e){var t=e.brk;return t?t.hasBreaks():!1}var g_=1e3,__=g_*60,v_=__*60,y_=v_*24,b_=y_*365,x_={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},S_={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},C_=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,w_=`{yyyy}-{MM}-{dd}`,T_={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:w_,hour:w_+` `+S_.hour,minute:w_+` `+S_.minute,second:w_+` `+S_.second,millisecond:C_},E_=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],D_=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function O_(e){return!G(e)&&!en(e)?k_(e):e}function k_(e){e||={};var t={},n=!0;return V(E_,function(t){n&&=e[t]==null}),V(E_,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=E_[s],l=K(a)&&!W(a)?a[c]:a,u=void 0;W(l)?(u=l.slice(),o=u[0]||``):G(l)?(o=l,u=[o]):(o==null?o=S_[r]:x_[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function A_(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function j_(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function M_(e){return e===j_(e)}function N_(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function P_(e,t,n,r){var i=kc(e),a=i[R_(n)](),o=i[z_(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[B_(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[V_(n)](),d=(u-1)%12+1,f=i[H_(n)](),p=i[U_(n)](),m=i[W_(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof qg?r:l_(r||o_)||u_()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,A_(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,A_(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,A_(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,A_(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,A_(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,A_(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,A_(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,A_(m,3)).replace(/{S}/g,m+``)}function F_(e,t,n,r,i){var a=null;if(G(n))a=n;else if(en(n)){var o={time:e.time,level:e.time?e.time.level:0},s=f_();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=I_(e.value,i);a=n[u][u][0]}}return P_(new Date(e.value),a,i,r)}function I_(e,t){var n=kc(e),r=n[z_(t)]()+1,i=n[B_(t)](),a=n[V_(t)](),o=n[H_(t)](),s=n[U_(t)](),c=n[W_(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function L_(e,t,n){switch(t){case`year`:e[K_(n)](0);case`month`:e[q_(n)](1);case`day`:e[J_(n)](0);case`hour`:e[Y_(n)](0);case`minute`:e[X_(n)](0);case`second`:e[Z_(n)](0)}return e}function R_(e){return e?`getUTCFullYear`:`getFullYear`}function z_(e){return e?`getUTCMonth`:`getMonth`}function B_(e){return e?`getUTCDate`:`getDate`}function V_(e){return e?`getUTCHours`:`getHours`}function H_(e){return e?`getUTCMinutes`:`getMinutes`}function U_(e){return e?`getUTCSeconds`:`getSeconds`}function W_(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function G_(e){return e?`setUTCFullYear`:`setFullYear`}function K_(e){return e?`setUTCMonth`:`setMonth`}function q_(e){return e?`setUTCDate`:`setDate`}function J_(e){return e?`setUTCHours`:`setHours`}function Y_(e){return e?`setUTCMinutes`:`setMinutes`}function X_(e){return e?`setUTCSeconds`:`setSeconds`}function Z_(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Q_(e,t,n,r,i,a,o,s){return new hf({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?`truncate`:null,lineHeight:s}}).getBoundingRect()}function $_(e){if(!Ic(e))return G(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function ev(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var tv=mn;function nv(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&gn(e)?e:`-`}function a(e){return Bc(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?kc(e):e;if(!isNaN(+c))return P_(c,r,n);if(s)return`-`}if(t===`ordinal`)return tn(e)?i(e):nn(e)&&a(e)?e+``:`-`;var l=Fc(e);return a(l)?$_(l):tn(e)?i(e):typeof e==`boolean`?e+``:`-`}var rv=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],iv=function(e,t){return`{`+e+(t??``)+`}`};function av(e,t,n){W(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=rv[a];e=e.replace(iv(o),iv(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(iv(rv[c],s),n?vr(l):l)}return e}function ov(e,t){var n=G(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+vr(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+vr(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function sv(e,t,n){(e===`week`||e===`month`||e===`quarter`||e===`half-year`||e===`year`)&&(e=`MM-dd
17
+ yyyy`);var r=kc(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r[i+`Date`](),c=r[i+`Hours`](),l=r[i+`Minutes`](),u=r[i+`Seconds`](),d=r[i+`Milliseconds`]();return e=e.replace(`MM`,A_(o,2)).replace(`M`,o).replace(`yyyy`,a).replace(`yy`,A_(a%100+``,2)).replace(`dd`,A_(s,2)).replace(`d`,s).replace(`hh`,A_(c,2)).replace(`h`,c).replace(`mm`,A_(l,2)).replace(`m`,l).replace(`ss`,A_(u,2)).replace(`s`,u).replace(`SSS`,A_(d,3)),e}function cv(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function lv(e,t){return t||=`transparent`,G(e)?e:K(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function uv(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var dv={},fv={},pv=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(dv,!0),this._normalMasterList=n(fv,!1);function n(n,r){var i=[];return V(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){V(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){dv[e]=t;return}fv[e]=t},e.get=function(e){return fv[e]||dv[e]},e}();function mv(e){return!!dv[e]}function hv(e){gv.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var gv=J();function _v(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=gv.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function vv(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!mv(n)&&(i=0))}return{coordSysType:n,kind:i}}function yv(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=vv(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var bv=V,xv=[`left`,`right`,`top`,`bottom`,`width`,`height`],Sv=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Cv(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var wv=Cv;$t(Cv,`vertical`),$t(Cv,`horizontal`);function Tv(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function Ev(e,t){var n=Av(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===kv.point)a=n.refPoint,i=Ov(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=W(o)?o:[o,o];i=Ov(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[dc(s[0],i.width)+i.x,dc(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function Dv(e,t){var n=Ev(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);W(a)||(a=[0,a]);var o=dc(r.width,t.getWidth()),s=dc(r.height,t.getHeight()),c=Math.min(o,s),l=dc(a[0],c/2),u=dc(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function Ov(e,t,n){n=tv(n||0);var r=t.width,i=t.height,a=dc(e.left,r),o=dc(e.top,i),s=dc(e.right,r),c=dc(e.bottom,i),l=dc(e.width,r),u=dc(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new X((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var kv={rect:1,point:2};function Av(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=_v(e),l=c.coord,u=c.from;if(o.dataToLayout){a=kv.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=kv.point,s=u,i=o.dataToPoint(l))}return a??=kv.rect,a===kv.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function jv(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new X(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=Ov(Ht({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Mv(e){var t=e.layoutMode||e.constructor.layoutMode;return K(t)?t:t?{type:t}:null}function Nv(e,t,n){var r=n&&n.ignoreSize;!W(r)&&(r=[r,r]);var i=o(Sv[0],0),a=o(Sv[1],1);c(Sv[0],e,i),c(Sv[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(bv(n,function(t){c[t]=e[t]}),bv(n,function(e){Y(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!Y(a,f)&&Y(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){bv(e,function(e){t[e]=n[e]})}}function Pv(e){return Fv({},e)}function Fv(e,t){return t&&e&&bv(xv,function(n){Y(t,n)&&(e[n]=t[n])}),e}R();var Iv=gl(),Lv=function(e){O(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Yg(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Mv(this),r=n?Pv(e):{};zt(e,t.getTheme().get(this.mainType)),zt(e,this.getDefaultOption()),n&&Nv(e,r,n)},t.prototype.mergeOption=function(e,t){zt(this.option,e,!0);var n=Mv(this);n&&Nv(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Zl(e))return e.defaultOption;var t=Iv(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=zt(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Sl(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Tv(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(qg);eu(Lv,qg),au(Lv),Xg(Lv),Zg(Lv,Rv);function Rv(e){var t=[];return V(Lv.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=H(t,function(e){return Yl(e).main}),e!==`dataset`&&Wt(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Z={color:{},darkColor:{},size:{}},zv=Z.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var Bv in B(zv,{primary:zv.neutral80,secondary:zv.neutral70,tertiary:zv.neutral60,quaternary:zv.neutral50,disabled:zv.neutral20,border:zv.neutral30,borderTint:zv.neutral20,borderShade:zv.neutral40,background:zv.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:zv.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:zv.neutral70,axisLineTint:zv.neutral40,axisTick:zv.neutral70,axisTickMinor:zv.neutral60,axisLabel:zv.neutral70,axisSplitLine:zv.neutral15,axisMinorSplitLine:zv.neutral05}),zv)if(zv.hasOwnProperty(Bv)){var Vv=zv[Bv];Bv===`theme`?Z.darkColor.theme=zv.theme.slice():Bv===`highlight`?Z.darkColor.highlight=`rgba(255,231,130,0.4)`:Bv.indexOf(`accent`)===0?Z.darkColor[Bv]=Ba(Vv,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Z.darkColor[Bv]=Ba(Vv,null,function(e){return e*.9},function(e){return 1-e**1.5})}Z.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Hv=``;typeof navigator<`u`&&(Hv=navigator.platform||``);var Uv=`rgba(0, 0, 0, 0.2)`,Wv=Z.color.theme[0],Gv=Ba(Wv,null,null,.9),Kv={darkMode:`auto`,colorBy:`series`,color:Z.color.theme,gradientColor:[Gv,Wv],aria:{decal:{decals:[{color:Uv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Uv,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Uv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Uv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Uv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Uv,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Hv.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},qv={Must:1,Might:2,Not:3},Jv=gl();function Yv(e){Jv(e).datasetMap=J()}function Xv(e,t,n){var r={},i=Qv(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=Jv(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),V(e,function(t,n){var i=K(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});V(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function Zv(e,t,n){var r={};if(!Qv(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&V(a,function(e,t){(K(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=ty(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===qv.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===qv.Not)&&(e.n=c),f(e)&&s[e.n]!==qv.Not)return e;d||(u===qv.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function Qv(e){if(!e.get(`data`,!0))return Sl(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},bl).models[0]}function $v(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:Sl(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},bl).models}function ey(e,t){return ty(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function ty(e,t,n,r,i,a){var o,s=5;if(an(e))return qv.Not;var c,l;if(r){var u=r[a];K(u)?(c=u.name,l=u.type):G(u)&&(c=u)}if(l!=null)return l===`ordinal`?qv.Must:qv.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return qv.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return qv.Not;var f=_[c];if(!f||an(f))return qv.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=$c(g);if(!W(y))return qv.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=G(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?qv.Might:qv.Not;if(t&&e!==`-`)return qv.Must}return qv.Not}var ny=J();function ry(e,t,n){var r=ny.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var iy=gl();gl();var ay=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Xc(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return sy(this,iy,r,i,e,t,n)},e.prototype.clearColorPalette=function(){cy(this,iy)},e}();function oy(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function sy(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:oy(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function cy(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}R();var ly,uy,dy,fy=`\0_ec_inner`,py=1,my=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new qg(r),this._locale=new qg(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=yy(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,yy(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?dy(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&V(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=J(),s=t&&t.replaceMergeMainTypeMap;Yv(this),V(e,function(e,t){e!=null&&(Lv.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?Rt(e):zt(n[t],e,!0))}),s&&s.each(function(e,t){Lv.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),Lv.topologicalTravel(a,Lv.getAllClassMainTypes(),c,this);function c(t){var a=ry(this,t,Xc(e[t])),o=r.get(t),c=tl(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);pl(c,t,Lv),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;V(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=Lv.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=B({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),B(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&ly(this)}this._seriesIndices||ly(this)},t.prototype.getOption=function(){var e=Rt(this.option);return V(e,function(t,n){if(Lv.hasClass(n)){for(var r=Xc(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!fl(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[fy],e},t.prototype.setTheme=function(e){this._theme=new qg(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?Yt(a,function(e){return!!e}):_y(`name`,i,a):_y(`id`,r,a):(o=[],V(Xc(n),function(e){a[e]&&o.push(a[e])})),vy(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(vy(r?this.queryComponents(r):Yt(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?Yt(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(en(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=G(e)?r.get(e):K(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=ul(e,null);return Yt(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return Yt(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return Yt(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){uy(this),V(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){V(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){uy(this),V(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return V(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return uy(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){uy(this);var n=[];V(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=J(n)},t.prototype.restoreData=function(e){ly(this);var t=this._componentsMap,n=[];t.each(function(e,t){Lv.hasClass(t)&&n.push(t)}),Lv.topologicalTravel(n,Lv.getAllClassMainTypes(),function(n){V(t.get(n),function(t){t&&(n!==`series`||!hy(t,e))&&t.restoreData()})})},t.internalField=function(){ly=function(e){var t=e._seriesIndices=[];V(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=J(t)},uy=function(e){},dy=function(e,t){e.option={},e.option[fy]=py,e._componentsMap=J({series:[]}),e._componentsCount=J();var n=t.aria;K(n)&&n.enabled==null&&(n.enabled=!0),gy(t,e._theme.option),zt(t,Kv,!1),e._mergeOption(t,null)}}(),t}(qg);function hy(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function gy(e,t){var n=e.color&&!e.colorLayer;V(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||Lv.hasClass(r)||(typeof t==`object`?e[r]=e[r]?zt(e[r],t,!1):Rt(t):e[r]??(e[r]=t))})}function _y(e,t,n){if(W(t)){var r=J();return V(t,function(e){e!=null&&ul(e,null)!=null&&r.set(e,!0)}),Yt(n,function(t){return t&&r.get(t[e])})}else{var i=ul(t,null);return Yt(n,function(t){return t&&i!=null&&t[e]===i})}}function vy(e,t){return t.hasOwnProperty(`subType`)?Yt(e,function(e){return e&&e.subType===t.subType}):e}function yy(e){var t=J();return e&&V(Xc(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Kt(my,ay);var by=/^(min|max)?(.+)$/,xy=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(V(Xc(e.series),function(e){e&&e.data&&an(e.data)&&vn(e.data)}),V(Xc(e.dataset),function(e){e&&e.source&&an(e.source)&&vn(e.source)})),e=Rt(e);var r=this._optionBackup,i=Sy(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Rt(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=Rt(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)Cy(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!Ty(a,this._currentMediaIndices)&&(o=H(a,function(e){return Rt(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function Sy(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||=s):((d||u)&&(e.options=e.media=null),a=e),u&&W(l)&&V(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),V(c,function(e){return f(e)}),V(r,function(e){return f(e.option)});function f(e){V(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function Cy(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return V(e,function(e,t){var n=t.match(by);if(!(!n||!n[1]||!n[2])){var a=n[1];wy(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function wy(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function Ty(e,t){return e.join(`,`)===t.join(`,`)}var Ey=V,Dy=K,Oy=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function ky(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Oy.length;n<r;n++){var i=Oy[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?zt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?zt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Ay(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,Ht(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function jy(e){Ay(e,`itemStyle`),Ay(e,`lineStyle`),Ay(e,`areaStyle`),Ay(e,`label`),Ay(e,`labelLine`),Ay(e,`upperLabel`),Ay(e,`edgeLabel`)}function My(e,t){var n=Dy(e)&&e[t],r=Dy(n)&&n.textStyle;if(r)for(var i=0,a=Qc.length;i<a;i++){var o=Qc[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Ny(e){e&&(jy(e),My(e,`label`),e.emphasis&&My(e.emphasis,`label`))}function Py(e){if(Dy(e)){ky(e),jy(e),My(e,`label`),My(e,`upperLabel`),My(e,`edgeLabel`),e.emphasis&&(My(e.emphasis,`label`),My(e.emphasis,`upperLabel`),My(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(ky(t),Ny(t));var n=e.markLine;n&&(ky(n),Ny(n));var r=e.markArea;r&&Ny(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!an(a))for(var o=0;o<a.length;o++)Ny(a[o]);V(e.categories,function(e){jy(e)})}if(i&&!an(i))for(var o=0;o<i.length;o++)Ny(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Ny(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)W(c[o])?(Ny(c[o][0]),Ny(c[o][1])):Ny(c[o]);e.type===`gauge`?(My(e,`axisLabel`),My(e,`title`),My(e,`detail`)):e.type===`treemap`?(Ay(e.breadcrumb,`itemStyle`),V(e.levels,function(e){jy(e)})):e.type===`tree`&&jy(e.leaves)}}function Fy(e){return W(e)?e:e?[e]:[]}function Iy(e){return(W(e)?e[0]:e)||{}}function Ly(e,t){Ey(Fy(e.series),function(e){Dy(e)&&Py(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),Ey(n,function(t){Ey(Fy(e[t]),function(e){e&&(My(e,`axisLabel`),My(e.axisPointer,`label`))})}),Ey(Fy(e.parallel),function(e){var t=e&&e.parallelAxisDefault;My(t,`axisLabel`),My(t&&t.axisPointer,`label`)}),Ey(Fy(e.calendar),function(e){Ay(e,`itemStyle`),My(e,`dayLabel`),My(e,`monthLabel`),My(e,`yearLabel`)}),Ey(Fy(e.radar),function(e){My(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),Ey(Fy(e.geo),function(e){Dy(e)&&(Ny(e),Ey(Fy(e.regions),function(e){Ny(e)}))}),Ey(Fy(e.timeline),function(e){Ny(e),Ay(e,`label`),Ay(e,`itemStyle`),Ay(e,`controlStyle`,!0);var t=e.data;W(t)&&V(t,function(e){K(e)&&(Ay(e,`label`),Ay(e,`itemStyle`))})}),Ey(Fy(e.toolbox),function(e){Ay(e,`iconStyle`),Ey(e.feature,function(e){Ay(e,`iconStyle`)})}),My(Iy(e.axisPointer),`label`),My(Iy(e.tooltip).axisPointer,`label`)}function Ry(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function zy(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function By(e){e&&V(Vy,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Vy=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],Hy=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],Uy=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function Wy(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Uy.length;n++){var r=Uy[n][1],i=Uy[n][0];t[r]!=null&&(t[i]=t[r])}}function Gy(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Ky(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function qy(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function Jy(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Jy(e[n].children,t)}function Yy(e,t){Ly(e,t),e.series=Xc(e.series),V(e.series,function(e){if(K(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),Gy(e.label);var n=e.data;if(n&&!an(n))for(var r=0;r<n.length;r++)Gy(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=Ry(e,`pointer.color`);i!=null&&zy(e,`itemStyle.color`,i)}else if(t===`bar`){Wy(e),Wy(e.backgroundStyle),Wy(e.emphasis);var n=e.data;if(n&&!an(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(Wy(n[r]),Wy(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),Ky(e),Jy(e.data,Ky)}else t===`graph`||t===`sankey`?qy(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Ht(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),By(e)}}),e.dataRange&&(e.visualMap=e.dataRange),V(Hy,function(t){var n=e[t];n&&(W(n)||(n=[n]),V(n,function(e){By(e)}))})}var Xy=Gl(Zy);function Zy(e){var t=J();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),V(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),Qy(e))})}function Qy(e){V(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=wc(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var $y=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&ey(this,n)===qv.Must&&(r.type=`ordinal`)}}return e}();function eb(e){return e instanceof $y}function tb(e,t,n){n||=ib(e);var r=t.seriesLayoutBy,i=ab(e,n,r,t.sourceHeader,t.dimensions);return new $y({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Rt(t)})}function nb(e){return new $y({data:e,sourceFormat:an(e)?If:Mf})}function rb(e){return new $y({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Rt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function ib(e){var t=Lf;if(an(e))t=If;else if(W(e)){e.length===0&&(t=Nf);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(W(i)||an(i)){t=Nf;break}else if(K(i)){t=Pf;break}}}}else if(K(e)){for(var a in e)if(Y(e,a)&&qt(e[a])){t=Ff;break}}return t}function ab(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:sb(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?cb(function(e){e!=null&&e!==`-`&&(G(e)?o??=1:o=0)},n,s,10):o=nn(r)?r:+!!r,!i&&o===1&&(i=[],cb(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=ob(e);else if(t===`keyedColumns`)i||(i=[],V(e,function(e,t){i.push(t)}));else if(t===`original`){var c=$c(e[0]);a=W(c)&&c.length||1}return{startIndex:o,dimensionsDefine:sb(i),dimensionsDetectedCount:a}}function ob(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Zt(n)}function sb(e){if(e){var t=J();return H(e,function(e,n){e=K(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+ i.count++:t.set(r.name,{count:1}),r})}}function cb(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function lb(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var ub,db,fb,pb,mb,hb,gb=function(){function e(e,t){var n=eb(e)?e:nb(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),hb(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;hb=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=mb[Db(o,s)];B(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=U(bb(o,s),null,i,c,l),e.count=U(Cb(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};mb=(e={},e[Nf+`_`+Rf]={pure:!0,appendData:i},e[Nf+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Pf]={pure:!0,appendData:i},e[Ff]={pure:!0,appendData:function(e){var t=this._data;V(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Mf]={appendData:i},e[If]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),_b=function(e){W(e)||Gc(`series.data or dataset.source must be an array.`)};ub={},ub[Nf+`_`+Rf]=_b,ub[Nf+`_row`]=_b,ub[Pf]=_b,ub[Ff]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??Gc(`dimension name must not be null/undefined.`)},ub[Mf]=_b;var vb=function(e,t,n,r){return e[r]},yb=(db={},db[Nf+`_`+Rf]=function(e,t,n,r){return e[r+t]},db[Nf+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},db[Pf]=vb,db[Ff]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},db[Mf]=vb,db);function bb(e,t){return yb[Db(e,t)]}var xb=function(e,t,n){return e.length},Sb=(fb={},fb[Nf+`_`+Rf]=function(e,t,n){return Math.max(0,e.length-t)},fb[Nf+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},fb[Pf]=xb,fb[Ff]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},fb[Mf]=xb,fb);function Cb(e,t){return Sb[Db(e,t)]}var wb=function(e,t,n){return e[t]},Tb=(pb={},pb[Nf]=wb,pb[Pf]=function(e,t,n){return e[n]},pb[Ff]=wb,pb[Mf]=function(e,t,n){var r=$c(e);return r instanceof Array?r[t]:r},pb[If]=wb,pb);function Eb(e){return Tb[e]}function Db(e,t){return e===`arrayRows`?e+`_`+t:e}function Ob(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return Eb(a)(r,o,s)}else{var c=r;return a===`original`&&(c=$c(r)),c}}}}var kb=/\{@(.+?)\}/g,Ab=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&W(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),en(i))return s.status=t,s.dimensionIndex=r,i(s);if(G(i))return av(i,s).replace(kb,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=Ob(o,e,i);if(a&&W(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return Ob(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function jb(e){var t,n;return K(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Mb(e){return new Nb(e)}var Nb=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(W(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){Pb.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Pb.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),W(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),Pb=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function Fb(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!nn(e)&&e!=null&&e!==`-`&&(e=+kc(e)),e==null||e===``?NaN:Number(e))}J({number:function(e){return parseFloat(e)},time:function(e){return+kc(e)},trim:function(e){return G(e)?gn(e):e}});var Ib={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(){function e(e,t){nn(t)||Kc(``),this._opFn=Ib[e],this._rvalFloat=Fc(t)}return e.prototype.evaluate=function(e){return nn(e)?this._opFn(e,this._rvalFloat):this._opFn(Fc(e),this._rvalFloat)},e})();var Lb=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=nn(e)?e:Fc(e),r=nn(t)?t:Fc(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=G(e),s=G(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Fc(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Fc(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function Rb(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function zb(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var Bb=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Fb(e,t)},e}();function Vb(e,t){var n=new Bb,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&Kc(``);var o=[],s={},c=e.dimensionsDefine;if(c)V(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(Y(s,n)&&Kc(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=bb(i,Rf);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=U(Hb,null,e)),n.cloneRawData=U(Ub,null,e),n.count=U(Cb(i,Rf),null,r,a,o);var d=Eb(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=U(Wb,null,o,s),n.cloneAllDimensionInfo=U(Gb,null,o),n}function Hb(e){var t=e.sourceFormat;return Xb(t)||Kc(``),e.data}function Ub(e){var t=e.sourceFormat,n=e.data;if(Xb(t)||Kc(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}else if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(B({},n[i]));return r}}function Wb(e,t,n){if(n!=null){if(nn(n)||!isNaN(n)&&!Y(t,n))return e[n];if(Y(t,n))return t[n]}}function Gb(e){return Rt(e)}var Kb=J();function qb(e){e=Rt(e);var t=e.type,n=``;t||Kc(n);var r=t.split(`:`);r.length!==2&&Kc(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Kb.set(t,e)}function Jb(e,t,n){var r=Xc(e),i=r.length;i||Kc(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=Yb(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function Yb(e,t,n,r){var i=``;t.length||Kc(i),K(e)||Kc(i);var a=e.type,o=Kb.get(a);o||Kc(i);var s=H(t,function(e){return Vb(e,o)});return H(Xc(o.transform({upstream:s[0],upstreamList:s,config:Rt(e.config)})),function(e,n){var r=``;K(e)||Kc(r),e.data||Kc(r),Xb(ib(e.data))||Kc(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:Rf,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Rf,sourceHeader:0,dimensions:e.dimensions};return tb(e.data,i,null)})}function Xb(e){return e===`arrayRows`||e===`objectRows`}var Zb=typeof Uint32Array>`u`?Array:Uint32Array,Qb=typeof Uint16Array>`u`?Array:Uint16Array,$b=typeof Int32Array>`u`?Array:Int32Array,ex=typeof Float64Array>`u`?Array:Float64Array,tx={float:ex,int:$b,ordinal:Array,number:Array,time:ex},nx;function rx(e){return e>65535?Zb:Qb}function ix(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function ax(e,t,n,r,i){var a=tx[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var ox=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=J()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=nx[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],lb(r),this._dimensions=H(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new tx[t||`float`](this._rawCount),this._rawExtent[i]=Ol(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=Ol());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];ax(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=nx.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=H(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=Ol()),ax(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),_c(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=rx(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(rx(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Zt(e),i=r.length;if(!i)return this;var a=t.count(),o=new(rx(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=Ol();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(rx(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(rx(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=Ol(),d=new(rx(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=Ol();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=Rb(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||zb(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&Jt(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?ix(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Rt(this._extent),e._rawExtent=Rt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Fb(e[r],this._dimensions[r])}nx={arrayRows:e,objectRows:function(e,t,n,r){return Fb(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return Fb(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),sx=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(cx(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=an(o)?If:Mf,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=q(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=q(u.sourceHeader,d.sourceHeader),m=q(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[tb(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[tb(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&lx(``);var i,a=[],o=[];return V(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&lx(``),a.push(t),o.push(e._getVersionSign())}),n?i=Jb(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[rb(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];cx(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new ox,o.initData(new gb(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(cx(e)){var t=Qv(e);return t?[t.getSourceManager()]:[]}else return H($v(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(cx(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function cx(e){return e.mainType===`series`}function lx(e){throw Error(e)}var ux=`line-height:1`;function dx(e){var t=e.lineHeight;return t==null?ux:`line-height:`+vr(t+``)+`px`}function fx(e,t){var n=e.color||Z.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||Z.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+vr(r+``)+`px;color:`+vr(n)+`;font-weight:`+vr(i+``),valueStyle:`font-size:`+vr(o+``)+`px;color:`+vr(a)+`;font-weight:`+vr(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var px=[0,10,20,30],mx=[``,`
18
+ `,`
19
+
20
+ `,`
21
+
22
+
23
+ `];function hx(e,t){return t.type=e,t}function gx(e){return e.type===`section`}function _x(e){return gx(e)?yx:bx}function vx(e){if(gx(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return V(e.blocks,function(e){var n=vx(e);n>=t&&(t=n+ +(r&&(!n||gx(e)&&!e.noHeader)))}),t}return 0}function yx(e,t,n,r){var i=t.noHeader,a=Sx(vx(t)),o=[],s=t.blocks||[];hn(!s||W(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Y(l,c)){var u=new Lb(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}V(s,function(n,i){var s=t.valueFormatter,c=_x(n)(s?B(B({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):Cx(r,o.join(``),i?n:a.html);if(i)return d;var f=nv(t.header,`ordinal`,e.useUTC),p=fx(r,e.renderMode).nameStyle,m=dx(r);return e.renderMode===`richText`?Dx(e,f,p)+a.richText+d:Cx(r,`<div style="`+p+`;`+m+`;">`+vr(f)+`</div>`+d,n)}function bx(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=W(e)?e:[e],H(e,function(e,t){return nv(e,W(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Z.color.secondary,i),f=a?``:nv(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=fx(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:Dx(e,f,v))+(o?``:Ox(e,m,h,g,y)):Cx(r,(s?``:d)+(a?``:Tx(f,!s,v))+(o?``:Ex(m,h,g,y)),n)}}function xx(e,t,n,r,i,a){if(e)return _x(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Sx(e){return{html:px[e],richText:mx[e]}}function Cx(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=dx(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function Tx(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+vr(e)+`</span>`}function Ex(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=W(e)?e:[e],`<span style="`+i+`;`+r+`">`+H(e,function(e){return vr(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function Dx(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Ox(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(W(t)?t.join(` `):t,a)}function kx(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return lv(n)}function Ax(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var jx=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Lc()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+ this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=ov({color:t,type:e,renderMode:n,markerId:r});return G(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};W(t)?V(t,function(e){return B(n,e)}):B(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function Mx(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=W(s),l=kx(t,n),u,d,f,p;if(o>1||c&&!o){var m=Nx(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=Ob(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=dl(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return hx(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[hx(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!gn(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function Nx(e,t,n,r,i){var a=t.getData(),o=Jt(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?V(r,function(e){u(Ob(a,n,e),e)}):V(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(hx(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}R();var Px=gl();function Fx(e,t){return e.getName(t)||e.getId(t)}var Ix=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Mb({count:zx,reset:Bx}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Px(this).sourceManager=new sx(this)).prepareSource();var r=this.getInitialData(e,n);Hx(r,this),this.dataTask.context.data=r,Px(this).dataBeforeProcessed=r,Lx(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Mv(this),r=n?Pv(e):{},i=this.subType;Lv.hasClass(i)&&(i+=`Series`),zt(e,t.getTheme().get(this.subType)),zt(e,this.getDefaultOption()),Zc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Nv(e,r,n)},t.prototype.mergeOption=function(e,t){e=zt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Mv(this);n&&Nv(this.option,e,n);var r=Px(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Hx(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Px(this).dataBeforeProcessed=i,Lx(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!an(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Zc(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=Wx(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return Px(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Wx(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Px(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return J(e)},t.prototype.getSourceManager=function(){return Px(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Px(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return Mx({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(ft.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=ay.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=Fx(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=Zt(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[Fx(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){K(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=Fx(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=Fx(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Lv.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(Lv);Kt(Ix,Ab),Kt(Ix,ay),eu(Ix,Lv);function Lx(e){var t=e.name;dl(e)||(e.name=Rx(e)||t)}function Rx(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return V(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function zx(e){return e.model.getRawData().count()}function Bx(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Vx}function Vx(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Hx(e,t){V(wn(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,$t(Ux,t))})}function Ux(e,t){var n=Wx(e);return n&&n.setOutputEnd((t||this).count()),t}function Wx(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var Gx=function(){function e(){this.group=new Ps,this.uid=Yg(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Ql(Gx),au(Gx);function Kx(){var e=gl();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var qx=gl(),Jx=Kx(),Yx=function(){function e(){this.group=new Ps,this.uid=Yg(`viewChart`),this.renderTask=Mb({plan:Qx,reset:$x}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Zx(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Zx(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){sg(this.group,e)},e.markUpdateMethod=function(e,t){qx(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function Xx(e,t,n){e&&Wp(e)&&(t===`emphasis`?yp:bp)(e,n)}function Zx(e,t,n){var r=hl(e,t),i=t&&t.highlightKey!=null?Gp(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Xx(e,n,i)}):V(Xc(r),function(t){Xx(e.getItemGraphicEl(t),n,i)})}Ql(Yx,[`dispose`]),au(Yx);function Qx(e){return Jx(e.model)}function $x(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&qx(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),eS[c]}var eS={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},tS=`\0__throttleOriginMethod`,nS=`\0__throttleRate`,rS=`\0__throttleType`;function iS(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function aS(e,t,n,r){var i=e[t];if(i){var a=i[tS]||i,o=i[rS];if(i[nS]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=iS(a,n,r===`debounce`),i[tS]=a,i[rS]=r,i[nS]=n}return i}}function oS(e,t){var n=e[t];n&&n[tS]&&(n.clear&&n.clear(),e[t]=n[tS])}var sS=gl(),cS={itemStyle:ou(Wg,!0),lineStyle:ou(Vg,!0)},lS={lineStyle:`stroke`,itemStyle:`fill`};function uS(e,t){return e.visualStyleMapper||cS[t]||(console.warn(`Unknown style type '`+t+`'.`),cS.itemStyle)}function dS(e,t){return e.visualDrawType||lS[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var fS={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=uS(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=dS(e,r),c=a[s],l=en(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||en(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||en(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=B({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},pS=new qg,mS={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=uS(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){pS.option=n[r];var o=i(pS);B(e.ensureUniqueItemVisual(t,`style`),o),pS.option.decal&&(e.setItemVisual(t,`decal`,pS.option.decal),pS.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},hS={performRawSeries:!0,overallReset:function(e){var t=J();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();sS(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=sS(e).scope,a=dS(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},gS=Math.PI;function _S(e,t){t||={},Ht(t,{text:`loading`,textColor:Z.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Z.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ps,r=new uf({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new hf({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new uf({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new eh({shape:{startAngle:-gS/2,endAngle:-gS/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:gS*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:gS*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var vS=function(){function e(e,t,n,r){this._stageTaskMap=J(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Ul(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=J();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;V(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});hn(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;V(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=J(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||Mb({plan:CS,reset:wS,count:DS}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||Mb({reset:yS});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=J(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;hn(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):V(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,Mb({reset:bS,onDirty:SS})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return en(e)&&(e={overallReset:e,seriesType:OS(e)}),e.uid=Yg(`stageHandler`),t&&(e.visualType=t),e},e}();function yS(e){e.overallReset(e.ecModel,e.api,e.payload)}function bS(e){return e.dirtyOnOverallProgress&&xS}function xS(){this.agent.dirty(),this.getDownstream().dirty()}function SS(){this.agent&&this.agent.dirty()}function CS(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function wS(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Xc(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?H(t,function(e,t){return ES(t)}):TS}var TS=ES(0);function ES(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function DS(e){return e.data.count()}function OS(e){jS=null;try{e(kS,AS)}catch{}return jS}var kS={},AS={},jS;MS(kS,my),MS(AS,Bf),kS.eachSeriesByType=kS.eachRawSeriesByType=function(e){jS=e},kS.eachComponent=function(e){e.mainType===`series`&&e.subType&&(jS=e.subType)};function MS(e,t){for(var n in t.prototype)e[n]=Dn}var Q=Z.darkColor,NS=Q.background,PS=function(){return{axisLine:{lineStyle:{color:Q.axisLine}},splitLine:{lineStyle:{color:Q.axisSplitLine}},splitArea:{areaStyle:{color:[Q.backgroundTint,Q.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Q.axisMinorSplitLine}},axisLabel:{color:Q.axisLabel},axisName:{}}},FS={label:{color:Q.secondary},itemStyle:{borderColor:Q.borderTint},dividerLineStyle:{color:Q.border}},IS={darkMode:!0,color:Q.theme,backgroundColor:NS,axisPointer:{lineStyle:{color:Q.border},crossStyle:{color:Q.borderShade},label:{color:Q.tertiary}},legend:{textStyle:{color:Q.secondary},pageTextStyle:{color:Q.tertiary}},textStyle:{color:Q.secondary},title:{textStyle:{color:Q.primary},subtextStyle:{color:Q.quaternary}},toolbox:{iconStyle:{borderColor:Q.accent50},feature:{dataView:{backgroundColor:NS,textColor:Q.primary,textareaColor:Q.background,textareaBorderColor:Q.border,buttonColor:Q.accent50,buttonTextColor:Q.neutral00}}},tooltip:{backgroundColor:Q.neutral20,defaultBorderColor:Q.border,textStyle:{color:Q.tertiary}},dataZoom:{borderColor:Q.accent10,textStyle:{color:Q.tertiary},brushStyle:{color:Q.backgroundTint},handleStyle:{color:Q.neutral00,borderColor:Q.accent20},moveHandleStyle:{color:Q.accent40},emphasis:{handleStyle:{borderColor:Q.accent50}},dataBackground:{lineStyle:{color:Q.accent30},areaStyle:{color:Q.accent20}},selectedDataBackground:{lineStyle:{color:Q.accent50},areaStyle:{color:Q.accent30}}},visualMap:{textStyle:{color:Q.secondary},handleStyle:{borderColor:Q.neutral30}},timeline:{lineStyle:{color:Q.accent10},label:{color:Q.tertiary},controlStyle:{color:Q.accent30,borderColor:Q.accent30}},calendar:{itemStyle:{color:Q.neutral00,borderColor:Q.neutral20},dayLabel:{color:Q.tertiary},monthLabel:{color:Q.secondary},yearLabel:{color:Q.secondary}},matrix:{x:FS,y:FS,backgroundColor:{borderColor:Q.axisLine},body:{itemStyle:{borderColor:Q.borderTint}}},timeAxis:PS(),logAxis:PS(),valueAxis:PS(),categoryAxis:PS(),line:{symbol:`circle`},graph:{color:Q.theme},gauge:{title:{color:Q.secondary},axisLine:{lineStyle:{color:[[1,Q.neutral05]]}},axisLabel:{color:Q.axisLabel},detail:{color:Q.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:Q.background}},radar:function(){var e=PS();return e.axisName={color:Q.axisLabel},e.axisLine.lineStyle.color=Q.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:Q.neutral20,textStyle:{color:Q.secondary}},emphasis:{itemStyle:{color:Q.neutral30}}}},sunburst:{itemStyle:{borderColor:Q.background}},map:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},label:{color:Q.tertiary},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}}},geo:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{color:Q.highlight}}}};IS.categoryAxis.splitLine.show=!1;var LS=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(G(e)){var i=Yl(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};V(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),RS=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],zS=RS.concat([`symbolKeepAspect`]),BS={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<RS.length;o++){var s=RS[o],c=e.get(s);en(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(B({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=Zt(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},VS={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<zS.length;r++){var i=zS[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function HS(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:}}function US(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:}}function WS(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}V([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=B({},t),i.dispatchAction(B(t,{type:e[1],seriesIndex:n(r,t)}))})})}function GS(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=hl(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:W(l)?c.getName(l[0]):c.getName(l),selected:G(r)?r:B({},r)})}})}function KS(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(GS(`map`,`selectchanged`,t,r,e),GS(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(GS(`map`,`selected`,t,r,e),GS(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(GS(`map`,`unselected`,t,r,e),GS(`pie`,`unselected`,t,r,e))})}function qS(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var JS=new ir,YS={};function XS(e,t){YS[e]=t}function ZS(e){return YS[e]}var QS={};function $S(e,t){QS[e]=t}var eC=gl();function tC(e){eC(e).prepare={}}function nC(e){eC(e).fullUpdate={}}function rC(e){return eC(e).prepare}function iC(e){return eC(e).fullUpdate}var aC=Math.round(Math.random()*9),oC=typeof Object.defineProperty==`function`,sC=function(){function e(){this._id=`__ec_inner_`+ aC++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return oC?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}(),cC=Yd.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),lC={line:Jm,rect:uf,roundRect:uf,square:uf,circle:vm,diamond:Yd.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:Yd.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:Yd.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:cC},uC={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},dC={};V(lC,function(e,t){dC[t]=new e});var fC=Yd.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=gs(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=dC[r];i||=(r=`rect`,dC[r]),uC[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function pC(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Z.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function mC(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?Ih(e.slice(8),new X(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?Fh(e.slice(7),{},new X(t,n,r,i),o?`center`:`cover`):new fC({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=pC,a&&c.setColor(a),c}function hC(e){return W(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function gC(e,t){if(e!=null)return W(e)||(e=[e,e]),[dc(e[0],t[0])||0,dc(q(e[1],e[0]),t[1])||0]}function _C(e){return isFinite(e)}function vC(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=_C(r)?r:0,i=_C(i)?i:1,a=_C(a)?a:0,o=_C(o)?o:0,e.createLinearGradient(r,a,i,o)}function yC(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=_C(o)?o:.5,s=_C(s)?s:.5,c=c>=0&&_C(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function bC(e,t,n){for(var r=t.type===`radial`?yC(e,t,n):vC(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function xC(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function SC(e){return parseInt(e,10)}function CC(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||SC(s[r])||SC(e.style[r]))-(SC(s[a])||0)-(SC(s[o])||0)||0}function wC(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:nn(e)?[e]:W(e)?e:null}function TC(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&wC(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=H(n,function(e){return e/i}),r/=i)}return[n,r]}var EC=new wd(!0);function DC(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function OC(e){return typeof e==`string`&&e!==`none`}function kC(e){var t=e.fill;return t!=null&&t!==`none`}function AC(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function jC(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function MC(e,t,n){var r=du(t.image,t.__image,n);if(pu(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*On),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function NC(e,t,n,r,i){var a,o=DC(n),s=kC(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||EC,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?bC(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?bC(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?MC(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?MC(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=TC(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&jC(e,n),s&&AC(e,n)):(s&&AC(e,n),o&&jC(e,n)),T&&e.setLineDash([])}function PC(e,t,n){var r=t.__image=du(n.image,t.__image,t,t.onload);if(!(!r||!pu(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function FC(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=TC(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(DC(n)&&e.strokeText(i,n.x,n.y),kC(n)&&e.fillText(i,n.x,n.y)):(kC(n)&&e.fillText(i,n.x,n.y),DC(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var IC=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],LC=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function RC(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){YC(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Ru.opacity:o}(r||t.blend!==n.blend)&&(a||=(YC(e,i),!0),e.globalCompositeOperation=t.blend||Ru.blend);for(var s=0;s<IC.length;s++){var c=IC[s];(r||t[c]!==n[c])&&(a||=(YC(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(YC(e,i),!0),e.shadowColor=t.shadowColor||Ru.shadowColor),a}function zC(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=RC(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(YC(e,i),!0),OC(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(YC(e,i),!0),OC(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(YC(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(YC(e,i),!0),e.lineWidth=c)}for(var l=0;l<LC.length;l++){var u=LC[l],d=u[0];(r||a[d]!==o[d])&&(s||=(YC(e,i),!0),e[d]=a[d]||u[1])}return s}function BC(e,t,n,r,i){return RC(e,t.style,n&&n.style,r,i)}function VC(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function HC(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),VC(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function UC(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var WC=1,GC=2,KC=3,qC=4;function JC(e){var t=kC(e),n=DC(e);return!(e.lineDash||!(t^+n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function YC(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function XC(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};ZC(e,t,n),QC(e,n)}function ZC(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||xC(i,a))&&(a&&(YC(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(YC(e,n),e.save(),HC(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof Yd&&t.autoBatch&&JC(o);s||UC(r,l.transform)?(YC(e,n),VC(e,t)):u||YC(e,n),t instanceof Yd?(n.lastDrawType!==WC&&(c=!0,n.lastDrawType=WC),zC(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),NC(e,t,o,u,n)):t instanceof Zd?(n.lastDrawType!==KC&&(c=!0,n.lastDrawType=KC),zC(e,t,l,c,n),FC(e,t,o)):t instanceof tf?(n.lastDrawType!==GC&&(c=!0,n.lastDrawType=GC),BC(e,t,l,c,n),PC(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==qC&&(c=!0,n.lastDrawType=qC),$C(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&YC(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function QC(e,t){YC(e,t),t.prevElClipPaths&&e.restore()}function $C(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),ZC(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}QC(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),ZC(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}QC(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var ew=new sC,tw=new ga(100),nw=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function rw(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&ew.delete(e);var a=ew.get(e);if(a)return a;var o=Ht(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,ew.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<nw.length;++s){var c=o[nw[s]];if(c!=null&&!W(c)&&!G(c)&&!nn(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=tw.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=aw(o.dashArrayX),f=ow(o.dashArrayY),p=iw(o.symbol),m=sw(d),h=cw(f),g=!i&&bt.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&tw.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=zc(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=zc(r,p[t].length);e*=r;var i=h*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=mC(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else XC(y,u)}}}}function iw(e){if(!e||e.length===0)return[[`rect`]];if(G(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!G(e[n])){t=!1;break}if(t)return iw([e]);for(var r=[],n=0;n<e.length;++n)G(e[n])?r.push([e[n]]):r.push(e[n]);return r}function aw(e){if(!e||e.length===0)return[[0,0]];if(nn(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!nn(e[r])){n=!1;break}if(n)return aw([e]);for(var i=[],r=0;r<e.length;++r)if(nn(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=H(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function ow(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(nn(e)){var t=Math.ceil(e);return[t,t]}var n=H(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function sw(e){return H(e,function(e){return cw(e)})}function cw(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var lw=Gl(uw);function uw(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=rw(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=rw(i,t)}}})}R();var dw=`6.1.0`,fw={zrender:`6.1.0`},pw=1,mw=800,hw=900,gw=920,_w=1e3,vw=2e3,yw=5e3,bw=1e3,xw=1100,Sw=2e3,Cw=3e3,ww=4e3,Tw=4500,Ew=4600,Dw=5e3,Ow=6e3,kw=7e3,Aw={PROCESSOR:{SERIES_FILTER:mw,AXIS_STATISTICS:gw,FILTER:_w,STATISTIC:yw,STATISTICS:yw},VISUAL:{LAYOUT:bw,PROGRESSIVE_LAYOUT:xw,GLOBAL:Sw,CHART:Cw,POST_CHART_LAYOUT:Ew,COMPONENT:ww,BRUSH:Dw,CHART_ITEM:Tw,ARIA:Ow,DECAL:kw}},jw=`__flagInMainProcess`,Mw=`__mainProcessVersion`,Nw=`__pendingUpdate`,Pw=`__needsUpdateStatus`,Fw=/^[a-zA-Z0-9_]+$/,Iw=`__connectUpdateStatus`,Lw=0,Rw=1,zw=2;function Bw(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return Hw(this,e,t)}}function Vw(e){return function(){var t=[...arguments];return Hw(this,e,t)}}function Hw(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ir.prototype[t].apply(e,n)}var Uw=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ir),Ww=Uw.prototype;Ww.on=Vw(`on`),Ww.off=Vw(`off`);var Gw,Kw,qw,Jw,Yw,Xw,Zw,Qw,$w,eT,tT,nT,rT,iT,aT,oT,sT,cT,lT,uT=function(e){O(t,e);function t(t,n,r){var i=e.call(this,new LS)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[Mw]=1,r.ssr&&Js(function(e){var t=kf(e),n=t.dataIndex;if(n!=null){var r=J();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=Vs(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:q(r.useDirtyRect,s),useCoarsePointer:q(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=iS(U(c.flush,c),17),i._updateTheme(n),i._locale=c_(r.locale||o_),i._coordSysMgr=new pv;var l=i._api=aT(i);function u(e,t){return e.__prio-t.__prio}return Ni(vT,u),Ni(gT,u),i._scheduler=new vS(i,l,gT,vT),i._messageCenter=new Uw,i._initEvents(),i.resize=U(i.resize,i),c.animation.on(`frame`,i._onframe,i),eT(c,i),tT(c,i),vn(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(cT(this),this[Nw]){var r=this[Nw].silent;this[jw]=!0,lT(this);try{Gw(this),Jw.update.call(this,null,this[Nw].updateParams)}catch(e){throw this[jw]=!1,this[Nw]=null,e}this._zr.flush(),this[jw]=!1,this[Nw]=null,Qw.call(this,r),$w.call(this,r)}else if(e.unfinished){var i=pw;do{e.unfinished=!1;var a=bt.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),Xw(this,t),e.performVisualTasks(t),iT(this,this._model,n,`remain`,{}),i-=bt.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[jw]){if(this._disposed){this.id;return}var r,i,a;if(K(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[jw]=!0,lT(this),!this._model||t){var o=new xy(this._api),s=this._theme,c=this._model=new my;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},_T);var l={seriesTransition:a,optionChanged:!0};if(n)this[Nw]={silent:r,updateParams:l},this[jw]=!1,this.getZr().wakeUp();else{try{Gw(this),Jw.update.call(this,null,l)}catch(e){throw this[Nw]=null,this[jw]=!1,e}this._ssr||this._zr.flush(),this[Nw]=null,this[jw]=!1,Qw.call(this,r),$w.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[jw]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[Nw]&&(r??=this[Nw].silent,i=this[Nw].updateParams,this[Nw]=null),this[jw]=!0,lT(this);try{this._updateTheme(e),n.setTheme(this._theme),Gw(this),Jw.update.call(this,{type:`setTheme`},i)}catch(e){throw this[jw]=!1,e}this[jw]=!1,Qw.call(this,r),$w.call(this,r)}}},t.prototype._updateTheme=function(e){G(e)&&(e=yT[e]),e&&(e=Rt(e),e&&Yy(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ft.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return V(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;V(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return V(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(ST[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();V(xT,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(Rt(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=bt.createCanvas(),h=Vs(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return V(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new uf({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),V(u,function(e){var t=new tf({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return Yw(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return Yw(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return Yw(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return V(vl(n,e),function(e,n){n.indexOf(`Models`)>=0&&V(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=vl(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?US(i,t):HS(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;V(fT,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&qS(i,function(e){var t=kf(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=B({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;V(hT,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),KS(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&wl(this.getDom(),TT,``);var e=this,t=e._api,n=e._model;V(e._componentsViews,function(e){e.dispose(n,t)}),V(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete xT[e.id]},t.prototype.resize=function(e){if(!this[jw]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[Nw]&&(r??=this[Nw].silent,n=!0,this[Nw]=null),this[jw]=!0,lT(this);try{n&&Gw(this),Jw.update.call(this,{type:`resize`,animation:B({duration:0},e&&e.animation)})}catch(e){throw this[jw]=!1,e}this[jw]=!1,Qw.call(this,r),$w.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(K(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),bT[e]){var n=bT[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=B({},e);return t.type=mT[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(K(t)||(t={silent:!!t}),pT[e.type]&&this._model){if(this[jw]){this._pendingActions.push(e);return}var n=t.silent;Zw.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&ft.browser.weChat&&this._throttledZrFlush(),Qw.call(this,n),$w.call(this,n)}},t.prototype.updateLabelLayout=function(){JS.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Gw=function(e){tC(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),Kw(e,!0),Kw(e,!1),t.plan()},Kw=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=Yl(e.type);u=new(t?Gx.getClass(d.main,d.sub):Yx.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},qw=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){V([].concat(e._componentsViews,e._chartsViews),l);return}var o=Cl(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=J(),V(Xc(s),function(e){var t=ul(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null))if(qp(n))if(t instanceof Ix)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&kp(t,n,e._api);else{var r=Ap(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&Op(t.mainType,t.componentIndex,e._api),a&&V(a,function(e){n.type===`highlight`?yp(e):bp(e)})}else Kp(n)&&t instanceof Ix&&(Np(t,n,e._api),Pp(t),sT(e))},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},Jw={prepareAndUpdate:function(e){Gw(this),Jw.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){nC(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),JS.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),Xw(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),nT(this,r,i,e,n),JS.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}});var a=J();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),iT(t,n,r,e,{},a),JS.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Yx.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),nT(this,n,this._api,e,{}),JS.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),Yx.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),JS.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){Jw.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=vl(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}Yw=e,Xw=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},Zw=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=pT[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Yl(s[0]);this[jw]=!0,lT(this);var u=[e],d=!1;e.batch&&(d=!0,u=H(e.batch,function(t){return t=Ht(B({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Kp(e),_=qp(e);if(_&&Ep(this._api),V(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=B({},t),p.type=h,f.push(p),_){var a=yl(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;qw(n,c,t,u),sT(n)}else g?(qw(n,c,t,`series`),sT(n)):l&&qw(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[Nw]?(Gw(this),Jw.update.call(this,e),this[Nw]=null):Jw[c].call(this,e)}catch(e){throw this[jw]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[jw]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;hn(K(y)),v=Ht({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},Qw=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Zw.call(this,n,e)}},$w=function(e){!e&&this.trigger(`updated`)},eT=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[Nw]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},tT=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=qS(n,Wp);r&&(jp(r,e,t._api),sT(t))}).on(`mouseout`,function(e){var n=e.target,r=qS(n,Wp);r&&(Mp(r,e,t._api),sT(t))}).on(`click`,function(e){var n=e.target,r=qS(n,function(e){return kf(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=kf(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;Ni(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),V(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}nT=function(e,t,r,i,a){n(t),rT(e,t,r,i,a),V(e._chartsViews,function(e){e.__alive=!1}),iT(e,t,r,i,a),V(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},rT=function(e,t,n,r,i,a){V(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},iT=function(e,t,n,r,l,u){var d=e._scheduler;l=B(l||{},{updatedSeries:t.getSeries()}),JS.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),Pp(t)}),d.unfinished=f||d.unfinished,JS.trigger(`series:layoutlabels`,t,n,l),JS.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),JS.trigger(`series:afterupdate`,t,n,l)},sT=function(e){e[Pw]=!0,e.getZr().wakeUp()},lT=function(e){e[Mw]=(e[Mw]+1)%1e6},cT=function(e){e[Pw]&&(e.getZr().storage.traverse(function(e){xh(e)||r(e)}),e[Pw]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i===`emphasis`||i===`blur`||i===`select`||t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>q(t.get(`hoverLayerThreshold`),Kv.hoverLayerThreshold)&&!ft.node&&!ft.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=fg(e);t.eachRendered(function(e){return mg(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!xh(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(xh(e))return;if(e instanceof Yd&&Jp(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}aT=function(e){return new(function(t){O(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){yp(t,n),sT(e)},n.prototype.leaveEmphasis=function(t,n){bp(t,n),sT(e)},n.prototype.enterBlur=function(t){xp(t),sT(e)},n.prototype.leaveBlur=function(t){Sp(t),sT(e)},n.prototype.enterSelect=function(t){Cp(t),sT(e)},n.prototype.leaveSelect=function(t){wp(t),sT(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[Mw]},n.prototype.usingTHL=function(){return e._usingTHL},n}(Bf))(e)},oT=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[Iw]=t}}V(mT,function(n,r){e._messageCenter.on(r,function(n){if(ST[e.group]&&e[Iw]!==Lw){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];V(xT,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,Lw),V(i,function(e){e[Iw]!==Rw&&e.dispatchAction(r)}),t(i,zw)}})})}}(),t}(ir),dT=uT.prototype;dT.on=Bw(`on`),dT.off=Bw(`off`),dT.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var fT=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],pT={},mT={},hT={},gT=[],_T=[],vT=[],yT={},bT={},xT={},ST={},CT=new Date-0,wT=new Date-0,TT=`_echarts_instance_`;function ET(e,t,n){var r=!(n&&n.ssr);if(r){var i=jT(e);if(i)return i}var a=new uT(e,t,n);return a.id=`ec_`+ CT++,xT[a.id]=a,r&&wl(e,TT,a.id),oT(a),JS.trigger(`afterinit`,a),a}function DT(e){if(W(e)){var t=e;e=null,V(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+ wT++,V(t,function(t){t.group=e})}return ST[e]=!0,e}function OT(e){ST[e]=!1}var kT=OT;function AT(e){G(e)?e=xT[e]:e instanceof uT||(e=jT(e)),e instanceof uT&&!e.isDisposed()&&e.dispose()}function jT(e){return xT[Tl(e,TT)]}function MT(e){return xT[e]}function NT(e,t){yT[e]=t}function PT(e){Wt(_T,e)<0&&_T.push(e)}function FT(e,t){KT(gT,e,t,vw)}function IT(e){RT(`afterinit`,e)}function LT(e){RT(`afterupdate`,e)}function RT(e,t){JS.on(e,t)}function zT(e,t,n){var r,i,a,o,s;en(t)&&(n=t,t=``),K(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;pT[r]||(hn(Fw.test(r)&&Fw.test(i)),a&&hn(i!==r),pT[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},hT[i]=1,a&&s&&(hT[l]=1),mT[l]=r)}function BT(e,t){pv.register(e,t)}function VT(e){var t=pv.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function HT(e,t){$S(e,t)}function UT(e,t){KT(vT,e,t,bw,`layout`,!0)}function WT(e,t){KT(vT,e,t,Cw,`visual`,!0)}var GT=[];function KT(e,t,n,r,i,a){if((en(t)||K(t))&&(n=t,t=r),!(Wt(GT,n)>=0)){GT.push(n);var o=vS.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function qT(e,t){bT[e]=t}function JT(e){xt({createCanvas:e})}function YT(e,t,n){var r=ZS(`registerMap`);r&&r(e,t,n)}function XT(e){var t=ZS(`getMap`);return t&&t(e)}var ZT=qb;WT(Sw,fS),WT(Tw,mS),WT(Tw,hS),WT(Sw,BS),WT(Tw,VS),WT(kw,lw),PT(Yy),FT(hw,Xy),qT(`default`,_S),zT({type:Jf,event:Jf,update:Jf},Dn),zT({type:Yf,event:Yf,update:Yf},Dn),zT({type:Xf,event:$f,update:Xf,action:Dn,refineEvent:QT,publishNonRefinedEvent:!0}),zT({type:Zf,event:$f,update:Zf,action:Dn,refineEvent:QT,publishNonRefinedEvent:!0}),zT({type:Qf,event:$f,update:Qf,action:Dn,refineEvent:QT,publishNonRefinedEvent:!0});function QT(e,t,n,r){return{eventContent:{selected:Fp(n),isFromClick:t.isFromClick||!1}}}NT(`default`,{}),NT(`dark`,IS);var $T={};function eE(e){return e==null?0:e.length||1}function tE(e){return e}var nE=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||tE,this._newKeyGetter=r||tE,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=eE(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=eE(c),d=eE(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=eE(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=eE(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),rE=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function iE(e,t){var n={},r=n.encode={},i=J(),a=[],o=[],s={};V(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;aE(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),sE(n.type)&&(a[0]=t),aE(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}jf.each(function(e,t){var i=aE(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=H(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new rE(s,t),n}function aE(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function oE(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function sE(e){return!(e===`ordinal`||e===`time`)}var cE=function(){function e(e){this.otherDims={},e!=null&&B(this,e)}return e}(),lE=gl(),uE={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},dE=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=mE(this.source))},e.prototype.getSourceDimensionIndex=function(e){return q(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=lb(this.source),n=!hE(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=uE[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function fE(e){return e instanceof dE}function pE(e){for(var t=J(),n=0;n<(e||[]).length;n++){var r=e[n],i=K(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function mE(e){var t=lE(e);return t.dimNameMap||=pE(e.dimensionsDefine)}function hE(e){return e>30}var gE=K,_E=H,vE=typeof Int32Array>`u`?Array:Int32Array,yE=`e\0\0`,bE=-1,xE=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],SE=[`_approximateExtent`],CE,wE,TE,EE,DE,OE,kE,AE=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;fE(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=G(u)?new cE({name:u}):u instanceof cE?u:new cE(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=J();V(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(nn(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof ox&&(i=e),!i){var a=this.dimensions,o=eb(e)||qt(e)?new gb(e,a.length):e;i=new ox;var s=_E(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=iE(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&kE(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&el(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=ul(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=ul(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)kE(this,o);CE(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){gE(e)?B(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=TE(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return wE(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return W(e)?r.getValues(_E(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?bE:r},e.prototype.each=function(e,t,n){en(e)&&(n=t,t=e,e=[]);var r=n||this,i=_E(EE(e),this._getStoreDimIndex,this);this._store.each(i,r?U(t,r):t)},e.prototype.filterSelf=function(e,t,n){en(e)&&(n=t,t=e,e=[]);var r=n||this,i=_E(EE(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?U(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=Zt(e),i=[];return V(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){en(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=_E(EE(e),this._getStoreDimIndex,this),o=OE(this);return o._store=this._store.map(a,i?U(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=_E(EE(e),this._getStoreDimIndex,this);this._store.modify(a,i?U(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=OE(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=OE(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=OE(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new qg(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new nE(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return wE(e,t)},function(e){return wE(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},gE(e)?B(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),W(i)?i=i.slice():gE(i)&&(i=B({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,gE(t)?B(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){gE(e)?B(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?B(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Af(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){V(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:_E(this.dimensions,this._getDimInfo,this),this.hostModel),DE(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];en(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(pn(arguments)))})},e.internalField=function(){CE=function(e){var t=e._invertedIndicesMap;V(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new vE(a.categories.length);for(var s=0;s<n.length;s++)n[s]=bE;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},TE=function(e,t,n){return ul(e._getCategory(t,n),null)},wE=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=TE(e,e._idDimIdx,t)),n??=yE+t,n},EE=function(e){return W(e)||(e=e==null?[]:[e]),e},OE=function(t){var n=new e(t._schema?t._schema:_E(t.dimensions,t._getDimInfo,t),t.hostModel);return DE(n,t),n},DE=function(e,t){V(xE.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,V(SE,function(n){e[n]=Rt(t[n])}),e._calculationInfo=B({},t._calculationInfo)},kE=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=TE(e,i,t)),s==null&&a!=null&&(r[t]=s=TE(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function jE(e,t){return ME(e,t).dimensions}function ME(e,t){eb(e)||(e=nb(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=J(),a=[],o=NE(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&hE(o),c=r===e.dimensionsDefine,l=c?mE(e):pE(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=J(u),f=new $b(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=K(n)?n:{name:n},o=new cE,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=Xc(e).slice();if(n.length===1&&!G(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);V(n,function(e,n){var i=G(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;V(n,function(e){var t,n,r,i;if(G(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=B({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=Xc(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}V(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(Ht(o,i),t,a),o.name==null&&n){var s=n[a];!K(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&Ht(o.otherDims,r)})}});function g(e,t,n){jf.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)V(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=PE(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(ey(e,S)===qv.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return zl(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new dE({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function NE(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return V(t,function(e){var t;K(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function PE(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var FE=function(){function e(e){this.coordSysDims=[],this.axisMap=J(),this.categoryAxisMap=J(),this.coordSysName=e}return e}();function IE(e){var t=e.get(`coordinateSystem`),n=new FE(t),r=LE[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var LE={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,bl).models[0],a=e.getReferringComponents(`yAxis`,bl).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),RE(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),RE(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,bl).models[0];t.coordSysDims=[`single`],n.set(`single`,i),RE(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,bl).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),RE(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),RE(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();V(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),RE(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,bl).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function RE(e){return e.get(`type`)===`category`}function zE(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;BE(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(V(a,function(e,t){G(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),V(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;V(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function BE(e){return!fE(e.schema)}function VE(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function HE(e,t){return VE(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function UE(e,t){var n=e.get(`coordinateSystem`),r=pv.get(n),i;return t&&t.coordSysDims&&(i=H(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=oE(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function WE(e,t,n){var r,i;return n&&V(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function GE(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=nb(e)):(i=r.getSource(),a=i.sourceFormat===Mf);var o=IE(t),s=UE(t,o),c=n.useEncodeDefaulter,l=en(c)?c:c?$t(Xv,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=ME(i,u),f=WE(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=zE(t,{schema:d,store:p}),h=new AE(d,t);h.setCalculationInfo(m);var g=f!=null&&KE(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function KE(e){if(e.sourceFormat===`original`)return!W($c(qE(e.data||[])))}function qE(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var JE=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();au(JE);var YE=0,XE=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++YE,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&H(r,ZE);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!G(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=J(this.categories)},e}();function ZE(e){return K(e)&&e.value!=null?e.value:e+``}var QE=Zt({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function $E(e,t,n){var r;e||={};var i=f_();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(V(QE,function(t){a[t]&&(e[t]=U(a[t],a))}),r=a)}return r??oD(e,n),{brk:r,mapper:e}}function eD(e,t){V(QE,function(n){e[n]=t[n]})}function tD(e,t){e.freeze=Dn}function nD(e){return e.getExtentUnsafe(0,2)}function rD(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function iD(e){var t=rD(e,3);return t[1]-t[0]}function aD(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function oD(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():Ol(),B(n,sD),n}var sD={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=rD(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){cD(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),cD(r,e,t,n)},freeze:function(){}};function cD(e,t,n,r){Pl(n,r)&&(e[t][0]=n,e[t][1]=r)}function lD(e){return uD(e)||fD(e)}function uD(e){return e.type===`interval`}function dD(e){return e.type===`time`}function fD(e){return e.type===`log`}function pD(e){return e.type===`ordinal`}function mD(e){var t=jc(e),n=ac(10,t),r=nc(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,hc(r*n,-t)}function hD(e){return vc(e)+2}function gD(e,t){return oc(e)/oc(t)}function _D(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return ac(t,e)}function vD(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=tc(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!Nl(r[0])||!Nl(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function yD(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function bD(e,t){return e||=t,nc(ec(e,1))}function xD(e,t,n){var r=nD(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}R();var SD=function(e){O(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,eD(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new XE({}),W(i)&&(i=new XE({categories:H(i,function(e){return K(e)?e.value:e})})),r._ordinalMeta=i;var a=$E(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,tD(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:G(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=nc(e),e},t.prototype.getTicks=function(){var e=[];return xD(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=$s(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=nD(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(nc(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(JE);JE.registerClass(SD);function CD(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=hD(f);u<t-1;){var m=hc(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=f_();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}R();var wD=function(e){O(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=$E(r,p_(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return Rt(this._cfg)},t.prototype.setConfig=function(e){var t=nD(this);this._cfg=e=Rt(e),e.niceExtent??=t.slice(),e.intervalPrecision??=hD(e.interval)},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=nD(this),i=t.niceExtent,a=t.intervalPrecision,o=f_(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?hc(i[0]-n,a):r[0]});for(var d=function(e,t){return nc((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=$s(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=hc(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=hc(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?hc(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return CD(this,e,m_(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=vc(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),$_(hc(e.value,n,!0))},t.type=`interval`,t}(JE);JE.registerClass(wD),R();var TD=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},ED=function(e){O(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=$E(r,p_(r,n),null).brk,r}return t.prototype.getLabel=function(e){return P_(e.value,T_[N_(j_(this._minLevelUnit))]||T_.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return F_(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=nD(this),r=f_(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return f_().addBreaksToTicks(o,i.breaks,n),o;o=ID(this._minLevelUnit,this._approxInterval,s,n,aD(this),i);var c=E_.length-1,l=0;return V(o,function(e){e.time&&(c=Math.min(c,Wt(E_,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&f_().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&f_().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(Wt(E_,I_(e.vmin,s)),Wt(E_,I_(e.vmax,s))),n=0,r=0;r<E_.length;r++)if(!OD(E_[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:E_[Math.max(i,t)],upperTimeUnit:E_[i]}}),o},t.prototype.getMinorTicks=function(e){return CD(this,e,m_(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return nn(e)?Math.round(e):+kc(e)},t.type=`time`,t}(JE),DD=[[`second`,g_],[`minute`,__],[`hour`,v_],[`quarter-day`,v_*6],[`half-day`,v_*12],[`day`,y_*1.2],[`half-week`,y_*3.5],[`week`,y_*7],[`month`,y_*31],[`quarter`,y_*95],[`half-year`,b_/2],[`year`,b_]];function OD(e,t,n,r){return L_(new Date(t),e,r).getTime()===L_(new Date(n),e,r).getTime()}function kD(e,t){return e/=y_,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function AD(e){var t=30*y_;return e/=t,e>6?6:e>3?3:e>2?2:1}function jD(e){return e/=v_,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function MD(e,t){return e/=t?__:g_,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function ND(e){return ec(Mc(e,!0),1)}function PD(e,t,n){var r=Math.max(0,Wt(E_,t)-1);return L_(new Date(e),E_[r],n).getTime()}function FD(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function ID(e,t,n,r,i,a){var o=3e3,s=D_,c=0;function l(e,t,n,i,s,l,u){for(var d=FD(s,e),f=t,p=new Date(f);f<n&&f<=r[1]&&(u.push({value:f}),!(c++>o));)if(p[s](p[i]()+e),f=p.getTime(),a){var m=a.calcNiceTickMultiple(f,d);m>0&&(p[s](p[i]()+m*e),f=p.getTime())}u.push({value:f,notAdd:f>r[1]})}function u(e,i,a){var o=[],s=!i.length;if(!OD(j_(e),r[0],r[1],n)){s&&(i=[{value:PD(r[0],e,n)},{value:r[1]}]);for(var c=0;c<i.length-1;c++){var u=i[c].value,d=i[c+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/y_/365)),p=R_(n),m=G_(n);break;case`half-year`:case`quarter`:case`month`:f=AD(t),p=z_(n),m=K_(n);break;case`week`:case`half-week`:case`day`:f=kD(t,31),p=B_(n),m=q_(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=jD(t),p=V_(n),m=J_(n);break;case`minute`:f=MD(t,!0),p=H_(n),m=Y_(n);break;case`second`:f=MD(t,!1),p=U_(n),m=X_(n);break;case`millisecond`:f=ND(t),p=W_(n),m=Z_(n);break}d>=r[0]&&u<=r[1]&&l(f,u,d,p,m,h,o),e===`year`&&a.length>1&&c===0&&a.unshift({value:a[0].value-f})}}for(var c=0;c<o.length;c++)a.push(o[c])}}for(var d=[],f=[],p=0,m=0,h=0;h<s.length;++h){var g=j_(s[h]);if(M_(s[h])&&(u(s[h],d[d.length-1]||[],f),g!==(s[h+1]?j_(s[h+1]):null))){if(f.length){m=p,f.sort(function(e,t){return e.value-t.value});for(var _=[],v=0;v<f.length;++v){var y=f[v].value;(v===0||f[v-1].value!==y)&&(_.push(f[v]),y>=r[0]&&y<=r[1]&&p++)}var b=i/t;if(p>b*1.5&&m>b/1.5||(d.push(_),p>b||e===s[h]))break}f=[]}}for(var x=Yt(H(d,function(e){return Yt(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),S=x.length-1,C=[],h=0;h<x.length;++h)for(var w=x[h],T=0;T<w.length;++T){var E=I_(w[T].value,n);C.push({value:w[T].value,time:{level:S-h,upperTimeUnit:E,lowerTimeUnit:E}})}zl(C,Bl,null),C.sort(function(e,t){return e.value-t.value});var D=C[0],O=C[C.length-1],k=I_(r[0],n),A=I_(r[1],n);return(!D||D.value>r[0])&&C.unshift({value:r[0],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),(!O||O.value<r[1])&&C.push({value:r[1],time:{level:0,upperTimeUnit:A,lowerTimeUnit:A},notNice:!0}),C}var LD=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=y_,n[1]+=y_),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-y_}e.setExtent(n[0],n[1]);var i=bD(t.splitNumber,10),a=aD(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=DD.length,l=Math.min(TD(DD,a,0,c),c-1),u=DD[l][1],d=DD[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};JE.registerClass(ED),R();var RD=0,zD=1,BD=2,VD=function(e){O(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=wD.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[RD]=i[zD]=a[RD]=a[zD]=NaN,eD(r,t.mapperMethods);var s=f_(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},BD,l),r.powStub=new wD({breakParsed:l.original}),r.intervalStub=new wD({breakParsed:l.transformed}),tD(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=f_(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return H(i.getTicks(e||{}),function(e){var i=e.value,o=_D(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,m_(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return CD(this,e,m_(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(gD(e,this.base))},scale:function(e){return _D(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=gD(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return HD.depth=n,UD.lookup=this._lookup,_D(n===2?e:this.intervalStub.transformOut(e,HD),this.base,UD)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!Pl(t,n)||t<=0||n<=0)){var r=WD,i=WD;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[RD]=t,r[zD]=n);var o=this.base;this.intervalStub.setExtent2(e,i[RD]=gD(t,o),i[zD]=gD(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return Pl(t[0],t[1])&&Bc(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(JE);JE.registerClass(VD);var HD={},UD={},WD=[],GD={value:1,category:1,time:1,log:1},KD=gl();function qD(e){var t=e.get(`type`);return(t==null||!Y(GD,t)&&!JE.getClass(t))&&(t=`value`),t}function JD(e,t,n){var r=f_(),i;switch(r&&(i=aO(e,t,n)),t){case`category`:return new SD({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Ol()});case`time`:return new ED({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new VD({logBase:e.get(`logBase`),breakOption:i});case`value`:return new wD({breakOption:i});default:return new((JE.getClass(t))||wD)({})}}function YD(e,t,n){var r=n?rD(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return Pl(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function XD(e){KD(e).noOnMyZero=!0}function ZD(e){return KD(e).noOnMyZero}function QD(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=O_(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(G(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(en(t)){if(e.type===`category`)return function(n,r){return t($D(e,n),n.value-e.scale.getExtent()[0],null)};var r=f_();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t($D(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function $D(e,t){var n=e.scale;return pD(n)?n.getLabel(t):t.value}function eO(e){return e.get(`interval`)??`auto`}function tO(e){return e.type===`category`&&eO(e.getLabelModel())===0}function nO(e,t){var n={};return V(e.mapDimensionsAll(t),function(t){n[HE(e,t)]=!0}),Zt(n)}function rO(e){return e===`middle`||e===`center`}function iO(e){return e.getShallow(`show`)}function aO(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!f_()||!n||!oO(t)?void 0:r}function oO(e){return e!==`category`}function sO(e,t,n,r,i,a){var o=fD(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=yD(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function cO(e,t){return pD(e)?e.getRawOrdinalNumber(t.value):t.value}function lO(e,t){return pD(e)&&!!t.get(`boundaryGap`)}var uO=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),dO=Ll(),fO=gl(),pO=gl();function mO(e,t){var n=e.model,r=fO(iC(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function hO(e,t){return vO(mO(e,t))}function gO(e,t){var n=[];return _O(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(vO(e))}),n}function _O(e,t){var n=fO(iC(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function vO(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function yO(e,t){var n=e.model.ecModel,r=fO(iC(n)).axSer;r&&xO(n,r.get(e.model.uid),t)}function bO(e,t,n){var r=mO(e,t);r&&xO(e.model.ecModel,r.sers,n)}function xO(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function SO(e,t,n){var r=fO(iC(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function CO(e,t){var n=e.model,r=fO(iC(n.ecModel)).keys;r&&V(r.get(n.uid),function(e){t(e)})}function wO(e){var t=pO(rC(e)),n=t.keyed||=J();_O(e,function(t,r,i){var a=n.get(r)||n.set(r,J()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&EO.liPosMinGap(e,t,o)})}function TO(e,t){EO[e]=t}var EO={};function DO(e,t,n){if(e){var r=t.ecModel,i=fO(iC(r)),a=e.model.uid,o=i.axSer||=J();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=AO.get(OO(s,c,n))||AO.get(OO(s,c,null));if(l){var u=i.keyed||=J(),d=i.keys||=J(),f=l.key,p=u.get(f)||u.set(f,J()),m=p.get(a);m||(m=p.set(a,{axis:e,sers:[],serByIdx:[]}),m.metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function OO(e,t,n){return e+`|&`+q(t,!0)+`|&`+(n||``)}function kO(e,t){var n=OO(t.seriesType,t.baseAxis,t.coordSysType);AO.set(n,t),dO(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:wO})})}var AO=J(),jO=gl(),MO=3,NO=function(){function e(e,t,n,r,i){var a=pD(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(uD(e)||fD(e)||dD(e))&&(Al(l,FO(e,t.get(`dataMin`,!0))),jl(l,FO(e,t.get(`dataMax`,!0)))),Fl(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=FO(e,en(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=FO(e,en(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=IO(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!Nl(u[0])&&(u[0]=NaN),!Nl(u[1])&&(u[1]=NaN);var g=s||un(u[0])||un(u[1])||a&&!o,_=uD(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=FO(e,t.get(`startValue`,!0)),x=b!=null;!Bc(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Bc(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),PO(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),PO(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function PO(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),Il(t))}function FO(e,t){return t==null?null:un(t)?NaN:e.parse(t)}function IO(e,t){var n;if(pD(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=W(r)?r:[r,r]}return[LO(n[0]),LO(n[1])]}function LO(e){return hs(typeof e==`boolean`?0:e,1)||0}function RO(e){var t=jO(e.scale);return t.extent||=Ol(),t}function zO(e,t){RO(e).dimIdxInCoord=t.get(e.dim)}function BO(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||VO(n,e,i,r,t)}function VO(e,t,n,r,i){var a=RO(t),o=a.extent,s=!1;yO(t,function(r){if(r.boxCoordinateSystem){var i=_v(r).coord,c=a.dimIdxInCoord;if(c>=0&&W(i)){var l=i[c];l!=null&&!W(l)&&kl(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;V(nO(u,n),function(e){Ml(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=qO(e,t,r);UO(e,new NO(e,r,o,s,c),i),a.extent=null}function HO(e,t){var n=e.scale;UO(n,new NO(n,e.model,t,!1,!1),MO)}function UO(e,t,n){e.rawExtentInfo=t,t.from=n}function WO(e,t){GO.set(e,t)}var GO=J();function KO(e,t,n,r,i){e.rawExtentInfo||HO({scale:e,model:t},i||Ol());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function qO(e,t,n){var r=lO(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return CO(t,function(e){a=!!GO.get(e)||a}),a}function JO(e,t,n,r){if(n.ctnShp){var i;if(CO(e,function(t){var n=GO.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Al(i,a[0]),jl(i,a[1]),XD(e))}}),i){var a=t.getExtent();if(pD(t))e.onBand||t.setExtent2(1,$s(a[0],a[0]+i[0]),ec(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=$s(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=ec(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function YO(e,t){var n=fD(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=vD(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?ZO(r,t):XO(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=hD(d)),i[0]||(s[0]=hc(rc(s[0]/u)*u,l)),i[1]||(s[1]=hc(ic(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),sO(e,i,o,s,a,c)}function XO(e,t){var n=bD(t.splitNumber,5),r=aD(e),i=t.minInterval,a=t.maxInterval,o=Mc(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=hD(o),c=e.getExtent(),l=[hc(ic(c[0]/o)*o,s),hc(rc(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function ZO(e,t){var n=bD(t.splitNumber,10),r=e.getExtent(),i=aD(e),a=ec(Ac(i),1);n/i*a<=.5&&(a*=10);var o=hD(a),s=[hc(ic(r[0]/a)*a,o),hc(rc(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function QO(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;$O(t,n,r,i,null)}function $O(e,t,n,r,i){var a=KO(e,t,r,n,i),o=uD(e)||dD(e);ek(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&JO(n,e,a,r)}function ek(e,t){tk[e.type](e,t)}var tk={interval:YO,log:YO,time:LD,ordinal:Dn},nk=c({createDimensions:()=>jE,createList:()=>rk,createScale:()=>ak,createSymbol:()=>mC,createTextStyle:()=>sk,dataStack:()=>ik,enableHoverEmphasis:()=>Ip,getECData:()=>kf,getLayoutRect:()=>Ov,mixinAxisModelCommonMethods:()=>ok});function rk(e){return GE(null,e)}var ik={isDimensionStacked:VE,enableDataStack:zE,getStackedDimension:HE};function ak(e,t){var n=t;t instanceof qg||(n=new qg(t));var r=qD(n),i=JD(n,r,!1);return e[1]<e[0]&&(e=e.slice().reverse()),$O(i,n,null,null,e),i}function ok(e){Kt(e,uO)}function sk(e,t){return t||={},Tg(e,null,null,t.state!==`normal`)}var ck=[],lk={registerPreprocessor:PT,registerProcessor:FT,registerPostInit:IT,registerPostUpdate:LT,registerUpdateLifecycle:RT,registerAction:zT,registerCoordinateSystem:BT,registerLayout:UT,registerVisual:WT,registerTransform:ZT,registerLoading:qT,registerMap:YT,registerImpl:XS,PRIORITY:Aw,ComponentModel:Lv,ComponentView:Gx,SeriesModel:Ix,ChartView:Yx,registerComponentModel:function(e){Lv.registerClass(e)},registerComponentView:function(e){Gx.registerClass(e)},registerSeriesModel:function(e){Ix.registerClass(e)},registerChartView:function(e){Yx.registerClass(e)},registerCustomSeries:function(e,t){$S(e,t)},registerSubTypeDefaulter:function(e,t){Lv.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Gs(e,t)}};function uk(e){if(W(e)){V(e,function(e){uk(e)});return}Wt(ck,e)>=0||(ck.push(e),en(e)&&(e={install:e}),e.install(lk))}var dk=1e-8;function fk(e,t){return Math.abs(e-t)<dk}function pk(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=Md(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!fk(i[0],s[0])||!fk(i[1],s[1]))&&(r+=Md(i[0],i[1],s[0],s[1],t,n)),r!==0}R();var mk=[];function hk(e,t){for(var n=0;n<e.length;n++)$n(e[n],e[n],t)}function gk(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(er(t,t,a),tr(n,n,a))}}function _k(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var vk=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||=this._center=this.calcCenter(),e},e}(),yk=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),bk=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),xk=function(e){O(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.type=`geoJSON`,i.geometries=n,i._center=r&&[r[0],r[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,t,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return _k(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return V(i,function(t){t.type===`polygon`?gk(t.exterior,n,r,e):V(t.points,function(t){gk(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new X(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r<i;r++){var a=n[r];if(a.type===`polygon`){var o=a.exterior,s=a.interiors;if(pk(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(pk(s[c],e[0],e[1]))continue loopGeo;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||=n/a:n=a*r;for(var o=new X(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(hk(u.exterior,s),V(u.interiors,function(e){hk(e,s)})):V(u.points,function(e){hk(e,s)})}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){e??=this.name;var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(vk);(function(e){O(t,e);function t(t,n){var r=e.call(this,t)||this;return r.type=`geoSVG`,r._elOnlyForCalculate=n,r}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=Lr(mk),i=e;i&&!i.isGeoSVGGraphicRoot;)zr(r,i.getLocalTransform(),r),i=i.parent;return Ur(r,r),$n(n,n,r),n},t})(vk);function Sk(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return V(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=wk(i,r,n);break;case`Polygon`:Ck(i,r,n);break;case`MultiLineString`:Ck(i,r,n);break;case`MultiPolygon`:V(i,function(e,t){return Ck(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function Ck(e,t,n){for(var r=0;r<e.length;r++)e[r]=wk(e[r],t[r],n)}function wk(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function Tk(e,t){return e=Sk(e),H(Yt(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new yk(a[0],a.slice(1)));break;case`MultiPolygon`:V(r.coordinates,function(e){e[0]&&i.push(new yk(e[0],e.slice(1)))});break;case`LineString`:i.push(new bk([r.coordinates]));break;case`MultiLineString`:i.push(new bk(r.coordinates))}var o=new xk(n[t||`name`],i,n.cp);return o.properties=n,o})}var Ek=c({MAX_SAFE_INTEGER:()=>Tc,asc:()=>_c,getPercentWithPrecision:()=>Sc,getPixelPrecision:()=>bc,getPrecision:()=>vc,getPrecisionSafe:()=>yc,isNumeric:()=>Ic,isRadianAroundZero:()=>Dc,linearMap:()=>uc,nice:()=>Mc,numericToNumber:()=>Fc,parseDate:()=>kc,parsePercent:()=>dc,quantile:()=>Nc,quantity:()=>Ac,quantityExponent:()=>jc,reformIntervals:()=>Pc,remRadian:()=>Ec,round:()=>gc}),Dk=c({format:()=>P_,parse:()=>kc,roundTime:()=>L_}),Ok=c({Arc:()=>eh,BezierCurve:()=>Qm,BoundingRect:()=>X,Circle:()=>vm,CompoundPath:()=>th,Ellipse:()=>bm,Group:()=>Ps,Image:()=>tf,IncrementalDisplayable:()=>hh,Line:()=>Jm,LinearGradient:()=>rh,Polygon:()=>Um,Polyline:()=>Gm,RadialGradient:()=>ih,Rect:()=>uf,Ring:()=>zm,Sector:()=>Lm,Text:()=>hf,clipPointsByRect:()=>Yh,clipRectByRect:()=>Xh,createIcon:()=>Zh,extendPath:()=>Mh,extendShape:()=>Ah,getShapeClass:()=>Ph,getTransform:()=>Uh,initProps:()=>bh,makeImage:()=>Ih,makePath:()=>Fh,mergePath:()=>Rh,registerShape:()=>Nh,resizePath:()=>zh,updateProps:()=>yh}),kk=c({addCommas:()=>$_,capitalFirst:()=>cv,encodeHTML:()=>vr,formatTime:()=>sv,formatTpl:()=>av,getTextRect:()=>Q_,getTooltipMarker:()=>ov,normalizeCssArray:()=>tv,toCamelCase:()=>ev,truncateText:()=>hu}),Ak=c({bind:()=>U,clone:()=>Rt,curry:()=>$t,defaults:()=>Ht,each:()=>V,extend:()=>B,filter:()=>Yt,indexOf:()=>Wt,inherits:()=>Gt,isArray:()=>W,isFunction:()=>en,isObject:()=>K,isString:()=>G,map:()=>H,merge:()=>zt,reduce:()=>Jt}),jk=gl(),Mk=gl(),Nk={estimate:1,determine:2};function Pk(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function Fk(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:H(Lk(n,r),function(t,n){return{formattedLabel:QD(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?Rk(e,t):Vk(e)}function Ik(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:Lk(i,r)}:e.type===`category`?Bk(e,t):{ticks:r.getTicks(n)}}function Lk(e,t){var n=t.getExtent(),r=[];return V(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),zl(r,Vl,null),_c(r),H(r,function(e){return{value:e}})}function Rk(e,t){var n=e.getLabelModel(),r=zk(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function zk(e,t,n){var r=Uk(e),i=eO(t),a=n.kind===Nk.estimate;if(!a){var o=Gk(r,i);if(o)return o}var s,c;en(i)?s=Qk(e,i,!1):(c=i===`auto`?qk(e,n):i,s=Qk(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return Kk(r,i,l),!0}):Kk(r,i,l),l}function Bk(e,t){var n=Hk(e),r=eO(t),i=Gk(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),en(r))a=Qk(e,r,!0);else if(r===`auto`){var s=zk(e,e.getLabelModel(),Pk(Nk.determine));o=s.labelCategoryInterval,a=H(s.labels,function(e){return e.tick})}else o=r,a=Qk(e,o,!0);return Kk(n,r,{ticks:a,tickCategoryInterval:o})}function Vk(e){var t=e.scale.getTicks(),n=QD(e);return{labels:H(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var Hk=Wk(`axisTick`),Uk=Wk(`axisLabel`);function Wk(e){return function(t){return Mk(t)[e]||(Mk(t)[e]={list:[]})}}function Gk(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function Kk(e,t,n){return e.list.push({key:t,value:n}),n}function qk(e,t){if(t.kind===Nk.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Mk(e).autoInterval=n,!0}),n}return Mk(e).autoInterval??(Mk(e).autoInterval=e.calculateCategoryInterval(t))}function Jk(e,t){var n=t.kind,r=Zk(e),i=QD(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=ds(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===Nk.estimate?(t.out.noPxChangeTryDetermine.push(U(Yk,null,e,S,c)),S):Xk(e,S,c)??S}function Yk(e,t,n){return Xk(e,t,n)==null}function Xk(e,t,n){var r=jk(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function Zk(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function Qk(e,t,n){var r=QD(e),i=e.scale,a=[],o=en(t);return xD(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var $k=.8;function eA(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=iD(r);Bc(o)||(o=NaN);var s=e.getExtent(),c=tc(s[1]-s[0]);return pD(r)?tA(n,e,o,c):i&&nA(n,e,o,c,i),a!=null&&(n.w=Bc(n.w)?ec(a,n.w):a),n}function tA(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function nA(e,t,n,r,i){var a=!1,o=-1/0;V(i.key?[hO(t,i.key)]:gO(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),Bc(n)&&n>0&&Bc(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*$k,e.w2=e.w*n/r)}var rA=[0,1],iA=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),uc(e,rA,aA(this),t)},e.prototype.coordToData=function(e,t){var n=uc(e,aA(this),rA,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=H(Ik(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(cO(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=oA(this,n,r);return H(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(pD(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),H(this.scale.getMinorTicks(e),function(e){return H(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=Pk(Nk.determine),Fk(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return eA(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=Pk(Nk.determine),Jk(this,e)},e}();function aA(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function oA(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=eA(e).w;if(!i)return!1;V(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}function sA(e){var t=Lv.extend(e);return Lv.registerClass(t),t}function cA(e){var t=Gx.extend(e);return Gx.registerClass(t),t}function lA(e){var t=Ix.extend(e);return Ix.registerClass(t),t}function uA(e){var t=Yx.extend(e);return Yx.registerClass(t),t}Math.PI*2,wd.CMD;function dA(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}var fA=new Gr,pA=new Gr,mA=new Gr,hA=new Gr,gA=new Gr,_A=[],vA=new Gr;function yA(e,t){if(t<=180&&t>0){t=t/180*Math.PI,fA.fromArray(e[0]),pA.fromArray(e[1]),mA.fromArray(e[2]),Gr.sub(hA,fA,pA),Gr.sub(gA,mA,pA);var n=hA.len(),r=gA.len();if(!(n<.001||r<.001)){hA.scale(1/n),gA.scale(1/r);var i=hA.dot(gA);if(Math.cos(t)<i){var a=dA(pA.x,pA.y,mA.x,mA.y,fA.x,fA.y,_A,!1);vA.fromArray(_A),vA.scaleAndAdd(gA,a/Math.tan(Math.PI-t));var o=mA.x===pA.x?(vA.y-pA.y)/(mA.y-pA.y):(vA.x-pA.x)/(mA.x-pA.x);if(isNaN(o))return;o<0?Gr.copy(vA,pA):o>1&&Gr.copy(vA,mA),vA.toArray(e[1])}}}}function bA(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,fA.fromArray(e[0]),pA.fromArray(e[1]),mA.fromArray(e[2]),Gr.sub(hA,pA,fA),Gr.sub(gA,mA,pA);var r=hA.len(),i=gA.len();if(!(r<.001||i<.001)&&(hA.scale(1/r),gA.scale(1/i),hA.dot(t)<Math.cos(n))){var a=dA(pA.x,pA.y,mA.x,mA.y,fA.x,fA.y,_A,!1);vA.fromArray(_A);var o=Math.PI/2,s=o+Math.acos(gA.dot(t))-n;if(s>=o)Gr.copy(vA,mA);else{vA.scaleAndAdd(gA,a/Math.tan(Math.PI/2-s));var c=mA.x===pA.x?(vA.y-pA.y)/(mA.y-pA.y):(vA.x-pA.x)/(mA.x-pA.x);if(isNaN(c))return;c<0?Gr.copy(vA,pA):c>1&&Gr.copy(vA,mA)}vA.toArray(e[1])}}}function xA(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function SA(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Jn(r[0],r[1]),a=Jn(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=Qn([],r[1],r[0],o/i),c=Qn([],r[1],r[2],o/a),l=Qn([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function CA(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<qf.length;c++){var l=qf[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:q(i.states[l]&&i.states[l].ignore,s))||!q(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&xA(r,!0,l,u);continue}r||(r=new Gm,e.setTextGuideLine(r),!d&&(s||!o)&&xA(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),xA(r,!1,l,u)}}if(r){Ht(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=SA}}function wA(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<Kf.length;r++){var i=Kf[r];n[i]=e.getModel([i,t])}return n}var TA=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],EA=1,DA=2,OA=EA|DA;function kA(e,t,n){n||=OA,t?e.dirty|=n:e.dirty&=~n}function AA(e,t){return t||=OA,e.dirty==null||!!(e.dirty&t)}function jA(e){if(e)return AA(e)&&MA(e,e.label,e),e}function MA(e,t,n){var r=t.getComputedTransform();e.transform=dg(e.transform,r);var i=e.localRect=ug(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=Ig.textMargin);for(var d=0;d<4;d++)NA[d]=u===Ig.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Ig.textMargin&&ng(i,NA,!1,!1);var f=e.rect=ug(e.rect,i);return r&&f.applyTransform(r),u===Ig.minMargin&&ng(f,NA,!1,!1),e.axisAligned=cg(r),(e.label=e.label||{}).ignore=t.ignore,kA(e,!1),kA(e,!0,DA),e}var NA=[0,0,0,0];function PA(e,t,n){return e.transform=dg(e.transform,n),e.localRect=ug(e.localRect,t),e.rect=ug(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=cg(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function FA(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function IA(e,t){for(var n=0;n<TA.length;n++){var r=TA[n];e[r]??(e[r]=t[r])}return jA(e)}function LA(e){var t=e.obb;return(!t||AA(e,DA))&&(e.obb=t||=new ph,t.fromBoundingRect(e.localRect,e.transform),kA(e,!1,DA)),t}function RA(e,t,n,r,i){var a=e.length,o=Oh[t],s=kh[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function zA(e){var t=[];e.sort(function(e,t){return!!t.suggestIgnore-+!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=jA(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(BA(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function BA(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:LA(e).intersect(LA(t),n,r)}var VA=c({Axis:()=>iA,ChartView:()=>Yx,ComponentModel:()=>Lv,ComponentView:()=>Gx,List:()=>AE,Model:()=>qg,PRIORITY:()=>Aw,SeriesModel:()=>Ix,color:()=>_a,connect:()=>DT,dataTool:()=>$T,dependencies:()=>fw,disConnect:()=>kT,disconnect:()=>OT,dispose:()=>AT,env:()=>ft,extendChartView:()=>uA,extendComponentModel:()=>sA,extendComponentView:()=>cA,extendSeriesModel:()=>lA,format:()=>kk,getCoordinateSystemDimensions:()=>VT,getInstanceByDom:()=>jT,getInstanceById:()=>MT,getMap:()=>XT,graphic:()=>Ok,helper:()=>nk,init:()=>ET,innerDrawElementOnCanvas:()=>XC,matrix:()=>Fr,number:()=>Ek,parseGeoJSON:()=>Tk,parseGeoJson:()=>Tk,registerAction:()=>zT,registerCoordinateSystem:()=>BT,registerCustomSeries:()=>HT,registerLayout:()=>UT,registerLoading:()=>qT,registerLocale:()=>s_,registerMap:()=>YT,registerPostInit:()=>IT,registerPostUpdate:()=>LT,registerPreprocessor:()=>PT,registerProcessor:()=>FT,registerTheme:()=>NT,registerTransform:()=>ZT,registerUpdateLifecycle:()=>RT,registerVisual:()=>WT,setCanvasCreator:()=>JT,setPlatformAPI:()=>xt,throttle:()=>iS,time:()=>Dk,use:()=>uk,util:()=>Ak,vector:()=>An,version:()=>dw,zrUtil:()=>St,zrender:()=>Fs});R();var HA=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return GE(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Ps,n=mC(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=mC(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=Z.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(Ix);function UA(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=Ob(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(Ob(e,t,n[o]));return a.join(` `)}}function WA(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!W(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}R();var GA=function(e){O(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=mC(e,-1,-1,2,2,null,a);o.attr({z2:q(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=KA,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){yp(this.childAt(0))},t.prototype.downplay=function(){bp(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):yh(f,p,o,n),Th(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,bh(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=wg(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=gC(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof tf){var S=a.style;a.useStyle(B({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(B({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;Cg(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):UA(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),Rp(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=kf(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&Sh(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Sh(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return hC(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(Ps);function KA(e,t){this.parent.drift(e,t)}function qA(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function JA(e){return e!=null&&!K(e)&&(e={isIgnore:e}),e||{}}function YA(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:wg(t),cursorStyle:t.get(`cursor`)}}function XA(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var ZA=function(){function e(e){this.group=new Ps,this._SymbolCtor=e||GA}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=JA(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=YA(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);qA(e,i,r,t)&&XA(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!qA(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):yh(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i<a;i++){var o=t.getItemGraphicEl(i),s=n._getSymbolPoint(i);qA(t,s,i,e)?(o||=XA(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),t.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=YA(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=JA(r);function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(qA(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){sg(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function QA(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=$A(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=H(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return VE(t,d[0])&&(f=!0,d[0]=p),VE(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function $A(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:nn(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function ej(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function tj(e,t){return!isFinite(e)||!isFinite(t)}var nj=typeof Float32Array<`u`?Float32Array:void 0,rj=typeof Float64Array<`u`?Float64Array:void 0;function ij(e){return aj({ctor:nj},e).arr}function aj(e,t){var n=e.arr,r=e.ctor;if(t>Tc&&(t=Tc),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch{}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}function oj(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function sj(e,t,n,r,i,a,o,s){for(var c=oj(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=QA(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=ej(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var ee=l.length,M=ij(ee),N=ij(ee),P=ij(ee),F=ij(ee),I=[],y=0;y<m.length;y++){var te=m[y],ne=y*2,re=te*2;M[ne]=l[re],M[ne+1]=l[re+1],N[ne]=u[re],N[ne+1]=u[re+1],P[ne]=d[re],P[ne+1]=d[re+1],F[ne]=f[re],F[ne+1]=f[re+1],I[y]=p[te]}return{current:M,next:N,stackedOnCurrent:P,stackedOnNext:F,status:I}}R();var cj=Math.min,lj=Math.max;function uj(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(tj(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;tj(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||tj(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,ee=v-u,M=C-v,N=void 0,P=void 0;if(s===`x`){N=Math.abs(A),P=Math.abs(j);var F=E>0?1:-1;p=_-F*N*o,m=v,O=_+F*P*o,k=v}else if(s===`y`){N=Math.abs(ee),P=Math.abs(M);var I=D>0?1:-1;p=_,m=v-I*N*o,O=_,k=v+I*P*o}else N=Math.sqrt(A*A+ee*ee),P=Math.sqrt(j*j+M*M),T=P/(P+N),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=cj(O,lj(S,_)),k=cj(k,lj(C,v)),O=lj(O,cj(S,_)),k=lj(k,cj(C,v)),E=O-_,D=k-v,p=_-E*N/P,m=v-D*N/P,p=cj(p,lj(l,_)),m=cj(m,lj(u,v)),p=lj(p,cj(l,_)),m=lj(m,cj(u,v)),E=_-p,D=v-m,O=_+E*P/N,k=v+D*P/N}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var dj=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),fj=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Z.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new dj},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&tj(n[i*2-2],n[i*2-1]);i--);for(;r<i&&tj(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=uj(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=wd.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?$i(i,u,f,m,e,s):$i(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?Zi(a,d,p,h,b):Zi(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(Yd),pj=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(dj),mj=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new pj},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&tj(n[a*2-2],n[a*2-1]);a--);for(;i<a&&tj(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=uj(e,n,i,a,a,1,t.smooth,o,t.connectNulls);uj(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(Yd);function hj(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new uf({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=en(i)?function(e){i(e,d)}:null;bh(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function gj(e,t,n){var r=e.getArea(),i=hc(r.r0,1),a=hc(r.r,1),o=new Lm({shape:{cx:hc(e.cx,1),cy:hc(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,bh(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function _j(e,t,n,r,i){return e?e.type===`polar`?gj(e,t,n):e.type===`cartesian2d`?hj(e,t,n,r,i):null:null}function vj(e,t){return e.type===t}function yj(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||Y(e,`text`)))}function bj(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},Y(r,`text`)&&(o.text=r.text),Y(r,`rich`)&&(o.rich=r.rich),Y(r,`textFill`)&&(o.fill=r.textFill),Y(r,`textStroke`)&&(o.stroke=r.textStroke),Y(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),Y(r,`fontSize`)&&(o.fontSize=r.fontSize),Y(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),Y(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=Y(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),Y(r,`textPosition`)&&(i.position=r.textPosition),Y(r,`textOffset`)&&(i.offset=r.textOffset),Y(r,`textRotation`)&&(i.rotation=r.textRotation),Y(r,`textDistance`)&&(i.distance=r.textDistance)}return xj(o,e),V(o.rich,function(e){xj(e,e)}),{textConfig:i,textContent:a}}function xj(e,t){t&&(t.font=t.textFont||t.font,Y(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),Y(t,`textAlign`)&&(e.align=t.textAlign),Y(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),Y(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),Y(t,`textWidth`)&&(e.width=t.textWidth),Y(t,`textHeight`)&&(e.height=t.textHeight),Y(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),Y(t,`textPadding`)&&(e.padding=t.textPadding),Y(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),Y(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),Y(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),Y(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),Y(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),Y(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Y(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}R();function Sj(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Cj(e){for(var t=Ol(),n=Ol(),r=0;r<e.length;){var i=e[r++],a=e[r++];tj(i,a)||(kl(t,i),kl(n,a))}return[t,n]}function wj(e,t){var n=Cj(e),r=n[0],i=n[1],a=Cj(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function Tj(e){return nn(e)?e:e?.5:0}function Ej(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=ij(r*2),a=0;a<r;a++){var o=ej(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Dj(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;tj(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function Oj(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:Ra((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function kj(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=H(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=Oj(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;V(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new rh(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function Aj(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&jj(a,t))){var o=t.mapDimension(a.dim),s={};return V(a.getViewLabels(),function(e){e.tick.offInterval||(s[cO(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function jj(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(GA.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function Mj(e){for(var t=e.length/2;t>0&&tj(e[t*2-2],e[t*2-1]);t--);return t-1}function Nj(e,t){return[e[t*2],e[t*2+1]]}function Pj(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!tj(o,e[l*2+1-i])){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function Fj(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<Kf.length;t++)if(e.get([Kf[t],`endLabel`,`show`]))return!0;return!1}function Ij(e,t,n,r){if(vj(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=Fj(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=hj(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}else return gj(t,n,r)}function Lj(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var Rj=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Ps,t=new ZA;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=U(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=QA(r,a,_),y=g&&Ej(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&Aj(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=l?!1:e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=kj(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=Dj(y,c,r,w,x),c=Dj(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,lv(E)),m.setClipPath(Ij(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,lv(E));var D=m.getClipPath();D?bh(D,{shape:Ij(this,r,!1,e).shape},e):m.setClipPath(Ij(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!Sj(this._stackedOnPoints,y)||!Sj(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=Dj(y,c,r,w,x),c=Dj(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(Ht(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),Hp(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var ee=f.getState(`emphasis`).style;ee.lineWidth=+f.style.lineWidth+1}kf(f).seriesIndex=e.seriesIndex,Rp(f,k,A,j);var M=Tj(e.get(`smooth`)),N=e.get(`smoothMonotone`);if(f.setShape({smooth:M,smoothMonotone:N,connectNulls:x}),p){var P=a.getCalculationInfo(`stackedOnSeries`),F=0;p.useStyle(Ht(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),P&&(F=Tj(P.get(`smooth`))),p.setShape({smooth:M,stackedOnSmooth:F,smoothMonotone:N,connectNulls:x}),Hp(p,e,`areaStyle`),kf(p).seriesIndex=e.seriesIndex,Rp(p,k,A,j)}var I=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=I)}),this._polyline.onHoverStateChange=I,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var te=e.get(`triggerEvent`),ne=e.get(`triggerLineEvent`),re=ne===!0||te===!0||te===`line`,ie=ne===!0||te===!0||te===`area`;this.packEventData(e,f,re),p&&this.packEventData(e,p,ie)},t.prototype.packEventData=function(e,t,n){kf(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=hl(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(tj(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new GA(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Yx.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=hl(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else Yx.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;up(this._polyline,e),t&&up(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new fj({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new mj({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);en(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=en(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=en(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(Fj(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new hf({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=Mj(o);c>=0&&(Cg(a,wg(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?UA(i,e):WA(i,n)},enableTextSetter:!0},Lj(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=Pj(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=Nj(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=Dl(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=Nj(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=Pg(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=sj(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=Dj(u.stackedOnCurrent,u.current,n,i,o),d=Dj(u.current,null,n,i,o),m=Dj(u.stackedOnNext,u.next,n,i,o),p=Dj(u.next,null,n,i,o)),wj(d,p)>3e3||c&&wj(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),yh(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),yh(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(Yx);function zj(e,t){return{seriesType:e,plan:Kx(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=H(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);VE(n,o[0])&&(o[0]=c),VE(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&ij(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}}}var Bj={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},Vj=function(e){return Math.round(e.length/2)};function Hj(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;G(i)?p=Bj[i]:en(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,Vj))}}}}}function Uj(e){e.registerChartView(Rj),e.registerSeriesModel(HA),e.registerLayout(zj(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Hj(`line`))}R();var Wj=function(e){O(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(iA),Gj=null;function Kj(){return Gj}var qj=`expandAxisBreak`,Jj=Math.PI,Yj=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Xj=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Zj=gl(),Qj=gl(),$j=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function eM(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=wM(e.axisName)&&rO(e.nameLocation);V(r,function(e){var t=jA(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Ur(tM,n.transform):Lr(tM),t.transform&&zr(tM,tM,t.transform),X.copy(nM,t.localRect),nM.applyTransform(tM),s?s.union(nM):X.copy(s=new X(0,0,0,0),nM))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new X(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var tM=Ir(),nM=new X(0,0,0,0),rM=function(e,t,n,r,i,a){if(rO(e.nameLocation)){var o=a.stOccupiedRect;o&&iM(PA({},o,a.transGroup.transform),r,i)}else aM(a.labelInfoList,a.dirVec,r,i)};function iM(e,t,n){var r=new Gr;BA(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&FA(t,r)}function aM(e,t,n,r){for(var i=Gr.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||iM(s,n,r)}}var oM=function(){function e(e,t,n,r){this.group=new Ps,this._axisModel=e,this._api=t,this._local={},this._shared=r||new $j(rM),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=q(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=q(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:q(e.nameDirection,1),tickDirection:q(e.tickDirection,1),labelDirection:q(e.labelDirection,1),labelOffset:q(e.labelOffset,0),silent:q(e.silent,!0),axisName:r,nameLocation:fn(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:wM(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new Ps({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new Gr(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},V(sM,function(r){e[r]&&cM[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=Ec(t-e),i,a;return Dc(r)?(a=n>0?`top`:`bottom`,i=`center`):Dc(r-Jj)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<Jj?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),sM=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],cM={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&($n(u,u,l),$n(d,d,l));var p=B({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&h_(r.axis.scale))Kj().buildAxisBreakLine(r,i,a,m);else{var h=new Jm(B({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));Bh(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);G(g)&&(g=[g,g]),(G(_)||nn(_))&&(_=[_,_]);var v=gC(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];V([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=mC(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){_M(t,i,s)&&lM(e,t,n,r,i,a,o,Nk.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){_M(t,i,s)&&lM(e,t,n,r,i,a,o,Nk.determine);var c=hM(e,i,a,r);fM(e,t.labelLayoutList,c),gM(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(wM(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Gr(0,0),_=new Gr(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=Ir();_.transform(Vr(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*Jj/180);var b,x;rO(u)?b=oM.innerTextLayout(e.rotation,y??e.rotation,d):(b=uM(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=dn(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new hf({x:g.x,y:g.y,rotation:b.rotation,silent:oM.isLabelSilent(r),style:Tg(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(ag({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=oM.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,kf(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=jA({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:rO(u)?Yj[E]:Xj[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function lM(e,t,n,r,i,a,o,s){yM(t)||vM(e,t,i,s,r,o);var c=t.labelLayoutList;xM(e,r,c,a),EM(r,e.rotation,c);var l=e.optionHideOverlap;dM(r,c,l),l&&zA(Yt(c,function(e){return e&&!e.label.ignore})),eM(e,n,r,c)}function uM(e,t,n,r){var i=Ec(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Dc(i-Jj/2)?(o=c?`bottom`:`top`,a=`center`):Dc(i-Jj*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<Jj*1.5&&i>Jj/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function dM(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(tO(r))return;function a(e,a,o){var s=jA(t[a]),c=jA(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=Zj(s.label).labelInfo.tick;if(dD(l)&&u.notNice||pD(l)&&u.offInterval){pM(s.label);return}}if(e===!1||s.suggestIgnore){pM(s.label);return}if(c.suggestIgnore){pM(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=IA({marginForce:f},s),c=IA({marginForce:f},c)}BA(s,c,null,{touchThreshold:d})&&pM(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function fM(e,t,n){e.showMinorTicks||V(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=Qj(r),a=Zj(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){pM(r);return}}})}function pM(e){e&&(e.ignore=!0)}function mM(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&($n(o,o,t),$n(s,s,t));var u=new Jm({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Bh(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=Qj(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function hM(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=mM(i.getTicksCoords(),n.transform,c,Ht(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function gM(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=Ht(c.getLineStyle(),Ht(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=mM(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function _M(e,t,n){if(yM(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),bM(e,null,null,null))}return!0}function vM(e,t,n,r,i,a){var o=i.axis,s=dn(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Ps;n.add(c);var l=Pk(r);if(!s||o.scale.isBlank()){bM(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(dn(e.raw.labelRotate,u.get(`rotate`))||0)*Jj/180,p=oM.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;V(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=cO(o.scale,n);if(m&&m[f]){var y=m[f];K(y)&&y.textStyle&&(l=new qg(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=q(l.getShallow(`alignMinLabel`,!0),x),C=q(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=q(l.getShallow(`verticalAlignMinLabel`,!0),w),E=q(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new hf({x:0,y:0,rotation:0,silent:oM.isLabelSilent(i),z2:D,style:Tg(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:en(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=Zj(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,ag({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=oM.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var ee=j.parsedBreak;A.break={start:ee.vmin,end:ee.vmax}}o.type===`category`&&(A.dataIndex=f),kf(O).eventData=A,j&&TM(i,a,O,j)}h.push(O),c.add(O)}),bM(t,H(h,function(e){return{label:e,priority:Zj(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function yM(e){return!!e.labelLayoutList}function bM(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function xM(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);V(n,function(n,a){var o=jA(n);if(o){var s=o.label,c=Zj(s);o.suggestIgnore=s.ignore,s.ignore=!1,ns(SM,CM);var l=t.axis;SM.x=l.dataToCoord(cO(l.scale,c.labelInfo.tick)),SM.y=e.labelOffset+e.labelDirection*i,SM.rotation=c.layoutRotation,r.add(SM),SM.updateTransform(),r.remove(SM),SM.decomposeTransform(),ns(s,SM),s.markRedraw(),kA(o,!0),jA(o)}})}var SM=new uf,CM=new uf;function wM(e){return!!e}function TM(e,t,n,r){n.on(`click`,function(n){var i={type:qj,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function EM(e,t,n){var r=f_();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&Zj(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&V(i,function(r){Kj().adjustBreakLabelPair(e.axis.inverse,t,[jA(n[r[0]]),jA(n[r[1]])])})}}function DM(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),dn(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function OM(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function kM(e){var t={xAxisModel:null,yAxisModel:null};return V(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,bl).models[0]}),t}function AM(e,t,n,r,i,a){for(var o=DM(e,n),s=!1,c=!1,l=0;l<t.length;l++)lD(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new oM(n,r,o,i)}function jM(e,t,n){var r=DM(t,n);e.updateCfg(r)}function MM(){TO(`liPosMinGap`,NM)}function NM(e,t,n){var r=J(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=Rb(u);function f(n){xO(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}aj(PM,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||zb(d,a))&&(l&&(a=c.transformIn(a,null)),PM.arr[m++]=a)}});var h=PM.typed?PM.arr.subarray(0,m):(PM.arr.length=m,PM.arr);PM.typed?h.sort():_c(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=Bc(g)?g:m>0?-2:-1,n.serUids=r}var PM=aj({ctor:rj},50);function FM(e){return function(t,n){var r=eA(t,{fromStat:{key:e}});if(Bc(r.w2))return[-r.w2/2,r.w2/2]}}function IM(e,t){return e+`|&`+t}function LM(e){return MM(),{liPosMinGap:!pD(e.scale)}}function RM(e,t,n,r){kO(e,{key:t,seriesType:n,coordSysType:r,getMetrics:LM})}function zM(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}R();var BM={left:0,right:0,top:0,bottom:0},VM=[`25%`,`25%`],HM=`cartesian2d`,UM=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=Pv(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&Nv(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Nv(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:BM,outerBoundsContain:`all`,outerBoundsClampWidth:VM[0],outerBoundsClampHeight:VM[1],backgroundColor:Z.color.transparent,borderWidth:1,borderColor:Z.color.neutral30},t}(Lv),WM=Ll(),GM=`__ec_stack_`;function KM(e){return e.get(`stack`)||GM+e.seriesIndex}function qM(e,t){var n=JM(e,t);return n.columnMap=YM(n),n}function JM(e,t){var n=IM(t,HM),r=[],i=eA(e,{fromStat:{key:n},min:1});return bO(e,n,function(e){r.push({barWidth:dc(e.get(`barWidth`),i.w),barMaxWidth:dc(e.get(`barMaxWidth`),i.w),barMinWidth:dc(e.get(`barMinWidth`)||(QM(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:KM(e)})}),{bandWidthResult:i,seriesInfo:r}}function YM(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};V(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;Y(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=$s(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=ec(35-o.length*4,15)+`%`;var c=dc(i,t),l=dc(a,1),u=(n-c)/(r+(r-1)*l);u=ec(u,0),V(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=$s(o,i)),a&&(o=ec(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=$s(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=ec(u,0);var d=0,f;V(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return V(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function XM(e){return{seriesType:e,overallReset:function(t){var n=IM(e,HM);SO(t,n,function(t){var r=qM(t,e);bO(t,n,function(e){var t=r.columnMap[KM(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function ZM(e){return{seriesType:e,plan:Kx(),reset:function(e){if(OM(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=VE(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(zM(i))),p=QM(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&ij(r*3),c=p&&s&&ij(r*3),l=p&&ij(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,tc(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,tc(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function QM(e){return e.pipelineContext&&e.pipelineContext.large}function $M(e){return FM(IM(e,HM))}function eN(e){WM(e,function(){function t(t){var n=IM(t,HM);RM(e,n,t,HM),WO(n,$M(t))}t(`bar`),t(`pictorialBar`)})}R();var tN=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return GE(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)V(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}else if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(Ix);Ix.registerClass(tN),R();var nN=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return GE(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=Ul(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=Qg(tN.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:Z.color.primary,borderWidth:2}},realtimeSort:!1}),t}(tN);R();var rN=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),iN=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new rN},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(Yd);function aN(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return gs(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+sN(m,s+_,!1),x=u+p*y(m)+cN(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+sN(m,-s+_,!1),x=u+p*y(m)+cN(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+sN(h,s+_,!0),x=u+p*y(h)+cN(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+sN(h,-s+_,!0),x=u+p*y(h)+cN(h,-s+_,!0),S=`right`,C=`middle`;break;default:return gs(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function oN(e,t,n,r){if(nn(r)){e.setTextConfig({rotation:r});return}else if(W(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function sN(e,t,n){return t*Math.sin(e)*(n?-1:1)}function cN(e,t,n){return t*Math.cos(e)*(n?1:-1)}function lN(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;W(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:H(r,function(e){return hs(e,i)})}}R();var uN=Math.max,dN=Math.min,fN=function(e){O(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){sg(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=hN(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=xN[s.type](a,e);if(!t)return null;var n=MN(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=xN[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!bN[s.type](r)))){var o=!1;f&&(o=pN[s.type](p,r));var g=mN[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),wN(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?gN(d,u,g,r,t,l,!1,!1):bh(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=xN[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=xN[s.type](a,t),E=jN(l,T,s);yh(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!bN[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=pN[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&wh(D,e,n),D=null),D?Th(D):D=mN[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=Pg(k);A.prevValue!=null&&(A.prevValue=A.value)}}else wN(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?gN(d,u,D,C,t,l,!0,x):yh(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&wh(n,e,t)}).execute();var C=this._backgroundGroup||=new Ps;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),ON(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),ON(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&_j(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:H(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){wh(t,e,kf(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Yx),pN={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=uN(t.x,e.x),s=dN(t.x+t.width,i),c=uN(t.y,e.y),l=dN(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=dN(t.r,e.r),a=uN(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},mN={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new uf({shape:B({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?iN:Lm,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=aN(CN(i),{isRoundCap:l===iN}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?yh:bh)(u,{shape:p},a)}return u}};function hN(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function gN(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?yh:bh)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?yh:bh)(n,{shape:l},u,i)}function _N(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var vN=[`x`,`y`,`width`,`height`],yN=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],bN={cartesian2d:function(e){return!_N(e,vN)},polar:function(e){return!_N(e,yN)}},xN={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?TN(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function SN(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function CN(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function wN(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;B(u,lN(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?NN(i,a.coordinateSystem):PN(i,a.coordinateSystem),p=wg(r);Cg(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:UA(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`?!0:null,oN(e,h===`outside`?f:h,CN(o),r.get([`label`,`rotate`]))}Fg(m,p,a.getRawValue(n),function(e){return WA(t,e)});var g=r.getModel([`emphasis`]);Rp(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),Hp(e,r),SN(i)&&(e.style.fill=`none`,e.style.stroke=`none`,V(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function TN(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var EN=function(){function e(){}return e}(),DN=function(e){O(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new EN},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(Yd);function ON(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?Hl(e):0;if(l){var d=new DN({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new DN({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,kf(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,kN),f.on(`mousemove`,kN)),n&&n.push(f)}var kN=iS(function(e){var t=this,n=AN(t,e.offsetX,e.offsetY);kf(t).dataIndex=n>=0?n:null},30,!1);function AN(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function jN(e,t,n){if(vj(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function MN(e,t,n){return new(e.type===`polar`?Lm:uf)({shape:jN(t,n,e),silent:!0,z2:0})}function NN(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function PN(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function FN(e){e.registerChartView(fN),e.registerSeriesModel(nN),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,XM(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ZM(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Hj(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),eN(e)}function IN(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}function LN(e,t,n){t=W(t)&&{coordDimensions:t}||B({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=ME(r,t).dimensions,a=new AE(i,e);return a.initData(r,n),a}var RN=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}();R();var zN=gl(),BN=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new RN(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return LN(this,{coordDimensions:[`value`],encodeDefaulter:$t(Zv,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=zN(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=Cc(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){Zc(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,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%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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`},t}(Ix);hv({fullType:BN.type,getCoord2:function(e){return e.getShallow(`center`)}});var VN=Math.PI/180;function HN(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;WN(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}RA(e,1,c,c+o)&&d(e)}function UN(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;JN(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!JN(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,WN(m,g,!1)}}HN(l,t,n,r,1,i,a,o,s,d),HN(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!JN(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function WN(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}GN(a,r)}}}function GN(e,t){qN.rect=e,MA(qN,t,KN)}var KN={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},qN={};function JN(e){return e.position===`center`}function YN(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*VN,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=dc(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=dc(T,l);var E=w.get(`length2`);if(E=dc(E,l),Math.abs(d.endAngle-d.startAngle)<o){V(h.states,p),h.ignore=!0,g&&(V(g.states,p),g.ignore=!0);return}if(m(h)){var D=(d.startAngle+d.endAngle)/2,O=Math.cos(D),k=Math.sin(D),A,j,ee,M;r=d.cx,i=d.cy;var N=y===`inside`||y===`inner`;if(y===`center`)A=d.cx,j=d.cy,M=`center`;else{var P=(N?(d.r+d.r0)/2*O:d.r*O)+r,F=(N?(d.r+d.r0)/2*k:d.r*k)+i;if(A=P+O*3,j=F+k*3,!N){var I=P+O*(T+c-d.r),te=F+k*(T+c-d.r),ne=I+(O<0?-1:1)*E,re=te;A=x===`edge`?O<0?u+S:u+l-S:ne+(O<0?-b:b),j=re,ee=[[P,F],[I,te],[ne,re]]}M=N?`center`:x===`edge`?O>0?`right`:`left`:O>0?`left`:`right`}var ie=Math.PI,ae=0,oe=v.get(`rotate`);if(nn(oe))ae=ie/180*oe;else if(y===`center`)ae=0;else if(oe===`radial`||oe===!0)ae=O<0?-D+ie:-D;else if(oe===`tangential`||oe===`tangential-noflip`&&y!==`outside`&&y!==`outer`){var se=Math.atan2(O,k);se<0&&(se=ie*2+se),k>0&&oe!==`tangential-noflip`&&(se=ie+se),ae=se-ie}if(a=!!ae,h.x=A,h.y=j,h.rotation=ae,h.setStyle({verticalAlign:`middle`}),N){h.setStyle({align:M});var ce=h.states.select;ce&&(ce.x+=h.x,ce.y+=h.y)}else{var L=new X(0,0,0,0);GN(L,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new Gr(O,k),linePoints:ee,textAlign:M,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:L,unconstrainedWidth:L.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:N})}}),!a&&e.get(`avoidLabelOverlap`)&&UN(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(V(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(V(v.states,p),v.ignore=!0):(yA(x,g.minTurnAngle),bA(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new Gr(x[0][0],x[0][1])})}}}var XN=Math.PI*2,ZN=Math.PI/180,QN=Wl(`pie`,$N);function $N(e,t){e.eachSeriesByType(`pie`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=Dv(e,t),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*ZN,d=e.get(`endAngle`),f=e.get(`padAngle`)*ZN;d=d===`auto`?u-XN:-d*ZN;var p=e.get(`minAngle`)*ZN+f,m=0;n.each(r,function(e){!isNaN(e)&&m++});var h=n.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=n.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;Cd(S,!_),u=S[0],d=S[1];var w=eP(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(n.setLayout({viewRect:l,r:s}),n.each(r,function(e,t){var r;if(isNaN(e)){n.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});return}r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?(l=O+x*r/2,u=l):(l=O+C,u=i-C),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?uc(e,b,[c,s]):s}),O=i}),E<XN&&m)if(E<=.001){var k=T/m;n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t);r.angle=k;var i=0,a=0;k<f?(i=u+x*(t+1/2)*k,a=i):(i=u+x*t*k+C,a=u+x*(t+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})})}var eP=gl();R();var tP=function(e){O(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new hf;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=B(lN(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle)){i.setShape(l);return}if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(bh(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,bh(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,yh(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),bh(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else Th(i),yh(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),Hp(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=B({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},lN(s.getModel(`itemStyle`),c)),B(i.ensureState(`select`),{x:p,y:m,shape:lN(o.getModel([`select`,`itemStyle`]),c)}),B(i.ensureState(`blur`),{shape:lN(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&B(g.ensureState(`select`),{x:p,y:m}),B(_.ensureState(`select`),{x:p,y:m}),Rp(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;Cg(r,wg(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Gm,this.setTextGuideLine(d)),CA(this,wA(i),{stroke:s,opacity:fn(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(Lm),nP=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`pie`,t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=new Lm({shape:Rt(eP(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new tP(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){wh(a.getItemGraphicEl(t),e,t)}).execute(),YN(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(Yx);function rP(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(nn(r)&&!isNaN(r)&&r<0)})}}}function iP(e){e.registerChartView(nP),e.registerSeriesModel(BN),WS(`pie`,e.registerAction),e.registerLayout(QN),e.registerProcessor(IN(`pie`)),e.registerProcessor(rP(`pie`))}R();var aP=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,bl).models[0]},t.type=`cartesian2dAxis`,t}(Lv);Kt(aP,uO);var oP={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:`auto`,onZeroAxisIndex:null,lineStyle:{color:Z.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},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,color:Z.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Z.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Z.color.backgroundTint,Z.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Z.color.neutral00,borderColor:Z.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},sP=zt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},oP),cP=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:Z.color.axisMinorSplitLine,width:1}}},oP),lP={category:sP,value:cP,time:zt({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},cP),log:Ht({logBase:10},cP)};R();function uP(e,t,n,r){V(GD,function(i,a){var o=zt(zt({},lP[a],!0),r,!0),s=function(e){O(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=Mv(this),r=n?Pv(e):{};zt(e,t.getTheme().get(a+`Axis`)),zt(e,this.getDefaultOption()),e.type=dP(e),n&&Nv(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=XE.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=Kj();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,dP)}function dP(e){return e.type||(e.data?`category`:`value`)}var fP=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return H(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Yt(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}();R();var pP=[`x`,`y`];function mP(e){return(e.type===`interval`||e.type===`time`)&&!h_(e)}var hP=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=HM,t.dimensions=pP,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!mP(e)||!mP(t))){var n=rD(e,null),r=rD(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Ur([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new X(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return $n(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return $n(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new X(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(fP);function gP(e,t){var n=e.scale,r=e.model,i=KO(n,r,r.ecModel,e,null),a=fD(n),o=fD(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=tc(l[0].value-l[1].value),g=tc(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-+!!f-!!p}var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=vD(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*ec(c,2):mD(E),D=hD(E)}function j(){w=hc(k-E*f,D)}function ee(){T=hc(O+E*p,D)}function M(){k=f?hc(w+E*f,D):w}function N(){O=p?hc(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var P=e.getExtent(),F=tc(P[1]-P[0]);D=xc([T,w],F,.5/m),M(),N(),Bc(D)&&(E=hc(E,D))}else{var I=C[1]-C[0];E=a?ec(Ac(I),1):Mc(I/m,2),D=hD(E),b[0]?(w=C[0],A(function(){if(M(),O=hc(k+E*m,D),ee(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(N(),k=hc(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=hc(ic(C[0]/E)*E,D),O=hc(rc(C[1]/E)*E,D);var e=nc((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=rc(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=hc(k-E*n[0],D),O=hc(O+E*n[1],D),j(),ee(),w<=C[0]&&T>=C[1])return!0}})}sO(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}var _P=[[3,1],[0,2]],vP=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pP,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;V(this._axesList,function(e){BO(e,1);var t=e.scale;pD(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=Zt(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):QO(i)}V(n,function(e){CP(e,e.__alignTo)?QO(e):gP(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};V(n.x,function(e){bP(n,`y`,e,i)}),V(n.y,function(e){bP(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=Av(e,t),i=this._rect=Ov(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(TP(a,i),!n){var c=kP(i,o,a,s,t),l=void 0;if(s)DP?(DP(this._axesList,i),TP(a,i)):l=OP(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=jP(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=OP(d,f,p,i,a,c,r))}AP(i,a,Nk.determine,null,l,r),V(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}K(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,bl).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,bl).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,Wt(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,V(o.x,function(t,n){V(o.y,function(i,a){var o=`x`+n+`y`+a,s=new hP(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),SP(o.x),SP(o.y);function c(t){return function(n,r){if(yP(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=qD(n),u=new Wj(t,JD(n,l,!0),[0,0],l,c);u.onBand=lO(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return V(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);Wt(t,i)<0&&t.push(i),Wt(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),V(o._axesList,function(t){zO(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;yv({targetModel:e,coordSysType:HM,coordSysProvider:r});function r(){var r=kM(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(DO(t,e,HM),DO(n,e,HM))},this),r},e.dimensions=pP,e.dimIdxMap=pE(pP),e}();function yP(e,t){return e.getCoordSysModel()===t}function bP(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)xP(s,i[c])&&(a=i[c]);else for(var l in i)if(Y(i,l)&&xP(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function xP(e,t){if(!t)return!1;var n=t.scale,r=YD(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&ZD(t)&&(i=!1),i}function SP(e){for(var t=Zt(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];lD(a.scale)&&aO(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&V(r,function(e){e.__alignTo=n})}function CP(e,t){return h_(e.scale)||h_(t.scale)||t.scale.getTicks().length<2}function wP(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function TP(e,t){V(e.x,function(e){return EP(e,t.x,t.width)}),V(e.y,function(e){return EP(e,t.y,t.height)})}function EP(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),wP(e,t)}var DP;function OP(e,t,n,r,i,a,o){AP(r,i,Nk.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=Xt(s,function(e){return e>0})==null;return ng(r,s,!0,!0,n),TP(i,r),c;function l(e){V(i[Oh[e]],function(t){if(iO(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(cO(t.scale,Zj(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=rO(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[Oh[n]]-t[Oh[n]],a=t[kh[n]]+t[Oh[n]]-(e[kh[n]]+e[Oh[n]]);i=d(i,1-r),a=d(a,r);var o=_P[n][0],c=_P[n][1];s[o]=ec(s[o],i),s[c]=ec(s[c],a)}function d(e,t){return e>0&&!un(t)&&t>1e-4&&(e/=t),e}}function kP(e,t,n,r,i){var a=new $j(MP);return V(n,function(n){return V(n,function(n){if(iO(n.model)){var o=!r;n.axisBuilder=AM(e,t,n.model,i,a,o)}})}),a}function AP(e,t,n,r,i,a){var o=n===Nk.determine;V(t,function(t){return V(t,function(t){iO(t.model)&&(jM(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[Oh[1-t]]=e[kh[t]]<=a.refContainer[kh[t]]*.5?0:1-t==1?2:1}V(t,function(e,t){return V(e,function(e){iO(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function jP(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=Ov(e.get(`outerBounds`,!0)||BM,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||Wt([`all`,`axisLabel`],a)<0?`all`:a,s=[pc(q(e.get(`outerBoundsClampWidth`,!0),VM[0]),t.width),pc(q(e.get(`outerBoundsClampHeight`,!0),VM[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var MP=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;rM(e,t,n,r,i,a),rO(e.nameLocation)||V(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&aM(e.labelInfoList,e.dirVec,r,i)})};function NP(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return PP(n,e,t),n.seriesInvolved&&IP(n,e),n}function PP(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];V(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=UP(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(V(n.getAxes(),$t(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&V(f.baseAxes,$t(p,d?`cross`:!0,u)),d&&V(f.otherAxes,$t(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!HP(d))){s??=d.get(`triggerTooltip`),d=r?FP(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=UP(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:HP(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=LP(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function FP(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};V(s,function(e){c[e]=Rt(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&Ht(l,u.textStyle)}return e.model.getModel(`axisPointer`,new qg(c,n,r))}function IP(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||V(e.coordSysAxesInfo[UP(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function LP(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(RP(a[r+`AxisId`],n.id)||RP(a[r+`AxisIndex`],n.componentIndex)||RP(a[r+`AxisName`],n.name))return i}}function RP(e,t){return e===`all`||W(e)&&Wt(e,t)>=0||e===t}function zP(e){var t=BP(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=HP(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function BP(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[UP(e)]}function VP(e){var t=BP(e);return t&&t.axisPointerModel}function HP(e){return!!e.get([`handle`,`show`])}function UP(e){return e.type+`||`+e.id}R();var WP={},GP=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&zP(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=VP(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){WP[e]=t},t.getAxisPointerClass=function(e){return e&&WP[e]},t.type=`axis`,t}(Gx),KP=gl();function qP(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=KP(e).splitAreaColors,f=J(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=W(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new uf({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:Ht({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}KP(e).splitAreaColors=f}}}function JP(e){KP(e).splitAreaColors=null}R();var YP=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],XP=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new Ps,this.group.add(this._axisGroup),iO(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),V(YP,function(e){t.get([e,`show`])&&ZP[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||Jh(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){JP(this)},t.type=`cartesianAxis`,t}(GP),ZP={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=W(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new Jm({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:Ht({stroke:c[x]},_),silent:!0});Bh(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new Jm({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});Bh(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){qP(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=Kj(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},QP=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(XP),$P=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=QP.type,t}return t.type=`yAxis`,t}(XP);R();var eF=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new uf({shape:e.coordinateSystem.getRect(),style:Ht({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(Gx),tF={offset:0};function nF(e){e.registerComponentView(eF),e.registerComponentModel(UM),e.registerCoordinateSystem(`cartesian2d`,vP),uP(e,`x`,aP,tF),uP(e,`y`,aP,tF),e.registerComponentView(QP),e.registerComponentView($P),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var rF=gl();function iF(e,t){return!!rF(e)[t]}zT({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},Dn);var aF={axisPointer:1,tooltip:1,brush:1};function oF(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||aF.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=fg(r),o=fg(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}R();var sF=function(e){O(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=U(n._mousedownHandler,n),i=U(n._mousemoveHandler,n),a=U(n._mouseupHandler,n),o=U(n._mousewheelHandler,n),s=U(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=fg(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:q(c.z2,-1/0)},p=B({},n.triggerInfo);this._opt=Ht(B({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:f,triggerInfo:p,cursorGrab:`grab`,cursorGrabbing:`grabbing`}),e??=!0,(!this._enabled||this._controlType!==e)&&(this.disable(),this._enabled=!0,(e===!0||e===`move`||e===`pan`)&&(dF(t,`mousedown`,r,f),dF(t,`mousemove`,i,f),dF(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(dF(t,`mousewheel`,o,f),dF(t,`pinch`,s,f)))},n.disable=function(){this._enabled&&(this._enabled=!1,fF(t,`mousedown`,r),fF(t,`mousemove`,i),fF(t,`mouseup`,a),fF(t,`mousewheel`,o),fF(t,`pinch`,s))},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,t,n){var r=this._opt,i=r.zInfoParsed;if(oF(e,r.api,i.component))return!1;var a=r.triggerInfo,o=a.roamTrigger,s=!1;return o===`global`&&(s=!0),s||=a.isInSelf(e,t,n),s&&a.isInClip&&!a.isInClip(e,t,n)&&(s=!1),s},t.prototype._decideCursorStyle=function(e,t,n,r){var i=e.target;if(!i&&this._checkPointer(e,t,n))return this._opt.cursorGrab;if(r)return i&&i.cursor||`default`},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(Ar(e)||cF(e))){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this._checkPointer(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var t=this._zr;if(!(e.gestureEvent===`pinch`||iF(t,`globalPan`)||cF(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!gF(`moveOnMouseMove`,e,this._opt)){var i=this._decideCursorStyle(e,n,r,!1);i&&t.setCursorStyle(i);return}t.setCursorStyle(this._opt.cursorGrabbing);var a=this._x,o=this._y,s=n-a,c=r-o;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&kr(e.event),e.__ecRoamConsumed=!0,hF(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!cF(e)){var t=this._zr;if(!Ar(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!cF(e)){var t=gF(`zoomOnMouseWheel`,e,this._opt),n=gF(`moveOnMouseWheel`,e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(!(r===0||!t&&!n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(iF(this._zr,`globalPan`)||cF(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(kr(r.event),r.__ecRoamConsumed=!0,hF(e,t,n,r,i))},t}(ir);function cF(e){return e.__ecRoamConsumed}var lF=gl();function uF(e){var t=lF(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function dF(e,t,n,r){for(var i=uF(e).roam,a=i[t]=i[t]||[],o=0;o<a.length;o++){var s=a[o].zInfoParsed;if((s.zlevel-r.zlevel||s.z-r.z||s.z2-r.z2)<=0)break}a.splice(o,0,{listener:n,zInfoParsed:r}),pF(e,t)}function fF(e,t,n){for(var r=uF(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||mF(e,t);return}}function pF(e,t){var n=uF(e);n.uniform[t]||e.on(t,n.uniform[t]=function(e){var r=n.roam[t];if(r)for(var i=0;i<r.length;i++)r[i].listener(e)})}function mF(e,t){var n=uF(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function hF(e,t,n,r,i){i.isAvailableBehavior=U(gF,null,n,r),e.trigger(t,i)}function gF(e,t,n){var r=n[e];return!e||r&&(!G(r)||t.event[r+`Key`])}function _F(e,t,n,r,i,a){e||=0;var o=wc(n[1],-n[0]);if(i!=null&&(i=yF(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(wc(t[1],-t[0]));s=yF(s,[0,o]),i=a=yF(s,[i,a]),r=0}t[0]=yF(t[0],n),t[1]=yF(t[1],n);var c=vF(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=wc(u[0],l):u[1]=wc(u[1],-l),t[r]=yF(t[r],u);var d=vF(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=wc(t[r],c.sign*i)),d=vF(t,r),a!=null&&d.span>a&&(t[1-r]=wc(t[r],d.sign*a)),t}function vF(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function yF(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var bF={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},xF=Zt(bF);Jt(ts,function(e,t){return e[t]=1,e},{}),ts.join(`, `);var SF=[``,`style`,`shape`,`extra`],CF=gl();function wF(e,t,n,r,i){var a=e+`Animation`,o=_h(e,r,i)||{},s=CF(t).userDuring;return o.duration>0&&(o.during=s?U(PF,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),B(o,n[a]),o}function TF(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=CF(e),l=t.style;c.userDuring=t.during;var u={},d={};if(RF(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m<p.length;m++){var h=p[m];IF(`shape`,h,f[m])}else IF(`shape`,t,d),IF(`extra`,t,d);if(!a&&s&&(LF(e,t,u),FF(`shape`,e,t,u),FF(`extra`,e,t,u),zF(e,t,l,u)),d.style=l,kF(e,d,o),jF(e,t),s)if(a){var g={};V(SF,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),B(e?g[e]:g,n.enterFrom))});var _=wF(`enter`,e,t,n,i);_.duration>0&&e.animateFrom(g,_)}else AF(e,t,i||0,n,u);EF(e,t),l?e.dirty():e.markRedraw()}function EF(e,t){for(var n=CF(e).leaveToProps,r=0;r<SF.length;r++){var i=SF[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=CF(e).leaveToProps={},i&&(n[i]=n[i]||{}),B(i?n[i]:n,a.leaveTo))}}function DF(e,t,n,r){if(e){var i=e.parent,a=CF(e).leaveToProps;if(a){var o=wF(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}function OF(e){return e===`all`}function kF(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function AF(e,t,n,r,i){if(i){var a=wF(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function jF(e,t){Y(t,`silent`)&&(e.silent=t.silent),Y(t,`ignore`)&&(e.ignore=t.ignore),e instanceof Hu&&Y(t,`invisible`)&&(e.invisible=t.invisible),e instanceof Yd&&Y(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var MF={},NF={setTransform:function(e,t){return MF.el[e]=t,this},getTransform:function(e){return MF.el[e]},setShape:function(e,t){var n=MF.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=MF.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=MF.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=MF.el.style;if(t)return t[e]},setExtra:function(e,t){var n=MF.el.extra||(MF.el.extra={});return n[e]=t,this},getExtra:function(e){var t=MF.el.extra;if(t)return t[e]}};function PF(){var e=this,t=e.el;if(t){var n=CF(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}MF.el=t,r(NF)}}function FF(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),OF(c))B(o,a);else for(var l=Xc(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}else if(OF(s)||Wt(s,e)>=0){!o&&(o=r[e]={});for(var p=Zt(a),u=0;u<p.length;u++){var d=p[u],f=a[d];BF(i[d],f)&&(o[d]=f)}}}}}function IF(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=Zt(r),o=0;o<a.length;o++){var s=a[o];i[s]=ro(r[s])}}function LF(e,t,n){for(var r=t.transition,i=OF(r)?ts:Xc(r||[]),a=0;a<i.length;a++){var o=i[a];o===`style`||o===`shape`||o===`extra`||(n[o]=e[o])}}function RF(e,t,n){for(var r=0;r<xF.length;r++){var i=xF[r],a=bF[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<ts.length;r++){var s=ts[r];t[s]!=null&&(n[s]=t[s])}}function zF(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!OF(o)){var c=Xc(o);!a&&(a=r.style={});for(var l=0;l<c.length;l++){var u=c[l],d=i[u];a[u]=d}}else if(e.getAnimationStyleProps&&(OF(s)||OF(o)||Wt(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=Zt(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function BF(e,t){return qt(e)?e!==t:e!=null&&isFinite(e)}var VF=gl(),HF=[`percent`,`easing`,`shape`,`style`,`extra`];function UF(e){e.stopAnimation(`keyframe`),e.attr(VF(e))}function WF(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(W(t)){V(t,function(t){WF(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=_h(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=VF(e);V(SF,function(n){if(!(n&&!e[n])){var a;r.sort(function(e,t){return e.percent-t.percent}),V(r,function(r){var s=e.animators,c=n?r[n]:r;if(c){var l=Zt(c);if(n||(l=Yt(l,function(e){return Wt(HF,e)<0})),l.length){a||(a=e.animate(n,t.loop,!0),a.scope=`keyframe`);for(var u=0;u<s.length;u++)s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(l);n&&(o[n]=o[n]||{});var d=n?o[n]:o;V(l,function(t){d[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,c,l,r.easing)}}}),a&&a.delay(t.delay||0).duration(i).start(t.easing)}})}}}var GF=gl(),KF=Rt,qF=U,JF=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Ps,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=$t(YF,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}$F(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&eA(r).w>o)return!0;if(a){var s=BP(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=GF(e).pointerEl=new Eh[i.type](KF(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=GF(e).labelEl=new hf(KF(t.label));e.add(i),ZF(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=GF(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=GF(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),ZF(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=Zh(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){kr(e.event)},onmousedown:qF(this._onHandleDragMove,this,0,0),drift:qF(this._onHandleDragMove,this),ondragend:qF(this._onHandleDragEnd,this)}),n.add(r)),$F(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);W(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,aS(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){YF(this._axisPointerModel,!t&&this._moveAnimation,this._handle,QF(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(QF(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(QF(r)),GF(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),oS(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function YF(e,t,n,r){XF(GF(n).lastProp,r)||(GF(n).lastProp=r,t?yh(n,r,e):(n.stopAnimation(),n.attr(r)))}function XF(e,t){if(K(e)&&K(t)){var n=!0;return V(t,function(t,r){n&&=XF(e[r],t)}),!!n}else return e===t}function ZF(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function QF(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function $F(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function eI(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function tI(e,t,n,r,i){var a=rI(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=tv(o.get(`padding`)||0),c=o.getFont(),l=ds(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),nI(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:Tg(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function nI(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function rI(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:$D(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};V(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),G(o)?a=o.replace(`{value}`,a):en(o)&&(a=o(s))}return a}function iI(e,t,n){var r=Ir();return Vr(r,r,n.rotation),Br(r,r,n.position),Wh([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function aI(e,t,n,r,i,a){var o=oM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),tI(t,r,i,a,{position:iI(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function oI(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function sI(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function cI(e,t,n){return eA(e,{fromStat:{sers:H(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function lI(e,t,n){return[ec($s(t[0],t[1]),e-n/2),$s(e+n/2,ec(t[0],t[1]))]}R();var uI=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=dI(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=eI(r),f=fI[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}aI(t,e,DM(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=DM(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=iI(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=dI(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=$s(o[1],l[c]),l[c]=ec(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(JF);function dI(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var fI={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:oI([t,r[0]],[t,r[1]],pI(e))}},shadow:function(e,t,n,r,i,a){var o=cI(e,i,a),s=r[1]-r[0],c=lI(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:sI([l,r[0]],[u-l,s],pI(e))}}};function pI(e){return e.dim===`x`?0:1}R();var mI=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Z.color.border,width:1,type:`dashed`},shadowStyle:{color:Z.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Z.color.neutral00,padding:[5,7,5,7],backgroundColor:Z.color.accent60,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:Z.color.accent40,throttle:40}},t}(Lv),hI=gl(),gI=V;function _I(e,t,n){if(!ft.node){var r=t.getZr();hI(r).records||(hI(r).records={}),vI(r,t);var i=hI(r).records[e]||(hI(r).records[e]={});i.handler=n}}function vI(e,t){if(hI(e).initialized)return;hI(e).initialized=!0,n(`click`,$t(xI,`click`)),n(`mousemove`,$t(xI,`mousemove`)),n(`mousewheel`,$t(xI,`mousewheel`)),n(`globalout`,bI);function n(n,r){e.on(n,function(n){var i=SI(t);gI(hI(e).records,function(e){e&&r(e,n,i.dispatchAction)}),yI(i.pendings,t)})}}function yI(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function bI(e,t,n){e.handler(`leave`,null,n)}function xI(e,t,n,r){t.handler(e,n,r)}function SI(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function CI(e,t){if(!ft.node){var n=t.getZr();(hI(n).records||{})[e]&&(hI(n).records[e]=null)}}R();var wI=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;_I(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){CI(`axisPointer`,t)},t.prototype.dispose=function(e,t){CI(`axisPointer`,t)},t.type=`axisPointer`,t}(Gx);function TI(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=hl(a,e);if(o==null||o<0||W(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(H(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var EI=gl();function DI(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||U(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){LI(i)&&(i=TI({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=LI(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||LI(i),f={},p={},m={list:[],map:{}},h={showPointer:$t(AI,p),showTooltip:$t(jI,m)};V(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);V(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=FI(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&OI(e,o,h,!1,f)}})});var g={};return V(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&V(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,II(t),II(e)))),g[e.key]=a}})}),V(g,function(e,t){OI(u[t],e,h,!0,f)}),MI(p,u,f),NI(m,i,e,o),PI(u,o,n),f}}function OI(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=kI(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&B(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function kI(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return V(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(Bc(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),V(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function AI(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function jI(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=UP(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function MI(e,t,n){var r=n.axesInfo=[];V(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function NI(e,t,n,r){if(LI(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function PI(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=EI(r)[i]||{},o=EI(r)[i]={};V(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&V(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}V(a,function(e,t){!o[t]&&c.push(l(e))}),V(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function FI(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function II(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function LI(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function RI(e){GP.registerAxisPointerClass(`CartesianAxisPointer`,uI),e.registerComponentModel(mI),e.registerComponentView(wI),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!W(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=NP(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},DI)}function zI(e){uk(nF),uk(RI)}R();function BI(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function VI(e,t){var n;return V(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function HI(e,t,n){var r=B({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(zt(i,r,!0),Nv(i,r,{ignoreSize:!0}),Fv(n,i),GI(n,i),GI(n,i,`shape`),GI(n,i,`style`),GI(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var UI=[`transition`,`enterFrom`,`leaveTo`],WI=UI.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function GI(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?UI:WI,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function KI(e,t){if(e&&(e.hv=t.hv=[VI(t,[`left`,`right`]),VI(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}var qI=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=tl(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];V(o,function(e,t){var n=e.newOption;n&&(s.push(n),BI(e,n),HI(i,t,n),KI(i[t],n))},this),n.elements=Yt(i,function(e){return e&&delete e.$action,e!=null})},t.prototype._flatten=function(e,t,n){V(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type=`graphic`,t.defaultOption={elements:[]},t}(Lv);R();var JI={path:null,compoundPath:null,group:Ps,image:tf,text:hf},YI=gl(),XI=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=J()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);V(t,function(t){var o=ul(t.id,null),s=o==null?null:n.get(o),c=ul(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&yj(d,u,!!p,!!f)){var m=bj(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=tL(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=QI(o,l,t.type,n):(b&&(YI(b).isNew=!1),UF(b)),b&&(TF(b,h,e,{isInit:y}),eL(b,t,i,a))}else if(v){$I(s,t,n,e);var x=QI(o,l,t.type,n);x&&(TF(x,h,e,{isInit:!0}),eL(x,t,i,a))}else g===`remove`&&(EF(s,t),$I(s,t,n,e));var S=n.get(o);if(S&&f)if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new hf(f))}else v&&S.setTextContent(new hf(f));if(S){var w=t.clipPath;if(w){var T=w.type,E=void 0,y=!1;if(_){var D=S.getClipPath();y=!D||YI(D).type!==T,E=y?ZI(T):D}else v&&(y=!0,E=ZI(T));S.setClipPath(E),TF(E,w,e,{isInit:y}),WF(E,w.keyframeAnimation,e)}var O=YI(S);S.setTextConfig(p),O.option=t,nL(S,e,t),ag({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),WF(S,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++){var l=n[c],u=ul(l.id,null),d=u==null?null:i.get(u);if(!(!d||!d.isGroup)){var f=d.parent,p=f===r,m=YI(d),h=YI(f);m.width=dc(m.option.width,p?a:h.width)||0,m.height=dc(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=ul(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=YI(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=jv(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!YI(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(OF(y)||Wt(y,S)>=0)?b[S]=C:d[S]=C}yh(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){$I(n,YI(n).option,t,e._lastGraphicModel)}),this._elMap=J()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(Gx);function ZI(e){var t=new(Y(JI,e)?JI[e]:Ph(e))({});return YI(t).type=e,t}function QI(e,t,n,r){var i=ZI(n);return t.add(i),r.set(e,i),YI(i).id=e,YI(i).isNew=!0,i}function $I(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){$I(e,t,n,r)}),DF(e,t,r),n.removeKey(YI(e).id))}function eL(e,t,n,r){e.isGroup||V([[`cursor`,Hu.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];Y(t,r)?e[r]=q(t[r],n[1]):e[r]??(e[r]=n[1])}),V(Zt(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=en(r)?r:null}}),Y(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function tL(e){return e=B({},e),V([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(xv),function(t){delete e[t]}),e}function nL(e,t,n){var r=kf(e).eventData;!e.silent&&!e.ignore&&!r&&(r=kf(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function rL(e){e.registerComponentModel(qI),e.registerComponentView(XI),e.registerPreprocessor(function(e){var t=e.graphic;W(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var iL=[`x`,`y`,`radius`,`angle`,`single`],aL=gl(),oL=[`cartesian2d`,`polar`,`singleAxis`];function sL(e){return Wt(oL,e.get(`coordinateSystem`))>=0}function cL(e){return e+`Axis`}function lL(e,t){var n=J(),r=[],i=J();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function uL(e){var t=e.ecModel,n={infoList:[],infoMap:J()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(cL(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}function dL(e){var t=aL(rC(e));return t.axisProxyMap||=J()}function fL(e){if(e)return dL(e.ecModel).get(e.uid)}function pL(e,t){dL(e.ecModel).set(e.uid,t)}function mL(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?fL(n.model):null}R();var hL=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),gL=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=_L(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=_L(e);zt(this.option,e,!0),zt(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;V([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=J();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return V(iL,function(n){var r=this.getReferringComponents(cL(n),xl);if(r.specified){t=!0;var i=new hL;V(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new hL;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,bl).models[0];o&&V(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,bl).models[0]&&a.add(e.componentIndex)})}}}r&&V(iL,function(t){if(r){var i=n.findComponents({mainType:cL(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new hL;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);V([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(cL(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){V(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return fL(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(cL(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;V([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;V([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return fL(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||=s}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type=`dataZoom`,t.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],t.defaultOption={z:4,filterMode:`filter`,start:0,end:100},t}(Lv);function _L(e){var t={};return V([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}R();var vL=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(Gx),yL=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getWindow=function(){return Rt(this._window)},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(sL(t)){var n=cL(this._dimName),r=t.getReferringComponents(n,bl).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return Rt(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._extent,n=this.getAxisModel().axis,r=n.scale,i=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[],s=[],c,l=[!1,!1];V([`start`,`end`],function(n,u){var d=e[n],f=e[n+`Value`];i[u]===`percent`?(d??=a[u],f=uc(d,a,t),l[u]=!0):(c=!0,f==null?f=t[u]:(f=r.parse(f),r.sanitize&&(f=r.sanitize(f,t))),d=uc(f,t,a)),s[u]=f==null||isNaN(f)?t[u]:f,o[u]=d==null||isNaN(d)?a[u]:d}),_c(s),_c(o);var u=this._minMaxSpan;c?d(s,o,t,a,!1):d(o,s,a,t,!0);function d(e,t,n,r,i){var a=i?`Span`:`ValueSpan`;_F(0,e,n,`all`,u[`min`+a],u[`max`+a]);for(var o=0;o<2;o++)t[o]=uc(e[o],n,r,!0),i&&(t[o]=t[o],l[o]=!0);Il(t)}var f=pD(r)||dD(r),p=n.getExtent(),m=tc(p[1]-p[0]),h=f?0:xc(s,m,.5);V([[0,ic],[1,rc]],function(e){var n=e[0],r=e[1];!l[n]||!isFinite(h)||(s[n]=hc(s[n],h),s[n]=$s(t[1],ec(t[0],s[n])),o[n]===a[n]&&(s[n]=t[n],f&&(s[n]=r(s[n]))))}),Il(s);var g=[uc(s[0],t,a,!0),uc(s[1],t,a,!0)];return Il(g),{value:s,percent:o,percentInverted:g,valuePrecision:h}},e.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;BO(n,2);var r=n.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=Ht({start:t[0],end:t[1]},i));var a=this._window=this.calculateDataWindow(i),o=a.percent,s=a.value;o[0]!==0&&r.setZoomMM(0,s[0]),o[1]!==100&&r.setZoomMM(1,s[1])}},e.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._window.value;if(i===`none`)return;V(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=H(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else V(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});V(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;V([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=uc(i,[0,100],n,!0)-n[0]):i=uc(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),bL={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(cL(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!fL(i)){var o=new yL(t,r,a,e);n.push(o),pL(i,o)}});var r=J();return V(n,function(e){V(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=mL(e,i);a?n.push([i,a]):i.reset(e,null)}),V(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function xL(e){e.registerAction(`dataZoom`,function(e,t){V(lL(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var SL=Ll();function CL(e){SL(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,bL),xL(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function wL(e,t){var n=tv(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new uf({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}R();var TL=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Z.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Z.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Z.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Z.color.tertiary,fontSize:14}},t}(Lv);function EL(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function DL(e){if(ft.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var OL=DL([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),kL=DL([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function AL(e,t){if(!e)return t;t=ev(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function jL(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var ML=AL(kL,`transition`),NL=AL(OL,`transform`),PL=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(ft.transform3dSupported?`will-change:transform;`:``);function FL(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function IL(e,t,n){if(!G(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=lv(t);var a=FL(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=NL+`:`,l;Wt([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function LL(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(ft.transformSupported?``+NL+i:`,left`+i+`,top`+i)),ML+`:`+a}function RL(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!ft.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=ft.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+NL+`:`+o+`;`:[[`top`,0],[`left`,0],[OL,o]]}function zL(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=q(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),V([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function BL(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=Ax(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(LL(a,n,r)),o&&i.push(`background-color:`+o),V([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=ev(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(zL(d)),f!=null&&i.push(`padding:`+tv(f).join(`px `)+`px`),i.join(`;`)+`;`}function VL(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&ur(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var HL=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ft.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(G(i)?document.querySelector(i):on(i)?i:en(i)&&i(e.getDom()));VL(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;Tr(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=jL(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=PL+BL(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+RL(i[0],i[1],!0)+(`border-color:`+lv(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(G(i)&&n.get(`trigger`)===`item`&&!EL(n)&&(o=IL(n,r,i)),G(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,W(e)||(e=[e]);for(var s=0;s<e.length;s++)on(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(VL(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;V(RL(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,ft.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(U(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;dr(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),UL=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),KL(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;K(e)&&Kc(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new hf({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:Ax(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),V([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),V([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=GL(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;KL(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=WL(i.borderWidth||0),o=GL(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(U(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function WL(e){return Math.max(0,e)}function GL(e){var t=WL(e.shadowBlur||0),n=WL(e.shadowOffsetX||0),r=WL(e.shadowOffsetY||0);return{left:WL(t-n),right:WL(t+n),top:WL(t-r),bottom:WL(t+r)}}function KL(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}R();var qL=new uf({shape:{x:-1,y:-1,width:2,height:2}}),JL=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(ft.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=El(n.get(`renderMode`));this._tooltipContent=r===`richText`?new UL(t):new HL(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(ft.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?aS(this,`_updatePosition`,50,`fixRate`):oS(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);_I(`itemTooltip`,this._api,U(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||ft.node||!n.getDom())){var i=XL(r,n);this._ticket=``;var a=r.dataByCoordSys,o=tR(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=qL;c.x=r.x,c.y=r.y,c.update(),kf(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=TI(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(XL(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&YL([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(kf(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;qS(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(kf(e).dataIndex==null?kf(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=U(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=YL([t.tooltipOption],r),o=this._renderMode,s=[],c=hx(`section`,{blocks:[],noHeader:!0}),l=[],u=new jx;V(e,function(e){V(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=rI(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=hx(`section`,{header:f,noHeader:!gn(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),V(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=$D(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,lv(m.color),o);var h=jb(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=YL([a],r).get(`valueFormatter`);p.blocks.push(_?B({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=xx(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
24
+
25
+ `:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=kf(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=YL([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new jx;h.marker=g.makeTooltipMarker(`item`,lv(h.color),d);var _=jb(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?xx(y?B({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=kf(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(G(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=Rt(a),a.content=vr(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=YL(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new jx;this._showOrMove(d,function(){var n=Rt(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(G(u)){var p=e.ecModel.get(`useUTC`),m=W(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=P_(m.axisValue,d,p)),d=av(d,n,!0)}else if(en(u)){var g=U(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||W(t))return{color:r||i};if(!W(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),en(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),W(t))n=dc(t[0],s),r=dc(t[1],c);else if(K(t)){var p=t;p.width=l[0],p.height=l[1];var m=Ov(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(G(t)&&o){var h=$L(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=ZL(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=eR(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=eR(d)?l[1]/2:d===`bottom`?l[1]:0),EL(e)){var h=QL(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&V(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&V(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&V(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&V(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){ft.node||!t.getDom()||(oS(this,`_updatePosition`),this._tooltipContent.dispose(),CI(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(Gx);function YL(e,t,n){var r=t.ecModel,i;n?(i=new qg(n,r,r),i=new qg(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof qg&&(o=o.get(`tooltip`,!0)),G(o)&&(o={formatter:o}),o&&(i=new qg(o,i,r)))}return i}function XL(e,t){return e.dispatchAction||U(t.dispatchAction,t)}function ZL(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function QL(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function $L(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function eR(e){return e===`center`||e===`middle`}function tR(e,t,n){var r=yl(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Sl(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=kf(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function nR(e){uk(RI),e.registerComponentModel(TL),e.registerComponentView(JL),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Dn),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Dn)}R();var rR=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:Z.size.m,backgroundColor:Z.color.transparent,borderColor:Z.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:Z.color.primary},subtextStyle:{fontSize:12,color:Z.color.quaternary}},t}(Lv),iR=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=q(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new hf({style:Tg(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new hf({style:Tg(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){uv(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){uv(p,`_`+e.get(`subtarget`))}),kf(c).eventData=kf(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=Ov(g,Av(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new uf({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(Gx);function aR(e){e.registerComponentModel(rR),e.registerComponentView(iR)}R();var oR=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},sR=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),W(t)&&V(t,function(e,r){G(e)&&(e={type:e}),t[r]=zt(e,oR(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&dl(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=J(),a=H(r,function(e){return(G(e)||nn(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new qg(e,this,this.ecModel))},this);this._data=Yt(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;V(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;V(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;V(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&Wt(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:Z.size.m,align:`auto`,backgroundColor:Z.color.transparent,borderColor:Z.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:Z.color.disabled,inactiveBorderColor:Z.color.disabled,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:Z.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:Z.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:Z.color.tertiary,borderWidth:1,borderColor:Z.color.border},emphasis:{selectorLabel:{show:!0,color:Z.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(Lv);R();var cR=$t,lR=V,uR=Ps,dR=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new uR),this.group.add(this._selectorGroup=new uR),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=Av(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=Ov(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=Ov(Ht({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=wL(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=J(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),lR(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
26
+ `)){var p=new uR;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,cR(mR,f,null,r,d)).on(`mouseover`,cR(hR,m.name,null,r,d)).on(`mouseout`,cR(gR,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=kf(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=ja(h.fill);_&&_[3]===0&&(_[3]=.2,h=B(B({},h),{fill:Ha(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,cR(mR,null,f,r,d)).on(`mouseover`,cR(hR,null,f,r,d)).on(`mouseout`,cR(gR,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=kf(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};kf(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();lR(e,function(e){var r=e.type,i=new hf({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Cg(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),Ip(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=fR(c,r,o,s,d,m,u),y=new uR,b=r.getModel(`textStyle`);if(en(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(pR({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;G(w)&&w?T=w.replace(`{name}`,t??``):en(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new hf({style:Tg(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new uf({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&ag({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),Ip(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();wv(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){wv(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(Gx);function fR(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),lR(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:rw(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function pR(e){var t=e.icon||`roundRect`,n=mC(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Z.color.neutral00,n.style.lineWidth=2),n}function mR(e,t,n,r){gR(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),hR(e,t,n,r)}function hR(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function gR(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function _R(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),vR(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){V(i,function(t,n){e[t?`select`:`unSelect`](n)}),vR(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function vR(e,t){var n=t||{};return V(e.getData(),function(t){var r=t.get(`name`);if(!(r===`
27
+ `||r===``)){var i=e.isSelected(r);Y(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function yR(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,$t(_R,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,$t(_R,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,$t(_R,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,$t(_R,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,$t(_R,`unSelect`))}var bR=Gl(xR);function xR(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function SR(e){e.registerComponentModel(sR),e.registerComponentView(dR),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,bR),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),yR(e)}R();var CR=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Pv(t);e.prototype.init.call(this,t,n,r),wR(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),wR(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=Qg(sR.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:Z.color.accent50,pageIconInactiveColor:Z.color.accent10,pageIconSize:15,pageTextStyle:{color:Z.color.tertiary},animationDurationUpdate:800}),t}(sR);function wR(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,Nv(t,n,{type:`box`,ignoreSize:!!i})}R();var TR=Ps,ER=[`width`,`height`],DR=[`x`,`y`],OR=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new TR),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new TR)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=W(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new hf({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=Zh(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:U(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=ER[s],l=DR[s],u=ER[1-s],d=DR[1-s];i&&wv(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=Rt(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;wv(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),wv(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=q(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new uf({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&yh(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;V([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,G(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=ER[i],o=DR[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(dR);function kR(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function AR(e){uk(SR),e.registerComponentModel(CR),e.registerComponentView(OR),kR(e)}function jR(e){uk(SR),uk(AR)}R();var MR=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=Qg(gL.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(gL),NR=gl();function PR(e,t,n){NR(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function FR(e,t){for(var n=NR(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||IR(n,o))}}}function IR(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function LR(e,t){var n={model:t,containsPoint:$t(zR,t),dispatchAction:$t(RR,e),dataZoomInfoMap:null,controller:null},r=n.controller=new sF(e.getZr());return V([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function RR(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function zR(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function BR(e,t,n){var r,i=`type_`,a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,c;return e.each(function(e){var t=e.model,n=t.get(`disabled`,!0)?!1:t.get(`zoomLock`,!0)?`move`:!0;a[i+n]>a[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0),s=q(t.get(`cursorGrab`,!0),s),c=q(t.get(`cursorGrabbing`,!0),c)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:c}}}function VR(e){e.registerUpdateLifecycle(`coordsys:aftercreate`,function(e,t){var n=NR(t),r=n.coordSysRecordMap||=J();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){V(uL(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,LR(t,n.model));(a.dataZoomInfoMap||=J()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i){IR(r,e);return}var s=BR(a,e,t);n.enable(s.controlType,s.opt),aS(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}R();var HR=function(e){O(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),PR(r,t,{pan:U(UR.pan,this),zoom:U(UR.zoom,this),scrollMove:U(UR.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){FR(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(vL),UR={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=GR[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(_F(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:WR(function(e,t,n,r,i,a){var o=GR[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:WR(function(e,t,n,r,i,a){return GR[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function WR(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(_F(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var GR={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function KR(e){CL(e),e.registerComponentModel(MR),e.registerComponentView(HR),VR(e)}R();var qR=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=Qg(gL.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:Z.color.accent10,borderRadius:0,backgroundColor:Z.color.transparent,dataBackground:{lineStyle:{color:Z.color.accent30,width:.5},areaStyle:{color:Z.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:Z.color.accent40,width:.5},areaStyle:{color:Z.color.accent20,opacity:.3}},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:Z.color.neutral00,borderColor:Z.color.accent20},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:Z.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:Z.color.tertiary},brushSelect:!0,brushStyle:{color:Z.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Z.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(gL);R();var JR=uf,YR=1,XR=30,ZR=7,QR=`horizontal`,$R=`vertical`,ez=5,tz=[`line`,`bar`,`candlestick`,`scatter`],nz={easing:`cubicOut`,duration:100,delay:0},rz=function(e){O(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),aS(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){oS(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Ps;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?ZR:0,r=Av(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===QR?{right:r.width-i.x-i.width,top:r.height-XR-a-n,width:i.width,height:XR}:{right:a,top:i.y,width:XR,height:i.height},s=Pv(e.option);V([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=Ov(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===$R&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===QR&&!i?{scaleY:o?1:-1,scaleX:1}:n===QR&&i?{scaleY:o?1:-1,scaleX:-1}:n===$R&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]),c=isNaN(s.x)?0:s.x,l=isNaN(s.y)?0:s.y;e.x=t.x-c,e.y=t.y-l,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new JR({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new JR({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:U(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b){v||(y+=g);return}y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:uc(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new Ps,r=new Um({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new Gm({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){V(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&Wt(tz,e.get(`type`))<0)){var o=r.getComponent(cL(i),a).axis,s=az(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new JR({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new JR({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:YR,fill:Z.color.transparent}})),V([0,1],function(t){var a=o.get(`handleIcon`);!dC[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=mC(a,-1,0,2,2,null,!0);s.attr({cursor:oz(this._orient),draggable:!0,drift:U(this._onDragMove,this,t),ondragend:U(this._onDragEnd,this),onmouseover:U(this._onOverDataInfoTriggerArea,this,!0),onmouseout:U(this._onOverDataInfoTriggerArea,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=dc(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),Ip(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new hf({silent:!0,invisible:!f,style:Tg(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=dc(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new uf({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=mC(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,Z.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new uf({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`grab`,drift:U(this._onActualMoveZoneDrift,this),ondragstart:U(this._onActualMoveZoneDragStart,this),ondragend:U(this._onActualMoveZoneDragEnd,this),onmouseover:U(this._onOverDataInfoTriggerArea,this,!0),onmouseout:U(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[uc(e[0],[0,100],t,!0),uc(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];_F(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:uc(a.minSpan,o,i,!0),a.maxSpan==null?null:uc(a.maxSpan,o,i,!0));var s=this._range,c=this._range=_c([uc(r[0],i,o,!0),uc(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=_c(n.slice()),i=this._size;V([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new uf,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=[``,``];if(t.get(`showDetail`)){var o=t.findRepresentativeAxisProxy(),s=o.getAxisModel().axis.scale;if(o){var c=this._range,l;if(e){var u={start:c[0],end:c[1]},d=mL(t,o);if(d){var f=d.calculateDataWindow(u).percentInverted;u={start:f[0],end:f[1]}}l=o.calculateDataWindow(u)}else l=o.getWindow();a=[iz(t,0,l,s),iz(t,1,l,s)]}}var p=_c(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(e){var t=Uh(n.handles[e].parent,this.group),o=Gh(e===0?`right`:`left`,t),s=this._handleWidth/2+ez,c=Wh([p[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===QR?`middle`:o,align:i===QR?o:`center`,text:a[e]})}},t.prototype._onOverDataInfoTriggerArea=function(e){this._isOverDataInfoTriggerArea=e,this._showDataInfo(e)},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get(`handleLabel`)||{}).show||!1,n=this.dataZoomModel.getModel([`emphasis`,`handleLabel`]).get(`show`)||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr(`invisible`,!r),a[1].attr(`invisible`,!r),i.moveHandle&&this.api[r?`enterEmphasis`:`leaveEmphasis`](i.moveHandle,1)},t.prototype._onActualMoveZoneDrift=function(e,t,n){this.api.getZr().setCursorStyle(`grabbing`),this._onDragMove(`all`,e,t,n)},t.prototype._onActualMoveZoneDragStart=function(e){e.target.attr(`cursor`,`grabbing`),this._showDataInfo(!0)},t.prototype._onActualMoveZoneDragEnd=function(e){e.target.attr(`cursor`,`grab`),this._onDragEnd()},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,kr(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=Wh([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get(`realtime`);this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1),!this.dataZoomModel.get(`realtime`)&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Gr(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();_F(0,a,r,0,o.minSpan==null?null:uc(o.minSpan,i,r,!0),o.maxSpan==null?null:uc(o.maxSpan,i,r,!0)),this._range=_c([uc(a[0],r,i,!0),uc(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(kr(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new JR({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?nz:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=uL(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(vL);function iz(e,t,n,r){var i=e.get(`labelFormatter`),a=e.get(`labelPrecision`);(a==null||a===`auto`)&&(a=n.valuePrecision);var o=n.value[t],s=o==null||isNaN(o)?``:pD(r)||dD(r)?r.getLabel({value:Math.round(o)}):isFinite(a)?hc(o,a,!0):o+``;return en(i)?i(o,s):G(i)?i.replace(`{value}`,s):s}function az(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function oz(e){return e===`vertical`?`ns-resize`:`ew-resize`}function sz(e){e.registerComponentModel(qR),e.registerComponentView(rz),CL(e)}function cz(e){uk(KR),uk(sz)}R();function lz(e,t,n){var r=bt.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function uz(e){return!e.__cursors.get(0)}function dz(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var fz=function(e){O(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=Vo,typeof t==`string`?a=lz(t,n,r):K(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(En(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=dz(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=lz(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new X(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new X(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new X(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}else if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new X(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}for(var l=dz(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;sn(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||bC(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):cn(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=MC(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&V(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(ir),pz=1e5,mz=314159,hz=void 0,gz=1,_z=2;function vz(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function yz(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function bz(e,t,n,r){var i=new fz(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,xz(i),i}function xz(e){e.__cursorStack=[],e.__cursors=J()}function Sz(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function Cz(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,Sz({key:r})))}function wz(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function Tz(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function Ez(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&Dz)||s.__builtin__)&&(!(n&Oz)||!s.__builtin__)&&(!(n&kz)||s!==e.hoverlayer))&&t(s,a,o,i)}}var Dz=1,Oz=2,kz=4,Az=Dz|kz,jz=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=B({},n||{}),this.dpr=n.devicePixelRatio||Vo,this._singleCanvas=i,this.root=e,e.style&&(En(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=bz(a,this,mz,0);c.initContext(),this._insertLayer(c,mz,0,!0),this._domRoot=e}else{this._width=CC(e,0,n),this._height=CC(e,1,n);var l=this._domRoot=yz(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!K(e)?{paintAll:!!e}:e||{},n=q(t.refresh,!0),r=q(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=_z),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return Ez(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},Oz),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=hz,n!==hz&&(!t&&n===_z&&(t=this._i.hoverlayer=this._ensureLayer(pz)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),ZC(i,s,r),c&&(s.style=l)}}i&&(QC(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(pz)},e.prototype.paintOne=function(e,t){XC(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)Ez(this._i,function(e){e.afterBrush&&e.afterBrush()},Az),this._paintHoverList(e);else{var i=this;Ri(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(mz).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),Ez(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},Dz)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return Ez(this._i,function(i){var a=!1;if(wz(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!uz(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}wz(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},Az),ft.wxa&&Ez(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r)if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=uz(e),c=s&&bt.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=_z),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(ZC(o,f,a),f.setPrevPaintRect(p))}else ZC(o,f,a);if(s&&bt.getTime()-c>15){d++;break}}}QC(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=mz,t=0);var i=Tz(this._i,e)[t];return i||(i=bz(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&zt(i,this._layerConfig[e],!0),(n||r&&e!==mz)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&vz(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=Tz(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),Tz(i,t)[n]=e,!r&&!e.virtual)if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);e.painter||=this}},e.prototype.eachLayer=function(e,t){return Ez(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return Ez(this._i,function(n,r){e.call(t,n,r)},Dz)},e.prototype.eachOtherLayer=function(e,t){return Ez(this._i,function(n,r){e.call(t,n,r)},Oz)},e.prototype.getLayers=function(){var e={};return Ez(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}Ez(n._i,function(e){e.__dirty=!1,wz(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},Az);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){Lt(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=Cz(o,f),!s.used))if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1;s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}Ez(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(uz(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(wz(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===hz&&(n._hoverLayerDirty=gz))},Az)},e.prototype.clear=function(){return Ez(this._i,function(e){e.clear(),xz(e)},Dz),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Ez(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?zt(n[e],t,!0):n[e]=t,Ez(this._i,function(e,t){zt(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=CC(i,0,r),t=CC(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,Ez(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(mz).resize(e,t)}return this},e.prototype.clearLayer=function(e){V(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[mz][0].dom;var t=new fz(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;Ez(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];ZC(n,l,a)}QC(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function Mz(e){e.registerPainter(`canvas`,jz)}function Nz(e){if(e==null||!Number.isFinite(e))return`—`;let t=Math.abs(e);return t>=1e9?Pz(e,1e9,`B`):t>=1e6?Pz(e,1e6,`M`):t>=1e3?Pz(e,1e3,`K`):Math.round(e).toLocaleString()}function Pz(e,t,n){let r=e/t,i=Math.abs(r)>=100?0:1;return`${r.toFixed(i)}${n}`}var Fz=`auto`,Iz={speed:1,live:{frameIntervalMs:33,snapshotHz:12},main:{presentationDurationMs:220,chartAppearDurationMs:0,chartUpdateDurationMs:200,easing:`linear`,easingUpdate:`linear`},tail:{enabled:!0,startPercent:.95,durationMs:Fz,durationScale:10,easing:`cubicOut`},daily:{chartAppearDurationMs:Fz,chartUpdateDurationMs:60,easing:Fz,easingUpdate:Fz},bars:{chartAppearDurationMs:Fz,chartUpdateDurationMs:20,easing:Fz,easingUpdate:Fz},donuts:{chartAppearDurationMs:Fz,chartUpdateDurationMs:Fz,easing:Fz,easingUpdate:`linear`,seriesAnimation:!1},heatmap:{popDurationMs:380,settleThreshold:.998,intensityRiseThreshold:.08,whiteThreshold:.88,nearMaxRatio:.985},videoExport:{width:1080,height:864,fps:60,frontloadSettledFrameCount:1,introFadeEnabled:!0,introFadeStartOpacity:.95,introContentStartOpacity:.05,introFadeDurationMs:400,introFadeDelayMs:0,introFadeEasing:`cubicOut`,startHoldDurationMs:100,replayDurationMs:1e4,tailDurationMs:5e3,replayEasing:`cubicInOut`,tailSourceFraction:.55,tailEasing:`cubicOut`,finalHoldDurationMs:5e3,finalFlashDurationMs:1e3,finalFlashDelayMs:200,finalFlashMaxOpacity:.35,displayTweenStartMs:200,displayTweenBaseMs:240,displayTweenLateMs:420,displayTweenLateWindowMs:2200,chartIntroWindowMs:2200,barsChartIntroUpdateDurationMs:320,barsChartUpdateDurationMs:50,barsChartTailUpdateDurationMs:240,donutsChartIntroUpdateDurationMs:360,donutsChartUpdateDurationMs:50,donutsChartTailUpdateDurationMs:240,supersampleScale:2,captureFormat:`png`,jpegQuality:92,crf:5,encoderPreset:`veryfast`}},Lz={animationDuration:750,animationDurationUpdate:220,animationEasing:`cubicOut`,animationEasingUpdate:`cubicOut`},Rz={show:!0,animationDuration:250,animationDurationUpdate:220,animationDelay:250,animationDelayUpdate:180,animationEasing:`cubicOut`,animationEasingUpdate:`cubicOut`},zz={...Lz,animationDurationUpdate:200,animationDelayUpdate:0,animationEasingUpdate:`cubicOut`},Bz={animationDuration:700,animationDurationUpdate:220,animationDelay:250,animationDelayUpdate:140,animationEasing:`cubicOut`,animationEasingUpdate:`cubicOut`},Vz={...Rz,animationDelay:950,animationDelayUpdate:360};function Hz(e){return Number.isFinite(e)&&e>0?e:1}function Uz(e){return Math.max(0,Math.round(e/Hz(Iz.speed)))}function Wz(e,t){return e===`auto`?Uz(t):e}function Gz(e,t){return e===`auto`?t:e}function Kz(e){return{animation:!0,animationDuration:Wz(e.chartAppearDurationMs,Iz.main.chartAppearDurationMs),animationDurationUpdate:Wz(e.chartUpdateDurationMs,Iz.main.chartUpdateDurationMs),animationEasing:Gz(e.easing,Iz.main.easing),animationEasingUpdate:Gz(e.easingUpdate,Iz.main.easingUpdate)}}var qz=Uz(Iz.main.presentationDurationMs);function Jz(e=0,t=!1){let n=qz,r=Iz.tail;if(!t||!r?.enabled)return n;let i=Math.min(Math.max(r.startPercent??.9,0),.999),a=Math.min(Math.max(e||0,0),1);if(a<=i)return n;let o=(a-i)/Math.max(1-i,.001),s=r.durationMs===`auto`?Math.round(n*Math.max(r.durationScale||1,1)):r.durationMs;return Math.round(n+(s-n)*tB(o))}function Yz(e=0,t=!1){let n=Iz.tail;if(!t||!n?.enabled)return`linear`;let r=Math.min(Math.max(n.startPercent??.9,0),.999);return Math.min(Math.max(e||0,0),1)<=r?`linear`:n.easing||`cubicOut`}function Xz(e=0,t=!1){let n=Iz.tail;if(!t||!n?.enabled)return!1;let r=Math.min(Math.max(n.startPercent??.9,0),.999);return Math.min(Math.max(e||0,0),1)>r}Kz({chartAppearDurationMs:Fz,chartUpdateDurationMs:Fz,easing:Fz,easingUpdate:Fz});var Zz=Kz(Iz.daily),Qz=Kz(Iz.bars),$z=Kz(Iz.donuts),eB=Iz.donuts.seriesAnimation;function tB(e){return 1-(1-Math.min(Math.max(e,0),1))**3}function nB(e){return(Array.isArray(e?.data)?e.data:Array.isArray(e)?e:[]).slice().sort((e,t)=>String(e?.date||``).localeCompare(String(t?.date||``)))}function rB(e,t=`model`){return t===`family`?e?.by_family||{}:t===`repo`?e?.by_repo||{}:e?.by_model||{}}function iB(e,t=`tokens`){return e?t===`elapsed_seconds`?e.elapsed_seconds||0:t===`cost`?e.cost||0:e.tokens||0:0}function aB(e,{split:t=`model`,metric:n=`tokens`,dates:r=null}={}){let i=nB(e);if(!i.length)return{dates:[],groups:[],series:[],dayTotals:[]};let a=r||i.map(e=>e.date),o=new Map(i.map(e=>[e.date,e])),s=[],c=new Set;for(let e of a){let r=rB(o.get(e),t);for(let[e,t]of Object.entries(r))c.has(e)||iB(t,n)<=0||(c.add(e),s.push(e))}let l=s.map(e=>({key:e,label:e,data:a.map(r=>iB(rB(o.get(r),t)[e],n))}));return{dates:a,groups:s,series:l,dayTotals:a.map((e,t)=>l.reduce((e,n)=>e+(n.data[t]||0),0))}}function oB(e,t,n){return e+(t-e)*n}function $(e){return Number.isFinite(e)?e:0}function sB(e,t){return Array.isArray(e?.data)?e.data:Array.isArray(e)?e:e?.data?.[t]||e?.data?.total||[]}function cB(e,t){return t?.length?e===`d7`?t.slice(-7):e===`d30`?t.slice(-30):t:[]}function lB(e,t,n){return e.map(e=>({key:e?.[t]||``,label:e?.[n]||``,tokens:$(e?.tokens)})).filter(e=>e.key)}function uB(e,t){let n=nB(e);if(!n.length)return{dates:[],series:[]};let r=cB(t,n.map(e=>e.date)),{series:i}=aB(e,{split:`model`,metric:`tokens`,dates:r});return{dates:r,series:i}}function dB(e,t){let n=nB(e);if(!n.length)return[];let r=new Set(cB(t,n.map(e=>e.date)));return n.filter(e=>r.has(e.date))}function fB(e,t){let n=dB(e,t);return{tokens:n.reduce((e,t)=>e+$(t?.tokens),0),elapsed:n.reduce((e,t)=>e+$(t?.elapsed_seconds),0),cost:n.reduce((e,t)=>e+$(t?.cost),0),days:n.length||1}}function pB(e,t,n){let r={};for(let[i,a]of Object.entries(e||{})){r[i]={};for(let e of n)r[i][e]=$(a?.[e])*t}return r}function mB(e,t){return t>=.999?e:{...e,tokens:$(e?.tokens)*t,elapsed_seconds:$(e?.elapsed_seconds)*t,cost:$(e?.cost)*t,sessions:$(e?.sessions)*t,by_model:pB(e?.by_model,t,[`tokens`,`cost`,`elapsed_seconds`]),by_family:pB(e?.by_family,t,[`tokens`,`cost`,`elapsed_seconds`,`sessions`]),by_repo:pB(e?.by_repo,t,[`tokens`,`cost`,`elapsed_seconds`,`sessions`])}}function hB(e,t){let n=nB(e);if(!n.length)return[];let r=n.length-1,i=Math.max(0,Math.min(r,Number.isFinite(t)?t:r)),a=Math.floor(i),o=Math.min(r,Math.ceil(i)),s=i-a;return n.slice(0,o+1).map((e,t)=>t<=a?e:mB(e,s))}function gB(e,t,n){let r=new Map;for(let i of e)for(let[e,a]of Object.entries(i?.[t]||{}))r.has(e)||r.set(e,{key:e,label:e,[n]:e,tokens:0}),r.get(e).tokens+=$(a?.tokens);return[...r.values()].sort((e,t)=>t.tokens-e.tokens)}function _B({daily:e,range:t,cursor:n,fallback:r}){let i=hB(e,n),a=t===`d7`?i.slice(-7):t===`d30`?i.slice(-30):i;if(!a.length)return r;let o={...r?.stats||{},tokens:a.reduce((e,t)=>e+$(t?.tokens),0),elapsed:a.reduce((e,t)=>e+$(t?.elapsed_seconds),0),cost:a.reduce((e,t)=>e+$(t?.cost),0),sessions:a.reduce((e,t)=>e+$(t?.sessions),0),days:a.length||1};return{...r||{},ready:!0,stats:o,topRepos:gB(a,`by_repo`,`repo_label`).slice(0,6),topFamilies:gB(a,`by_family`,`family`),topModels:gB(a,`by_model`,`model_name`).slice(0,6)}}function vB(e){let t=e?.data&&typeof e.data==`object`?e.data:{},n={};for(let[e,r]of Object.entries(t))n[e]={tokens:$(r?.tokens),elapsed:$(r?.elapsed),cost:$(r?.cost)};return n}function yB({overview:e,heatmap:t,daily:n,families:r,repos:i,models:a,range:o}){let s=e?.data;if(!s)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:{}};let c=s?.[o]||s?.total||{},l=c.coverage||{},u=$(l.thread_rows??l.total),d=$(l.root_sessions??c.total_sessions),f=$(l.priced),p=$(l.priced_exact),m=$(l.priced_fallback),h=$(l.unpriced??Math.max(u-f,0)),g=c.date_range,_=g?.from!=null&&g?.to!=null?Math.max(1,Math.ceil((g.to-g.from)/86400)):1,v=fB(n,o),y=o===`d7`||o===`d30`;return{ready:!0,stats:{tokens:y?v.tokens:$(c.total_tokens),elapsed:y?v.elapsed:$(c.total_elapsed_seconds),cost:y?v.cost:$(c.total_cost),sessions:d,enriched:$(l.enriched),priced:f,exactPriced:p,fallbackPriced:m,unpriced:h,days:y?v.days:_},topRepos:lB(sB(i,o).slice(0,6),`repo_label`,`repo_label`),topFamilies:lB(sB(r,o),`family`,`family`),topModels:lB(sB(a,o).slice(0,6),`model_name`,`model_name`),daily:uB(n,o),heatmap:vB(t)}}function bB(e,t,n){let r=new Map((e||[]).map(e=>[e.key,e])),i=new Map((t||[]).map(e=>[e.key,e])),a=[],o=new Set;for(let e of t||[])o.has(e.key)||(o.add(e.key),a.push(e.key));for(let t of e||[])o.has(t.key)||(o.add(t.key),a.push(t.key));let s=[];for(let e of a){let t=r.get(e),a=i.get(e),o=a?.label||t?.label||e,c=oB($(t?.tokens),$(a?.tokens),n);c<=.001&&!a||s.push({key:e,label:o,tokens:c})}return s}function xB(e,t,n){let r=(t?.dates?.length?t.dates:e?.dates||[]).slice(),i=new Map((e?.series||[]).map(e=>[e.key,e])),a=new Map((t?.series||[]).map(e=>[e.key,e])),o=new Set([...i.keys(),...a.keys()]),s=[];for(let c of o){let o=i.get(c),l=a.get(c),u=new Map((o?.data||[]).map((t,n)=>[e?.dates?.[n],t])),d=new Map((l?.data||[]).map((e,n)=>[t?.dates?.[n],e])),f=r.map(e=>oB($(u.get(e)),$(d.get(e)),n));f.every(e=>e<=.001)&&!l||s.push({key:c,label:l?.label||o?.label||c,data:f})}return{dates:r,series:s}}function SB(e){return{dates:e.dates,series:(e.series||[]).map(e=>({key:e.key,label:e.label,data:e.data.map(()=>0)}))}}function CB(e,t,n){let r=new Set([...Object.keys(e||{}),...Object.keys(t||{})]),i={};for(let a of r){let r=e?.[a],o=t?.[a];i[a]={tokens:oB($(r?.tokens),$(o?.tokens),n),elapsed:oB($(r?.elapsed),$(o?.elapsed),n),cost:oB($(r?.cost),$(o?.cost),n)}}return i}function wB(e,t,n){return{ready:t.ready,stats:{tokens:oB($(e?.stats?.tokens),$(t?.stats?.tokens),n),elapsed:oB($(e?.stats?.elapsed),$(t?.stats?.elapsed),n),cost:oB($(e?.stats?.cost),$(t?.stats?.cost),n),sessions:oB($(e?.stats?.sessions),$(t?.stats?.sessions),n),enriched:oB($(e?.stats?.enriched),$(t?.stats?.enriched),n),priced:oB($(e?.stats?.priced),$(t?.stats?.priced),n),exactPriced:oB($(e?.stats?.exactPriced),$(t?.stats?.exactPriced),n),fallbackPriced:oB($(e?.stats?.fallbackPriced),$(t?.stats?.fallbackPriced),n),unpriced:oB($(e?.stats?.unpriced),$(t?.stats?.unpriced),n),days:$(t?.stats?.days)||1},topRepos:bB(e?.topRepos,t?.topRepos,n),topFamilies:bB(e?.topFamilies,t?.topFamilies,n),topModels:bB(e?.topModels,t?.topModels,n),daily:xB(e?.daily,t?.daily,n),heatmap:CB(e?.heatmap,t?.heatmap,n)}}function TB(e,{duration:t=qz,onSettledChange:n,ingestProgress:r=0,isIngestActive:i=!1,clockNowMs:a=null}={}){let o=(0,b.useMemo)(()=>yB(e),[e.overview,e.heatmap,e.daily,e.families,e.repos,e.models,e.range]),[s,c]=(0,b.useState)(o),l=(0,b.useRef)(o),u=(0,b.useRef)(o),d=(0,b.useRef)(0),f=(0,b.useRef)(0),p=(0,b.useRef)(s),m=(0,b.useRef)(!0),h=(0,b.useRef)(n),g=(0,b.useRef)(0),_=(0,b.useRef)(o),v=(0,b.useRef)(o),y=(0,b.useRef)(`smooth`);(0,b.useEffect)(()=>{h.current=n},[n]);let x=e=>{m.current!==e&&(m.current=e,h.current?.(e))};(0,b.useEffect)(()=>{p.current=s},[s]);let S=e=>{l.current=e,u.current=e,p.current=e,c(e),x(!0),f.current=0,g.current=0,_.current=e,v.current=e},C=e=>{u.current=e,x(!1);let t=Xz(r,i)?`tail`:`smooth`;y.current!==t&&(y.current=t,g.current=0),t===`tail`&&(_.current=l.current,v.current=e,g.current=0)},w=(e,n)=>{e<f.current&&(f.current=0,g.current=0,_.current=l.current,v.current=n),f.current||=e;let a=Math.max(1,e-f.current);f.current=e;let o=Jz(r,i)||t,s=l.current,u=Xz(r,i)?`tail`:`smooth`;y.current!==u&&(y.current=u,g.current=0);let d,m;if(u===`tail`){v.current!==n&&(_.current=s,v.current=n,g.current=e),g.current||=e;let t=Math.max(0,e-g.current),a=Math.min(1,t/Math.max(o,1)),c=EB(a,Yz(r,i));d=wB(_.current,v.current,c),m=a>=1||DB(d,n)<=.002}else{let e=EB(1-Math.exp(-a/Math.max(o,1)),Yz(r,i));d=wB(s,n,e),m=e>=.999||DB(d,n)<=.002}return l.current=d,m?(l.current=n,p.current=n,c(n),x(!0),g.current=0,_.current=n,v.current=n,n):(p.current=d,c(d),d)};return(0,b.useLayoutEffect)(()=>{if(a!=null){if(t<=0){S(o);return}C(o),w(a,o)}},[o,t,r,i,a]),(0,b.useEffect)(()=>{if(a!=null)return;if(u.current=o,t<=0){S(o);return}if(C(o),d.current)return;let e=t=>{if(w(t,u.current)===u.current&&m.current){d.current=0,f.current=0;return}d.current=requestAnimationFrame(e)};d.current=requestAnimationFrame(e)},[o,t,r,i,a]),(0,b.useEffect)(()=>()=>{d.current&&cancelAnimationFrame(d.current),d.current=0,f.current=0},[]),s}function EB(e,t){let n=Math.min(Math.max(e,0),1);return t===`cubicOut`?1-(1-n)**3:n}function DB(e,t){if(!e||!t)return 0;let n=Math.max(Math.abs((e.stats?.tokens||0)-(t.stats?.tokens||0)),Math.abs((e.stats?.elapsed||0)-(t.stats?.elapsed||0)),Math.abs((e.stats?.cost||0)-(t.stats?.cost||0)),Math.abs((e.stats?.sessions||0)-(t.stats?.sessions||0))),r=OB(e.topRepos,t.topRepos),i=OB(e.topFamilies,t.topFamilies),a=OB(e.topModels,t.topModels),o=kB(e.daily,t.daily);return Math.max(n,r,i,a,o)/Math.max(1,t.stats?.tokens||1)}function OB(e=[],t=[]){let n=new Map(e.map(e=>[e.key,e.tokens||0])),r=0;for(let e of t)r=Math.max(r,Math.abs((n.get(e.key)||0)-(e.tokens||0)));return r}function kB(e,t){let n=new Map((e?.series||[]).map(e=>[e.key,e])),r=0;for(let e of t?.series||[]){let t=n.get(e.key);for(let n=0;n<e.data.length;n+=1)r=Math.max(r,Math.abs((t?.data?.[n]||0)-(e.data[n]||0)))}return r}function AB(e,t){let n=new Map((e?.series||[]).map(e=>[e.key,e])),r=0;for(let e of t?.series||[]){let t=n.get(e.key);for(let n=0;n<(e.data?.length||0);n+=1)r=Math.max(r,Math.abs((t?.data?.[n]||0)-(e.data[n]||0)))}return r}function jB(e){let t=0;for(let n of e?.series||[])for(let e of n.data||[])t=Math.max(t,Math.abs(e||0));return t}function MB(e,t,n=``){let[r,i]=(0,b.useState)(e),a=(0,b.useRef)(e),o=(0,b.useRef)(e),s=(0,b.useRef)(0),c=(0,b.useRef)(0),l=(0,b.useRef)(n),u=(0,b.useRef)(t),d=t&&l.current!==n;return(0,b.useLayoutEffect)(()=>{o.current=e;let r=!u.current&&t;if(u.current=t,!t){s.current&&cancelAnimationFrame(s.current),s.current=0,c.current=0,a.current=e,l.current=n;return}if(l.current!==n){s.current&&cancelAnimationFrame(s.current),s.current=0,c.current=0;let t=SB(e);a.current=t,i(t),l.current=n;return}r&&(a.current=e,i(e))},[e,t,n]),(0,b.useEffect)(()=>{if(o.current=e,!t)return;let n=qz,r=e=>{let t=o.current;c.current||=e;let l=Math.max(1,e-c.current);c.current=e;let u=1-Math.exp(-l/Math.max(n,1)),d=xB(a.current,t,u);a.current=d,i(d);let f=Math.max(1,jB(t));if(AB(d,t)<=f*.002||u>=.999){a.current=t,i(t),s.current=0,c.current=0;return}s.current=requestAnimationFrame(r)};s.current||=(c.current=0,requestAnimationFrame(r))},[e,t,n]),(0,b.useEffect)(()=>()=>{s.current&&cancelAnimationFrame(s.current),s.current=0,c.current=0},[]),t?d?SB(e):r:e}function NB(e,t){if(!e||!t)return null;let n=Date.parse(`${e}T00:00:00Z`),r=Date.parse(`${t}T00:00:00Z`);return!Number.isFinite(n)||!Number.isFinite(r)?null:Math.round((r-n)/864e5)}function PB(){if(typeof window>`u`)return!1;try{return new URLSearchParams(window.location.search).has(`debugLive`)||window.localStorage?.getItem(`codexmeter.debugLive`)===`1`||window.__CODEXMETER_DEBUG_LIVE__===!0}catch{return!1}}function FB(e,t=null){let n=(Array.isArray(e?.dates)&&Array.isArray(e?.series)?e.dates.map((t,n)=>({date:t,tokens:e.series.reduce((e,t)=>e+(t?.data?.[n]||0),0)})):Array.isArray(e?.data)?e.data:Array.isArray(e)?e:Object.entries(e||{}).map(([e,t])=>({date:e,...t}))).filter(e=>e?.date).sort((e,t)=>String(e.date).localeCompare(String(t.date))),r=n.filter(e=>(e.tokens||0)>0||(e.sessions||0)>0),i=n[0]?.date||null,a=n[n.length-1]?.date||null,o=r[r.length-1]?.date||null;return{days:n.length,nonzeroDays:r.length,first:i,last:a,lastNonzero:o,currentDateBucket:t,overreachDays:t&&o?Math.max(0,NB(t,o)||0):0,totalTokens:Math.round(n.reduce((e,t)=>e+(t.tokens||0),0))}}function IB(e,t=null){let n=Object.entries(e||{}).map(([e,t])=>({date:e,tokens:t?.tokens||0,sessions:t?.sessions||0,elapsed:t?.elapsed||0,cost:t?.cost||0})).filter(e=>e.date).sort((e,t)=>String(e.date).localeCompare(String(t.date))),r=n.filter(e=>e.tokens>0||e.sessions>0||e.elapsed>0||e.cost>0),i=n[0]?.date||null,a=n[n.length-1]?.date||null,o=r[r.length-1]?.date||null;return{days:n.length,nonzeroDays:r.length,first:i,last:a,lastNonzero:o,currentDateBucket:t,overreachDays:t&&o?Math.max(0,NB(t,o)||0):0,totalTokens:Math.round(n.reduce((e,t)=>e+t.tokens,0))}}function LB(e){return{seq:e?.seq,phase:e?.progress?.phase,percent:Number(((e?.progress?.percent||0)*100).toFixed(1)),enriched:e?.progress?.enriched,needs:e?.progress?.needs_enrichment,complete:!!e?.progress?.complete,daily:FB(e?.data?.daily||{},e?.progress?.current_date_bucket||null)}}function RB(e,t=null){return{seq:e?.seq,ingestId:e?.ingest_id,daily:FB(e?.daily||{},t?.current_date_bucket||null)}}function zB(e,t){PB()&&console.debug(`[codexmeter:live] ${e}`,t)}uk([FN,iP,zI,nR,aR,jR,Mz]);function BB(e){return Nz(e)}function VB(e){return e==null?`—`:e>=1e3?`$`+(e/1e3).toFixed(1)+`K`:`$`+e.toFixed(2)}function HB(e){return e?(e/3600).toFixed(1)+`h`:`0h`}function UB(e,t=16){if(!e)return``;let n=String(e).split(/([-/])/).filter(Boolean),r=[``];for(let e of n){let n=r[r.length-1];if(!n.length||(n+e).length<=t){r[r.length-1]=n+e;continue}if(r.length===2){r[1]+=e;break}r.push(e)}return r.join(`
28
+ `)}function WB(e){let t=Math.max(1,e||1),n=300/t,r=Math.max(1.25,Math.min(24,n*(t>80?.68:t>45?.78:.88)));return{barWidth:r,barMaxWidth:Math.max(4,Math.min(28,r*1.2))}}function GB(e){let{dates:t,series:n}=aB(e,{split:`model`,metric:`tokens`});return{dates:t,series:n}}function KB(e){return Math.max(0,Math.min(1,e))}function qB(e,t,n=0){if(!e?.length)return 0;if(!t)return e.length-1;let r=JB(e,t),i=e.length-1,a=KB(((n||0)-.08)/.92)**.82,o=r+(i-r)*a;return Math.max(r,Math.min(i,Math.floor(o+32)))}function JB(e,t){return e?.length?t?Math.min(e.length-1,6):e.length-1:0}function YB(e,t,n,r){if(!r)return e;let i=Math.max(0,(n||1)-1),a=Math.max(0,Math.min(i,Number.isFinite(t)?t:0));return a>=i-.01?i:Math.max(e,Math.min(i,a+1.25))}function XB(e,t){if(!e?.dates?.length)return{dates:[],series:[]};let n=e.dates.length-1,r=Math.max(0,Math.min(n,t||0)),i=Math.floor(r),a=Math.min(n,Math.ceil(r)),o=r-i,s=Math.max(1,a+1),c=e.dates.slice(0,s);return{dates:c,series:(e.series||[]).map(e=>({...e,data:c.map((t,n)=>{let r=e.data?.[n]||0;return n<=i?r:r*o})}))}}function ZB(e,t,n){if(!e?.length||!t?.length)return Math.max(0,Math.min(Math.max((t?.length||1)-1,0),n||0));let r=e.length-1,i=Math.max(0,Math.min(r,Number.isFinite(n)?n:r)),a=Math.floor(i),o=Math.min(r,Math.ceil(i)),s=i-a,c=new Map(t.map((e,t)=>[e,t])),l=c.get(e[a]);if(l==null)return Math.max(0,Math.min(t.length-1,i));if(o===a)return l;let u=c.get(e[o]);return u==null?Math.max(0,Math.min(t.length-1,l+s)):l+(u-l)*s}function QB(e,t){return!e||!t?e||{}:Object.fromEntries(Object.entries(e).filter(([e])=>String(e)<=String(t)))}function $B(e,t){if(!t?.dates?.length)return e||{dates:[],series:[]};if(!e?.dates?.length)return t;let n=[...new Set([...e.dates,...t.dates])].sort(),r=new Map(e.dates.map((e,t)=>[e,t])),i=new Map(t.dates.map((e,t)=>[e,t])),a=[],o=new Map,s=new Map;for(let t of e.series||[])o.set(t.key,t);for(let e of t.series||[])s.set(e.key,e),a.push(e.key);for(let t of e.series||[])s.has(t.key)||a.push(t.key);return{dates:n,series:a.map(e=>{let t=s.get(e),a=o.get(e);return{key:e,label:t?.label||a?.label||e,data:n.map(e=>{let n=i.get(e);if(t&&n!==void 0)return t.data?.[n]||0;let o=r.get(e);return a&&o!==void 0&&a.data?.[o]||0})}})}}function eV(e,{ingestProgress:t=0,isIngestActive:n=!1}={}){let r=(0,b.useRef)({dates:[],series:[]}),i=(0,b.useMemo)(()=>n?(r.current=$B(r.current,e),r.current):(r.current=e||{dates:[],series:[]},r.current),[e,n]),a=(0,b.useMemo)(()=>qB(i?.dates||[],n,t),[i?.dates,t,n]),[o,s]=(0,b.useState)(()=>JB(i?.dates||[],n)),c=YB(a,o,i?.dates?.length||0,n),l=!!(n&&(i?.dates?.length||0)>0&&o>=i.dates.length-1-.01),[u,d]=(0,b.useState)(0),f=(0,b.useRef)(o),p=(0,b.useRef)(0),m=(0,b.useRef)(i?.dates||[]),h=(0,b.useRef)(0),g=(0,b.useRef)(0);f.current=o;let _=e=>{let t=Math.round(Math.max(0,e||0)*10)/10;Math.abs(p.current-t)<.05||(p.current=t,d(t))};return(0,b.useLayoutEffect)(()=>{let e=i?.dates||[],t=m.current||[];if(t===e||(m.current=e,!n))return;let r=ZB(t,e,f.current);Math.abs(r-f.current)<.001||(f.current=r,s(r))},[i?.dates,n]),(0,b.useEffect)(()=>{let e=i?.dates?.length||0;if(!e){_(0);return}if(!n){f.current=c,s(c),_(0);return}cancelAnimationFrame(h.current),h.current=0,g.current=0;let t=r=>{g.current||=r;let i=Math.max(1,r-g.current);g.current=r;let o=f.current,c=YB(a,o,e,n),l=c-o;if(Math.abs(l)<=.01){f.current=c,s(c),_(0),h.current=0;return}let u=Math.min(4.2,Math.max(.65,1.15+Math.max(0,Math.abs(l)-8)*.11));_(u);let d=o+Math.sign(l)*Math.min(Math.abs(l),u*i/1e3);f.current=d,s(d),h.current=requestAnimationFrame(t)};return h.current=requestAnimationFrame(t),()=>{cancelAnimationFrame(h.current),h.current=0}},[i?.dates?.length,a,n]),(0,b.useEffect)(()=>()=>{cancelAnimationFrame(h.current),h.current=0},[]),{daily:(0,b.useMemo)(()=>XB(i,o),[i,o]),cursor:o,rawTargetIndex:a,sourceDaily:i,speedDaysPerSecond:u,targetIndex:c,waitingForDailyData:l}}function tV(e,t,n=null,r=!1){if(!t)return{startValue:0,endValue:0};if(r&&Number.isFinite(n)){let r=t;e===`d7`&&(r=7),e===`d30`&&(r=30);let i=e===`d30`?29:6,a=Math.max(t-1,i),o=Math.max(i,Math.min(a,n)),s=e===`total`?Math.max(7,o+1):Math.max(1,Math.min(r,o+1));return{startValue:e===`total`?0:Math.max(0,o-s+1),endValue:o}}let i=t;return e===`d7`&&(i=7),e===`d30`&&(i=30),{startValue:t-Math.max(1,Math.min(i,t)),endValue:t-1}}function nV(e,t,n,r,i){if(cancelAnimationFrame(r.current),r.current=0,Math.abs(e.startValue-t.startValue)<.01&&Math.abs(e.endValue-t.endValue)<.01)return;let a=0,o=s=>{a||=s;let c=Math.min(1,(s-a)/i),l=1-(1-c)**3;n({startValue:e.startValue+(t.startValue-e.startValue)*l,endValue:e.endValue+(t.endValue-e.endValue)*l}),r.current=c<1?requestAnimationFrame(o):0};return r.current=requestAnimationFrame(o),()=>{cancelAnimationFrame(r.current),r.current=0}}function rV(e,t,{hideLabels:n=!1}={}){return e.map(e=>{let r=t(e.key);return{name:e.label,value:e.tokens,itemStyle:{color:r},label:{show:!n,color:r},labelLine:{show:!n}}})}function iV(e,t){return e.map(e=>({...e,tokens:Math.max(0,(e.tokens||0)*t)}))}function aV(e,t){let n=new Map((t||[]).map(e=>[e.key,e])),r=[],i=new Set;for(let t of e||[]){if(!t?.key||i.has(t.key))continue;i.add(t.key);let e=n.get(t.key);r.push({key:t.key,label:e?.label||t.label,tokens:Math.max(0,e?.tokens??t.tokens??0)})}for(let e of t||[])!e?.key||i.has(e.key)||(i.add(e.key),r.push({key:e.key,label:e.label,tokens:Math.max(0,e.tokens||0)}));return r}function oV(e){return e.length===1?e=>{let t=e.rect||{x:0,y:0,width:0,height:0},n=e.labelRect||{width:0,height:0};return{x:t.x+t.width+14,y:t.y+t.height/2-n.height/2,align:`left`,verticalAlign:`middle`,moveOverlap:`shiftY`,hideOverlap:!1}}:null}function sV({daily:e,fullDaily:t=null,elasticDaily:n=null,range:r=`total`,isIngestActive:i=!1,currentDateBucket:a=null,exportMode:o=!1,exportPlayback:s=!1,onDayClick:c}){let l=t||e;if(!l?.dates?.length)return(0,z.jsxs)(`div`,{className:`overview-daily-spark overview-daily-spark-empty`,children:[(0,z.jsx)(`span`,{className:`overview-daily-spark-title`,children:`Daily Usage`}),(0,z.jsx)(`span`,{className:`overview-daily-spark-empty-text`,children:`No daily data`})]});let u=n||{daily:l,cursor:l.dates.length-1,rawTargetIndex:l.dates.length-1,sourceDaily:l,targetIndex:l.dates.length-1},d=u.daily,f=!o&&!s&&i,p=(0,b.useMemo)(()=>tV(r,d.dates.length,u.cursor,f),[r,d.dates.length,u.cursor,f]),[m,h]=(0,b.useState)(()=>tV(r,d.dates.length)),g=(0,b.useRef)(p),_=(0,b.useRef)(f),v=(0,b.useRef)(m),y=(0,b.useRef)(0),x=MB(d,f,`overview-daily-spark`),S=f?p:_.current?g.current:m;v.current=S,(0,b.useEffect)(()=>{if(f){g.current=p,_.current=!0;return}let e=tV(r,d.dates.length);return _.current&&=(v.current=g.current,h(g.current),!1),nV(v.current,e,h,y,220)},[f,p,r,d.dates.length]),(0,b.useEffect)(()=>()=>{cancelAnimationFrame(y.current),y.current=0},[]);let{startValue:C,endValue:w}=S,T=Math.max(1,w-C+1||d.dates.length),{barWidth:E,barMaxWidth:D}=WB(T),O=f,k=Math.max(-.5,C-.5),A=Math.max(k+1,w+.5),j=e=>d.dates[Math.max(0,Math.min(d.dates.length-1,Math.round(e)))],ee=(0,b.useRef)(``);(0,b.useEffect)(()=>{let e=FB(l,a),t=FB(d,a),n=Math.round(C),r=Math.round(w),i=[a,u.targetIndex,e.days,e.lastNonzero,e.overreachDays,t.days,t.lastNonzero,t.overreachDays,n,r].join(`|`);i!==ee.current&&(ee.current=i,zB(`dailySpark.present`,{currentDateBucket:a,cursor:Number(u.cursor.toFixed(2)),targetIndex:u.targetIndex,rawTargetIndex:u.rawTargetIndex,lagDays:Number((u.targetIndex-u.cursor).toFixed(2)),source:e,presentationSource:FB(u.sourceDaily,a),display:t,zoom:{startValue:Number(C.toFixed(2)),endValue:Number(w.toFixed(2)),visibleDateCount:Number(T.toFixed(2))}}))},[a,u.cursor,u.targetIndex,l,d,C,w,T]);let M={backgroundColor:`transparent`,...Zz,tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},appendToBody:!0,confine:!0,formatter:e=>{if(!e?.length)return``;let t=`<b>${j(Array.isArray(e[0].data)?e[0].data[0]:e[0].dataIndex)}</b><br/>`,n=0,r=[...e].filter(e=>(Array.isArray(e.value)?e.value[1]:e.value)>0).sort((e,t)=>((Array.isArray(t.value)?t.value[1]:t.value)||0)-((Array.isArray(e.value)?e.value[1]:e.value)||0));for(let e of r){let r=Array.isArray(e.value)?e.value[1]:e.value;t+=`${e.marker} ${e.seriesName}: ${BB(r)}<br/>`,n+=r}return t+=`<b>Total: ${BB(n)}</b>`,t}},grid:{left:4,right:4,top:4,bottom:4},xAxis:O?{type:`value`,min:k,max:A,show:!1}:{type:`category`,data:x.dates||d.dates,min:Math.max(0,Math.floor(C)),max:Math.max(0,Math.floor(w)),show:!1},yAxis:{type:`value`,show:!1,scale:!1,min:0},series:x.series.map(e=>({id:`overview-daily-${e.key}`,name:e.label,type:`bar`,stack:`total`,data:O?e.data.map((e,t)=>[t,e]):e.data,itemStyle:{color:Ue(e.key)},...E?{barWidth:E}:{},barMaxWidth:D}))},N=c&&!o&&!s?{click:e=>{let t=Array.isArray(e?.data)?e.data[0]:e?.dataIndex,n=Number.isFinite(t)?j(t):e?.axisValue||e?.name;n&&c(n)}}:void 0;return(0,z.jsxs)(`div`,{className:`overview-daily-spark`,children:[(0,z.jsx)(`span`,{className:`overview-daily-spark-title`,children:`Daily Usage`}),(0,z.jsx)(`div`,{className:`overview-daily-spark-chart`,style:N?{cursor:`pointer`}:void 0,children:(0,z.jsx)(Ae,{echarts:VA,option:M,style:{width:`100%`,height:`100%`},theme:`dark`,lazyUpdate:!1,notMerge:o,replaceMerge:[`series`],onEvents:N})})]})}var cV=[{key:`tokens`,label:`Tokens`,fmt:BB},{key:`elapsed`,label:`Time`,fmt:e=>HB(e)},{key:`cost`,label:`Cost`,fmt:VB}],lV=Iz.heatmap?.popDurationMs??380,uV=Iz.heatmap?.settleThreshold??.998;function dV({heatmapData:e,isIngestActive:t=!1,ingestProgress:n=0,currentDateBucket:r=null,onDayClick:i,interactive:a=!0}){let[o,s]=(0,b.useState)(`tokens`),[c,l]=(0,b.useState)(new Set),[u,d]=(0,b.useState)(new Set),f=(0,b.useRef)({}),p=(0,b.useRef)(1),m=(0,b.useRef)(``),h=e||{};(0,b.useEffect)(()=>{let e=IB(h,r),t=[e.currentDateBucket,e.nonzeroDays,e.lastNonzero,e.overreachDays,e.totalTokens].join(`|`);t!==m.current&&(m.current=t,zB(`heatmap.present`,e))},[h,r]);let g=new Date,_=[],v=[];for(let e=364;e>=0;e--){let t=new Date(g);t.setDate(t.getDate()-e);let n=t.toLocaleDateString(`en-CA`),r=h[n]&&h[n][o]||0;_.push({key:n,val:r,date:t}),t.getDate()===1&&v.push({idx:364-e,label:t.toLocaleDateString(`en-US`,{month:`short`})})}let y=Math.max(..._.map(e=>e.val),1);(0,b.useEffect)(()=>{if(!t||n>=uV){f.current={},p.current=1;return}let e=new Date,r=f.current,i=p.current,a=new Set,s=new Set,c=Math.max(.05,Math.min(i,y)*.002),u=Iz.heatmap?.intensityRiseThreshold??.08,m=Iz.heatmap?.whiteThreshold??.88,g=Iz.heatmap?.nearMaxRatio??.985;for(let t=364;t>=0;t--){let n=new Date(e);n.setDate(n.getDate()-t);let l=n.toLocaleDateString(`en-CA`),d=h[l]&&h[l][o]||0,f=r[l]??0,p=i>0?f/i:0,_=y>0?d/y:0,v=y>i+c&&d>=y*g&&(f<y*g||f===void 0),b=_>=m&&p<m,x=d>f+c,S=_>p+u;v||b||x||S?a.add(l):(d<f-c||d>0&&i>0&&y>i+c&&p>=.85&&_<p-.02)&&s.add(l),r[l]=d}if(p.current=y,a.size>0||s.size>0){l(a),d(s);let e=setTimeout(()=>{l(new Set),d(new Set)},lV);return()=>clearTimeout(e)}},[h,o,t,n,y]);function x(e){if(e===0)return`var(--bg-elevated)`;let t=e/y,n=1/4;return t<n?`rgba(99, 102, 241, 0.14)`:t<2*n?`rgba(99, 102, 241, 0.38)`:t<3*n?`rgba(99, 102, 241, 0.62)`:t<1?`rgba(99, 102, 241, 0.88)`:`#fff`}let S=_[0]?.date.getDay()||0,C=Array(S).fill(null).concat(_);return(0,z.jsxs)(`div`,{className:`heatmap-wrap`,children:[(0,z.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:`0.75rem`},children:[(0,z.jsx)(`span`,{className:`chart-title`,children:`Activity`}),(0,z.jsx)(`div`,{className:`btn-group`,children:cV.map(e=>(0,z.jsx)(`button`,{className:`btn ${o===e.key?`active`:``}`,onClick:()=>s(e.key),children:e.label},e.key))})]}),(0,z.jsx)(`div`,{className:`heatmap-grid`,style:{gridTemplateRows:`repeat(7, 1fr)`},children:C.map((e,t)=>e?(0,z.jsx)(`div`,{role:i&&a?`button`:void 0,tabIndex:i&&a?0:void 0,onClick:i&&a?()=>i(e.key):void 0,onKeyDown:i&&a?t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),i(e.key))}:void 0,className:`heatmap-cell ${e.val>0?`active`:``} ${c.has(e.key)?`heatmap-cell-pop`:``} ${u.has(e.key)?`heatmap-cell-pop-dim`:``}`,style:{background:x(e.val),cursor:i&&a?`pointer`:void 0},title:`${e.key}: ${cV.find(e=>e.key===o).fmt(e.val)}`},e.key):(0,z.jsx)(`div`,{className:`heatmap-cell`,style:{visibility:`hidden`}},`pad-${t}`))}),(0,z.jsx)(`div`,{className:`heatmap-labels`,children:v.slice(-12).map((e,t)=>(0,z.jsx)(`span`,{children:e.label},t))})]})}function fV({presentation:e,rawPresentation:t=null,fullDaily:n=null,sourceDailyRows:r=null,range:i=`total`,ingestProgress:a=0,isIngestActive:o=!1,currentDateBucket:s=null,exportMode:c=!1,exportPlayback:l=!1,exportPhase:u=null,exportSeekMs:d=0,exportDaily:f=null,exportDailyTiming:p=null,onDailyDebugStatsChange:m=null,onPresentationDateRangeChange:h=null,onNavigateToDailyDay:g,onNavigateToRepo:_,onNavigateToModel:v}){if(!e?.ready)return null;let y=l?gV(d):1,x=l&&u===`replay`&&t?.ready?t:e,S=l&&t?.daily||e.daily,C=l&&S?.dates?.length?S:n,w=!c&&!l&&o,T=eV(C,{ingestProgress:a,isIngestActive:w});(0,b.useEffect)(()=>{m?.(w?{speedDaysPerSecond:T.speedDaysPerSecond,waitingForDailyData:T.waitingForDailyData}:null)},[w,T.speedDaysPerSecond,T.waitingForDailyData,m]),(0,b.useEffect)(()=>()=>m?.(null),[m]);let E=T.daily?.dates||[],D=E[E.length-1]||s,O=cB(i,E),k={from:O[0]||D,to:O[O.length-1]||D};(0,b.useEffect)(()=>{h?.(w?k:null)},[w,h,k.from,k.to]),(0,b.useEffect)(()=>()=>h?.(null),[h]);let A=o&&t?.heatmap?t.heatmap:e.heatmap,j=o&&!l?D:s,ee=o&&j&&!l?QB(A,j):A||{},M=(0,b.useMemo)(()=>w?_B({daily:r,range:i,cursor:T.cursor,fallback:x}):x,[x,w,T.cursor,i,r]),{stats:N,topRepos:P,topFamilies:F,topModels:I}=M,te=l&&u===`replay`?iV(aV(t?.topRepos||x.topRepos||[],e.topRepos||x.topRepos||[]),y):M.topRepos||[],ne=l&&u===`replay`?iV(aV(t?.topFamilies||x.topFamilies||[],e.topFamilies||x.topFamilies||[]),y):M.topFamilies||[],re=l&&u===`replay`?iV(aV(t?.topModels||x.topModels||[],e.topModels||x.topModels||[]),y):M.topModels||[],ie=[...te.slice(0,6)].reverse(),ae=Math.max(...te.slice(0,6).map(e=>e.tokens||0),1),oe=[...ne].sort((e,t)=>String(e.label).localeCompare(String(t.label))),se=[...re.slice(0,6)].sort((e,t)=>String(e.label).localeCompare(String(t.label))),ce=!c&&!l&&!o,L=vV(d,l),le=!c&&!l&&eB,ue=l?_V(d,Iz.videoExport?.barsChartIntroUpdateDurationMs,Iz.videoExport?.barsChartUpdateDurationMs,u===`tail`||u===`final_hold`?Iz.videoExport?.barsChartTailUpdateDurationMs:null):0,de={backgroundColor:`transparent`,...Qz,...c?{animation:!1}:{},...l?{animation:!0,animationDuration:0,animationDurationUpdate:ue,animationEasingUpdate:`cubicOut`}:{},tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},appendToBody:!0,confine:!0,formatter:e=>e?.length?`${e[0].axisValue}: ${BB(e[0].value)} tokens`:``},grid:{left:100,right:5,top:5,bottom:5},xAxis:{type:`value`,show:!1,max:ae||1},yAxis:{type:`category`,data:ie.map(e=>e.label),axisLabel:{color:`#8b949e`,fontSize:11,formatter:e=>UB(e)},axisTick:{show:!1},axisLine:{show:!1}},series:[{id:`overview-top-repos`,type:`bar`,data:ie.map(e=>{let t=e.tokens||0,n=t/ae>=.7,r=ze(e.label);return{value:t,itemStyle:{color:r,borderRadius:[0,3,3,0]},label:{show:!0,position:n?`insideRight`:`right`,distance:5,offset:[0,1.5],formatter:()=>BB(t),color:n?Be(r):`#8b949e`,fontSize:10}}}),barWidth:`80%`}]},fe=ce&&_?{click:e=>{if(e?.componentType!==`series`||e?.dataIndex==null)return;let t=ie[e.dataIndex];t?.label&&_(t.label)}}:void 0,pe=oe.reduce((e,t)=>e+(t.tokens||0),0),me=oe.filter(e=>pe>0?(e.tokens||0)/pe>=.01:!1),he=l&&me.length===1,R=oV(me),ge={backgroundColor:`transparent`,...$z,...c||l?{animation:!1}:{},tooltip:{trigger:`item`,appendToBody:!0,confine:!0,formatter:e=>`${e.name}: ${BB(e.value)} tokens (${e.percent}%)`},series:[{id:`overview-work-type`,type:`pie`,animation:le,avoidLabelOverlap:!R,radius:L,center:[`50%`,`50%`],label:{show:!he,color:`#8b949e`,fontSize:11,formatter:`{b}`,alignTo:`edge`,edgeDistance:5,bleedMargin:5,distanceToLabelLine:5},labelLine:{show:!he,lineStyle:{color:`#30363d`},length:8,length2:6},itemStyle:{borderColor:`#161b22`,borderWidth:2},...!he&&R?{labelLayout:R}:{},data:rV(me,We,{hideLabels:he})}]},_e=se.reduce((e,t)=>e+(t.tokens||0),0),ve=se.filter(e=>_e>0?(e.tokens||0)/_e>=.01:!1),ye=l&&ve.length===1,be=oV(ve),xe={backgroundColor:`transparent`,...$z,...c||l?{animation:!1}:{},tooltip:{trigger:`item`,appendToBody:!0,confine:!0,formatter:e=>`${e.name}: ${BB(e.value)} tokens (${e.percent}%)`},series:[{id:`overview-models`,type:`pie`,animation:le,avoidLabelOverlap:!be,radius:L,center:[`50%`,`50%`],label:{show:!ye,color:`#8b949e`,fontSize:11,formatter:`{b}`,alignTo:`edge`,edgeDistance:5,bleedMargin:5,distanceToLabelLine:5},labelLine:{show:!ye,lineStyle:{color:`#30363d`},length:8,length2:6},itemStyle:{borderColor:`#161b22`,borderWidth:2},...!ye&&be?{labelLayout:be}:{},data:rV(ve,Ue,{hideLabels:ye})}]},Se=ce&&v?{click:e=>{if(e?.componentType!==`series`||e?.dataIndex==null)return;let t=ve[e.dataIndex]?.label||e?.name;t&&v(t)}}:void 0;return(0,z.jsxs)(`div`,{className:`animate-in${l?` export-overview-frame`:``}`,children:[(0,z.jsxs)(`div`,{className:`stat-row`,children:[(0,z.jsxs)(`div`,{className:`stat-cards`,children:[(0,z.jsxs)(`div`,{className:`stat-card`,children:[(0,z.jsx)(`div`,{className:`stat-label`,children:`Tokens`}),(0,z.jsx)(`div`,{className:`stat-value`,children:BB(N.tokens)}),(0,z.jsxs)(`div`,{className:`stat-per-day`,children:[(0,z.jsx)(`span`,{className:`stat-per-day-value`,children:BB(N.tokens/N.days)}),` per day`]})]}),(0,z.jsxs)(`div`,{className:`stat-card`,children:[(0,z.jsx)(`div`,{className:`stat-label`,children:`Agent Time`}),(0,z.jsx)(`div`,{className:`stat-value`,children:HB(N.elapsed)}),(0,z.jsxs)(`div`,{className:`stat-per-day`,children:[(0,z.jsx)(`span`,{className:`stat-per-day-value`,children:HB(N.elapsed/N.days)}),` per day`]})]}),(0,z.jsxs)(`div`,{className:`stat-card`,children:[(0,z.jsx)(`div`,{className:`stat-label`,children:`Est. API Cost`}),(0,z.jsx)(`div`,{className:`stat-value`,children:VB(N.cost)}),(0,z.jsxs)(`div`,{className:`stat-per-day`,children:[(0,z.jsx)(`span`,{className:`stat-per-day-value`,children:VB(N.cost/N.days)}),` per day`]})]}),(0,z.jsxs)(`div`,{className:`stat-card`,children:[(0,z.jsx)(`div`,{className:`stat-label`,children:`Sessions`}),(0,z.jsx)(`div`,{className:`stat-value`,children:Math.round(N.sessions).toLocaleString()}),(0,z.jsxs)(`div`,{className:`stat-per-day`,children:[(0,z.jsx)(`span`,{className:`stat-per-day-value`,children:(N.sessions/N.days).toFixed(1)}),` per day`]})]})]}),l?(0,z.jsx)(ot,{daily:f||n||S,seekMs:d,timing:p}):(0,z.jsx)(sV,{daily:S,fullDaily:n,elasticDaily:T,range:i,isIngestActive:o,currentDateBucket:s,exportMode:c,exportPlayback:l,onDayClick:ce?g:void 0})]}),(0,z.jsx)(dV,{heatmapData:ee,isIngestActive:o,ingestProgress:a,currentDateBucket:j,onDayClick:ce?g:void 0,interactive:ce}),(0,z.jsxs)(`div`,{className:`grid-3`,children:[(0,z.jsxs)(`div`,{className:`chart-card overview-donut-card`,children:[(0,z.jsx)(`div`,{className:`chart-title`,style:{marginBottom:`0.5rem`},children:`Top Repos`}),P.length>0?(0,z.jsx)(Ae,{echarts:VA,option:de,style:{height:180,cursor:fe?`pointer`:void 0},theme:`dark`,lazyUpdate:!1,notMerge:c,onEvents:fe}):(0,z.jsx)(`div`,{style:{color:`var(--text-muted)`,padding:`2rem 0`,textAlign:`center`},children:`No data`})]}),(0,z.jsxs)(`div`,{className:`chart-card overview-donut-card`,children:[(0,z.jsx)(`div`,{className:`chart-title`,style:{marginBottom:`0.5rem`},children:`Work Type`}),F.length>0?(0,z.jsx)(Ae,{echarts:VA,option:ge,style:{height:180},theme:`dark`,lazyUpdate:!1,notMerge:c}):(0,z.jsx)(`div`,{style:{color:`var(--text-muted)`,padding:`2rem 0`,textAlign:`center`},children:`No data`})]}),(0,z.jsxs)(`div`,{className:`chart-card`,children:[(0,z.jsx)(`div`,{className:`chart-title`,style:{marginBottom:`0.5rem`},children:`Models`}),I.length>0?(0,z.jsx)(Ae,{echarts:VA,option:xe,style:{height:180,cursor:Se?`pointer`:void 0},theme:`dark`,lazyUpdate:!1,notMerge:c,onEvents:Se}):(0,z.jsx)(`div`,{style:{color:`var(--text-muted)`,padding:`2rem 0`,textAlign:`center`},children:`No data`})]})]}),(0,z.jsxs)(`div`,{className:`coverage-subtle`,children:[(0,z.jsx)(`span`,{style:{fontWeight:500},children:`Session coverage:`}),(0,z.jsxs)(`span`,{className:`coverage-item`,children:[(0,z.jsx)(`span`,{className:`coverage-dot`,style:{background:`#22c55e`}}),(0,z.jsx)(`span`,{className:`coverage-nums`,children:Math.round(N.exactPriced)}),` `,`exact-priced`]}),(0,z.jsxs)(`span`,{className:`coverage-item`,children:[(0,z.jsx)(`span`,{className:`coverage-dot`,style:{background:`#c084fc`}}),(0,z.jsx)(`span`,{className:`coverage-nums`,children:Math.round(N.fallbackPriced)}),` `,`fallback-priced`]}),(0,z.jsxs)(`span`,{className:`coverage-item`,children:[(0,z.jsx)(`span`,{className:`coverage-dot`,style:{background:`#64748b`}}),(0,z.jsx)(`span`,{className:`coverage-nums`,children:Math.round(N.unpriced)}),` `,`unpriced`]})]})]})}function pV({data:e,heatmap:t,daily:n,families:r,repos:i,models:a,range:o=`total`,onPresentationSettledChange:s=null,ingestProgress:c=0,isIngestActive:l=!1,currentDateBucket:u=null,clockNowMs:d=null,onDailyDebugStatsChange:f=null,onPresentationDateRangeChange:p=null,onNavigateToDailyDay:m,onNavigateToRepo:h,onNavigateToModel:g}){return(0,z.jsx)(fV,{presentation:TB({overview:e,heatmap:t,daily:n,families:r,repos:i,models:a,range:o},{duration:qz,onSettledChange:s,ingestProgress:c,isIngestActive:l,clockNowMs:d}),rawPresentation:b.useMemo(()=>yB({overview:e,heatmap:t,daily:n,families:r,repos:i,models:a,range:o}),[e,t,n,r,i,a,o]),fullDaily:b.useMemo(()=>GB(n),[n]),sourceDailyRows:n,range:o,ingestProgress:c,isIngestActive:l,currentDateBucket:u,onDailyDebugStatsChange:f,onPresentationDateRangeChange:p,onNavigateToDailyDay:m,onNavigateToRepo:h,onNavigateToModel:g})}function mV(e,t){return e.data===t.data&&e.heatmap===t.heatmap&&e.daily===t.daily&&e.families===t.families&&e.repos===t.repos&&e.models===t.models&&e.range===t.range&&e.onPresentationSettledChange===t.onPresentationSettledChange&&e.ingestProgress===t.ingestProgress&&e.isIngestActive===t.isIngestActive&&e.currentDateBucket===t.currentDateBucket&&e.clockNowMs===t.clockNowMs&&e.onDailyDebugStatsChange===t.onDailyDebugStatsChange&&e.onPresentationDateRangeChange===t.onPresentationDateRangeChange&&e.onNavigateToDailyDay===t.onNavigateToDailyDay&&e.onNavigateToRepo===t.onNavigateToRepo&&e.onNavigateToModel===t.onNavigateToModel}var hV=(0,b.memo)(pV,mV);function gV(e){return bV(e)}function _V(e,t,n,r=null){if(r!=null)return Math.max(0,Math.round(r));let i=Math.max(0,Math.round(n??0)),a=Math.max(i,Math.round(t??i)),o=bV(e);return Math.round(a+(i-a)*o)}function vV(e,t=!1){if(!t)return[`48%`,`72%`];let n=.9+bV(e)*.1;return[`${yV(48*n)}%`,`${yV(72*n)}%`]}function yV(e){return Math.round(e*100)/100}function bV(e){let t=Math.max(Iz.videoExport?.chartIntroWindowMs??2200,1),n=Math.max(e||0,0),r=t/3;return Math.min(1,1-Math.exp(-n/Math.max(r,1)))}function xV(e,t){return e==="default"?t:e}function SV(e,t=`tokens`){return Object.entries(e||{}).map(([e,t])=>({key:e,...t})).sort((e,n)=>(n[t]||0)-(e[t]||0))}function CV({title:e,rows:t,valueKey:n=`tokens`,colorForKey:r,valueFormatter:i,chartMode:a=`default`,defaultMode:o=`bar`,emptyLabel:s=`No data`,renderTitleInChart:c=!0,barLabelProgress:l=1}){let u=xV(a,o),d=(t||[]).map((e,t)=>{let n=e?.key??e?.repo_label??e?.model_name??e?.family??null;return n?{...e,key:String(n),_idx:t}:null}).filter(Boolean),f={xAxis:{show:!1},yAxis:{show:!1},series:[],graphic:{type:`text`,left:`center`,top:`60%`,style:{text:s,fill:`#484f58`,fontSize:11}}};if(c&&(f.title={text:e,left:`center`,top:`middle`,textStyle:{fontSize:12,color:`#484f58`,fontWeight:`normal`}}),!d.length)return f;if(u===`donut`){let t=d.reduce((e,t)=>e+(t[n]||0),0),a={backgroundColor:`transparent`,...zz,tooltip:{trigger:`item`,appendToBody:!0,confine:!0,formatter:e=>`${e.name}: ${i(e.value)} (${e.percent}%)`},series:[{type:`pie`,...zz,radius:[`40%`,`62%`],center:[`50%`,`52%`],label:{show:!0,color:`#8b949e`,fontSize:10,formatter:`{b}`,overflow:`truncate`,width:90,...Rz},labelLine:{lineStyle:{color:`#30363d`}},itemStyle:{borderColor:`#161b22`,borderWidth:2},data:d.map(e=>{let i=e[n]||0,a=(t>0?i/t:0)>=.01;return{name:e.key,value:i,itemStyle:{color:r(e.key)},label:{show:a,color:r(e.key)},labelLine:{show:a}}})}]};return c&&(a.title={text:e,left:`center`,top:8,textStyle:{fontSize:11,color:`#8b949e`,fontWeight:`normal`}}),a}let p=[...d].reverse(),m=Math.max(...d.map(e=>e[n]||0),0),h={backgroundColor:`transparent`,...Bz,tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},appendToBody:!0,confine:!0,formatter:e=>{let t=p[e?.[0]?.dataIndex];return t?`${t.key}: ${i(t[n]||0)}`:``}},grid:{left:65,right:50,top:c?35:20,bottom:20},xAxis:{type:`value`,splitNumber:4,max:m||1,axisLabel:{formatter:e=>i(e),color:`#484f58`,fontSize:10,showMinLabel:!0,showMaxLabel:!0},splitLine:{lineStyle:{color:[`transparent`,`#21262d`,`#21262d`,`#21262d`,`transparent`]}}},yAxis:{type:`category`,data:p.map(e=>e.key),axisLabel:{color:`#8b949e`,fontSize:10,overflow:`truncate`,width:55},axisTick:{show:!1},axisLine:{show:!1}},series:[{type:`bar`,data:p.map(e=>({value:e[n]||0,itemStyle:{color:r(e.key),borderRadius:[0,3,3,0]}})),barMaxWidth:14,label:{show:!0,position:`right`,formatter:e=>i((e.value??0)*l),color:`#8b949e`,fontSize:9,...Vz}}]};return c&&(h.title={text:e,left:`center`,top:8,textStyle:{fontSize:11,color:`#8b949e`,fontWeight:`normal`}}),h}uk([FN,iP,zI,nR,aR,Mz]);function wV(e){return Nz(e)}function TV(e){return e==null||e===0?`—`:e>=1e3?`$`+(e/1e3).toFixed(1)+`K`:`$`+e.toFixed(2)}var EV=[`all`,`review`,`exploration`,`planning`,`memory`,`generic`],DV=[`review`,`exploration`,`planning`,`memory`,`generic`];function OV(e){if(!e.current)return;let t=e.current.getEchartsInstance().getDataURL({type:`png`,pixelRatio:2,backgroundColor:`#06080f`});Object.assign(document.createElement(`a`),{href:t,download:`codexmeter-repos.png`}).click()}function kV(e,t=`total`){let n=e?.data;return Array.isArray(n)?n:n?.[t]||n?.total||[]}function AV({repo:e,chartMode:t}){let[n,r]=(0,b.useState)(!1),i=(0,b.useMemo)(()=>SV(e.by_model),[e.by_model]),a=(0,b.useMemo)(()=>SV(e.by_family),[e.by_family]),o=CV({title:`Models in repo`,rows:i,valueKey:`tokens`,colorForKey:Ue,valueFormatter:wV,chartMode:t,defaultMode:`donut`,renderTitleInChart:!1}),s=CV({title:`Work type in repo`,rows:a,valueKey:`tokens`,colorForKey:We,valueFormatter:wV,chartMode:t,defaultMode:`donut`,renderTitleInChart:!1}),c=[...i.slice(0,4).map(e=>({...e,scope:`model`})),...a.slice(0,4).map(e=>({...e,scope:`family`}))];return(0,z.jsxs)(`div`,{className:`model-detail-wrap`,children:[(0,z.jsxs)(`div`,{className:`model-detail-charts`,children:[(0,z.jsxs)(`div`,{className:`model-detail-donut`,children:[(0,z.jsx)(`div`,{className:`chart-title`,style:{marginBottom:`0.5rem`},children:`Models in repo`}),(0,z.jsx)(Ae,{echarts:VA,option:o,style:{width:`100%`,height:`100%`},theme:`dark`,lazyUpdate:!0,notMerge:!1})]}),(0,z.jsxs)(`div`,{className:`model-detail-donut`,children:[(0,z.jsx)(`div`,{className:`chart-title`,style:{marginBottom:`0.5rem`},children:`Work type in repo`}),(0,z.jsx)(Ae,{echarts:VA,option:s,style:{width:`100%`,height:`100%`},theme:`dark`,lazyUpdate:!0,notMerge:!1})]})]}),(0,z.jsx)(`div`,{className:`model-detail-footer`,children:(0,z.jsxs)(`button`,{type:`button`,className:`model-detail-toggle`,onClick:()=>r(e=>!e),"aria-expanded":n,children:[(0,z.jsx)(`span`,{className:`model-detail-toggle-text`,children:n?`Hide details`:`Show details`}),(0,z.jsx)(`span`,{className:`model-detail-toggle-arrow ${n?`expanded`:``}`,"aria-hidden":!0,children:`▼`})]})}),(0,z.jsx)(`div`,{className:`model-detail-summary-wrap ${n?`expanded`:``}`,children:(0,z.jsx)(`div`,{className:`model-detail-summary`,children:c.map(e=>(0,z.jsxs)(`div`,{className:`model-detail-summary-card`,children:[(0,z.jsxs)(`div`,{className:`model-detail-summary-head`,children:[(0,z.jsx)(`span`,{className:`model-detail-swatch`,style:{background:e.scope===`model`?Ue(e.key):We(e.key)}}),(0,z.jsx)(`span`,{className:`model-detail-summary-name`,title:e.key,children:e.key})]}),(0,z.jsxs)(`div`,{className:`model-detail-summary-line`,children:[wV(e.tokens),` tokens`]}),(0,z.jsxs)(`div`,{className:`model-detail-summary-line`,children:[e.sessions||0,` sessions`]}),(0,z.jsx)(`div`,{className:`model-detail-summary-line`,children:TV(e.cost)})]},`${e.scope}-${e.key}`))})})]})}function jV({data:e,range:t=`total`,chartMode:n=`default`,focusRequest:r=null,onFocusRequestConsumed:i}){let[a,o]=(0,b.useState)(`all`),[s,c]=(0,b.useState)(null),l=(0,b.useRef)(null),u=(0,b.useRef)(null),d=(0,b.useMemo)(()=>kV(e,t),[e,t]),f=(0,b.useMemo)(()=>d?.length?a===`all`?d:d.map(e=>{let t=e.by_family?.[a];return t?{...e,tokens:t.tokens,cost:t.cost,sessions:t.sessions}:null}).filter(Boolean).sort((e,t)=>t.tokens-e.tokens):[],[d,a]);if((0,b.useEffect)(()=>{s&&(f.some(e=>e.repo_key===s)||c(null))},[s,f]),(0,b.useEffect)(()=>{if(!r){u.current=null;return}let{id:e,repoLabel:t}=r;if(!t||u.current===e)return;let n=d.find(e=>e.repo_label===t||e.repo_key===t);u.current=e,n&&c(n.repo_key),i?.()},[r,d,i]),!d?.length)return(0,z.jsx)(`div`,{style:{color:`var(--text-muted)`,padding:`2rem`},children:`No data`});let p=f.slice(0,15),m=[...p].reverse(),h=Math.max(...p.map(e=>e.tokens||0),0),g=Math.max(250,p.length*28),_=(0,b.useMemo)(()=>({backgroundColor:`transparent`,...Lz,tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},appendToBody:!0,confine:!0,formatter:e=>{let t=p[p.length-1-e[0].dataIndex];return t?`<b>${t.repo_label}</b><br/>Tokens: ${wV(t.tokens)}<br/>Cost: ${TV(t.cost)}<br/>Sessions: ${t.sessions}`:``}},grid:{left:150,right:50,top:8,bottom:8},xAxis:{type:`value`,splitNumber:4,max:h||1,axisLabel:{formatter:e=>wV(e),color:`#484f58`,showMinLabel:!0,showMaxLabel:!0},splitLine:{lineStyle:{color:[`transparent`,`#21262d`,`#21262d`,`#21262d`,`transparent`]}}},yAxis:{type:`category`,data:m.map(e=>e.repo_label),axisLabel:{color:`#8b949e`,fontSize:11},axisTick:{show:!1},axisLine:{show:!1}},series:[{id:`repos-range-bars`,type:`bar`,universalTransition:!0,data:m.map(e=>({id:e.repo_key,name:e.repo_label,value:e.tokens,itemStyle:{color:ze(e.repo_label),borderRadius:[0,3,3,0]}})),barMaxWidth:16,label:{show:!0,position:`right`,formatter:e=>wV(e.value??0),color:`#8b949e`,fontSize:10,...Rz}}]}),[h,m,p]),v=(0,b.useMemo)(()=>({click:e=>{if(e?.componentType===`series`&&e?.dataIndex!=null){let t=p[p.length-1-e.dataIndex];t&&c(e=>e===t.repo_key?null:t.repo_key)}}}),[p]);return(0,z.jsxs)(`div`,{className:`animate-in`,children:[(0,z.jsxs)(`div`,{className:`section-header`,children:[(0,z.jsx)(`span`,{className:`section-title`,children:`Repos`}),(0,z.jsx)(`div`,{className:`btn-group`,children:EV.map(e=>(0,z.jsx)(`button`,{className:`btn ${a===e?`active`:``}`,onClick:()=>o(e),children:e},e))})]}),(0,z.jsxs)(`div`,{className:`chart-card`,children:[(0,z.jsx)(`button`,{className:`export-btn`,onClick:()=>OV(l),children:`PNG`}),(0,z.jsx)(`div`,{style:{height:g,transition:`height 220ms cubic-bezier(0.22, 1, 0.36, 1)`},children:(0,z.jsx)(Ae,{ref:l,echarts:VA,option:_,style:{height:`100%`},theme:`dark`,lazyUpdate:!0,notMerge:!1,onEvents:v})})]}),(0,z.jsx)(`div`,{className:`table-wrap`,children:(0,z.jsxs)(`table`,{children:[(0,z.jsx)(`thead`,{children:(0,z.jsxs)(`tr`,{children:[(0,z.jsx)(`th`,{children:`Repo`}),(0,z.jsx)(`th`,{children:`Tokens`}),(0,z.jsx)(`th`,{children:`Cost`}),(0,z.jsx)(`th`,{children:`Sessions`}),(0,z.jsx)(`th`,{style:{width:200},children:`Families`})]})}),(0,z.jsx)(`tbody`,{children:f.map(e=>(0,z.jsxs)(b.Fragment,{children:[(0,z.jsxs)(`tr`,{onClick:()=>c(s===e.repo_key?null:e.repo_key),style:{cursor:`pointer`},children:[(0,z.jsxs)(`td`,{style:{fontWeight:500,color:`var(--text-primary)`},children:[(0,z.jsx)(`span`,{style:{display:`inline-block`,width:8,height:8,borderRadius:2,background:ze(e.repo_label),marginRight:8}}),e.repo_label]}),(0,z.jsx)(`td`,{style:{fontFamily:`var(--font-mono)`},children:wV(e.tokens)}),(0,z.jsx)(`td`,{style:{fontFamily:`var(--font-mono)`},children:TV(e.cost)}),(0,z.jsx)(`td`,{children:e.sessions}),(0,z.jsx)(`td`,{children:Object.entries(e.by_family||{}).sort(([e],[t])=>{let n=DV.indexOf(e),r=DV.indexOf(t);return(n===-1?999:n)-(r===-1?999:r)}).slice(0,3).map(([e])=>(0,z.jsx)(`span`,{className:`tag tag-${e}`,style:{marginRight:3},children:e},e))})]}),s===e.repo_key&&(0,z.jsx)(`tr`,{children:(0,z.jsx)(`td`,{colSpan:5,style:{background:`var(--bg-surface)`,padding:`0.75rem 1rem`},children:(0,z.jsx)(AV,{repo:e,chartMode:n})})})]},e.repo_key))})]})})]})}uk([FN,iP,zI,nR,aR,Mz]);function MV(e){return Nz(e)}function NV(e){return e==null||e===0?`—`:e>=1e3?`$`+(e/1e3).toFixed(1)+`K`:`$`+e.toFixed(2)}var PV=[`low`,`medium`,`high`,`xhigh`,`unknown`];function FV(e){return[...e].sort(([e],[t])=>{let n=PV.indexOf((e||``).toLowerCase()),r=PV.indexOf((t||``).toLowerCase());return(n===-1?999:n)-(r===-1?999:r)})}function IV({model:e,fmt:t,chartMode:n}){let[r,i]=(0,b.useState)(!1),a=(0,b.useMemo)(()=>FV(Object.entries(e.by_effort||{})),[e.by_effort]);if(!a.length)return null;let o=a.map(([e,t])=>({effort:e,sessions:t.sessions,tokens:t.tokens,avgTokens:t.sessions?Math.round(t.tokens/t.sessions):0,cost:t.cost,exactPriced:t.exact_priced||0,fallbackPriced:t.heuristic_priced||0})),s=o.map(e=>({key:e.effort,sessions:e.sessions,tokens:e.tokens,avgTokens:e.avgTokens})),c=CV({title:`Sessions by effort`,rows:s,valueKey:`sessions`,colorForKey:Ge,valueFormatter:e=>Math.round(e).toLocaleString(),chartMode:n,defaultMode:`donut`,renderTitleInChart:!1}),l=CV({title:`Tokens by effort`,rows:s,valueKey:`tokens`,colorForKey:Ge,valueFormatter:t,chartMode:n,defaultMode:`donut`,renderTitleInChart:!1}),u=CV({title:`Avg tokens per session`,rows:s,valueKey:`avgTokens`,colorForKey:Ge,valueFormatter:t,chartMode:n,defaultMode:`bar`,renderTitleInChart:!1});return(0,z.jsxs)(`div`,{className:`model-detail-wrap`,children:[(0,z.jsxs)(`div`,{className:`model-detail-charts`,children:[(0,z.jsxs)(`div`,{className:`model-detail-donut`,children:[(0,z.jsx)(`div`,{className:`chart-title`,style:{marginBottom:`0.5rem`},children:`Sessions by effort`}),(0,z.jsx)(Ae,{echarts:VA,option:c,style:{width:`100%`,height:`100%`},theme:`dark`,lazyUpdate:!0,notMerge:!1})]}),(0,z.jsxs)(`div`,{className:`model-detail-donut`,children:[(0,z.jsx)(`div`,{className:`chart-title`,style:{marginBottom:`0.5rem`},children:`Tokens by effort`}),(0,z.jsx)(Ae,{echarts:VA,option:l,style:{width:`100%`,height:`100%`},theme:`dark`,lazyUpdate:!0,notMerge:!1})]}),(0,z.jsxs)(`div`,{className:`model-detail-bar`,children:[(0,z.jsx)(`div`,{className:`chart-title`,style:{marginBottom:`0.5rem`},children:`Avg tokens per session`}),(0,z.jsx)(Ae,{echarts:VA,option:u,style:{width:`100%`,height:`100%`},theme:`dark`,lazyUpdate:!0,notMerge:!1})]})]}),(0,z.jsx)(`div`,{className:`model-detail-footer`,children:(0,z.jsxs)(`button`,{type:`button`,className:`model-detail-toggle`,onClick:()=>i(e=>!e),"aria-expanded":r,children:[(0,z.jsx)(`span`,{className:`model-detail-toggle-text`,children:r?`Hide details`:`Show details`}),(0,z.jsx)(`span`,{className:`model-detail-toggle-arrow ${r?`expanded`:``}`,"aria-hidden":!0,children:`▼`})]})}),(0,z.jsx)(`div`,{className:`model-detail-summary-wrap ${r?`expanded`:``}`,children:(0,z.jsx)(`div`,{className:`model-detail-summary`,children:o.map(e=>(0,z.jsxs)(`div`,{className:`model-detail-summary-card`,children:[(0,z.jsxs)(`div`,{className:`model-detail-summary-head`,children:[(0,z.jsx)(`span`,{className:`model-detail-swatch`,style:{background:Ge(e.effort)}}),(0,z.jsx)(`span`,{className:`model-detail-summary-name`,title:e.effort,children:e.effort})]}),(0,z.jsxs)(`div`,{className:`model-detail-summary-line`,children:[e.sessions,` sessions`]}),(0,z.jsxs)(`div`,{className:`model-detail-summary-line`,children:[t(e.tokens),` tokens`]}),(0,z.jsxs)(`div`,{className:`model-detail-summary-line`,children:[t(e.avgTokens),` avg/session`]}),(0,z.jsxs)(`div`,{className:`model-detail-summary-line`,children:[NV(e.cost),` cost`]}),(0,z.jsxs)(`div`,{className:`model-detail-summary-line`,children:[e.exactPriced,` exact · `,e.fallbackPriced,` fallback`]})]},e.effort))})})]})}function LV(e){if(!e.current)return;let t=e.current.getEchartsInstance().getDataURL({type:`png`,pixelRatio:2,backgroundColor:`#06080f`});Object.assign(document.createElement(`a`),{href:t,download:`codexmeter-models.png`}).click()}function RV(e,t=`total`){let n=e?.data;return Array.isArray(n)?n:n?.[t]||n?.total||[]}function zV({data:e,range:t=`total`,chartMode:n=`default`,focusRequest:r=null,onFocusRequestConsumed:i}){let[a,o]=(0,b.useState)(null),s=(0,b.useRef)(null),c=(0,b.useRef)(null),l=(0,b.useMemo)(()=>RV(e,t),[e,t]);if((0,b.useEffect)(()=>{a&&(l.some(e=>e.model_name===a)||o(null))},[a,l]),(0,b.useEffect)(()=>{if(!r){c.current=null;return}let{id:e,modelName:t}=r;if(!t||c.current===e)return;let n=l.find(e=>e.model_name===t);c.current=e,n&&o(n.model_name),i?.()},[r,l,i]),!l?.length)return(0,z.jsx)(`div`,{style:{color:`var(--text-muted)`,padding:`2rem`},children:`No data`});let u=[...l].reverse(),d=Math.max(...l.map(e=>e.tokens||0),0),f=Math.max(180,l.length*34),p=(0,b.useMemo)(()=>({backgroundColor:`transparent`,...Lz,tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},appendToBody:!0,confine:!0,formatter:e=>{let t=l[l.length-1-e[0].dataIndex];return`<b>${t.model_name}</b><br/>Tokens: ${MV(t.tokens)}<br/>Cost: ${NV(t.cost)}<br/>Sessions: ${t.sessions}`}},grid:{left:160,right:50,top:8,bottom:8},xAxis:{type:`value`,splitNumber:4,max:d||1,axisLabel:{formatter:e=>MV(e),color:`#484f58`,fontSize:10,showMinLabel:!0,showMaxLabel:!0},splitLine:{lineStyle:{color:[`transparent`,`#21262d`,`#21262d`,`#21262d`,`transparent`]}}},yAxis:{type:`category`,data:u.map(e=>e.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(e=>({id:e.model_name,name:e.model_name,value:e.tokens,itemStyle:{color:Ue(e.model_name),borderRadius:[0,3,3,0]}})),barMaxWidth:18,label:{show:!0,position:`right`,formatter:e=>MV(e.value??0),color:`#8b949e`,fontSize:10,...Rz}}]}),[d,l,u]),m=(0,b.useMemo)(()=>({click:e=>{if(e?.componentType===`series`&&e?.dataIndex!=null){let t=l[l.length-1-e.dataIndex];t&&o(e=>e===t.model_name?null:t.model_name)}}}),[l]);return(0,z.jsxs)(`div`,{className:`animate-in`,children:[(0,z.jsx)(`div`,{className:`section-header`,children:(0,z.jsx)(`span`,{className:`section-title`,children:`Models`})}),(0,z.jsxs)(`div`,{className:`chart-card`,children:[(0,z.jsx)(`button`,{className:`export-btn`,onClick:()=>LV(s),children:`PNG`}),(0,z.jsx)(`div`,{style:{height:f,transition:`height 220ms cubic-bezier(0.22, 1, 0.36, 1)`},children:(0,z.jsx)(Ae,{ref:s,echarts:VA,option:p,style:{height:`100%`},theme:`dark`,lazyUpdate:!0,notMerge:!1,onEvents:m})})]}),(0,z.jsx)(`div`,{className:`table-wrap`,children:(0,z.jsxs)(`table`,{children:[(0,z.jsx)(`thead`,{children:(0,z.jsxs)(`tr`,{children:[(0,z.jsx)(`th`,{children:`Model`}),(0,z.jsx)(`th`,{children:`Tokens`}),(0,z.jsx)(`th`,{children:`Cost`}),(0,z.jsx)(`th`,{children:`Sessions`}),(0,z.jsx)(`th`,{children:`Effort Levels`})]})}),(0,z.jsx)(`tbody`,{children:l.map(e=>(0,z.jsxs)(b.Fragment,{children:[(0,z.jsxs)(`tr`,{onClick:()=>o(a===e.model_name?null:e.model_name),style:{cursor:`pointer`},children:[(0,z.jsxs)(`td`,{style:{fontWeight:500,color:`var(--text-primary)`,fontFamily:`var(--font-mono)`},children:[(0,z.jsx)(`span`,{style:{display:`inline-block`,width:8,height:8,borderRadius:2,background:Ue(e.model_name),marginRight:8}}),e.model_name]}),(0,z.jsx)(`td`,{style:{fontFamily:`var(--font-mono)`},children:MV(e.tokens)}),(0,z.jsx)(`td`,{style:{fontFamily:`var(--font-mono)`},children:NV(e.cost)}),(0,z.jsx)(`td`,{children:e.sessions}),(0,z.jsx)(`td`,{children:Object.keys(e.by_effort).length})]}),a===e.model_name&&(0,z.jsx)(`tr`,{children:(0,z.jsx)(`td`,{colSpan:5,style:{background:`var(--bg-surface)`,padding:`0.75rem 1rem`},children:(0,z.jsx)(IV,{model:e,fmt:MV,chartMode:n})})})]},e.model_name))})]})})]})}uk([FN,Uj,iP,zI,nR,aR,jR,cz,rL,Mz]);function BV(e){return Nz(e)}function VV(e){return e==null||e===0?`$0`:`$`+e.toFixed(2)}function HV(e){return e?(e/3600).toFixed(1)+`h`:`0h`}var UV=[{key:`tokens`,label:`Tokens`,fn:BV},{key:`elapsed_seconds`,label:`Time`,fn:HV},{key:`cost`,label:`Cost`,fn:VV}],WV=[{key:`model`,label:`By Model`},{key:`family`,label:`By Work`}],GV=[{key:`absolute`,label:`Absolute`},{key:`relative`,label:`Relative`}];function KV(e){if(!e.current)return;let t=e.current.getEchartsInstance().getDataURL({type:`png`,pixelRatio:2,backgroundColor:`#06080f`});Object.assign(document.createElement(`a`),{href:t,download:`codexmeter-daily.png`}).click()}function qV(e,t){if(!t)return{startValue:0,endValue:0};let n=t;return e===`d7`&&(n=7),e===`d30`&&(n=30),{startValue:t-Math.max(1,Math.min(n,t)),endValue:t-1}}var JV=280,YV={left:70,right:20,bottom:12,height:24};function XV(e,t,n){let r=e?.batch?.[0]??e,i=Math.max(0,t.length-1),a,o;return r&&typeof r.startValue==`number`&&typeof r.endValue==`number`?(a=r.startValue,o=r.endValue):r&&typeof r.start==`number`&&typeof r.end==`number`&&t.length?(a=Math.round(r.start/100*i),o=Math.round(r.end/100*i)):r&&typeof r.startValue==`string`&&typeof r.endValue==`string`&&t.length?(a=t.indexOf(r.startValue),o=t.indexOf(r.endValue),a<0&&(a=n.startValue),o<0&&(o=n.endValue)):(a=n.startValue,o=n.endValue),a=Math.max(0,Math.min(i,Math.floor(a))),o=Math.max(0,Math.min(i,Math.floor(o))),a>o?{startValue:o,endValue:a}:{startValue:a,endValue:o}}function ZV(e,t,n,r,i){if(cancelAnimationFrame(r.current),r.current=0,Math.round(e.startValue)===Math.round(t.startValue)&&Math.round(e.endValue)===Math.round(t.endValue))return;let a=0,o=s=>{a||=s;let c=Math.min(1,(s-a)/i),l=1-(1-c)**3;n({startValue:Math.round(e.startValue+(t.startValue-e.startValue)*l),endValue:Math.round(e.endValue+(t.endValue-e.endValue)*l)}),r.current=c<1?requestAnimationFrame(o):0};return r.current=requestAnimationFrame(o),()=>{cancelAnimationFrame(r.current),r.current=0}}function QV(e,t){return{left:YV.left,right:e-YV.right,top:t-YV.bottom-YV.height,bottom:t-YV.bottom}}function $V(e,t,n,r){let i=QV(e,t),a=Math.max(n-1,1),o=Math.max(0,Math.min(1,(r?.startValue??0)/a)),s=Math.max(0,Math.min(1,(r?.endValue??a)/a)),c=Math.max(0,i.right-i.left);return{...i,selectionLeft:i.left+c*Math.min(o,s),selectionRight:i.left+c*Math.max(o,s)}}function eH(e,t){return e===`d7`?44:e===`d30`?22:t<=14?36:t<=31?18:14}function tH(e,t){return e===`d7`?8:e===`d30`?3:t<=31?2:+(t<=90)}function nH(e,t){return e===`d7`?`72%`:e===`d30`?`54%`:t<=14?`64%`:t<=31?`48%`:`36%`}function rH(e,t){return e?t===`elapsed_seconds`?e.elapsed_seconds||0:t===`cost`?e.cost||0:e.tokens||0:0}function iH(e,t){if(!e)return`Day detail`;let n=UV.find(e=>e.key===t)||UV[0],r=new Date(`${e.date}T00:00:00`).toLocaleDateString(`en-US`,{weekday:`long`}),i=n.fn(rH(e,t));return`Day detail: ${r} - ${e.date} - ${n.label}: ${i}`}function aH(e,t){let n=e.length;if(n===0)return null;let r=Array(n),i=Array(n),a=[];for(let t=0;t<n;t++){for(;a.length&&e[a[a.length-1]]>=e[t];)a.pop();r[t]=a.length?a[a.length-1]:-1,a.push(t)}a.length=0;for(let t=n-1;t>=0;t--){for(;a.length&&e[a[a.length-1]]>=e[t];)a.pop();i[t]=a.length?a[a.length-1]:n,a.push(t)}let o=0,s=0;for(let t=0;t<n;t++){let n=(i[t]-r[t]-1)*e[t];n>o&&(o=n,s=t)}return[(r[s]+i[s])/2,t[s]+e[s]/2]}function oH({day:e,chartMode:t}){let n=(0,b.useMemo)(()=>SV(e.by_model),[e.by_model]),r=(0,b.useMemo)(()=>SV(e.by_repo),[e.by_repo]),i=(0,b.useMemo)(()=>SV(e.by_family),[e.by_family]),a=CV({title:`Models`,rows:n,valueKey:`tokens`,colorForKey:Ue,valueFormatter:BV,chartMode:t,defaultMode:`donut`,renderTitleInChart:!1}),o=CV({title:`Repos`,rows:r,valueKey:`tokens`,colorForKey:ze,valueFormatter:BV,chartMode:t,defaultMode:`donut`,renderTitleInChart:!1}),s=CV({title:`Work Type`,rows:i,valueKey:`tokens`,colorForKey:We,valueFormatter:BV,chartMode:t,defaultMode:`donut`,renderTitleInChart:!1});return(0,z.jsx)(`div`,{className:`model-detail-wrap`,children:(0,z.jsxs)(`div`,{className:`model-detail-charts`,children:[(0,z.jsxs)(`div`,{className:`model-detail-donut`,children:[(0,z.jsx)(`div`,{className:`chart-title`,style:{marginBottom:`0.5rem`},children:`Repos`}),(0,z.jsx)(Ae,{echarts:VA,option:o,style:{width:`100%`,height:`100%`},theme:`dark`,lazyUpdate:!0,notMerge:!1})]}),(0,z.jsxs)(`div`,{className:`model-detail-donut`,children:[(0,z.jsx)(`div`,{className:`chart-title`,style:{marginBottom:`0.5rem`},children:`Models`}),(0,z.jsx)(Ae,{echarts:VA,option:a,style:{width:`100%`,height:`100%`},theme:`dark`,lazyUpdate:!0,notMerge:!1})]}),(0,z.jsxs)(`div`,{className:`model-detail-donut`,children:[(0,z.jsx)(`div`,{className:`chart-title`,style:{marginBottom:`0.5rem`},children:`Work Type`}),(0,z.jsx)(Ae,{echarts:VA,option:s,style:{width:`100%`,height:`100%`},theme:`dark`,lazyUpdate:!0,notMerge:!1})]})]})})}var sH=b.memo(function({daily:e,range:t,metric:n,split:r,displayMode:i,onSelectDate:a,navigateToDayRequest:o,onNavigateToDayConsumed:s}){let[c,l]=(0,b.useState)({startValue:0,endValue:0}),u=(0,b.useRef)(null),d=(0,b.useRef)(c);d.current=c;let f=(0,b.useRef)(0),p=(0,b.useRef)(null),m=(0,b.useRef)(0),h=(0,b.useRef)(!1),g=(0,b.useRef)(null),_=(0,b.useRef)(null),v=(0,b.useRef)(0),y=(0,b.useMemo)(()=>e.map(e=>e.date),[e]),x=UV.find(e=>e.key===n),S=(0,b.useMemo)(()=>qV(t,y.length),[t,y.length]);(0,b.useEffect)(()=>{if(!y.length)return;let e=qV(t,y.length),n=_.current===null,r=!n&&_.current!==t,i=!n&&v.current!==y.length;if(_.current=t,v.current=y.length,cancelAnimationFrame(m.current),m.current=0,n){l(e);return}if(r)return ZV(d.current,e,l,m,JV);i&&l(e)},[t,y.length]),(0,b.useEffect)(()=>()=>{cancelAnimationFrame(f.current),f.current=0,g.current?.(),g.current=null},[]);let C=(0,b.useCallback)(()=>{let e=u.current?.getEchartsInstance?.();if(!e)return;g.current?.();let t=e.getZr(),n=n=>{let r=n?.offsetX??n?.zrX,i=n?.offsetY??n?.zrY;if(!Number.isFinite(r)||!Number.isFinite(i)){t.setCursorStyle(`default`);return}let a=$V(e.getWidth(),e.getHeight(),y.length,d.current);if(!(r>=a.left&&r<=a.right&&i>=a.top&&i<=a.bottom)){t.setCursorStyle(`default`);return}if(r>=a.selectionLeft&&r<=a.selectionRight){t.setCursorStyle(h.current?`grabbing`:`grab`);return}t.setCursorStyle(`ew-resize`)},r=e=>n(e),i=t=>{let r=t?.offsetX??t?.zrX,i=t?.offsetY??t?.zrY;if(!Number.isFinite(r)||!Number.isFinite(i))return;let a=$V(e.getWidth(),e.getHeight(),y.length,d.current);h.current=r>=a.selectionLeft&&r<=a.selectionRight&&i>=a.top&&i<=a.bottom,n(t)},a=e=>{h.current=!1,n(e)},o=()=>{h.current=!1,t.setCursorStyle(`default`)};t.on(`mousemove`,r),t.on(`mousedown`,i),t.on(`mouseup`,a),t.on(`globalout`,o),g.current=()=>{t.off(`mousemove`,r),t.off(`mousedown`,i),t.off(`mouseup`,a),t.off(`globalout`,o),t.setCursorStyle(`default`)}},[y.length]),w=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!o){w.current=null;return}let{id:t,centerDate:n}=o;if(!n||!e.length||w.current===t)return;let r=e.map(e=>e.date),i=r.indexOf(n);if(i<0){s?.();return}w.current=t;let c=Math.max(0,i-3),u=Math.min(r.length-1,i+3);cancelAnimationFrame(m.current),m.current=0,l({startValue:c,endValue:u}),a(n),s?.()},[o,e,a,s]);let T=(0,b.useMemo)(()=>{if(!y.length)return 0;let e=Math.max(0,Math.min(y.length-1,Math.floor(c.startValue??S.startValue??0))),t=Math.max(e,Math.min(y.length-1,Math.floor(c.endValue??S.endValue??y.length-1)));return Math.max(1,t-e+1)},[y.length,c,S]),E=(0,b.useMemo)(()=>{if(!y.length)return{startIdx:0,endIdx:-1};let e=Math.max(0,Math.min(y.length-1,Math.floor(c.startValue??S.startValue??0)));return{startIdx:e,endIdx:Math.max(e,Math.min(y.length-1,Math.floor(c.endValue??S.endValue??y.length-1)))}},[y.length,c,S]),D=(0,b.useMemo)(()=>eH(t,T),[t,T]),O=(0,b.useMemo)(()=>tH(t,T),[t,T]),k=(0,b.useMemo)(()=>nH(t,T),[t,T]),A=(0,b.useMemo)(()=>aB(e,{split:r,metric:n}),[e,r,n]),j=A.groups,ee=(0,b.useMemo)(()=>A.series.map(e=>({name:e.key,values:e.data})),[A.series]),M=A.dayTotals,N=(0,b.useMemo)(()=>{if(!M.length||E.endIdx<E.startIdx)return 0;let e=0;for(let t=E.startIdx;t<=E.endIdx;t++)e=Math.max(e,M[t]||0);return e},[M,E]),P=i===`relative`,F=(0,b.useMemo)(()=>({dates:y,series:ee.map(e=>({key:e.name,label:e.name,data:e.values}))}),[y,ee]),I=`${n}\0${r}`,te=MB(F,!P,I),ne=(0,b.useMemo)(()=>new Map((te?.series||[]).map(e=>[e.key,e])),[te]),re=(0,b.useMemo)(()=>{if(P)return M;let e=y.length,t=Array(e).fill(0);for(let n of te?.series||[])for(let r=0;r<e;r++)t[r]+=n.data[r]||0;return t},[P,M,te,y.length]),ie=(0,b.useMemo)(()=>{if(i===`relative`)return 100;if(N)return Math.ceil(N*1.1)},[i,N]),ae=(0,b.useMemo)(()=>{if(!P)return null;if(!ee.length)return[];let e=ee.map(e=>{let t=e.values.map((e,t)=>M[t]>0?e/M[t]*100:0);for(let e=1;e<t.length;e++)M[e]===0&&(t[e]=t[e-1]);return t}),t=e[0].map(()=>0);return e.map((e,n)=>{let r=[...t];return t=t.map((t,n)=>t+e[n]),{values:e,prevStack:r}})},[P,ee,M]),oe=(0,b.useMemo)(()=>P?j.map((e,t)=>{let n=r===`model`?Ue(e):We(e);if(!ee[t])return null;let i=ae[t];return i?{id:`daily-${r}-${e}`,name:e,type:`line`,stack:`total`,smooth:.2,areaStyle:{opacity:1},lineStyle:{width:0},symbol:`none`,data:i.values,itemStyle:{color:n}}:null}).filter(Boolean):j.map(e=>{let t=r===`model`?Ue(e):We(e),n=ne.get(e)?.data??y.map(()=>0);return{id:`daily-${r}-${e}`,name:e,type:`bar`,stack:`total`,data:n,itemStyle:{color:t},barWidth:k,barMaxWidth:D,barMinWidth:O}}),[P,j,r,ae,ee,ne,y,k,D,O]),se=(0,b.useMemo)(()=>!P||!ae?[]:ae.map((e,t)=>{let n=ee[t],i=Be(r===`model`?Ue(n.name):We(n.name)),a=aH(e.values,e.prevStack);return!a||Math.max(...e.values)<8?null:{name:n.name,labelColor:i,coord:a}}).filter(Boolean),[P,ae,ee,r]),ce=(0,b.useCallback)(()=>{if(!u.current)return;let e=u.current.getEchartsInstance();if(!P||se.length===0){e.setOption({graphic:{elements:[]}},{notMerge:!1});return}let t=se.map(t=>{let[n,r]=e.convertToPixel({xAxisIndex:0,yAxisIndex:0},t.coord);return{type:`text`,left:n,top:r,style:{text:t.name,fill:t.labelColor,fontSize:10,fontWeight:500,textAlign:`center`,textVerticalAlign:`middle`},z:10,silent:!0}});e.setOption({graphic:{elements:t}},{notMerge:!1})},[P,se]);(0,b.useEffect)(()=>{let e=setTimeout(ce,150);return()=>clearTimeout(e)},[P,se,ce]),(0,b.useEffect)(()=>{let e=()=>ce();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[ce]),(0,b.useEffect)(()=>{C()},[C,c]);let L={backgroundColor:`transparent`,tooltip:{trigger:`axis`,axisPointer:{type:P?`line`:`shadow`},appendToBody:!0,confine:!0,formatter:e=>{if(!e?.length)return``;let t=e[0]?.dataIndex,n=re,r=t==null?0:n[t],a=t;if(i===`relative`&&r===0&&t!=null){for(let e=t-1;e>=0;e--)if(n[e]>0){a=e;break}}let o=i===`relative`&&r===0?n[a]??0:r,s=`<b>${e[0]?.axisValue??``}</b><br/>`,c=[...e].filter(e=>e.value>0).sort((e,t)=>(t.value||0)-(e.value||0));for(let e of c){let t=i===`relative`?ee.find(t=>t.name===e.seriesName)?.values[a]??0:e.value;i===`relative`?s+=`${e.marker} ${e.seriesName}: ${e.value.toFixed(1)}% (${x.fn(t)})<br/>`:s+=`${e.marker} ${e.seriesName}: ${x.fn(e.value)}<br/>`}return s+=i===`relative`?`<b>Total: 100% (${x.fn(o)})</b>`:`<b>Total: ${x.fn(r)}</b>`,s}},legend:{data:j,textStyle:{color:`#8b949e`,fontSize:10},top:0,itemWidth:10,itemHeight:10},grid:{left:YV.left,right:YV.right,top:35,bottom:55},dataZoom:[{type:`slider`,startValue:c.startValue,endValue:c.endValue,left:YV.left,right:YV.right,bottom:YV.bottom,height:YV.height,borderColor:`#30363d`,fillerColor:`rgba(99, 102, 241, 0.08)`,handleStyle:{color:`#6366f1`},textStyle:{color:`#484f58`}}],xAxis:{type:`category`,data:y,boundaryGap:i!==`relative`,axisLabel:{color:`#484f58`,fontSize:10,rotate:45},axisTick:{show:!1},axisLine:{lineStyle:{color:`#30363d`}}},yAxis:{type:`value`,min:0,max:i===`relative`?100:ie,scale:!1,axisLabel:{formatter:i===`relative`?e=>e+`%`:e=>x.fn(e),color:`#484f58`},splitLine:{lineStyle:{color:`#21262d`}}},series:oe,...P?Lz:Zz};return(0,z.jsxs)(`div`,{className:`chart-card`,children:[(0,z.jsx)(`button`,{className:`export-btn`,onClick:()=>KV(u),children:`PNG`}),(0,z.jsx)(Ae,{ref:u,echarts:VA,option:L,style:{height:400},theme:`dark`,notMerge:!1,replaceMerge:[`series`,`legend`,`graphic`],lazyUpdate:!1,onChartReady:()=>{ce(),C()},onEvents:{click:e=>{let t=e?.axisValue||e?.name;t&&a(t)},datazoom:e=>{p.current=XV(e,y,d.current),f.current||=requestAnimationFrame(()=>{f.current=0,p.current&&=(l(p.current),null),P&&ce()})}}})]})});function cH({data:e,range:t=`total`,chartMode:n=`default`,navigateToDayRequest:r=null,onNavigateToDayConsumed:i}){let[a,o]=(0,b.useState)(`tokens`),[s,c]=(0,b.useState)(`model`),[l,u]=(0,b.useState)(`absolute`),[d,f]=(0,b.useState)(null);if(!e?.data?.length)return(0,z.jsx)(`div`,{style:{color:`var(--text-muted)`,padding:`2rem`},children:`No data`});let p=(0,b.useMemo)(()=>nB(e),[e]);(0,b.useEffect)(()=>{!d&&p[0]&&f(p[p.length-1]?.date||p[0]?.date)},[p,d]);let m=(0,b.useCallback)(e=>{e&&f(e)},[]),h=p.find(e=>e.date===d)||null;return(0,z.jsxs)(`div`,{className:`animate-in`,children:[(0,z.jsxs)(`div`,{className:`section-header`,children:[(0,z.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.75rem`},children:(0,z.jsx)(`span`,{className:`section-title`,children:`Daily Usage`})}),(0,z.jsxs)(`div`,{style:{display:`flex`,gap:`0.5rem`},children:[(0,z.jsx)(`div`,{className:`btn-group`,children:UV.map(e=>(0,z.jsx)(`button`,{className:`btn ${a===e.key?`active`:``}`,onClick:()=>o(e.key),children:e.label},e.key))}),(0,z.jsx)(`div`,{className:`btn-group`,children:WV.map(e=>(0,z.jsx)(`button`,{className:`btn ${s===e.key?`active`:``}`,onClick:()=>c(e.key),children:e.label},e.key))}),(0,z.jsx)(`div`,{className:`btn-group`,children:GV.map(e=>(0,z.jsx)(`button`,{className:`btn ${l===e.key?`active`:``}`,onClick:()=>u(e.key),children:e.label},e.key))})]})]}),(0,z.jsx)(sH,{daily:p,range:t,metric:a,split:s,displayMode:l,onSelectDate:m,navigateToDayRequest:r,onNavigateToDayConsumed:i}),h&&(0,z.jsxs)(`div`,{className:`chart-card`,children:[(0,z.jsx)(`div`,{className:`chart-title`,style:{marginBottom:`0.75rem`},children:iH(h,a)}),(0,z.jsx)(oH,{day:h,chartMode:n})]})]})}function lH(){return{accessor:(e,t)=>typeof e==`function`?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function uH(e,t){return typeof e==`function`?e(t):e}function dH(e,t){return n=>{t.setState(t=>({...t,[e]:uH(n,t[e])}))}}function fH(e){return e instanceof Function}function pH(e){return Array.isArray(e)&&e.every(e=>typeof e==`number`)}function mH(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i!=null&&i.length&&r(i)})};return r(e),n}function hH(e,t,n){let r=[],i;return a=>{let o;n.key&&n.debug&&(o=Date.now());let s=e(a);if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug&&(c=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
29
+ font-size: .6rem;
30
+ font-weight: bold;
31
+ color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,n?.key)}return i}}function gH(e,t,n,r){return{debug:()=>e?.debugAll??e[t],key:!1,onChange:r}}function _H(e,t,n,r){let i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>i.getValue()??e.options.renderFallbackValue,getContext:hH(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),gH(e.options,`debugCells`,`cell.getContext`))};return e._features.forEach(r=>{r.createCell==null||r.createCell(i,n,t,e)},{}),i}function vH(e,t,n,r){let i={...e._getDefaultColumnDef(),...t},a=i.accessorKey,o=i.id??(a?typeof String.prototype.replaceAll==`function`?a.replaceAll(`.`,`_`):a.replace(/\./g,`_`):void 0)??(typeof i.header==`string`?i.header:void 0),s;if(i.accessorFn?s=i.accessorFn:a&&(s=a.includes(`.`)?e=>{let t=e;for(let e of a.split(`.`))t=t?.[e];return t}:e=>e[i.accessorKey]),!o)throw Error();let c={id:`${String(o)}`,accessorFn:s,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:hH(()=>[!0],()=>[c,...c.columns?.flatMap(e=>e.getFlatColumns())],gH(e.options,`debugColumns`,`column.getFlatColumns`)),getLeafColumns:hH(()=>[e._getOrderColumnsFn()],e=>{var t;return(t=c.columns)!=null&&t.length?e(c.columns.flatMap(e=>e.getLeafColumns())):[c]},gH(e.options,`debugColumns`,`column.getLeafColumns`))};for(let t of e._features)t.createColumn==null||t.createColumn(c,e);return c}var yH=`debugHeaders`;function bH(e,t,n){let r={id:n.id??t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(t=>{t.createHeader==null||t.createHeader(r,e)}),r}var xH={createTable:e=>{e.getHeaderGroups=hH(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{let a=r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],o=i?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],s=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id)));return SH(t,[...a,...s,...o],e)},gH(e.options,yH,`getHeaderGroups`)),e.getCenterHeaderGroups=hH(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id))),SH(t,n,e,`center`)),gH(e.options,yH,`getCenterHeaderGroups`)),e.getLeftHeaderGroups=hH(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>SH(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`left`),gH(e.options,yH,`getLeftHeaderGroups`)),e.getRightHeaderGroups=hH(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>SH(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`right`),gH(e.options,yH,`getRightHeaderGroups`)),e.getFooterGroups=hH(()=>[e.getHeaderGroups()],e=>[...e].reverse(),gH(e.options,yH,`getFooterGroups`)),e.getLeftFooterGroups=hH(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),gH(e.options,yH,`getLeftFooterGroups`)),e.getCenterFooterGroups=hH(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),gH(e.options,yH,`getCenterFooterGroups`)),e.getRightFooterGroups=hH(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),gH(e.options,yH,`getRightFooterGroups`)),e.getFlatHeaders=hH(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),gH(e.options,yH,`getFlatHeaders`)),e.getLeftFlatHeaders=hH(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),gH(e.options,yH,`getLeftFlatHeaders`)),e.getCenterFlatHeaders=hH(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),gH(e.options,yH,`getCenterFlatHeaders`)),e.getRightFlatHeaders=hH(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),gH(e.options,yH,`getRightFlatHeaders`)),e.getCenterLeafHeaders=hH(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),gH(e.options,yH,`getCenterLeafHeaders`)),e.getLeftLeafHeaders=hH(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),gH(e.options,yH,`getLeftLeafHeaders`)),e.getRightLeafHeaders=hH(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),gH(e.options,yH,`getRightLeafHeaders`)),e.getLeafHeaders=hH(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>[...e[0]?.headers??[],...t[0]?.headers??[],...n[0]?.headers??[]].map(e=>e.getLeafHeaders()).flat(),gH(e.options,yH,`getLeafHeaders`))}};function SH(e,t,n,r){let i=0,a=function(e,t){t===void 0&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;(n=e.columns)!=null&&n.length&&a(e.columns,t+1)},0)};a(e);let o=[],s=(e,t)=>{let i={depth:t,id:[r,`${t}`].filter(Boolean).join(`_`),headers:[]},a=[];e.forEach(e=>{let o=[...a].reverse()[0],s=e.column.depth===i.depth,c,l=!1;if(s&&e.column.parent?c=e.column.parent:(c=e.column,l=!0),o&&o?.column===c)o.subHeaders.push(e);else{let i=bH(n,c,{id:[r,t,c.id,e?.id].filter(Boolean).join(`_`),isPlaceholder:l,placeholderId:l?`${a.filter(e=>e.column===c).length}`:void 0,depth:t,index:a.length});i.subHeaders.push(e),a.push(i)}i.headers.push(e),e.headerGroup=i}),o.push(i),t>0&&s(a,t-1)};s(t.map((e,t)=>bH(n,e,{depth:i,index:t})),i-1),o.reverse();let c=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],c(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)})):t=1;let i=Math.min(...r);return n+=i,e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return c(o[0]?.headers??[]),o}var CH=(e,t,n,r,i,a,o)=>{let s={id:t,index:r,original:n,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t])},renderValue:t=>s.getValue(t)??e.options.renderFallbackValue,subRows:a??[],getLeafRows:()=>mH(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:hH(()=>[e.getAllLeafColumns()],t=>t.map(t=>_H(e,s,t,t.id)),gH(e.options,`debugRows`,`getAllCells`)),_getAllCellsByColumnId:hH(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),gH(e.options,`debugRows`,`getAllCellsByColumnId`))};for(let t=0;t<e._features.length;t++){let n=e._features[t];n==null||n.createRow==null||n.createRow(s,e)}return s},wH={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},TH=(e,t,n)=>{var r,i;let a=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(a))};TH.autoRemove=e=>FH(e);var EH=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};EH.autoRemove=e=>FH(e);var DH=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};DH.autoRemove=e=>FH(e);var OH=(e,t,n)=>e.getValue(t)?.includes(n);OH.autoRemove=e=>FH(e);var kH=(e,t,n)=>!n.some(n=>{var r;return!((r=e.getValue(t))!=null&&r.includes(n))});kH.autoRemove=e=>FH(e)||!(e!=null&&e.length);var AH=(e,t,n)=>n.some(n=>e.getValue(t)?.includes(n));AH.autoRemove=e=>FH(e)||!(e!=null&&e.length);var jH=(e,t,n)=>e.getValue(t)===n;jH.autoRemove=e=>FH(e);var MH=(e,t,n)=>e.getValue(t)==n;MH.autoRemove=e=>FH(e);var NH=(e,t,n)=>{let[r,i]=n,a=e.getValue(t);return a>=r&&a<=i};NH.resolveFilterValue=e=>{let[t,n]=e,r=typeof t==`number`?t:parseFloat(t),i=typeof n==`number`?n:parseFloat(n),a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){let e=a;a=o,o=e}return[a,o]},NH.autoRemove=e=>FH(e)||FH(e[0])&&FH(e[1]);var PH={includesString:TH,includesStringSensitive:EH,equalsString:DH,arrIncludes:OH,arrIncludesAll:kH,arrIncludesSome:AH,equals:jH,weakEquals:MH,inNumberRange:NH};function FH(e){return e==null||e===``}var IH={getDefaultColumnDef:()=>({filterFn:`auto`}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:dH(`columnFilters`,e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);return typeof n==`string`?PH.includesString:typeof n==`number`?PH.inNumberRange:typeof n==`boolean`||typeof n==`object`&&n?PH.equals:Array.isArray(n)?PH.arrIncludes:PH.weakEquals},e.getFilterFn=()=>fH(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn===`auto`?e.getAutoFilterFn():t.options.filterFns?.[e.columnDef.filterFn]??PH[e.columnDef.filterFn],e.getCanFilter=()=>(e.columnDef.enableColumnFilter??!0)&&(t.options.enableColumnFilters??!0)&&(t.options.enableFilters??!0)&&!!e.accessorFn,e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(t=>t.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>t.getState().columnFilters?.findIndex(t=>t.id===e.id)??-1,e.setFilterValue=n=>{t.setColumnFilters(t=>{let r=e.getFilterFn(),i=t?.find(t=>t.id===e.id),a=uH(n,i?i.value:void 0);if(LH(r,a,e))return t?.filter(t=>t.id!==e.id)??[];let o={id:e.id,value:a};return i?t?.map(t=>t.id===e.id?o:t)??[]:t!=null&&t.length?[...t,o]:[o]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(e=>uH(t,e)?.filter(e=>{let t=n.find(t=>t.id===e.id);return!(t&&LH(t.getFilterFn(),e.value,t))}))},e.resetColumnFilters=t=>{e.setColumnFilters(t?[]:e.initialState?.columnFilters??[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function LH(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||t===void 0||typeof t==`string`&&!t}var RH={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+(typeof r==`number`?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r===void 0?n>=n&&(r=i=n):(r>n&&(r=n),i<n&&(i=n)))}),[r,i]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let i=t.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!pH(n))return;if(n.length===1)return n[0];let r=Math.floor(n.length/2),i=n.sort((e,t)=>e-t);return n.length%2==0?(i[r-1]+i[r])/2:i[r]},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},zH={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t;return((t=e.getValue())==null||t.toString==null?void 0:t.toString())??null},aggregationFn:`auto`}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:dH(`grouping`,e),groupedColumnMode:`reorder`}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(t=>t!==e.id):[...t??[],e.id])},e.getCanGroup=()=>(e.columnDef.enableGrouping??!0)&&(t.options.enableGrouping??!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue),e.getIsGrouped=()=>t.getState().grouping?.includes(e.id),e.getGroupedIndex=()=>t.getState().grouping?.indexOf(e.id),e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);if(typeof n==`number`)return RH.sum;if(Object.prototype.toString.call(n)===`[object Date]`)return RH.extent},e.getAggregationFn=()=>{if(!e)throw Error();return fH(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn===`auto`?e.getAutoAggregationFn():t.options.aggregationFns?.[e.columnDef.aggregationFn]??RH[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{e.setGrouping(t?[]:e.initialState?.grouping??[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((t=n.subRows)!=null&&t.length)}}};function BH(e,t,n){if(!(t!=null&&t.length)||!n)return e;let r=e.filter(e=>!t.includes(e.id));return n===`remove`?r:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...r]}var VH={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:dH(`columnOrder`,e)}),createColumn:(e,t)=>{e.getIndex=hH(e=>[QH(t,e)],t=>t.findIndex(t=>t.id===e.id),gH(t.options,`debugColumns`,`getIndex`)),e.getIsFirstColumn=n=>QH(t,n)[0]?.id===e.id,e.getIsLastColumn=n=>{let r=QH(t,n);return r[r.length-1]?.id===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{e.setColumnOrder(t?[]:e.initialState.columnOrder??[])},e._getOrderColumnsFn=hH(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let i=[];if(!(e!=null&&e.length))i=r;else{let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}return BH(i,t,n)},gH(e.options,`debugTable`,`_getOrderColumnsFn`))}},HH=()=>({left:[],right:[]}),UH={getInitialState:e=>({columnPinning:HH(),...e}),getDefaultOptions:e=>({onColumnPinningChange:dH(`columnPinning`,e)}),createColumn:(e,t)=>{e.pin=n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>n===`right`?{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:[...(e?.right??[]).filter(e=>!(r!=null&&r.includes(e))),...r]}:n===`left`?{left:[...(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),...r],right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))}:{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))})},e.getCanPin=()=>e.getLeafColumns().some(e=>(e.columnDef.enablePinning??!0)&&(t.options.enableColumnPinning??t.options.enablePinning??!0)),e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`left`:o?`right`:!1},e.getPinnedIndex=()=>{var n;let r=e.getIsPinned();return r?((n=t.getState().columnPinning)==null||(n=n[r])==null?void 0:n.indexOf(e.id))??-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=hH(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.column.id))},gH(t.options,`debugRows`,`getCenterVisibleCells`)),e.getLeftVisibleCells=hH(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`left`})),gH(t.options,`debugRows`,`getLeftVisibleCells`)),e.getRightVisibleCells=hH(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`right`})),gH(t.options,`debugRows`,`getRightVisibleCells`))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>e.setColumnPinning(t?HH():e.initialState?.columnPinning??HH()),e.getIsSomeColumnsPinned=t=>{let n=e.getState().columnPinning;return t?!!n[t]?.length:!!(n.left?.length||n.right?.length)},e.getLeftLeafColumns=hH(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),gH(e.options,`debugColumns`,`getLeftLeafColumns`)),e.getRightLeafColumns=hH(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),gH(e.options,`debugColumns`,`getRightLeafColumns`)),e.getCenterLeafColumns=hH(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.id))},gH(e.options,`debugColumns`,`getCenterLeafColumns`))}};function WH(e){return e||(typeof document<`u`?document:null)}var GH={size:150,minSize:20,maxSize:2**53-1},KH=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),qH={getDefaultColumnDef:()=>GH,getInitialState:e=>({columnSizing:{},columnSizingInfo:KH(),...e}),getDefaultOptions:e=>({columnResizeMode:`onEnd`,columnResizeDirection:`ltr`,onColumnSizingChange:dH(`columnSizing`,e),onColumnSizingInfoChange:dH(`columnSizingInfo`,e)}),createColumn:(e,t)=>{e.getSize=()=>{let n=t.getState().columnSizing[e.id];return Math.min(Math.max(e.columnDef.minSize??GH.minSize,n??e.columnDef.size??GH.size),e.columnDef.maxSize??GH.maxSize)},e.getStart=hH(e=>[e,QH(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),gH(t.options,`debugColumns`,`getStart`)),e.getAfter=hH(e=>[e,QH(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),gH(t.options,`debugColumns`,`getAfter`)),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>(e.columnDef.enableResizing??!0)&&(t.options.enableColumnResizing??!0),e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,n=e=>{e.subHeaders.length?e.subHeaders.forEach(n):t+=e.column.getSize()??0};return n(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{let r=t.getColumn(e.column.id),i=r?.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),XH(a)&&a.touches&&a.touches.length>1))return;let o=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],c=XH(a)?Math.round(a.touches[0].clientX):a.clientX,l={},u=(e,n)=>{typeof n==`number`&&(t.setColumnSizingInfo(e=>{let r=t.options.columnResizeDirection===`rtl`?-1:1,i=(n-(e?.startOffset??0))*r,a=Math.max(i/(e?.startSize??0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;l[t]=Math.round(Math.max(n+n*a,0)*100)/100}),{...e,deltaOffset:i,deltaPercentage:a}}),(t.options.columnResizeMode===`onChange`||e===`end`)&&t.setColumnSizing(e=>({...e,...l})))},d=e=>u(`move`,e),f=e=>{u(`end`,e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=WH(n),m={moveHandler:e=>d(e.clientX),upHandler:e=>{p?.removeEventListener(`mousemove`,m.moveHandler),p?.removeEventListener(`mouseup`,m.upHandler),f(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{p?.removeEventListener(`touchmove`,h.moveHandler),p?.removeEventListener(`touchend`,h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(e.touches[0]?.clientX)}},g=YH()?{passive:!1}:!1;XH(a)?(p?.addEventListener(`touchmove`,h.moveHandler,g),p?.addEventListener(`touchend`,h.upHandler,g)):(p?.addEventListener(`mousemove`,m.moveHandler,g),p?.addEventListener(`mouseup`,m.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:c,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{e.setColumnSizing(t?{}:e.initialState.columnSizing??{})},e.resetHeaderSizeInfo=t=>{e.setColumnSizingInfo(t?KH():e.initialState.columnSizingInfo??KH())},e.getTotalSize=()=>e.getHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getLeftTotalSize=()=>e.getLeftHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getCenterTotalSize=()=>e.getCenterHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getRightTotalSize=()=>e.getRightHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0}},JH=null;function YH(){if(typeof JH==`boolean`)return JH;let e=!1;try{let t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener(`test`,n,t),window.removeEventListener(`test`,n)}catch{e=!1}return JH=e,JH}function XH(e){return e.type===`touchstart`}var ZH={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:dH(`columnVisibility`,e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{let n=e.columns;return(n.length?n.some(e=>e.getIsVisible()):t.getState().columnVisibility?.[e.id])??!0},e.getCanHide=()=>(e.columnDef.enableHiding??!0)&&(t.options.enableHiding??!0),e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=hH(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),gH(t.options,`debugRows`,`_getAllVisibleCells`)),e.getVisibleCells=hH(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],gH(t.options,`debugRows`,`getVisibleCells`))},createTable:e=>{let t=(t,n)=>hH(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join(`_`)],e=>e.filter(e=>e.getIsVisible==null?void 0:e.getIsVisible()),gH(e.options,`debugColumns`,t));e.getVisibleFlatColumns=t(`getVisibleFlatColumns`,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(`getVisibleLeafColumns`,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(`getLeftVisibleLeafColumns`,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(`getRightVisibleLeafColumns`,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(`getCenterVisibleLeafColumns`,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{e.setColumnVisibility(t?{}:e.initialState.columnVisibility??{})},e.toggleAllColumnsVisible=t=>{t??=!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(n.getCanHide!=null&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(e.getIsVisible!=null&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>e.getIsVisible==null?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{e.toggleAllColumnsVisible(t.target?.checked)}}};function QH(e,t){return t?t===`center`?e.getCenterVisibleLeafColumns():t===`left`?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}var $H={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,`__global__`),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,`__global__`),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,`__global__`),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},eU={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:dH(`globalFilter`,e),globalFilterFn:`auto`,getColumnCanGlobalFilter:t=>{var n;let r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r==`string`||typeof r==`number`}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>(e.columnDef.enableGlobalFilter??!0)&&(t.options.enableGlobalFilter??!0)&&(t.options.enableFilters??!0)&&((t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))??!0)&&!!e.accessorFn},createTable:e=>{e.getGlobalAutoFilterFn=()=>PH.includesString,e.getGlobalFilterFn=()=>{let{globalFilterFn:t}=e.options;return fH(t)?t:t===`auto`?e.getGlobalAutoFilterFn():e.options.filterFns?.[t]??PH[t]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},tU={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:dH(`expanded`,e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetExpanded??!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=t=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{e.setExpanded(t?{}:e.initialState?.expanded??{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{t.persist==null||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return t===!0||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return typeof t==`boolean`?t===!0:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let n=e.split(`.`);t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{let i=r===!0?!0:!!(r!=null&&r[e.id]),a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n??=!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){let{[e.id]:t,...n}=a;return n}return r})},e.getIsExpanded=()=>{let n=t.getState().expanded;return!!((t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))??(n===!0||n?.[e.id]))},e.getCanExpand=()=>{var n;return(t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))??((t.options.enableExpanding??!0)&&!!((n=e.subRows)!=null&&n.length))},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},nU=0,rU=10,iU=()=>({pageIndex:nU,pageSize:rU}),aU={getInitialState:e=>({...e,pagination:{...iU(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:dH(`pagination`,e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetPageIndex??!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=t=>e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(e=>uH(t,e)),e.resetPagination=t=>{e.setPagination(t?iU():e.initialState.pagination??iU())},e.setPageIndex=t=>{e.setPagination(n=>{let r=uH(t,n.pageIndex),i=e.options.pageCount===void 0||e.options.pageCount===-1?2**53-1:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n;e.setPageIndex(t?nU:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageIndex)??nU)},e.resetPageSize=t=>{var n;e.setPageSize(t?rU:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageSize)??rU)},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,uH(t,e.pageSize)),r=e.pageSize*e.pageIndex,i=Math.floor(r/n);return{...e,pageIndex:i,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{let r=uH(t,e.options.pageCount??-1);return typeof r==`number`&&(r=Math.max(-1,r)),{...n,pageCount:r}}),e.getPageOptions=hH(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},gH(e.options,`debugTable`,`getPageOptions`)),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return n===-1?!0:n===0?!1:t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>e.options.pageCount??Math.ceil(e.getRowCount()/e.getState().pagination.pageSize),e.getRowCount=()=>e.options.rowCount??e.getPrePaginationRowModel().rows.length}},oU=()=>({top:[],bottom:[]}),sU={getInitialState:e=>({rowPinning:oU(),...e}),getDefaultOptions:e=>({onRowPinningChange:dH(`rowPinning`,e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{let a=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],o=i?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(e=>n===`bottom`?{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:[...(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)]}:n===`top`?{top:[...(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)],bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))}:{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))})},e.getCanPin=()=>{let{enableRowPinning:n,enablePinning:r}=t.options;return typeof n==`function`?n(e):n??r??!0},e.getIsPinned=()=>{let n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`top`:o?`bottom`:!1},e.getPinnedIndex=()=>{let n=e.getIsPinned();return n?((n===`top`?t.getTopRows():t.getBottomRows())?.map(e=>{let{id:t}=e;return t}))?.indexOf(e.id)??-1:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>e.setRowPinning(t?oU():e.initialState?.rowPinning??oU()),e.getIsSomeRowsPinned=t=>{let n=e.getState().rowPinning;return t?!!n[t]?.length:!!(n.top?.length||n.bottom?.length)},e._getPinnedRows=(t,n,r)=>(e.options.keepPinnedRows??!0?(n??[]).map(t=>{let n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(n??[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r})),e.getTopRows=hH(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,`top`),gH(e.options,`debugRows`,`getTopRows`)),e.getBottomRows=hH(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,`bottom`),gH(e.options,`debugRows`,`getBottomRows`)),e.getCenterRows=hH(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let r=new Set([...t??[],...n??[]]);return e.filter(e=>!r.has(e.id))},gH(e.options,`debugRows`,`getCenterRows`))}},cU={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:dH(`rowSelection`,e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>e.setRowSelection(t?{}:e.initialState.rowSelection??{}),e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=t===void 0?!e.getIsAllRowsSelected():t;let r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):i.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let r=t===void 0?!e.getIsAllPageRowsSelected():t,i={...n};return e.getRowModel().rows.forEach(t=>{lU(i,t.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=hH(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?uU(e,n):{rows:[],flatRows:[],rowsById:{}},gH(e.options,`debugTable`,`getSelectedRowModel`)),e.getFilteredSelectedRowModel=hH(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?uU(e,n):{rows:[],flatRows:[],rowsById:{}},gH(e.options,`debugTable`,`getFilteredSelectedRowModel`)),e.getGroupedSelectedRowModel=hH(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?uU(e,n):{rows:[],flatRows:[],rowsById:{}},gH(e.options,`debugTable`,`getGroupedSelectedRowModel`)),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{let t=Object.keys(e.getState().rowSelection??{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{let i=e.getIsSelected();t.setRowSelection(a=>{if(n=n===void 0?!i:n,e.getCanSelect()&&i===n)return a;let o={...a};return lU(o,e.id,n,r?.selectChildren??!0,t),o})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return dU(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return fU(e,n)===`some`},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return fU(e,n)===`all`},e.getCanSelect=()=>typeof t.options.enableRowSelection==`function`?t.options.enableRowSelection(e):t.options.enableRowSelection??!0,e.getCanSelectSubRows=()=>typeof t.options.enableSubRowSelection==`function`?t.options.enableSubRowSelection(e):t.options.enableSubRowSelection??!0,e.getCanMultiSelect=()=>typeof t.options.enableMultiRowSelection==`function`?t.options.enableMultiRowSelection(e):t.options.enableMultiRowSelection??!0,e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{t&&e.toggleSelected(n.target?.checked)}}}},lU=(e,t,n,r,i)=>{var a;let o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),o.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(t=>lU(e,t.id,n,r,i))};function uU(e,t){let n=e.getState().rowSelection,r=[],i={},a=function(e,t){return e.map(e=>{var t;let o=dU(e,n);if(o&&(r.push(e),i[e.id]=e),(t=e.subRows)!=null&&t.length&&(e={...e,subRows:a(e.subRows)}),o)return e}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function dU(e,t){return t[e.id]??!1}function fU(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(e=>{if(!(a&&!i)&&(e.getCanSelect()&&(dU(e,t)?a=!0:i=!1),e.subRows&&e.subRows.length)){let n=fU(e,t);n===`all`?a=!0:(n===`some`&&(a=!0),i=!1)}}),i?`all`:a?`some`:!1}var pU=/([0-9]+)/gm,mU=(e,t,n)=>SU(xU(e.getValue(n)).toLowerCase(),xU(t.getValue(n)).toLowerCase()),hU=(e,t,n)=>SU(xU(e.getValue(n)),xU(t.getValue(n))),gU=(e,t,n)=>bU(xU(e.getValue(n)).toLowerCase(),xU(t.getValue(n)).toLowerCase()),_U=(e,t,n)=>bU(xU(e.getValue(n)),xU(t.getValue(n))),vU=(e,t,n)=>{let r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},yU=(e,t,n)=>bU(e.getValue(n),t.getValue(n));function bU(e,t){return e===t?0:e>t?1:-1}function xU(e){return typeof e==`number`?isNaN(e)||e===1/0||e===-1/0?``:String(e):typeof e==`string`?e:``}function SU(e,t){let n=e.split(pU).filter(Boolean),r=t.split(pU).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),i=parseInt(e,10),a=parseInt(t,10),o=[i,a].sort();if(isNaN(o[0])){if(e>t)return 1;if(t>e)return-1;continue}if(isNaN(o[1]))return isNaN(i)?-1:1;if(i>a)return 1;if(a>i)return-1}return n.length-r.length}var CU={alphanumeric:mU,alphanumericCaseSensitive:hU,text:gU,textCaseSensitive:_U,datetime:vU,basic:yU},wU=[xH,ZH,VH,UH,wH,IH,$H,eU,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:`auto`,sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:dH(`sorting`,e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=t?.getValue(e.id);if(Object.prototype.toString.call(n)===`[object Date]`)return CU.datetime;if(typeof n==`string`&&(r=!0,n.split(pU).length>1))return CU.alphanumeric}return r?CU.text:CU.basic},e.getAutoSortDir=()=>typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id)==`string`?`asc`:`desc`,e.getSortingFn=()=>{if(!e)throw Error();return fH(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn===`auto`?e.getAutoSortingFn():t.options.sortingFns?.[e.columnDef.sortingFn]??CU[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{let i=e.getNextSortingOrder(),a=n!=null;t.setSorting(o=>{let s=o?.find(t=>t.id===e.id),c=o?.findIndex(t=>t.id===e.id),l=[],u,d=a?n:i===`desc`;return u=o!=null&&o.length&&e.getCanMultiSort()&&r?s?`toggle`:`add`:o!=null&&o.length&&c!==o.length-1?`replace`:s?`toggle`:`replace`,u===`toggle`&&(a||i||(u=`remove`)),u===`add`?(l=[...o,{id:e.id,desc:d}],l.splice(0,l.length-(t.options.maxMultiSortColCount??2**53-1))):l=u===`toggle`?o.map(t=>t.id===e.id?{...t,desc:d}:t):u===`remove`?o.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],l})},e.getFirstSortDir=()=>e.columnDef.sortDescFirst??t.options.sortDescFirst??e.getAutoSortDir()===`desc`?`desc`:`asc`,e.getNextSortingOrder=n=>{let r=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==r&&(t.options.enableSortingRemoval??!0)&&(!n||(t.options.enableMultiRemove??!0))?!1:i===`desc`?`asc`:`desc`:r},e.getCanSort=()=>(e.columnDef.enableSorting??!0)&&(t.options.enableSorting??!0)&&!!e.accessorFn,e.getCanMultiSort=()=>e.columnDef.enableMultiSort??t.options.enableMultiSort??!!e.accessorFn,e.getIsSorted=()=>{let n=t.getState().sorting?.find(t=>t.id===e.id);return n?n.desc?`desc`:`asc`:!1},e.getSortIndex=()=>t.getState().sorting?.findIndex(t=>t.id===e.id)??-1,e.clearSorting=()=>{t.setSorting(t=>t!=null&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{e.setSorting(t?[]:e.initialState?.sorting??[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},zH,tU,aU,sU,cU,qH];function TU(e){let t=[...wU,...e._features??[]],n={_features:t},r=n._features.reduce((e,t)=>Object.assign(e,t.getDefaultOptions==null?void 0:t.getDefaultOptions(n)),{}),i=e=>n.options.mergeOptions?n.options.mergeOptions(r,e):{...r,...e},a={...e.initialState??{}};n._features.forEach(e=>{a=(e.getInitialState==null?void 0:e.getInitialState(a))??a});let o=[],s=!1,c={_features:t,options:{...r,...e},initialState:a,_queue:e=>{o.push(e),s||(s=!0,Promise.resolve().then(()=>{for(;o.length;)o.shift()();s=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{n.options=i(uH(e,n.options))},getState:()=>n.options.state,setState:e=>{n.options.onStateChange==null||n.options.onStateChange(e)},_getRowId:(e,t,r)=>(n.options.getRowId==null?void 0:n.options.getRowId(e,t,r))??`${r?[r.id,t].join(`.`):t}`,getCoreRowModel:()=>(n._getCoreRowModel||=n.options.getCoreRowModel(n),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e];if(!r&&(r=n.getCoreRowModel().rowsById[e],!r))throw Error();return r},_getDefaultColumnDef:hH(()=>[n.options.defaultColumn],e=>(e??={},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t;return((t=e.renderValue())==null||t.toString==null?void 0:t.toString())??null},...n._features.reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef==null?void 0:t.getDefaultColumnDef()),{}),...e}),gH(e,`debugColumns`,`_getDefaultColumnDef`)),_getColumnDefs:()=>n.options.columns,getAllColumns:hH(()=>[n._getColumnDefs()],e=>{let t=function(e,r,i){return i===void 0&&(i=0),e.map(e=>{let a=vH(n,e,i,r),o=e;return a.columns=o.columns?t(o.columns,a,i+1):[],a})};return t(e)},gH(e,`debugColumns`,`getAllColumns`)),getAllFlatColumns:hH(()=>[n.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),gH(e,`debugColumns`,`getAllFlatColumns`)),_getAllFlatColumnsById:hH(()=>[n.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),gH(e,`debugColumns`,`getAllFlatColumnsById`)),getAllLeafColumns:hH(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),gH(e,`debugColumns`,`getAllLeafColumns`)),getColumn:e=>n._getAllFlatColumnsById()[e]};Object.assign(n,c);for(let e=0;e<n._features.length;e++){let t=n._features[e];t==null||t.createTable==null||t.createTable(n)}return n}function EU(){return e=>hH(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,a){i===void 0&&(i=0);let o=[];for(let c=0;c<t.length;c++){let l=CH(e,e._getRowId(t[c],c,a),t[c],c,i,void 0,a?.id);if(n.flatRows.push(l),n.rowsById[l.id]=l,o.push(l),e.options.getSubRows){var s;l.originalSubRows=e.options.getSubRows(t[c],c),(s=l.originalSubRows)!=null&&s.length&&(l.subRows=r(l.originalSubRows,i+1,l))}}return o};return n.rows=r(t),n},gH(e.options,`debugTable`,`getRowModel`,()=>e._autoResetPageIndex()))}function DU(){return e=>hH(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;let r=e.getState().sorting,i=[],a=r.filter(t=>e.getColumn(t.id)?.getCanSort()),o={};a.forEach(t=>{let n=e.getColumn(t.id);n&&(o[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});let s=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let n=0;n<a.length;n+=1){let r=a[n],i=o[r.id],s=i.sortUndefined,c=r?.desc??!1,l=0;if(s){let n=e.getValue(r.id),i=t.getValue(r.id),a=n===void 0,o=i===void 0;if(a||o){if(s===`first`)return a?-1:1;if(s===`last`)return a?1:-1;l=a&&o?0:a?s:-s}}if(l===0&&(l=i.sortingFn(e,t,r.id)),l!==0)return c&&(l*=-1),i.invertSorting&&(l*=-1),l}return e.index-t.index}),t.forEach(e=>{var t;i.push(e),(t=e.subRows)!=null&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},gH(e.options,`debugTable`,`getSortedRowModel`,()=>e._autoResetPageIndex()))}function OU(e,t){return e?kU(e)?b.createElement(e,t):e:null}function kU(e){return AU(e)||typeof e==`function`||jU(e)}function AU(e){return typeof e==`function`&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function jU(e){return typeof e==`object`&&typeof e.$$typeof==`symbol`&&[`react.memo`,`react.forward_ref`].includes(e.$$typeof.description)}function MU(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=b.useState(()=>({current:TU(t)})),[r,i]=b.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),e.onStateChange==null||e.onStateChange(t)}})),n.current}var NU=_();function PU(e,t,n){let r=Array(e);return new Proxy(r,{get(r,i,a){if(typeof i==`string`){let a=i.charCodeAt(0);if(a>=48&&a<=57){let a=+i;if(Number.isInteger(a)&&a>=0&&a<e){let e=r[a];if(!e){let i=t[a*2];e=r[a]={index:a,key:n(a),start:i,size:t[a*2+1],end:i+t[a*2+1],lane:0}}return e}}if(i===`length`)return e}return Reflect.get(r,i,a)}})}function FU(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o=e();return o.length!==r.length||o.some((e,t)=>r[t]!==e)?(r=o,i=t(...o),n?.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1,i):i}return o.updateDeps=e=>{r=e},o}function IU(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var LU=(e,t)=>Math.abs(e-t)<1.01,RU=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},zU,BU=()=>{if(zU!==void 0)return zU;if(typeof navigator>`u`)return zU=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return zU=!0;let e=navigator.maxTouchPoints;return zU=navigator.platform===`MacIntel`&&e!==void 0&&e>0},VU=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},HU=e=>e,UU=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},WU=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(VU(n)),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(VU(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},GU={passive:!0},KU=typeof window>`u`?!0:`onscrollend`in window,qU=(e,t,n)=>{let r=e.scrollElement;if(!r)return;let i=e.targetWindow;if(!i)return;let a=e.options.useScrollendEvent&&KU,o=0,s=a?null:RU(i,()=>t(o,!1),e.options.isScrollingResetDelay),c=e=>()=>{o=n(r),s?.(),t(o,e)},l=c(!0),u=c(!1);return r.addEventListener(`scroll`,l,GU),a&&r.addEventListener(`scrollend`,u,GU),()=>{r.removeEventListener(`scroll`,l),a&&r.removeEventListener(`scrollend`,u)}},JU=(e,t)=>qU(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),YU=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),i=n.itemSizeCache.get(r);if(i!==void 0)return i}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},XU=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:e+t,behavior:n})},ZU=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e;return((e=this.targetWindow?.performance)?.now)?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){this.observer.unobserve(t);for(let[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}return}this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{let t={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:HU,rangeExtractor:UU,onChange:()=>{},measureElement:YU,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,anchorTo:`start`,followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:`estimate`,useCachedMeasurements:!1};for(let n in e){let r=e[n];r!==void 0&&(t[n]=r)}let n=this.options,r=null,i=null,a=!1;if(n!==void 0&&n.enabled&&t.enabled&&t.anchorTo===`end`&&this.scrollElement!==null){let e=n.count,o=t.count,s=this.getMeasurements(),c=e>0?s[0]?.key??n.getItemKey(0):null,l=e>0?s[e-1]?.key??n.getItemKey(e-1):null;if(o!==e||e>0&&o>0&&(t.getItemKey(0)!==c||t.getItemKey(o-1)!==l)){a=!0;let c=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??s[0]:null;c&&(r=[c.key,this.getScrollOffset()-c.start]);let u=t.followOnAppend===!0?`auto`:t.followOnAppend||null;u&&o>e&&this.isAtEnd(n.scrollEndThreshold)&&(e===0||t.getItemKey(o-1)!==l)&&(i=u)}}this.options=t,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let o=!1,s=0;if(r&&this.scrollOffset!==null){let[e,t]=r,n=this.getMeasurements(),{count:i,getItemKey:a}=this.options,c=0;for(;c<i&&a(c)!==e;)c++;if(c<i){let e=n[c];if(e){let n=e.start+t;n!==this.scrollOffset&&(s=n-this.scrollOffset,this.scrollOffset=n,o=!0)}}}(o||i)&&(this.pendingScrollAnchor=[o?r[0]:null,o?r[1]:0,i,s])},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=FU(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{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(e=>e()),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=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}if(this.scrollElement=e,this.scrollElement&&`ownerDocument`in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this._intendedScrollOffset!==null&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),`addEventListener`in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,!(!BU()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener(`touchstart`,t,GU),e.addEventListener(`touchend`,n,GU),this.unsubs.push(()=>{e.removeEventListener(`touchstart`,t),e.removeEventListener(`touchend`,n),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let t=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,t&&this.scrollElement&&this.options.enabled){let[e,n,r,i]=t;e!==null&&!r&&(BU()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?i!==0&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),r&&this.scrollToEnd({behavior:r})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,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=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let a=r.get(t.lane);if(a==null||t.end>a.end?r.set(t.lane,t):t.end<a.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=FU(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(e,t,n,r,i,a,o)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o}),{key:!1}),this.getMeasurements=FU(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o},s)=>{let c=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let l=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),a===1){let i=this.options.gap,a=e*2,o=this._flatMeasurements;if(!o||o.length<a){let e=new Float64Array(a);o&&l>0&&e.set(o.subarray(0,l*2)),o=e,this._flatMeasurements=o}let s;if(l===0)s=t+n;else{let e=l-1;s=o[e*2]+o[e*2+1]+i}for(let t=l;t<e;t++){let e=r(t),n=c.get(e),a=typeof n==`number`?n:this.options.estimateSize(t);o[t*2]=s,o[t*2+1]=a,s+=a+i}let u=PU(e,o,r);return this.measurementsCache=u,u}let u=this.measurementsCache.slice(0,l),d=Array(a).fill(void 0);for(let e=0;e<l;e++){let t=u[e];t&&(d[t.lane]=e)}for(let i=l;i<e;i++){let e=r(i),a=this.laneAssignments.get(i),s,l,f=o===`estimate`||c.has(e);if(a!==void 0&&this.options.lanes>1){s=a;let e=d[s],r=e===void 0?void 0:u[e];l=r?r.end+this.options.gap:t+n}else{let e=this.options.lanes===1?u[i-1]:this.getFurthestMeasurement(u,i);l=e?e.end+this.options.gap:t+n,s=e?e.lane:i%this.options.lanes,this.options.lanes>1&&f&&this.laneAssignments.set(i,s)}let p=c.get(e),m=typeof p==`number`?p:this.options.estimateSize(i),h=l+m;u[i]={index:i,start:l,size:m,end:h,key:e,lane:s},d[s]=i}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=FU(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?$U({measurements:e,outerSize:t,scrollOffset:n,lanes:r,flat:r===1&&this._flatMeasurements!=null?this._flatMeasurements:null}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=FU(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{if(!this.scrollState||this.scrollState.behavior!==`smooth`)return!0;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,t-n),i=Math.min(this.options.count-1,t+n);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{if(e<0||e>=this.options.count)return;let n,r,i,a=this._flatMeasurements;if(this.options.lanes===1&&a!==null)i=this.options.getItemKey(e),r=a[e*2],n=a[e*2+1];else{let t=this.measurementsCache[e];if(!t)return;i=t.key,r=t.start,n=t.size}let o=t-(this.itemSizeCache.get(i)??n);if(o!==0){let a=this.options.anchorTo===`end`&&this.scrollState?.behavior!==`smooth`&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,s=a?this.getTotalSize():0,c=this.scrollState?.behavior!==`smooth`&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?r<this.getScrollOffset()+this.scrollAdjustments&&(!this.itemSizeCache.has(i)||this.scrollDirection!==`backward`):this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:i,start:r,size:n,end:r+n,lane:0},o,this));(this.pendingMin===null||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(i,t),this.itemSizeCacheVersion++,a?this.applyScrollAdjustment(this.getTotalSize()-s):c&&this.applyScrollAdjustment(o),this.notify(!1)}},this.getVirtualItems=FU(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length===0)return;let n=this._flatMeasurements,r=this.options.lanes===1&&n!=null;return IU(t[QU(0,t.length-1,r?e=>n[e*2]:e=>IU(t[e]).start,e)])},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;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(t===`auto`)if(i.end>=r+n-this.options.scrollPaddingEnd)t=`end`;else if(i.start<=r+this.options.scrollPaddingStart)t=`start`;else return[r,t];if(t===`end`&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let a=t===`end`?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,i.size),t]},this.scrollToOffset=(e,{align:t=`start`,behavior:n=`auto`}={})=>{let r=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:i,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t=`auto`,behavior:n=`auto`}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r,o=this.now();this.scrollState={index:e,align:a,behavior:n,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t=`auto`}={})=>{let n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:`start`,behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e=`auto`}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:`end`,behavior:e});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1){let n=e.length-1,r=this._flatMeasurements;t=r==null?e[n]?.end??0:r[n*2]+r[n*2+1]}else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(this.itemSizeCache.size===0)return e;let t=this.getMeasurements();for(let n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){e!==0&&(BU()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?this._iosDeferredAdjustment+=e:this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}))}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}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}let e=this.scrollState.index==null?void 0:this.getOffsetForIndex(this.scrollState.index,this.scrollState.align),t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&LU(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:`auto`}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r=this.scrollState.behavior===`smooth`&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior=`auto`),this._scrollToOffset(t,{adjustments:void 0,behavior:r?`smooth`:`auto`})}this.scheduleScrollReconcile()}},QU=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function $U({measurements:e,outerSize:t,scrollOffset:n,lanes:r,flat:i}){let a=e.length-1,o=i?e=>i[e*2]:t=>e[t].start,s=i?e=>i[e*2]+i[e*2+1]:t=>e[t].end;if(e.length<=r)return{startIndex:0,endIndex:a};let c=QU(0,a,o,n),l=c;if(r===1)for(;l<a&&s(l)<n+t;)l++;else if(r>1){let i=Array(r).fill(0);for(;l<a&&i.some(e=>e<n+t);){let t=e[l];i[t.lane]=t.end,l++}let o=Array(r).fill(n+t);for(;c>=0&&o.some(e=>e>=n);){let t=e[c];o[t.lane]=t.start,c--}c=Math.max(0,c-c%r),l=Math.min(a,l+(r-1-l%r))}return{startIndex:c,endIndex:l}}var eW=typeof document<`u`?b.useLayoutEffect:b.useEffect;function tW({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n=`transform`,...r}){let i=b.useReducer(e=>e+1,0)[1],a=b.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});a.current.enabled=t,a.current.mode=n;let o=e=>{let t=a.current;if(!t.enabled||!t.container)return;let n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;let r=e.options.horizontal?`width`:`height`;t.container.style[r]=`${n}px`}let r=!!e.options.horizontal,i=t.mode===`transform`,o=r?`left`:`top`,s=e.options.scrollMargin,c=e.getVirtualItems();for(let n of c){let a=n.start-s,c=e.elementsCache.get(n.key);c&&t.lastPositions.get(c)!==a&&(t.lastPositions.set(c,a),i?c.style.transform=r?`translate3d(${a}px, 0, 0)`:`translate3d(0, ${a}px, 0)`:c.style[o]=`${a}px`)}},s={...r,onChange:(t,n)=>{var s;let c=a.current,l=!0;if(c.enabled){o(t);let e=t.range,n=c.prevRange;l=!n||n.isScrolling!==t.isScrolling||n.startIndex!==e?.startIndex||n.endIndex!==e?.endIndex,l&&(c.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}l&&(e&&n?(0,NU.flushSync)(i):i()),(s=r.onChange)==null||s.call(r,t,n)}},[c]=b.useState(()=>{let e=new ZU(s);return Object.assign(e,{containerRef:t=>{let n=a.current;if(n.container=t,n.lastSize=null,t&&n.enabled){let r=e.getTotalSize();n.lastSize=r;let i=e.options.horizontal?`width`:`height`;t.style[i]=`${r}px`}}})});return c.setOptions(s),eW(()=>c._didMount(),[]),eW(()=>c._willUpdate()),eW(()=>{o(c)}),c}function nW(e){return tW({observeElementRect:WU,observeElementOffset:JU,scrollToFn:XU,...e})}function rW(e){return Nz(e)}function iW(e){return e==null?`—`:`$`+e.toFixed(2)}function aW(e){if(!e||e<=0)return`—`;let t=Math.floor(e/60),n=Math.floor(t/60);return n>0?`${n}h ${t%60}m`:`${t}m`}function oW(e){return e?new Date(e*1e3).toLocaleString(`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}):`—`}var sW=lH(),cW={review:`tag-review`,exploration:`tag-exploration`,planning:`tag-planning`,memory:`tag-memory`,generic:`tag-generic`};function lW({data:e}){let[t,n]=(0,b.useState)(``),[r,i]=(0,b.useState)([{id:`started_at`,desc:!0}]),a=(0,b.useRef)(null),o=(0,b.useMemo)(()=>{if(!e?.data)return[];let n=t.toLowerCase();return n?e.data.filter(e=>(e.repo_label||``).toLowerCase().includes(n)||(e.model_name||``).toLowerCase().includes(n)||(e.agent_role||``).toLowerCase().includes(n)||(e.agent_nickname||``).toLowerCase().includes(n)||(e.title||``).toLowerCase().includes(n)||(e.descendant_models||[]).some(e=>(e||``).toLowerCase().includes(n))||(e.descendant_families||[]).some(e=>(e||``).toLowerCase().includes(n))||(e.descendant_roles||[]).some(e=>(e||``).toLowerCase().includes(n))||(e.descendant_nicknames||[]).some(e=>(e||``).toLowerCase().includes(n))||(e.related_titles||[]).some(e=>(e||``).toLowerCase().includes(n))):e.data},[e,t]),s=(0,b.useMemo)(()=>[sW.accessor(`started_at`,{header:`Time`,cell:e=>oW(e.getValue()),size:130}),sW.accessor(`repo_label`,{header:`Repo`,cell:e=>e.getValue()||`—`,size:140}),sW.accessor(`model_name`,{header:`Model`,cell:e=>(0,z.jsx)(`span`,{style:{fontFamily:`var(--font-mono)`,fontSize:`0.72rem`},children:e.getValue()||`?`}),size:130}),sW.accessor(`thread_count`,{header:`Threads`,cell:e=>{let t=e.getValue()||1,n=e.row.original;return t>1?`${t} (${n.subagent_count||0} sub)`:`1`},size:92}),sW.accessor(`agent_family`,{header:`Root`,cell:e=>(0,z.jsx)(`span`,{className:`tag ${cW[e.getValue()]||`tag-generic`}`,children:e.getValue()}),size:100}),sW.accessor(`agent_nickname`,{header:`Agent`,cell:e=>e.getValue()||`—`,size:85}),sW.accessor(`reasoning_effort`,{header:`Effort`,cell:e=>e.getValue()||`—`,size:70}),sW.accessor(`elapsed_seconds`,{header:`Duration`,cell:e=>aW(e.getValue()),size:85}),sW.accessor(`tokens_used`,{header:`Tokens`,cell:e=>(0,z.jsx)(`span`,{style:{fontFamily:`var(--font-mono)`},children:rW(e.getValue())}),size:90}),sW.accessor(`cost`,{header:`Cost`,cell:e=>(0,z.jsx)(`span`,{style:{fontFamily:`var(--font-mono)`},children:e.getValue()==null?`—`:iW(e.getValue())}),size:80}),sW.accessor(`title`,{header:`Title`,cell:e=>(0,z.jsx)(`span`,{title:e.getValue(),style:{opacity:.6},children:(e.getValue()||``).slice(0,55)}),size:240})],[]),c=MU({data:o,columns:s,state:{sorting:r},onSortingChange:i,getCoreRowModel:EU(),getSortedRowModel:DU()}),l=c.getRowModel().rows,u=(0,b.useMemo)(()=>o.reduce((e,t)=>(e.sessions+=1,e.tokens+=t.tokens_used||0,e.cost+=t.cost||0,e.elapsed+=t.elapsed_seconds||0,e),{sessions:0,tokens:0,cost:0,elapsed:0}),[o]),d=nW({count:l.length,getScrollElement:()=>a.current,estimateSize:()=>36,overscan:10,getItemKey:e=>l[e]?.id??e}),f=d.getVirtualItems(),p=f.length>0?f[0].start:0,m=f.length>0?d.getTotalSize()-f[f.length-1].end:0;return(0,z.jsx)(`div`,{className:`animate-in`,children:(0,z.jsxs)(`div`,{className:`table-wrap`,children:[(0,z.jsx)(`div`,{className:`table-search`,children:(0,z.jsx)(`input`,{placeholder:`Search sessions...`,value:t,onChange:e=>n(e.target.value)})}),(0,z.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`,e&&!e.complete&&(0,z.jsx)(`span`,{className:`incomplete-badge`,style:{marginLeft:`0.5rem`},children:`partial`})]}),(0,z.jsxs)(`div`,{style:{fontSize:`0.7rem`,color:`var(--text-muted)`,padding:`0.45rem 1rem`,borderBottom:`1px solid var(--border)`,display:`flex`,gap:`1rem`,flexWrap:`wrap`},children:[(0,z.jsxs)(`span`,{children:[`Filtered sessions: `,(0,z.jsx)(`strong`,{style:{color:`var(--text-secondary)`},children:u.sessions.toLocaleString()})]}),(0,z.jsxs)(`span`,{children:[`Tokens: `,(0,z.jsx)(`strong`,{style:{color:`var(--text-secondary)`},children:rW(u.tokens)})]}),(0,z.jsxs)(`span`,{children:[`Cost: `,(0,z.jsx)(`strong`,{style:{color:`var(--text-secondary)`},children:iW(u.cost)})]}),(0,z.jsxs)(`span`,{children:[`Time: `,(0,z.jsx)(`strong`,{style:{color:`var(--text-secondary)`},children:aW(u.elapsed)})]})]}),(0,z.jsx)(`div`,{ref:a,style:{height:`600px`,overflow:`auto`},children:(0,z.jsxs)(`table`,{style:{tableLayout:`fixed`,width:`100%`},children:[(0,z.jsx)(`thead`,{style:{position:`sticky`,top:0,background:`var(--bg-card)`,zIndex:1},children:c.getHeaderGroups().map(e=>(0,z.jsx)(`tr`,{children:e.headers.map(e=>(0,z.jsxs)(`th`,{style:{width:e.getSize()},onClick:e.column.getToggleSortingHandler(),children:[OU(e.column.columnDef.header,e.getContext()),{asc:` ↑`,desc:` ↓`}[e.column.getIsSorted()]||``]},e.id))},e.id))}),(0,z.jsxs)(`tbody`,{children:[f.length===0&&(0,z.jsx)(`tr`,{children:(0,z.jsx)(`td`,{colSpan:s.length,style:{textAlign:`center`,padding:`2rem`,color:`var(--text-muted)`},children:`No sessions`})}),p>0&&(0,z.jsx)(`tr`,{children:(0,z.jsx)(`td`,{colSpan:s.length,style:{height:`${p}px`,padding:0,borderBottom:`none`}})}),f.map(e=>{let t=l[e.index];return(0,z.jsx)(`tr`,{style:{height:e.size},children:t.getVisibleCells().map(e=>(0,z.jsx)(`td`,{style:{width:e.column.getSize()},children:OU(e.column.columnDef.cell,e.getContext())},e.id))},t.id)}),m>0&&(0,z.jsx)(`tr`,{children:(0,z.jsx)(`td`,{colSpan:s.length,style:{height:`${m}px`,padding:0,borderBottom:`none`}})})]})]})})]})})}function uW(){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 dW(e,t,n){let r=n===`bootstrap`||n===`snapshot`||n===`complete`||!e||e.ingest_id!==t.ingest_id?uW():{...e};return r.ingest_id=t.ingest_id,r.seq=t.seq,t.data?.overview?r.overview={...r.overview,...t.data.overview,total:t.data.overview.total?{...r.overview.total,...t.data.overview.total}:r.overview.total,d7:t.data.overview.d7?{...r.overview.d7,...t.data.overview.d7}:r.overview.d7,d30:t.data.overview.d30?{...r.overview.d30,...t.data.overview.d30}:r.overview.d30}:e&&(r.overview=e.overview),r.repos=fW(e?.repos,t.data?.repos,r.repos),r.models=fW(e?.models,t.data?.models,r.models),r.families=fW(e?.families,t.data?.families,r.families),r.daily=t.data?.daily?{...e?.daily||{},...t.data.daily}:e?.daily||r.daily,r.heatmap=t.data?.heatmap?{...e?.heatmap||{},...t.data.heatmap}:e?.heatmap||r.heatmap,r}function fW(e,t,n){if(!t)return e||n;let r={total:e?e.total:n.total,d7:e?e.d7:n.d7,d30:e?e.d30:n.d30};for(let e of[`total`,`d7`,`d30`])t[e]&&(r[e]=t[e]);return r}function pW(e){return e?{overview:{data:e.overview,coverage:e.overview?.total?.coverage||{total:0,enriched:0,priced:0,time_valid:0}},repos:{data:e.repos},models:{data:e.models},families:{data:e.families},daily:{data:Object.entries(e.daily).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({date:e,...t}))},heatmap:{data:e.heatmap}}:null}function mW(e,t,n=0){let r=uW();return r.ingest_id=t||null,r.seq=n,r.overview=e?.overview?.data||r.overview,r.repos=e?.repos?.data||r.repos,r.models=e?.models?.data||r.models,r.families=e?.families?.data||r.families,r.daily=Object.fromEntries((e?.daily?.data||[]).map(e=>[e.date,{...e}])),r.heatmap=e?.heatmap?.data||r.heatmap,r}function hW(e){let t=e.replay?.bootstrap?.payload||{},n=CW(t.progress||{percent:0,complete:!1}),r=dW(null,t,`bootstrap`),i=e.replay?.events||[],a=i.findIndex(EW),o=a>=0&&i[a].at_ms||0,s=wW(e,r,i),c=s[0]?.presentation||MW(),l=CW(a>=0&&i[a].payload?.progress||n),u=Math.max(e.startHoldDurationMs||0,0),d=Math.max(e.replayDurationMs||e.replay?.duration_ms||1,1),f=Math.max(e.tailDurationMs||0,0),p=Math.max(e.finalHoldDurationMs||0,0),m=Math.max(e.durationMs||u+d+f+p||1,1),h=Math.max(e.replay?.duration_ms||0,0),g=Math.min(Math.max(o,0),h),_=Math.max(1,h-g),v=NW(e.tailSourceFraction??.035),y=Math.max(1,Math.round(_*v)),b=Math.max(0,_-y),x=Math.max(g,h-y),S=e.replayEasing||`cubicInOut`,C=e.tailEasing||`cubicInOut`,w=TW(e)||s[s.length-1]?.presentation||c,T=jW(s,x),E=Math.min(3600,Math.max(1800,Math.round(d*.32))),D=Math.max(0+u,0+u+d-E),O=NW((D-(0+u))/Math.max(d,1)),k=Math.round(g+b*BW(S,O)),A=AW({keyframes:s,startSourceMs:k,endSourceMs:x,startPresentation:jW(s,k),endPresentation:T,durationMs:E,startSmoothing:.05,endSmoothing:.14}),j=kW({keyframes:s,tailSourceStartMs:x,sourceDurationMs:h,tailStartPresentation:T,finalPresentation:w,tailDurationMs:f});return{renderData:e,totalDurationMs:m,frontloadSettledDurationMs:0,startHoldDurationMs:u,replayDurationMs:d,tailDurationMs:f,finalHoldDurationMs:p,sourceDurationMs:h,sourceStartMs:g,effectiveSourceDurationMs:_,tailSourceDurationMs:y,tailSourceStartMs:x,mainReplaySourceDurationMs:b,replayStartMs:u,lateReplayStartMs:D,lateReplayDurationMs:E,lateReplaySourceStartMs:k,tailStartMs:u+d,finalHoldStartMs:u+d+f,currentSeekMs:0,started:!1,finished:!1,startWallClockMs:0,initialPresentation:c,presentation:c,keyframes:s,keyframeIndex:0,lateReplayFrames:A,tailStartPresentation:T,tailFrames:j,finalPresentation:w,progress:l||{...n,percent:0,complete:!1},bootstrapProgress:n,replayEasing:S,tailEasing:C,debugState:null,debugTrace:[]}}function gW(e){return{liveData:{ready:!0},presentation:e.presentation,rawPresentation:e.presentation,progress:e.progress,phase:e.debugState?.phase||`replay`,seekMs:e.currentSeekMs||0}}function _W(e,t){let n=Math.min(Math.max(Number(t)||0,0),e.totalDurationMs);e.currentSeekMs=n;let r=`replay`,i=0,a=null;if(n<e.startHoldDurationMs)r=`start_hold`,e.presentation=e.initialPresentation||MW();else if(n<e.tailStartMs)if(n<e.lateReplayStartMs)i=vW(e,n),e.presentation=DW(e,i);else{let t=NW((n-e.lateReplayStartMs)/Math.max(e.lateReplayDurationMs,1));i=PW(e.lateReplaySourceStartMs,e.tailSourceStartMs,t),e.presentation=OW(e.lateReplayFrames,LW(t))}else n<e.finalHoldStartMs?(r=`tail`,a=NW((n-e.tailStartMs)/Math.max(e.tailDurationMs,1)),e.presentation=OW(e.tailFrames,BW(e.tailEasing,a))):(r=`final_hold`,e.presentation=e.finalPresentation);n>=e.finalHoldStartMs?((n-e.finalHoldStartMs)/Math.max(e.finalHoldDurationMs||1,1),e.progress={...e.progress||{},percent:1,complete:!0,phase:`complete`}):e.progress={...e.progress||{},complete:!1},n>=e.totalDurationMs&&(e.finished=!0);let o={frame:e.debugTrace.length,seekMs:n,phase:r,sourceMs:i,tailProgress:a,progress:e.progress?.percent??0,complete:!!e.progress?.complete,signature:FW(e.presentation)};return e.debugState=o,e.debugTrace.push(o),gW(e)}function vW(e,t){if(t<=e.replayStartMs)return 0;let n=t-e.replayStartMs;if(n<=e.replayDurationMs){let t=NW(n/Math.max(e.replayDurationMs,1));return e.sourceStartMs+e.mainReplaySourceDurationMs*BW(e.replayEasing,t)}return e.sourceDurationMs}function yW(e,t,n,r){if(!e)return t;let i=Iz.videoExport||{};if(r<(i.displayTweenStartMs??200))return t;let a=(i.startHoldDurationMs??0)+(i.replayDurationMs??0)+(i.tailDurationMs??0)+(i.finalHoldDurationMs??0)||19e3,o=i.displayTweenLateWindowMs??2200,s=NW((r-(a-o))/Math.max(o,1)),c=Math.round(PW(i.displayTweenBaseMs??240,i.displayTweenLateMs??420,RW(s))),l=RW(1-Math.exp(-n/Math.max(c,1))),u=e.progress||{},d=t.progress||{};return{liveData:t.liveData,presentation:wB(e.presentation,t.presentation,l),rawPresentation:t.rawPresentation||t.presentation,progress:{...d,percent:PW(u.percent||0,d.percent||0,l),complete:d.complete},phase:t.phase,seekMs:t.seekMs||0}}function bW(e,t){let n=Iz.videoExport||{},r=Math.max(n.finalFlashDurationMs??280,0),i=Math.max(n.finalFlashDelayMs??0,0),a=Math.max(n.finalFlashMaxOpacity??.22,0);if(!r||!a||t==null)return{opacity:0,boxShadow:`none`};let o=e-t-i;if(o<0||o>r)return{opacity:0,boxShadow:`none`};let s=a*(1-RW(NW(o/r)));return{opacity:s,boxShadow:`0 0 120px 50px rgba(255, 255, 255, ${Math.min(1,s*.7)}) inset`}}function xW(e){let t=Iz.videoExport||{};if(!t.introFadeEnabled)return 0;let n=Math.max(0,Math.min(1,t.introFadeStartOpacity??.2)),r=Math.max(0,t.introFadeDelayMs??0),i=Math.max(0,t.introFadeDurationMs??900);if(!n)return 0;if(e<=r)return n;if(!i)return 0;let a=NW((e-r)/i);return n*(1-BW(t.introFadeEasing||`cubicOut`,a))}function SW(e){let t=Iz.videoExport||{};if(!t.introFadeEnabled)return 1;let n=Math.max(0,Math.min(1,t.introContentStartOpacity??.35)),r=Math.max(0,t.introFadeDelayMs??0),i=Math.max(0,t.introFadeDurationMs??900);if(e<=r)return n;if(!i)return 1;let a=NW((e-r)/i);return PW(n,1,BW(t.introFadeEasing||`cubicOut`,a))}function CW(e){return e?{...e}:null}function wW(e,t,n){let r=[],i=t;for(let e of n)EW(e)&&(i=dW(i,e.payload,e.event),r.push({at_ms:Math.max(0,e.at_ms||0),presentation:yB({overview:{data:i.overview},heatmap:{data:i.heatmap},daily:{data:Object.entries(i.daily).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({date:e,...t}))},families:{data:i.families},repos:{data:i.repos},models:{data:i.models},range:`total`})}));return r.length||r.push({at_ms:0,presentation:MW()}),r}function TW(e){let t=e.settledEnvelope;return t?.overview?.data?yB({overview:t.overview,heatmap:t.heatmap||{data:{}},daily:t.daily||{data:[]},families:t.families||{data:{total:[],d7:[],d30:[]}},repos:t.repos||{data:{total:[],d7:[],d30:[]}},models:t.models||{data:{total:[],d7:[],d30:[]}},range:`total`}):null}function EW(e){return e?.payload?.data&&(e.event===`patch`||e.event===`snapshot`||e.event===`complete`)}function DW(e,t){return jW(e.keyframes,t,e)}function OW(e,t){if(!e?.length)return MW();if(t<=e[0].u)return e[0].presentation;for(let n=0;n<e.length-1;n+=1){let r=e[n],i=e[n+1];if(t<=i.u){let e=NW((t-r.u)/Math.max(i.u-r.u,1e-6));return wB(r.presentation,i.presentation,e)}}return e[e.length-1].presentation}function kW({keyframes:e,tailSourceStartMs:t,sourceDurationMs:n,tailStartPresentation:r,finalPresentation:i,tailDurationMs:a}){return AW({keyframes:e,startSourceMs:t,endSourceMs:n,startPresentation:r,endPresentation:i,durationMs:a,startSmoothing:.08,endSmoothing:.2,bidirectional:!0})}function AW({keyframes:e,startSourceMs:t,endSourceMs:n,startPresentation:r,endPresentation:i,durationMs:a,startSmoothing:o,endSmoothing:s,bidirectional:c=!1}){let l=Math.max(36,Math.min(96,Math.round(a/80))),u=[{u:0,presentation:r}];for(let r=1;r<l-1;r+=1){let i=r/(l-1),a=PW(t,n,i);u.push({u:i,presentation:jW(e,a)})}u.push({u:1,presentation:i});let d=[{u:0,presentation:r}],f=r;for(let e=1;e<u.length-1;e+=1){let t=u[e],n=PW(o,s,t.u);f=wB(f,t.presentation,n),d.push({u:t.u,presentation:f})}if(d.push({u:1,presentation:i}),!c)return d;let p=Array(u.length);p[u.length-1]={u:1,presentation:i};let m=i;for(let e=u.length-2;e>0;--e){let t=u[e],n=PW(s,o,1-t.u);m=wB(m,t.presentation,n),p[e]={u:t.u,presentation:m}}return p[0]={u:0,presentation:r},u.map((e,t)=>t===0?{u:0,presentation:r}:t===u.length-1?{u:1,presentation:i}:{u:e.u,presentation:wB(d[t].presentation,p[t].presentation,LW(e.u))})}function jW(e,t,n=null){if(!e.length)return MW();if(t<=e[0].at_ms)return e[0].presentation;let r=n?.keyframeIndex||0;for(;r+1<e.length&&e[r+1].at_ms<=t;)r+=1;n&&(n.keyframeIndex=r);let i=e[r],a=e[Math.min(r+1,e.length-1)];if(!a||a.at_ms<=i.at_ms)return i.presentation;let o=NW((t-i.at_ms)/Math.max(a.at_ms-i.at_ms,1));return wB(i.presentation,a.presentation,o)}function MW(){return yB({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 NW(e){return Math.min(Math.max(e||0,0),1)}function PW(e,t,n){return e+(t-e)*n}function FW(e){if(!e)return null;let t=e.stats||{},n=e.daily||{dates:[],series:[]},r=Array.isArray(e.topRepos)?e.topRepos:[],i=Array.isArray(e.topModels)?e.topModels:[],a=Math.max(0,(n.dates?.length||0)-1),o=n.dates?.[a]||null,s=(n.series||[]).reduce((e,t)=>e+(Number(t?.data?.[a])||0),0),c=r[0]||null,l=i[0]||null;return{totalTokens:Math.round(Number(t.tokens)||0),totalCost:Number((Number(t.cost)||0).toFixed(4)),totalSessions:Math.round(Number(t.sessions)||0),dailyPoints:n.dates?.length||0,lastDailyDate:o,lastDailyTotal:Math.round(s),topRepo:c?.label||null,topRepoValue:Math.round(Number(c?.tokens)||0),topModel:l?.label||null,topModelValue:Math.round(Number(l?.tokens)||0)}}function IW(e){let t=NW(e);return t*t*t}function LW(e){let t=NW(e);return t<.5?4*t*t*t:1-(-2*t+2)**3/2}function RW(e){return 1-(1-NW(e))**3}function zW(e){let t=NW(e),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 e=0;e<n.length-1;e+=1){let[r,i]=n[e],[a,o]=n[e+1];if(t<=a)return PW(i,o,LW(NW((t-r)/Math.max(a-r,1e-6))))}return 1}function BW(e,t){switch(e){case`trainBrake`:return zW(t);case`cubicOut`:return RW(t);case`cubicInOut`:return LW(t);case`linear`:return NW(t);default:return IW(t)}}function VW({jobId:e}){let[t,n]=(0,b.useState)(null),[r,i]=(0,b.useState)(null),[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(!1),l=(0,b.useRef)(null),u=(0,b.useRef)(0),d=(0,b.useRef)(null),f=(0,b.useRef)(0),p=(0,b.useRef)(null);if((0,b.useEffect)(()=>{let t=!0;return(async()=>{try{let r=await fetch(E.url(`/api/export/${encodeURIComponent(e)}/render-data`));if(!r.ok)throw Error(`API error: ${r.status}`);let i=await r.json();if(!t)return;n(i),l.current=hW(i);let a=gW(l.current);d.current=a,f.current=0,o(a),c(!1),p.current=null}catch(e){if(!t)return;i(e.message||String(e))}})(),()=>{t=!1,u.current&&cancelAnimationFrame(u.current)}},[e]),(0,b.useEffect)(()=>{if(!a?.liveData||r)return;let e=!1,t=0,n=0,i=0,o=0,s=0,l=()=>{let t=Array.from(document.querySelectorAll(`.stat-card .stat-value`)),n=Array.from(document.querySelectorAll(`canvas`)),r=t.length>=4&&t.every(e=>String(e.textContent||``).trim().length>0),i=!!document.querySelector(`.overview-daily-spark-chart, .overview-daily-spark-empty`),a=n.length>=3&&i&&n.every(e=>{let t=e.getBoundingClientRect();return t.width>0&&t.height>0}),u=document.querySelectorAll(`.heatmap-cell`).length>=300;if(!(r&&a&&u)){o=requestAnimationFrame(l);return}s=window.setTimeout(()=>{e||c(!0)},180)};return t=requestAnimationFrame(()=>{n=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{o=requestAnimationFrame(l)})})}),()=>{e=!0,t&&cancelAnimationFrame(t),n&&cancelAnimationFrame(n),i&&cancelAnimationFrame(i),o&&cancelAnimationFrame(o),s&&window.clearTimeout(s)}},[r,a]),(0,b.useEffect)(()=>{if(a){if(a.phase===`final_hold`){p.current??=a.seekMs||0;return}p.current=null}},[a?.phase,a?.seekMs]),(0,b.useEffect)(()=>{let n=()=>{let e=l.current;if(!e||e.started)return;e.started=!0,e.startWallClockMs=Date.now();let t=()=>{let e=l.current;if(!e)return;let n=Date.now(),r=Math.min(e.totalDurationMs,n-e.startWallClockMs),i=_W(e,r),a=f.current?Math.max(1,n-f.current):16;f.current=n;let s=yW(d.current,i,a,r);if(d.current=s,o(s),r>=e.totalDurationMs){e.finished=!0,u.current=0;return}u.current=requestAnimationFrame(t)};u.current=requestAnimationFrame(t)};return window.__CODEXMETER_EXPORT__={ready:!!(t&&!r&&s),jobId:e,start(){n()},get currentTimeMs(){return l.current?.currentSeekMs||0},get finished(){return!!l.current?.finished},getDebugState(){return l.current?.debugState||null},getDebugTrace(){return l.current?.debugTrace||[]}},()=>{delete window.__CODEXMETER_EXPORT__}},[s,r,e,t]),r)return(0,z.jsx)(`div`,{style:HW,children:(0,z.jsxs)(`div`,{style:WW,children:[`Export error: `,r]})});if(!a?.liveData)return(0,z.jsx)(`div`,{style:HW,children:(0,z.jsx)(`div`,{style:WW,children:`CodexMeter exporting…`})});let m=l.current,h=m?{startMs:m.startHoldDurationMs,endMs:m.finalHoldStartMs}:null;return(0,z.jsx)(`div`,{style:HW,children:(0,z.jsxs)(`div`,{style:UW,children:[(0,z.jsxs)(`div`,{style:{...YW,opacity:SW(a.seekMs)},children:[(0,z.jsx)(fV,{presentation:a.presentation,rawPresentation:a.rawPresentation,ingestProgress:Math.min(Math.max(a.progress?.percent||0,0),1),isIngestActive:!!(a.progress&&!a.progress.complete),exportMode:!1,exportPlayback:!0,exportPhase:a.phase,exportSeekMs:a.seekMs,exportDaily:m?.finalPresentation?.daily||null,exportDailyTiming:h}),(0,z.jsxs)(`div`,{style:GW,children:[`Made with `,(0,z.jsx)(`span`,{style:KW,children:`♥`}),` by JJ`]})]}),(0,z.jsx)(`div`,{style:{...JW,opacity:xW(a.seekMs)}}),(0,z.jsx)(`div`,{style:{...qW,...bW(a.seekMs,p.current)}})]})})}var HW={width:`100vw`,minHeight:`100vh`,background:`#06080f`,display:`flex`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`},UW={position:`relative`,width:1080,height:864,padding:`24px 28px 20px`,background:`#06080f`,overflow:`hidden`},WW={color:`#8b949e`,fontFamily:`'JetBrains Mono', 'Fira Code', monospace`,fontSize:18},GW={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`},KW={color:`rgba(244, 63, 94, 0.52)`},qW={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`},JW={position:`absolute`,inset:0,background:`#000000`,pointerEvents:`none`,zIndex:30},YW={position:`relative`,zIndex:1},XW=[`Overview`,`Repos`,`Models`,`Daily`,`Sessions`],ZW=[{key:`d7`,label:`7d`},{key:`d30`,label:`30d`},{key:`total`,label:`All`}];function QW(e){return e?new Date(e*1e3).toLocaleDateString(`en-US`,{month:`short`,day:`2-digit`}):`—`}function $W(e){return!Number.isFinite(e)||e<=0?0:Math.floor(e/86400)*86400}function eG(e){let t=Date.parse(`${e}T12:00:00Z`);return Number.isFinite(t)?Math.floor(t/1e3):null}var tG={idle:`Starting...`,inventory:`Reading threads`,normalizing:`Normalizing`,enrichment:`Enriching rollouts`,aggregation:`Building aggregates`,finalizing:`Finalizing view`,complete:`Complete`,error:`Error`};function nG(e){return Object.values(e?.daily||{}).filter(e=>(e?.tokens||0)>0||(e?.sessions||0)>0).length>=7}function rG(){let e=typeof window<`u`?new URLSearchParams(window.location.search):null,t=e?.get(`export`),n=e?.get(`job`);if(t===`overview-video`&&n)return(0,z.jsx)(VW,{jobId:n});let[r,i]=(0,b.useState)(null),[a,o]=(0,b.useState)(`Overview`),[s,c]=(0,b.useState)(`total`),[l,u]=(0,b.useState)({}),[d,f]=(0,b.useState)(null),[p,m]=(0,b.useState)(!0),[h,g]=(0,b.useState)(!1),[_,v]=(0,b.useState)(!1),[y,x]=(0,b.useState)(!1),[S,C]=(0,b.useState)(!1),[w,T]=(0,b.useState)(!1),[D,O]=(0,b.useState)(!0),[k,A]=(0,b.useState)(!1),[j,ee]=(0,b.useState)(null),[M,N]=(0,b.useState)(!1),[P,F]=(0,b.useState)(!1),[I,te]=(0,b.useState)({available:!0,reason:null,portable_download:null}),[ne,re]=(0,b.useState)(null),[ie,ae]=(0,b.useState)(null),[oe,se]=(0,b.useState)(null),[ce,L]=(0,b.useState)(null),[le,ue]=(0,b.useState)(null),[de,fe]=(0,b.useState)(null),pe=(0,b.useRef)(!1),me=(0,b.useRef)(0),he=(0,b.useRef)(null),R=(0,b.useCallback)(async()=>{try{let[e,t,n,r,i,a,o]=await Promise.all([E.overview(),E.repos(),E.models(),E.daily(),E.sessions(),E.heatmap(),E.families()]),s={overview:e,repos:t,models:n,daily:r,sessions:i,heatmap:a,families:o};return u(s),s}catch(e){throw console.error(`Fetch error:`,e),e}},[]),ge=(0,b.useCallback)(async()=>{if(!w)try{T(!0),o(`Overview`),await E.rerun(),window.location.reload()}catch(e){console.error(`Rerun error:`,e),T(!1)}},[w]),_e=(0,b.useCallback)(async()=>{if(!(M||[`queued`,`running`].includes(j?.status)))try{N(!0);let e=!I?.available&&I?.portable_download?.available,t=!1;if(e){let e=I.portable_download.approx_size_mb?`about ${I.portable_download.approx_size_mb} MB`:`a fairly large download`;if(!window.confirm(`No supported browser was found for video export.\n\nCodexMeter can download a single-use portable Chromium bundle (${e}) for this export only, then delete it afterward.\n\nDo you want to continue?`))return;t=!0,F(!0)}ee(await E.startOverviewVideoExport(t?{install_portable_browser:!0}:{}))}catch(e){console.error(`Video export error:`,e)}finally{N(!1)}},[j?.status,I,M]);(0,b.useEffect)(()=>{P&&j&&j.phase!==`downloading_browser`&&(j.phase===`rendering`||j.phase===`encoding`||j.status===`complete`||j.status===`failed`)&&F(!1)},[j,P]);let ve=(0,b.useCallback)(()=>{!j?.id||j.status!==`complete`||(window.location.href=E.url(`/api/export/${encodeURIComponent(j.id)}/file`))},[j]);(0,b.useEffect)(()=>{!j?.id||j.status!==`complete`||he.current!==j.id&&(he.current=j.id,window.location.href=E.url(`/api/export/${encodeURIComponent(j.id)}/file`))},[j]),(0,b.useEffect)(()=>{let e=!0;return(async()=>{try{let t=await E.exportSupport();e&&te(t)}catch(t){console.error(`Export support probe error:`,t),e&&te({available:!1,reason:`Video export availability could not be detected.`,portable_download:null})}})(),()=>{e=!1}},[]),(0,b.useEffect)(()=>{let e=!0,t=null,n=null,r=!1,a=!1,o=!1,s=[],c=0,l=null,u=null,d=null,p=!1,m=()=>{d&&=(clearTimeout(d),null)},h=()=>{if(c=0,!e||s.length===0)return;let t=l,n=u;for(let e of s){let{payload:r,mode:i,progressOnly:a}=e;if(n=r.progress,!a){if(t&&r.ingest_id===t.ingest_id&&r.seq<=t.seq)continue;t=dW(t,r,i)}}zB(`apply`,{events:s.map(e=>({mode:e.mode,progressOnly:e.progressOnly,seq:e.payload?.seq})),progress:n,state:RB(t,n)}),s=[],n!==u&&(u=n,i(n)),t!==l&&(l=t,f(t),!p&&nG(t)&&(p=!0,v(!0),zB(`initial-live-ready`,RB(t,n))))},g=(e,t,n=!1)=>{zB(`receive`,{mode:t,progressOnly:n,payload:LB(e)}),s.push({payload:e,mode:t,progressOnly:n}),m(),c||=requestAnimationFrame(h)},_=(e,t=null,n=0)=>{let r=mW(e,t,Math.max((l?.seq||0)+1,n,1));l=r,f(r)},y=async(t,n=null,{hydrateLiveState:r=!1,seq:i=0}={})=>{if(!e||!t?.complete||o)return;o=!0;let a=await R();return e&&r&&_(a,n,i),a},b=()=>{if(r||!e)return;r=!0;let n=async()=>{try{let n=await E.progress();if(!e)return;if(i(n),n.percent>.08&&await R(),n.complete){await R(),clearInterval(t);return}(n.error||n.phase===`error`)&&clearInterval(t)}catch(e){console.error(`Polling fallback error:`,e)}};n(),t=setInterval(n,1200)};return(()=>{if(typeof EventSource>`u`){b();return}n=E.live(),n.addEventListener(`bootstrap`,t=>{if(!e)return;let n=JSON.parse(t.data);g(n,`bootstrap`),y(n.progress,n.ingest_id).catch(e=>{console.error(`Settled fetch error:`,e),o=!1})}),n.addEventListener(`progress`,t=>{if(!e)return;let n=JSON.parse(t.data);g(n,`progress`,!0),y(n.progress,n.ingest_id).catch(e=>{console.error(`Settled fetch error:`,e),o=!1})}),n.addEventListener(`patch`,t=>{e&&g(JSON.parse(t.data),`patch`)}),n.addEventListener(`snapshot`,t=>{e&&g(JSON.parse(t.data),`snapshot`)}),n.addEventListener(`complete`,async t=>{if(!e)return;let r=JSON.parse(t.data);a=!0,g(r,r.data?`complete`:`progress`,!r.data),await y(r.progress,r.ingest_id,{hydrateLiveState:!0,seq:(r.seq||0)+1}),e&&n?.close()}),n.addEventListener(`ingest-error`,t=>{if(!e)return;let r=JSON.parse(t.data);a=!0,g(r,`progress`,!0),n?.close()}),n.addEventListener(`error`,t=>{if(e&&!a){if(n?.readyState===EventSource.CLOSED){console.warn(`SSE stream closed, falling back to polling:`,t),b();return}n?.readyState===EventSource.CONNECTING&&!r&&!d&&(d=setTimeout(()=>{d=null,!(!e||a||r)&&n?.readyState!==EventSource.OPEN&&(console.warn(`SSE stream stalled during reconnect, falling back to polling:`,t),n?.close(),b())},4e3))}})})(),()=>{e=!1,clearInterval(t),m(),c&&cancelAnimationFrame(c),n?.close()}},[R]),(0,b.useEffect)(()=>{if(r){if((_||r.percent>.08)&&p&&!h){g(!0);let e=setTimeout(()=>m(!1),600);return()=>clearTimeout(e)}if(r.complete&&p&&!h){g(!0);let e=setTimeout(()=>m(!1),600);return()=>clearTimeout(e)}}},[r,_,p,h]);let ye=!!r?.complete,be=Math.round((r?.percent||0)*100),xe=Math.min(Math.max(r?.percent||0,0),1),Se=!ye||k,Ce=!!(r&&Se&&r.phase!==`error`);(0,b.useEffect)(()=>{r?.complete||O(!1)},[r?.complete]),(0,b.useEffect)(()=>{let e=ye&&!pe.current;if(pe.current=ye,!ye){A(!1);return}if(e&&!D){A(!0);return}k&&D&&A(!1)},[ye,D,k]),(0,b.useEffect)(()=>{let e=!0,t=null,n=async()=>{try{let r=!!j?.id,i=r?await E.exportStatus(j.id):await E.activeExport();if(!e)return;let a=r?i:i.job;if(!a){j?.id||ee(null);return}ee(a),[`complete`,`failed`].includes(a.status)||(t=setTimeout(n,900))}catch(t){if(!e)return;console.error(`Export status error:`,t)}};return ye&&n(),()=>{e=!1,t&&clearTimeout(t)}},[ye,j?.id]),(0,b.useEffect)(()=>{!Se&&!y&&x(!0),Se&&(x(!1),C(!1))},[Se,y]),(0,b.useEffect)(()=>{if(!y)return;let e=setTimeout(()=>C(!0),350);return()=>clearTimeout(e)},[y]);let we=(0,b.useMemo)(()=>d?pW(d):null,[d]),Te=!!(l.overview?.complete&&l.overview?.data),Ee=!!(we&&!Te),De=Ee?we.overview:l.overview||we?.overview,Oe=Ee?we.heatmap:l.heatmap||we?.heatmap,ke=Ee?we.daily:l.daily||we?.daily,Ae=Ee?we.families:l.families||we?.families,je=Ee?we.repos:l.repos||we?.repos,Me=Ee?we.models:l.models||we?.models,Ne=De?.data,Pe=(Ne?.[s]||Ne?.total||{})?.date_range,Fe=Ce&&de?.from?eG(de.from):null,Ie=Ce&&de?.to?eG(de.to):null,Le=Pe&&Ie?{...Pe,from:Fe||Pe.from,to:Ie}:Pe;(0,b.useEffect)(()=>{if(me.current&&=(cancelAnimationFrame(me.current),0),!Le?.from||!Le?.to){re(null);return}let e={from:$W(Le.from),to:$W(Le.to)};return re(t=>{if(!t||ye||Ce||t.from!==e.from||e.to<=t.to)return e;let n=t.to,r=e.to,i=Math.max(1,Math.round((r-n)/86400)),a=Math.min(1400,Math.max(320,i*110)),o=performance.now(),s=t=>{let i=Math.min(1,(t-o)/a),c=$W(n+(r-n)*i);re(t=>!t||t.from!==e.from||c<=t.to?t:{...t,to:c}),i<1?me.current=requestAnimationFrame(s):(me.current=0,re(e))};return me.current=requestAnimationFrame(s),t}),()=>{me.current&&=(cancelAnimationFrame(me.current),0)}},[ye,Le?.from,Le?.to,Ce]);let Re=M||[`queued`,`running`].includes(j?.status),ze=!I?.available&&I?.portable_download?.available,Be=P||ze&&M||ze&&j?.phase===`downloading_browser`?`Downloading single-use portable Chromium for this export.`:!I?.available&&!ze?I.reason||`Video export requires Chrome, Chromium, or Edge.`:ze?`No supported browser found. Click to download a single-use portable Chromium for this export.`:ye?Re?`Video export is already running.`:`Render Overview ingest replay video`:`Finish ingest to render the replay video.`,Ve=(0,b.useCallback)(e=>{e&&(c(`d7`),o(`Daily`),ae({id:Date.now(),centerDate:e}))},[]),He=(0,b.useCallback)(e=>{e&&(o(`Repos`),se({id:Date.now(),repoLabel:String(e)}))},[]),Ue=(0,b.useCallback)(e=>{e&&(o(`Models`),L({id:Date.now(),modelName:String(e)}))},[]),We=j?.status===`complete`?`Download MP4`:P||Re&&(M&&ze||j?.phase===`downloading_browser`)?`Downloading ${Math.max(1,Math.round((j?.progress||.03)*100))}%`:Re?`Rendering ${Math.max(1,Math.round((j?.progress||0)*100))}%`:`Render Video`;return(0,z.jsxs)(`div`,{className:`app`,children:[p&&(0,z.jsxs)(`div`,{className:`loading-overlay ${h?`fading`:``}`,children:[(0,z.jsx)(`div`,{className:`loading-logo`,children:`CodexMeter`}),(0,z.jsx)(`div`,{className:`loading-bar-wrap`,children:(0,z.jsx)(`div`,{className:`loading-bar`,style:{width:`${be}%`}})}),(0,z.jsx)(`div`,{className:`loading-phase`,children:tG[r?.phase]||`Starting...`}),r?.phase===`enrichment`&&(0,z.jsxs)(`div`,{className:`loading-detail`,children:[r.enriched,`/`,r.needs_enrichment,` rollouts`,r.current_date_bucket&&` — ${r.current_date_bucket}`]}),r?.phase===`error`&&r?.error&&(0,z.jsx)(`div`,{className:`loading-detail`,children:r.error}),(0,z.jsxs)(`div`,{className:`loading-footer`,children:[`Made with `,(0,z.jsx)(`span`,{className:`loading-heart`,children:`♥`}),` by JJ`]})]}),(0,z.jsxs)(`div`,{className:`app-content ${h||!p?`app-content-revealed`:``}`,children:[(0,z.jsx)(`nav`,{className:`navbar`,children:(0,z.jsxs)(`div`,{className:`navbar-inner`,children:[(0,z.jsx)(`span`,{className:`navbar-brand`,children:`CodexMeter`}),(0,z.jsx)(`div`,{className:`navbar-tabs`,children:XW.map(e=>(0,z.jsx)(`button`,{className:`navbar-tab ${a===e?`active`:``} ${!(ye&&S)&&e!==`Overview`?`navbar-tab-dimmed`:``}`,onClick:()=>o(e),disabled:!ye&&e!==`Overview`,children:e},e))}),(0,z.jsx)(`div`,{className:`navbar-meta`,children:Le&&(0,z.jsxs)(`div`,{className:`navbar-date-wrap ${ye?``:`navbar-date-wrap-dimmed`}`,children:[(0,z.jsxs)(`span`,{className:`navbar-date`,style:{fontSize:`0.78rem`,color:`var(--text-muted)`,fontFamily:`var(--font-mono)`},children:[QW(ne?.from||Le.from),` — `,QW(ne?.to||Le.to)]}),(0,z.jsx)(`div`,{className:`range-toggle`,children:ZW.map(e=>(0,z.jsx)(`button`,{className:`range-btn ${s===e.key?`active`:``}`,onClick:()=>c(e.key),disabled:!ye,children:e.label},e.key))}),(0,z.jsx)(`button`,{type:`button`,className:`icon-btn`,"aria-label":`Rerun ingest`,title:`Rerun ingest`,onClick:ge,disabled:w||!ye,children:`↻`}),(0,z.jsx)(`button`,{type:`button`,className:`navbar-tab active export-video-btn ${I?.available?``:`range-btn-unsupported`}`,onClick:j?.status===`complete`?ve:_e,disabled:!I?.available&&!ze||!ye||Re,style:{minWidth:110},title:j?.status===`complete`?`Download rendered Overview video`:Be,children:We})]})})]})}),(0,z.jsxs)(`div`,{className:`main-content`,children:[a===`Overview`&&(0,z.jsx)(hV,{data:De,heatmap:Oe,daily:ke,families:Ae,repos:je,models:Me,range:s,onPresentationSettledChange:O,ingestProgress:xe,isIngestActive:Ce,currentDateBucket:r?.current_date_bucket||null,onDailyDebugStatsChange:ue,onPresentationDateRangeChange:fe,onNavigateToDailyDay:Ve,onNavigateToRepo:He,onNavigateToModel:Ue}),a===`Repos`&&(0,z.jsx)(jV,{data:l.repos,range:s,focusRequest:oe,onFocusRequestConsumed:()=>se(null)}),a===`Models`&&(0,z.jsx)(zV,{data:l.models,range:s,focusRequest:ce,onFocusRequestConsumed:()=>L(null)}),a===`Daily`&&(0,z.jsx)(cH,{data:l.daily,range:s,navigateToDayRequest:ie,onNavigateToDayConsumed:()=>ae(null)}),a===`Sessions`&&(0,z.jsx)(lW,{data:l.sessions})]}),Ce&&le&&(0,z.jsxs)(`div`,{className:`app-footer-debug`,children:[`Daily Usage presentation: `,le.speedDaysPerSecond.toFixed(1),` days/s`,le.waitingForDailyData?` (waiting for daily data)`:``]}),(0,z.jsxs)(`div`,{className:`app-footer`,children:[`Made with `,(0,z.jsx)(`span`,{className:`loading-heart`,children:`♥`}),` by JJ`]})]})]})}x.createRoot(document.getElementById(`root`)).render((0,z.jsx)(rG,{}));