backend-performance-report.html 898 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <link rel="shortcut icon" href="../../assets/favicon-light.png" media="(prefers-color-scheme: light)">
  6. <link rel="shortcut icon" href="../../assets/favicon-dark.png" media="(prefers-color-scheme: dark)">
  7. <meta name="viewport" content="width=device-width, initial-scale=1" />
  8. <meta name="theme-color" content="#000000" />
  9. <title>Locust</title>
  10. <script type="module" crossorigin>var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,a=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(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=(a,s,l)=>(l=null!=a?e(i(a)):{},((e,i,a,s)=>{if(i&&"object"==typeof i||"function"==typeof i)for(var l,u=r(i),c=0,d=u.length;c<d;c++)l=u[c],o.call(e,l)||l===a||t(e,l,{get:(e=>i[e]).bind(null,l),enumerable:!(s=n(i,l))||s.enumerable});return e})(!s&&a&&a.__esModule?l:t(l,"default",{value:a,enumerable:!0}),a));!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var u=a(e=>{function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,h=3,p=!1,f=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(l,i)}i=n(u)}}function _(e){if(g=!1,b(e),!f)if(null!==n(l))f=!0,S||(S=!0,w());else{var t=n(u);null!==t&&D(_,t.startTime-e)}}var w,S=!1,k=-1,C=5,T=-1;function M(){return!!m||!(e.unstable_now()-T<C)}function I(){if(m=!1,S){var t=e.unstable_now();T=t;var i=!0;try{e:{f=!1,g&&(g=!1,v(k),k=-1),p=!0;var o=h;try{t:{for(b(t),d=n(l);null!==d&&!(d.expirationTime>t&&M());){var a=d.callback;if("function"==typeof a){d.callback=null,h=d.priorityLevel;var s=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,b(t),i=!0;break t}d===n(l)&&r(l),b(t)}else r(l);d=n(l)}if(null!==d)i=!0;else{var c=n(u);null!==c&&D(_,c.startTime-t),i=!1}}break e}finally{d=null,h=o,p=!1}i=void 0}}finally{i?w():S=!1}}}if("function"==typeof x)w=function(){x(I)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,A=P.port2;P.port1.onmessage=I,w=function(){A.postMessage(null)}}else w=function(){y(I,0)};function D(t,n){k=y(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"):C=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},e.unstable_requestPaint=function(){m=!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=h;h=e;try{return t()}finally{h=n}},e.unstable_scheduleCallback=function(r,i,o){var a=e.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?a+o:a:o=a,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 r={id:c++,callback:i,priorityLevel:r,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(r.sortIndex=o,t(u,r),null===n(l)&&r===n(u)&&(g?(v(k),k=-1):g=!0,D(_,o-a))):(r.sortIndex=s,t(l,r),f||p||(f=!0,S||(S=!0,w()))),r},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}}),c=a((e,t)=>{t.exports=u()}),d=a(e=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function v(){}function x(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var b=x.prototype=new v;b.constructor=x,g(b,y.prototype),b.isPureReactComponent=!0;var _=Array.isArray;function w(){}var S={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function C(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:void 0!==i?i:null,props:r}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var M=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function P(e,r,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c=!1;if(null===e)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 P((c=e._init)(e._payload),r,i,o,a)}}if(c)return a=a(e),c=""===o?"."+I(e,0):o,_(a)?(i="",null!=c&&(i=c.replace(M,"$&/")+"/"),P(a,r,i,"",function(e){return e})):null!=a&&(T(a)&&(l=a,u=i+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(M,"$&/")+"/")+c,a=C(l.type,u,l.props)),r.push(a)),1;c=0;var h,f=""===o?".":o+":";if(_(e))for(var g=0;g<e.length;g++)c+=P(o=e[g],r,i,s=f+I(o,g),a);else if("function"==typeof(g=null===(h=e)||"object"!=typeof h?null:"function"==typeof(h=p&&h[p]||h["@@iterator"])?h:null))for(e=g.call(e),g=0;!(o=e.next()).done;)c+=P(o=o.value,r,i,s=f+I(o,g++),a);else if("object"===s){if("function"==typeof e.then)return P(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(w,w):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),r,i,o,a);throw r=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return c}function A(e,t,n){if(null==e)return e;var r=[],i=0;return P(e,r,"","",function(e){return t.call(n,e,i++)}),r}function D(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var E="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},O={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};e.Activity=h,e.Children=O,e.Component=y,e.Fragment=r,e.Profiler=o,e.PureComponent=x,e.StrictMode=i,e.Suspense=u,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.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(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),i=e.key;if(null!=t)for(o in void 0!==t.key&&(i=""+t.key),t)!k.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var a=Array(o),s=0;s<o;s++)a[s]=arguments[s+2];r.children=a}return C(e.type,i,r)},e.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,_context:e},e},e.createElement=function(e,t,n){var r,i={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)k.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var a=arguments.length-2;if(1===a)i.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===i[r]&&(i[r]=a[r]);return C(e,o,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:l,render:e}},e.isValidElement=T,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:D}},e.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},e.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),i=S.S;null!==i&&i(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(w,E)}catch(o){E(o)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},e.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},e.use=function(e){return S.H.use(e)},e.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},e.useCallback=function(e,t){return S.H.useCallback(e,t)},e.useContext=function(e){return S.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return S.H.useEffect(e,t)},e.useEffectEvent=function(e){return S.H.useEffectEvent(e)},e.useId=function(){return S.H.useId()},e.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return S.H.useMemo(e,t)},e.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},e.useRef=function(e){return S.H.useRef(e)},e.useState=function(e){return S.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return S.H.useTransition()},e.version="19.2.3"}),h=a((e,t)=>{t.exports=d()}),p=a(e=>{var t=h();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},o=Symbol.for("react.portal");var a=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},e.flushSync=function(e){var t=a.T,n=i.p;try{if(a.T=null,i.p=2,e)return e()}finally{a.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,i.d.C(e,t))},e.prefetchDNS=function(e){"string"==typeof e&&i.d.D(e)},e.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=s(n,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,a="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?i.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:o,fetchPriority:a}):"script"===n&&i.d.X(e,{crossOrigin:r,integrity:o,fetchPriority:a,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},e.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=s(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=s(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},e.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=s(t.as,t.crossOrigin);i.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?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 a.H.useFormState(e,t,n)},e.useFormStatus=function(){return a.H.useHostTransitionStatus()},e.version="19.2.3"}),f=a((e,t)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),t.exports=p()}),g=a(e=>{var t=c(),n=h(),r=f();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 o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function a(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function s(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=u(e)))return t;e=e.sibling}return null}var d=Object.assign,p=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),_=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var D=Symbol.for("react.client.reference");function E(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===D?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case y:return"Fragment";case x:return"Profiler";case v:return"StrictMode";case S:return"Suspense";case k:return"SuspenseList";case M:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case m:return"Portal";case _:return e.displayName||"Context";case b:return(e._context.displayName||"Context")+".Consumer";case w:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:E(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return E(e(t))}catch(n){}}return null}var O=Array.isArray,R=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},N=[],B=-1;function F(e){return{current:e}}function $(e){0>B||(e.current=N[B],N[B]=null,B--)}function V(e,t){B++,N[B]=e.current,e.current=t}var H,W,j=F(null),G=F(null),U=F(null),X=F(null);function q(e,t){switch(V(U,t),V(G,e),V(j,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=vd(t=yd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(j),V(j,e)}function Y(){$(j),$(G),$(U)}function Z(e){null!==e.memoizedState&&V(X,e);var t=j.current,n=vd(t,e.type);t!==n&&(V(G,e),V(j,n))}function K(e){G.current===e&&($(j),$(G)),X.current===e&&($(X),ch._currentValue=z)}function Q(e){if(void 0===H)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);H=t&&t[1]||"",W=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+H+e+W}var J=!1;function ee(e,t){if(!e||J)return"";J=!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()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(i){var r=i}Reflect.construct(e,[],n)}else{try{n.call()}catch(o){r=o}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.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 o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split("\n"),u=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===u.length)for(r=l.length-1,i=u.length-1;1<=r&&0<=i&&l[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==u[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==u[i]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=i);break}}}finally{J=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Q(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return Q(e.type);case 16:return Q("Lazy");case 13:return e.child!==t&&null!==t?Q("Suspense Fallback"):Q("Suspense");case 19:return Q("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return Q("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var re=Object.prototype.hasOwnProperty,ie=t.unstable_scheduleCallback,oe=t.unstable_cancelCallback,ae=t.unstable_shouldYield,se=t.unstable_requestPaint,le=t.unstable_now,ue=t.unstable_getCurrentPriorityLevel,ce=t.unstable_ImmediatePriority,de=t.unstable_UserBlockingPriority,he=t.unstable_NormalPriority,pe=t.unstable_LowPriority,fe=t.unstable_IdlePriority,ge=t.log,me=t.unstable_setDisableYieldValue,ye=null,ve=null;function xe(e){if("function"==typeof ge&&me(e),ve&&"function"==typeof ve.setStrictMode)try{ve.setStrictMode(ye,e)}catch(t){}}var be=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(_e(e)/we|0)|0},_e=Math.log,we=Math.LN2;var Se=256,ke=262144,Ce=4194304;function Te(e){var t=42&e;if(0!==t)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 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Me(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~o)?i=Te(r):0!==(a&=s)?i=Te(a):n||0!==(n=s&~e)&&(i=Te(n)):0!==(s=r&~o)?i=Te(s):0!==a?i=Te(a):n||0!==(n=r&~e)&&(i=Te(n)),0===i?0:0!==t&&t!==i&&0===(t&o)&&((o=i&-i)>=(n=t&-t)||32===o&&4194048&n)?t:i}function Ie(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Pe(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;default:return-1}}function Ae(){var e=Ce;return!(62914560&(Ce<<=1))&&(Ce=4194304),e}function De(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ee(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Oe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-be(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Re(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-be(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Le(e,t){var n=t&-t;return 0!==((n=42&n?1:ze(n))&(e.suspendedLanes|t))?0:n}function ze(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 Ne(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Be(){var e=L.p;return 0!==e?e:void 0===(e=window.event)?32:kh(e.type)}function Fe(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var $e=Math.random().toString(36).slice(2),Ve="__reactFiber$"+$e,He="__reactProps$"+$e,We="__reactContainer$"+$e,je="__reactEvents$"+$e,Ge="__reactListeners$"+$e,Ue="__reactHandles$"+$e,Xe="__reactResources$"+$e,qe="__reactMarker$"+$e;function Ye(e){delete e[Ve],delete e[He],delete e[je],delete e[Ge],delete e[Ue]}function Ze(e){var t=e[Ve];if(t)return t;for(var n=e.parentNode;n;){if(t=n[We]||n[Ve]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=zd(e);null!==e;){if(n=e[Ve])return n;e=zd(e)}return t}n=(e=n).parentNode}return null}function Ke(e){if(e=e[Ve]||e[We]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Qe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(i(33))}function Je(e){var t=e[Xe];return t||(t=e[Xe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[qe]=!0}var tt=new Set,nt={};function rt(e,t){it(e,t),it(e+"Capture",t)}function it(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var ot=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]*$"),at={},st={};function lt(e,t,n){if(i=t,re.call(st,i)||!re.call(at,i)&&(ot.test(i)?st[i]=!0:(at[i]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var i}function ut(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ct(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){if(!e._valueTracker){var t=ht(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.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]}}}}(e,t,""+e[t])}}function ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function gt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(Ty){return e.body}}var mt=/[\n"\\]/g;function yt(e){return e.replace(mt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vt(e,t,n,r,i,o,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?bt(e,a,dt(t)):null!=n?bt(e,a,dt(n)):null!=r&&e.removeAttribute("value"),null==i&&null!=o&&(e.defaultChecked=!!o),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+dt(s):e.removeAttribute("name")}function xt(e,t,n,r,i,o,a,s){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return void pt(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:i)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),pt(e)}function bt(e,t,n){"number"===t&&gt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function _t(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=""+dt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function wt(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function St(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(i(92));if(O(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??="",t=n}n=dt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),pt(e)}function kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ct=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 Tt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Ct.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Mt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&n[o]!==r&&Tt(e,o,r)}else for(var a in t)t.hasOwnProperty(a)&&Tt(e,a,t[a])}function It(e){if(-1===e.indexOf("-"))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 Pt=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"]]),At=/^[\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 Dt(e){return At.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Et(){}var Ot=null;function Rt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Lt=null,zt=null;function Nt(e){var t=Ke(e);if(t&&(e=t.stateNode)){var n=e[He]||null;e:switch(e=t.stateNode,t.type){case"input":if(vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=r[He]||null;if(!o)throw Error(i(90));vt(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&ft(r)}break e;case"textarea":wt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&_t(e,!!n.multiple,t,!1)}}}var Bt=!1;function Ft(e,t,n){if(Bt)return e(t,n);Bt=!0;try{return e(t)}finally{if(Bt=!1,(null!==Lt||null!==zt)&&(Ju(),Lt&&(t=Lt,e=zt,zt=Lt=null,Nt(t),e)))for(t=0;t<e.length;t++)Nt(e[t])}}function $t(e,t){var n=e.stateNode;if(null===n)return null;var r=n[He]||null;if(null===r)return null;n=r[t];e: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)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Vt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ht=!1;if(Vt)try{var Wt={};Object.defineProperty(Wt,"passive",{get:function(){Ht=!0}}),window.addEventListener("test",Wt,Wt),window.removeEventListener("test",Wt,Wt)}catch(Ty){Ht=!1}var jt=null,Gt=null,Ut=null;function Xt(){if(Ut)return Ut;var e,t,n=Gt,r=n.length,i="value"in jt?jt.value:jt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Ut=i.slice(e,1<t?1-t:void 0)}function qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Yt(){return!0}function Zt(){return!1}function Kt(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Yt:Zt,this.isPropagationStopped=Zt,this}return d(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Yt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Yt)},persist:function(){},isPersistent:Yt}),t}var Qt,Jt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Kt(tn),rn=d({},tn,{view:0,detail:0}),on=Kt(rn),an=d({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Qt=e.screenX-en.screenX,Jt=e.screenY-en.screenY):Jt=Qt=0,en=e),Qt)},movementY:function(e){return"movementY"in e?e.movementY:Jt}}),sn=Kt(an),ln=Kt(d({},an,{dataTransfer:0})),un=Kt(d({},rn,{relatedTarget:0})),cn=Kt(d({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Kt(d({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),hn=Kt(d({},tn,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fn={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"},gn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=gn[e])&&!!t[e]}function yn(){return mn}var vn=Kt(d({},rn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?fn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yn,charCode:function(e){return"keypress"===e.type?qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),xn=Kt(d({},an,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),bn=Kt(d({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yn})),_n=Kt(d({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),wn=Kt(d({},an,{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})),Sn=Kt(d({},tn,{newState:0,oldState:0})),kn=[9,13,27,32],Cn=Vt&&"CompositionEvent"in window,Tn=null;Vt&&"documentMode"in document&&(Tn=document.documentMode);var Mn=Vt&&"TextEvent"in window&&!Tn,In=Vt&&(!Cn||Tn&&8<Tn&&11>=Tn),Pn=String.fromCharCode(32),An=!1;function Dn(e,t){switch(e){case"keyup":return-1!==kn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function En(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var On=!1;var Rn={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 Ln(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Rn[e.type]:"textarea"===t}function zn(e,t,n,r){Lt?zt?zt.push(r):zt=[r]:Lt=r,0<(t=rd(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nn=null,Bn=null;function Fn(e){Yc(e,0)}function $n(e){if(ft(Qe(e)))return e}function Vn(e,t){if("change"===e)return t}var Hn=!1;if(Vt){var Wn;if(Vt){var jn="oninput"in document;if(!jn){var Gn=document.createElement("div");Gn.setAttribute("oninput","return;"),jn="function"==typeof Gn.oninput}Wn=jn}else Wn=!1;Hn=Wn&&(!document.documentMode||9<document.documentMode)}function Un(){Nn&&(Nn.detachEvent("onpropertychange",Xn),Bn=Nn=null)}function Xn(e){if("value"===e.propertyName&&$n(Bn)){var t=[];zn(t,Bn,e,Rt(e)),Ft(Fn,t)}}function qn(e,t,n){"focusin"===e?(Un(),Bn=n,(Nn=t).attachEvent("onpropertychange",Xn)):"focusout"===e&&Un()}function Yn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Bn)}function Zn(e,t){if("click"===e)return $n(t)}function Kn(e,t){if("input"===e||"change"===e)return $n(t)}var Qn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Jn(e,t){if(Qn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===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(!re.call(t,i)||!Qn(e[i],t[i]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var n,r=er(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=gt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=gt((e=t.contentWindow).document)}return t}function ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var or=Vt&&"documentMode"in document&&11>=document.documentMode,ar=null,sr=null,lr=null,ur=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ur||null==ar||ar!==gt(r)||("selectionStart"in(r=ar)&&ir(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Jn(lr,r)||(lr=r,0<(r=rd(sr,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ar)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},pr={},fr={};function gr(e){if(pr[e])return pr[e];if(!hr[e])return e;var t,n=hr[e];for(t in n)if(n.hasOwnProperty(t)&&t in fr)return pr[e]=n[t];return e}Vt&&(fr=document.createElement("div").style,"AnimationEvent"in window||(delete hr.animationend.animation,delete hr.animationiteration.animation,delete hr.animationstart.animation),"TransitionEvent"in window||delete hr.transitionend.transition);var mr=gr("animationend"),yr=gr("animationiteration"),vr=gr("animationstart"),xr=gr("transitionrun"),br=gr("transitionstart"),_r=gr("transitioncancel"),wr=gr("transitionend"),Sr=new Map,kr="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(" ");function Cr(e,t){Sr.set(e,t),rt(t,[e])}kr.push("scrollEnd");var Tr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Mr=[],Ir=0,Pr=0;function Ar(){for(var e=Ir,t=Pr=Ir=0;t<e;){var n=Mr[t];Mr[t++]=null;var r=Mr[t];Mr[t++]=null;var i=Mr[t];Mr[t++]=null;var o=Mr[t];if(Mr[t++]=null,null!==r&&null!==i){var a=r.pending;null===a?i.next=i:(i.next=a.next,a.next=i),r.pending=i}0!==o&&Rr(n,i,o)}}function Dr(e,t,n,r){Mr[Ir++]=e,Mr[Ir++]=t,Mr[Ir++]=n,Mr[Ir++]=r,Pr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Er(e,t,n,r){return Dr(e,t,n,r),Lr(e)}function Or(e,t){return Dr(e,null,null,t),Lr(e)}function Rr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var i=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(i=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,i&&null!==t&&(i=31-be(n),null===(r=(e=o.hiddenUpdates)[i])?e[i]=[t]:r.push(t),t.lane=536870912|n),o):null}function Lr(e){if(50<ju)throw ju=0,Gu=null,Error(i(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var zr={};function Nr(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 Br(e,t,n,r){return new Nr(e,t,n,r)}function Fr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $r(e,t){var n=e.alternate;return null===n?((n=Br(e.tag,t,e.key,e.mode)).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=65011712&e.flags,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=null===t?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 Vr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hr(e,t,n,r,o,a){var s=0;if(r=e,"function"==typeof e)Fr(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,j.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case M:return(e=Br(31,n,t,o)).elementType=M,e.lanes=a,e;case y:return Wr(n.children,o,a,t);case v:s=8,o|=24;break;case x:return(e=Br(12,n,t,2|o)).elementType=x,e.lanes=a,e;case S:return(e=Br(13,n,t,o)).elementType=S,e.lanes=a,e;case k:return(e=Br(19,n,t,o)).elementType=k,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:s=10;break e;case b:s=9;break e;case w:s=11;break e;case C:s=14;break e;case T:s=16,r=null;break e}s=29,n=Error(i(130,null===e?"null":typeof e,"")),r=null}return(t=Br(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Wr(e,t,n,r){return(e=Br(7,e,r,t)).lanes=n,e}function jr(e,t,n){return(e=Br(6,e,null,t)).lanes=n,e}function Gr(e){var t=Br(18,null,null,0);return t.stateNode=e,t}function Ur(e,t,n){return(t=Br(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Xr=new WeakMap;function qr(e,t){if("object"==typeof e&&null!==e){var n=Xr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},Xr.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Yr=[],Zr=0,Kr=null,Qr=0,Jr=[],ei=0,ti=null,ni=1,ri="";function ii(e,t){Yr[Zr++]=Qr,Yr[Zr++]=Kr,Kr=e,Qr=t}function oi(e,t,n){Jr[ei++]=ni,Jr[ei++]=ri,Jr[ei++]=ti,ti=e;var r=ni;e=ri;var i=32-be(r)-1;r&=~(1<<i),n+=1;var o=32-be(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ni=1<<32-be(t)+i|n<<i|r,ri=o+e}else ni=1<<o|n<<i|r,ri=e}function ai(e){null!==e.return&&(ii(e,1),oi(e,1,0))}function si(e){for(;e===Kr;)Kr=Yr[--Zr],Yr[Zr]=null,Qr=Yr[--Zr],Yr[Zr]=null;for(;e===ti;)ti=Jr[--ei],Jr[ei]=null,ri=Jr[--ei],Jr[ei]=null,ni=Jr[--ei],Jr[ei]=null}function li(e,t){Jr[ei++]=ni,Jr[ei++]=ri,Jr[ei++]=ti,ni=t.id,ri=t.overflow,ti=e}var ui=null,ci=null,di=!1,hi=null,pi=!1,fi=Error(i(519));function gi(e){throw _i(qr(Error(i(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),fi}function mi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ve]=e,t[He]=r,n){case"dialog":Zc("cancel",t),Zc("close",t);break;case"iframe":case"object":case"embed":Zc("load",t);break;case"video":case"audio":for(n=0;n<Xc.length;n++)Zc(Xc[n],t);break;case"source":Zc("error",t);break;case"img":case"image":case"link":Zc("error",t),Zc("load",t);break;case"details":Zc("toggle",t);break;case"input":Zc("invalid",t),xt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Zc("invalid",t);break;case"textarea":Zc("invalid",t),St(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||ud(t.textContent,n)?(null!=r.popover&&(Zc("beforetoggle",t),Zc("toggle",t)),null!=r.onScroll&&Zc("scroll",t),null!=r.onScrollEnd&&Zc("scrollend",t),null!=r.onClick&&(t.onclick=Et),t=!0):t=!1,t||gi(e,!0)}function yi(e){for(ui=e.return;ui;)switch(ui.tag){case 5:case 31:case 13:return void(pi=!1);case 27:case 3:return void(pi=!0);default:ui=ui.return}}function vi(e){if(e!==ui)return!1;if(!di)return yi(e),di=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||xd(e.type,e.memoizedProps)),t=!t),t&&ci&&gi(e),yi(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));ci=Ld(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));ci=Ld(e)}else 27===n?(n=ci,Td(e.type)?(e=Rd,Rd=null,ci=e):ci=n):ci=ui?Od(e.stateNode.nextSibling):null;return!0}function xi(){ci=ui=null,di=!1}function bi(){var e=hi;return null!==e&&(null===Au?Au=e:Au.push.apply(Au,e),hi=null),e}function _i(e){null===hi?hi=[e]:hi.push(e)}var wi=F(null),Si=null,ki=null;function Ci(e,t,n){V(wi,t._currentValue),t._currentValue=n}function Ti(e){e._currentValue=wi.current,$(wi)}function Mi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ii(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var a=o.dependencies;if(null!==a){var s=o.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=o;for(var u=0;u<t.length;u++)if(l.context===t[u]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Mi(a.return,n,e),r||(s=null);break e}a=l.next}}else if(18===o.tag){if(null===(s=o.return))throw Error(i(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),Mi(s,n,e),s=null}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===e){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}}function Pi(e,t,n,r){e=null;for(var o=t,a=!1;null!==o;){if(!a)if(524288&o.flags)a=!0;else if(262144&o.flags)break;if(10===o.tag){var s=o.alternate;if(null===s)throw Error(i(387));if(null!==(s=s.memoizedProps)){var l=o.type;Qn(o.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(o===X.current){if(null===(s=o.alternate))throw Error(i(387));s.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(ch):e=[ch])}o=o.return}null!==e&&Ii(t,e,n,r),t.flags|=262144}function Ai(e){for(e=e.firstContext;null!==e;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Di(e){Si=e,ki=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Ei(e){return Ri(Si,e)}function Oi(e,t){return null===Si&&Di(e),Ri(e,t)}function Ri(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===ki){if(null===e)throw Error(i(308));ki=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ki=ki.next=t;return n}var Li="undefined"!=typeof AbortController?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()})}},zi=t.unstable_scheduleCallback,Ni=t.unstable_NormalPriority,Bi={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fi(){return{controller:new Li,data:new Map,refCount:0}}function $i(e){e.refCount--,0===e.refCount&&zi(Ni,function(){e.controller.abort()})}var Vi=null,Hi=0,Wi=0,ji=null;function Gi(){if(0===--Hi&&null!==Vi){null!==ji&&(ji.status="fulfilled");var e=Vi;Vi=null,Wi=0,ji=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Ui=R.S;R.S=function(e,t){Ou=le(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Vi){var n=Vi=[];Hi=0,Wi=Hc(),ji={status:"pending",value:void 0,then:function(e){n.push(e)}}}Hi++,t.then(Gi,Gi)}(0,t),null!==Ui&&Ui(e,t)};var Xi=F(null);function qi(){var e=Xi.current;return null!==e?e:fu.pooledCache}function Yi(e,t){V(Xi,null===t?Xi.current:t.pool)}function Zi(){var e=qi();return null===e?null:{parent:Bi._currentValue,pool:e}}var Ki=Error(i(460)),Qi=Error(i(474)),Ji=Error(i(542)),eo={then:function(){}};function to(e){return"fulfilled"===(e=e.status)||"rejected"===e}function no(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Et,Et),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ao(e=t.reason),e;default:if("string"==typeof t.status)t.then(Et,Et);else{if(null!==(e=fu)&&100<e.shellSuspendCounter)throw Error(i(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ao(e=t.reason),e}throw io=t,Ki}}function ro(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"==typeof t&&"function"==typeof t.then)throw io=t,Ki;throw t}}var io=null;function oo(){if(null===io)throw Error(i(459));var e=io;return io=null,e}function ao(e){if(e===Ki||e===Ji)throw Error(i(483))}var so=null,lo=0;function uo(e){var t=lo;return lo+=1,null===so&&(so=[]),no(so,e,t)}function co(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ho(e,t){if(t.$$typeof===p)throw Error(i(525));throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function po(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=$r(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=jr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===T&&ro(i)===t.type)?(co(t=o(t,n.props),n),t.return=e,t):(co(t=Hr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ur(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Wr(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=jr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case g:return co(n=Hr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case m:return(t=Ur(t,e.mode,n)).return=e,t;case T:return h(e,t=ro(t),n)}if(O(t)||A(t))return(t=Wr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return h(e,uo(t),n);if(t.$$typeof===_)return h(e,Oi(e,t),n);ho(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case g:return n.key===i?u(e,t,n,r):null;case m:return n.key===i?c(e,t,n,r):null;case T:return p(e,t,n=ro(n),r)}if(O(n)||A(n))return null!==i?null:d(e,t,n,r,null);if("function"==typeof n.then)return p(e,t,uo(n),r);if(n.$$typeof===_)return p(e,t,Oi(e,n),r);ho(e,n)}return null}function f(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case g:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case m:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case T:return f(e,t,n,r=ro(r),i)}if(O(r)||A(r))return d(t,e=e.get(n)||null,r,i,null);if("function"==typeof r.then)return f(e,t,n,uo(r),i);if(r.$$typeof===_)return f(e,t,n,Oi(t,r),i);ho(t,r)}return null}function v(l,u,c,d){if("object"==typeof c&&null!==c&&c.type===y&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case g:e:{for(var x=c.key;null!==u;){if(u.key===x){if((x=c.type)===y){if(7===u.tag){n(l,u.sibling),(d=o(u,c.props.children)).return=l,l=d;break e}}else if(u.elementType===x||"object"==typeof x&&null!==x&&x.$$typeof===T&&ro(x)===u.type){n(l,u.sibling),co(d=o(u,c.props),c),d.return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}c.type===y?((d=Wr(c.props.children,l.mode,d,c.key)).return=l,l=d):(co(d=Hr(c.type,c.key,c.props,null,l.mode,d),c),d.return=l,l=d)}return s(l);case m:e:{for(x=c.key;null!==u;){if(u.key===x){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(d=o(u,c.children||[])).return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}(d=Ur(c,l.mode,d)).return=l,l=d}return s(l);case T:return v(l,u,c=ro(c),d)}if(O(c))return function(i,o,s,l){for(var u=null,c=null,d=o,g=o=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var y=p(i,d,s[g],l);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(i,d),o=a(y,o,g),null===c?u=y:c.sibling=y,c=y,d=m}if(g===s.length)return n(i,d),di&&ii(i,g),u;if(null===d){for(;g<s.length;g++)null!==(d=h(i,s[g],l))&&(o=a(d,o,g),null===c?u=d:c.sibling=d,c=d);return di&&ii(i,g),u}for(d=r(d);g<s.length;g++)null!==(m=f(d,i,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),o=a(m,o,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(i,e)}),di&&ii(i,g),u}(l,u,c,d);if(A(c)){if("function"!=typeof(x=A(c)))throw Error(i(150));return function(o,s,l,u){if(null==l)throw Error(i(151));for(var c=null,d=null,g=s,m=s=0,y=null,v=l.next();null!==g&&!v.done;m++,v=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var x=p(o,g,v.value,u);if(null===x){null===g&&(g=y);break}e&&g&&null===x.alternate&&t(o,g),s=a(x,s,m),null===d?c=x:d.sibling=x,d=x,g=y}if(v.done)return n(o,g),di&&ii(o,m),c;if(null===g){for(;!v.done;m++,v=l.next())null!==(v=h(o,v.value,u))&&(s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return di&&ii(o,m),c}for(g=r(g);!v.done;m++,v=l.next())null!==(v=f(g,o,m,v.value,u))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return e&&g.forEach(function(e){return t(o,e)}),di&&ii(o,m),c}(l,u,c=x.call(c),d)}if("function"==typeof c.then)return v(l,u,uo(c),d);if(c.$$typeof===_)return v(l,u,Oi(l,c),d);ho(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(d=o(u,c)).return=l,l=d):(n(l,u),(d=jr(c,l.mode,d)).return=l,l=d),s(l)):n(l,u)}return function(e,t,n,r){try{lo=0;var i=v(e,t,n,r);return so=null,i}catch(a){if(a===Ki||a===Ji)throw a;var o=Br(29,a,null,e.mode);return o.lanes=r,o.return=e,o}}}var fo=po(!0),go=po(!1),mo=!1;function yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vo(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 xo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&pu){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Lr(e),Rr(e,null,n),t}return Dr(e,r,t,n),Lr(e)}function _o(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Re(e,n)}}function wo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var So=!1;function ko(){if(So){if(null!==ji)throw ji}}function Co(e,t,n,r){So=!1;var i=e.updateQueue;mo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var h=i.baseState;for(a=0,c=u=l=null,s=o;;){var p=-536870913&s.lane,f=p!==s.lane;if(f?(mu&p)===p:(r&p)===p){0!==p&&p===Wi&&(So=!0),null!==c&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,m=s;p=t;var y=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){h=g.call(y,h,p);break e}h=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(p="function"==typeof(g=m.payload)?g.call(y,h,p):g))break e;h=d({},h,p);break e;case 2:mo=!0}}null!==(p=s.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=i.callbacks)?i.callbacks=[p]:f.push(p))}else f={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=h):c=c.next=f,a|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}null===c&&(l=h),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null===o&&(i.shared.lanes=0),ku|=a,e.lanes=a,e.memoizedState=h}}function To(e,t){if("function"!=typeof e)throw Error(i(191,e));e.call(t)}function Mo(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)To(n[e],t)}var Io=F(null),Po=F(0);function Ao(e,t){V(Po,e=wu),V(Io,t),wu=e|t.baseLanes}function Do(){V(Po,wu),V(Io,Io.current)}function Eo(){wu=Po.current,$(Io),$(Po)}var Oo=F(null),Ro=null;function Lo(e){var t=e.alternate;V($o,1&$o.current),V(Oo,e),null===Ro&&(null===t||null!==Io.current||null!==t.memoizedState)&&(Ro=e)}function zo(e){V($o,$o.current),V(Oo,e),null===Ro&&(Ro=e)}function No(e){22===e.tag?(V($o,$o.current),V(Oo,e),null===Ro&&(Ro=e)):Bo()}function Bo(){V($o,$o.current),V(Oo,Oo.current)}function Fo(e){$(Oo),Ro===e&&(Ro=null),$($o)}var $o=F(0);function Vo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Dd(n)||Ed(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ho=0,Wo=null,jo=null,Go=null,Uo=!1,Xo=!1,qo=!1,Yo=0,Zo=0,Ko=null,Qo=0;function Jo(){throw Error(i(321))}function ea(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function ta(e,t,n,r,i,o){return Ho=o,Wo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=null===e||null===e.memoizedState?ms:ys,qo=!1,o=n(r,i),qo=!1,Xo&&(o=ra(t,n,r,i)),na(e),o}function na(e){R.H=gs;var t=null!==jo&&null!==jo.next;if(Ho=0,Go=jo=Wo=null,Uo=!1,Zo=0,Ko=null,t)throw Error(i(300));null===e||Os||null!==(e=e.dependencies)&&Ai(e)&&(Os=!0)}function ra(e,t,n,r){Wo=e;var o=0;do{if(Xo&&(Ko=null),Zo=0,Xo=!1,25<=o)throw Error(i(301));if(o+=1,Go=jo=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}R.H=vs,a=t(n,r)}while(Xo);return a}function ia(){var e=R.H,t=e.useState()[0];return t="function"==typeof t.then?ca(t):t,e=e.useState()[0],(null!==jo?jo.memoizedState:null)!==e&&(Wo.flags|=1024),t}function oa(){var e=0!==Yo;return Yo=0,e}function aa(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function sa(e){if(Uo){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Uo=!1}Ho=0,Go=jo=Wo=null,Xo=!1,Zo=Yo=0,Ko=null}function la(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Go?Wo.memoizedState=Go=e:Go=Go.next=e,Go}function ua(){if(null===jo){var e=Wo.alternate;e=null!==e?e.memoizedState:null}else e=jo.next;var t=null===Go?Wo.memoizedState:Go.next;if(null!==t)Go=t,jo=e;else{if(null===e){if(null===Wo.alternate)throw Error(i(467));throw Error(i(310))}e={memoizedState:(jo=e).memoizedState,baseState:jo.baseState,baseQueue:jo.baseQueue,queue:jo.queue,next:null},null===Go?Wo.memoizedState=Go=e:Go=Go.next=e}return Go}function ca(e){var t=Zo;return Zo+=1,null===Ko&&(Ko=[]),e=no(Ko,e,t),t=Wo,null===(null===Go?t.memoizedState:Go.next)&&(t=t.alternate,R.H=null===t||null===t.memoizedState?ms:ys),e}function da(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return ca(e);if(e.$$typeof===_)return Ei(e)}throw Error(i(438,String(e)))}function ha(e){var t=null,n=Wo.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Wo.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Wo.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=I;return t.index++,n}function pa(e,t){return"function"==typeof t?t(e):t}function fa(e){return ga(ua(),jo,e)}function ga(e,t,n){var r=e.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=n;var o=e.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}t.baseQueue=o=a,r.pending=null}if(a=e.baseState,null===o)e.memoizedState=a;else{var l=s=null,u=null,c=t=o.next,d=!1;do{var h=-536870913&c.lane;if(h!==c.lane?(mu&h)===h:(Ho&h)===h){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),h===Wi&&(d=!0);else{if((Ho&p)===p){c=c.next,p===Wi&&(d=!0);continue}h={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=h,s=a):u=u.next=h,Wo.lanes|=p,ku|=p}h=c.action,qo&&n(a,h),a=c.hasEagerState?c.eagerState:n(a,h)}else p={lane:h,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=p,s=a):u=u.next=p,Wo.lanes|=h,ku|=h;c=c.next}while(null!==c&&c!==t);if(null===u?s=a:u.next=l,!Qn(a,e.memoizedState)&&(Os=!0,d&&null!==(n=ji)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=u,r.lastRenderedState=a}return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ma(e){var t=ua(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);Qn(a,t.memoizedState)||(Os=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ya(e,t,n){var r=Wo,o=ua(),a=di;if(a){if(void 0===n)throw Error(i(407));n=n()}else n=t();var s=!Qn((jo||o).memoizedState,n);if(s&&(o.memoizedState=n,Os=!0),o=o.queue,Ha(ba.bind(null,r,o,e),[e]),o.getSnapshot!==t||s||null!==Go&&1&Go.memoizedState.tag){if(r.flags|=2048,Na(9,{destroy:void 0},xa.bind(null,r,o,n,t),null),null===fu)throw Error(i(349));a||127&Ho||va(r,t,n)}return n}function va(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Wo.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Wo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function xa(e,t,n,r){t.value=n,t.getSnapshot=r,_a(t)&&wa(e)}function ba(e,t,n){return n(function(){_a(t)&&wa(e)})}function _a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch(r){return!0}}function wa(e){var t=Or(e,2);null!==t&&qu(t,e,2)}function Sa(e){var t=la();if("function"==typeof e){var n=e;if(e=n(),qo){xe(!0);try{n()}finally{xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t}function ka(e,t,n,r){return e.baseState=n,ga(e,jo,"function"==typeof r?r:pa)}function Ca(e,t,n,r,o){if(hs(e))throw Error(i(485));if(null!==(e=t.action)){var a={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==R.T?n(!0):a.isTransition=!1,r(a),null===(n=t.pending)?(a.next=t.pending=a,Ta(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Ta(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=R.T,a={};R.T=a;try{var s=n(i,r),l=R.S;null!==l&&l(a,s),Ma(e,t,s)}catch(u){Pa(e,t,u)}finally{null!==o&&null!==a.types&&(o.types=a.types),R.T=o}}else try{Ma(e,t,o=n(i,r))}catch(c){Pa(e,t,c)}}function Ma(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ia(e,t,n)},function(n){return Pa(e,t,n)}):Ia(e,t,n)}function Ia(e,t,n){t.status="fulfilled",t.value=n,Aa(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Ta(e,n)))}function Pa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Aa(t),t=t.next}while(t!==r)}e.action=null}function Aa(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Da(e,t){return t}function Ea(e,t){if(di){var n=fu.formState;if(null!==n){e:{var r=Wo;if(di){if(ci){t:{for(var i=ci,o=pi;8!==i.nodeType;){if(!o){i=null;break t}if(null===(i=Od(i.nextSibling))){i=null;break t}}i="F!"===(o=i.data)||"F"===o?i:null}if(i){ci=Od(i.nextSibling),r="F!"===i.data;break e}}gi(r)}r=!1}r&&(t=n[0])}}return(n=la()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:t},n.queue=r,n=us.bind(null,Wo,r),r.dispatch=n,r=Sa(!1),o=ds.bind(null,Wo,!1,r.queue),i={state:t,dispatch:null,action:e,pending:null},(r=la()).queue=i,n=Ca.bind(null,Wo,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Oa(e){return Ra(ua(),jo,e)}function Ra(e,t,n){if(t=ga(e,t,Da)[0],e=fa(pa)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=ca(t)}catch(a){if(a===Ki)throw Ji;throw a}else r=t;var i=(t=ua()).queue,o=i.dispatch;return n!==t.memoizedState&&(Wo.flags|=2048,Na(9,{destroy:void 0},La.bind(null,i,n),null)),[r,o,e]}function La(e,t){e.action=t}function za(e){var t=ua(),n=jo;if(null!==n)return Ra(t,n,e);ua(),t=t.memoizedState;var r=(n=ua()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Na(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Wo.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Wo.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ba(){return ua().memoizedState}function Fa(e,t,n,r){var i=la();Wo.flags|=e,i.memoizedState=Na(1|t,{destroy:void 0},n,void 0===r?null:r)}function $a(e,t,n,r){var i=ua();r=void 0===r?null:r;var o=i.memoizedState.inst;null!==jo&&null!==r&&ea(r,jo.memoizedState.deps)?i.memoizedState=Na(t,o,n,r):(Wo.flags|=e,i.memoizedState=Na(1|t,o,n,r))}function Va(e,t){Fa(8390656,8,e,t)}function Ha(e,t){$a(2048,8,e,t)}function Wa(e){var t=ua().memoizedState;return function(e){Wo.flags|=4;var t=Wo.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Wo.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&pu)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ja(e,t){return $a(4,2,e,t)}function Ga(e,t){return $a(4,4,e,t)}function Ua(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Xa(e,t,n){n=null!=n?n.concat([e]):null,$a(4,4,Ua.bind(null,t,e),n)}function qa(){}function Ya(e,t){var n=ua();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&ea(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Za(e,t){var n=ua();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&ea(t,r[1]))return r[0];if(r=e(),qo){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r}function Ka(e,t,n){return void 0===n||1073741824&Ho&&!(261930&mu)?e.memoizedState=t:(e.memoizedState=n,e=Xu(),Wo.lanes|=e,ku|=e,n)}function Qa(e,t,n,r){return Qn(n,t)?n:null!==Io.current?(e=Ka(e,n,r),Qn(e,t)||(Os=!0),e):42&Ho&&(!(1073741824&Ho)||261930&mu)?(e=Xu(),Wo.lanes|=e,ku|=e,t):(Os=!0,e.memoizedState=n)}function Ja(e,t,n,r,i){var o=L.p;L.p=0!==o&&8>o?o:8;var a,s,l,u=R.T,c={};R.T=c,ds(e,!1,t,n);try{var d=i(),h=R.S;null!==h&&h(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?cs(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Uu()):cs(e,t,r,Uu())}catch(p){cs(e,t,{then:function(){},status:"rejected",reason:p},Uu())}finally{L.p=o,null!==u&&null!==c.types&&(u.types=c.types),R.T=u}}function es(){}function ts(e,t,n,r){if(5!==e.tag)throw Error(i(476));var o=ns(e).queue;Ja(e,o,t,z,null===n?es:function(){return rs(e),n(r)})}function ns(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:z},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function rs(e){var t=ns(e);null===t.next&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},Uu())}function is(){return Ei(ch)}function os(){return ua().memoizedState}function as(){return ua().memoizedState}function ss(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Uu(),r=bo(t,e=xo(n),n);return null!==r&&(qu(r,t,n),_o(r,t,n)),t={cache:Fi()},void(e.payload=t)}t=t.return}}function ls(e,t,n){var r=Uu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hs(e)?ps(t,n):null!==(n=Er(e,t,n,r))&&(qu(n,e,r),fs(n,t,r))}function us(e,t,n){cs(e,t,n,Uu())}function cs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))ps(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Qn(s,a))return Dr(e,t,i,0),null===fu&&Ar(),!1}catch(l){}if(null!==(n=Er(e,t,i,r)))return qu(n,e,r),fs(n,t,r),!0}return!1}function ds(e,t,n,r){if(r={lane:2,revertLane:Hc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},hs(e)){if(t)throw Error(i(479))}else null!==(t=Er(e,n,r,2))&&qu(t,e,2)}function hs(e){var t=e.alternate;return e===Wo||null!==t&&t===Wo}function ps(e,t){Xo=Uo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fs(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Re(e,n)}}var gs={readContext:Ei,use:da,useCallback:Jo,useContext:Jo,useEffect:Jo,useImperativeHandle:Jo,useLayoutEffect:Jo,useInsertionEffect:Jo,useMemo:Jo,useReducer:Jo,useRef:Jo,useState:Jo,useDebugValue:Jo,useDeferredValue:Jo,useTransition:Jo,useSyncExternalStore:Jo,useId:Jo,useHostTransitionStatus:Jo,useFormState:Jo,useActionState:Jo,useOptimistic:Jo,useMemoCache:Jo,useCacheRefresh:Jo};gs.useEffectEvent=Jo;var ms={readContext:Ei,use:da,useCallback:function(e,t){return la().memoizedState=[e,void 0===t?null:t],e},useContext:Ei,useEffect:Va,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Fa(4194308,4,Ua.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fa(4194308,4,e,t)},useInsertionEffect:function(e,t){Fa(4,2,e,t)},useMemo:function(e,t){var n=la();t=void 0===t?null:t;var r=e();if(qo){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=la();if(void 0!==n){var i=n(t);if(qo){xe(!0);try{n(t)}finally{xe(!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=ls.bind(null,Wo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},la().memoizedState=e},useState:function(e){var t=(e=Sa(e)).queue,n=us.bind(null,Wo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:qa,useDeferredValue:function(e,t){return Ka(la(),e,t)},useTransition:function(){var e=Sa(!1);return e=Ja.bind(null,Wo,e.queue,!0,!1),la().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Wo,o=la();if(di){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===fu)throw Error(i(349));127&mu||va(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Va(ba.bind(null,r,a,e),[e]),r.flags|=2048,Na(9,{destroy:void 0},xa.bind(null,r,a,n,t),null),n},useId:function(){var e=la(),t=fu.identifierPrefix;if(di){var n=ri;t="_"+t+"R_"+(n=(ni&~(1<<32-be(ni)-1)).toString(32)+n),0<(n=Yo++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Qo++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:is,useFormState:Ea,useActionState:Ea,useOptimistic:function(e){var t=la();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,Wo,!0,n),n.dispatch=t,[e,t]},useMemoCache:ha,useCacheRefresh:function(){return la().memoizedState=ss.bind(null,Wo)},useEffectEvent:function(e){var t=la(),n={impl:e};return t.memoizedState=n,function(){if(2&pu)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},ys={readContext:Ei,use:da,useCallback:Ya,useContext:Ei,useEffect:Ha,useImperativeHandle:Xa,useInsertionEffect:ja,useLayoutEffect:Ga,useMemo:Za,useReducer:fa,useRef:Ba,useState:function(){return fa(pa)},useDebugValue:qa,useDeferredValue:function(e,t){return Qa(ua(),jo.memoizedState,e,t)},useTransition:function(){var e=fa(pa)[0],t=ua().memoizedState;return["boolean"==typeof e?e:ca(e),t]},useSyncExternalStore:ya,useId:os,useHostTransitionStatus:is,useFormState:Oa,useActionState:Oa,useOptimistic:function(e,t){return ka(ua(),0,e,t)},useMemoCache:ha,useCacheRefresh:as};ys.useEffectEvent=Wa;var vs={readContext:Ei,use:da,useCallback:Ya,useContext:Ei,useEffect:Ha,useImperativeHandle:Xa,useInsertionEffect:ja,useLayoutEffect:Ga,useMemo:Za,useReducer:ma,useRef:Ba,useState:function(){return ma(pa)},useDebugValue:qa,useDeferredValue:function(e,t){var n=ua();return null===jo?Ka(n,e,t):Qa(n,jo.memoizedState,e,t)},useTransition:function(){var e=ma(pa)[0],t=ua().memoizedState;return["boolean"==typeof e?e:ca(e),t]},useSyncExternalStore:ya,useId:os,useHostTransitionStatus:is,useFormState:za,useActionState:za,useOptimistic:function(e,t){var n=ua();return null!==jo?ka(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ha,useCacheRefresh:as};function xs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:d({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}vs.useEffectEvent=Wa;var bs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Uu(),i=xo(r);i.payload=t,null!=n&&(i.callback=n),null!==(t=bo(e,i,r))&&(qu(t,e,r),_o(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Uu(),i=xo(r);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=bo(e,i,r))&&(qu(t,e,r),_o(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Uu(),r=xo(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=bo(e,r,n))&&(qu(t,e,n),_o(t,e,n))}};function _s(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Jn(n,r)||!Jn(i,o))}function ws(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bs.enqueueReplaceState(t,t.state,null)}function Ss(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=d({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}function ks(e){Tr(e)}function Cs(e){console.error(e)}function Ts(e){Tr(e)}function Ms(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Is(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Ps(e,t,n){return(n=xo(n)).tag=3,n.payload={element:null},n.callback=function(){Ms(e,t)},n}function As(e){return(e=xo(e)).tag=3,e}function Ds(e,t,n,r){var i=n.type.getDerivedStateFromError;if("function"==typeof i){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){Is(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Is(t,n,r),"function"!=typeof i&&(null===zu?zu=new Set([this]):zu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Es=Error(i(461)),Os=!1;function Rs(e,t,n,r){t.child=null===e?go(t,null,n,r):fo(t,e.child,n,r)}function Ls(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Di(t),r=ta(e,t,n,a,o,i),s=oa(),null===e||Os?(di&&s&&ai(t),t.flags|=1,Rs(e,t,r,i),t.child):(aa(e,t,i),il(e,t,i))}function zs(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Fr(o)||void 0!==o.defaultProps||null!==n.compare?((e=Hr(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ns(e,t,o,r,i))}if(o=e.child,!ol(e,i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:Jn)(a,r)&&e.ref===t.ref)return il(e,t,i)}return t.flags|=1,(e=$r(o,r)).ref=t.ref,e.return=t,t.child=e}function Ns(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(Jn(o,r)&&e.ref===t.ref){if(Os=!1,t.pendingProps=r=o,!ol(e,i))return t.lanes=e.lanes,il(e,t,i);131072&e.flags&&(Os=!0)}}return js(e,t,n,r,i)}function Bs(e,t,n,r){var i=r.children,o=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(o=null!==o?o.baseLanes|n:n,null!==e){for(r=t.child=e.child,i=0;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,t.child=null;return $s(e,t,o,n,r)}if(!(536870912&n))return r=t.lanes=536870912,$s(e,t,null!==o?o.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Yi(0,null!==o?o.cachePool:null),null!==o?Ao(t,o):Do(),No(t)}else null!==o?(Yi(0,o.cachePool),Ao(t,o),Bo(),t.memoizedState=null):(null!==e&&Yi(0,null),Do(),Bo());return Rs(e,t,i,n),t.child}function Fs(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $s(e,t,n,r,i){var o=qi();return o=null===o?null:{parent:Bi._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Yi(0,null),Do(),No(t),null!==e&&Pi(e,t,r,!0),t.childLanes=i,null}function Vs(e,t){return(t=Js({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Hs(e,t,n){return fo(t,e.child,null,n),(e=Vs(t,t.pendingProps)).flags|=2,Fo(t),t.memoizedState=null,e}function Ws(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(i(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function js(e,t,n,r,i){return Di(t),n=ta(e,t,n,r,void 0,i),r=oa(),null===e||Os?(di&&r&&ai(t),t.flags|=1,Rs(e,t,n,i),t.child):(aa(e,t,i),il(e,t,i))}function Gs(e,t,n,r,i,o){return Di(t),t.updateQueue=null,n=ra(t,r,n,i),na(e),r=oa(),null===e||Os?(di&&r&&ai(t),t.flags|=1,Rs(e,t,n,o),t.child):(aa(e,t,o),il(e,t,o))}function Us(e,t,n,r,i){if(Di(t),null===t.stateNode){var o=zr,a=n.contextType;"object"==typeof a&&null!==a&&(o=Ei(a)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=bs,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},yo(t),a=n.contextType,o.context="object"==typeof a&&null!==a?Ei(a):zr,o.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(xs(t,n,a,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(a=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),a!==o.state&&bs.enqueueReplaceState(o,o.state,null),Co(t,r,o,i),ko(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var s=t.memoizedProps,l=Ss(n,s);o.props=l;var u=o.context,c=n.contextType;a=zr,"object"==typeof c&&null!==c&&(a=Ei(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,s=t.pendingProps!==s,c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s||u!==a)&&ws(t,o,r,a),mo=!1;var h=t.memoizedState;o.state=h,Co(t,r,o,i),ko(),u=t.memoizedState,s||h!==u||mo?("function"==typeof d&&(xs(t,n,d,r),u=t.memoizedState),(l=mo||_s(t,n,l,r,h,u,a))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=a,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,vo(e,t),c=Ss(n,a=t.memoizedProps),o.props=c,d=t.pendingProps,h=o.context,u=n.contextType,l=zr,"object"==typeof u&&null!==u&&(l=Ei(u)),(u="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==d||h!==l)&&ws(t,o,r,l),mo=!1,h=t.memoizedState,o.state=h,Co(t,r,o,i),ko();var p=t.memoizedState;a!==d||h!==p||mo||null!==e&&null!==e.dependencies&&Ai(e.dependencies)?("function"==typeof s&&(xs(t,n,s,r),p=t.memoizedState),(c=mo||_s(t,n,c,r,h,p,l)||null!==e&&null!==e.dependencies&&Ai(e.dependencies))?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=c):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Ws(e,t),r=!!(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=fo(t,e.child,null,i),t.child=fo(t,null,n,i)):Rs(e,t,n,i),t.memoizedState=o.state,e=t.child):e=il(e,t,i),e}function Xs(e,t,n,r){return xi(),t.flags|=256,Rs(e,t,n,r),t.child}var qs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ys(e){return{baseLanes:e,cachePool:Zi()}}function Zs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Mu),e}function Ks(e,t,n){var r,o=t.pendingProps,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&$o.current)),r&&(a=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(di){if(a?Lo(t):Bo(),(e=ci)?null!==(e=null!==(e=Ad(e,pi))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ti?{id:ni,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},(n=Gr(e)).return=t,t.child=n,ui=t,ci=null):e=null,null===e)throw gi(t);return Ed(e)?t.lanes=32:t.lanes=536870912,null}var l=o.children;return o=o.fallback,a?(Bo(),l=Js({mode:"hidden",children:l},a=t.mode),o=Wr(o,a,n,null),l.return=t,o.return=t,l.sibling=o,t.child=l,(o=t.child).memoizedState=Ys(n),o.childLanes=Zs(e,r,n),t.memoizedState=qs,Fs(null,o)):(Lo(t),Qs(t,l))}var u=e.memoizedState;if(null!==u&&null!==(l=u.dehydrated)){if(s)256&t.flags?(Lo(t),t.flags&=-257,t=el(e,t,n)):null!==t.memoizedState?(Bo(),t.child=e.child,t.flags|=128,t=null):(Bo(),l=o.fallback,a=t.mode,o=Js({mode:"visible",children:o.children},a),(l=Wr(l,a,n,null)).flags|=2,o.return=t,l.return=t,o.sibling=l,t.child=o,fo(t,e.child,null,n),(o=t.child).memoizedState=Ys(n),o.childLanes=Zs(e,r,n),t.memoizedState=qs,t=Fs(null,o));else if(Lo(t),Ed(l)){if(r=l.nextSibling&&l.nextSibling.dataset)var c=r.dgst;r=c,(o=Error(i(419))).stack="",o.digest=r,_i({value:o,source:null,stack:null}),t=el(e,t,n)}else if(Os||Pi(e,t,n,!1),r=0!==(n&e.childLanes),Os||r){if(null!==(r=fu)&&(0!==(o=Le(r,n))&&o!==u.retryLane))throw u.retryLane=o,Or(e,o),qu(r,e,o),Es;Dd(l)||ac(),t=el(e,t,n)}else Dd(l)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,ci=Od(l.nextSibling),ui=t,di=!0,hi=null,pi=!1,null!==e&&li(t,e),(t=Qs(t,o.children)).flags|=4096);return t}return a?(Bo(),l=o.fallback,a=t.mode,c=(u=e.child).sibling,(o=$r(u,{mode:"hidden",children:o.children})).subtreeFlags=65011712&u.subtreeFlags,null!==c?l=$r(c,l):(l=Wr(l,a,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,Fs(null,o),o=t.child,null===(l=e.child.memoizedState)?l=Ys(n):(null!==(a=l.cachePool)?(u=Bi._currentValue,a=a.parent!==u?{parent:u,pool:u}:a):a=Zi(),l={baseLanes:l.baseLanes|n,cachePool:a}),o.memoizedState=l,o.childLanes=Zs(e,r,n),t.memoizedState=qs,Fs(e.child,o)):(Lo(t),e=(n=e.child).sibling,(n=$r(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Qs(e,t){return(t=Js({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Js(e,t){return(e=Br(22,e,null,t)).lanes=0,e}function el(e,t,n){return fo(t,e.child,null,n),(e=Qs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Mi(e.return,t,n)}function nl(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=o)}function rl(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var a=$o.current,s=!!(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,V($o,a),Rs(e,t,r,n),r=di?Qr:0,!s&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tl(e,n,t);else if(19===e.tag)tl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Vo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),nl(t,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Vo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}nl(t,!0,n,null,o,r);break;case"together":nl(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function il(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ku|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Pi(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=$r(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$r(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ol(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ai(e))}function al(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Os=!0;else{if(!(ol(e,n)||128&t.flags))return Os=!1,function(e,t,n){switch(t.tag){case 3:q(t,t.stateNode.containerInfo),Ci(0,Bi,e.memoizedState.cache),xi();break;case 27:case 5:Z(t);break;case 4:q(t,t.stateNode.containerInfo);break;case 10:Ci(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,zo(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Lo(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Ks(e,t,n):(Lo(t),null!==(e=il(e,t,n))?e.sibling:null);Lo(t);break;case 19:var i=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Pi(e,t,n,!1),r=0!==(n&t.childLanes)),i){if(r)return rl(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),V($o,$o.current),r)break;return null;case 22:return t.lanes=0,Bs(e,t,n,t.pendingProps);case 24:Ci(0,Bi,e.memoizedState.cache)}return il(e,t,n)}(e,t,n);Os=!!(131072&e.flags)}else Os=!1,di&&1048576&t.flags&&oi(t,Qr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ro(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var o=e.$$typeof;if(o===w){t.tag=11,t=Ls(null,t,e,r,n);break e}if(o===C){t.tag=14,t=zs(null,t,e,r,n);break e}}throw t=E(e)||e,Error(i(306,t,""))}Fr(e)?(r=Ss(e,r),t.tag=1,t=Us(null,t,e,r,n)):(t.tag=0,t=js(null,t,e,r,n))}return t;case 0:return js(e,t,t.type,t.pendingProps,n);case 1:return Us(e,t,r=t.type,o=Ss(r,t.pendingProps),n);case 3:e:{if(q(t,t.stateNode.containerInfo),null===e)throw Error(i(387));r=t.pendingProps;var a=t.memoizedState;o=a.element,vo(e,t),Co(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ci(0,Bi,r),r!==a.cache&&Ii(t,[Bi],n,!0),ko(),r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Xs(e,t,r,n);break e}if(r!==o){_i(o=qr(Error(i(424)),t)),t=Xs(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(ci=Od(e.firstChild),ui=t,di=!0,hi=null,pi=!0,n=go(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(xi(),r===o){t=il(e,t,n);break e}Rs(e,t,r,n)}t=t.child}return t;case 26:return Ws(e,t),null===e?(n=Gd(t.type,null,t.pendingProps,null))?t.memoizedState=n:di||(n=t.type,e=t.pendingProps,(r=md(U.current).createElement(n))[Ve]=t,r[He]=e,hd(r,n,e),et(r),t.stateNode=r):t.memoizedState=Gd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Z(t),null===e&&di&&(r=t.stateNode=Nd(t.type,t.pendingProps,U.current),ui=t,pi=!0,o=ci,Td(t.type)?(Rd=o,ci=Od(r.firstChild)):ci=o),Rs(e,t,t.pendingProps.children,n),Ws(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&di&&((o=r=ci)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[qe])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===o)return e}if(null===(e=Od(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,pi))?(t.stateNode=r,ui=t,ci=Od(r.firstChild),pi=!1,o=!0):o=!1),o||gi(t)),Z(t),o=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,r=a.children,xd(o,a)?r=null:null!==s&&xd(o,s)&&(t.flags|=32),null!==t.memoizedState&&(o=ta(e,t,ia,null,null,n),ch._currentValue=o),Ws(e,t),Rs(e,t,r,n),t.child;case 6:return null===e&&di&&((e=n=ci)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Od(e.nextSibling)))return null}return e}(n,t.pendingProps,pi))?(t.stateNode=n,ui=t,ci=null,e=!0):e=!1),e||gi(t)),null;case 13:return Ks(e,t,n);case 4:return q(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=fo(t,null,r,n):Rs(e,t,r,n),t.child;case 11:return Ls(e,t,t.type,t.pendingProps,n);case 7:return Rs(e,t,t.pendingProps,n),t.child;case 8:case 12:return Rs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ci(0,t.type,r.value),Rs(e,t,r.children,n),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Di(t),r=r(o=Ei(o)),t.flags|=1,Rs(e,t,r,n),t.child;case 14:return zs(e,t,t.type,t.pendingProps,n);case 15:return Ns(e,t,t.type,t.pendingProps,n);case 19:return rl(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,o=!!(128&t.flags);if(t.flags&=-129,null===e){if(di){if("hidden"===r.mode)return e=Vs(t,r),t.lanes=536870912,Fs(null,e);if(zo(t),(e=ci)?null!==(e=null!==(e=Ad(e,pi))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ti?{id:ni,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},(n=Gr(e)).return=t,t.child=n,ui=t,ci=null):e=null,null===e)throw gi(t);return t.lanes=536870912,null}return Vs(t,r)}var a=e.memoizedState;if(null!==a){var s=a.dehydrated;if(zo(t),o)if(256&t.flags)t.flags&=-257,t=Hs(e,t,n);else{if(null===t.memoizedState)throw Error(i(558));t.child=e.child,t.flags|=128,t=null}else if(Os||Pi(e,t,n,!1),o=0!==(n&e.childLanes),Os||o){if(null!==(r=fu)&&0!==(s=Le(r,n))&&s!==a.retryLane)throw a.retryLane=s,Or(e,s),qu(r,e,s),Es;ac(),t=Hs(e,t,n)}else e=a.treeContext,ci=Od(s.nextSibling),ui=t,di=!0,hi=null,pi=!1,null!==e&&li(t,e),(t=Vs(t,r)).flags|=4096;return t}return(e=$r(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Bs(e,t,n,t.pendingProps);case 24:return Di(t),r=Ei(Bi),null===e?(null===(o=qi())&&(o=fu,a=Fi(),o.pooledCache=a,a.refCount++,null!==a&&(o.pooledCacheLanes|=n),o=a),t.memoizedState={parent:r,cache:o},yo(t),Ci(0,Bi,o)):(0!==(e.lanes&n)&&(vo(e,t),Co(t,null,null,n),ko()),o=e.memoizedState,a=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),Ci(0,Bi,r)):(r=a.cache,Ci(0,Bi,r),r!==o.cache&&Ii(t,[Bi],n,!0))),Rs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function sl(e){e.flags|=4}function ll(e,t,n,r,i){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&i)===i)if(e.stateNode.complete)e.flags|=8192;else{if(!rc())throw io=eo,Qi;e.flags|=8192}}else e.flags&=-16777217}function ul(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!ih(t)){if(!rc())throw io=eo,Qi;e.flags|=8192}}function cl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ae():536870912,e.lanes|=t,Iu|=t)}function dl(e,t){if(!di)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=65011712&i.subtreeFlags,r|=65011712&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)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 pl(e,t,n){var r=t.pendingProps;switch(si(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ti(Bi),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(vi(t)?sl(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,bi())),hl(t),null;case 26:var o=t.type,a=t.memoizedState;return null===e?(sl(t),null!==a?(hl(t),ul(t,a)):(hl(t),ll(t,o,0,0,n))):a?a!==e.memoizedState?(sl(t),hl(t),ul(t,a)):(hl(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&sl(t),hl(t),ll(t,o,0,0,n)),null;case 27:if(K(t),n=U.current,o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return hl(t),null}e=j.current,vi(t)?mi(t):(e=Nd(o,r,n),t.stateNode=e,sl(t))}return hl(t),null;case 5:if(K(t),o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return hl(t),null}if(a=j.current,vi(t))mi(t);else{var s=md(U.current);switch(a){case 1:a=s.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:a=s.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":a=s.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":a=s.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":(a=s.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof r.is?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a="string"==typeof r.is?s.createElement(o,{is:r.is}):s.createElement(o)}}a[Ve]=t,a[He]=r;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)a.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;e:switch(hd(a,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&sl(t)}}return hl(t),ll(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=U.current,vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=ui))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[Ve]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||ud(e.nodeValue,n)))||gi(t,!0)}else(e=md(e).createTextNode(r))[Ve]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=vi(t),null!==n){if(null===e){if(!r)throw Error(i(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(i(557));e[Ve]=t}else xi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=bi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Fo(t),t):(Fo(t),null);if(128&t.flags)throw Error(i(558))}return hl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=vi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));o[Ve]=t}else xi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),o=!1}else o=bi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(Fo(t),t):(Fo(t),null)}return Fo(t),128&t.flags?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==o&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cl(t,t.updateQueue),hl(t),null);case 4:return Y(),null===e&&Jc(t.stateNode.containerInfo),hl(t),null;case 10:return Ti(t.type),hl(t),null;case 19:if($($o),null===(r=t.memoizedState))return hl(t),null;if(o=!!(128&t.flags),null===(a=r.rendering))if(o)dl(r,!1);else{if(0!==Su||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Vo(e))){for(t.flags|=128,dl(r,!1),e=a.updateQueue,t.updateQueue=e,cl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Vr(n,e),n=n.sibling;return V($o,1&$o.current|2),di&&ii(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&le()>Ru&&(t.flags|=128,o=!0,dl(r,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=Vo(a))){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,cl(t,e),dl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate&&!di)return hl(t),null}else 2*le()-r.renderingStartTime>Ru&&536870912!==n&&(t.flags|=128,o=!0,dl(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=r.last)?e.sibling=a:t.child=a,r.last=a)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=le(),e.sibling=null,n=$o.current,V($o,o?1&n|2:1&n),di&&ii(t,r.treeForkCount),e):(hl(t),null);case 22:case 23:return Fo(t),Eo(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(hl(t),6&t.subtreeFlags&&(t.flags|=8192)):hl(t),null!==(n=t.updateQueue)&&cl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&$(Xi),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ti(Bi),hl(t),null;case 25:case 30:return null}throw Error(i(156,t.tag))}function fl(e,t){switch(si(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ti(Bi),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return K(t),null;case 31:if(null!==t.memoizedState){if(Fo(t),null===t.alternate)throw Error(i(340));xi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Fo(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));xi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return $($o),null;case 4:return Y(),null;case 10:return Ti(t.type),null;case 22:case 23:return Fo(t),Eo(),null!==e&&$(Xi),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ti(Bi),null;default:return null}}function gl(e,t){switch(si(t),t.tag){case 3:Ti(Bi),Y();break;case 26:case 27:case 5:K(t);break;case 4:Y();break;case 31:null!==t.memoizedState&&Fo(t);break;case 13:Fo(t);break;case 19:$($o);break;case 10:Ti(t.type);break;case 22:case 23:Fo(t),Eo(),null!==e&&$(Xi);break;case 24:Ti(Bi)}}function ml(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(s){Sc(t,t.return,s)}}function yl(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,i=t;var l=n,u=s;try{u()}catch(c){Sc(i,l,c)}}}r=r.next}while(r!==o)}}catch(c){Sc(t,t.return,c)}}function vl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Mo(t,n)}catch(r){Sc(e,e.return,r)}}}function xl(e,t,n){n.props=Ss(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Sc(e,t,r)}}function bl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(i){Sc(e,t,i)}}function _l(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(i){Sc(e,t,i)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(o){Sc(e,t,o)}else n.current=null}function wl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){Sc(e,e.return,i)}}function Sl(e,t,n){try{var r=e.stateNode;!function(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 o=null,a=null,s=null,l=null,u=null,c=null,d=null;for(f in n){var h=n[f];if(n.hasOwnProperty(f)&&null!=h)switch(f){case"checked":case"value":break;case"defaultValue":u=h;default:r.hasOwnProperty(f)||cd(e,t,f,null,r,h)}}for(var p in r){var f=r[p];if(h=n[p],r.hasOwnProperty(p)&&(null!=f||null!=h))switch(p){case"type":a=f;break;case"name":o=f;break;case"checked":c=f;break;case"defaultChecked":d=f;break;case"value":s=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(i(137,t));break;default:f!==h&&cd(e,t,p,f,r,h)}}return void vt(e,s,l,u,c,d,a,o);case"select":for(a in f=s=l=p=null,n)if(u=n[a],n.hasOwnProperty(a)&&null!=u)switch(a){case"value":break;case"multiple":f=u;default:r.hasOwnProperty(a)||cd(e,t,a,null,r,u)}for(o in r)if(a=r[o],u=n[o],r.hasOwnProperty(o)&&(null!=a||null!=u))switch(o){case"value":p=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==u&&cd(e,t,o,a,r,u)}return t=l,n=s,r=f,void(null!=p?_t(e,!!n,p,!1):!!r!=!!n&&(null!=t?_t(e,!!n,t,!0):_t(e,!!n,n?[]:"",!1)));case"textarea":for(l in f=p=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:cd(e,t,l,null,r,o)}for(s in r)if(o=r[s],a=n[s],r.hasOwnProperty(s)&&(null!=o||null!=a))switch(s){case"value":p=o;break;case"defaultValue":f=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(i(91));break;default:o!==a&&cd(e,t,s,o,r,a)}return void wt(e,p,f);case"option":for(var g in n)if(p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g))if("selected"===g)e.selected=!1;else cd(e,t,g,null,r,p);for(u in r)if(p=r[u],f=n[u],r.hasOwnProperty(u)&&p!==f&&(null!=p||null!=f))if("selected"===u)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else cd(e,t,u,p,r,f);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 m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m)&&cd(e,t,m,null,r,p);for(c in r)if(p=r[c],f=n[c],r.hasOwnProperty(c)&&p!==f&&(null!=p||null!=f))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(i(137,t));break;default:cd(e,t,c,p,r,f)}return;default:if(It(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!r.hasOwnProperty(y)&&dd(e,t,y,void 0,r,p);for(d in r)p=r[d],f=n[d],!r.hasOwnProperty(d)||p===f||void 0===p&&void 0===f||dd(e,t,d,p,r,f);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&cd(e,t,v,null,r,p);for(h in r)p=r[h],f=n[h],!r.hasOwnProperty(h)||p===f||null==p&&null==f||cd(e,t,h,p,r,f)}(r,e.type,n,t),r[He]=t}catch(o){Sc(e,e.return,o)}}function kl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Td(e.type)||4===e.tag}function Cl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||kl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Td(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Tl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Et));else if(4!==r&&(27===r&&Td(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Tl(e,t,n),e=e.sibling;null!==e;)Tl(e,t,n),e=e.sibling}function Ml(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Td(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Ml(e,t,n),e=e.sibling;null!==e;)Ml(e,t,n),e=e.sibling}function Il(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);hd(t,r,n),t[Ve]=e,t[He]=n}catch(o){Sc(e,e.return,o)}}var Pl=!1,Al=!1,Dl=!1,El="function"==typeof WeakSet?WeakSet:Set,Ol=null;function Rl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ql(e,n),4&r&&ml(5,n);break;case 1:if(ql(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(a){Sc(n,n.return,a)}else{var i=Ss(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Sc(n,n.return,s)}}64&r&&vl(n),512&r&&bl(n,n.return);break;case 3:if(ql(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Mo(e,t)}catch(a){Sc(n,n.return,a)}}break;case 27:null===t&&4&r&&Il(n);case 26:case 5:ql(e,n),null===t&&4&r&&wl(n),512&r&&bl(n,n.return);break;case 12:ql(e,n);break;case 31:ql(e,n),4&r&&$l(e,n);break;case 13:ql(e,n),4&r&&Vl(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Mc.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Pl)){t=null!==t&&null!==t.memoizedState||Al,i=Pl;var o=Al;Pl=r,(Al=t)&&!o?Zl(e,n,!!(8772&n.subtreeFlags)):ql(e,n),Pl=i,Al=o}break;case 30:break;default:ql(e,n)}}function Ll(e){var t=e.alternate;null!==t&&(e.alternate=null,Ll(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ye(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 zl=null,Nl=!1;function Bl(e,t,n){for(n=n.child;null!==n;)Fl(e,t,n),n=n.sibling}function Fl(e,t,n){if(ve&&"function"==typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(ye,n)}catch(o){}switch(n.tag){case 26:Al||_l(n,t),Bl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Al||_l(n,t);var r=zl,i=Nl;Td(n.type)&&(zl=n.stateNode,Nl=!1),Bl(e,t,n),Bd(n.stateNode),zl=r,Nl=i;break;case 5:Al||_l(n,t);case 6:if(r=zl,i=Nl,zl=null,Bl(e,t,n),Nl=i,null!==(zl=r))if(Nl)try{(9===zl.nodeType?zl.body:"HTML"===zl.nodeName?zl.ownerDocument.body:zl).removeChild(n.stateNode)}catch(a){Sc(n,t,a)}else try{zl.removeChild(n.stateNode)}catch(a){Sc(n,t,a)}break;case 18:null!==zl&&(Nl?(Md(9===(e=zl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Hh(e)):Md(zl,n.stateNode));break;case 4:r=zl,i=Nl,zl=n.stateNode.containerInfo,Nl=!0,Bl(e,t,n),zl=r,Nl=i;break;case 0:case 11:case 14:case 15:yl(2,n,t),Al||yl(4,n,t),Bl(e,t,n);break;case 1:Al||(_l(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&xl(n,t,r)),Bl(e,t,n);break;case 21:Bl(e,t,n);break;case 22:Al=(r=Al)||null!==n.memoizedState,Bl(e,t,n),Al=r;break;default:Bl(e,t,n)}}function $l(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Hh(e)}catch(n){Sc(t,t.return,n)}}}function Vl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Hh(e)}catch(n){Sc(t,t.return,n)}}function Hl(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new El),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new El),t;default:throw Error(i(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ic.bind(null,e,t);t.then(r,r)}})}function Wl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Td(l.type)){zl=l.stateNode,Nl=!1;break e}break;case 5:zl=l.stateNode,Nl=!1;break e;case 3:case 4:zl=l.stateNode.containerInfo,Nl=!0;break e}l=l.return}if(null===zl)throw Error(i(160));Fl(a,s,o),zl=null,Nl=!1,null!==(a=o.alternate)&&(a.return=null),o.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Gl(t,e),t=t.sibling}var jl=null;function Gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Wl(t,e),Ul(e),4&r&&(yl(3,e,e.return),ml(3,e),yl(5,e,e.return));break;case 1:Wl(t,e),Ul(e),512&r&&(Al||null===n||_l(n,n.return)),64&r&&Pl&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var o=jl;if(Wl(t,e),Ul(e),512&r&&(Al||null===n||_l(n,n.return)),4&r){var a=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":(!(a=o.getElementsByTagName("title")[0])||a[qe]||a[Ve]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=o.createElement(r),o.head.insertBefore(a,o.querySelector("head > title"))),hd(a,r,n),a[Ve]=e,et(a),r=a;break e;case"link":var s=nh("link","href",o).get(r+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}hd(a=o.createElement(r),r,n),o.head.appendChild(a);break;case"meta":if(s=nh("meta","content",o).get(r+(n.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}hd(a=o.createElement(r),r,n),o.head.appendChild(a);break;default:throw Error(i(468,r))}a[Ve]=e,et(a),r=a}e.stateNode=r}else rh(o,e.type,e.stateNode);else e.stateNode=Kd(o,r,e.memoizedProps);else a!==r?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===r?rh(o,e.type,e.stateNode):Kd(o,r,e.memoizedProps)):null===r&&null!==e.stateNode&&Sl(e,e.memoizedProps,n.memoizedProps)}break;case 27:Wl(t,e),Ul(e),512&r&&(Al||null===n||_l(n,n.return)),null!==n&&4&r&&Sl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Wl(t,e),Ul(e),512&r&&(Al||null===n||_l(n,n.return)),32&e.flags){o=e.stateNode;try{kt(o,"")}catch(g){Sc(e,e.return,g)}}4&r&&null!=e.stateNode&&Sl(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&r&&(Dl=!0);break;case 6:if(Wl(t,e),Ul(e),4&r){if(null===e.stateNode)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(g){Sc(e,e.return,g)}}break;case 3:if(th=null,o=jl,jl=Vd(t.containerInfo),Wl(t,e),jl=o,Ul(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Hh(t.containerInfo)}catch(g){Sc(e,e.return,g)}Dl&&(Dl=!1,Xl(e));break;case 4:r=jl,jl=Vd(e.stateNode.containerInfo),Wl(t,e),Ul(e),jl=r;break;case 12:default:Wl(t,e),Ul(e);break;case 31:case 19:Wl(t,e),Ul(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Hl(e,r)));break;case 13:Wl(t,e),Ul(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Eu=le()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Hl(e,r)));break;case 22:o=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=Pl,d=Al;if(Pl=c||o,Al=d||u,Wl(t,e),Al=d,Pl=c,Ul(e),8192&r)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||u||Pl||Al||Yl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(a=u.stateNode,o)"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=u.stateNode;var h=u.memoizedProps.style,p=null!=h&&h.hasOwnProperty("display")?h.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(g){Sc(u,u.return,g)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=o?"":u.memoizedProps}catch(g){Sc(u,u.return,g)}}}else if(18===t.tag){if(null===n){u=t;try{var f=u.stateNode;o?Id(f,!0):Id(u.stateNode,!1)}catch(g){Sc(u,u.return,g)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,Hl(e,n))));case 30:case 21:}}function Ul(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(kl(r)){n=r;break}r=r.return}if(null==n)throw Error(i(160));switch(n.tag){case 27:var o=n.stateNode;Ml(e,Cl(e),o);break;case 5:var a=n.stateNode;32&n.flags&&(kt(a,""),n.flags&=-33),Ml(e,Cl(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;Tl(e,Cl(e),s);break;default:throw Error(i(161))}}catch(l){Sc(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Xl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Xl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function ql(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Rl(e,t.alternate,t),t=t.sibling}function Yl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:yl(4,t,t.return),Yl(t);break;case 1:_l(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&xl(t,t.return,n),Yl(t);break;case 27:Bd(t.stateNode);case 26:case 5:_l(t,t.return),Yl(t);break;case 22:null===t.memoizedState&&Yl(t);break;default:Yl(t)}e=e.sibling}}function Zl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,i=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:Zl(i,o,n),ml(4,o);break;case 1:if(Zl(i,o,n),"function"==typeof(i=(r=o).stateNode).componentDidMount)try{i.componentDidMount()}catch(u){Sc(r,r.return,u)}if(null!==(i=(r=o).updateQueue)){var s=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)To(l[i],s)}catch(u){Sc(r,r.return,u)}}n&&64&a&&vl(o),bl(o,o.return);break;case 27:Il(o);case 26:case 5:Zl(i,o,n),n&&null===r&&4&a&&wl(o),bl(o,o.return);break;case 12:Zl(i,o,n);break;case 31:Zl(i,o,n),n&&4&a&&$l(i,o);break;case 13:Zl(i,o,n),n&&4&a&&Vl(i,o);break;case 22:null===o.memoizedState&&Zl(i,o,n),bl(o,o.return);break;case 30:break;default:Zl(i,o,n)}t=t.sibling}}function Kl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&$i(n))}function Ql(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&$i(e))}function Jl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)eu(e,t,n,r),t=t.sibling}function eu(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Jl(e,t,n,r),2048&i&&ml(9,t);break;case 1:case 31:case 13:default:Jl(e,t,n,r);break;case 3:Jl(e,t,n,r),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&$i(e)));break;case 12:if(2048&i){Jl(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,s=o.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Sc(t,t.return,l)}}else Jl(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,null!==t.memoizedState?2&o._visibility?Jl(e,t,n,r):nu(e,t):2&o._visibility?Jl(e,t,n,r):(o._visibility|=2,tu(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&i&&Kl(a,t);break;case 24:Jl(e,t,n,r),2048&i&&Ql(t.alternate,t)}}function tu(e,t,n,r,i){for(i=i&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var o=e,a=t,s=n,l=r,u=a.flags;switch(a.tag){case 0:case 11:case 15:tu(o,a,s,l,i),ml(8,a);break;case 23:break;case 22:var c=a.stateNode;null!==a.memoizedState?2&c._visibility?tu(o,a,s,l,i):nu(o,a):(c._visibility|=2,tu(o,a,s,l,i)),i&&2048&u&&Kl(a.alternate,a);break;case 24:tu(o,a,s,l,i),i&&2048&u&&Ql(a.alternate,a);break;default:tu(o,a,s,l,i)}t=t.sibling}}function nu(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:nu(n,r),2048&i&&Kl(r.alternate,r);break;case 24:nu(n,r),2048&i&&Ql(r.alternate,r);break;default:nu(n,r)}t=t.sibling}}var ru=8192;function iu(e,t,n){if(e.subtreeFlags&ru)for(e=e.child;null!==e;)ou(e,t,n),e=e.sibling}function ou(e,t,n){switch(e.tag){case 26:iu(e,t,n),e.flags&ru&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var i=Ud(r.href),o=t.querySelector(Xd(i));if(o)return null!==(t=o._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=ah.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,void et(o);o=t.ownerDocument||t,r=qd(r),(i=Fd.get(i))&&Jd(r,i),et(o=o.createElement("link"));var a=o;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),hd(o,"link",r),n.instance=o}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=ah.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,jl,e.memoizedState,e.memoizedProps);break;case 5:default:iu(e,t,n);break;case 3:case 4:var r=jl;jl=Vd(e.stateNode.containerInfo),iu(e,t,n),jl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ru,ru=16777216,iu(e,t,n),ru=r):iu(e,t,n))}}function au(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function su(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ol=r,cu(r,e)}au(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)lu(e),e=e.sibling}function lu(e){switch(e.tag){case 0:case 11:case 15:su(e),2048&e.flags&&yl(9,e,e.return);break;case 3:case 12:default:su(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,uu(e)):su(e)}}function uu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ol=r,cu(r,e)}au(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:yl(8,t,t.return),uu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,uu(t));break;default:uu(t)}e=e.sibling}}function cu(e,t){for(;null!==Ol;){var n=Ol;switch(n.tag){case 0:case 11:case 15:yl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:$i(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Ol=r;else e:for(n=e;null!==Ol;){var i=(r=Ol).sibling,o=r.return;if(Ll(r),r===n){Ol=null;break e}if(null!==i){i.return=o,Ol=i;break e}Ol=o}}}var du={getCacheForType:function(e){var t=Ei(Bi),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ei(Bi).controller.signal}},hu="function"==typeof WeakMap?WeakMap:Map,pu=0,fu=null,gu=null,mu=0,yu=0,vu=null,xu=!1,bu=!1,_u=!1,wu=0,Su=0,ku=0,Cu=0,Tu=0,Mu=0,Iu=0,Pu=null,Au=null,Du=!1,Eu=0,Ou=0,Ru=1/0,Lu=null,zu=null,Nu=0,Bu=null,Fu=null,$u=0,Vu=0,Hu=null,Wu=null,ju=0,Gu=null;function Uu(){return 2&pu&&0!==mu?mu&-mu:null!==R.T?Hc():Be()}function Xu(){if(0===Mu)if(536870912&mu&&!di)Mu=536870912;else{var e=ke;!(3932160&(ke<<=1))&&(ke=262144),Mu=e}return null!==(e=Oo.current)&&(e.flags|=32),Mu}function qu(e,t,n){(e!==fu||2!==yu&&9!==yu)&&null===e.cancelPendingCommit||(tc(e,0),Qu(e,mu,Mu,!1)),Ee(e,n),2&pu&&e===fu||(e===fu&&(!(2&pu)&&(Cu|=n),4===Su&&Qu(e,mu,Mu,!1)),Lc(e))}function Yu(e,t,n){if(6&pu)throw Error(i(327));for(var r=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ie(e,t),o=r?function(e,t){var n=pu;pu|=2;var r=ic(),o=oc();fu!==e||mu!==t?(Lu=null,Ru=le()+500,tc(e,t)):bu=Ie(e,t);e:for(;;)try{if(0!==yu&&null!==gu){t=gu;var a=vu;t:switch(yu){case 1:yu=0,vu=null,hc(e,t,a,1);break;case 2:case 9:if(to(a)){yu=0,vu=null,dc(t);break}t=function(){2!==yu&&9!==yu||fu!==e||(yu=7),Lc(e)},a.then(t,t);break e;case 3:yu=7;break e;case 4:yu=5;break e;case 7:to(a)?(yu=0,vu=null,dc(t)):(yu=0,vu=null,hc(e,t,a,7));break;case 5:var s=null;switch(gu.tag){case 26:s=gu.memoizedState;case 5:case 27:var l=gu;if(s?ih(s):l.stateNode.complete){yu=0,vu=null;var u=l.sibling;if(null!==u)gu=u;else{var c=l.return;null!==c?(gu=c,pc(c)):gu=null}break t}}yu=0,vu=null,hc(e,t,a,5);break;case 6:yu=0,vu=null,hc(e,t,a,6);break;case 8:ec(),Su=6;break e;default:throw Error(i(462))}}uc();break}catch(d){nc(e,d)}return ki=Si=null,R.H=r,R.A=o,pu=n,null!==gu?0:(fu=null,mu=0,Ar(),Su)}(e,t):sc(e,t,!0),a=r;;){if(0===o){bu&&!r&&Qu(e,t,0,!1);break}if(n=e.current.alternate,!a||Ku(n)){if(2===o){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;o=Pu;var u=l.current.memoizedState.isDehydrated;if(u&&(tc(l,s).flags|=256),2!==(s=sc(l,s,!1))){if(_u&&!u){l.errorRecoveryDisabledLanes|=a,Cu|=a,o=4;break e}a=Au,Au=o,null!==a&&(null===Au?Au=a:Au.push.apply(Au,a))}o=s}if(a=!1,2!==o)continue}}if(1===o){tc(e,0),Qu(e,t,0,!0);break}e:{switch(r=e,a=o){case 0:case 1:throw Error(i(345));case 4:if((4194048&t)!==t)break;case 6:Qu(r,t,Mu,!xu);break e;case 2:Au=null;break;case 3:case 5:break;default:throw Error(i(329))}if((62914560&t)===t&&10<(o=Eu+300-le())){if(Qu(r,t,Mu,!xu),0!==Me(r,0,!0))break e;$u=t,r.timeoutHandle=_d(Zu.bind(null,r,n,Au,Lu,Du,t,Mu,Cu,Iu,xu,a,"Throttled",-0,0),o)}else Zu(r,n,Au,Lu,Du,t,Mu,Cu,Iu,xu,a,null,-0,0)}break}o=sc(e,t,!1),a=!1}Lc(e)}function Zu(e,t,n,r,i,o,a,s,l,u,c,d,h,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){ou(t,o,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Et});var f=(62914560&o)===o?Eu-le():(4194048&o)===o?Ou-le():0;if(f=function(e,t){return e.stylesheets&&0===e.count&&lh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===oh&&(oh=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,a=i.initiatorType,s=i.duration;if(o&&s&&pd(a)){for(a=0,s=i.responseEnd,r+=1;r<n.length;r++){var l=n[r],u=l.startTime;if(u>s)break;var c=l.transferSize,d=l.initiatorType;c&&pd(d)&&(a+=c*((l=l.responseEnd)<s?1:(s-u)/(l-u)))}if(--r,t+=8*(o+a)/(i.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,"number"==typeof e)?e:5}());var i=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>oh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}(d,f),null!==f)return $u=o,e.cancelPendingCommit=f(gc.bind(null,e,t,o,n,r,i,a,s,l,c,d,null,h,p)),void Qu(e,o,a,!u)}gc(e,t,o,n,r,i,a,s,l)}function Ku(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Qn(o(),i))return!1}catch(a){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qu(e,t,n,r){t&=~Tu,t&=~Cu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-be(i),a=1<<o;r[o]=-1,i&=~a}0!==n&&Oe(e,n,t)}function Ju(){return!!(6&pu)||(zc(0,!1),!1)}function ec(){if(null!==gu){if(0===yu)var e=gu.return;else ki=Si=null,sa(e=gu),so=null,lo=0,e=gu;for(;null!==e;)gl(e.alternate,e),e=e.return;gu=null}}function tc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,wd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),$u=0,ec(),fu=e,gu=n=$r(e.current,null),mu=t,yu=0,vu=null,xu=!1,bu=Ie(e,t),_u=!1,Iu=Mu=Tu=Cu=ku=Su=0,Au=Pu=null,Du=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-be(r),o=1<<i;t|=e[i],r&=~o}return wu=t,Ar(),n}function nc(e,t){Wo=null,R.H=gs,t===Ki||t===Ji?(t=oo(),yu=3):t===Qi?(t=oo(),yu=4):yu=t===Es?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,vu=t,null===gu&&(Su=1,Ms(e,qr(t,e.current)))}function rc(){var e=Oo.current;return null===e||((4194048&mu)===mu?null===Ro:!!((62914560&mu)===mu||536870912&mu)&&e===Ro)}function ic(){var e=R.H;return R.H=gs,null===e?gs:e}function oc(){var e=R.A;return R.A=du,e}function ac(){Su=4,xu||(4194048&mu)!==mu&&null!==Oo.current||(bu=!0),!(134217727&ku)&&!(134217727&Cu)||null===fu||Qu(fu,mu,Mu,!1)}function sc(e,t,n){var r=pu;pu|=2;var i=ic(),o=oc();fu===e&&mu===t||(Lu=null,tc(e,t)),t=!1;var a=Su;e:for(;;)try{if(0!==yu&&null!==gu){var s=gu,l=vu;switch(yu){case 8:ec(),a=6;break e;case 3:case 2:case 9:case 6:null===Oo.current&&(t=!0);var u=yu;if(yu=0,vu=null,hc(e,s,l,u),n&&bu){a=0;break e}break;default:u=yu,yu=0,vu=null,hc(e,s,l,u)}}lc(),a=Su;break}catch(c){nc(e,c)}return t&&e.shellSuspendCounter++,ki=Si=null,pu=r,R.H=i,R.A=o,null===gu&&(fu=null,mu=0,Ar()),a}function lc(){for(;null!==gu;)cc(gu)}function uc(){for(;null!==gu&&!ae();)cc(gu)}function cc(e){var t=al(e.alternate,e,wu);e.memoizedProps=e.pendingProps,null===t?pc(e):gu=t}function dc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Gs(n,t,t.pendingProps,t.type,void 0,mu);break;case 11:t=Gs(n,t,t.pendingProps,t.type.render,t.ref,mu);break;case 5:sa(t);default:gl(n,t),t=al(n,t=gu=Vr(t,wu),wu)}e.memoizedProps=e.pendingProps,null===t?pc(e):gu=t}function hc(e,t,n,r){ki=Si=null,sa(t),so=null,lo=0;var o=t.return;try{if(function(e,t,n,r,o){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Pi(t,n,o,!0),null!==(n=Oo.current)){switch(n.tag){case 31:case 13:return null===Ro?ac():null===n.alternate&&0===Su&&(Su=3),n.flags&=-257,n.flags|=65536,n.lanes=o,r===eo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),kc(e,r,o)),!1;case 22:return n.flags|=65536,r===eo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),kc(e,r,o)),!1}throw Error(i(435,n.tag))}return kc(e,r,o),ac(),!1}if(di)return null!==(t=Oo.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==fi&&_i(qr(e=Error(i(422),{cause:r}),n))):(r!==fi&&_i(qr(t=Error(i(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,r=qr(r,n),wo(e,o=Ps(e.stateNode,r,o)),4!==Su&&(Su=2)),!1;var a=Error(i(520),{cause:r});if(a=qr(a,n),null===Pu?Pu=[a]:Pu.push(a),4!==Su&&(Su=2),null===t)return!0;r=qr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,wo(n,e=Ps(n.stateNode,r,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==zu&&zu.has(a))))return n.flags|=65536,o&=-o,n.lanes|=o,Ds(o=As(o),e,n,r),wo(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,mu))return Su=1,Ms(e,qr(n,e.current)),void(gu=null)}catch(a){if(null!==o)throw gu=o,a;return Su=1,Ms(e,qr(n,e.current)),void(gu=null)}32768&t.flags?(di||1===r?e=!0:bu||536870912&mu?e=!1:(xu=e=!0,(2===r||9===r||3===r||6===r)&&(null!==(r=Oo.current)&&13===r.tag&&(r.flags|=16384))),fc(t,e)):pc(t)}function pc(e){var t=e;do{if(32768&t.flags)return void fc(t,xu);e=t.return;var n=pl(t.alternate,t,wu);if(null!==n)return void(gu=n);if(null!==(t=t.sibling))return void(gu=t);gu=t=e}while(null!==t);0===Su&&(Su=5)}function fc(e,t){do{var n=fl(e.alternate,e);if(null!==n)return n.flags&=32767,void(gu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(gu=e);gu=e=n}while(null!==e);Su=6,gu=null}function gc(e,t,n,r,o,a,s,l,u){e.cancelPendingCommit=null;do{bc()}while(0!==Nu);if(6&pu)throw Error(i(327));if(null!==t){if(t===e.current)throw Error(i(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,i,o){var a=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,l=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var c=31-be(n),d=1<<c;s[c]=0,l[c]=-1;var h=u[c];if(null!==h)for(u[c]=null,c=0;c<h.length;c++){var p=h[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Oe(e,r,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(a&~t))}(e,n,a|=Pr,s,l,u),e===fu&&(gu=fu=null,mu=0),Fu=t,Bu=e,$u=n,Vu=a,Hu=o,Wu=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ie(he,function(){return _c(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=R.T,R.T=null,o=L.p,L.p=2,s=pu,pu|=4;try{!function(e,t){if(e=e.containerInfo,fd=yh,ir(e=rr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(m){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==o&&3!==h.nodeType||(l=s+o),h!==a||0!==r&&3!==h.nodeType||(u=s+r),3===h.nodeType&&(s+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++c===o&&(l=s),p===a&&++d===r&&(u=s),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(gd={focusedElem:e,selectionRange:n},yh=!1,Ol=t;null!==Ol;)if(e=(t=Ol).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ol=e;else for(;null!==Ol;){switch(a=(t=Ol).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(o=e[n]).ref.impl=o.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,n=t,o=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var g=Ss(n.type,o);e=r.getSnapshotBeforeUpdate(g,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(y){Sc(n,n.return,y)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Pd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Pd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(i(163))}if(null!==(e=t.sibling)){e.return=t.return,Ol=e;break}Ol=t.return}}(e,t)}finally{pu=s,L.p=o,R.T=r}}Nu=1,mc(),yc(),vc()}}function mc(){if(1===Nu){Nu=0;var e=Bu,t=Fu,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=R.T,R.T=null;var r=L.p;L.p=2;var i=pu;pu|=4;try{Gl(t,e);var o=gd,a=rr(e.containerInfo),s=o.focusedElem,l=o.selectionRange;if(a!==s&&s&&s.ownerDocument&&nr(s.ownerDocument.documentElement,s)){if(null!==l&&ir(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var p=h.getSelection(),f=s.textContent.length,g=Math.min(l.start,f),m=void 0===l.end?g:Math.min(l.end,f);!p.extend&&g>m&&(a=m,m=g,g=a);var y=tr(s,g),v=tr(s,m);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var x=d.createRange();x.setStart(y.node,y.offset),p.removeAllRanges(),g>m?(p.addRange(x),p.extend(v.node,v.offset)):(x.setEnd(v.node,v.offset),p.addRange(x))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}yh=!!fd,gd=fd=null}finally{pu=i,L.p=r,R.T=n}}e.current=t,Nu=2}}function yc(){if(2===Nu){Nu=0;var e=Bu,t=Fu,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=R.T,R.T=null;var r=L.p;L.p=2;var i=pu;pu|=4;try{Rl(e,t.alternate,t)}finally{pu=i,L.p=r,R.T=n}}Nu=3}}function vc(){if(4===Nu||3===Nu){Nu=0,se();var e=Bu,t=Fu,n=$u,r=Wu;10256&t.subtreeFlags||10256&t.flags?Nu=5:(Nu=0,Fu=Bu=null,xc(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(zu=null),Ne(n),t=t.stateNode,ve&&"function"==typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(ye,t,void 0,!(128&~t.current.flags))}catch(l){}if(null!==r){t=R.T,i=L.p,L.p=2,R.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];o(s.value,{componentStack:s.stack})}}finally{R.T=t,L.p=i}}3&$u&&bc(),Lc(e),i=e.pendingLanes,261930&n&&42&i?e===Gu?ju++:(ju=0,Gu=e):ju=0,zc(0,!1)}}function xc(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,$i(t)))}function bc(){return mc(),yc(),vc(),_c()}function _c(){if(5!==Nu)return!1;var e=Bu,t=Vu;Vu=0;var n=Ne($u),r=R.T,o=L.p;try{L.p=32>n?32:n,R.T=null,n=Hu,Hu=null;var a=Bu,s=$u;if(Nu=0,Fu=Bu=null,$u=0,6&pu)throw Error(i(331));var l=pu;if(pu|=4,lu(a.current),eu(a,a.current,s,n),pu=l,zc(0,!1),ve&&"function"==typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(ye,a)}catch(u){}return!0}finally{L.p=o,R.T=r,xc(e,t)}}function wc(e,t,n){t=qr(n,t),null!==(e=bo(e,t=Ps(e.stateNode,t,2),2))&&(Ee(e,2),Lc(e))}function Sc(e,t,n){if(3===e.tag)wc(e,e,n);else for(;null!==t;){if(3===t.tag){wc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===zu||!zu.has(r))){e=qr(n,e),null!==(r=bo(t,n=As(2),2))&&(Ds(n,r,t,e),Ee(r,2),Lc(r));break}}t=t.return}}function kc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hu;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(_u=!0,i.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,fu===e&&(mu&n)===n&&(4===Su||3===Su&&(62914560&mu)===mu&&300>le()-Eu?!(2&pu)&&tc(e,0):Tu|=n,Iu===mu&&(Iu=0)),Lc(e)}function Tc(e,t){0===t&&(t=Ae()),null!==(e=Or(e,t))&&(Ee(e,t),Lc(e))}function Mc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Ic(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),Tc(e,n)}var Pc=null,Ac=null,Dc=!1,Ec=!1,Oc=!1,Rc=0;function Lc(e){e!==Ac&&null===e.next&&(null===Ac?Pc=Ac=e:Ac=Ac.next=e),Ec=!0,Dc||(Dc=!0,kd(function(){6&pu?ie(ce,Nc):Bc()}))}function zc(e,t){if(!Oc&&Ec){Oc=!0;do{for(var n=!1,r=Pc;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-be(42|e)+1)-1,o=201326741&(o&=i&~(a&~s))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,Vc(r,o))}else o=mu,!(3&(o=Me(r,r===fu?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ie(r,o)||(n=!0,Vc(r,o));r=r.next}}while(n);Oc=!1}}function Nc(){Bc()}function Bc(){Ec=Dc=!1;var e=0;0!==Rc&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==bd&&(bd=e,!0);return bd=null,!1}()&&(e=Rc);for(var t=le(),n=null,r=Pc;null!==r;){var i=r.next,o=Fc(r,t);0===o?(r.next=null,null===n?Pc=i:n.next=i,null===i&&(Ac=n)):(n=r,(0!==e||3&o)&&(Ec=!0)),r=i}0!==Nu&&5!==Nu||zc(e,!1),0!==Rc&&(Rc=0)}function Fc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var a=31-be(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=Pe(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}if(n=mu,n=Me(e,e===(t=fu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===yu||9===yu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ie(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&oe(r),Ne(n)){case 2:case 8:n=de;break;case 32:default:n=he;break;case 268435456:n=fe}return r=$c.bind(null,e),n=ie(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&oe(r),e.callbackPriority=2,e.callbackNode=null,2}function $c(e,t){if(0!==Nu&&5!==Nu)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bc()&&e.callbackNode!==n)return null;var r=mu;return 0===(r=Me(e,e===fu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Yu(e,r,t),Fc(e,le()),null!=e.callbackNode&&e.callbackNode===n?$c.bind(null,e):null)}function Vc(e,t){if(bc())return null;Yu(e,t,!0)}function Hc(){if(0===Rc){var e=Wi;0===e&&(e=Se,!(261888&(Se<<=1))&&(Se=256)),Rc=e}return Rc}function Wc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Dt(""+e)}function jc(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}for(var Gc=0;Gc<kr.length;Gc++){var Uc=kr[Gc];Cr(Uc.toLowerCase(),"on"+(Uc[0].toUpperCase()+Uc.slice(1)))}Cr(mr,"onAnimationEnd"),Cr(yr,"onAnimationIteration"),Cr(vr,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(xr,"onTransitionRun"),Cr(br,"onTransitionStart"),Cr(_r,"onTransitionCancel"),Cr(wr,"onTransitionEnd"),it("onMouseEnter",["mouseout","mouseover"]),it("onMouseLeave",["mouseout","mouseover"]),it("onPointerEnter",["pointerout","pointerover"]),it("onPointerLeave",["pointerout","pointerover"]),rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xc="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(" "),qc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xc));function Yc(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=u;try{o(i)}catch(c){Tr(c)}i.currentTarget=null,o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=u;try{o(i)}catch(c){Tr(c)}i.currentTarget=null,o=l}}}}function Zc(e,t){var n=t[je];void 0===n&&(n=t[je]=new Set);var r=e+"__bubble";n.has(r)||(ed(t,e,2,!1),n.add(r))}function Kc(e,t,n){var r=0;t&&(r|=4),ed(n,e,r,t)}var Qc="_reactListening"+Math.random().toString(36).slice(2);function Jc(e){if(!e[Qc]){e[Qc]=!0,tt.forEach(function(t){"selectionchange"!==t&&(qc.has(t)||Kc(t,!1,e),Kc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Qc]||(t[Qc]=!0,Kc("selectionchange",!1,t))}}function ed(e,t,n,r){switch(kh(t)){case 2:var i=vh;break;case 8:i=xh;break;default:i=bh}n=i.bind(null,t,n,e),i=void 0,!Ht||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function td(e,t,n,r,i){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===i)break;if(4===s)for(s=r.return;null!==s;){var u=s.tag;if((3===u||4===u)&&s.stateNode.containerInfo===i)return;s=s.return}for(;null!==l;){if(null===(s=Ze(l)))return;if(5===(u=s.tag)||6===u||26===u||27===u){r=a=s;continue e}l=l.parentNode}}r=r.return}Ft(function(){var r=a,i=Rt(n),s=[];e:{var l=Sr.get(e);if(void 0!==l){var u=nn,c=e;switch(e){case"keypress":if(0===qt(n))break e;case"keydown":case"keyup":u=vn;break;case"focusin":c="focus",u=un;break;case"focusout":c="blur",u=un;break;case"beforeblur":case"afterblur":u=un;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=sn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=bn;break;case mr:case yr:case vr:u=cn;break;case wr:u=_n;break;case"scroll":case"scrollend":u=on;break;case"wheel":u=wn;break;case"copy":case"cut":case"paste":u=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=xn;break;case"toggle":case"beforetoggle":u=Sn}var d=!!(4&t),h=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var f,g=r;null!==g;){var m=g;if(f=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===f||null===p||null!=(m=$t(g,p))&&d.push(nd(g,m,f)),h)break;g=g.return}0<d.length&&(l=new u(l,c,null,n,i),s.push({event:l,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Ot||!(c=n.relatedTarget||n.fromElement)||!Ze(c)&&!c[We])&&(u||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ze(c):null)&&(h=o(c),d=c.tag,c!==h||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=sn,m="onMouseLeave",p="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=xn,m="onPointerLeave",p="onPointerEnter",g="pointer"),h=null==u?l:Qe(u),f=null==c?l:Qe(c),(l=new d(m,g+"leave",u,n,i)).target=h,l.relatedTarget=f,m=null,Ze(i)===r&&((d=new d(p,g+"enter",c,n,i)).target=f,d.relatedTarget=h,m=d),h=m,u&&c)e:{for(d=id,g=c,f=0,m=p=u;m;m=d(m))f++;m=0;for(var y=g;y;y=d(y))m++;for(;0<f-m;)p=d(p),f--;for(;0<m-f;)g=d(g),m--;for(;f--;){if(p===g||null!==g&&p===g.alternate){d=p;break e}p=d(p),g=d(g)}d=null}else d=null;null!==u&&od(s,l,u,d,!1),null!==c&&null!==h&&od(s,h,c,d,!0)}if("select"===(u=(l=r?Qe(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=Vn;else if(Ln(l))if(Hn)v=Kn;else{v=Yn;var x=qn}else!(u=l.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&It(r.elementType)&&(v=Vn):v=Zn;switch(v&&(v=v(e,r))?zn(s,v,n,i):(x&&x(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&bt(l,"number",l.value)),x=r?Qe(r):window,e){case"focusin":(Ln(x)||"true"===x.contentEditable)&&(ar=x,sr=r,lr=null);break;case"focusout":lr=sr=ar=null;break;case"mousedown":ur=!0;break;case"contextmenu":case"mouseup":case"dragend":ur=!1,cr(s,n,i);break;case"selectionchange":if(or)break;case"keydown":case"keyup":cr(s,n,i)}var b;if(Cn)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else On?Dn(e,n)&&(_="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(_="onCompositionStart");_&&(In&&"ko"!==n.locale&&(On||"onCompositionStart"!==_?"onCompositionEnd"===_&&On&&(b=Xt()):(Gt="value"in(jt=i)?jt.value:jt.textContent,On=!0)),0<(x=rd(r,_)).length&&(_=new hn(_,e,null,n,i),s.push({event:_,listeners:x}),b?_.data=b:null!==(b=En(n))&&(_.data=b))),(b=Mn?function(e,t){switch(e){case"compositionend":return En(t);case"keypress":return 32!==t.which?null:(An=!0,Pn);case"textInput":return(e=t.data)===Pn&&An?null:e;default:return null}}(e,n):function(e,t){if(On)return"compositionend"===e||!Cn&&Dn(e,t)?(e=Xt(),Ut=Gt=jt=null,On=!1,e):null;switch(e){case"paste":default: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 In&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(_=rd(r,"onBeforeInput")).length&&(x=new hn("onBeforeInput","beforeinput",null,n,i),s.push({event:x,listeners:_}),x.data=b)),function(e,t,n,r,i){if("submit"===t&&n&&n.stateNode===i){var o=Wc((i[He]||null).action),a=r.submitter;a&&null!==(t=(t=a[He]||null)?Wc(t.formAction):a.getAttribute("formAction"))&&(o=t,a=null);var s=new nn("action","action",null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Rc){var e=a?jc(i,a):new FormData(i);ts(n,{pending:!0,data:e,method:i.method,action:o},null,e)}}else"function"==typeof o&&(s.preventDefault(),e=a?jc(i,a):new FormData(i),ts(n,{pending:!0,data:e,method:i.method,action:o},o,e))},currentTarget:i}]})}}(s,e,r,n,i)}Yc(s,t)})}function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rd(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=$t(e,n))&&r.unshift(nd(e,i,o)),null!=(i=$t(e,t))&&r.push(nd(e,i,o))),3===e.tag)return r;e=e.return}return[]}function id(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function od(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,i?null!=(u=$t(n,o))&&a.unshift(nd(n,u,l)):i||null!=(u=$t(n,o))&&a.push(nd(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ad=/\r\n?/g,sd=/\u0000|\uFFFD/g;function ld(e){return("string"==typeof e?e:""+e).replace(ad,"\n").replace(sd,"")}function ud(e,t){return t=ld(t),ld(e)===t}function cd(e,t,n,r,o,a){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||kt(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&kt(e,""+r);break;case"className":ut(e,"class",r);break;case"tabIndex":ut(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ut(e,n,r);break;case"style":Mt(e,r,a);break;case"data":if("object"!==t){ut(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Dt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){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}if("function"==typeof a&&("formAction"===n?("input"!==t&&cd(e,t,"name",o.name,o,null),cd(e,t,"formEncType",o.formEncType,o,null),cd(e,t,"formMethod",o.formMethod,o,null),cd(e,t,"formTarget",o.formTarget,o,null)):(cd(e,t,"encType",o.encType,o,null),cd(e,t,"method",o.method,o,null),cd(e,t,"target",o.target,o,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Dt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Et);break;case"onScroll":null!=r&&Zc("scroll",e);break;case"onScrollEnd":null!=r&&Zc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(i(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(i(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Dt(""+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":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?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&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Zc("beforetoggle",e),Zc("toggle",e),lt(e,"popover",r);break;case"xlinkActuate":ct(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ct(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ct(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ct(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ct(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ct(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ct(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ct(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ct(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":lt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&lt(e,n=Pt.get(n)||n,r)}}function dd(e,t,n,r,o,a){switch(n){case"style":Mt(e,r,a);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(i(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(i(60));e.innerHTML=n}}break;case"children":"string"==typeof r?kt(e,r):("number"==typeof r||"bigint"==typeof r)&&kt(e,""+r);break;case"onScroll":null!=r&&Zc("scroll",e);break;case"onScrollEnd":null!=r&&Zc("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"==typeof(a=null!=(a=e[He]||null)?a[n]:null)&&e.removeEventListener(t,a,o),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):lt(e,n,r):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,o)))}}function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Zc("error",e),Zc("load",e);var r,o=!1,a=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case"src":o=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:cd(e,t,r,s,n,null)}}return a&&cd(e,t,"srcSet",n.srcSet,n,null),void(o&&cd(e,t,"src",n.src,n,null));case"input":Zc("invalid",e);var l=r=s=a=null,u=null,c=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":a=d;break;case"type":s=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(i(137,t));break;default:cd(e,t,o,d,n,null)}}return void xt(e,r,l,u,c,s,a,!1);case"select":for(a in Zc("invalid",e),o=s=r=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":r=l;break;case"defaultValue":s=l;break;case"multiple":o=l;default:cd(e,t,a,l,n,null)}return t=r,n=s,e.multiple=!!o,void(null!=t?_t(e,!!o,t,!1):null!=n&&_t(e,!!o,n,!0));case"textarea":for(s in Zc("invalid",e),r=a=o=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":o=l;break;case"defaultValue":a=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(i(91));break;default:cd(e,t,s,l,n,null)}return void St(e,o,a,r);case"option":for(u in n)if(n.hasOwnProperty(u)&&null!=(o=n[u]))if("selected"===u)e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o;else cd(e,t,u,o,n,null);return;case"dialog":Zc("beforetoggle",e),Zc("toggle",e),Zc("cancel",e),Zc("close",e);break;case"iframe":case"object":Zc("load",e);break;case"video":case"audio":for(o=0;o<Xc.length;o++)Zc(Xc[o],e);break;case"image":Zc("error",e),Zc("load",e);break;case"details":Zc("toggle",e);break;case"embed":case"source":case"link":Zc("error",e),Zc("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(c in n)if(n.hasOwnProperty(c)&&null!=(o=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:cd(e,t,c,o,n,null)}return;default:if(It(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(o=n[d])&&dd(e,t,d,o,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(o=n[l])&&cd(e,t,l,o,n,null))}function pd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var fd=null,gd=null;function md(e){return 9===e.nodeType?e:e.ownerDocument}function yd(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 vd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function xd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bd=null;var _d="function"==typeof setTimeout?setTimeout:void 0,wd="function"==typeof clearTimeout?clearTimeout:void 0,Sd="function"==typeof Promise?Promise:void 0,kd="function"==typeof queueMicrotask?queueMicrotask:void 0!==Sd?function(e){return Sd.resolve(null).then(e).catch(Cd)}:_d;function Cd(e){setTimeout(function(){throw e})}function Td(e){return"head"===e}function Md(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)||"/&"===n){if(0===r)return e.removeChild(i),void Hh(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)Bd(e.ownerDocument.documentElement);else if("head"===n){Bd(n=e.ownerDocument.head);for(var o=n.firstChild;o;){var a=o.nextSibling,s=o.nodeName;o[qe]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===o.rel.toLowerCase()||n.removeChild(o),o=a}}else"body"===n&&Bd(e.ownerDocument.body);n=i}while(n);Hh(t)}function Id(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Pd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Pd(n),Ye(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Ad(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Od(e.nextSibling)))return null}return e}function Dd(e){return"$?"===e.data||"$~"===e.data}function Ed(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Od(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Rd=null;function Ld(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Od(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function zd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Nd(e,t,n){switch(t=md(n),e){case"html":if(!(e=t.documentElement))throw Error(i(452));return e;case"head":if(!(e=t.head))throw Error(i(453));return e;case"body":if(!(e=t.body))throw Error(i(454));return e;default:throw Error(i(451))}}function Bd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ye(e)}var Fd=new Map,$d=new Set;function Vd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Hd=L.d;L.d={f:function(){var e=Hd.f(),t=Ju();return e||t},r:function(e){var t=Ke(e);null!==t&&5===t.tag&&"form"===t.type?rs(t):Hd.r(e)},D:function(e){Hd.D(e),jd("dns-prefetch",e,null)},C:function(e,t){Hd.C(e,t),jd("preconnect",e,t)},L:function(e,t,n){Hd.L(e,t,n);var r=Wd;if(r&&e&&t){var i='link[rel="preload"][as="'+yt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(i+='[imagesrcset="'+yt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(i+='[imagesizes="'+yt(n.imageSizes)+'"]')):i+='[href="'+yt(e)+'"]';var o=i;switch(t){case"style":o=Ud(e);break;case"script":o=Yd(e)}Fd.has(o)||(e=d({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Fd.set(o,e),null!==r.querySelector(i)||"style"===t&&r.querySelector(Xd(o))||"script"===t&&r.querySelector(Zd(o))||(hd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}},m:function(e,t){Hd.m(e,t);var n=Wd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+yt(r)+'"][href="'+yt(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Yd(e)}if(!Fd.has(o)&&(e=d({rel:"modulepreload",href:e},t),Fd.set(o,e),null===n.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Zd(o)))return}hd(r=n.createElement("link"),"link",e),et(r),n.head.appendChild(r)}}},X:function(e,t){Hd.X(e,t);var n=Wd;if(n&&e){var r=Je(n).hoistableScripts,i=Yd(e),o=r.get(i);o||((o=n.querySelector(Zd(i)))||(e=d({src:e,async:!0},t),(t=Fd.get(i))&&eh(e,t),et(o=n.createElement("script")),hd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}},S:function(e,t,n){Hd.S(e,t,n);var r=Wd;if(r&&e){var i=Je(r).hoistableStyles,o=Ud(e);t=t||"default";var a=i.get(o);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Xd(o)))s.loading=5;else{e=d({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Fd.get(o))&&Jd(e,n);var l=a=r.createElement("link");et(l),hd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Qd(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},i.set(o,a)}}},M:function(e,t){Hd.M(e,t);var n=Wd;if(n&&e){var r=Je(n).hoistableScripts,i=Yd(e),o=r.get(i);o||((o=n.querySelector(Zd(i)))||(e=d({src:e,async:!0,type:"module"},t),(t=Fd.get(i))&&eh(e,t),et(o=n.createElement("script")),hd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}};var Wd="undefined"==typeof document?null:document;function jd(e,t,n){var r=Wd;if(r&&"string"==typeof t&&t){var i=yt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof n&&(i+='[crossorigin="'+n+'"]'),$d.has(i)||($d.add(i),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(i)&&(hd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}}function Gd(e,t,n,r){var o=(o=U.current)?Vd(o):null;if(!o)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Ud(n.href),(r=(n=Je(o).hoistableStyles).get(t))||(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("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Ud(n.href);var a=Je(o).hoistableStyles,s=a.get(e);if(s||(o=o.ownerDocument||o,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=o.querySelector(Xd(e)))&&!a._p&&(s.instance=a,s.state.loading=5),Fd.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},Fd.set(e,n),a||function(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}),hd(t,"link",n),et(t),e.head.appendChild(t))}(o,e,n,s.state))),t&&null===r)throw Error(i(528,""));return s}if(t&&null!==r)throw Error(i(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Yd(n),(r=(n=Je(o).hoistableScripts).get(t))||(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 Ud(e){return'href="'+yt(e)+'"'}function Xd(e){return'link[rel="stylesheet"]['+e+"]"}function qd(e){return d({},e,{"data-precedence":e.precedence,precedence:null})}function Yd(e){return'[src="'+yt(e)+'"]'}function Zd(e){return"script[async]"+e}function Kd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+yt(n.href)+'"]');if(r)return t.instance=r,et(r),r;var o=d({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(r=(e.ownerDocument||e).createElement("style")),hd(r,"style",o),Qd(r,n.precedence,e),t.instance=r;case"stylesheet":o=Ud(n.href);var a=e.querySelector(Xd(o));if(a)return t.state.loading|=4,t.instance=a,et(a),a;r=qd(n),(o=Fd.get(o))&&Jd(r,o),et(a=(e.ownerDocument||e).createElement("link"));var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),hd(a,"link",r),t.state.loading|=4,Qd(a,n.precedence,e),t.instance=a;case"script":return a=Yd(n.src),(o=e.querySelector(Zd(a)))?(t.instance=o,et(o),o):(r=n,(o=Fd.get(a))&&eh(r=d({},n),o),et(o=(e=e.ownerDocument||e).createElement("script")),hd(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(i(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Qd(r,n.precedence,e));return t.instance}function Qd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)o=s;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Jd(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function eh(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var th=null;function nh(e,t,n){if(null===th){var r=new Map,i=th=new Map;i.set(n,r)}else(r=(i=th).get(n))||(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 o=n[i];if(!(o[qe]||o[Ve]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var a=o.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(o):r.set(a,[o])}}return r}function rh(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function ih(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var oh=0;function ah(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)lh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var sh=null;function lh(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sh=new Map,t.forEach(uh,e),sh=null,ah.call(e))}function uh(e,t){if(!(4&t.state.loading)){var n=sh.get(e);if(n)var r=n.get(null);else{n=new Map,sh.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(i=t.instance).getAttribute("data-precedence"),(o=n.get(a)||r)===r&&n.set(null,i),n.set(a,i),this.count++,r=ah.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var ch={$$typeof:_,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function dh(e,t,n,r,i,o,a,s,l){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=De(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=De(0),this.hiddenUpdates=De(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function hh(e,t,n,r,i,o){i=function(e){return e?e=zr:zr}(i),null===r.context?r.context=i:r.pendingContext=i,(r=xo(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=bo(e,r,t))&&(qu(n,0,t),_o(n,e,t))}function ph(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function fh(e,t){ph(e,t),(e=e.alternate)&&ph(e,t)}function gh(e){if(13===e.tag||31===e.tag){var t=Or(e,67108864);null!==t&&qu(t,0,67108864),fh(e,67108864)}}function mh(e){if(13===e.tag||31===e.tag){var t=Uu(),n=Or(e,t=ze(t));null!==n&&qu(n,0,t),fh(e,t)}}var yh=!0;function vh(e,t,n,r){var i=R.T;R.T=null;var o=L.p;try{L.p=2,bh(e,t,n,r)}finally{L.p=o,R.T=i}}function xh(e,t,n,r){var i=R.T;R.T=null;var o=L.p;try{L.p=8,bh(e,t,n,r)}finally{L.p=o,R.T=i}}function bh(e,t,n,r){if(yh){var i=_h(r);if(null===i)td(e,t,r,wh,n),Oh(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Th=Rh(Th,e,t,n,r,i),!0;case"dragenter":return Mh=Rh(Mh,e,t,n,r,i),!0;case"mouseover":return Ih=Rh(Ih,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ph.set(o,Rh(Ph.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ah.set(o,Rh(Ah.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Oh(e,r),4&t&&-1<Eh.indexOf(e)){for(;null!==i;){var o=Ke(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var a=Te(o.pendingLanes);if(0!==a){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-be(a);s.entanglements[1]|=l,a&=~l}Lc(o),!(6&pu)&&(Ru=le()+500,zc(0,!1))}}break;case 31:case 13:null!==(s=Or(o,2))&&qu(s,0,2),Ju(),fh(o,2)}if(null===(o=_h(r))&&td(e,t,r,wh,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else td(e,t,r,null,n)}}function _h(e){return Sh(e=Rt(e))}var wh=null;function Sh(e){if(wh=null,null!==(e=Ze(e))){var t=o(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=a(t)))return e;e=null}else if(31===n){if(null!==(e=s(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wh=e,null}function kh(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(ue()){case ce:return 2;case de:return 8;case he:case pe:return 32;case fe:return 268435456;default:return 32}default:return 32}}var Ch=!1,Th=null,Mh=null,Ih=null,Ph=new Map,Ah=new Map,Dh=[],Eh="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 Oh(e,t){switch(e){case"focusin":case"focusout":Th=null;break;case"dragenter":case"dragleave":Mh=null;break;case"mouseover":case"mouseout":Ih=null;break;case"pointerover":case"pointerout":Ph.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ah.delete(t.pointerId)}}function Rh(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=Ke(t))&&gh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lh(e){var t=Ze(e.target);if(null!==t){var n=o(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=a(n)))return e.blockedOn=t,void Fe(e.priority,function(){mh(n)})}else if(31===t){if(null!==(t=s(n)))return e.blockedOn=t,void Fe(e.priority,function(){mh(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zh(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=_h(e.nativeEvent);if(null!==n)return null!==(t=Ke(n))&&gh(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ot=r,n.target.dispatchEvent(r),Ot=null,t.shift()}return!0}function Nh(e,t,n){zh(e)&&n.delete(t)}function Bh(){Ch=!1,null!==Th&&zh(Th)&&(Th=null),null!==Mh&&zh(Mh)&&(Mh=null),null!==Ih&&zh(Ih)&&(Ih=null),Ph.forEach(Nh),Ah.forEach(Nh)}function Fh(e,n){e.blockedOn===n&&(e.blockedOn=null,Ch||(Ch=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bh)))}var $h=null;function Vh(e){$h!==e&&($h=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){$h===e&&($h=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if("function"!=typeof r){if(null===Sh(r||n))continue;break}var o=Ke(n);null!==o&&(e.splice(t,3),t-=3,ts(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hh(e){function t(t){return Fh(t,e)}null!==Th&&Fh(Th,e),null!==Mh&&Fh(Mh,e),null!==Ih&&Fh(Ih,e),Ph.forEach(t),Ah.forEach(t);for(var n=0;n<Dh.length;n++){var r=Dh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Dh.length&&null===(n=Dh[0]).blockedOn;)Lh(n),null===n.blockedOn&&Dh.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[He]||null;if("function"==typeof o)a||Vh(n);else if(a){var s=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[He]||null)s=a.formAction;else if(null!==Sh(i))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Vh(n)}}}function Wh(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==i&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){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),null!==i&&(i(),i=null)}}}function jh(e){this._internalRoot=e}function Gh(e){this._internalRoot=e}Gh.prototype.render=jh.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));hh(t.current,Uu(),e,t,null,null)},Gh.prototype.unmount=jh.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;hh(e.current,2,null,e,null,null),Ju(),t[We]=null}},Gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Be();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dh.length&&0!==t&&t<Dh[n].priority;n++);Dh.splice(n,0,e),0===n&&Lh(e)}};var Uh=n.version;if("19.2.3"!==Uh)throw Error(i(527,Uh,"19.2.3"));L.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=o(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(r=a.return)){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 u=!1,c=a.child;c;){if(c===n){u=!0,n=a,r=s;break}if(c===r){u=!0,r=a,n=s;break}c=c.sibling}if(!u){for(c=s.child;c;){if(c===n){u=!0,n=s,r=a;break}if(c===r){u=!0,r=s,n=a;break}c=c.sibling}if(!u)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?u(e):null)?null:e.stateNode};var Xh={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.3"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var qh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qh.isDisabled&&qh.supportsFiber)try{ye=qh.inject(Xh),ve=qh}catch(Yh){}}e.createRoot=function(e,t){if(!function(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}(e))throw Error(i(299));var n=!1,r="",o=ks,a=Cs,s=Ts;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(a=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError)),t=function(e,t,n,r,i,o,a,s,l,u,c,d){return e=new dh(e,t,n,a,l,u,c,d,s),t=1,!0===o&&(t|=24),o=Br(3,null,null,t),e.current=o,o.stateNode=e,(t=Fi()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},yo(o),e}(e,1,!1,null,0,n,r,null,o,a,s,Wh),e[We]=t.current,Jc(e),new jh(t)}}),m=l(a((e,t)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),t.exports=g()})(),1),y=l(h(),1),v=(0,y.createContext)(null),x={didCatch:!1,error:null},b=class extends y.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=x}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:t}=this.state;null!==t&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(x))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;n&&null!==t.error&&function(e=[],t=[]){return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(this.props.onReset?.({next:r,prev:e.resetKeys,reason:"keys"}),this.setState(x))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:o}=this.state;let a=e;if(i){const e={error:o,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=(0,y.createElement)(n,e);else{if(void 0===r)throw o;a=r}}return(0,y.createElement)(v.Provider,{value:{didCatch:i,error:o,resetErrorBoundary:this.resetErrorBoundary}},a)}};var _=a(e=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(e,n,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==n.key&&(i=""+n.key),"key"in n)for(var o in r={},n)"key"!==o&&(r[o]=n[o]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:void 0!==n?n:null,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r}),w=a((e,t)=>{t.exports=_()})();function S(e,t,n){return t?Array.isArray(t)?t.map(t=>S(e,t,n)):"object"==typeof t?C(t,n):t:t}var k,C=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[t(r)]:S(e,i,t)}),{}),T=e=>e.replace(/_([a-z0-9])/g,(e,t)=>t.toUpperCase()),M=window.templateArgs?(k=window.templateArgs,C(k,T)):{},I=!!M.isReport&&{...M,charts:(M.history||[]).reduce((e,{currentResponseTimePercentiles:t,...n})=>{return r=e,i={...t,...n},Object.entries(i).reduce((e,[t,n])=>({...e,[t]:[...e[t]||[],n]}),r);var r,i},{})},P={black:"#000",white:"#fff"},A="#e57373",D="#ef5350",E="#f44336",O="#d32f2f",R="#c62828",L="#f3e5f5",z="#ce93d8",N="#ba68c8",B="#ab47bc",F="#9c27b0",$="#7b1fa2",V="#e3f2fd",H="#90caf9",W="#42a5f5",j="#1976d2",G="#1565c0",U="#4fc3f7",X="#29b6f6",q="#03a9f4",Y="#0288d1",Z="#01579b",K="#81c784",Q="#66bb6a",J="#4caf50",ee="#388e3c",te="#2e7d32",ne="#1b5e20",re="#ffb74d",ie="#ffa726",oe="#ff9800",ae="#f57c00",se="#e65100",le={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function ue(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var ce="$$material";function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},de.apply(null,arguments)}var he=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(Ty){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),pe="-ms-",fe="-moz-",ge="-webkit-",me="comm",ye="rule",ve="decl",xe="@keyframes",be=Math.abs,_e=String.fromCharCode,we=Object.assign;function Se(e){return e.trim()}function ke(e,t,n){return e.replace(t,n)}function Ce(e,t){return e.indexOf(t)}function Te(e,t){return 0|e.charCodeAt(t)}function Me(e,t,n){return e.slice(t,n)}function Ie(e){return e.length}function Pe(e){return e.length}function Ae(e,t){return t.push(e),e}var De=1,Ee=1,Oe=0,Re=0,Le=0,ze="";function Ne(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:De,column:Ee,length:a,return:""}}function Be(e,t){return we(Ne("",null,null,"",null,null,0),e,{length:-e.length},t)}function Fe(){return Le=Re>0?Te(ze,--Re):0,Ee--,10===Le&&(Ee=1,De--),Le}function $e(){return Le=Re<Oe?Te(ze,Re++):0,Ee++,10===Le&&(Ee=1,De++),Le}function Ve(){return Te(ze,Re)}function He(){return Re}function We(e,t){return Me(ze,e,t)}function je(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ge(e){return De=Ee=1,Oe=Ie(ze=e),Re=0,[]}function Ue(e){return ze="",e}function Xe(e){return Se(We(Re-1,Ze(91===e?e+2:40===e?e+1:e)))}function qe(e){for(;(Le=Ve())&&Le<33;)$e();return je(e)>2||je(Le)>3?"":" "}function Ye(e,t){for(;--t&&$e()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return We(e,He()+(t<6&&32==Ve()&&32==$e()))}function Ze(e){for(;$e();)switch(Le){case e:return Re;case 34:case 39:34!==e&&39!==e&&Ze(Le);break;case 40:41===e&&Ze(e);break;case 92:$e()}return Re}function Ke(e,t){for(;$e()&&e+Le!==57&&(e+Le!==84||47!==Ve()););return"/*"+We(t,Re-1)+"*"+_e(47===e?e:$e())}function Qe(e){for(;!je(Ve());)$e();return We(e,Re)}function Je(e){return Ue(et("",null,null,null,[""],e=Ge(e),0,[0],e))}function et(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,h=0,p=0,f=0,g=1,m=1,y=1,v=0,x="",b=i,_=o,w=r,S=x;m;)switch(f=v,v=$e()){case 40:if(108!=f&&58==Te(S,d-1)){-1!=Ce(S+=ke(Xe(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=Xe(v);break;case 9:case 10:case 13:case 32:S+=qe(f);break;case 92:S+=Ye(He()-1,7);continue;case 47:switch(Ve()){case 42:case 47:Ae(nt(Ke($e(),He()),t,n),l);break;default:S+="/"}break;case 123*g:s[u++]=Ie(S)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+c:-1==y&&(S=ke(S,/\f/g,"")),p>0&&Ie(S)-d&&Ae(p>32?rt(S+";",r,n,d-1):rt(ke(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Ae(w=tt(S,t,n,u,c,i,s,x,b=[],_=[],d),o),123===v)if(0===c)et(S,t,w,w,b,o,d,s,_);else switch(99===h&&110===Te(S,3)?100:h){case 100:case 108:case 109:case 115:et(e,w,w,r&&Ae(tt(e,w,w,0,0,i,s,x,i,b=[],d),_),i,_,d,s,r?b:_);break;default:et(S,w,w,w,[""],_,0,s,_)}}u=c=p=0,g=y=1,x=S="",d=a;break;case 58:d=1+Ie(S),p=f;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Fe())continue;switch(S+=_e(v),v*g){case 38:y=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(Ie(S)-1)*y,y=1;break;case 64:45===Ve()&&(S+=Xe($e())),h=Ve(),c=d=Ie(x=S+=Qe(He())),v++;break;case 45:45===f&&2==Ie(S)&&(g=0)}}return o}function tt(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,h=0===i?o:[""],p=Pe(h),f=0,g=0,m=0;f<r;++f)for(var y=0,v=Me(e,d+1,d=be(g=a[f])),x=e;y<p;++y)(x=Se(g>0?h[y]+" "+v:ke(v,/&\f/g,h[y])))&&(l[m++]=x);return Ne(e,t,n,0===i?ye:s,l,u,c)}function nt(e,t,n){return Ne(e,t,n,me,_e(Le),Me(e,2,-2),0)}function rt(e,t,n,r){return Ne(e,t,n,ve,Me(e,0,r),Me(e,r+1,-1),r)}function it(e,t){for(var n="",r=Pe(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ot(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ve:return e.return=e.return||e.value;case me:return"";case xe:return e.return=e.value+"{"+it(e.children,r)+"}";case ye:e.value=e.props.join(",")}return Ie(n=it(e.children,r))?e.return=e.value+"{"+n+"}":""}function at(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var st=function(e,t,n){for(var r=0,i=0;r=i,i=Ve(),38===r&&12===i&&(t[n]=1),!je(i);)$e();return We(e,Re)},lt=function(e,t){return Ue(function(e,t){var n=-1,r=44;do{switch(je(r)){case 0:38===r&&12===Ve()&&(t[n]=1),e[n]+=st(Re-1,t,n);break;case 2:e[n]+=Xe(r);break;case 4:if(44===r){e[++n]=58===Ve()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=_e(r)}}while(r=$e());return e}(Ge(e),t))},ut=new WeakMap,ct=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ut.get(n))&&!r){ut.set(e,!0);for(var i=[],o=lt(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},dt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ht(e,t){switch(function(e,t){return 45^Te(e,0)?(((t<<2^Te(e,0))<<2^Te(e,1))<<2^Te(e,2))<<2^Te(e,3):0}(e,t)){case 5103:return ge+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ge+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ge+e+fe+e+pe+e+e;case 6828:case 4268:return ge+e+pe+e+e;case 6165:return ge+e+pe+"flex-"+e+e;case 5187:return ge+e+ke(e,/(\w+).+(:[^]+)/,ge+"box-$1$2"+pe+"flex-$1$2")+e;case 5443:return ge+e+pe+"flex-item-"+ke(e,/flex-|-self/,"")+e;case 4675:return ge+e+pe+"flex-line-pack"+ke(e,/align-content|flex-|-self/,"")+e;case 5548:return ge+e+pe+ke(e,"shrink","negative")+e;case 5292:return ge+e+pe+ke(e,"basis","preferred-size")+e;case 6060:return ge+"box-"+ke(e,"-grow","")+ge+e+pe+ke(e,"grow","positive")+e;case 4554:return ge+ke(e,/([^-])(transform)/g,"$1"+ge+"$2")+e;case 6187:return ke(ke(ke(e,/(zoom-|grab)/,ge+"$1"),/(image-set)/,ge+"$1"),e,"")+e;case 5495:case 3959:return ke(e,/(image-set\([^]*)/,ge+"$1$`$1");case 4968:return ke(ke(e,/(.+:)(flex-)?(.*)/,ge+"box-pack:$3"+pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ge+e+e;case 4095:case 3583:case 4068:case 2532:return ke(e,/(.+)-inline(.+)/,ge+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ie(e)-1-t>6)switch(Te(e,t+1)){case 109:if(45!==Te(e,t+4))break;case 102:return ke(e,/(.+:)(.+)-([^]+)/,"$1"+ge+"$2-$3$1"+fe+(108==Te(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ce(e,"stretch")?ht(ke(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Te(e,t+1))break;case 6444:switch(Te(e,Ie(e)-3-(~Ce(e,"!important")&&10))){case 107:return ke(e,":",":"+ge)+e;case 101:return ke(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ge+(45===Te(e,14)?"inline-":"")+"box$3$1"+ge+"$2$3$1"+pe+"$2box$3")+e}break;case 5936:switch(Te(e,t+11)){case 114:return ge+e+pe+ke(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ge+e+pe+ke(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ge+e+pe+ke(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ge+e+pe+e+e}return e}var pt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ve:e.return=ht(e.value,e.length);break;case xe:return it([Be(e,{value:ke(e.value,"@","@"+ge)})],r);case ye:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return it([Be(e,{props:[ke(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return it([Be(e,{props:[ke(t,/:(plac\w+)/,":"+ge+"input-$1")]}),Be(e,{props:[ke(t,/:(plac\w+)/,":-moz-$1")]}),Be(e,{props:[ke(t,/:(plac\w+)/,pe+"input-$1")]})],r)}return""})}}],ft=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||pt,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,u,c=[ot,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=Pe(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([ct,dt].concat(o,c));i=function(e,t,n,r){l=n,function(e){it(Je(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new he({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h},gt=a(e=>{var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case c:case i:case a:case o:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case f:case s:return e;default:return t}}case r:return t}}}function _(e){return b(e)===c}e.AsyncMode=u,e.ConcurrentMode=c,e.ContextConsumer=l,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=g,e.Memo=f,e.Portal=r,e.Profiler=a,e.StrictMode=o,e.Suspense=h,e.isAsyncMode=function(e){return _(e)||b(e)===u},e.isConcurrentMode=_,e.isContextConsumer=function(e){return b(e)===l},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===g},e.isMemo=function(e){return b(e)===f},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===a},e.isStrictMode=function(e){return b(e)===o},e.isSuspense=function(e){return b(e)===h},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===a||e===o||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===v||e.$$typeof===x||e.$$typeof===m)},e.typeOf=b}),mt=a((e,t)=>{t.exports=gt()}),yt=a((e,t)=>{var n=mt(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function s(e){return n.isMemo(e)?o:a[e.$$typeof]||r}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var l=Object.defineProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=u(n);c&&(a=a.concat(c(n)));for(var f=s(t),g=s(n),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||g&&g[y]||f&&f[y])){var v=d(n,y);try{l(t,y,v)}catch(Ty){}}}}return t}});function vt(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var xt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},bt=function(e,t,n){xt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};function _t(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var wt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},St=/[A-Z]|^ms/g,kt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ct=function(e){return 45===e.charCodeAt(1)},Tt=function(e){return null!=e&&"boolean"!=typeof e},Mt=at(function(e){return Ct(e)?e:e.replace(St,"-$&").toLowerCase()}),It=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(kt,function(e,t,n){return At={name:t,styles:n,next:At},t})}return 1===wt[e]||Ct(e)||"number"!=typeof t||0===t?t:t+"px"};function Pt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return At={name:i.name,styles:i.styles,next:At},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)At={name:a.name,styles:a.styles,next:At},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Pt(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":Tt(s)&&(r+=Mt(o)+":"+It(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Pt(e,t,a);switch(o){case"animation":case"animationName":r+=Mt(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var u=0;u<a.length;u++)Tt(a[u])&&(r+=Mt(o)+":"+It(o,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=At,l=n(e);return At=s,Pt(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var At,Dt=/label:\s*([^\s;{]+)\s*(;|$)/g;function Et(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";At=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Pt(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=Pt(n,t,e[a]),r&&(i+=o[a]);Dt.lastIndex=0;for(var s,l="";null!==(s=Dt.exec(i));)l+="-"+s[1];return{name:_t(i)+l,styles:i,next:At}}var Ot,Rt,Lt=!!y.useInsertionEffect&&y.useInsertionEffect,zt=Lt||function(e){return e()},Nt=Lt||y.useLayoutEffect,Bt=y.createContext("undefined"!=typeof HTMLElement?ft({key:"css"}):null),Ft=(Bt.Provider,function(e){return(0,y.forwardRef)(function(t,n){return e(t,(0,y.useContext)(Bt),n)})}),$t=y.createContext({}),Vt={}.hasOwnProperty,Ht="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Wt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return xt(t,n,r),zt(function(){return bt(t,n,r)}),null},jt=Ft(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Ht],o=[r],a="";"string"==typeof e.className?a=vt(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=Et(o,void 0,y.useContext($t));a+=t.key+"-"+s.name;var l={};for(var u in e)Vt.call(e,u)&&"css"!==u&&u!==Ht&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),y.createElement(y.Fragment,null,y.createElement(Wt,{cache:t,serialized:s,isStringTag:"string"==typeof i}),y.createElement(i,l))}),Gt=(yt(),function(e,t){var n=arguments;if(null==t||!Vt.call(t,"css"))return y.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=jt,i[1]=function(e,t){var n={};for(var r in t)Vt.call(t,r)&&(n[r]=t[r]);return n[Ht]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return y.createElement.apply(null,i)});Ot=Gt||(Gt={}),Rt||(Rt=Ot.JSX||(Ot.JSX={}));var Ut=Ft(function(e,t){var n=Et([e.styles],void 0,y.useContext($t)),r=y.useRef();return Nt(function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}},[t]),Nt(function(){var e=r.current,i=e[0];e[1]?e[1]=!1:(void 0!==n.next&&bt(t,n.next,!0),i.tags.length&&(i.before=i.tags[i.tags.length-1].nextElementSibling,i.flush()),t.insert("",n,i,!1))},[t,n.name]),null});function Xt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Et(t)}function qt(){var e=Xt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Yt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Zt=at(function(e){return Yt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Kt=function(e){return"theme"!==e},Qt=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Zt:Kt},Jt=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},en=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return xt(t,n,r),zt(function(){return bt(t,n,r)}),null},tn=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=Jt(t,n,o),l=s||Qt(a),u=!l("as");return function(){var c=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var h=c[0];d.push(h[0]);for(var p=c.length,f=1;f<p;f++)d.push(c[f],h[f])}var g=Ft(function(e,t,n){var r=u&&e.as||a,o="",c=[],h=e;if(null==e.theme){for(var p in h={},e)h[p]=e[p];h.theme=y.useContext($t)}"string"==typeof e.className?o=vt(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var f=Et(d.concat(c),t.registered,h);o+=t.key+"-"+f.name,void 0!==i&&(o+=" "+i);var g=u&&void 0===s?Qt(r):l,m={};for(var v in e)u&&"as"===v||g(v)&&(m[v]=e[v]);return m.className=o,n&&(m.ref=n),y.createElement(y.Fragment,null,y.createElement(en,{cache:t,serialized:f,isStringTag:"string"==typeof r}),y.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(t,r){return e(t,de({},n,r,{shouldForwardProp:Jt(g,r,!0)})).apply(void 0,d)},g}}.bind(null);function nn(e){const{styles:t,defaultTheme:n={}}=e;return(0,w.jsx)(Ut,{styles:"function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t})}function rn(e,t){return tn(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){tn[e]=tn(e)});var on=[];function an(e){return on[0]=e,Et(on)}var sn=a(e=>{Symbol.for("react.transitional.element"),Symbol.for("react.portal");var t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=(Symbol.for("react.view_transition"),Symbol.for("react.client.reference"));e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===t||e===r||e===n||e===s||e===l||"object"==typeof e&&null!==e&&(e.$$typeof===c||e.$$typeof===u||e.$$typeof===o||e.$$typeof===i||e.$$typeof===a||e.$$typeof===d||void 0!==e.getModuleId)}}),ln=a((e,t)=>{t.exports=sn()})();function un(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function cn(e){if(y.isValidElement(e)||(0,ln.isValidElementType)(e)||!un(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=cn(e[n])}),t}function dn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return un(e)&&un(t)&&Object.keys(t).forEach(i=>{y.isValidElement(t[i])||(0,ln.isValidElementType)(t[i])?r[i]=t[i]:un(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&un(e[i])?r[i]=dn(e[i],t[i],n):n.clone?r[i]=un(t[i])?cn(t[i]):t[i]:r[i]=t[i]}),r}function hn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return{keys:a,values:o,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...i}}var pn={borderRadius:4};function fn(e,t){return t?dn(e,t,{clone:!1}):e}var gn={xs:0,sm:600,md:900,lg:1200,xl:1536},mn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gn[e]}px)`},yn={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:gn[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function vn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||mn;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){const e=r.breakpoints||mn;return Object.keys(t).reduce((i,o)=>{if(a=e.keys,"@"===(s=o)||s.startsWith("@")&&(a.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}(r.containerQueries?r:yn,o);e&&(i[e]=n(t[o],o))}else if(Object.keys(e.values||gn).includes(o)){i[e.up(o)]=n(t[o],o)}else{const e=o;i[e]=t[e]}var a,s;return i},{})}return n(t)}function xn(e){if("string"!=typeof e)throw new Error(ue(7));return e.charAt(0).toUpperCase()+e.slice(1)}function bn(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function _n(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:bn(e,n)||r,t&&(i=t(i,r,e)),i}function wn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=bn(e.theme,r)||{};return vn(e,o,e=>{let r=_n(a,i,e);return e===r&&"string"==typeof e&&(r=_n(a,i,`${t}${"default"===e?"":xn(e)}`,e)),!1===n?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o}var Sn={m:"margin",p:"padding"},kn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Cn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Tn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Cn[e])return[e];e=Cn[e]}const[t,n]=e.split(""),r=Sn[t],i=kn[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),Mn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],In=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Pn=[...Mn,...In];function An(e,t,n,r){const i=bn(e,t,!0)??n;return"number"==typeof i||"string"==typeof i?e=>"string"==typeof e?e:"string"==typeof i?i.startsWith("var(")&&0===e?0:i.startsWith("var(")&&1===e?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if("string"==typeof e)return e;const t=i[Math.abs(e)];return e>=0?t:"number"==typeof t?-t:"string"==typeof t&&t.startsWith("var(")?`calc(-1 * ${t})`:`-${t}`}:"function"==typeof i?i:()=>{}}function Dn(e){return An(e,"spacing",8)}function En(e,t){return"string"==typeof t||null==t?t:e(t)}function On(e,t,n,r){if(!t.includes(n))return null;const i=function(e,t){return n=>e.reduce((e,r)=>(e[r]=En(t,n),e),{})}(Tn(n),r);return vn(e,e[n],i)}function Rn(e,t){const n=Dn(e.theme);return Object.keys(e).map(r=>On(e,t,r,n)).reduce(fn,{})}function Ln(e){return Rn(e,Mn)}function zn(e){return Rn(e,In)}function Nn(e){return Rn(e,Pn)}function Bn(e=8,t=Dn({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function Fn(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?fn(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function $n(e){return"number"!=typeof e?e:`${e}px solid`}function Vn(e,t){return wn({prop:e,themeKey:"borders",transform:t})}Ln.propTypes={},Ln.filterProps=Mn,zn.propTypes={},zn.filterProps=In,Nn.propTypes={},Nn.filterProps=Pn;var Hn=Vn("border",$n),Wn=Vn("borderTop",$n),jn=Vn("borderRight",$n),Gn=Vn("borderBottom",$n),Un=Vn("borderLeft",$n),Xn=Vn("borderColor"),qn=Vn("borderTopColor"),Yn=Vn("borderRightColor"),Zn=Vn("borderBottomColor"),Kn=Vn("borderLeftColor"),Qn=Vn("outline",$n),Jn=Vn("outlineColor"),er=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=An(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:En(t,e)});return vn(e,e.borderRadius,n)}return null};er.propTypes={},er.filterProps=["borderRadius"];Fn(Hn,Wn,jn,Gn,Un,Xn,qn,Yn,Zn,Kn,er,Qn,Jn);var tr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=An(e.theme,"spacing",8),n=e=>({gap:En(t,e)});return vn(e,e.gap,n)}return null};tr.propTypes={},tr.filterProps=["gap"];var nr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=An(e.theme,"spacing",8),n=e=>({columnGap:En(t,e)});return vn(e,e.columnGap,n)}return null};nr.propTypes={},nr.filterProps=["columnGap"];var rr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=An(e.theme,"spacing",8),n=e=>({rowGap:En(t,e)});return vn(e,e.rowGap,n)}return null};rr.propTypes={},rr.filterProps=["rowGap"];Fn(tr,nr,rr,wn({prop:"gridColumn"}),wn({prop:"gridRow"}),wn({prop:"gridAutoFlow"}),wn({prop:"gridAutoColumns"}),wn({prop:"gridAutoRows"}),wn({prop:"gridTemplateColumns"}),wn({prop:"gridTemplateRows"}),wn({prop:"gridTemplateAreas"}),wn({prop:"gridArea"}));function ir(e,t){return"grey"===t?t:e}Fn(wn({prop:"color",themeKey:"palette",transform:ir}),wn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ir}),wn({prop:"backgroundColor",themeKey:"palette",transform:ir}));function or(e){return e<=1&&0!==e?100*e+"%":e}var ar=wn({prop:"width",transform:or}),sr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||gn[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:or(t)}};return vn(e,e.maxWidth,t)}return null};sr.filterProps=["maxWidth"];var lr=wn({prop:"minWidth",transform:or}),ur=wn({prop:"height",transform:or}),cr=wn({prop:"maxHeight",transform:or}),dr=wn({prop:"minHeight",transform:or}),hr=(wn({prop:"size",cssProperty:"width",transform:or}),wn({prop:"size",cssProperty:"height",transform:or}),Fn(ar,sr,lr,ur,cr,dr,wn({prop:"boxSizing"})),{border:{themeKey:"borders",transform:$n},borderTop:{themeKey:"borders",transform:$n},borderRight:{themeKey:"borders",transform:$n},borderBottom:{themeKey:"borders",transform:$n},borderLeft:{themeKey:"borders",transform:$n},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$n},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:er},color:{themeKey:"palette",transform:ir},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ir},backgroundColor:{themeKey:"palette",transform:ir},p:{style:zn},pt:{style:zn},pr:{style:zn},pb:{style:zn},pl:{style:zn},px:{style:zn},py:{style:zn},padding:{style:zn},paddingTop:{style:zn},paddingRight:{style:zn},paddingBottom:{style:zn},paddingLeft:{style:zn},paddingX:{style:zn},paddingY:{style:zn},paddingInline:{style:zn},paddingInlineStart:{style:zn},paddingInlineEnd:{style:zn},paddingBlock:{style:zn},paddingBlockStart:{style:zn},paddingBlockEnd:{style:zn},m:{style:Ln},mt:{style:Ln},mr:{style:Ln},mb:{style:Ln},ml:{style:Ln},mx:{style:Ln},my:{style:Ln},margin:{style:Ln},marginTop:{style:Ln},marginRight:{style:Ln},marginBottom:{style:Ln},marginLeft:{style:Ln},marginX:{style:Ln},marginY:{style:Ln},marginInline:{style:Ln},marginInlineStart:{style:Ln},marginInlineEnd:{style:Ln},marginBlock:{style:Ln},marginBlockStart:{style:Ln},marginBlockEnd:{style:Ln},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:tr},rowGap:{style:rr},columnGap:{style:nr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:or},maxWidth:{style:sr},minWidth:{transform:or},height:{transform:or},maxHeight:{transform:or},minHeight:{transform:or},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}});var pr=function(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=bn(n,s)||{};if(u)return u(i);return vn(i,t,t=>{let n=_n(c,l,t);return t===n&&"string"==typeof t&&(n=_n(c,l,`${e}${"default"===t?"":xn(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const o=i.unstable_sxConfig??hr;function a(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const a=function(e={}){return e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{})||{}}(i.breakpoints),s=Object.keys(a);let l=a;return Object.keys(r).forEach(n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],i);if(null!=a)if("object"==typeof a)if(o[n])l=fn(l,e(n,a,i,o));else{const e=vn({theme:i},a,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,a)?l=fn(l,e):l[n]=t({sx:a,theme:i})}else l=fn(l,e(n,a,i,o))}),function(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}(i,function(e,t){return e.reduce((e,t)=>{const n=e[t];return n&&0!==Object.keys(n).length||delete e[t],e},t)}(s,l))}return Array.isArray(r)?r.map(a):a(r)}}();function fr(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function gr(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...a}=e;let s=dn({breakpoints:hn(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:Bn(i),shape:{...pn,...o}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const i=t(e.breakpoints.not(...n),r);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}const r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}(s),s.applyStyles=fr,s=t.reduce((e,t)=>dn(e,t),s),s.unstable_sxConfig={...hr,...a?.unstable_sxConfig},s.unstable_sx=function(e){return pr({sx:e,theme:this})},s}function mr(e=null){const t=y.useContext($t);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}pr.filterProps=["sx"];var yr=gr();function vr(e=yr){return mr(e)}function xr({styles:e,themeId:t,defaultTheme:n={}}){const r=vr(n);return(0,w.jsx)(nn,{styles:"function"==typeof e?e(t&&r[t]||r):e})}function br(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??hr;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return un(n)?{...r,...n}:r}:{...r,...t},{...i,sx:o}}var _r=e=>e,wr=(()=>{let e=_r;return{configure(t){e=t},generate:t=>e(t),reset(){e=_r}}})();function Sr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Sr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function kr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Sr(e))&&(r&&(r+=" "),r+=t);return r}var Cr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Tr(e,t,n="Mui"){const r=Cr[t];return r?`${n}-${r}`:`${wr.generate(e)}-${t}`}function Mr(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Tr(e,t,n)}),r}function Ir(e){const{variants:t,...n}=e,r={variants:t,style:an(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=an(e.style))}),r}var Pr=gr();function Ar(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Dr(e){return e?(t,n)=>n[e]:null}function Er(e,t){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap(t=>Er(e,t));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=n.style;else{const{variants:e,...r}=n;t=r}return Or(e,n.variants,[t])}return n?.isProcessed?n.style:n}function Or(e,t,n=[]){let r;e:for(let i=0;i<t.length;i+=1){const o=t[i];if("function"==typeof o.props){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(r))continue}else for(const t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue e;"function"==typeof o.style?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(o.style(r))):n.push(o.style)}return n}function Rr(e={}){const{themeId:t,defaultTheme:n=Pr,rootShouldForwardProp:r=Ar,slotShouldForwardProp:i=Ar}=e;function o(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==pr));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:u=Dr(zr(a)),...c}=t,d=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,h=l||!1;let p=Ar;"Root"===a||"root"===a?p=r:a?p=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(p=void 0);const f=rn(e,{shouldForwardProp:p,label:Lr(n,a),...c}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return Er(t,e)};if(un(e)){const t=Ir(e);return t.variants?function(e){return Er(e,t)}:t.style}return e},m=(...t)=>{const r=[],i=t.map(g),a=[];if(r.push(o),n&&u&&a.push(function(e){const t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;const r={};for(const n in t)r[n]=Er(e,t[n]);return u(e,r)}),n&&!d&&a.push(function(e){const t=e.theme?.components?.[n]?.variants;return t?Or(e,t):null}),h||a.push(pr),Array.isArray(i[0])){const e=i.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let o;o=[...t,...e,...n],o.raw=[...t,...e.raw,...n],r.unshift(o)}const s=f(...r,...i,...a);return e.muiName&&(s.muiName=e.muiName),s};return f.withConfig&&(m.withConfig=f.withConfig),m}}function Lr(e,t){}function zr(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}var Nr=Rr();function Br(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if("components"===i||"slots"===i)n[i]={...e[i],...n[i]};else if("componentsProps"===i||"slotProps"===i){const r=e[i],o=t[i];if(o)if(r){n[i]={...o};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;n[i][t]=Br(r[t],o[t])}}else n[i]=o;else n[i]=r||{}}else void 0===n[i]&&(n[i]=e[i])}return n}function Fr({props:e,name:t,defaultTheme:n,themeId:r}){let i=vr(n);return r&&(i=i[r]||i),function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Br(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e})}var $r="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Vr(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function Hr(e){if(e.type)return e;if("#"===e.charAt(0))return Hr(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(ue(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(ue(10,r))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:r}}var Wr=(e,t)=>{try{return(e=>{const t=Hr(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(n){return e}};function jr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Gr(e){e=Hr(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),jr({type:s,values:l})}function Ur(e){let t="hsl"===(e=Hr(e)).type||"hsla"===e.type?Hr(Gr(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Xr(e,t){return e=Hr(e),t=Vr(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,jr(e)}function qr(e,t,n){try{return Xr(e,t)}catch(r){return e}}function Yr(e,t){if(e=Hr(e),t=Vr(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return jr(e)}function Zr(e,t,n){try{return Yr(e,t)}catch(r){return e}}function Kr(e,t){if(e=Hr(e),t=Vr(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return jr(e)}function Qr(e,t,n){try{return Kr(e,t)}catch(r){return e}}function Jr(e,t,n){try{return function(e,t=.15){return Ur(e)>.5?Yr(e,t):Kr(e,t)}(e,t)}catch(r){return e}}var ei=y.createContext(null);function ti(){return y.useContext(ei)}var ni="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ri(e){const{children:t,theme:n}=e,r=ti(),i=y.useMemo(()=>{const e=null===r?{...n}:function(e,t){return"function"==typeof t?t(e):{...e,...t}}(r,n);return null!=e&&(e[ni]=null!==r),e},[n,r]);return(0,w.jsx)(ei.Provider,{value:i,children:t})}var ii=y.createContext();function oi({value:e,...t}){return(0,w.jsx)(ii.Provider,{value:e??!0,...t})}var ai=y.createContext(void 0);function si({value:e,children:t}){return(0,w.jsx)(ai.Provider,{value:e,children:t})}function li({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Br(i.defaultProps,r):i.styleOverrides||i.variants?r:Br(i,r)}({props:e,name:t,theme:{components:y.useContext(ai)}})}var ui={};function ci(e,t,n,r=!1){return y.useMemo(()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?{...t,[e]:o}:o;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function di(e){const{children:t,theme:n,themeId:r}=e,i=mr(ui),o=ti()||ui,a=ci(r,i,n),s=ci(r,o,n,!0),l="rtl"===(r?a[r]:a).direction;return(0,w.jsx)(ri,{theme:s,children:(0,w.jsx)($t.Provider,{value:a,children:(0,w.jsx)(oi,{value:l,children:(0,w.jsx)(si,{value:r?a[r].components:a.components,children:t})})})})}var hi={theme:void 0};var pi="mode",fi="color-scheme",gi="data-color-scheme";function mi(){}var yi=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(n){if("undefined"==typeof window)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return mi;const r=t=>{const r=t.newValue;t.key===e&&n(r)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function vi(){}function xi(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function bi(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function _i(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:o=pi,colorSchemeStorageKey:a=fi,storageWindow:s=("undefined"==typeof window?void 0:window),storageManager:l=yi,noSsr:u=!1}=e,c=i.join(","),d=i.length>1,h=y.useMemo(()=>l?.({key:o,storageWindow:s}),[l,o,s]),p=y.useMemo(()=>l?.({key:`${a}-light`,storageWindow:s}),[l,a,s]),f=y.useMemo(()=>l?.({key:`${a}-dark`,storageWindow:s}),[l,a,s]),[g,m]=y.useState(()=>{const e=h?.get(t)||t,i=p?.get(n)||n,o=f?.get(r)||r;return{mode:e,systemMode:xi(e),lightColorScheme:i,darkColorScheme:o}}),[v,x]=y.useState(u||!d);y.useEffect(()=>{x(!0)},[]);const b=function(e){return bi(e,t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0)}(g),_=y.useCallback(e=>{m(n=>{if(e===n.mode)return n;const r=e??t;return h?.set(r),{...n,mode:r,systemMode:xi(r)}})},[h,t]),w=y.useCallback(e=>{e?"string"==typeof e?e&&!c.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):m(t=>{const n={...t};return bi(t,t=>{"light"===t&&(p?.set(e),n.lightColorScheme=e),"dark"===t&&(f?.set(e),n.darkColorScheme=e)}),n}):m(t=>{const i={...t},o=null===e.light?n:e.light,a=null===e.dark?r:e.dark;return o&&(c.includes(o)?(i.lightColorScheme=o,p?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),a&&(c.includes(a)?(i.darkColorScheme=a,f?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),i}):m(e=>(p?.set(n),f?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[c,p,f,n,r]),S=y.useCallback(e=>{"system"===g.mode&&m(t=>{const n=e?.matches?"dark":"light";return t.systemMode===n?t:{...t,systemMode:n}})},[g.mode]),k=y.useRef(S);return k.current=S,y.useEffect(()=>{if("function"!=typeof window.matchMedia||!d)return;const e=(...e)=>k.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),y.useEffect(()=>{if(d){const e=h?.subscribe(e=>{e&&!["light","dark","system"].includes(e)||_(e||t)})||vi,n=p?.subscribe(e=>{e&&!c.match(e)||w({light:e})})||vi,r=f?.subscribe(e=>{e&&!c.match(e)||w({dark:e})})||vi;return()=>{e(),n(),r()}}},[w,_,c,t,s,d,h,p,f]),{...g,mode:v?g.mode:void 0,systemMode:v?g.systemMode:void 0,colorScheme:v?b:void 0,setMode:_,setColorScheme:w}}function wi(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}var Si=(e,t,n,r=[])=>{let i=e;t.forEach((e,o)=>{o===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&"object"==typeof i&&(i[e]=n):i&&"object"==typeof i&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})};function ki(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(i,{[r]:l}),Si(o,e,`var(${r})`,s),Si(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,i])=>{(!l||l&&!l([...n,t]))&&null!=i&&("object"==typeof i&&Object.keys(i).length>0?e(i,[...n,t],Array.isArray(i)?[...r,t]:r):s([...n,t],i,r))})}(e),{css:i,vars:o,varsWithDefaults:a}}function Ci(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let a="",s=!0;for(let e=0;e<o.length;e+=1){const r=o[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[i]=a}return r}var Ti=gr(),Mi=Nr("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${xn(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Ii=e=>Fr({props:e,name:"MuiContainer",defaultTheme:Ti}),Pi=(e,t)=>{const{classes:n,fixed:r,disableGutters:i,maxWidth:o}=e;return Ci({root:["root",o&&`maxWidth${xn(String(o))}`,r&&"fixed",i&&"disableGutters"]},e=>Tr(t,e),n)};function Ai(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:P.white,default:P.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}var Di=Ai();function Ei(){return{text:{primary:P.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:P.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}var Oi=Ei();function Ri(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Kr(e.main,i):"dark"===t&&(e.dark=Yr(e.main,o)))}function Li(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,o=e.primary||function(e="light"){return"dark"===e?{main:H,light:V,dark:W}:{main:j,light:W,dark:G}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:z,light:L,dark:B}:{main:F,light:N,dark:$}}(t),s=e.error||function(e="light"){return"dark"===e?{main:E,light:A,dark:O}:{main:O,light:D,dark:R}}(t),l=e.info||function(e="light"){return"dark"===e?{main:X,light:U,dark:Y}:{main:Y,light:q,dark:Z}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Q,light:K,dark:ee}:{main:te,light:J,dark:ne}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:ie,light:re,dark:ae}:{main:"#ed6c02",light:oe,dark:se}}(t);function d(e){return function(e,t){const n=Ur(e),r=Ur(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Oi.text.primary)>=n?Oi.text.primary:Di.text.primary}const h=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(ue(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(ue(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ri(e,"light",i,r),Ri(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e};let p;return"light"===t?p=Ai():"dark"===t&&(p=Ei()),dn({common:{...P},mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:le,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r,...p},i)}function zi(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}var Ni={textTransform:"uppercase"},Bi='"Roboto", "Helvetica", "Arial", sans-serif';function Fi(e,t){const{fontFamily:n=Bi,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,h=r/14,p=c||(e=>e/l*h+"rem"),f=(e,t,r,i,o)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===Bi?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5)+"em"}:{},...o,...u};var a};return dn({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,h1:f(i,96,1.167,-1.5),h2:f(i,60,1.2,-.5),h3:f(o,48,1.167,0),h4:f(o,34,1.235,.25),h5:f(o,24,1.334,0),h6:f(a,20,1.6,.15),subtitle1:f(o,16,1.75,.15),subtitle2:f(a,14,1.57,.1),body1:f(o,16,1.5,.15),body2:f(o,14,1.43,.15),button:f(a,14,1.75,.4,Ni),caption:f(o,12,1.66,.4),overline:f(o,12,2.66,1,Ni),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},d,{clone:!1})}function $i(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Vi=["none",$i(0,2,1,-1,0,1,1,0,0,1,3,0),$i(0,3,1,-2,0,2,2,0,0,1,5,0),$i(0,3,3,-2,0,3,4,0,0,1,8,0),$i(0,2,4,-1,0,4,5,0,0,1,10,0),$i(0,3,5,-1,0,5,8,0,0,1,14,0),$i(0,3,5,-1,0,6,10,0,0,1,18,0),$i(0,4,5,-2,0,7,10,1,0,2,16,1),$i(0,5,5,-3,0,8,10,1,0,3,14,2),$i(0,5,6,-3,0,9,12,1,0,3,16,2),$i(0,6,6,-3,0,10,14,1,0,4,18,3),$i(0,6,7,-4,0,11,15,1,0,4,20,3),$i(0,7,8,-4,0,12,17,2,0,5,22,4),$i(0,7,8,-4,0,13,19,2,0,5,24,4),$i(0,7,9,-4,0,14,21,2,0,5,26,4),$i(0,8,9,-5,0,15,22,2,0,6,28,5),$i(0,8,10,-5,0,16,24,2,0,6,30,5),$i(0,8,11,-5,0,17,26,2,0,6,32,5),$i(0,9,11,-5,0,18,28,2,0,7,34,6),$i(0,9,12,-6,0,19,29,2,0,7,36,6),$i(0,10,13,-6,0,20,31,3,0,8,38,7),$i(0,10,13,-6,0,21,33,3,0,8,40,7),$i(0,10,14,-6,0,22,35,3,0,8,42,7),$i(0,11,14,-7,0,23,36,3,0,9,44,8),$i(0,11,15,-7,0,24,38,3,0,9,46,8)],Hi={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Wi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ji(e){return`${Math.round(e)}ms`}function Gi(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Ui(e){const t={...Hi,...e.easing},n={...Wi,...e.duration};return{getAutoHeightDuration:Gi,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:ji(i)} ${o} ${"string"==typeof a?a:ji(a)}`).join(",")},...e,easing:t,duration:n}}var Xi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function qi(e){return un(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function Yi(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[i,o]=n[r];!qi(o)||i.startsWith("unstable_")?delete t[i]:un(o)&&(t[i]={...o},e(t[i]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function Zi(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:o={},transitions:a={},typography:s={},shape:l,...u}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(ue(20));const c=Li(o),d=gr(e);let h=dn(d,{mixins:(p=d.breakpoints,f=r,{toolbar:{minHeight:56,[p.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[p.up("sm")]:{minHeight:64}},...f}),palette:c,shadows:Vi.slice(),typography:Fi(c,s),transitions:Ui(a),zIndex:{...Xi}});var p,f;return h=dn(h,u),h=t.reduce((e,t)=>dn(e,t),h),h.unstable_sxConfig={...hr,...u?.unstable_sxConfig},h.unstable_sx=function(e){return pr({sx:e,theme:this})},h.toRuntimeSource=Yi,h}function Ki(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}var Qi=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=Ki(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ji(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function eo(e){return"dark"===e?Qi:[]}function to(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var no=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if("class"===i&&(o=".%s"),"data"===i&&(o="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const i={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{i[e]=n[e],delete n[e]}),"media"===o?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:o?{[o.replace("%s",t)]:i,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(o&&"media"!==o)return`${r}, ${o.replace("%s",String(t))}`}else if(t){if("media"===o)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}var a;return r};function ro(e,t,n){!e[t]&&n&&(e[t]=n)}function io(e){return"string"==typeof e&&e.startsWith("hsl")?Gr(e):e}function oo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Wr(io(e[t])))}var ao=e=>{try{return e()}catch(t){}};function so(e,t,n,r){if(!t)return;t=!0===t?{}:t;const i="dark"===r?"dark":"light";if(!n)return void(e[r]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,o=Li(t);return{palette:o,opacity:{...Ji(o.mode),...n},overlays:r||eo(o.mode),...i}}({...t,palette:{mode:i,...t?.palette}}));const{palette:o,...a}=Zi({...n,palette:{mode:i,...t?.palette}});return e[r]={...t,palette:o,opacity:{...Ji(i),...t?.opacity},overlays:t?.overlays||eo(i)},a}function lo(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:a=to,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...u}=e,c=Object.keys(n)[0],d=r||(n.light&&"light"!==c?"light":c),h=((e="mui")=>wi(e))(o),{[d]:p,light:f,dark:g,...m}=n,y={...m};let v=p;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(v=!0),!v)throw new Error(ue(21,d));const x=so(y,v,u,d);f&&!y.light&&so(y,f,void 0,"light"),g&&!y.dark&&so(y,g,void 0,"dark");let b={defaultColorScheme:d,...x,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:y,font:{...zi(x.typography),...x.font},spacing:(_=u.spacing,"number"==typeof _?`${_}px`:"string"==typeof _||"function"==typeof _||Array.isArray(_)?_:"8px")};var _;Object.keys(b.colorSchemes).forEach(e=>{const t=b.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],i=n[2];return h(e,t[r][i])};if("light"===t.mode&&(ro(t.common,"background","#fff"),ro(t.common,"onBackground","#000")),"dark"===t.mode&&(ro(t.common,"background","#000"),ro(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){ro(t.Alert,"errorColor",Zr(t.error.light,.6)),ro(t.Alert,"infoColor",Zr(t.info.light,.6)),ro(t.Alert,"successColor",Zr(t.success.light,.6)),ro(t.Alert,"warningColor",Zr(t.warning.light,.6)),ro(t.Alert,"errorFilledBg",n("palette-error-main")),ro(t.Alert,"infoFilledBg",n("palette-info-main")),ro(t.Alert,"successFilledBg",n("palette-success-main")),ro(t.Alert,"warningFilledBg",n("palette-warning-main")),ro(t.Alert,"errorFilledColor",ao(()=>t.getContrastText(t.error.main))),ro(t.Alert,"infoFilledColor",ao(()=>t.getContrastText(t.info.main))),ro(t.Alert,"successFilledColor",ao(()=>t.getContrastText(t.success.main))),ro(t.Alert,"warningFilledColor",ao(()=>t.getContrastText(t.warning.main))),ro(t.Alert,"errorStandardBg",Qr(t.error.light,.9)),ro(t.Alert,"infoStandardBg",Qr(t.info.light,.9)),ro(t.Alert,"successStandardBg",Qr(t.success.light,.9)),ro(t.Alert,"warningStandardBg",Qr(t.warning.light,.9)),ro(t.Alert,"errorIconColor",n("palette-error-main")),ro(t.Alert,"infoIconColor",n("palette-info-main")),ro(t.Alert,"successIconColor",n("palette-success-main")),ro(t.Alert,"warningIconColor",n("palette-warning-main")),ro(t.AppBar,"defaultBg",n("palette-grey-100")),ro(t.Avatar,"defaultBg",n("palette-grey-400")),ro(t.Button,"inheritContainedBg",n("palette-grey-300")),ro(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),ro(t.Chip,"defaultBorder",n("palette-grey-400")),ro(t.Chip,"defaultAvatarColor",n("palette-grey-700")),ro(t.Chip,"defaultIconColor",n("palette-grey-700")),ro(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ro(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ro(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ro(t.LinearProgress,"primaryBg",Qr(t.primary.main,.62)),ro(t.LinearProgress,"secondaryBg",Qr(t.secondary.main,.62)),ro(t.LinearProgress,"errorBg",Qr(t.error.main,.62)),ro(t.LinearProgress,"infoBg",Qr(t.info.main,.62)),ro(t.LinearProgress,"successBg",Qr(t.success.main,.62)),ro(t.LinearProgress,"warningBg",Qr(t.warning.main,.62)),ro(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),ro(t.Slider,"primaryTrack",Qr(t.primary.main,.62)),ro(t.Slider,"secondaryTrack",Qr(t.secondary.main,.62)),ro(t.Slider,"errorTrack",Qr(t.error.main,.62)),ro(t.Slider,"infoTrack",Qr(t.info.main,.62)),ro(t.Slider,"successTrack",Qr(t.success.main,.62)),ro(t.Slider,"warningTrack",Qr(t.warning.main,.62));const e=Jr(t.background.default,.8);ro(t.SnackbarContent,"bg",e),ro(t.SnackbarContent,"color",ao(()=>t.getContrastText(e))),ro(t.SpeedDialAction,"fabHoverBg",Jr(t.background.paper,.15)),ro(t.StepConnector,"border",n("palette-grey-400")),ro(t.StepContent,"border",n("palette-grey-400")),ro(t.Switch,"defaultColor",n("palette-common-white")),ro(t.Switch,"defaultDisabledColor",n("palette-grey-100")),ro(t.Switch,"primaryDisabledColor",Qr(t.primary.main,.62)),ro(t.Switch,"secondaryDisabledColor",Qr(t.secondary.main,.62)),ro(t.Switch,"errorDisabledColor",Qr(t.error.main,.62)),ro(t.Switch,"infoDisabledColor",Qr(t.info.main,.62)),ro(t.Switch,"successDisabledColor",Qr(t.success.main,.62)),ro(t.Switch,"warningDisabledColor",Qr(t.warning.main,.62)),ro(t.TableCell,"border",Qr(qr(t.divider,1),.88)),ro(t.Tooltip,"bg",qr(t.grey[700],.92))}if("dark"===t.mode){ro(t.Alert,"errorColor",Qr(t.error.light,.6)),ro(t.Alert,"infoColor",Qr(t.info.light,.6)),ro(t.Alert,"successColor",Qr(t.success.light,.6)),ro(t.Alert,"warningColor",Qr(t.warning.light,.6)),ro(t.Alert,"errorFilledBg",n("palette-error-dark")),ro(t.Alert,"infoFilledBg",n("palette-info-dark")),ro(t.Alert,"successFilledBg",n("palette-success-dark")),ro(t.Alert,"warningFilledBg",n("palette-warning-dark")),ro(t.Alert,"errorFilledColor",ao(()=>t.getContrastText(t.error.dark))),ro(t.Alert,"infoFilledColor",ao(()=>t.getContrastText(t.info.dark))),ro(t.Alert,"successFilledColor",ao(()=>t.getContrastText(t.success.dark))),ro(t.Alert,"warningFilledColor",ao(()=>t.getContrastText(t.warning.dark))),ro(t.Alert,"errorStandardBg",Zr(t.error.light,.9)),ro(t.Alert,"infoStandardBg",Zr(t.info.light,.9)),ro(t.Alert,"successStandardBg",Zr(t.success.light,.9)),ro(t.Alert,"warningStandardBg",Zr(t.warning.light,.9)),ro(t.Alert,"errorIconColor",n("palette-error-main")),ro(t.Alert,"infoIconColor",n("palette-info-main")),ro(t.Alert,"successIconColor",n("palette-success-main")),ro(t.Alert,"warningIconColor",n("palette-warning-main")),ro(t.AppBar,"defaultBg",n("palette-grey-900")),ro(t.AppBar,"darkBg",n("palette-background-paper")),ro(t.AppBar,"darkColor",n("palette-text-primary")),ro(t.Avatar,"defaultBg",n("palette-grey-600")),ro(t.Button,"inheritContainedBg",n("palette-grey-800")),ro(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),ro(t.Chip,"defaultBorder",n("palette-grey-700")),ro(t.Chip,"defaultAvatarColor",n("palette-grey-300")),ro(t.Chip,"defaultIconColor",n("palette-grey-300")),ro(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ro(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ro(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ro(t.LinearProgress,"primaryBg",Zr(t.primary.main,.5)),ro(t.LinearProgress,"secondaryBg",Zr(t.secondary.main,.5)),ro(t.LinearProgress,"errorBg",Zr(t.error.main,.5)),ro(t.LinearProgress,"infoBg",Zr(t.info.main,.5)),ro(t.LinearProgress,"successBg",Zr(t.success.main,.5)),ro(t.LinearProgress,"warningBg",Zr(t.warning.main,.5)),ro(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),ro(t.Slider,"primaryTrack",Zr(t.primary.main,.5)),ro(t.Slider,"secondaryTrack",Zr(t.secondary.main,.5)),ro(t.Slider,"errorTrack",Zr(t.error.main,.5)),ro(t.Slider,"infoTrack",Zr(t.info.main,.5)),ro(t.Slider,"successTrack",Zr(t.success.main,.5)),ro(t.Slider,"warningTrack",Zr(t.warning.main,.5));const e=Jr(t.background.default,.98);ro(t.SnackbarContent,"bg",e),ro(t.SnackbarContent,"color",ao(()=>t.getContrastText(e))),ro(t.SpeedDialAction,"fabHoverBg",Jr(t.background.paper,.15)),ro(t.StepConnector,"border",n("palette-grey-600")),ro(t.StepContent,"border",n("palette-grey-600")),ro(t.Switch,"defaultColor",n("palette-grey-300")),ro(t.Switch,"defaultDisabledColor",n("palette-grey-600")),ro(t.Switch,"primaryDisabledColor",Zr(t.primary.main,.55)),ro(t.Switch,"secondaryDisabledColor",Zr(t.secondary.main,.55)),ro(t.Switch,"errorDisabledColor",Zr(t.error.main,.55)),ro(t.Switch,"infoDisabledColor",Zr(t.info.main,.55)),ro(t.Switch,"successDisabledColor",Zr(t.success.main,.55)),ro(t.Switch,"warningDisabledColor",Zr(t.warning.main,.55)),ro(t.TableCell,"border",Zr(qr(t.divider,1),.68)),ro(t.Tooltip,"bg",qr(t.grey[700],.92))}oo(t.background,"default"),oo(t.background,"paper"),oo(t.common,"background"),oo(t.common,"onBackground"),oo(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&ro(t[e],"mainChannel",Wr(io(n.main))),n.light&&ro(t[e],"lightChannel",Wr(io(n.light))),n.dark&&ro(t[e],"darkChannel",Wr(io(n.dark))),n.contrastText&&ro(t[e],"contrastTextChannel",Wr(io(n.contrastText))),"text"===e&&(oo(t[e],"primary"),oo(t[e],"secondary")),"action"===e&&(n.active&&oo(t[e],"active"),n.selected&&oo(t[e],"selected")))})}),b=t.reduce((e,t)=>dn(e,t),b);const w={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:no(b)},{vars:S,generateThemeVars:k,generateStyleSheets:C}=function(e,t={}){const{getSelector:n=m,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:o={},components:a,defaultColorScheme:s="light",...l}=e,{vars:u,css:c,varsWithDefaults:d}=ki(l,t);let h=d;const p={},{[s]:f,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:i,varsWithDefaults:o}=ki(n,t);h=dn(h,o),p[e]={css:i,vars:r}}),f){const{css:e,vars:n,varsWithDefaults:r}=ki(f,t);h=dn(h,r),p[s]={css:e,vars:n}}function m(t,n){let r=i;if("class"===i&&(r=".%s"),"data"===i&&(r="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(r=`[${i}="%s"]`),t){if("media"===r)return e.defaultColorScheme===t?":root":{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:h,generateThemeVars:()=>{let e={...u};return Object.entries(p).forEach(([,{vars:t}])=>{e=dn(e,t)}),e},generateStyleSheets:()=>{const t=[],i=e.defaultColorScheme||"light";function a(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}a(n(void 0,{...c}),c);const{[i]:s,...l}=p;if(s){const{css:e}=s,t=o[i]?.palette?.mode,l=!r&&t?{colorScheme:t,...e}:{...e};a(n(i,{...l}),l)}return Object.entries(l).forEach(([e,{css:t}])=>{const i=o[e]?.palette?.mode,s=!r&&i?{colorScheme:i,...t}:{...t};a(n(e,{...s}),s)}),t}}}(b,w);return b.vars=S,Object.entries(b.colorSchemes[b.defaultColorScheme]).forEach(([e,t])=>{b[e]=t}),b.generateThemeVars=k,b.generateStyleSheets=C,b.generateSpacing=function(){return Bn(u.spacing,Dn(this))},b.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),b.spacing=b.generateSpacing(),b.shouldSkipGeneratingVar=a,b.unstable_sxConfig={...hr,...u?.unstable_sxConfig},b.unstable_sx=function(e){return pr({sx:e,theme:this})},b.toRuntimeSource=Yi,b}function uo(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:Li({...!0===n?{}:n.palette,mode:t})})}function co(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=(n?void 0:{light:!0}),defaultColorScheme:o=n?.mode,...a}=e,s=o||"light",l=i?.[s],u={...i,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return Zi(e,...t);let r=n;"palette"in e||u[s]&&(!0!==u[s]?r=u[s].palette:"dark"===s&&(r={mode:"dark"}));const i=Zi({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=u,"light"===i.palette.mode&&(i.colorSchemes.light={...!0!==u.light&&u.light,palette:i.palette},uo(i,"dark",u.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:i.palette},uo(i,"light",u.light)),i}return n||"light"in u||"light"!==s||(u.light=!0),lo({...a,colorSchemes:u,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}var ho=co();function po(){const e=vr(ho);return e.$$material||e}var fo=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,go=Rr({themeId:ce,defaultTheme:ho,rootShouldForwardProp:fo});function mo({theme:e,...t}){const n="$$material"in e?e[ce]:void 0;return(0,w.jsx)(di,{...t,themeId:n?ce:void 0,theme:n||e})}var yo="mui-color-scheme",vo="light",xo="dark",bo="mui-mode",{CssVarsProvider:_o,useColorScheme:wo,getInitColorSchemeScript:So}=function(e){const{themeId:t,theme:n={},modeStorageKey:r=pi,colorSchemeStorageKey:i=fi,disableTransitionOnChange:o=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=y.createContext(void 0),c={},d={},h="string"==typeof a?a:a.light,p="string"==typeof a?a:a.dark;return{CssVarsProvider:function(e){const{children:l,theme:h,modeStorageKey:p=r,colorSchemeStorageKey:f=i,disableTransitionOnChange:g=o,storageManager:m,storageWindow:v=("undefined"==typeof window?void 0:window),documentNode:x=("undefined"==typeof document?void 0:document),colorSchemeNode:b=("undefined"==typeof document?void 0:document.documentElement),disableNestedContext:_=!1,disableStyleSheetGeneration:S=!1,defaultMode:k="system",forceThemeRerender:C=!1,noSsr:T}=e,M=y.useRef(!1),I=ti(),P=y.useContext(u),A=!!P&&!_,D=y.useMemo(()=>h||("function"==typeof n?n():n),[h]),E=D[t],O=E||D,{colorSchemes:R=c,components:L=d,cssVarPrefix:z}=O,N=Object.keys(R).filter(e=>!!R[e]).join(","),B=y.useMemo(()=>N.split(","),[N]),F="string"==typeof a?a:a.light,$="string"==typeof a?a:a.dark,{mode:V,setMode:H,systemMode:W,lightColorScheme:j,darkColorScheme:G,colorScheme:U,setColorScheme:X}=_i({supportedColorSchemes:B,defaultLightColorScheme:F,defaultDarkColorScheme:$,modeStorageKey:p,colorSchemeStorageKey:f,defaultMode:R[F]&&R[$]?k:R[O.defaultColorScheme]?.palette?.mode||O.palette?.mode,storageManager:m,storageWindow:v,noSsr:T});let q=V,Y=U;A&&(q=P.mode,Y=P.colorScheme);let Z=Y||O.defaultColorScheme;O.vars&&!C&&(Z=O.defaultColorScheme);const K=y.useMemo(()=>{const e=O.generateThemeVars?.()||O.vars,t={...O,components:L,colorSchemes:R,cssVarPrefix:z,vars:e};if("function"==typeof t.generateSpacing&&(t.spacing=t.generateSpacing()),Z){const e=R[Z];e&&"object"==typeof e&&Object.keys(e).forEach(n=>{e[n]&&"object"==typeof e[n]?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[O,Z,L,R,z]),Q=O.colorSchemeSelector;$r(()=>{if(Y&&b&&Q&&"media"!==Q){const e=Q;let t=Q;if("class"===e&&(t=".%s"),"data"===e&&(t="[data-%s]"),e?.startsWith("data-")&&!e.includes("%s")&&(t=`[${e}="%s"]`),t.startsWith("."))b.classList.remove(...B.map(e=>t.substring(1).replace("%s",e))),b.classList.add(t.substring(1).replace("%s",Y));else{const e=t.replace("%s",Y).match(/\[([^\]]+)\]/);if(e){const[t,n]=e[1].split("=");n||B.forEach(e=>{b.removeAttribute(t.replace(Y,e))}),b.setAttribute(t,n?n.replace(/"|'/g,""):"")}else b.setAttribute(t,Y)}}},[Y,Q,b,B]),y.useEffect(()=>{let e;if(g&&M.current&&x){const t=x.createElement("style");t.appendChild(x.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),x.head.appendChild(t),window.getComputedStyle(x.body),e=setTimeout(()=>{x.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[Y,g,x]),y.useEffect(()=>(M.current=!0,()=>{M.current=!1}),[]);const J=y.useMemo(()=>({allColorSchemes:B,colorScheme:Y,darkColorScheme:G,lightColorScheme:j,mode:q,setColorScheme:X,setMode:H,systemMode:W}),[B,Y,G,j,q,X,H,W,K.colorSchemeSelector]);let ee=!0;(S||!1===O.cssVariables||A&&I?.cssVarPrefix===z)&&(ee=!1);const te=(0,w.jsxs)(y.Fragment,{children:[(0,w.jsx)(di,{themeId:E?t:void 0,theme:K,children:l}),ee&&(0,w.jsx)(nn,{styles:K.generateStyleSheets?.()||[]})]});return A?te:(0,w.jsx)(u.Provider,{value:J,children:te})},useColorScheme:()=>y.useContext(u)||l,getInitColorSchemeScript:e=>function(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:i=pi,colorSchemeStorageKey:o=fi,attribute:a=gi,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let u="",c=a;if("class"===a&&(c=".%s"),"data"===a&&(c="[data-%s]"),c.startsWith(".")){const e=c.substring(1);u+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));\n ${s}.classList.add('${e}'.replace('%s', colorScheme));`}const d=c.match(/\[([^\]]+)\]/);if(d){const[e,t]=d[1].split("=");t||(u+=`${s}.removeAttribute('${e}'.replace('%s', light));\n ${s}.removeAttribute('${e}'.replace('%s', dark));`),u+=`\n ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else u+=`${s}.setAttribute('${c}', colorScheme);`;return(0,w.jsx)("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?l:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${i}') || '${t}';\n const dark = localStorage.getItem('${o}-dark') || '${r}';\n const light = localStorage.getItem('${o}-light') || '${n}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${u}\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}({colorSchemeStorageKey:i,defaultLightColorScheme:h,defaultDarkColorScheme:p,modeStorageKey:r,...e})}}({themeId:ce,theme:()=>co({cssVariables:!0}),colorSchemeStorageKey:yo,modeStorageKey:bo,defaultColorScheme:{light:vo,dark:xo},resolveTheme:e=>{const t={...e,typography:Fi(e.palette,e.typography)};return t.unstable_sx=function(e){return pr({sx:e,theme:this})},t}}),ko=_o;function Co({theme:e,...t}){const n=y.useMemo(()=>{if("function"==typeof e)return e;const t="$$material"in e?e[ce]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}},[e]);return n?(0,w.jsx)(mo,{theme:n,...t}):(0,w.jsx)(ko,{theme:e,...t})}var To=xn;function Mo(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Io(e){return(0,w.jsx)(xr,{...e,defaultTheme:ho,themeId:ce})}function Po(e){return function(t){return(0,w.jsx)(Io,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}var Ao=function(e){let t,n;return function(r){let i=t;return void 0!==i&&r.theme===n||(hi.theme=r.theme,i=Ir(e(hi)),t=i,n=r.theme),i}};function Do(e){return li(e)}function Eo(e){return Tr("MuiSvgIcon",e)}Mr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var Oo=e=>{const{color:t,fontSize:n,classes:r}=e;return Ci({root:["root","inherit"!==t&&`color${To(t)}`,`fontSize${To(n)}`]},Eo,r)},Ro=go("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${To(n.color)}`],t[`fontSize${To(n.fontSize)}`]]}})(Ao(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Lo=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24",...h}=n,p=y.isValidElement(r)&&"svg"===r.type,f={...n,color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p},g={};return u||(g.viewBox=d),(0,w.jsxs)(Ro,{as:a,className:kr(Oo(f).root,i),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t,...g,...h,...p&&r.props,ownerState:f,children:[p?r.props.children:r,c?(0,w.jsx)("title",{children:c}):null]})});Lo.muiName="SvgIcon";var zo=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r};function No(e){return e&&e.ownerDocument||document}var Bo=No;function Fo(e){return No(e).defaultView||window}var $o=Fo;function Vo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ho=0;var Wo={...y}.useId;var jo=function(e){if(void 0!==Wo){const t=Wo();return e??t}return function(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect(()=>{null==t&&n(`mui-${Ho+=1}`)},[t]),r}(e)};var Go=function(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:o}=y.useRef(void 0!==t),[a,s]=y.useState(n);return[o?t:a,y.useCallback(e=>{o||s(e)},[])]};function Uo(e){const t=y.useRef(e);return $r(()=>{t.current=e}),y.useRef((...e)=>(0,t.current)(...e)).current}var Xo=Uo;function qo(...e){const t=y.useRef(void 0),n=y.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return y.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}var Yo=qo;function Zo(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const i="function"==typeof t?t(r):t,o="function"==typeof e?e({...r,...i}):e,a=kr(r?.className,i?.className,o?.className),s=n(o,i);return{...i,...o,...s,...!!a&&{className:a},...i?.style&&o?.style&&{style:{...i.style,...o.style}},...i?.sx&&o?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};const r=t,i=n(e,r),o=kr(r?.className,e?.className);return{...t,...e,...i,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Ko(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Qo(e,t){return Qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qo(e,t)}function Jo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qo(e,t)}var ea=!1,ta=y.createContext(null),na=l(f()),ra="unmounted",ia="exited",oa="entering",aa="entered",sa="exiting",la=function(e){function t(t,n){var r,i=e.call(this,t,n)||this,o=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?o?(r=ia,i.appearStatus=oa):r=aa:r=t.unmountOnExit||t.mountOnEnter?ra:ia,i.state={status:r},i.nextCallback=null,i}Jo(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:ia}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t=oa):"entering"!==n&&"entered"!==n||(t=sa)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n=this.props.timeout,r=e=t=n;return null!=n&&"number"!=typeof n&&(r=n.exit,e=n.enter,t=void 0!==n.appear?n.appear:e),{exit:r,enter:e,appear:t}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),"entering"===t){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:na.default.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:ra})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[na.default.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||ea?this.safeSetState({status:aa},function(){t.props.onEntered(o)}):(this.props.onEnter(o,a),this.safeSetState({status:oa},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:aa},function(){t.props.onEntered(o,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:na.default.findDOMNode(this);t&&!ea?(this.props.onExit(r),this.safeSetState({status:sa},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:ia},function(){e.props.onExited(r)})})})):this.safeSetState({status:ia},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:na.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Ko(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(ta.Provider,{value:null},"function"==typeof n?n(e,r):y.cloneElement(y.Children.only(n),r))},t}(y.Component);function ua(){}function ca(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function da(e,t){var n=Object.create(null);return e&&y.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,y.isValidElement)(e)?t(e):e}(e)}),n}function ha(e,t,n){return null!=n[t]?n[t]:e.props[t]}function pa(e,t,n){var r=da(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach(function(o){var a=i[o];if((0,y.isValidElement)(a)){var s=o in t,l=o in r,u=t[o],c=(0,y.isValidElement)(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&(0,y.isValidElement)(u)&&(i[o]=(0,y.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:ha(a,"exit",e),enter:ha(a,"enter",e)})):i[o]=(0,y.cloneElement)(a,{in:!1}):i[o]=(0,y.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:ha(a,"exit",e),enter:ha(a,"enter",e)})}}),i}la.contextType=ta,la.propTypes={},la.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ua,onEntering:ua,onEntered:ua,onExit:ua,onExiting:ua,onExited:ua},la.UNMOUNTED=ra,la.EXITED=ia,la.ENTERING=oa,la.ENTERED=aa,la.EXITING=sa;var fa=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ga=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(ca(r)),firstRender:!0},r}Jo(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,da(n.children,function(e){return(0,y.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:ha(e,"appear",n),enter:ha(e,"enter",n),exit:ha(e,"exit",n)})})):pa(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=da(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=de({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ko(e,["component","childFactory"]),i=this.state.contextValue,o=fa(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?y.createElement(ta.Provider,{value:i},o):y.createElement(ta.Provider,{value:i},y.createElement(t,r,o))},t}(y.Component);ga.propTypes={},ga.defaultProps={component:"div",childFactory:function(e){return e}};var ma={};function ya(e,t){const n=y.useRef(ma);return n.current===ma&&(n.current=e(t)),n}var va=[];var xa=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function ba(){const e=ya(xa.create).current;var t;return t=e.disposeEffect,y.useEffect(t,va),e}var _a=e=>e.scrollTop;function wa(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:i.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:i.transitionDelay}}function Sa(e){return Tr("MuiPaper",e)}Mr("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var ka=e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return Ci({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Sa,i)},Ca=go("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(Ao(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ta=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiPaper"}),r=po(),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation",...u}=n,c={...n,component:o,elevation:a,square:s,variant:l};return(0,w.jsx)(Ca,{as:o,ownerState:c,className:kr(ka(c).root,i),ref:t,...u,style:{..."elevation"===l&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${Xr("#fff",Ki(a))}, ${Xr("#fff",Ki(a))})`}},...u.style}})});function Ma(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}function Ia(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Pa(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function Aa(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...h}=o,p=c[e]||r,f=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],i),{props:{component:g,...m},internalRef:y}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=kr(n?.className,o,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},a={...n,...i,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Ia({...i,...r}),s=Pa(r),l=Pa(i),u=t(a),c=kr(u?.className,n?.className,o,i?.className,r?.className),d={...u?.style,...n?.style,...i?.style,...r?.style},h={...u,...n,...l,...s};return c.length>0&&(h.className=c),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:u.ref}}({className:n,...l,externalForwardedProps:"root"===e?h:void 0,externalSlotProps:f}),v=qo(y,f?.ref,t.ref),x="root"===e?g||u:g;return[p,Ma(p,{..."root"===e&&!u&&!c[e]&&a,..."root"!==e&&!c[e]&&a,...m,...x&&!s&&{as:x},...x&&s&&{component:x},ref:v},i)]}function Da(e){try{return e.matches(":focus-visible")}catch(t){}return!1}var Ea=class e{static create(){return new e}static use(){const t=ya(e.create).current,[n,r]=y.useState(!1);return t.shouldMount=n,t.setShouldMount=r,y.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};var Oa=Mr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ra=qt`
  11. 0% {
  12. transform: scale(0);
  13. opacity: 0.1;
  14. }
  15. 100% {
  16. transform: scale(1);
  17. opacity: 0.3;
  18. }
  19. `,La=qt`
  20. 0% {
  21. opacity: 1;
  22. }
  23. 100% {
  24. opacity: 0;
  25. }
  26. `,za=qt`
  27. 0% {
  28. transform: scale(1);
  29. }
  30. 50% {
  31. transform: scale(0.92);
  32. }
  33. 100% {
  34. transform: scale(1);
  35. }
  36. `,Na=go("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ba=go(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=y.useState(!1),h=kr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+o,left:-a/2+i},f=kr(n.child,c&&n.childLeaving,r&&n.childPulsate);return s||c||d(!0),y.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,s,u]),(0,w.jsx)("span",{className:h,style:p,children:(0,w.jsx)("span",{className:f})})},{name:"MuiTouchRipple",slot:"Ripple"})`
  37. opacity: 0;
  38. position: absolute;
  39. &.${Oa.rippleVisible} {
  40. opacity: 0.3;
  41. transform: scale(1);
  42. animation-name: ${Ra};
  43. animation-duration: ${550}ms;
  44. animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  45. }
  46. &.${Oa.ripplePulsate} {
  47. animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
  48. }
  49. & .${Oa.child} {
  50. opacity: 1;
  51. display: block;
  52. width: 100%;
  53. height: 100%;
  54. border-radius: 50%;
  55. background-color: currentColor;
  56. }
  57. & .${Oa.childLeaving} {
  58. opacity: 0;
  59. animation-name: ${La};
  60. animation-duration: ${550}ms;
  61. animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  62. }
  63. & .${Oa.childPulsate} {
  64. position: absolute;
  65. /* @noflip */
  66. left: 0px;
  67. top: 0;
  68. animation-name: ${za};
  69. animation-duration: 2500ms;
  70. animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  71. animation-iteration-count: infinite;
  72. animation-delay: 200ms;
  73. }
  74. `,Fa=y.forwardRef(function(e,t){const{center:n=!1,classes:r={},className:i,...o}=Do({props:e,name:"MuiTouchRipple"}),[a,s]=y.useState([]),l=y.useRef(0),u=y.useRef(null);y.useEffect(()=>{u.current&&(u.current(),u.current=null)},[a]);const c=y.useRef(!1),d=ba(),h=y.useRef(null),p=y.useRef(null),f=y.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:i,rippleSize:o,cb:a}=e;s(e=>[...e,(0,w.jsx)(Ba,{classes:{ripple:kr(r.ripple,Oa.ripple),rippleVisible:kr(r.rippleVisible,Oa.rippleVisible),ripplePulsate:kr(r.ripplePulsate,Oa.ripplePulsate),child:kr(r.child,Oa.child),childLeaving:kr(r.childLeaving,Oa.childLeaving),childPulsate:kr(r.childPulsate,Oa.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:i,rippleSize:o},l.current)]),l.current+=1,u.current=a},[r]),g=y.useCallback((e={},t={},r=()=>{})=>{const{pulsate:i=!1,center:o=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&c.current)return void(c.current=!1);"touchstart"===e?.type&&(c.current=!0);const s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,g,m;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),g=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),g=Math.round(n-l.top)}if(o)m=Math.sqrt((2*l.width**2+l.height**2)/3),m%2==0&&(m+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-g),g)+2;m=Math.sqrt(e**2+t**2)}e?.touches?null===h.current&&(h.current=()=>{f({pulsate:i,rippleX:u,rippleY:g,rippleSize:m,cb:r})},d.start(80,()=>{h.current&&(h.current(),h.current=null)})):f({pulsate:i,rippleX:u,rippleY:g,rippleSize:m,cb:r})},[n,f,d]),m=y.useCallback(()=>{g({},{pulsate:!0})},[g]),v=y.useCallback((e,t)=>{if(d.clear(),"touchend"===e?.type&&h.current)return h.current(),h.current=null,void d.start(0,()=>{v(e,t)});h.current=null,s(e=>e.length>0?e.slice(1):e),u.current=t},[d]);return y.useImperativeHandle(t,()=>({pulsate:m,start:g,stop:v}),[m,g,v]),(0,w.jsx)(Na,{className:kr(Oa.root,r.root,i),ref:p,...o,children:(0,w.jsx)(ga,{component:null,exit:!0,children:a})})});function $a(e){return Tr("MuiButtonBase",e)}var Va=Mr("MuiButtonBase",["root","disabled","focusVisible"]),Ha=go("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Va.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Wa=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,focusVisibleClassName:h,LinkComponent:p="a",onBlur:f,onClick:g,onContextMenu:m,onDragLeave:v,onFocus:x,onFocusVisible:b,onKeyDown:_,onKeyUp:S,onMouseDown:k,onMouseLeave:C,onMouseUp:T,onTouchEnd:M,onTouchMove:I,onTouchStart:P,tabIndex:A=0,TouchRippleProps:D,touchRippleRef:E,type:O,...R}=n,L=y.useRef(null),z=Ea.use(),N=Yo(z.ref,E),[B,F]=y.useState(!1);l&&B&&F(!1),y.useImperativeHandle(r,()=>({focusVisible:()=>{F(!0),L.current.focus()}}),[]);const $=z.shouldMount&&!u&&!l;y.useEffect(()=>{B&&d&&!u&&z.pulsate()},[u,d,B,z]);const V=ja(z,"start",k,c),H=ja(z,"stop",m,c),W=ja(z,"stop",v,c),j=ja(z,"stop",T,c),G=ja(z,"stop",e=>{B&&e.preventDefault(),C&&C(e)},c),U=ja(z,"start",P,c),X=ja(z,"stop",M,c),q=ja(z,"stop",I,c),Y=ja(z,"stop",e=>{Da(e.target)||F(!1),f&&f(e)},!1),Z=Xo(e=>{L.current||(L.current=e.currentTarget),Da(e.target)&&(F(!0),b&&b(e)),x&&x(e)}),K=()=>{const e=L.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},Q=Xo(e=>{d&&!e.repeat&&B&&" "===e.key&&z.stop(e,()=>{z.start(e)}),e.target===e.currentTarget&&K()&&" "===e.key&&e.preventDefault(),_&&_(e),e.target===e.currentTarget&&K()&&"Enter"===e.key&&!l&&(e.preventDefault(),g&&g(e))}),J=Xo(e=>{d&&" "===e.key&&B&&!e.defaultPrevented&&z.stop(e,()=>{z.pulsate(e)}),S&&S(e),g&&e.target===e.currentTarget&&K()&&" "===e.key&&!e.defaultPrevented&&g(e)});let ee=s;"button"===ee&&(R.href||R.to)&&(ee=p);const te={};"button"===ee?(te.type=void 0===O?"button":O,te.disabled=l):(R.href||R.to||(te.role="button"),l&&(te["aria-disabled"]=l));const ne=Yo(t,L),re={...n,centerRipple:i,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:B},ie=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=Ci({root:["root",t&&"disabled",n&&"focusVisible"]},$a,i);return n&&r&&(o.root+=` ${r}`),o})(re);return(0,w.jsxs)(Ha,{as:ee,className:kr(ie.root,a),ownerState:re,onBlur:Y,onClick:g,onContextMenu:H,onFocus:Z,onKeyDown:Q,onKeyUp:J,onMouseDown:V,onMouseLeave:G,onMouseUp:j,onDragLeave:W,onTouchEnd:X,onTouchMove:q,onTouchStart:U,ref:ne,tabIndex:l?-1:A,type:O,...te,...R,children:[o,$?(0,w.jsx)(Fa,{ref:N,center:i,...D}):null]})});function ja(e,t,n,r=!1){return Xo(i=>(n&&n(i),r||e[t](i),!0))}function Ga(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function Ua(e){return Tr("MuiCircularProgress",e)}Mr("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var Xa=44,qa=qt`
  75. 0% {
  76. transform: rotate(0deg);
  77. }
  78. 100% {
  79. transform: rotate(360deg);
  80. }
  81. `,Ya=qt`
  82. 0% {
  83. stroke-dasharray: 1px, 200px;
  84. stroke-dashoffset: 0;
  85. }
  86. 50% {
  87. stroke-dasharray: 100px, 200px;
  88. stroke-dashoffset: -15px;
  89. }
  90. 100% {
  91. stroke-dasharray: 1px, 200px;
  92. stroke-dashoffset: -126px;
  93. }
  94. `,Za="string"!=typeof qa?Xt`
  95. animation: ${qa} 1.4s linear infinite;
  96. `:null,Ka="string"!=typeof Ya?Xt`
  97. animation: ${Ya} 1.4s ease-in-out infinite;
  98. `:null,Qa=go("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${To(n.color)}`]]}})(Ao(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Za||{animation:`${qa} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ga()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Ja=go("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),es=go("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${To(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ao(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:Ka||{animation:`${Ya} 1.4s ease-in-out infinite`}}]}))),ts=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:o=!1,size:a=40,style:s,thickness:l=3.6,value:u=0,variant:c="indeterminate",...d}=n,h={...n,color:i,disableShrink:o,size:a,thickness:l,value:u,variant:c},p=(e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e;return Ci({root:["root",n,`color${To(r)}`],svg:["svg"],circle:["circle",`circle${To(n)}`,i&&"circleDisableShrink"]},Ua,t)})(h),f={},g={},m={};if("determinate"===c){const e=2*Math.PI*((Xa-l)/2);f.strokeDasharray=e.toFixed(3),m["aria-valuenow"]=Math.round(u),f.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return(0,w.jsx)(Qa,{className:kr(p.root,r),style:{width:a,height:a,...g,...s},ownerState:h,ref:t,role:"progressbar",...m,...d,children:(0,w.jsx)(Ja,{className:p.svg,ownerState:h,viewBox:"22 22 44 44",children:(0,w.jsx)(es,{className:p.circle,style:f,ownerState:h,cx:Xa,cy:Xa,r:(Xa-l)/2,fill:"none",strokeWidth:l})})})});function ns(e){return Tr("MuiTypography",e)}Mr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var rs={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},is=br,os=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return Ci({root:["root",o,"inherit"!==e.align&&`align${To(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},ns,a)},as=go("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${To(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ao(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(Ga()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${To(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),ss={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ls=y.forwardRef(function(e,t){const{color:n,...r}=Do({props:e,name:"MuiTypography"}),i=is({...r,...!rs[n]&&{color:n}}),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:h=ss,...p}=i,f={...i,align:o,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:h};return(0,w.jsx)(as,{as:s||(c?"p":h[d]||ss[d])||"span",ref:t,className:kr(os(f).root,a),...p,ownerState:f,style:{..."inherit"!==o&&{"--Typography-textAlign":o},...p.style}})});function us(e){return parseInt("19.2.3",10)>=19?e?.props?.ref||null:e?.ref||null}var cs=y.forwardRef(function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[o,a]=y.useState(null),s=qo(y.isValidElement(n)?us(n):null,t);if($r(()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,i]),$r(()=>{if(o&&!i)return Vo(t,o),()=>{Vo(t,null)}},[t,o,i]),i){if(y.isValidElement(n)){const e={ref:s};return y.cloneElement(n,e)}return n}return o?na.createPortal(n,o):o});function ds({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}var hs=y.createContext(void 0);function ps(){return y.useContext(hs)}var fs={entering:{opacity:1},entered:{opacity:1}},gs=y.forwardRef(function(e,t){const n=po(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:h,onExited:p,onExiting:f,style:g,timeout:m=r,TransitionComponent:v=la,...x}=e,b=y.useRef(null),_=Yo(b,us(a),t),S=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},k=S(d),C=S((e,t)=>{_a(e);const r=wa({style:g,timeout:m,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),T=S(c),M=S(f),I=S(e=>{const t=wa({style:g,timeout:m,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),h&&h(e)}),P=S(p);return(0,w.jsx)(v,{appear:o,in:l,nodeRef:b,onEnter:C,onEntered:T,onEntering:k,onExit:I,onExited:P,onExiting:M,addEndListener:e=>{i&&i(b.current,e)},timeout:m,...x,children:(e,{ownerState:t,...n})=>y.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||l?void 0:"hidden",...fs[e],...g,...a.props.style},ref:_,...n})})});function ms(e){return Tr("MuiBackdrop",e)}Mr("MuiBackdrop",["root","invisible"]);var ys=go("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),vs=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiBackdrop"}),{children:r,className:i,component:o="div",invisible:a=!1,open:s,components:l={},componentsProps:u={},slotProps:c={},slots:d={},TransitionComponent:h,transitionDuration:p,...f}=n,g={...n,component:o,invisible:a},m=(e=>{const{classes:t,invisible:n}=e;return Ci({root:["root",n&&"invisible"]},ms,t)})(g),y={slots:{transition:h,root:l.Root,...d},slotProps:{...u,...c}},[v,x]=Aa("root",{elementType:ys,externalForwardedProps:y,className:kr(m.root,i),ownerState:g}),[b,_]=Aa("transition",{elementType:gs,externalForwardedProps:y,ownerState:g});return(0,w.jsx)(b,{in:s,timeout:p,...f,..._,children:(0,w.jsx)(v,{"aria-hidden":!0,...x,classes:m,ref:t,children:r})})}),xs=Mr("MuiBox",["root"]),bs=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,o=rn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(pr);return y.forwardRef(function(e,a){const s=vr(n),{className:l,component:u="div",...c}=br(e);return(0,w.jsx)(o,{as:u,ref:a,className:kr(l,i?i(r):r),theme:t&&s[t]||s,...c})})}({themeId:ce,defaultTheme:co(),defaultClassName:xs.root,generateClassName:wr.generate});function _s(e){return Tr("MuiButton",e)}var ws=Mr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Ss=y.createContext({}),ks=y.createContext(void 0),Cs=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Ts=go(Wa,{shouldForwardProp:e=>fo(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${To(n.color)}`],t[`size${To(n.size)}`],t[`${n.variant}Size${To(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ao(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ws.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ws.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ws.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ws.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ga()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Xr(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xr(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xr(e.palette[t].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Xr(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Xr(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ws.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ws.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ws.loading}`]:{color:"transparent"}}}]}})),Ms=go("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${To(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Cs]})),Is=go("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${To(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Cs]})),Ps=go("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),As=go("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Ds=y.forwardRef(function(e,t){const n=y.useContext(Ss),r=y.useContext(ks),i=Do({props:Br(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:h,focusVisibleClassName:p,fullWidth:f=!1,id:g,loading:m=null,loadingIndicator:v,loadingPosition:x="center",size:b="medium",startIcon:_,type:S,variant:k="text",...C}=i,T=jo(g),M=v??(0,w.jsx)(ts,{"aria-labelledby":T,color:"inherit",size:16}),I={...i,color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:f,loading:m,loadingIndicator:M,loadingPosition:x,size:b,type:S,variant:k},P=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,loading:a,loadingPosition:s,classes:l}=e,u=Ci({root:["root",a&&"loading",o,`${o}${To(t)}`,`size${To(i)}`,`${o}Size${To(i)}`,`color${To(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${To(s)}`],startIcon:["icon","startIcon",`iconSize${To(i)}`],endIcon:["icon","endIcon",`iconSize${To(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},_s,l);return{...l,...u}})(I),A=(_||m&&"start"===x)&&(0,w.jsx)(Ms,{className:P.startIcon,ownerState:I,children:_||(0,w.jsx)(As,{className:P.loadingIconPlaceholder,ownerState:I})}),D=(h||m&&"end"===x)&&(0,w.jsx)(Is,{className:P.endIcon,ownerState:I,children:h||(0,w.jsx)(As,{className:P.loadingIconPlaceholder,ownerState:I})}),E=r||"",O="boolean"==typeof m?(0,w.jsx)("span",{className:P.loadingWrapper,style:{display:"contents"},children:m&&(0,w.jsx)(Ps,{className:P.loadingIndicator,ownerState:I,children:M})}):null;return(0,w.jsxs)(Ts,{ownerState:I,className:kr(n.className,P.root,l,E),component:s,disabled:u||m,focusRipple:!d,focusVisibleClassName:kr(P.focusVisible,p),ref:t,type:S,id:m?T:g,...C,classes:P,children:[A,"end"!==x&&O,o,"end"===x&&O,D]})});function Es(e){return Tr("PrivateSwitchBase",e)}Mr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var Os=go(Wa)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),Rs=go("input",{shouldForwardProp:fo})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ls=y.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,defaultChecked:o,disabled:a,disableFocusRipple:s=!1,edge:l=!1,icon:u,id:c,inputProps:d,inputRef:h,name:p,onBlur:f,onChange:g,onFocus:m,readOnly:y,required:v=!1,tabIndex:x,type:b,value:_,slots:S={},slotProps:k={},...C}=e,[T,M]=Go({controlled:r,default:Boolean(o),name:"SwitchBase",state:"checked"}),I=ps();let P=a;I&&void 0===P&&(P=I.disabled);const A="checkbox"===b||"radio"===b,D={...e,checked:T,disabled:P,disableFocusRipple:s,edge:l},E=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e;return Ci({root:["root",n&&"checked",r&&"disabled",i&&`edge${To(i)}`],input:["input"]},Es,t)})(D),O={slots:S,slotProps:{input:d,...k}},[R,L]=Aa("root",{ref:t,elementType:Os,className:E.root,shouldForwardComponentProp:!0,externalForwardedProps:{...O,component:"span",...C},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{m&&m(e),I&&I.onFocus&&I.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{f&&f(e),I&&I.onBlur&&I.onBlur(e)})(t)}}),ownerState:D,additionalProps:{centerRipple:!0,focusRipple:!s,disabled:P,role:void 0,tabIndex:null}}),[z,N]=Aa("input",{ref:h,elementType:Rs,className:E.input,externalForwardedProps:O,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;M(t),g&&g(e,t)})(t)}}),ownerState:D,additionalProps:{autoFocus:n,checked:r,defaultChecked:o,disabled:P,id:A?c:void 0,name:p,readOnly:y,required:v,tabIndex:x,type:b,..."checkbox"===b&&void 0===_?{}:{value:_}}});return(0,w.jsxs)(R,{...L,children:[(0,w.jsx)(z,{...N}),T?i:u]})}),zs=function(e={}){const{createStyledComponent:t=Mi,useThemeProps:n=Ii,componentName:r="MuiContainer"}=e,i=t(({theme:e,ownerState:t})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{const r=n,i=e.breakpoints.values[r];return 0!==i&&(t[e.breakpoints.up(r)]={maxWidth:`${i}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>({..."xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},...t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}}));return y.forwardRef(function(e,t){const o=n(e),{className:a,component:s="div",disableGutters:l=!1,fixed:u=!1,maxWidth:c="lg",classes:d,...h}=o,p={...o,component:s,disableGutters:l,fixed:u,maxWidth:c};return(0,w.jsx)(i,{as:s,ownerState:p,className:kr(Pi(p,r).root,a),ref:t,...h})})}({createStyledComponent:go("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${To(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Do({props:e,name:"MuiContainer"})}),Ns="function"==typeof Po({}),Bs=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Fs=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),$s=(e,t=!1)=>{const n={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const i=e.getColorSchemeSelector(t);i.startsWith("@")?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,"")]={colorScheme:r.palette?.mode}});let r={html:Bs(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Fs(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},Vs="mui-ecs",Hs=Po(Ns?({theme:e,enableColorScheme:t})=>$s(e,t):({theme:e})=>(e=>{const t=$s(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Vs})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const i=e.getColorSchemeSelector(t);i.startsWith("@")?n[i]={[`:root:not(:has(.${Vs}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${Vs}))`]:{colorScheme:r.palette?.mode}}}),t})(e));function Ws(e){const{children:t,enableColorScheme:n=!1}=Do({props:e,name:"MuiCssBaseline"});return(0,w.jsxs)(y.Fragment,{children:[Ns&&(0,w.jsx)(Hs,{enableColorScheme:n}),!Ns&&!n&&(0,w.jsx)("span",{className:Vs,style:{display:"none"}}),t]})}function js(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Gs(e){return parseInt(Fo(e).getComputedStyle(e).paddingRight,10)||0}function Us(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,e=>{const t=!o.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&js(e,i)})}function Xs(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function qs(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=No(e);return t.body===e?Fo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}(Fo(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Gs(r)+e}px`;const t=No(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Gs(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=No(r).body;else{const t=r.parentElement,n=Fo(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}var Ys=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Zs(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ys)).forEach((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Ks(){return!0}function Qs(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Zs,isEnabled:a=Ks,open:s}=e,l=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),h=y.useRef(null),p=y.useRef(!1),f=y.useRef(null),g=qo(us(t),f),m=y.useRef(null);y.useEffect(()=>{s&&f.current&&(p.current=!n)},[n,s]),y.useEffect(()=>{if(!s||!f.current)return;const e=No(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),p.current&&f.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),y.useEffect(()=>{if(!s||!f.current)return;const e=No(f.current),t=t=>{m.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},n=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!p.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=o(f.current)),n.length>0){const e=Boolean(m.current?.shiftKey&&"Tab"===m.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,i,a,s,o]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return(0,w.jsxs)(y.Fragment,{children:[(0,w.jsx)("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:g,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,w.jsx)("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}var Js=()=>{},el=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&js(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Us(t,e.mount,e.modalRef,r,!0);const i=Xs(this.containers,e=>e.container===t);return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Xs(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=qs(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Xs(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&js(e.modalRef,t),Us(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&js(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function tl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:u,rootRef:c}=e,d=y.useRef({}),h=y.useRef(null),p=y.useRef(null),f=qo(p,c),[g,m]=y.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const b=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),_=()=>{el.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},w=Uo(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||No(h.current).body;el.add(b(),e),p.current&&_()}),S=()=>el.isTopModal(b()),k=Uo(e=>{h.current=e,e&&(u&&S()?_():p.current&&js(p.current,x))}),C=y.useCallback(()=>{el.remove(b(),x)},[x]);y.useEffect(()=>()=>{C()},[C]),y.useEffect(()=>{u?w():v&&i||C()},[u,C,v,i,w]);const T=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&S()&&(n||(t.stopPropagation(),l&&l(t,"escapeKeyDown")))},M=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&l&&l(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Ia(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:T(r),ref:f}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:M(t),open:u}},getTransitionProps:()=>({onEnter:Mo(()=>{m(!1),o&&o()},s?.props.onEnter??Js),onExited:Mo(()=>{m(!0),a&&a(),i&&C()},s?.props.onExited??Js)}),rootRef:f,portalRef:k,isTopModal:S,exited:g,hasTransition:v}}function nl(e){return Tr("MuiModal",e)}Mr("MuiModal",["root","hidden","backdrop"]);var rl=go("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ao(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),il=go(vs,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),ol=y.forwardRef(function(e,t){const n=Do({name:"MuiModal",props:e}),{BackdropComponent:r=il,BackdropProps:i,classes:o,className:a,closeAfterTransition:s=!1,children:l,container:u,component:c,components:d={},componentsProps:h={},disableAutoFocus:p=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:g=!1,disablePortal:m=!1,disableRestoreFocus:v=!1,disableScrollLock:x=!1,hideBackdrop:b=!1,keepMounted:_=!1,onClose:S,onTransitionEnter:k,onTransitionExited:C,open:T,slotProps:M={},slots:I={},theme:P,...A}=n,D={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:f,disableEscapeKeyDown:g,disablePortal:m,disableRestoreFocus:v,disableScrollLock:x,hideBackdrop:b,keepMounted:_},{getRootProps:E,getBackdropProps:O,getTransitionProps:R,portalRef:L,isTopModal:z,exited:N,hasTransition:B}=tl({...D,rootRef:t}),F={...D,exited:N},$=(e=>{const{open:t,exited:n,classes:r}=e;return Ci({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},nl,r)})(F),V={};if(void 0===l.props.tabIndex&&(V.tabIndex="-1"),B){const{onEnter:e,onExited:t}=R();V.onEnter=e,V.onExited=t}const H={slots:{root:d.Root,backdrop:d.Backdrop,...I},slotProps:{...h,...M}},[W,j]=Aa("root",{ref:t,elementType:rl,externalForwardedProps:{...H,...A,component:c},getSlotProps:E,ownerState:F,className:kr(a,$?.root,!F.open&&F.exited&&$?.hidden)}),[G,U]=Aa("backdrop",{ref:i?.ref,elementType:r,externalForwardedProps:H,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>O({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:kr(i?.className,$?.backdrop),ownerState:F});return _||T||B&&!N?(0,w.jsx)(cs,{ref:L,container:u,disablePortal:m,children:(0,w.jsxs)(W,{...j,children:[!b&&r?(0,w.jsx)(G,{...U}):null,(0,w.jsx)(Qs,{disableEnforceFocus:f,disableAutoFocus:p,disableRestoreFocus:v,isEnabled:z,open:T,children:y.cloneElement(l,V)})]})}):null});function al(e){return Tr("MuiFormControlLabel",e)}var sl=Mr("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ll=go("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sl.label}`]:t.label},t.root,t[`labelPlacement${To(n.labelPlacement)}`]]}})(Ao(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${sl.disabled}`]:{cursor:"default"},[`& .${sl.label}`]:{[`&.${sl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),ul=go("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Ao(({theme:e})=>({[`&.${sl.error}`]:{color:(e.vars||e).palette.error.main}}))),cl=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiFormControlLabel"}),{checked:r,className:i,componentsProps:o={},control:a,disabled:s,disableTypography:l,inputRef:u,label:c,labelPlacement:d="end",name:h,onChange:p,required:f,slots:g={},slotProps:m={},value:v,...x}=n,b=ps(),_=s??a.props.disabled??b?.disabled,S=f??a.props.required,k={disabled:_,required:S};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===a.props[e]&&void 0!==n[e]&&(k[e]=n[e])});const C=ds({props:n,muiFormControl:b,states:["error"]}),T={...n,disabled:_,labelPlacement:d,required:S,error:C.error},M=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e;return Ci({root:["root",n&&"disabled",`labelPlacement${To(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]},al,t)})(T),[I,P]=Aa("typography",{elementType:ls,externalForwardedProps:{slots:g,slotProps:{...o,...m}},ownerState:T});let A=c;return null==A||A.type===ls||l||(A=(0,w.jsx)(I,{component:"span",...P,className:kr(M.label,P?.className),children:A})),(0,w.jsxs)(ll,{className:kr(M.root,i),ownerState:T,ref:t,...x,children:[y.cloneElement(a,k),S?(0,w.jsxs)("div",{children:[A,(0,w.jsxs)(ul,{ownerState:T,"aria-hidden":!0,className:M.asterisk,children:[" ","*"]})]}):A]})});function dl(e){return Tr("MuiFormGroup",e)}Mr("MuiFormGroup",["root","row","error"]);var hl=e=>{const{classes:t,row:n,error:r}=e;return Ci({root:["root",n&&"row",r&&"error"]},dl,t)},pl=go("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),fl=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiFormGroup"}),{className:r,row:i=!1,...o}=n,a=ds({props:n,muiFormControl:ps(),states:["error"]}),s={...n,row:i,error:a.error};return(0,w.jsx)(pl,{className:kr(hl(s).root,r),ownerState:s,ref:t,...o})});function gl(e){return`scale(${e}, ${e**2})`}var ml={entering:{opacity:1,transform:gl(1)},entered:{opacity:1,transform:"none"}},yl="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vl=y.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:o,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:h,style:p,timeout:f="auto",TransitionComponent:g=la,...m}=e,v=ba(),x=y.useRef(),b=po(),_=y.useRef(null),S=Yo(_,us(i),t),k=e=>t=>{if(e){const n=_.current;void 0===t?e(n):e(n,t)}},C=k(u),T=k((e,t)=>{_a(e);const{duration:n,delay:r,easing:i}=wa({style:p,timeout:f,easing:o},{mode:"enter"});let a;"auto"===f?(a=b.transitions.getAutoHeightDuration(e.clientHeight),x.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:yl?a:.666*a,delay:r,easing:i})].join(","),s&&s(e,t)}),M=k(l),I=k(h),P=k(e=>{const{duration:t,delay:n,easing:r}=wa({style:p,timeout:f,easing:o},{mode:"exit"});let i;"auto"===f?(i=b.transitions.getAutoHeightDuration(e.clientHeight),x.current=i):i=t,e.style.transition=[b.transitions.create("opacity",{duration:i,delay:n}),b.transitions.create("transform",{duration:yl?i:.666*i,delay:yl?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=gl(.75),c&&c(e)}),A=k(d);return(0,w.jsx)(g,{appear:r,in:a,nodeRef:_,onEnter:T,onEntered:M,onEntering:C,onExit:P,onExited:A,onExiting:I,addEndListener:e=>{"auto"===f&&v.start(x.current||0,e),n&&n(_.current,e)},timeout:"auto"===f?null:f,...m,children:(e,{ownerState:t,...n})=>y.cloneElement(i,{style:{opacity:0,transform:gl(.75),visibility:"exited"!==e||a?void 0:"hidden",...ml[e],...p,...i.props.style},ref:S,...n})})});function xl(e){return Tr("MuiLink",e)}vl&&(vl.muiSupportAuto=!0);var bl=Mr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),_l=({theme:e,ownerState:t})=>{const n=t.color,r=bn(e,`palette.${n}.main`,!1)||bn(e,`palette.${n}`,!1)||t.color,i=bn(e,`palette.${n}.mainChannel`)||bn(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Xr(r,.4)},wl={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Sl=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e;return Ci({root:["root",`underline${To(i)}`,"button"===n&&"button",r&&"focusVisible"]},xl,t)},kl=go(ls,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${To(n.underline)}`],"button"===n.component&&t.button]}})(Ao(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Ga()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Xr(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Xr(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Xr(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bl.focusVisible}`]:{outline:"auto"}}}]}))),Cl=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiLink"}),r=po(),{className:i,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:h,...p}=n,[f,g]=y.useState(!1),m={...n,color:o,component:a,focusVisible:f,underline:c,variant:d};return(0,w.jsx)(kl,{color:o,className:kr(Sl(m).root,i),classes:u,component:a,onBlur:e=>{Da(e.target)||g(!1),s&&s(e)},onFocus:e=>{Da(e.target)&&g(!0),l&&l(e)},ref:t,ownerState:m,variant:d,...p,sx:[...void 0===wl[o]?[{color:o}]:[],...Array.isArray(h)?h:[h]],style:{...p.style,..."always"===c&&"inherit"!==o&&!wl[o]&&{"--Link-underlineColor":_l({theme:r,ownerState:m})}}})});function Tl(e){return Tr("MuiPopover",e)}Mr("MuiPopover",["root","paper"]);function Ml(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Il(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Pl(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Al(e){return"function"==typeof e?e():e}var Dl=go(ol,{name:"MuiPopover",slot:"Root"})({}),El=go(Ta,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Ol=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:l,className:u,container:c,elevation:d=8,marginThreshold:h=16,open:p,PaperProps:f={},slots:g={},slotProps:m={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:b="auto",TransitionProps:_={},disableScrollLock:S=!1,...k}=n,C=y.useRef(),T={...n,anchorOrigin:o,anchorReference:s,elevation:d,marginThreshold:h,transformOrigin:v,TransitionComponent:x,transitionDuration:b,TransitionProps:_},M=(e=>{const{classes:t}=e;return Ci({root:["root"],paper:["paper"]},Tl,t)})(T),I=y.useCallback(()=>{if("anchorPosition"===s)return a;const e=Al(i),t=(e&&1===e.nodeType?e:Bo(C.current).body).getBoundingClientRect();return{top:t.top+Ml(t,o.vertical),left:t.left+Il(t,o.horizontal)}},[i,o.horizontal,o.vertical,a,s]),P=y.useCallback(e=>({vertical:Ml(e,v.vertical),horizontal:Il(e,v.horizontal)}),[v.horizontal,v.vertical]),A=y.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===s)return{top:null,left:null,transformOrigin:Pl(n)};const r=I();let o=r.top-n.vertical,a=r.left-n.horizontal;const l=o+t.height,u=a+t.width,c=$o(Al(i)),d=c.innerHeight-h,p=c.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&l>d){const e=l-d;o-=e,n.vertical+=e}if(null!==h&&a<h){const e=a-h;a-=e,n.horizontal+=e}else if(u>p){const e=u-p;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:Pl(n)}},[i,s,I,P,h]),[D,E]=y.useState(p),O=y.useCallback(()=>{const e=C.current;if(!e)return;const t=A(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,E(!0)},[A]);y.useEffect(()=>(S&&window.addEventListener("scroll",O),()=>window.removeEventListener("scroll",O)),[i,S,O]);y.useEffect(()=>{p&&O()}),y.useImperativeHandle(r,()=>p?{updatePosition:()=>{O()}}:null,[p,O]),y.useEffect(()=>{if(!p)return;const e=zo(()=>{O()}),t=$o(Al(i));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[i,p,O]);let R=b;const L={slots:{transition:x,...g},slotProps:{transition:_,paper:f,...m}},[z,N]=Aa("transition",{elementType:vl,externalForwardedProps:L,ownerState:T,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),O()},onExited:t=>{e.onExited?.(t),E(!1)}}),additionalProps:{appear:!0,in:p}});"auto"!==b||z.muiSupportAuto||(R=void 0);const B=c||(i?Bo(Al(i)).body:void 0),[F,{slots:$,slotProps:V,...H}]=Aa("root",{ref:t,elementType:Dl,externalForwardedProps:{...L,...k},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:Zo("function"==typeof m.backdrop?m.backdrop(T):m.backdrop,{invisible:!0})},container:B,open:p},ownerState:T,className:kr(M.root,u)}),[W,j]=Aa("paper",{ref:C,className:M.paper,elementType:El,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:D?void 0:{opacity:0}},ownerState:T});return(0,w.jsx)(F,{...H,...(G=F,!("string"==typeof G)&&{slots:$,slotProps:V,disableScrollLock:S}),children:(0,w.jsx)(z,{...N,timeout:R,children:(0,w.jsx)(W,{...j,children:l})})});var G});function Rl(e){return Tr("MuiSwitch",e)}var Ll=Mr("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),zl=go("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${To(n.edge)}`],t[`size${To(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Ll.thumb}`]:{width:16,height:16},[`& .${Ll.switchBase}`]:{padding:4,[`&.${Ll.checked}`]:{transform:"translateX(16px)"}}}}]}),Nl=go(Ls,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Ll.input}`]:t.input},"default"!==n.color&&t[`color${To(n.color)}`]]}})(Ao(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Ll.checked}`]:{transform:"translateX(20px)"},[`&.${Ll.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Ll.checked} + .${Ll.track}`]:{opacity:.5},[`&.${Ll.disabled} + .${Ll.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${Ll.input}`]:{left:"-100%",width:"300%"}})),Ao(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Xr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Ga(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Ll.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xr(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ll.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?Kr(e.palette[t].main,.62):Yr(e.palette[t].main,.55)}`}},[`&.${Ll.checked} + .${Ll.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Bl=go("span",{name:"MuiSwitch",slot:"Track"})(Ao(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),Fl=go("span",{name:"MuiSwitch",slot:"Thumb"})(Ao(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),$l=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiSwitch"}),{className:r,color:i="primary",edge:o=!1,size:a="medium",sx:s,slots:l={},slotProps:u={},...c}=n,d={...n,color:i,edge:o,size:a},h=(e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s=Ci({root:["root",n&&`edge${To(n)}`,`size${To(r)}`],switchBase:["switchBase",`color${To(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},Rl,t);return{...t,...s}})(d),p={slots:l,slotProps:u},[f,g]=Aa("root",{className:kr(h.root,r),elementType:zl,externalForwardedProps:p,ownerState:d,additionalProps:{sx:s}}),[m,y]=Aa("thumb",{className:h.thumb,elementType:Fl,externalForwardedProps:p,ownerState:d}),v=(0,w.jsx)(m,{...y}),[x,b]=Aa("track",{className:h.track,elementType:Bl,externalForwardedProps:p,ownerState:d});return(0,w.jsxs)(f,{...g,children:[(0,w.jsx)(Nl,{type:"checkbox",icon:v,checkedIcon:v,ref:t,ownerState:d,...c,classes:{...h,root:h.switchBase},slots:{...l.switchBase&&{root:l.switchBase},...l.input&&{input:l.input}},slotProps:{...u.switchBase&&{root:"function"==typeof u.switchBase?u.switchBase(d):u.switchBase},...u.input&&{input:"function"==typeof u.input?u.input(d):u.input}}}),(0,w.jsx)(x,{...b})]})}),Vl=y.createContext();function Hl(e){return Tr("MuiTable",e)}Mr("MuiTable",["root","stickyHeader"]);var Wl=go("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Ao(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),jl="table",Gl=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiTable"}),{className:r,component:i=jl,padding:o="normal",size:a="medium",stickyHeader:s=!1,...l}=n,u={...n,component:i,padding:o,size:a,stickyHeader:s},c=(e=>{const{classes:t,stickyHeader:n}=e;return Ci({root:["root",n&&"stickyHeader"]},Hl,t)})(u),d=y.useMemo(()=>({padding:o,size:a,stickyHeader:s}),[o,a,s]);return(0,w.jsx)(Vl.Provider,{value:d,children:(0,w.jsx)(Wl,{as:i,role:i===jl?null:"table",ref:t,className:kr(c.root,r),ownerState:u,...l})})}),Ul=y.createContext();function Xl(e){return Tr("MuiTableBody",e)}Mr("MuiTableBody",["root"]);var ql=go("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Yl={variant:"body"},Zl="tbody",Kl=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiTableBody"}),{className:r,component:i=Zl,...o}=n,a={...n,component:i},s=(e=>{const{classes:t}=e;return Ci({root:["root"]},Xl,t)})(a);return(0,w.jsx)(Ul.Provider,{value:Yl,children:(0,w.jsx)(ql,{className:kr(s.root,r),as:i,ref:t,role:i===Zl?null:"rowgroup",ownerState:a,...o})})});function Ql(e){return Tr("MuiTableCell",e)}var Jl=Mr("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),eu=go("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${To(n.size)}`],"normal"!==n.padding&&t[`padding${To(n.padding)}`],"inherit"!==n.align&&t[`align${To(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Ao(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Kr(Xr(e.palette.divider,1),.88):Yr(Xr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Jl.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),tu=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiTableCell"}),{align:r="inherit",className:i,component:o,padding:a,scope:s,size:l,sortDirection:u,variant:c,...d}=n,h=y.useContext(Vl),p=y.useContext(Ul),f=p&&"head"===p.variant;let g;g=o||(f?"th":"td");let m=s;"td"===g?m=void 0:!m&&f&&(m="col");const v=c||p&&p.variant,x={...n,align:r,component:g,padding:a||(h&&h.padding?h.padding:"normal"),size:l||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&h&&h.stickyHeader,variant:v},b=(e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e;return Ci({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${To(r)}`,"normal"!==i&&`padding${To(i)}`,`size${To(o)}`]},Ql,t)})(x);let _=null;return u&&(_="asc"===u?"ascending":"descending"),(0,w.jsx)(eu,{as:g,ref:t,className:kr(b.root,i),"aria-sort":_,scope:m,ownerState:x,...d})});function nu(e){return Tr("MuiTableContainer",e)}Mr("MuiTableContainer",["root"]);var ru=e=>{const{classes:t}=e;return Ci({root:["root"]},nu,t)},iu=go("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),ou=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiTableContainer"}),{className:r,component:i="div",...o}=n,a={...n,component:i};return(0,w.jsx)(iu,{ref:t,as:i,className:kr(ru(a).root,r),ownerState:a,...o})});function au(e){return Tr("MuiTableHead",e)}Mr("MuiTableHead",["root"]);var su=go("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),lu={variant:"head"},uu="thead",cu=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiTableHead"}),{className:r,component:i=uu,...o}=n,a={...n,component:i},s=(e=>{const{classes:t}=e;return Ci({root:["root"]},au,t)})(a);return(0,w.jsx)(Ul.Provider,{value:lu,children:(0,w.jsx)(su,{as:i,className:kr(s.root,r),ref:t,role:i===uu?null:"rowgroup",ownerState:a,...o})})});function du(e){return Tr("MuiTableRow",e)}var hu=Mr("MuiTableRow",["root","selected","hover","head","footer"]),pu=e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e;return Ci({root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]},du,t)},fu=go("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Ao(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${hu.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${hu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),gu="tr",mu=y.forwardRef(function(e,t){const n=Do({props:e,name:"MuiTableRow"}),{className:r,component:i=gu,hover:o=!1,selected:a=!1,...s}=n,l=y.useContext(Ul),u={...n,component:i,hover:o,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant};return(0,w.jsx)(fu,{as:i,ref:t,className:kr(pu(u).root,r),role:i===gu?null:"row",ownerState:u,...s})});function yu({content:e,formatter:t,round:n}){return t?t(e):n?((e,t=0)=>{const n=Math.pow(10,t);return Math.round(e*n)/n})(e,n):e}function vu({rows:e,structure:t,hasTotalRow:n,defaultSortKey:r}){const{onTableHeadClick:i,sortedRows:o,currentSortField:a}=function(e,{hasTotalRow:t=!1,defaultSortKey:n="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[r,i]=(0,y.useState)(void 0),[o,a]=(0,y.useState)(!1);return{onTableHeadClick:(0,y.useCallback)(e=>{const t=e.target.getAttribute("data-sortkey");if(t===r){if(o)return a(!1),void i(void 0);a(!0)}else o&&a(!1);i(t)},[e,o,r]),sortedRows:(0,y.useMemo)(()=>{const i=(t?e.slice(0,-1):[...e]).sort(function(e,t){const n=t?-1:1;return function(t,r){const i=t[e],o=r[e];return i<o?-1*n:i>o?1*n:0}}(r||n,o));return t?[...i,...e.slice(-1)]:i},[e,r,o]),currentSortField:r}}(e,{hasTotalRow:n,defaultSortKey:r});return(0,w.jsx)(ou,{component:Ta,children:(0,w.jsxs)(Gl,{children:[(0,w.jsx)(cu,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:(0,w.jsx)(mu,{children:t.map(({title:e,key:t})=>(0,w.jsx)(tu,{"data-sortkey":t,onClick:i,sx:{cursor:"pointer",color:a===t?"primary.main":"text.primary"},children:e},`table-head-${t}`))})}),(0,w.jsx)(Kl,{children:o.map((e,n)=>(0,w.jsx)(mu,{children:t.map(({key:t,...n},r)=>(0,w.jsx)(tu,{children:(0,w.jsx)(yu,{content:e[t],...n})},`table-row=${r}`))},`${e.name}-${n}`))})]})})}var xu=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message"},{key:"traceback",title:"Traceback"}];function bu({exceptions:e}){return(0,w.jsx)(vu,{rows:e,structure:xu})}var _u=e=>e?new Date(1e3*e).toLocaleString():"",wu=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message"},{key:"firstSeen",title:"First Seen"},{key:"lastSeen",title:"Last Seen"}];function Su({errors:e}){return(0,w.jsx)(vu,{rows:e.map(e=>({...e,firstSeen:_u(e.firstSeen),lastSeen:_u(e.lastSeen)})),structure:wu})}var ku=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function Cu({responseTimes:e}){const t=(0,y.useMemo)(()=>Object.keys(e[0]).filter(e=>Boolean(Number(e))).map(e=>({key:e,title:100*Number(e)+"%ile (ms)"})),[e]);return(0,w.jsx)(vu,{hasTotalRow:!0,rows:e,structure:[...ku,...t]})}var Tu=function(e){function t(t,n){return(0,w.jsx)(Lo,{"data-testid":void 0,ref:n,...t,children:e})}return t.muiName=Lo.muiName,y.memo(y.forwardRef(t))}((0,w.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}));function Mu({structure:e,selectedColumns:t,addColumn:n,removeColumn:r}){const[i,o]=(0,y.useState)(null);return(0,w.jsxs)(bs,{sx:{display:"flex",justifyContent:"flex-end",my:2},children:[(0,w.jsx)(Ds,{onClick:e=>o(e.currentTarget),variant:"outlined",children:(0,w.jsx)(Tu,{})}),(0,w.jsx)(Ol,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"right"},onClose:()=>o(null),open:Boolean(i),transformOrigin:{vertical:"top",horizontal:"right"},children:(0,w.jsx)(fl,{sx:{p:2},children:e.map(({key:e,title:i})=>(0,w.jsx)(cl,{control:(0,w.jsx)($l,{checked:t.includes(e),onChange:()=>{t.includes(e)?r(e):n(e)}}),label:i},e))})})]})}var Iu=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...M.percentilesToStatistics?M.percentilesToStatistics.map(e=>({title:100*e+"%ile (ms)",key:`responseTimePercentile${e}`})):[],{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function Pu({stats:e,tableStructure:t=Iu}){const{selectedColumns:n,addColumn:r,removeColumn:i,filteredStructure:o}=function(e){const[t,n]=(0,y.useState)(e.map(e=>e.key));return{selectedColumns:t,addColumn:e=>{n([...t,e])},removeColumn:e=>{n(t.filter(t=>t!==e))},filteredStructure:(r=e,r.filter(e=>t.includes(e.key)))};var r}(t);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Mu,{addColumn:r,removeColumn:i,selectedColumns:n,structure:t}),(0,w.jsx)(vu,{hasTotalRow:!0,rows:e,structure:o})]})}var Au=function(e,t){return Au=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])},Au(e,t)};function Du(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Au(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Eu,Ou,Ru=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){t[String.fromCharCode(n+32)]=(e.charCodeAt(n)-20)/100}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Lu={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!Eu){var n=Lu.createCanvas();Eu=n&&n.getContext("2d")}if(Eu)return Ou!==t&&(Ou=Eu.font=t||"12px sans-serif"),Eu.measureText(e);e=e||"";var r=/((?:\d+)?\.?\d*)px/.exec(t=t||"12px sans-serif"),i=r&&+r[1]||12,o=0;if(t.indexOf("mono")>=0)o=i*e.length;else for(var a=0;a<e.length;a++){var s=Ru[e[a]];o+=null==s?i:s*i}return{width:o}},loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},zu=oc(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Nu=oc(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Bu=Object.prototype.toString,Fu=Array.prototype,$u=Fu.forEach,Vu=Fu.filter,Hu=Fu.slice,Wu=Fu.map,ju=function(){}.constructor,Gu=ju?ju.prototype:null,Uu="__proto__",Xu=2311;function qu(){return Xu++}function Yu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function Zu(e){if(null==e||"object"!=typeof e)return e;var t=e,n=Bu.call(e);if("[object Array]"===n){if(!Ac(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=Zu(e[r])}}else if(Nu[n]){if(!Ac(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!zu[n]&&!Ac(e)&&!vc(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==Uu&&(t[a]=Zu(e[a]));return t}function Ku(e,t,n){if(!gc(t)||!gc(e))return n?Zu(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Uu){var i=e[r],o=t[r];!gc(o)||!gc(i)||cc(o)||cc(i)||vc(o)||vc(i)||mc(o)||mc(i)||Ac(o)||Ac(i)?!n&&r in e||(e[r]=Zu(t[r])):Ku(i,o,n)}return e}function Qu(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Uu&&(e[n]=t[n]);return e}function Ju(e,t,n){for(var r=sc(t),i=0;i<r.length;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}Lu.createCanvas;function ec(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 tc(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 o=r[i];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else Ju(e,t,n)}function nc(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function rc(e,t,n){if(e&&t)if(e.forEach&&e.forEach===$u)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 o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function ic(e,t,n){if(!e)return[];if(!t)return kc(e);if(e.map&&e.map===Wu)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function oc(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function ac(e,t,n){if(!e)return[];if(!t)return kc(e);if(e.filter&&e.filter===Vu)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function sc(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}var lc=Gu&&dc(Gu.bind)?Gu.call.bind(Gu.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(Hu.call(arguments)))}};function uc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(Hu.call(arguments)))}}function cc(e){return Array.isArray?Array.isArray(e):"[object Array]"===Bu.call(e)}function dc(e){return"function"==typeof e}function hc(e){return"string"==typeof e}function pc(e){return"[object String]"===Bu.call(e)}function fc(e){return"number"==typeof e}function gc(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function mc(e){return!!zu[Bu.call(e)]}function yc(e){return!!Nu[Bu.call(e)]}function vc(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function xc(e){return null!=e.colorStops}function bc(e){return e!=e}function _c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function wc(e,t){return null!=e?e:t}function Sc(e,t,n){return null!=e?e:null!=t?t:n}function kc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Hu.apply(e,t)}function Cc(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function Tc(e,t){if(!e)throw new Error(t)}function Mc(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ic="__ec_primitive__";function Pc(e){e[Ic]=!0}function Ac(e){return e[Ic]}var Dc=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 sc(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Ec="function"==typeof Map;var Oc=function(){function e(t){var n=cc(t);this.data=Ec?new Map:new Dc;var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&rc(t,i)}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 Ec?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function Rc(e){return new Oc(e)}function Lc(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Qu(n,t),n}function zc(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Nc(e,t){return e.hasOwnProperty(t)}function Bc(){}var Fc=180/Math.PI,$c=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Vc=new function(){this.browser=new $c,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Vc.wxa=!0,Vc.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Vc.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(Vc.node=!0,Vc.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;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}(navigator.userAgent,Vc);var Hc="___EC__COMPONENT__CONTAINER___",Wc="___EC__EXTENDED_CLASS___";function jc(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function Gc(e,t){e.$constructor=e,e.extend=function(e){var t,n,r=this;return dc(n=r)&&/^class\s/.test(Function.prototype.toString.call(n))?t=function(e){function t(){return e.apply(this,arguments)||this}return Du(t,e),t}(r):(t=function(){(e.$constructor||r).apply(this,arguments)},function(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}(t,this)),Qu(t.prototype,e),t[Wc]=!0,t.extend=this.extend,t.superCall=qc,t.superApply=Yc,t.superClass=r,t}}function Uc(e,t){e.extend=t.extend}var Xc=Math.round(10*Math.random());function qc(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function Yc(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Zc(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){Tc(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),e.prototype.type=r;var i=jc(r);if(i.sub){if(i.sub!==Hc){var o=function(e){var n=t[e.main];n&&n[Hc]||((n=t[e.main]={})[Hc]=!0);return n}(i);o[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Hc]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=jc(e),r=[],i=t[n.main];return i&&i[Hc]?rc(i,function(e,t){t!==Hc&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[jc(e).main]},e.getAllClassMainTypes=function(){var e=[];return rc(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[jc(e).main];return n&&n[Hc]}}function Kc(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(r&&ec(r,s)>=0||i&&ec(i,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var Qc=Kc([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Jc=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Qc(this,e,t)},e}(),ed=function(e){this.value=e},td=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new ed(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}(),nd=function(){function e(e){this._list=new td,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(null==r[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new ed(t),a.key=e,n.insertEntry(a),r[e]=a}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)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}(),rd=new nd(50);function id(e){if("string"==typeof e){var t=rd.get(e);return t&&t.image}return e}function od(e,t,n,r,i){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=rd.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?!sd(t=o.image)&&o.pending.push(a):((t=Lu.loadImage(e,ad,ad)).__zrImageSrc=e,rd.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function ad(){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 sd(e){return e&&e.width&&e.height}function ld(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function ud(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function cd(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 dd(e,t,n,r){void 0===r&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*c,e[1]=-i*c+s*d,e[2]=o*d+l*c,e[3]=-o*c+d*l,e[4]=d*(a-r[0])+c*(u-r[1])+r[0],e[5]=d*(u-r[1])-c*(a-r[0])+r[1],e}function hd(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}var pd=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}(),fd=Math.min,gd=Math.max,md=new pd,yd=new pd,vd=new pd,xd=new pd,bd=new pd,_d=new pd,wd=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=fd(e.x,this.x),n=fd(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=gd(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=gd(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){var t=this,n=e.width/t.width,r=e.height/t.height,i=[1,0,0,1,0,0];return cd(i,i,[-t.x,-t.y]),function(e,t,n){var r=n[0],i=n[1];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}(i,i,[n,r]),cd(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,h=!(o<l||u<i||s<c||d<a);if(n){var p=1/0,f=0,g=Math.abs(o-l),m=Math.abs(u-i),y=Math.abs(s-c),v=Math.abs(d-a),x=Math.min(g,m),b=Math.min(y,v);o<l||u<i?x>f&&(f=x,g<m?pd.set(_d,-g,0):pd.set(_d,m,0)):x<p&&(p=x,g<m?pd.set(bd,g,0):pd.set(bd,-m,0)),s<c||d<a?b>f&&(f=b,y<v?pd.set(_d,0,-y):pd.set(_d,0,v)):x<p&&(p=x,y<v?pd.set(bd,0,y):pd.set(bd,0,-v))}return n&&pd.copy(n,h?bd:_d),h},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},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 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}md.x=vd.x=n.x,md.y=xd.y=n.y,yd.x=xd.x=n.x+n.width,yd.y=vd.y=n.y+n.height,md.transform(r),xd.transform(r),yd.transform(r),vd.transform(r),t.x=fd(md.x,yd.x,vd.x,xd.x),t.y=fd(md.y,yd.y,vd.y,xd.y);var l=gd(md.x,yd.x,vd.x,xd.x),u=gd(md.y,yd.y,vd.y,xd.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),Sd={};function kd(e,t){var n=Sd[t=t||"12px sans-serif"];n||(n=Sd[t]=new nd(500));var r=n.get(e);return null==r&&(r=Lu.measureText(e,t).width,n.put(e,r)),r}function Cd(e,t,n,r){var i=kd(e,t),o=Pd(t);return new wd(Md(0,i,n),Id(0,o,r),i,o)}function Td(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return Cd(i[0],t,n,r);for(var o=new wd(0,0,0,0),a=0;a<i.length;a++){var s=Cd(i[a],t,n,r);0===a?o.copy(s):o.union(s)}return o}function Md(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function Id(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function Pd(e){return kd("国",e)}function Ad(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Dd(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=Ad(r[0],n.width),u+=Ad(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+a,u+=s,d="middle";break;case"top":l+=a/2,u-=i,c="center",d="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=a-i,u+=s,c="right",d="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,d="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",d="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var Ed=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Od(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=Rd(t,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Ld(o[a],i);return o.join("\n")}function Rd(e,t,n,r){var i=Qu({},r=r||{});i.font=t,n=wc(n,"..."),i.maxIterations=wc(r.maxIterations,2);var o=i.minChar=wc(r.minChar,0);i.cnCharWidth=kd("国",t);var a=i.ascCharWidth=kd("a",t);i.placeholder=wc(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var u=kd(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function Ld(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=kd(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?zd(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;o=kd(e=e.substr(0,s),r)}return""===e&&(e=t.placeholder),e}function zd(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var Nd=function(){},Bd=function(e){this.tokens=[],e&&(this.tokens=e)},Fd=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function $d(e,t,n,r,i){var o,a,s=""===t,l=i&&n.rich[i]||{},u=e.lines,c=l.font||n.font,d=!1;if(r){var h=l.padding,p=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var f=Ad(l.width,r.width)+p;u.length>0&&f+r.accumWidth>r.width&&(o=t.split("\n"),d=!0),r.accumWidth=f}else{var g=Wd(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var m=0;m<o.length;m++){var y=o[m],v=new Nd;if(v.styleName=i,v.text=y,v.isLineHolder=!y&&!s,"number"==typeof l.width?v.width=l.width:v.width=a?a[m]:kd(y,c),m||d)u.push(new Bd([v]));else{var x=(u[u.length-1]||(u[0]=new Bd)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=v:(y||!b||s)&&x.push(v)}}}var Vd=oc(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Hd(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!Vd[e]}function Wd(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var h=e.charAt(d);if("\n"!==h){var p=kd(h,t),f=!r&&!Hd(h);(o.length?c+p>n:i+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=h,s="",c=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=h,c=p)):f?(o.push(l),a.push(u),l=h,u=p):(o.push(h),a.push(p)):(c+=p,f?(l+=h,u+=p):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}function jd(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function Gd(e){return[e[0],e[1]]}function Ud(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Xd(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function qd(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Yd(e,t){var n=function(e){return Math.sqrt(function(e){return e[0]*e[0]+e[1]*e[1]}(e))}(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Zd(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Kd=Zd;var Qd=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function Jd(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 eh(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function th(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var nh=ld,rh=5e-5;function ih(e){return e>rh||e<-5e-5}var oh=[],ah=[],sh=[1,0,0,1,0,0],lh=Math.abs,uh=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},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 ih(this.rotation)||ih(this.x)||ih(this.y)||ih(this.scaleX-1)||ih(this.scaleY-1)||ih(this.skewX)||ih(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):nh(n),e&&(t?ud(n,e,n):function(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]}(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(nh(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(oh);var n=oh[0]<0?-1:1,r=oh[1]<0?-1:1,i=((oh[0]-n)*t+n)/oh[0]||0,o=((oh[1]-r)*t+r)/oh[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],hd(this.invTransform,e)},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||[1,0,0,1,0,0],ud(ah,e.invTransform,t),t=ah);var n=this.originX,r=this.originY;(n||r)&&(sh[4]=n,sh[5]=r,ud(ah,t,sh),ah[4]-=n,ah[5]-=r,t=ah),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Jd(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Jd(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&lh(e[0]-1)>1e-10&&lh(e[3]-1)>1e-10?Math.sqrt(lh(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){!function(e,t){for(var n=0;n<ch.length;n++){var r=ch[n];e[r]=t[r]}}(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||r||a||s){var p=n+a,f=r+s;t[4]=-p*i-d*f*o,t[5]=-f*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=d*o,l&&dd(t,t,l),t[4]+=n+u,t[5]+=r+c,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}(),ch=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];var dh={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 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},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;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*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=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-dh.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?.5*dh.bounceIn(2*e):.5*dh.bounceOut(2*e-1)+.5}},hh=Math.pow,ph=Math.sqrt,fh=1e-8,gh=1e-4,mh=ph(3),yh=1/3,vh=jd(),xh=jd(),bh=jd();function _h(e){return e>-1e-8&&e<fh}function wh(e){return e>fh||e<-1e-8}function Sh(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function kh(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function Ch(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,d=s*l-9*a*u,h=l*l-3*s*u,p=0;if(_h(c)&&_h(d))if(_h(s))o[0]=0;else{(k=-l/s)>=0&&k<=1&&(o[p++]=k)}else{var f=d*d-4*c*h;if(_h(f)){var g=d/c,m=-g/2;(k=-s/a+g)>=0&&k<=1&&(o[p++]=k),m>=0&&m<=1&&(o[p++]=m)}else if(f>0){var y=ph(f),v=c*s+1.5*a*(-d+y),x=c*s+1.5*a*(-d-y);(k=(-s-((v=v<0?-hh(-v,yh):hh(v,yh))+(x=x<0?-hh(-x,yh):hh(x,yh))))/(3*a))>=0&&k<=1&&(o[p++]=k)}else{var b=(2*c*s-3*a*d)/(2*ph(c*c*c)),_=Math.acos(b)/3,w=ph(c),S=Math.cos(_),k=(-s-2*w*S)/(3*a),C=(m=(-s+w*(S+mh*Math.sin(_)))/(3*a),(-s+w*(S-mh*Math.sin(_)))/(3*a));k>=0&&k<=1&&(o[p++]=k),m>=0&&m<=1&&(o[p++]=m),C>=0&&C<=1&&(o[p++]=C)}}return p}function Th(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(_h(a)){if(wh(o))(c=-s/o)>=0&&c<=1&&(i[l++]=c)}else{var u=o*o-4*a*s;if(_h(u))i[0]=-o/(2*a);else if(u>0){var c,d=ph(u),h=(-o-d)/(2*a);(c=(-o+d)/(2*a))>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}function Mh(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,d=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=d,o[4]=d,o[5]=c,o[6]=l,o[7]=r}function Ih(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,d=0,h=1/l,p=1;p<=l;p++){var f=p*h,g=Sh(e,n,i,a,f),m=Sh(t,r,o,s,f),y=g-u,v=m-c;d+=Math.sqrt(y*y+v*v),u=g,c=m}return d}function Ph(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Ah(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Dh(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function Eh(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Oh(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,d=1;d<=a;d++){var h=d*c,p=Ph(e,n,i,h),f=Ph(t,r,o,h),g=p-s,m=f-l;u+=Math.sqrt(g*g+m*m),s=p,l=f}return u}var Rh=/cubic-bezier\(([0-9,\.e ]+)\)/;function Lh(e){var t=e&&Rh.exec(e);if(t){var n=t[1].split(","),r=+Mc(n[0]),i=+Mc(n[1]),o=+Mc(n[2]),a=+Mc(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:Ch(0,r,o,1,e,s)&&Sh(0,i,a,1,s[0])}}}var zh=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||Bc,this.ondestroy=e.ondestroy||Bc,this.onrestart=e.onrestart||Bc,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;this._startTime=e-r%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=dc(e)?e:dh[e]||Lh(e)},e}(),Nh={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 Bh(e){return(e=Math.round(e))<0?0:e>255?255:e}function Fh(e){return e<0?0:e>1?1:e}function $h(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Bh(parseFloat(t)/100*255):Bh(parseInt(t,10))}function Vh(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Fh(parseFloat(t)/100):Fh(parseFloat(t))}function Hh(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function Wh(e,t,n){return e+(t-e)*n}function jh(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Gh(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Uh=new nd(20),Xh=null;function qh(e,t){Xh&&Gh(Xh,t),Xh=Uh.put(e,Xh||t.slice())}function Yh(e,t){if(e){t=t||[];var n=Uh.get(e);if(n)return Gh(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in Nh)return Gh(t,Nh[r]),qh(e,t),t;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(jh(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),qh(e,t),t):void jh(t,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(jh(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),qh(e,t),t):void jh(t,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?jh(t,+u[0],+u[1],+u[2],1):jh(t,0,0,0,1);c=Vh(u.pop());case"rgb":return u.length>=3?(jh(t,$h(u[0]),$h(u[1]),$h(u[2]),3===u.length?c:Vh(u[3])),qh(e,t),t):void jh(t,0,0,0,1);case"hsla":return 4!==u.length?void jh(t,0,0,0,1):(u[3]=Vh(u[3]),Zh(u,t),qh(e,t),t);case"hsl":return 3!==u.length?void jh(t,0,0,0,1):(Zh(u,t),qh(e,t),t);default:return}}jh(t,0,0,0,1)}}function Zh(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Vh(e[1]),i=Vh(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return jh(t=t||[],Bh(255*Hh(a,o,n+1/3)),Bh(255*Hh(a,o,n)),Bh(255*Hh(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function Kh(e,t){var n=Yh(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Jh(n,4===n.length?"rgba":"rgb")}}function Qh(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=Yh(t[i]),s=Yh(t[o]),l=r-i,u=Jh([Bh(Wh(a[0],s[0],l)),Bh(Wh(a[1],s[1],l)),Bh(Wh(a[2],s[2],l)),Fh(Wh(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function Jh(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function ep(e,t){var n=Yh(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var tp=new nd(100);function np(e){if(hc(e)){var t=tp.get(e);return t||(t=Kh(e,-.1),tp.put(e,t)),t}if(xc(e)){var n=Qu({},e);return n.colorStops=ic(e.colorStops,function(e){return{offset:e.offset,color:Kh(e.color,-.1)}}),n}return e}Vc.hasGlobalWindow&&dc(window.btoa);var rp=Array.prototype.slice;function ip(e,t,n){return(t-e)*n+e}function op(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=ip(t[o],n[o],r);return e}function ap(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function sp(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function lp(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function up(e,t,n){var r=e,i=t;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:rp.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function cp(e){if(nc(e)){var t=e.length;if(nc(e[0])){for(var n=[],r=0;r<t;r++)n.push(rp.call(e[r]));return n}return rp.call(e)}return e}function dp(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]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function hp(e){return 4===e||5===e}function pp(e){return 1===e||2===e}var fp=[0,0,0,0],gp=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,o=!1,a=6,s=t;if(nc(t)){var l=function(e){return nc(e&&e[0])?2:1}(t);a=l,(1===l&&!fc(t[0])||2===l&&!fc(t[0][0]))&&(o=!0)}else if(fc(t)&&!bc(t))a=0;else if(hc(t))if(isNaN(+t)){var u=Yh(t);u&&(s=u,a=3)}else a=0;else if(xc(t)){var c=Qu({},s);c.colorStops=ic(t.colorStops,function(e){return{offset:e.offset,color:Yh(e.color)}}),"linear"===t.type?a=4:function(e){return"radial"===e.type}(t)&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=dc(n)?n:dh[n]||Lh(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,o=n[i-1],a=this.discrete,s=pp(r),l=hp(r),u=0;u<i;u++){var c=n[u],d=c.value,h=o.value;c.percent=c.time/e,a||(s&&u!==i-1?up(d,h,r):l&&lp(d.colorStops,h.colorStops))}if(!a&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var p=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-p:3===r?n[u].additiveValue=ap([],n[u].value,p,-1):pp(r)&&(n[u].additiveValue=1===r?ap([],n[u].value,p,-1):sp([],n[u].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,d=3===s,h=this._lastFr,p=Math.min;if(1===u)r=i=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=p(h+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=p(n,u-2)}else{for(n=h;n<u&&!(l[n].percent>t);n++);n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var f=i.percent-r.percent,g=0===f?1:p((t-r.percent)/f,1);i.easingFunc&&(g=i.easingFunc(g));var m=o?this._additiveValue:d?fp:e[c];if(!pp(s)&&!d||m||(m=this._additiveValue=[]),this.discrete)e[c]=g<1?r.rawValue:i.rawValue;else if(pp(s))1===s?op(m,r[a],i[a],g):function(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=ip(t[a][s],n[a][s],r)}}(m,r[a],i[a],g);else if(hp(s)){var y=r[a],v=i[a],x=4===s;e[c]={type:x?"linear":"radial",x:ip(y.x,v.x,g),y:ip(y.y,v.y,g),colorStops:ic(y.colorStops,function(e,t){var n=v.colorStops[t];return{offset:ip(e.offset,n.offset,g),color:dp(op([],e.color,n.color,g))}}),global:v.global},x?(e[c].x2=ip(y.x2,v.x2,g),e[c].y2=ip(y.y2,v.y2,g)):e[c].r=ip(y.r,v.r,g)}else if(d)op(m,r[a],i[a],g),o||(e[c]=dp(m));else{var b=ip(r[a],i[a],g);o?this._additiveValue=b:e[c]=b}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(Yh(e[n],fp),ap(fp,fp,r,1),e[n]=dp(fp)):1===t?ap(e[n],e[n],r,1):2===t&&sp(e[n],e[n],r,1)},e}(),mp=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?Yu("Can' use additive animation on looped animation."):(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,sc(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new gp(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,3===u.valType&&l&&(l=dp(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,cp(l),r),this._trackKeys.push(a)}s.addKeyframe(e,cp(t[a]),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 o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(t._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var d=new zh({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,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var a=t._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](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=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(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 ic(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 o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[i]=cp(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||sc(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),yp=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a<i[e].length;a++)if(i[e][a].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,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,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=t[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),vp=1;Vc.hasGlobalWindow&&(vp=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xp=vp,bp="#333",_p="#ccc",wp="__zr_normal__",Sp=ch.concat(["ignore"]),kp=oc(ch,function(e,t){return e[t]=!0,e},{ignore:!1}),Cp={},Tp=new wd(0,0,0,0),Mp=function(){function e(e){this.id=qu(),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}var r=this.transform;r||(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||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var u=Tp;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Cp,n,u):Dd(Cp,n,u),i.x=Cp.x,i.y=Cp.y,o=Cp.align,a=Cp.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var d=void 0,h=void 0;"center"===c?(d=.5*u.width,h=.5*u.height):(d=Ad(c[0],u.width),h=Ad(c[1],u.height)),l=!0,i.originX=-i.x+d+(r?0:u.x),i.originY=-i.y+h+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,v=void 0;f&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(m),v=!0)):(m=n.outsideFill,y=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(m),v=!0)),(m=m||"#000")===g.fill&&y===g.stroke&&v===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=y,g.autoStroke=v,g.align=o,g.verticalAlign=a,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()?_p:bp},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&Yh(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Jh(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Qu(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("string"==typeof e)this.attrKV(e,t);else if(gc(e))for(var n=sc(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&&"__zr_normal__"!==i)){var o=r.targetName,a=o?t[o]:t;r.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Sp)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||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(wp,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===wp;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(ec(o,e)>=0)||!t&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.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._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}Yu("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(e[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,d),g&&g.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},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=ec(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=ec(r,e),o=ec(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&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];Qu(n,i),i.textConfig&&Qu(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,o){var a=!(t&&r);t&&t.textConfig?(this.textConfig=Qu({},r?this.textConfig:n.textConfig),Qu(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Sp.length;u++){var c=Sp[u],d=i&&kp[c];t&&null!=t[c]?d?(l=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(d?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var h=this.animators[u],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(t||n)[p]:t||n)}l&&this._transitionState(e,s,o)},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 uh,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Qu(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._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},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 mp(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=ec(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=[],o=0;o<r;o++){var a=n[o];e&&e!==a.scope?i.push(a):a.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Ip(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Ip(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Ip(this,t,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;function n(e,n,r,i){function o(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(t,e,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,o(this,e)}})}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function Ip(e,t,n,r,i){var o=[];Dp(e,"",e,t,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},d=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(e,t){n.during(t)});for(var h=0;h<o.length;h++){var p=o[h];c&&p.done(c),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function Pp(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Ap(e,t,n){if(nc(t[n]))if(nc(e[n])||(e[n]=[]),yc(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Pp(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(nc(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?Pp(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Pp(o,i,a);o.length=i.length}else e[n]=t[n]}function Dp(e,t,n,r,i,o,a,s){for(var l=sc(r),u=i.duration,c=i.delay,d=i.additive,h=i.setToFinal,p=!gc(o),f=e.animators,g=[],m=0;m<l.length;m++){var y=l[m],v=r[y];if(null!=v&&null!=n[y]&&(p||o[y]))if(!gc(v)||nc(v)||xc(v))g.push(y);else{if(t){s||(n[y]=v,e.updateDuringAnimation(t));continue}Dp(e,y,n[y],v,i,o&&o[y],a,s)}else s||(n[y]=v,e.updateDuringAnimation(t),g.push(y))}var x=g.length;if(!d&&x)for(var b=0;b<f.length;b++){if((w=f[b]).targetName===t&&w.stopTracks(g)){var _=ec(f,w);f.splice(_,1)}}if(i.force||(g=ac(g,function(e){return t=r[e],i=n[e],!(t===i||nc(t)&&nc(i)&&function(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}(t,i));var t,i}),x=g.length),x>0||i.force&&!a.length){var w,S=void 0,k=void 0,C=void 0;if(s){k={},h&&(S={});for(b=0;b<x;b++){k[y=g[b]]=n[y],h?S[y]=r[y]:n[y]=r[y]}}else if(h){C={};for(b=0;b<x;b++){C[y=g[b]]=cp(n[y]),Ap(n,r,y)}}(w=new mp(n,!1,!1,d?ac(f,function(e){return e.targetName===t}):null)).targetName=t,i.scope&&(w.scope=i.scope),h&&S&&w.whenWithKeys(0,S,g),C&&w.whenWithKeys(0,C,g),w.whenWithKeys(null==u?500:u,s?k:r,g).delay(c||0),e.addAnimator(w,t),a.push(w)}}tc(Mp,yp),tc(Mp,uh);var Ep="__zr_style_"+Math.round(10*Math.random()),Op={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Rp={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Op[Ep]=!0;var Lp=["z","z2","invisible"],zp=["invisible"],Np=function(e){function t(t){return e.call(this,t)||this}var n;return Du(t,e),t.prototype._init=function(t){for(var n=sc(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},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||0===this.style.opacity||this.culling&&function(e,t,n){Bp.copy(e.getBoundingRect()),e.transform&&Bp.applyTransform(e.transform);return Fp.width=t,Fp.height=n,!Bp.intersect(Fp)}(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.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,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new wd(0,0,0,0)),t?wd.applyTransform(e,n,t):e.copy(n),(i||o||a)&&(e.width+=2*i+Math.abs(o),e.height+=2*i+Math.abs(a),e.x=Math.min(e.x,e.x+o-i),e.y=Math.min(e.y,e.y+a-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+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new wd(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){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:Qu(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Lc(Op,e)},t.prototype.useStyle=function(e){e[Ep]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Ep]},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,Lp)},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=sc(u),d=0;d<c.length;d++){(p=c[d])in s&&(s[p]=s[p],this.style[p]=u[p])}var h=sc(s);for(d=0;d<h.length;d++){var p=h[d];this.style[p]=this.style[p]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?zp:Lp;for(d=0;d<f.length;d++){p=f[d];n&&null!=n[p]?this[p]=n[p]:l&&null!=r[p]&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return Qu(e,t),e},t.prototype.getAnimationStyleProps=function(){return Rp},t.initDefaultProps=((n=t.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),t}(Mp),Bp=new wd(0,0,0,0),Fp=new wd(0,0,0,0);var $p=Math.min,Vp=Math.max,Hp=Math.sin,Wp=Math.cos,jp=2*Math.PI,Gp=jd(),Up=jd(),Xp=jd();function qp(e,t,n,r,i,o){i[0]=$p(e,n),i[1]=$p(t,r),o[0]=Vp(e,n),o[1]=Vp(t,r)}var Yp=[],Zp=[];function Kp(e,t,n,r,i,o,a,s,l,u){var c=Th,d=Sh,h=c(e,n,i,a,Yp);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<h;p++){var f=d(e,n,i,a,Yp[p]);l[0]=$p(f,l[0]),u[0]=Vp(f,u[0])}h=c(t,r,o,s,Zp);for(p=0;p<h;p++){var g=d(t,r,o,s,Zp[p]);l[1]=$p(g,l[1]),u[1]=Vp(g,u[1])}l[0]=$p(e,l[0]),u[0]=Vp(e,u[0]),l[0]=$p(a,l[0]),u[0]=Vp(a,u[0]),l[1]=$p(t,l[1]),u[1]=Vp(t,u[1]),l[1]=$p(s,l[1]),u[1]=Vp(s,u[1])}function Qp(e,t,n,r,i,o,a,s){var l=Dh,u=Ph,c=Vp($p(l(e,n,i),1),0),d=Vp($p(l(t,r,o),1),0),h=u(e,n,i,c),p=u(t,r,o,d);a[0]=$p(e,i,h),a[1]=$p(t,o,p),s[0]=Vp(e,i,h),s[1]=Vp(t,o,p)}function Jp(e,t,n,r,i,o,a,s,l){var u=eh,c=th,d=Math.abs(i-o);if(d%jp<1e-4&&d>1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(Gp[0]=Wp(i)*n+e,Gp[1]=Hp(i)*r+t,Up[0]=Wp(o)*n+e,Up[1]=Hp(o)*r+t,u(s,Gp,Up),c(l,Gp,Up),(i%=jp)<0&&(i+=jp),(o%=jp)<0&&(o+=jp),i>o&&!a?o+=jp:i<o&&a&&(i+=jp),a){var h=o;o=i,i=h}for(var p=0;p<o;p+=Math.PI/2)p>i&&(Xp[0]=Wp(p)*n+e,Xp[1]=Hp(p)*r+t,u(s,Xp,s),c(l,Xp,l))}var ef={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tf=[],nf=[],rf=[],of=[],af=[],sf=[],lf=Math.min,uf=Math.max,cf=Math.cos,df=Math.sin,hf=Math.abs,pf=Math.PI,ff=2*pf,gf="undefined"!=typeof Float32Array,mf=[];function yf(e){return Math.round(e/pf*1e8)/1e8%2*pf}var vf=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=n||0)>0&&(this._ux=hf(n/xp/e)||0,this._uy=hf(n/xp/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(ef.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=hf(e-this._xi),r=hf(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(ef.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(ef.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(ef.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,o){this._drawPendingPt(),mf[0]=r,mf[1]=i,function(e,t){var n=yf(e[0]);n<0&&(n+=ff);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=ff?i=n+ff:t&&n-i>=ff?i=n-ff:!t&&n>i?i=n+(ff-yf(n-i)):t&&n<i&&(i=n-(ff-yf(i-n))),e[0]=n,e[1]=i}(mf,o),r=mf[0];var a=(i=mf[1])-r;return this.addData(ef.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=cf(i)*n+e,this._yi=df(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(ef.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ef.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){var t=e.length;this.data&&this.data.length===t||!gf||(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){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();gf&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var o=e[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},e.prototype.addData=function(e,t,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},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,gf&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){rf[0]=rf[1]=af[0]=af[1]=Number.MAX_VALUE,of[0]=of[1]=sf[0]=sf[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(i=n=t[e],o=r=t[e+1]),a){case ef.M:n=i=t[e++],r=o=t[e++],af[0]=i,af[1]=o,sf[0]=i,sf[1]=o;break;case ef.L:qp(n,r,t[e],t[e+1],af,sf),n=t[e++],r=t[e++];break;case ef.C:Kp(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],af,sf),n=t[e++],r=t[e++];break;case ef.Q:Qp(n,r,t[e++],t[e++],t[e],t[e+1],af,sf),n=t[e++],r=t[e++];break;case ef.A:var l=t[e++],u=t[e++],c=t[e++],d=t[e++],h=t[e++],p=t[e++]+h;e+=1;var f=!t[e++];s&&(i=cf(h)*c+l,o=df(h)*d+u),Jp(l,u,c,d,h,p,f,af,sf),n=cf(p)*c+l,r=df(p)*d+u;break;case ef.R:qp(i=n=t[e++],o=r=t[e++],i+t[e++],o+t[e++],af,sf);break;case ef.Z:n=i,r=o}eh(rf,rf,af),th(of,of,sf)}return 0===e&&(rf[0]=rf[1]=of[0]=of[1]=0),new wd(rf[0],rf[1],of[0]-rf[0],of[1]-rf[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,d=0;d<t;){var h=e[d++],p=1===d;p&&(a=i=e[d],s=o=e[d+1]);var f=-1;switch(h){case ef.M:i=a=e[d++],o=s=e[d++];break;case ef.L:var g=e[d++],m=(x=e[d++])-o;(hf(P=g-i)>n||hf(m)>r||d===t-1)&&(f=Math.sqrt(P*P+m*m),i=g,o=x);break;case ef.C:var y=e[d++],v=e[d++],x=(g=e[d++],e[d++]),b=e[d++],_=e[d++];f=Ih(i,o,y,v,g,x,b,_,10),i=b,o=_;break;case ef.Q:f=Oh(i,o,y=e[d++],v=e[d++],g=e[d++],x=e[d++],10),i=g,o=x;break;case ef.A:var w=e[d++],S=e[d++],k=e[d++],C=e[d++],T=e[d++],M=e[d++],I=M+T;d+=1,p&&(a=cf(T)*k+w,s=df(T)*C+S),f=uf(k,C)*lf(ff,Math.abs(M)),i=cf(I)*k+w,o=df(I)*C+S;break;case ef.R:a=i=e[d++],s=o=e[d++],f=2*e[d++]+2*e[d++];break;case ef.Z:var P=a-i;m=s-o;f=Math.sqrt(P*P+m*m),i=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,s,l,u,c,d,h=this.data,p=this._ux,f=this._uy,g=this._len,m=t<1,y=0,v=0,x=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var b=0;b<g;){var _=h[b++],w=1===b;switch(w&&(n=i=h[b],r=o=h[b+1]),_!==ef.L&&x>0&&(e.lineTo(c,d),x=0),_){case ef.M:n=i=h[b++],r=o=h[b++],e.moveTo(i,o);break;case ef.L:a=h[b++],s=h[b++];var S=hf(a-i),k=hf(s-o);if(S>p||k>f){if(m){if(y+(q=l[v++])>u){var C=(u-y)/q;e.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break e}y+=q}e.lineTo(a,s),i=a,o=s,x=0}else{var T=S*S+k*k;T>x&&(c=a,d=s,x=T)}break;case ef.C:var M=h[b++],I=h[b++],P=h[b++],A=h[b++],D=h[b++],E=h[b++];if(m){if(y+(q=l[v++])>u){Mh(i,M,P,D,C=(u-y)/q,tf),Mh(o,I,A,E,C,nf),e.bezierCurveTo(tf[1],nf[1],tf[2],nf[2],tf[3],nf[3]);break e}y+=q}e.bezierCurveTo(M,I,P,A,D,E),i=D,o=E;break;case ef.Q:M=h[b++],I=h[b++],P=h[b++],A=h[b++];if(m){if(y+(q=l[v++])>u){Eh(i,M,P,C=(u-y)/q,tf),Eh(o,I,A,C,nf),e.quadraticCurveTo(tf[1],nf[1],tf[2],nf[2]);break e}y+=q}e.quadraticCurveTo(M,I,P,A),i=P,o=A;break;case ef.A:var O=h[b++],R=h[b++],L=h[b++],z=h[b++],N=h[b++],B=h[b++],F=h[b++],$=!h[b++],V=L>z?L:z,H=hf(L-z)>.001,W=N+B,j=!1;if(m)y+(q=l[v++])>u&&(W=N+B*(u-y)/q,j=!0),y+=q;if(H&&e.ellipse?e.ellipse(O,R,L,z,F,N,W,$):e.arc(O,R,V,N,W,$),j)break e;w&&(n=cf(N)*L+O,r=df(N)*z+R),i=cf(W)*L+O,o=df(W)*z+R;break;case ef.R:n=i=h[b],r=o=h[b+1],a=h[b++],s=h[b++];var G=h[b++],U=h[b++];if(m){if(y+(q=l[v++])>u){var X=u-y;e.moveTo(a,s),e.lineTo(a+lf(X,G),s),(X-=G)>0&&e.lineTo(a+G,s+lf(X,U)),(X-=U)>0&&e.lineTo(a+uf(G-X,0),s+U),(X-=G)>0&&e.lineTo(a,s+uf(U-X,0));break e}y+=q}e.rect(a,s,G,U);break;case ef.Z:if(m){var q;if(y+(q=l[v++])>u){C=(u-y)/q;e.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break e}y+=q}e.closePath(),i=n,o=r}}},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.CMD=ef,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function xf(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;var u=(l=(t-r)/(e-n))*o-a+(e*r-n*t)/(e-n);return u*u/(l*l+1)<=s/2*s/2}function bf(e,t,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var d=l;return!(c>t+d&&c>r+d&&c>o+d&&c>s+d||c<t-d&&c<r-d&&c<o-d&&c<s-d||u>e+d&&u>n+d&&u>i+d&&u>a+d||u<e-d&&u<n-d&&u<i-d&&u<a-d)&&function(e,t,n,r,i,o,a,s,l,u,c){var d,h,p,f,g,m=.005,y=1/0;vh[0]=l,vh[1]=u;for(var v=0;v<1;v+=.05)xh[0]=Sh(e,n,i,a,v),xh[1]=Sh(t,r,o,s,v),(f=Qd(vh,xh))<y&&(d=v,y=f);y=1/0;for(var x=0;x<32&&!(m<gh);x++)h=d-m,p=d+m,xh[0]=Sh(e,n,i,a,h),xh[1]=Sh(t,r,o,s,h),f=Qd(xh,vh),h>=0&&f<y?(d=h,y=f):(bh[0]=Sh(e,n,i,a,p),bh[1]=Sh(t,r,o,s,p),g=Qd(bh,vh),p<=1&&g<y?(d=p,y=g):m*=.5);return c&&(c[0]=Sh(e,n,i,a,d),c[1]=Sh(t,r,o,s,d)),ph(y)}(e,t,n,r,i,o,a,s,u,c,null)<=d/2}function _f(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;return!(l>t+u&&l>r+u&&l>o+u||l<t-u&&l<r-u&&l<o-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)&&function(e,t,n,r,i,o,a,s,l){var u,c=.005,d=1/0;vh[0]=a,vh[1]=s;for(var h=0;h<1;h+=.05)xh[0]=Ph(e,n,i,h),xh[1]=Ph(t,r,o,h),(m=Qd(vh,xh))<d&&(u=h,d=m);d=1/0;for(var p=0;p<32&&!(c<gh);p++){var f=u-c,g=u+c;xh[0]=Ph(e,n,i,f),xh[1]=Ph(t,r,o,f);var m=Qd(xh,vh);if(f>=0&&m<d)u=f,d=m;else{bh[0]=Ph(e,n,i,g),bh[1]=Ph(t,r,o,g);var y=Qd(bh,vh);g<=1&&y<d?(u=g,d=y):c*=.5}}return l&&(l[0]=Ph(e,n,i,u),l[1]=Ph(t,r,o,u)),ph(d)}(e,t,n,r,i,o,s,l,null)<=u/2}var wf=2*Math.PI;function Sf(e){return(e%=wf)<0&&(e+=wf),e}var kf=2*Math.PI;function Cf(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%kf<1e-4)return!0;if(o){var d=r;r=Sf(i),i=Sf(d)}else r=Sf(r),i=Sf(i);r>i&&(i+=kf);var h=Math.atan2(l,s);return h<0&&(h+=kf),h>=r&&h<=i||h+kf>=r&&h+kf<=i}function Tf(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;1!==a&&0!==a||(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var Mf=vf.CMD,If=2*Math.PI;var Pf=[-1,-1,-1],Af=[-1,-1];function Df(){var e=Af[0];Af[0]=Af[1],Af[1]=e}function Ef(e,t,n,r,i,o,a,s,l,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var c=Ch(t,r,o,s,u,Pf);if(0===c)return 0;for(var d=0,h=-1,p=void 0,f=void 0,g=0;g<c;g++){var m=Pf[g],y=0===m||1===m?.5:1;Sh(e,n,i,a,m)<l||(h<0&&(h=Th(t,r,o,s,Af),Af[1]<Af[0]&&h>1&&Df(),p=Sh(t,r,o,s,Af[0]),h>1&&(f=Sh(t,r,o,s,Af[1]))),2===h?m<Af[0]?d+=p<t?y:-y:m<Af[1]?d+=f<p?y:-y:d+=s<f?y:-y:m<Af[0]?d+=p<t?y:-y:d+=s<p?y:-y)}return d}function Of(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=function(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(_h(o))wh(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(_h(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,d=ph(u),h=(-a-d)/(2*o);(c=(-a+d)/(2*o))>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}(t,r,o,s,Pf);if(0===l)return 0;var u=Dh(t,r,o);if(u>=0&&u<=1){for(var c=0,d=Ph(t,r,o,u),h=0;h<l;h++){var p=0===Pf[h]||1===Pf[h]?.5:1;Ph(e,n,i,Pf[h])<a||(Pf[h]<u?c+=d<t?p:-p:c+=o<d?p:-p)}return c}p=0===Pf[0]||1===Pf[0]?.5:1;return Ph(e,n,i,Pf[0])<a?0:o<t?p:-p}function Rf(e,t,n,r,i,o,a,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Pf[0]=-l,Pf[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=If-1e-4){r=0,i=If;var c=o?1:-1;return a>=Pf[0]+e&&a<=Pf[1]+e?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=If,i+=If);for(var h=0,p=0;p<2;p++){var f=Pf[p];if(f+e>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=If+g),(g>=r&&g<=i||g+If>=r&&g+If<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),h+=c)}}return h}function Lf(e,t,n,r,i){for(var o,a,s,l,u=e.data,c=e.len(),d=0,h=0,p=0,f=0,g=0,m=0;m<c;){var y=u[m++],v=1===m;switch(y===Mf.M&&m>1&&(n||(d+=Tf(h,p,f,g,r,i))),v&&(f=h=u[m],g=p=u[m+1]),y){case Mf.M:h=f=u[m++],p=g=u[m++];break;case Mf.L:if(n){if(xf(h,p,u[m],u[m+1],t,r,i))return!0}else d+=Tf(h,p,u[m],u[m+1],r,i)||0;h=u[m++],p=u[m++];break;case Mf.C:if(n){if(bf(h,p,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],t,r,i))return!0}else d+=Ef(h,p,u[m++],u[m++],u[m++],u[m++],u[m],u[m+1],r,i)||0;h=u[m++],p=u[m++];break;case Mf.Q:if(n){if(_f(h,p,u[m++],u[m++],u[m],u[m+1],t,r,i))return!0}else d+=Of(h,p,u[m++],u[m++],u[m],u[m+1],r,i)||0;h=u[m++],p=u[m++];break;case Mf.A:var x=u[m++],b=u[m++],_=u[m++],w=u[m++],S=u[m++],k=u[m++];m+=1;var C=!!(1-u[m++]);o=Math.cos(S)*_+x,a=Math.sin(S)*w+b,v?(f=o,g=a):d+=Tf(h,p,o,a,r,i);var T=(r-x)*w/_+x;if(n){if(Cf(x,b,w,S,S+k,C,t,T,i))return!0}else d+=Rf(x,b,w,S,S+k,C,T,i);h=Math.cos(S+k)*_+x,p=Math.sin(S+k)*w+b;break;case Mf.R:if(f=h=u[m++],g=p=u[m++],o=f+u[m++],a=g+u[m++],n){if(xf(f,g,o,g,t,r,i)||xf(o,g,o,a,t,r,i)||xf(o,a,f,a,t,r,i)||xf(f,a,f,g,t,r,i))return!0}else d+=Tf(o,g,o,a,r,i),d+=Tf(f,a,f,g,r,i);break;case Mf.Z:if(n){if(xf(h,p,f,g,t,r,i))return!0}else d+=Tf(h,p,f,g,r,i);h=f,p=g}}return n||(s=p,l=g,Math.abs(s-l)<1e-4)||(d+=Tf(h,p,f,g,r,i)||0),0!==d}var zf=Ju({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Op),Nf={style:Ju({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Rp.style)},Bf=ch.concat(["invisible","culling","z","z2","zlevel","parent"]),Ff=function(e){function t(t){return e.call(this,t)||this}var n;return Du(t,e),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 o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<Bf.length;++s)i[Bf[s]]=this[Bf[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=sc(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=t[o];"style"===o?this.style?Qu(this.style,a):this.useStyle(a):"shape"===o?Qu(this.shape,a):e.prototype.attrKV.call(this,o,a)}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("none"!==e){if(hc(e)){var t=ep(e,0);return t>.5?bp:t>.2?"#eee":_p}if(e)return _p}return bp},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(hc(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())==ep(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 vf(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},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||4&this.__dirty)&&(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 o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}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 o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,r){return Lf(e,t,!0,n,r)}(o,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return Lf(e,0,!1,t,n)}(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(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){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:Qu(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return Lc(zf,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Qu({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Qu({},r.shape),Qu(s,n.shape)):(s=Qu({},i?this.shape:r.shape),Qu(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Qu({},this.shape);for(var u={},c=sc(s),d=0;d<c.length;d++){var h=c[d];"object"==typeof s[h]?this.shape[h]=s[h]:u[h]=s[h]}this._transitionState(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return Nf},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return Du(n,t),n.prototype.getDefaultStyle=function(){return Zu(e.style)},n.prototype.getDefaultShape=function(){return Zu(e.shape)},n}(t);for(var r in e)"function"==typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),t}(Np),$f=Ju({strokeFirst:!0,font:"12px sans-serif",x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},zf),Vf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Lc($f,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Td(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(Np);Vf.prototype.type="tspan";var Hf=Ju({x:0,y:0},Op),Wf={style:Ju({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Rp.style)};var jf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.prototype.createStyle=function(e){return Lc(Hf,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!=typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var o="width"===e?"height":"width",a=t[o];return null==a?i[e]:i[e]/i[o]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Wf},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new wd(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Np);jf.prototype.type="image";var Gf=Math.round;function Uf(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(Gf(2*r)===Gf(2*i)&&(e.x1=e.x2=qf(r,s,!0)),Gf(2*o)===Gf(2*a)&&(e.y1=e.y2=qf(o,s,!0)),e):e}}function Xf(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=qf(r,s,!0),e.y=qf(i,s,!0),e.width=Math.max(qf(r+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(qf(i+a,s,!1)-e.y,0===a?0:1),e):e}}function qf(e,t,n){if(!t)return e;var r=Gf(2*e);return(r+Gf(t))%2==0?r/2:(r+(n?1:-1))/2}var Yf=function(){this.x=0,this.y=0,this.width=0,this.height=0},Zf={},Kf=function(e){function t(t){return e.call(this,t)||this}return Du(t,e),t.prototype.getDefaultShape=function(){return new Yf},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=Xf(Zf,t,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,i=t.width,o=t.height;t.r?function(e,t){var n,r,i,o,a,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof d?n=r=i=o=d:d instanceof Array?1===d.length?n=r=i=o=d[0]:2===d.length?(n=i=d[0],r=o=d[1]):3===d.length?(n=d[0],r=o=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],o=d[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ff);Kf.prototype.type="rect";var Qf={fill:"#000"},Jf={style:Ju({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},Rp.style)},eg=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Qf,n.attr(t),n}return Du(t,e),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,function(e){ag(e),rc(e.rich,ag)}(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 wd(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var o=t[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Qf},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return Qu(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=sc(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},Qu(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Jf},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=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,o=t.font,a="truncate"===r,s=Pd(o),l=wc(t.lineHeight,s),u=!!t.backgroundColor,c="truncate"===t.lineOverflow,d=t.width,h=(n=null==d||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?Wd(e,t.font,d,"breakAll"===r,0).lines:[]).length*l,p=wc(t.height,h);if(h>p&&c){var f=Math.floor(p/l);n=n.slice(0,f)}if(e&&a&&null!=d)for(var g=Rd(d,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;m<n.length;m++)n[m]=Ld(n[m],g);var y=p,v=0;for(m=0;m<n.length;m++)v=Math.max(kd(n[m],o),v);null==d&&(d=v);var x=v;return i&&(y+=i[0]+i[2],x+=i[1]+i[3],d+=i[1]+i[3]),u&&(x=d),{lines:n,height:p,outerWidth:x,outerHeight:y,lineHeight:l,calculatedLineHeight:s,contentWidth:v,contentHeight:h,width:d}}(cg(e),e),i=dg(e),o=!!e.backgroundColor,a=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,d=this._defaultStyle,h=e.x||0,p=e.y||0,f=e.align||d.align||"left",g=e.verticalAlign||d.verticalAlign||"top",m=h,y=Id(p,r.contentHeight,g);if(i||n){var v=Md(h,s,f),x=Id(p,a,g);i&&this._renderBackground(e,e,v,x,s,a)}y+=c/2,n&&(m=ug(h,f,n),"top"===g?y+=n[0]:"bottom"===g&&(y-=n[2]));for(var b=0,_=!1,w=(lg("fill"in e?e.fill:(_=!0,d.fill))),S=(sg("stroke"in e?e.stroke:o||d.autoStroke&&!_?null:(b=2,d.stroke))),k=e.textShadowBlur>0,C=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=r.calculatedLineHeight,M=0;M<u.length;M++){var I=this._getOrCreateChild(Vf),P=I.createStyle();I.useStyle(P),P.text=u[M],P.x=m,P.y=y,f&&(P.textAlign=f),P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,k&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=S,P.fill=w,S&&(P.lineWidth=e.lineWidth||b,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=t,og(P,e),y+=c,C&&I.setBoundingRect(new wd(Md(P.x,e.width,P.textAlign),Id(P.y,T,P.textBaseline),l,T))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new Fd;if(null!=e&&(e+=""),!e)return n;for(var r,i=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=Ed.lastIndex=0;null!=(r=Ed.exec(e));){var u=r.index;u>l&&$d(n,e.substring(l,u),t,s),$d(n,r[2],t,s,r[1]),l=Ed.lastIndex}l<e.length&&$d(n,e.substring(l,e.length),t,s);var c=[],d=0,h=0,p=t.padding,f="truncate"===a,g="truncate"===t.lineOverflow;function m(e,t,n){e.width=t,e.lineHeight=n,d+=n,h=Math.max(h,t)}e:for(var y=0;y<n.lines.length;y++){for(var v=n.lines[y],x=0,b=0,_=0;_<v.tokens.length;_++){var w=(E=v.tokens[_]).styleName&&t.rich[E.styleName]||{},S=E.textPadding=w.padding,k=S?S[1]+S[3]:0,C=E.font=w.font||t.font;E.contentHeight=Pd(C);var T=wc(w.height,E.contentHeight);if(E.innerHeight=T,S&&(T+=S[0]+S[2]),E.height=T,E.lineHeight=Sc(w.lineHeight,t.lineHeight,T),E.align=w&&w.align||t.align,E.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=o&&d+E.lineHeight>o){_>0?(v.tokens=v.tokens.slice(0,_),m(v,b,x),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var M=w.width,I=null==M||"auto"===M;if("string"==typeof M&&"%"===M.charAt(M.length-1))E.percentWidth=M,c.push(E),E.contentWidth=kd(E.text,C);else{if(I){var P=w.backgroundColor,A=P&&P.image;A&&sd(A=id(A))&&(E.width=Math.max(E.width,A.width*T/A.height))}var D=f&&null!=i?i-b:null;null!=D&&D<E.width?!I||D<k?(E.text="",E.width=E.contentWidth=0):(E.text=Od(E.text,D-k,C,t.ellipsis,{minChar:t.truncateMinChar}),E.width=E.contentWidth=kd(E.text,C)):E.contentWidth=kd(E.text,C)}E.width+=k,b+=E.width,w&&(x=Math.max(x,E.lineHeight))}m(v,b,x)}for(n.outerWidth=n.width=wc(i,h),n.outerHeight=n.height=wc(o,d),n.contentHeight=d,n.contentWidth=h,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]),y=0;y<c.length;y++){var E,O=(E=c[y]).percentWidth;E.width=parseInt(O,10)/100*n.width}return n}(cg(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,o=e.padding,a=e.x||0,s=e.y||0,l=this._defaultStyle,u=e.align||l.align,c=e.verticalAlign||l.verticalAlign,d=Md(a,r,u),h=Id(s,i,c),p=d,f=h;o&&(p+=o[3],f+=o[0]);var g=p+n;dg(e)&&this._renderBackground(e,e,d,h,r,i);for(var m=!!e.backgroundColor,y=0;y<t.lines.length;y++){for(var v=t.lines[y],x=v.tokens,b=x.length,_=v.lineHeight,w=v.width,S=0,k=p,C=g,T=b-1,M=void 0;S<b&&(!(M=x[S]).align||"left"===M.align);)this._placeToken(M,e,_,f,k,"left",m),w-=M.width,k+=M.width,S++;for(;T>=0&&"right"===(M=x[T]).align;)this._placeToken(M,e,_,f,C,"right",m),w-=M.width,C-=M.width,T--;for(k+=(n-(k-p)-(g-C)-w)/2;S<=T;)M=x[S],this._placeToken(M,e,_,f,k+M.width/2,"center",m),k+=M.width,S++;f+=_}},t.prototype._placeToken=function(e,t,n,r,i,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=r+n/2;"top"===l?u=r+e.height/2:"bottom"===l&&(u=r+n-e.height/2),!e.isLineHolder&&dg(s)&&this._renderBackground(s,t,"right"===o?i-e.width:"center"===o?i-e.width/2:i,u-e.height/2,e.width,e.height);var c=!!s.backgroundColor,d=e.textPadding;d&&(i=ug(i,o,d),u-=e.height/2-d[0]-e.innerHeight/2);var h=this._getOrCreateChild(Vf),p=h.createStyle();h.useStyle(p);var f=this._defaultStyle,g=!1,m=0,y=lg("fill"in s?s.fill:"fill"in t?t.fill:(g=!0,f.fill)),v=sg("stroke"in s?s.stroke:"stroke"in t?t.stroke:c||a||f.autoStroke&&!g?null:(m=2,f.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=u,x&&(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=o,p.textBaseline="middle",p.font=e.font||"12px sans-serif",p.opacity=Sc(s.opacity,t.opacity,1),og(p,s),v&&(p.lineWidth=Sc(s.lineWidth,t.lineWidth,m),p.lineDash=wc(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=v),y&&(p.fill=y);var b=e.contentWidth,_=e.contentHeight;h.setBoundingRect(new wd(Md(p.x,b,p.textAlign),Id(p.y,_,p.textBaseline),b,_))},t.prototype._renderBackground=function(e,t,n,r,i,o){var a,s,l,u=e.backgroundColor,c=e.borderWidth,d=e.borderColor,h=u&&u.image,p=u&&!h,f=e.borderRadius,g=this;if(p||e.lineHeight||c&&d){(a=this._getOrCreateChild(Kf)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=r,m.width=i,m.height=o,m.r=f,a.dirtyShape()}if(p)(l=a.style).fill=u||null,l.fillOpacity=wc(e.fillOpacity,1);else if(h){(s=this._getOrCreateChild(jf)).onload=function(){g.dirtyStyle()};var y=s.style;y.image=u.image,y.x=n,y.y=r,y.width=i,y.height=o}c&&d&&((l=a.style).lineWidth=c,l.stroke=d,l.strokeOpacity=wc(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var v=(a||s).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||"transparent",v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=Sc(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return function(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}(e)&&(t=[e.fontStyle,e.fontWeight,ig(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Mc(t)||e.textFont||e.font},t}(Np),tg={left:!0,right:1,center:1},ng={top:1,bottom:1,middle:1},rg=["fontStyle","fontWeight","fontSize","fontFamily"];function ig(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e}function og(e,t){for(var n=0;n<rg.length;n++){var r=rg[n],i=t[r];null!=i&&(e[r]=i)}}function ag(e){if(e){e.font=eg.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||tg[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||ng[n]?n:"top",e.padding&&(e.padding=Cc(e.padding))}}function sg(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function lg(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function ug(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function cg(e){var t=e.text;return null!=t&&(t+=""),t}function dg(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var hg=1e-4;function pg(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function fg(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return hc(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function gg(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function mg(e){return e.sort(function(e,t){return e-t}),e}function yg(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return function(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}(e)}function vg(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function xg(e,t){var n=Math.max(yg(e),yg(t)),r=e+t;return n>20?r:gg(r,n)}function bg(e){var t=2*Math.PI;return(e%t+t)%t}function _g(e){return e>-1e-4&&e<hg}var wg=/^(?:(\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 Sg(e){if(e instanceof Date)return e;if(hc(e)){var t=wg.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(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))}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)}return null==e?new Date(NaN):new Date(Math.round(e))}function kg(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Cg(e,t){var n=kg(e),r=Math.pow(10,n),i=e/r;return e=(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,n>=-20?+e.toFixed(n<0?-n:0):e}function Tg(e){var t=parseFloat(e);return t==e&&(0!==t||!hc(e)||e.indexOf("x")<=0)?t:NaN}function Mg(){return Math.round(9*Math.random())}function Ig(e,t){return 0===t?e:Ig(t,e%t)}function Pg(e,t){return null==e?t:null==t?e:e*t/Ig(e,t)}function Ag(e){throw new Error(e)}function Dg(e,t,n){return(t-e)*n+e}var Eg="series\0",Og="\0_ec_\0";function Rg(e){return e instanceof Array?e:null==e?[]:[e]}function Lg(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 o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var zg=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Ng(e){return!gc(e)||cc(e)||e instanceof Date?e:e.value}function Bg(e){return gc(e)&&!(e instanceof Array)}function Fg(e,t,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=Rc();rc(t,function(e,n){gc(e)||(t[n]=null)});var s,l,u=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var o=e[i];o&&null!=o.id&&t.set(o.id,i),r.push({existing:"replaceMerge"===n||jg(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(e,a,n);return(r||i)&&function(e,t,n,r){rc(r,function(i,o){if(i&&null!=i.id){var a=Vg(i.id),s=n.get(a);if(null!=s){var l=e[s];Tc(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}})}(u,e,a,t),r&&function(e,t){rc(t,function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(null==o.id||null==n.id)&&!jg(n)&&!jg(o)&&$g("name",o,n))return e[i].newOption=n,void(t[r]=null)}})}(u,t),r||i?function(e,t,n){rc(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||jg(r.existing)||r.existing&&null!=t.id&&!$g("id",t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}(u,t,i):o&&function(e,t){rc(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(u,t),s=u,l=Rc(),rc(s,function(e){var t=e.existing;t&&l.set(t.id,e)}),rc(s,function(e){var t=e.newOption;Tc(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})}),rc(s,function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(gc(r)){if(i.name=null!=r.name?Vg(r.name):n?n.name:Eg+t,n)i.id=Vg(n.id);else if(null!=r.id)i.id=Vg(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,e)}}),u}function $g(e,t,n){var r=Hg(t[e],null),i=Hg(n[e],null);return null!=r&&null!=i&&r===i}function Vg(e){return Hg(e,"")}function Hg(e,t){return null==e?t:hc(e)?e:fc(e)||pc(e)?e+"":t}function Wg(e){var t=e.name;return!(!t||!t.indexOf(Eg))}function jg(e){return e&&null!=e.id&&0===Vg(e.id).indexOf(Og)}function Gg(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?cc(t.dataIndex)?ic(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?cc(t.name)?ic(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function Ug(){var e="__ec_inner_"+Xg++;return function(t){return t[e]||(t[e]={})}}var Xg=Mg();function qg(e,t,n){var r=Yg(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each(function(t,r){var i=Qg(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]}),a}function Yg(e,t){var n;if(hc(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Rc(),o={},a=!1;return rc(n,function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&ec(t.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[l]=e}else o[n]=e}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Zg={useDefault:!0,enableAll:!1,enableNone:!1},Kg={useDefault:!1,enableAll:!0,enableNone:!0};function Qg(e,t,n,r){r=r||Zg;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===i||!1===i?(Tc(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Tc(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function Jg(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}var em=Ug(),tm=1,nm={},rm=Ug(),im=Ug(),om=["emphasis","blur","select"],am=["normal","emphasis","blur","select"],sm="highlight",lm="downplay",um="select",cm="unselect",dm="toggleSelect";function hm(e){return null!=e&&"none"!==e}function pm(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function fm(e){pm(e,"emphasis",2)}function gm(e){2===e.hoverState&&pm(e,"normal",0)}function mm(e){pm(e,"blur",1)}function ym(e){1===e.hoverState&&pm(e,"normal",0)}function vm(e){e.selected=!0}function xm(e){e.selected=!1}function bm(e,t,n){t(e,n)}function _m(e,t,n){bm(e,t,n),e.isGroup&&e.traverse(function(e){bm(e,t,n)})}function wm(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 Sm(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&ec(n,"select")>=0,o=!1;if(e instanceof Ff){var a=rm(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(hm(s)||hm(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=Qu({},r),(u=Qu({},u)).fill=s):!hm(u.fill)&&hm(s)?(o=!0,r=Qu({},r),(u=Qu({},u)).fill=np(s)):!hm(u.stroke)&&hm(l)&&(o||(r=Qu({},r),u=Qu({},u)),u.stroke=np(l)),r.style=u}}if(r&&null==r.z2){o||(r=Qu({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(null!=c?c:10)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=ec(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:function(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=Qu({},n),a=Qu({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=Qu({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function km(e){e.stateProxy=Sm;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Sm),n&&(n.stateProxy=Sm)}function Cm(e,t){!Em(e,t)&&!e.__highByOuter&&_m(e,fm)}function Tm(e,t){!Em(e,t)&&!e.__highByOuter&&_m(e,gm)}function Mm(e,t){e.__highByOuter|=1<<(t||0),_m(e,fm)}function Im(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&_m(e,gm)}function Pm(e){_m(e,ym)}function Am(e){_m(e,vm)}function Dm(e){_m(e,xm)}function Em(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Om(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var o=im(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse(function(e){ym(e)}),a&&n.push(i)),o.isBlured=!1}),rc(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Rm(e,t,n,r){var i=r.getModel();function o(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Pm(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(e){var i=a===e,u=e.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&"self"===t||mm(e)}),nc(t))o(e.getData(),t);else if(gc(t))for(var c=sc(t),d=0;d<c.length;d++)o(e.getData(c[d]),t[c[d]]);l.push(e),im(e).isBlured=!0}}),i.eachComponent(function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function Lm(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){im(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){mm(e)})}}}function zm(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===em(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function Nm(e){rc(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Am(t):Dm(t)})})}function Bm(e){var t=[];return e.eachSeries(function(e){rc(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(o.dataType=r),t.push(o)}})}),t}function Fm(e,t,n){jm(e,!0),_m(e,km),function(e,t,n){var r=em(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}(e,t,n)}function $m(e,t,n,r){r?function(e){jm(e,!1)}(e):Fm(e,t,n)}var Vm=["emphasis","blur","select"],Hm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Wm(e,t,n,r){n=n||"itemStyle";for(var i=0;i<Vm.length;i++){var o=Vm[i],a=t.getModel([o,n]);e.ensureState(o).style=r?r(a):a[Hm[n]]()}}function jm(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Gm(e){return!(!e||!e.__highDownDispatcher)}function Um(e){var t=e.type;return"select"===t||"unselect"===t||"toggleSelect"===t}function Xm(e){var t=e.type;return"highlight"===t||"downplay"===t}var qm=vf.CMD,Ym=[[],[],[]],Zm=Math.sqrt,Km=Math.atan2;var Qm=Math.sqrt,Jm=Math.sin,ey=Math.cos,ty=Math.PI;function ny(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ry(e,t){return(e[0]*t[0]+e[1]*t[1])/(ny(e)*ny(t))}function iy(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(ry(e,t))}function oy(e,t,n,r,i,o,a,s,l,u,c){var d=l*(ty/180),h=ey(d)*(e-n)/2+Jm(d)*(t-r)/2,p=-1*Jm(d)*(e-n)/2+ey(d)*(t-r)/2,f=h*h/(a*a)+p*p/(s*s);f>1&&(a*=Qm(f),s*=Qm(f));var g=(i===o?-1:1)*Qm((a*a*(s*s)-a*a*(p*p)-s*s*(h*h))/(a*a*(p*p)+s*s*(h*h)))||0,m=g*a*p/s,y=g*-s*h/a,v=(e+n)/2+ey(d)*m-Jm(d)*y,x=(t+r)/2+Jm(d)*m+ey(d)*y,b=iy([1,0],[(h-m)/a,(p-y)/s]),_=[(h-m)/a,(p-y)/s],w=[(-1*h-m)/a,(-1*p-y)/s],S=iy(_,w);if(ry(_,w)<=-1&&(S=ty),ry(_,w)>=1&&(S=0),S<0){var k=Math.round(S/ty*1e6)/1e6;S=2*ty+k%2*ty}c.addData(u,v,x,a,s,b,S,d,o)}var ay=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,sy=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var ly=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.prototype.applyTransform=function(e){},t}(Ff);function uy(e){return null!=e.setData}function cy(e,t){var n=function(e){var t=new vf;if(!e)return t;var n,r=0,i=0,o=r,a=i,s=vf.CMD,l=e.match(ay);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),h=void 0,p=c.match(sy)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var m=0;m<f;){var y=void 0,v=void 0,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0,k=r,C=i,T=void 0,M=void 0;switch(d){case"l":r+=p[m++],i+=p[m++],h=s.L,t.addData(h,r,i);break;case"L":r=p[m++],i=p[m++],h=s.L,t.addData(h,r,i);break;case"m":r+=p[m++],i+=p[m++],h=s.M,t.addData(h,r,i),o=r,a=i,d="l";break;case"M":r=p[m++],i=p[m++],h=s.M,t.addData(h,r,i),o=r,a=i,d="L";break;case"h":r+=p[m++],h=s.L,t.addData(h,r,i);break;case"H":r=p[m++],h=s.L,t.addData(h,r,i);break;case"v":i+=p[m++],h=s.L,t.addData(h,r,i);break;case"V":i=p[m++],h=s.L,t.addData(h,r,i);break;case"C":h=s.C,t.addData(h,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),r=p[m-2],i=p[m-1];break;case"c":h=s.C,t.addData(h,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i),r+=p[m-2],i+=p[m-1];break;case"S":y=r,v=i,T=t.len(),M=t.data,n===s.C&&(y+=r-M[T-4],v+=i-M[T-3]),h=s.C,k=p[m++],C=p[m++],r=p[m++],i=p[m++],t.addData(h,y,v,k,C,r,i);break;case"s":y=r,v=i,T=t.len(),M=t.data,n===s.C&&(y+=r-M[T-4],v+=i-M[T-3]),h=s.C,k=r+p[m++],C=i+p[m++],r+=p[m++],i+=p[m++],t.addData(h,y,v,k,C,r,i);break;case"Q":k=p[m++],C=p[m++],r=p[m++],i=p[m++],h=s.Q,t.addData(h,k,C,r,i);break;case"q":k=p[m++]+r,C=p[m++]+i,r+=p[m++],i+=p[m++],h=s.Q,t.addData(h,k,C,r,i);break;case"T":y=r,v=i,T=t.len(),M=t.data,n===s.Q&&(y+=r-M[T-4],v+=i-M[T-3]),r=p[m++],i=p[m++],h=s.Q,t.addData(h,y,v,r,i);break;case"t":y=r,v=i,T=t.len(),M=t.data,n===s.Q&&(y+=r-M[T-4],v+=i-M[T-3]),r+=p[m++],i+=p[m++],h=s.Q,t.addData(h,y,v,r,i);break;case"A":x=p[m++],b=p[m++],_=p[m++],w=p[m++],S=p[m++],oy(k=r,C=i,r=p[m++],i=p[m++],w,S,x,b,_,h=s.A,t);break;case"a":x=p[m++],b=p[m++],_=p[m++],w=p[m++],S=p[m++],oy(k=r,C=i,r+=p[m++],i+=p[m++],w,S,x,b,_,h=s.A,t)}}"z"!==d&&"Z"!==d||(h=s.Z,t.addData(h),r=o,i=a),n=h}return t.toStatic(),t}(e),r=Qu({},t);return r.buildPath=function(e){if(uy(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){!function(e,t){if(t){var n,r,i,o,a,s,l=e.data,u=e.len(),c=qm.M,d=qm.C,h=qm.L,p=qm.R,f=qm.A,g=qm.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case h:r=1;break;case d:r=3;break;case g:r=2;break;case f:var m=t[4],y=t[5],v=Zm(t[0]*t[0]+t[1]*t[1]),x=Zm(t[2]*t[2]+t[3]*t[3]),b=Km(-t[1]/x,t[0]/v);l[i]*=v,l[i++]+=m,l[i]*=x,l[i++]+=y,l[i++]*=v,l[i++]*=x,l[i++]+=b,l[i++]+=b,o=i+=2;break;case p:s[0]=l[i++],s[1]=l[i++],Jd(s,s,t),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],Jd(s,s,t),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var _=Ym[a];_[0]=l[i++],_[1]=l[i++],Jd(_,_,t),l[o++]=_[0],l[o++]=_[1]}}e.increaseVersion()}}(n,e),this.dirtyShape()},r}var dy=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Du(t,e),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=ec(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=ec(n,e);return r<0||(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 wd(0,0,0,0),n=e||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(wd.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(Mp);dy.prototype.type="group";var hy=function(){this.cx=0,this.cy=0,this.r=0},py=function(e){function t(t){return e.call(this,t)||this}return Du(t,e),t.prototype.getDefaultShape=function(){return new hy},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(Ff);py.prototype.type="circle";var fy=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},gy=function(e){function t(t){return e.call(this,t)||this}return Du(t,e),t.prototype.getDefaultShape=function(){return new fy},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(r-o,i),e.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),e.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),e.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),e.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),e.closePath()},t}(Ff);gy.prototype.type="ellipse";var my=Math.PI,yy=2*my,vy=Math.sin,xy=Math.cos,by=Math.acos,_y=Math.atan2,wy=Math.abs,Sy=Math.sqrt,ky=Math.max,Cy=Math.min,Ty=1e-4;function My(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/Sy(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,g=r+d,m=(h+f)/2,y=(p+g)/2,v=f-h,x=g-p,b=v*v+x*x,_=i-o,w=h*g-f*p,S=(x<0?-1:1)*Sy(ky(0,_*_*b-w*w)),k=(w*x-v*S)/b,C=(-w*v-x*S)/b,T=(w*x+v*S)/b,M=(-w*v+x*S)/b,I=k-m,P=C-y,A=T-m,D=M-y;return I*I+P*P>A*A+D*D&&(k=T,C=M),{cx:k,cy:C,x0:-c,y0:-d,x1:k*(i/_-1),y1:C*(i/_-1)}}function Iy(e,t){var n,r=ky(t.r,0),i=ky(t.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=t.cx,c=t.cy,d=!!t.clockwise,h=wy(l-s),p=h>yy&&h%yy;if(p>Ty&&(h=p),r>Ty)if(h>yy-Ty)e.moveTo(u+r*xy(s),c+r*vy(s)),e.arc(u,c,r,s,l,!d),i>Ty&&(e.moveTo(u+i*xy(l),c+i*vy(l)),e.arc(u,c,i,l,s,d));else{var f=void 0,g=void 0,m=void 0,y=void 0,v=void 0,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0,k=void 0,C=void 0,T=void 0,M=void 0,I=void 0,P=void 0,A=r*xy(s),D=r*vy(s),E=i*xy(l),O=i*vy(l),R=h>Ty;if(R){var L=t.cornerRadius;L&&(n=function(e){var t;if(cc(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(L),f=n[0],g=n[1],m=n[2],y=n[3]);var z=wy(r-i)/2;if(v=Cy(z,m),x=Cy(z,y),b=Cy(z,f),_=Cy(z,g),k=w=ky(v,x),C=S=ky(b,_),(w>Ty||S>Ty)&&(T=r*xy(l),M=r*vy(l),I=i*xy(s),P=i*vy(s),h<my)){var N=function(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,h=d*l-c*u;if(!(h*h<Ty))return[e+(h=(c*(t-o)-d*(e-i))/h)*l,t+h*u]}(A,D,I,P,T,M,E,O);if(N){var B=A-N[0],F=D-N[1],$=T-N[0],V=M-N[1],H=1/vy(by((B*$+F*V)/(Sy(B*B+F*F)*Sy($*$+V*V)))/2),W=Sy(N[0]*N[0]+N[1]*N[1]);k=Cy(w,(r-W)/(H+1)),C=Cy(S,(i-W)/(H-1))}}}if(R)if(k>Ty){var j=Cy(m,k),G=Cy(y,k),U=My(I,P,A,D,r,j,d),X=My(T,M,E,O,r,G,d);e.moveTo(u+U.cx+U.x0,c+U.cy+U.y0),k<w&&j===G?e.arc(u+U.cx,c+U.cy,k,_y(U.y0,U.x0),_y(X.y0,X.x0),!d):(j>0&&e.arc(u+U.cx,c+U.cy,j,_y(U.y0,U.x0),_y(U.y1,U.x1),!d),e.arc(u,c,r,_y(U.cy+U.y1,U.cx+U.x1),_y(X.cy+X.y1,X.cx+X.x1),!d),G>0&&e.arc(u+X.cx,c+X.cy,G,_y(X.y1,X.x1),_y(X.y0,X.x0),!d))}else e.moveTo(u+A,c+D),e.arc(u,c,r,s,l,!d);else e.moveTo(u+A,c+D);if(i>Ty&&R)if(C>Ty){j=Cy(f,C),U=My(E,O,T,M,i,-(G=Cy(g,C)),d),X=My(A,D,I,P,i,-j,d);e.lineTo(u+U.cx+U.x0,c+U.cy+U.y0),C<S&&j===G?e.arc(u+U.cx,c+U.cy,C,_y(U.y0,U.x0),_y(X.y0,X.x0),!d):(G>0&&e.arc(u+U.cx,c+U.cy,G,_y(U.y0,U.x0),_y(U.y1,U.x1),!d),e.arc(u,c,i,_y(U.cy+U.y1,U.cx+U.x1),_y(X.cy+X.y1,X.cx+X.x1),d),j>0&&e.arc(u+X.cx,c+X.cy,j,_y(X.y1,X.x1),_y(X.y0,X.x0),!d))}else e.lineTo(u+E,c+O),e.arc(u,c,i,l,s,d);else e.lineTo(u+E,c+O)}else e.moveTo(u,c);e.closePath()}}}var Py=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Ay=function(e){function t(t){return e.call(this,t)||this}return Du(t,e),t.prototype.getDefaultShape=function(){return new Py},t.prototype.buildPath=function(e,t){Iy(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ff);Ay.prototype.type="sector";var Dy=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Ey=function(e){function t(t){return e.call(this,t)||this}return Du(t,e),t.prototype.getDefaultShape=function(){return new Dy},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;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}(Ff);function Oy(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=function(e,t,n,r){var i,o,a,s,l=[],u=[],c=[],d=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,p=e.length;h<p;h++)eh(a,a,e[h]),th(s,s,e[h]);eh(a,a,r[0]),th(s,s,r[1])}for(h=0,p=e.length;h<p;h++){var f=e[h];if(n)i=e[h?h-1:p-1],o=e[(h+1)%p];else{if(0===h||h===p-1){l.push(Gd(e[h]));continue}i=e[h-1],o=e[h+1]}Xd(u,o,i),qd(u,u,t);var g=Zd(f,i),m=Zd(f,o),y=g+m;0!==y&&(g/=y,m/=y),qd(c,u,-g),qd(d,u,m);var v=Ud([],f,c),x=Ud([],f,d);r&&(th(v,v,a),eh(v,v,s),th(x,x,a),eh(x,x,s)),l.push(v),l.push(x)}return n&&l.push(l.shift()),l}(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);s=1;for(var d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}Ey.prototype.type="ring";var Ry=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Ly=function(e){function t(t){return e.call(this,t)||this}return Du(t,e),t.prototype.getDefaultShape=function(){return new Ry},t.prototype.buildPath=function(e,t){Oy(e,t,!0)},t}(Ff);Ly.prototype.type="polygon";var zy=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Ny=function(e){function t(t){return e.call(this,t)||this}return Du(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zy},t.prototype.buildPath=function(e,t){Oy(e,t,!1)},t}(Ff);Ny.prototype.type="polyline";var By={},Fy=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},$y=function(e){function t(t){return e.call(this,t)||this}return Du(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Fy},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=Uf(By,t,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=t.x1,r=t.y1,i=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),e.lineTo(i,o))},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}(Ff);$y.prototype.type="line";var Vy=[],Hy=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Wy(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?kh:Sh)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?kh:Sh)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Ah:Ph)(e.x1,e.cpx1,e.x2,t),(n?Ah:Ph)(e.y1,e.cpy1,e.y2,t)]}var jy=function(e){function t(t){return e.call(this,t)||this}return Du(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Hy},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,r),null==l||null==u?(c<1&&(Eh(n,a,i,c,Vy),a=Vy[1],i=Vy[2],Eh(r,s,o,c,Vy),s=Vy[1],o=Vy[2]),e.quadraticCurveTo(a,s,i,o)):(c<1&&(Mh(n,a,l,i,c,Vy),a=Vy[1],l=Vy[2],i=Vy[3],Mh(r,s,u,o,c,Vy),s=Vy[1],u=Vy[2],o=Vy[3]),e.bezierCurveTo(a,s,l,u,i,o)))},t.prototype.pointAt=function(e){return Wy(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Wy(this.shape,e,!0);return Yd(t,t)},t}(Ff);jy.prototype.type="bezier-curve";var Gy=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Uy=function(e){function t(t){return e.call(this,t)||this}return Du(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Gy},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,o,a,!s)},t}(Ff);Uy.prototype.type="arc";var Xy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return Du(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=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),Ff.prototype.getBoundingRect.call(this)},t}(Ff),qy=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Yy=function(e){function t(t,n,r,i,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return Du(t,e),t}(qy),Zy=function(e){function t(t,n,r,i,o){var a=e.call(this,i)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return Du(t,e),t}(qy),Ky=[0,0],Qy=[0,0],Jy=new pd,ev=new pd,tv=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new pd;for(n=0;n<2;n++)this._axes[n]=new pd;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,o=e.y,a=i+e.width,s=o+e.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),t)for(var l=0;l<4;l++)n[l].transform(t);pd.sub(r[0],n[1],n[0]),pd.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return Jy.set(1/0,1/0),ev.set(0,0),!this._intersectCheckOneSide(this,e,Jy,ev,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,Jy,ev,r,-1)&&(n=!1,r)||r||pd.copy(t,n?Jy:ev),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,Ky),this._getProjMinMaxOnAxis(s,t._corners,Qy),Ky[1]<Qy[0]||Ky[0]>Qy[1]){if(a=!1,i)return a;var u=Math.abs(Qy[0]-Ky[1]),c=Math.abs(Ky[0]-Qy[1]);Math.min(u,c)>r.len()&&(u<c?pd.scale(r,l,-u*o):pd.scale(r,l,c*o))}else if(n){u=Math.abs(Qy[0]-Ky[1]),c=Math.abs(Ky[0]-Qy[1]);Math.min(u,c)<n.len()&&(u<c?pd.scale(n,l,u*o):pd.scale(n,l,-c*o))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,o=t[0].dot(r)+i[e],a=o,s=o,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},e}(),nv=[],rv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return Du(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},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=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(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++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new wd(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(nv)),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}(Np),iv=Ug();function ov(e,t,n,r,i,o,a){var s,l=!1;dc(i)?(a=o,o=i,i=null):gc(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=function(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=wc(r.duration,200),u=wc(r.easing,"cubicOut"),c=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),u=t.getShallow(s?"animationEasingUpdate":"animationEasing"),c=t.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),dc(c)&&(c=c(n,i)),dc(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(e,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var d={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function av(e,t,n,r,i,o){ov("update",e,t,n,r,i,o)}function sv(e,t,n,r,i,o){ov("enter",e,t,n,r,i,o)}function lv(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if("leave"===e.animators[t].scope)return!0;return!1}function uv(e,t,n,r,i,o){lv(e)||ov("leave",e,t,n,r,i,o)}function cv(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),uv(e,{style:{opacity:0}},t,n,r)}function dv(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||cv(e,t,n,r)}):cv(e,t,n,r)}var hv=s({Arc:()=>Uy,BezierCurve:()=>jy,BoundingRect:()=>wd,Circle:()=>py,CompoundPath:()=>Xy,Ellipse:()=>gy,Group:()=>dy,Image:()=>jf,IncrementalDisplayable:()=>rv,Line:()=>$y,LinearGradient:()=>Yy,OrientedBoundingRect:()=>tv,Path:()=>Ff,Point:()=>pd,Polygon:()=>Ly,Polyline:()=>Ny,RadialGradient:()=>Zy,Rect:()=>Kf,Ring:()=>Ey,Sector:()=>Ay,Text:()=>eg,applyTransform:()=>Av,clipPointsByRect:()=>Rv,clipRectByRect:()=>Lv,createIcon:()=>zv,extendPath:()=>vv,extendShape:()=>mv,getShapeClass:()=>bv,getTransform:()=>Pv,groupTransition:()=>Ov,initProps:()=>sv,isElementRemoved:()=>lv,lineLineIntersect:()=>Bv,linePolygonIntersect:()=>Nv,makeImage:()=>wv,makePath:()=>_v,mergePath:()=>kv,registerShape:()=>xv,removeElement:()=>uv,removeElementWithFadeOut:()=>dv,resizePath:()=>Cv,setTooltipConfig:()=>$v,subPixelOptimize:()=>Iv,subPixelOptimizeLine:()=>Tv,subPixelOptimizeRect:()=>Mv,transformDirection:()=>Dv,traverseElements:()=>Hv,updateProps:()=>av}),pv=Math.max,fv=Math.min,gv={};function mv(e){return Ff.extend(e)}var yv=function(e,t){var n=cy(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return Du(t,e),t}(ly)};function vv(e,t){return yv(e,t)}function xv(e,t){gv[e]=t}function bv(e){if(gv.hasOwnProperty(e))return gv[e]}function _v(e,t,n,r){var i=function(e,t){return new ly(cy(e,t))}(e,t);return n&&("center"===r&&(n=Sv(n,i.getBoundingRect())),Cv(i,n)),i}function wv(e,t,n){var r=new jf({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(Sv(t,i))}}});return r}function Sv(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var kv=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new Ff(t);return a.createPathProxy(),a.buildPath=function(e){if(uy(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function Cv(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Tv(e,t){return Uf(e,e,{lineWidth:t}),e}function Mv(e){return Xf(e.shape,e.shape,e.style),e}var Iv=qf;function Pv(e,t){for(var n=ld([]);e&&e!==t;)ud(n,e.getLocalTransform(),n),e=e.parent;return n}function Av(e,t,n){return t&&!nc(t)&&(t=uh.getLocalTransform(t)),n&&(t=hd([],t)),Jd([],e,t)}function Dv(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=Av(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Ev(e){return!e.isGroup}function Ov(e,t,n){if(e&&t){var r,i=(r={},e.traverse(function(e){Ev(e)&&e.anid&&(r[e.anid]=e)}),r);t.traverse(function(e){if(Ev(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),av(e,r,n,em(e).dataIndex)}}})}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=Qu({},e.shape)),t}}function Rv(e,t){return ic(e,function(e){var n=e[0];n=pv(n,t.x),n=fv(n,t.x+t.width);var r=e[1];return r=pv(r,t.y),[n,r=fv(r,t.y+t.height)]})}function Lv(e,t){var n=pv(e.x,t.x),r=fv(e.x+e.width,t.x+t.width),i=pv(e.y,t.y),o=fv(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function zv(e,t,n){var r=Qu({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Ju(i,n),new jf(r)):_v(e.replace("path://",""),r,n,"center")}function Nv(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Bv(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Bv(e,t,n,r,i,o,a,s){var l,u=n-e,c=r-t,d=a-i,h=s-o,p=Fv(d,h,u,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=e-i,g=t-o,m=Fv(f,g,u,c)/p;if(m<0||m>1)return!1;var y=Fv(f,g,d,h)/p;return!(y<0||y>1)}function Fv(e,t,n,r){return e*r-n*t}function $v(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=hc(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&rc(sc(l),function(e){Nc(s,e)||(s[e]=l[e],s.$vars.push(e))});var u=em(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Ju({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Vv(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Hv(e,t){if(e)if(cc(e))for(var n=0;n<e.length;n++)Vv(e[n],t);else Vv(e,t)}xv("circle",py),xv("ellipse",gy),xv("sector",Ay),xv("ring",Ey),xv("polygon",Ly),xv("polyline",Ny),xv("rect",Kf),xv("line",$y),xv("bezierCurve",jy),xv("arc",Uy);var Wv={};function jv(e,t,n){var r,i=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=dc(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var l={normal:r},u=0;u<om.length;u++){var c=om[u],d=t[c];l[c]=wc(i?i.getFormattedLabel(o,c,null,a,d&&d.get("formatter")):null,r)}return l}function Gv(e,t,n,r){n=n||Wv;for(var i=e instanceof eg,o=!1,a=0;a<am.length;a++){if((h=t[am[a]])&&h.getShallow("show")){o=!0;break}}var s=i?e:e.getTextContent();if(o){i||(s||(s=new eg,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=jv(n,t),u=t.normal,c=!!u.getShallow("show"),d=Xv(u,r&&r.normal,n,!1,!i);d.text=l.normal,i||e.setTextConfig(qv(u,n,!1));for(a=0;a<om.length;a++){var h,p=om[a];if(h=t[p]){var f=s.ensureState(p),g=!!wc(h.getShallow("show"),c);if(g!==c&&(f.ignore=!g),f.style=Xv(h,r&&r[p],n,!0,!i),f.style.text=l[p],!i)e.ensureState(p).textConfig=qv(h,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(d.x=s.style.x),null!=s.style.y&&(d.y=s.style.y),s.ignore=!c,s.useStyle(d),s.dirty(),n.enableTextSetter&&(nx(s).setLabelText=function(e){var r=jv(n,t,e);!function(e,t){for(var n=0;n<om.length;n++){var r=om[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}(s,r)})}else s&&(s.ignore=!0);e.dirty()}function Uv(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<om.length;r++){var i=om[r];n[i]=e.getModel([i,t])}return n}function Xv(e,t,n,r,i){var o={};return function(e,t,n,r,i){n=n||Wv;var o,a=t.ecModel,s=a&&a.option.textStyle,l=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||Wv).rich;if(n){t=t||{};for(var r=sc(n),i=0;i<r.length;i++){t[r[i]]=1}}e=e.parentModel}return t}(t);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Qv(o[u]={},c,s,n,r,i,!1,!0)}o&&(e.rich=o);var d=t.get("overflow");d&&(e.overflow=d);var h=t.get("minMargin");null!=h&&(e.margin=h);Qv(e,t,s,n,r,i,!0,!1)}(o,e,n,r,i),t&&Qu(o,t),o}function qv(e,t,n){t=t||{};var r,i={},o=e.getShallow("rotate"),a=wc(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",i}var Yv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Zv=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Kv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Qv(e,t,n,r,i,o,a,s){n=!i&&n||Wv;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=wc(t.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var h=wc(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(e.lineWidth=h);var p=wc(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var f=wc(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),i||null!=d||s||(d=r&&r.defaultOpacity),null!=d&&(e.opacity=d),i||o||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var g=0;g<Yv.length;g++){var m=Yv[g];null!=(v=wc(t.getShallow(m),n[m]))&&(e[m]=v)}for(g=0;g<Zv.length;g++){m=Zv[g];null!=(v=t.getShallow(m))&&(e[m]=v)}if(null==e.verticalAlign){var y=t.getShallow("baseline");null!=y&&(e.verticalAlign=y)}if(!a||!r.disableBox){for(g=0;g<Kv.length;g++){var v;m=Kv[g];null!=(v=t.getShallow(m))&&(e[m]=v)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||(e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||(e.borderColor=l)}}function Jv(e,t){var n=t&&t.getModel("textStyle");return Mc([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 ex,tx,nx=Ug(),rx=["textStyle","color"],ix=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ox=new eg,ax=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(rx):null)},e.prototype.getFont=function(){return Jv({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<ix.length;n++)t[ix[n]]=this.getShallow(ix[n]);return ox.useStyle(t),ox.update(),ox.getBoundingRect()},e}(),sx=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],lx=Kc(sx),ux=function(){function e(){}return e.prototype.getLineStyle=function(e){return lx(this,e)},e}(),cx=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],dx=Kc(cx),hx=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return dx(this,e,t)},e}(),px=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){Ku(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(Zu(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!Vc.node&&this.option){if(null!=this.option.animation)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]||null!=(n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();function fx(e){return null==e?0:e.length||1}function gx(e){return e}Gc(px),ex=px,tx=["__\0is_clz",Xc++].join("_"),ex.prototype[tx]=!0,ex.isInstance=function(e){return!(!e||!e[tx])},tc(px,ux),tc(px,hx),tc(px,Jc),tc(px,ax);var mx=function(){function e(e,t,n,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||gx,this._newKeyGetter=r||gx,this.context=i,this._diffModeMultiple="multiple"===o}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=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=r[o],s=n[a],l=fx(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=fx(l),d=fx(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),r[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],o=fx(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[r](e[o],o);if(i||(n[o]=a),t){var s=t[a],l=fx(s);0===l?(t[a]=o,i&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}(),yx=Rc(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),vx="original",xx="arrayRows",bx="objectRows",_x="keyedColumns",Sx="typedArray",kx="column",Cx=1,Tx=2,Mx=3,Ix=Ug();function Px(e,t,n){var r={},i=Ax(t);if(!i||!e)return r;var o,a,s=[],l=[],u=t.ecModel,c=Ix(u).datasetMap,d=i.uid+"_"+n.seriesLayoutBy;rc(e=e.slice(),function(t,n){var i=gc(t)?t:e[n]={name:t};"ordinal"===i.type&&null==o&&(o=n,a=f(i)),r[i.name]=[]});var h=c.get(d)||c.set(d,{categoryWayDim:a,valueWayDim:0});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function f(e){var t=e.dimsDef;return t?t.length:1}return rc(e,function(e,t){var n=e.name,i=f(e);if(null==o){var a=h.valueWayDim;p(r[n],a,i),p(l,a,i),h.valueWayDim+=i}else if(o===t)p(r[n],0,i),p(s,0,i);else{a=h.categoryWayDim;p(r[n],a,i),p(l,a,i),h.categoryWayDim+=i}}),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Ax(e){if(!e.get("data",!0))return Qg(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Zg).models[0]}function Dx(e,t){return function(e,t,n,r,i,o){var a,s,l,u=5;if(yc(e))return Mx;if(r){var c=r[o];gc(c)?(s=c.name,l=c.type):hc(c)&&(s=c)}if(null!=l)return"ordinal"===l?Cx:Mx;if("arrayRows"===t){var d=e;if("row"===n){for(var h=d[o],p=0;p<(h||[]).length&&p<u;p++)if(null!=(a=x(h[i+p])))return a}else for(p=0;p<d.length&&p<u;p++){var f=d[i+p];if(f&&null!=(a=x(f[o])))return a}}else if("objectRows"===t){var g=e;if(!s)return Mx;for(p=0;p<g.length&&p<u;p++){if((y=g[p])&&null!=(a=x(y[s])))return a}}else if("keyedColumns"===t){if(!s)return Mx;if(!(h=e[s])||yc(h))return Mx;for(p=0;p<h.length&&p<u;p++)if(null!=(a=x(h[p])))return a}else if("original"===t){var m=e;for(p=0;p<m.length&&p<u;p++){var y,v=Ng(y=m[p]);if(!cc(v))return Mx;if(null!=(a=x(v[o])))return a}}function x(e){var t=hc(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?Tx:Mx:t&&"-"!==e?Cx:void 0}return Mx}(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}var Ex,Ox,Rx,Lx,zx,Nx=function(e){this.data=e.data||("keyedColumns"===e.sourceFormat?{}:[]),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];null==r.type&&Dx(this,n)===Cx&&(r.type="ordinal")}};function Bx(e){return e instanceof Nx}function Fx(e,t,n){n=n||Vx(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:Hx(i),startIndex:a,dimensionsDetectedCount:o};if("arrayRows"===t){var s=e;"auto"===r||null==r?Wx(function(e){null!=e&&"-"!==e&&(hc(e)?a??=1:a=0)},n,s,10):a=fc(r)?r:r?1:0,i||1!==a||(i=[],Wx(function(e,t){i[t]=null!=e?e+"":""},n,s,1/0)),o=i?i.length:"row"===n?s.length:s[0]?s[0].length:null}else if("objectRows"===t)i||(i=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t)return sc(t)}(e));else if("keyedColumns"===t)i||(i=[],rc(e,function(e,t){i.push(t)}));else if("original"===t){var l=Ng(e[0]);o=cc(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Hx(i),dimensionsDetectedCount:o}}(e,n,r,t.sourceHeader,t.dimensions);return new Nx({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Zu(t)})}function $x(e){return new Nx({data:e,sourceFormat:yc(e)?Sx:vx})}function Vx(e){var t="unknown";if(yc(e))t=Sx;else if(cc(e)){0===e.length&&(t=xx);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(cc(i)||yc(i)){t=xx;break}if(gc(i)){t=bx;break}}}}else if(gc(e))for(var o in e)if(Nc(e,o)&&nc(e[o])){t=_x;break}return t}function Hx(e){if(e){var t=Rc();return ic(e,function(e,n){var r={name:(e=gc(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r})}}function Wx(e,t,n,r){if("row"===t)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)e(o[i],i)}}function jx(e){var t=e.sourceFormat;return"objectRows"===t||"keyedColumns"===t}var Gx=function(){function e(e,t){var n=Bx(e)?e:$x(e);this._source=n;var r=this._data=n.data;"typedArray"===n.sourceFormat&&(this._offset=0,this._dimSize=t,this._data=r),zx(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;zx=function(e,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;Qu(e,Lx[tb(a,s)]),"typedArray"===a?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=lc(qx(a,s),null,i,l,u),e.count=lc(Kx(a,s),null,i,l,u))};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,o=0;o<r;o++)t[o]=n[i+o];return t},n=function(e,t,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,d=n[a],h=0;h<c;h++){var p=i[h*o+a];d[e+h]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[xx+"_"+kx]={pure:!0,appendData:i},e[xx+"_row"]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[bx]={pure:!0,appendData:i},e[_x]={pure:!0,appendData:function(e){var t=this._data;rc(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[vx]={appendData:i},e[Sx]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Lx=e}(),e}(),Ux=function(e,t,n,r){return e[r]},Xx=((Ex={})[xx+"_"+kx]=function(e,t,n,r){return e[r+t]},Ex[xx+"_row"]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Ex[bx]=Ux,Ex[_x]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=e[n[a].name];o[a]=s?s[r]:null}return o},Ex[vx]=Ux,Ex);function qx(e,t){return Xx[tb(e,t)]}var Yx=function(e,t,n){return e.length},Zx=((Ox={})[xx+"_"+kx]=function(e,t,n){return Math.max(0,e.length-t)},Ox[xx+"_row"]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Ox[bx]=Yx,Ox[_x]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},Ox[vx]=Yx,Ox);function Kx(e,t){return Zx[tb(e,t)]}var Qx=function(e,t,n){return e[t]},Jx=((Rx={})[xx]=Qx,Rx[bx]=function(e,t,n){return e[n]},Rx[_x]=Qx,Rx[vx]=function(e,t,n){var r=Ng(e);return r instanceof Array?r[t]:r},Rx[Sx]=Qx,Rx);function eb(e){return Jx[e]}function tb(e,t){return"arrayRows"===e?e+"_"+t:e}function nb(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return eb(o)(r,a,s)}var l=r;return"original"===o&&(l=Ng(r)),l}}}var rb=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._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function ib(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}var ob=function(e){this.otherDims={},null!=e&&Qu(this,e)};function ab(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||fc(e)||null==e||"-"===e||(e=+Sg(e)),null==e||""===e?NaN:Number(e))}Rc({number:function(e){return parseFloat(e)},time:function(e){return+Sg(e)},trim:function(e){return hc(e)?Mc(e):e}});var sb,lb={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}},ub=(function(){function e(e,t){fc(t)||Ag(""),this._opFn=lb[e],this._rvalFloat=Tg(t)}e.prototype.evaluate=function(e){return fc(e)?this._opFn(e,this._rvalFloat):this._opFn(Tg(e),this._rvalFloat)}}(),function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=fc(e)?e:Tg(e),r=fc(t)?t:Tg(t),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=hc(e),s=hc(t);a&&(n=s?e:0),s&&(r=a?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}()),cb=(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Tg(t)}e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=Tg(e)===this._rvalFloat)}return this._isEQ?t:!t}}(),"undefined"),db=typeof Uint32Array===cb?Array:Uint32Array,hb=typeof Uint16Array===cb?Array:Uint16Array,pb=typeof Int32Array===cb?Array:Int32Array,fb=typeof Float64Array===cb?Array:Float64Array,gb={float:fb,int:pb,ordinal:Array,number:Array,time:fb};function mb(e){return e>65535?db:hb}function yb(){return[1/0,-1/0]}function vb(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function xb(e,t,n,r,i){var o=gb[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var bb=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Rc()}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=sb[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],jx(r),this._dimensions=ic(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(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new gb[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[e]=[1/0,-1/0]);for(var s=i[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=t,r.ordinalOffset=a,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,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<i;l++){xb(n,l,(p=r[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var d=c-a,h=0;h<i;h++){var p=r[h],f=sb.arrayRows.call(this,e[d]||u,p.property,d,h);n[h][c]=f;var g=o[h];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=ic(o,function(e){return e.property}),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=yb()),xb(i,u,c.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],h=e;h<t;h++){d=r.getItem(h,d);for(var p=0;p<a;p++){var f=i[p],g=this._dimValueGetter(d,l[p],h,p);f[h]=g;var m=s[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!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(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var o=r.length;i<o;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=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/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(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(t[o]<e)r=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-r[this.getRawIndex(l)],d=Math.abs(c);d<=n&&((d<o||d===o&&c>=0&&a<0)&&(o=d,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},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{e=new(n=mb(this._rawCount))(this.count());for(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(mb(n._rawCount))(r),o=[],a=e.length,s=0,l=e[0],u=n._chunks,c=0;c<r;c++){var d=void 0,h=n.getRawIndex(c);if(0===a)d=t(c);else if(1===a){d=t(u[l][h],c)}else{for(var p=0;p<a;p++)o[p]=u[e[p]][h];o[p]=c,d=t.apply(null,o)}d&&(i[s++]=h)}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=sc(e),i=r.length;if(!i)return this;var o=t.count(),a=new(mb(t._rawCount))(o),s=0,l=r[0],u=e[l][0],c=e[l][1],d=t._chunks,h=!1;if(!t._indices){var p=0;if(1===i){for(var f=d[r[0]],g=0;g<n;g++){((x=f[g])>=u&&x<=c||isNaN(x))&&(a[s++]=p),p++}h=!0}else if(2===i){f=d[r[0]];var m=d[r[1]],y=e[r[1]][0],v=e[r[1]][1];for(g=0;g<n;g++){var x=f[g],b=m[g];(x>=u&&x<=c||isNaN(x))&&(b>=y&&b<=v||isNaN(b))&&(a[s++]=p),p++}h=!0}}if(!h)if(1===i)for(g=0;g<o;g++){var _=t.getRawIndex(g);((x=d[r[0]][_])>=u&&x<=c||isNaN(x))&&(a[s++]=_)}else for(g=0;g<o;g++){for(var w=!0,S=(_=t.getRawIndex(g),0);S<i;S++){var k=r[S];((x=d[k][_])<e[k][0]||x>e[k][1])&&(w=!1)}w&&(a[s++]=t.getRawIndex(g))}return s<o&&(t._indices=a),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=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=yb();for(var c=0;c<a;c++){for(var d=e.getRawIndex(c),h=0;h<o;h++)s[h]=r[t[h]][d];s[o]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(u=0;u<p.length;u++){var f=t[u],g=p[u],m=l[f],y=r[f];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=this.clone([e],!0),a=o._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),d=new(mb(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));d[l++]=c;for(var h=1;h<s-1;h+=u){for(var p=Math.min(h+u,s-1),f=Math.min(h+2*u,s),g=(f+p)/2,m=0,y=p;y<f;y++){var v=a[C=this.getRawIndex(y)];isNaN(v)||(m+=v)}m/=f-p;var x=h,b=Math.min(h+u,s),_=h-1,w=a[c];n=-1,i=x;var S=-1,k=0;for(y=x;y<b;y++){var C;v=a[C=this.getRawIndex(y)];isNaN(v)?(k++,S<0&&(S=C)):(r=Math.abs((_-g)*(v-w)-(_-y)*(m-w)))>n&&(n=r,i=C)}k>0&&k<b-x&&(d[l++]=Math.min(S,i),i=Math.max(S,i)),d[l++]=i,c=i}return d[l++]=this.getRawIndex(s-1),o._count=l,o._indices=d,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),o=i._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=i._rawExtent[e]=[1/0,-1/0],d=new(mb(this._rawCount))(Math.ceil(u/s)),h=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var f=0;f<s;f++)a[f]=l[this.getRawIndex(p+f)];var g=n(a),m=this.getRawIndex(Math.min(p+r(a,g)||0,u-1));l[m]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),d[h++]=m}return i._count=h,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,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][a],i);break;case 2:t(r[e[0]][a],r[e[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[e[s]][a];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=t[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[e]=r,r},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,o=t&&oc(t,function(e,t){return e[t]=!0,e},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?vb(i[a]):i[a];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=Zu(this._extent),e._rawExtent=Zu(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 ab(e[r],this._dimensions[r])}sb={arrayRows:e,objectRows:function(e,t,n,r){return ab(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return ab(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),_b=Ug(),wb={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Sb=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||(this._dimNameMap=Tb(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return wc(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=jx(this.source),n=!Mb(e),r="",i=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var d=this.getSourceDimension(o);d&&(s=t?d.name:null,l=d.type)}i.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=wb[l]||"f",u&&(r+=u.uid),r+="$"}var h=this.source;return{dimensions:i,hash:[h.seriesLayoutBy,h.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 o=this.getSourceDimension(t);o&&(r=o.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 kb(e){return e instanceof Sb}function Cb(e){for(var t=Rc(),n=0;n<(e||[]).length;n++){var r=e[n],i=gc(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function Tb(e){var t=_b(e);return t.dimNameMap||(t.dimNameMap=Cb(e.dimensionsDefine))}function Mb(e){return e>30}var Ib,Pb,Ab,Db,Eb,Ob,Rb,Lb=gc,zb=ic,Nb="undefined"==typeof Int32Array?Array:Int32Array,Bb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Fb=["_approximateExtent"],$b=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;kb(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=hc(c)?new ob({name:c}):c instanceof ob?c:new ob(c),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,null!=l[h]&&(s=!0),d.createInvertedIndices&&(a[h]=[]),0===p.itemName&&(this._nameDimIdx=u),0===p.itemId&&(this._idDimIdx=u),r&&(d.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=Rc();rc(o,function(e){f.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(fc(e)||null!=e&&!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(null==t)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,i=this;if(e instanceof bb&&(r=e),!r){var o=this.dimensions,a=Bx(e)||nc(e)?new Gx(e,o.length):e;r=new bb;var s=zb(o,function(e){return{type:i._dimInfos[e].type,property:e}});r.initData(a,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(e,t){var n={},r=n.encode={},i=Rc(),o=[],a=[],s={};rc(e.dimensions,function(t){var n,l=e.getDimensionInfo(t),u=l.coordDim;if(u){var c=l.coordDimIndex;ib(r,u)[c]=t,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=t),ib(s,u)[c]=e.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(t)}yx.each(function(e,t){var n=ib(r,t),i=l.otherDims[t];null!=i&&!1!==i&&(n[i]=l.name)})});var l=[],u={};i.each(function(e,t){var n=r[t];u[t]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=ic(l,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var d=r.tooltip;return d&&d.length?a=d.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new rb(s,t),n}(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.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=t[s],o&&Rb(this,a)}},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 null==this._idDimIdx&&"typedArray"!==e.getSource().sourceFormat&&!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("original"===n.getSource().sourceFormat&&!n.pure)for(var o=[],a=e;a<t;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&Bg(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=Hg(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=Hg(u,null))}}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)Rb(this,a);Ib(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},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){Lb(e)?Qu(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=Ab(this,this._nameDimIdx,t)),null==n&&(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 Pb(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))},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 cc(e)?r.getValues(zb(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])[t];return null==n||isNaN(n)?-1:n},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){dc(e)&&(n=t,t=e,e=[]);var r=n||this,i=zb(Db(e),this._getStoreDimIndex,this);this._store.each(i,r?lc(t,r):t)},e.prototype.filterSelf=function(e,t,n){dc(e)&&(n=t,t=e,e=[]);var r=n||this,i=zb(Db(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?lc(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=sc(e),i=[];return rc(r,function(r){var o=t._getStoreDimIndex(r);n[o]=e[r],i.push(o)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){dc(e)&&(n=t,t=e,e=[]),n=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,o=zb(Db(e),this._getStoreDimIndex,this),a=Ob(this);return a._store=this._store.map(o,i?lc(t,i):t),a},e.prototype.modify=function(e,t,n,r){var i=n||r||this,o=zb(Db(e),this._getStoreDimIndex,this);this._store.modify(o,i?lc(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=Ob(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.lttbDownSample=function(e,t){var n=Ob(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 px(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new mx(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return Pb(e,t)},function(e){return Pb(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||{},Lb(e)?Qu(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(cc(i=this.getVisual(t))?i=i.slice():Lb(i)&&(i=Qu({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Lb(t)?Qu(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Lb(e)?Qu(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?Qu(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){!function(e,t,n,r){if(r){var i=em(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart","group"===r.type&&r.traverse(function(r){var i=em(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType="chart"})}}(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){rc(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:zb(this.dimensions,this._getDimInfo,this),this.hostModel)),Eb(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];dc(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(kc(arguments)))})},e.internalField=(Ib=function(e){var t=e._invertedIndicesMap;rc(t,function(n,r){var i=e._dimInfos[r],o=i.ordinalMeta,a=e._store;if(o){n=t[r]=new Nb(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}})},Ab=function(e,t,n){return Hg(e._getCategory(t,n),null)},Pb=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=Ab(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},Db=function(e){return cc(e)||(e=null!=e?[e]:[]),e},Ob=function(t){var n=new e(t._schema?t._schema:zb(t.dimensions,t._getDimInfo,t),t.hostModel);return Eb(n,t),n},Eb=function(e,t){rc(Bb.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,rc(Fb,function(n){e[n]=Zu(t[n])}),e._calculationInfo=Qu({},t._calculationInfo)},void(Rb=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=r[t];if(null==a&&null!=i&&(n[t]=a=Ab(e,i,t)),null==s&&null!=o&&(r[t]=s=Ab(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[t]=s}})),e}();function Vb(e,t){Bx(e)||(e=$x(e));var n=(t=t||{}).coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Rc(),o=[],a=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return rc(t,function(e){var t;gc(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Mb(a),l=r===e.dimensionsDefine,u=l?Tb(e):Cb(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var d=Rc(c),h=new pb(a),p=0;p<h.length;p++)h[p]=-1;function f(e){var t=h[e];if(t<0){var n=r[e],i=gc(n)?n:{name:n},a=new ob,s=i.name;return null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName),h[e]=o.length,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(p=0;p<a;p++)f(p);d.each(function(e,t){var n=Rg(e).slice();if(1===n.length&&!hc(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);rc(n,function(e,n){var i=hc(e)?u.get(e):e;null!=i&&i<a&&(r[n]=i,m(f(i),t,n))})}});var g=0;function m(e,t,n){null!=yx.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0))}rc(n,function(e){var t,n,r,i;if(hc(e))t=e,i={};else{t=(i=e).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=Qu({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(!1!==s){if(!(s=Rg(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}rc(s,function(e,o){var a=f(e);if(l&&null!=i.type&&(a.type=i.type),m(Ju(a,i),t,o),null==a.name&&n){var s=n[o];!gc(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Ju(a.otherDims,r)})}});var y=t.generateCoord,v=t.generateCoordCount,x=null!=v;v=y?v||1:0;var b=y||"value";function _(e){null==e.name&&(e.name=e.coordDim)}if(s)rc(o,function(e){_(e)}),o.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=Hb(b,i,x),S.coordDimIndex=0,(!y||v<=0)&&(S.isExtraCoord=!0),v--),_(S),null!=S.type||Dx(e,w)!==Cx&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(e){for(var t=Rc(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}(o),new Sb({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Hb(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 Wb={},jb=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];rc(Wb,function(r,i){var o=r.create(e,t);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){rc(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){Wb[e]=t},e.get=function(e){return Wb[e]},e}(),Gb=function(e){this.coordSysDims=[],this.axisMap=Rc(),this.categoryAxisMap=Rc(),this.coordSysName=e};var Ub={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Zg).models[0],o=e.getReferringComponents("yAxis",Zg).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Xb(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),Xb(o)&&(r.set("y",o),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Zg).models[0];t.coordSysDims=["single"],n.set("single",i),Xb(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Zg).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Xb(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),Xb(a)&&(r.set("angle",a),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();rc(o.parallelAxisIndex,function(e,o){var s=i.getComponent("parallelAxis",e),l=a[o];n.set(l,s),Xb(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))})}};function Xb(e){return"category"===e.get("type")}function qb(e,t,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!kb(e.schema)}(t)?(i=t.schema,r=i.dimensions,o=t.store):r=t;var l,u,c,d,h=!(!e||!e.get("stack"));if(rc(r,function(e,t){hc(e)&&(r[t]=e={name:e}),h&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))}),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;rc(r,function(e){e.coordDim===p&&g++});var m={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:d,coordDim:d,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(m.storeDimIndex=o.ensureCalculationDimension(d,f),y.storeDimIndex=o.ensureCalculationDimension(c,f)),i.appendCalculationDimension(m),i.appendCalculationDimension(y)):(r.push(m),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:c}}function Yb(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Zb(e,t,n){n=n||{};var r,i=t.getSourceManager(),o=!1;e?(o=!0,r=$x(e)):o=(r=i.getSource()).sourceFormat===vx;var a=function(e){var t=e.get("coordinateSystem"),n=new Gb(t),r=Ub[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,r=e.get("coordinateSystem"),i=jb.get(r);return t&&t.coordSysDims&&(n=ic(t.coordSysDims,function(e){var n,r={name:e},i=t.axisMap.get(e);return i&&(r.type="category"===(n=i.get("type"))?"ordinal":"time"===n?"time":"float"),r})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(t,a),l=n.useEncodeDefaulter,u=dc(l)?l:l?uc(Px,s,t):null,c=Vb(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),d=function(e,t,n){var r,i;return n&&rc(e,function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)}),i||null==r||(e[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),h=o?null:i.getSharedDataStore(c),p=qb(t,{schema:c,store:h}),f=new $b(c,t);f.setCalculationInfo(p);var g=null!=d&&function(e){if("original"===e.sourceFormat){return!cc(Ng(function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[])))}}(r)?function(e,t,n,r){return r===d?n:this.defaultDimValueGetter(e,t,n,r)}:null;return f.hasItemOption=!1,f.initData(o?r:h,null,g),f}var Kb=Math.round(10*Math.random());function Qb(e){return[e||"",Kb++].join("_")}function Jb(e,t){return Ku(Ku({},e,!0),t,!0)}var e_=Math.log(2);function t_(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/e_);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var d=0,h=0,p=0;h<s;h++){var f=1<<h;f&i||(d+=(p%2?-1:1)*e[n][h]*t_(e,t-1,c,u,i|f,o),p++)}return o[a]=d,d}function n_(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=t_(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]??(o[s]=0),o[s]+=((a+s)%2?-1:1)*t_(n,7,0===a?1:0,1<<a,1<<s,r)/i*t[a];return function(e,t,n){var r=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/r,e[1]=(t*o[3]+n*o[4]+o[5])/r}}}var r_="___zrEVENTSAVED",i_=[];function o_(e,t,n,r,i){if(t.getBoundingClientRect&&Vc.domSupported&&!a_(t)){var o=t[r_]||(t[r_]={}),a=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,h=c.left,p=c.top;a.push(h,p),l=l&&o&&h===o[d]&&p===o[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?n_(s,a):n_(a,s))}(function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,o),o,i);if(a)return a(e,n,r),!0}return!1}function a_(e){return"CANVAS"===e.nodeName.toUpperCase()}var s_=/([&<>"'])/g,l_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function u_(e){return null==e?"":(e+"").replace(s_,function(e,t){return l_[t]})}var c_="ZH",d_="EN",h_=d_,p_={},f_={},g_=Vc.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||h_).toUpperCase().indexOf(c_)>-1?c_:h_;function m_(e,t){e=e.toUpperCase(),f_[e]=new px(t),p_[e]=t}m_(d_,{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:". "}}}}),m_(c_,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var y_=1e3,v_=6e4,x_=36e5,b_=864e5,__=31536e6,w_={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},S_="{yyyy}-{MM}-{dd}",k_={year:"{yyyy}",month:"{yyyy}-{MM}",day:S_,hour:S_+" "+w_.hour,minute:S_+" "+w_.minute,second:S_+" "+w_.second,millisecond:w_.none},C_=["year","month","day","hour","minute","second","millisecond"],T_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function M_(e,t){return"0000".substr(0,t-(e+="").length)+e}function I_(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 P_(e){return e===I_(e)}function A_(e,t,n,r){var i=Sg(e),o=i[O_(n)](),a=i[R_(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[L_(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[z_(n)](),d=(c-1)%12+1,h=i[N_(n)](),p=i[B_(n)](),f=i[F_(n)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=(r instanceof px?r:function(e){return f_[e]}(r||g_)||f_[h_]).getModel("time"),v=y.get("month"),x=y.get("monthAbbr"),b=y.get("dayOfWeek"),_=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,M_(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,M_(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,M_(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,M_(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,M_(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,M_(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,M_(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,M_(f,3)).replace(/{S}/g,f+"")}function D_(e,t){var n=Sg(e),r=n[R_(t)]()+1,i=n[L_(t)](),o=n[z_(t)](),a=n[N_(t)](),s=n[B_(t)](),l=0===n[F_(t)](),u=l&&0===s,c=u&&0===a,d=c&&0===o,h=d&&1===i;return h&&1===r?"year":h?"month":d?"day":c?"hour":u?"minute":l?"second":"millisecond"}function E_(e,t,n){var r=fc(e)?Sg(e):e;switch(t=t||D_(e,n)){case"year":return r[O_(n)]();case"half-year":return r[R_(n)]()>=6?1:0;case"quarter":return Math.floor((r[R_(n)]()+1)/4);case"month":return r[R_(n)]();case"day":return r[L_(n)]();case"half-day":return r[z_(n)]()/24;case"hour":return r[z_(n)]();case"minute":return r[N_(n)]();case"second":return r[B_(n)]();case"millisecond":return r[F_(n)]()}}function O_(e){return e?"getUTCFullYear":"getFullYear"}function R_(e){return e?"getUTCMonth":"getMonth"}function L_(e){return e?"getUTCDate":"getDate"}function z_(e){return e?"getUTCHours":"getHours"}function N_(e){return e?"getUTCMinutes":"getMinutes"}function B_(e){return e?"getUTCSeconds":"getSeconds"}function F_(e){return e?"getUTCMilliseconds":"getMilliseconds"}function $_(e){return e?"setUTCFullYear":"setFullYear"}function V_(e){return e?"setUTCMonth":"setMonth"}function H_(e){return e?"setUTCDate":"setDate"}function W_(e){return e?"setUTCHours":"setHours"}function j_(e){return e?"setUTCMinutes":"setMinutes"}function G_(e){return e?"setUTCSeconds":"setSeconds"}function U_(e){return e?"setUTCMilliseconds":"setMilliseconds"}function X_(e){if(isNaN(Tg(e)))return hc(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function q_(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 Y_=Cc;function Z_(e,t,n){function r(e){return e&&Mc(e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,a=e instanceof Date;if(o||a){var s=o?Sg(e):e;if(!isNaN(+s))return A_(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return pc(e)?r(e):fc(e)&&i(e)?e+"":"-";var l=Tg(e);return i(l)?X_(l):pc(e)?r(e):"boolean"==typeof e?e+"":"-"}var K_=["a","b","c","d","e","f","g"],Q_=function(e,t){return"{"+e+(null==t?"":t)+"}"};function J_(e,t,n){cc(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=K_[o];e=e.replace(Q_(a),Q_(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(Q_(K_[l],s),n?u_(u):u)}return e}function ew(e,t){return t=t||"transparent",hc(e)?e:gc(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function tw(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var nw=rc,rw=["left","right","top","bottom","width","height"],iw=[["width","left","right"],["height","top","bottom"]];function ow(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild(function(l,u){var c,d,h=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var g=h.width+(f?-f.x+h.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var m=h.height+(f?-f.y+h.y:0);(d=a+m)>i||l.newline?(o+=s+n,a=0,d=m,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=d+n)})}var aw=ow;uc(ow,"vertical"),uc(ow,"horizontal");function sw(e,t,n){n=Y_(n||0);var r=t.width,i=t.height,o=fg(e.left,r),a=fg(e.top,i),s=fg(e.right,r),l=fg(e.bottom,i),u=fg(e.width,r),c=fg(e.height,i),d=n[2]+n[0],h=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=r-s-h-o),isNaN(c)&&(c=i-l-d-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-h),isNaN(a)&&(a=i-l-c-d),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-h}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-d}o=o||0,a=a||0,isNaN(u)&&(u=r-h-o-(s||0)),isNaN(c)&&(c=i-d-a-(l||0));var f=new wd(o+n[3],a+n[0],u,c);return f.margin=n,f}function lw(e){var t=e.layoutMode||e.constructor.layoutMode;return gc(t)?t:t?{type:t}:null}function uw(e,t,n){var r=n&&n.ignoreSize;!cc(r)&&(r=[r,r]);var i=a(iw[0],0),o=a(iw[1],1);function a(n,i){var o={},a=0,u={},c=0;if(nw(n,function(t){u[t]=e[t]}),nw(n,function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++}),r[i])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var d=0;d<n.length;d++){var h=n[d];if(!s(o,h)&&s(e,h)){o[h]=e[h];break}}return o}return u}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){nw(e,function(e){t[e]=n[e]})}u(iw[0],e,i),u(iw[1],e,o)}function cw(e){return function(e,t){return t&&e&&nw(rw,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}({},e)}var dw=Ug(),hw=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Qb("ec_cpt_model"),i}return Du(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=lw(this),r=n?cw(e):{};Ku(e,t.getTheme().get(this.mainType)),Ku(e,this.getDefaultOption()),n&&uw(e,r,n)},t.prototype.mergeOption=function(e,t){Ku(this.option,e,!0);var n=lw(this);n&&uw(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[Wc])}(e))return e.defaultOption;var t=dw(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=Ku(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return Qg(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},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}(px);Uc(hw,px),Zc(hw),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=jc(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=jc(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}(hw),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,i,o){if(e.length){var a=function(e){var r={},i=[];return rc(e,function(o){var a=n(r,o),s=function(e,t){var n=[];return rc(e,function(e){ec(t,e)>=0&&n.push(e)}),n}(a.originalDeps=t(o),e);a.entryCount=s.length,0===a.entryCount&&i.push(o),rc(s,function(e){ec(a.predecessor,e)<0&&a.predecessor.push(e);var t=n(r,e);ec(t.successor,e)<0&&t.successor.push(o)})}),{graph:r,noEntryList:i}}(r),s=a.graph,l=a.noEntryList,u={};for(rc(e,function(e){u[e]=!0});l.length;){var c=l.pop(),d=s[c],h=!!u[c];h&&(i.call(o,c,d.originalDeps.slice()),delete u[c]),rc(d.successor,h?f:p)}rc(u,function(){throw new Error("")})}function p(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function f(e){u[e]=!0,p(e)}}}(hw,function(e){var t=[];rc(hw.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=ic(t,function(e){return jc(e).main}),"dataset"!==e&&ec(t,"dataset")<=0&&t.unshift("dataset");return t});var pw=Ug(),fw=(Ug(),function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Rg(this.get("color",!0)),i=this.get("colorLayer",!0);return function(e,t,n,r,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,a):n;if(c=c||n,!c||!c.length)return;var d=c[l];i&&(u[i]=d);return s.paletteIdx=(l+1)%c.length,d}(this,pw,r,i,e,t,n)},e.prototype.clearColorPalette=function(){!function(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}(this,pw)},e}());var gw=/\{@(.+?)\}/g,mw=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:i,data:a,dataType:t,value:r,color:l,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);return o&&(s.value=o.interpolatedValue),null!=r&&cc(s.value)&&(s.value=s.value[r]),i||(i=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),dc(i)?(s.status=t,s.dimensionIndex=r,i(s)):hc(i)?J_(i,s).replace(gw,function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=nb(a,e,i);if(o&&cc(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return nb(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function yw(e){var t,n;return gc(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function vw(e){return new xw(e)}var xw=function(){function e(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,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(o||h<p)){var f=this._progress;if(cc(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],h,p,l,u);else this._doProgress(f,h,p,l,u)}this._dueIndex=p,this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:p}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;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){bw.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:bw.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),cc(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,this._disposed=!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}(),bw=function(){var e,t,n,r,i,o={reset:function(l,u,c,d){t=l,e=u,n=c,r=d,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%i*n+Math.ceil(t/i),a=t>=e?null:o<r?o:t;return t++,a}}(),_w=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new 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 ab(e,t)},e}();function ww(e){return Iw(e.sourceFormat)||Ag(""),e.data}function Sw(e){var t=e.sourceFormat,n=e.data;if(Iw(t)||Ag(""),"arrayRows"===t){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if("objectRows"===t){for(r=[],i=0,o=n.length;i<o;i++)r.push(Qu({},n[i]));return r}}function kw(e,t,n){if(null!=n)return fc(n)||!isNaN(n)&&!Nc(t,n)?e[n]:Nc(t,n)?t[n]:void 0}function Cw(e){return Zu(e)}var Tw=Rc();function Mw(e,t,n,r){t.length||Ag(""),gc(e)||Ag("");var i=e.type,o=Tw.get(i);o||Ag("");var a=ic(t,function(e){return function(e,t){var n=new _w,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex;"column"!==e.seriesLayoutBy&&Ag("");var a=[],s={},l=e.dimensionsDefine;if(l)rc(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};a.push(r),null!=n&&(Nc(s,n)&&Ag(""),s[n]=r)});else for(var u=0;u<e.dimensionsDetectedCount;u++)a.push({index:u});var c=qx(i,kx);t.__isBuiltIn&&(n.getRawDataItem=function(e){return c(r,o,a,e)},n.getRawData=lc(ww,null,e)),n.cloneRawData=lc(Sw,null,e),n.count=lc(Kx(i,kx),null,r,o,a);var d=eb(i);n.retrieveValue=function(e,t){return h(c(r,o,a,e),t)};var h=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=a[t];return n?d(e,t,n.name):void 0}};return n.getDimensionInfo=lc(kw,null,a,s),n.cloneAllDimensionInfo=lc(Cw,null,a),n}(e,o)});return ic(Rg(o.transform({upstream:a[0],upstreamList:a,config:Zu(e.config)})),function(e,n){var r;gc(e)||Ag(""),e.data||Ag(""),Iw(Vx(e.data))||Ag("");var i=t[0];if(i&&0===n&&!e.dimensions){var o=i.startIndex;o&&(e.data=i.data.slice(0,o).concat(e.data)),r={seriesLayoutBy:kx,sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:kx,sourceHeader:0,dimensions:e.dimensions};return Fx(e.data,r,null)})}function Iw(e){return"arrayRows"===e||"objectRows"===e}var Pw=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,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Aw(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,t=[u._getVersionSign()]}else s=yc(a=o.get("data",!0))?Sx:vx,t=[];var c=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},h=wc(c.seriesLayoutBy,d.seriesLayoutBy)||null,p=wc(c.sourceHeader,d.sourceHeader),f=wc(c.dimensions,d.dimensions);e=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||f?[Fx(a,{seriesLayoutBy:h,sourceHeader:p,dimensions:f},s)]:[]}else{var g=n;if(i){var m=this._applyTransform(r);e=m.sourceList,t=m.upstreamSignList}else e=[Fx(g.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){1!==e.length&&Dw("")}var o,a=[],s=[];return rc(e,function(e){e.prepareSource();var t=e.getSource(i||0);null==i||t||Dw(""),a.push(t),s.push(e._getVersionSign())}),r?t=function(e,t){var n=Rg(e),r=n.length;r||Ag("");for(var i=0,o=r;i<o;i++)t=Mw(n[i],t),i!==o-1&&(t.length=Math.max(t.length,1));return t}(r,a,n.componentIndex):null!=i&&(t=[(o=a[0],new Nx({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:Zu(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:s}},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=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=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];Aw(this._sourceHost)&&a?o=a._innerGetDataStore(e,t,n):(o=new bb).initData(new Gx(t,e.length),e),i[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Aw(e)){var t=Ax(e);return t?[t.getSourceManager()]:[]}return ic(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?Qg(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Zg).models:[]}(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(Aw(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Aw(e){return"series"===e.mainType}function Dw(e){throw new Error(e)}var Ew="line-height:1";function Ow(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+u_(r+"")+"px;color:"+u_(n)+";font-weight:"+u_(i+""),valueStyle:"font-size:"+u_(a+"")+"px;color:"+u_(o)+";font-weight:"+u_(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Rw=[0,10,20,30],Lw=["","\n","\n\n","\n\n\n"];function zw(e,t){return t.type=e,t}function Nw(e){return"section"===e.type}function Bw(e){return Nw(e)?$w:Vw}function Fw(e){if(Nw(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return rc(e.blocks,function(e){var n=Fw(e);n>=t&&(t=n+ +(r&&(!n||Nw(e)&&!e.noHeader)))}),t}return 0}function $w(e,t,n,r){var i,o=t.noHeader,a=(i=Fw(t),{html:Rw[i],richText:Lw[i]}),s=[],l=t.blocks||[];Tc(!l||cc(l)),l=l||[];var u=e.orderMode;if(t.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Nc(c,u)){var d=new ub(c[u],null);l.sort(function(e,t){return d.evaluate(e.sortParam,t.sortParam)})}else"seriesDesc"===u&&l.reverse()}rc(l,function(n,i){var o=t.valueFormatter,l=Bw(n)(o?Qu(Qu({},e),{valueFormatter:o}):e,n,i>0?a.html:0,r);null!=l&&s.push(l)});var h="richText"===e.renderMode?s.join(a.richText):Ww(s.join(""),o?n:a.html);if(o)return h;var p=Z_(t.header,"ordinal",e.useUTC),f=Ow(r,e.renderMode).nameStyle;return"richText"===e.renderMode?jw(e,p,f)+a.richText+h:Ww('<div style="'+f+";"+Ew+';">'+u_(p)+"</div>"+h,n)}function Vw(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return ic(e=cc(e)?e:[e],function(e,t){return Z_(e,cc(p)?p[t]:p,u)})};if(!o||!a){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=o?"":Z_(l,"ordinal",u),p=t.valueType,f=a?[]:c(t.value,t.dataIndex),g=!s||!o,m=!s&&o,y=Ow(r,i),v=y.nameStyle,x=y.valueStyle;return"richText"===i?(s?"":d)+(o?"":jw(e,h,v))+(a?"":function(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(cc(t)?t.join(" "):t,o)}(e,f,g,m,x)):Ww((s?"":d)+(o?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+u_(e)+"</span>"}(h,!s,v))+(a?"":function(e,t,n,r){var i=t?"float:right;margin-left:"+(n?"10px":"20px"):"";return e=cc(e)?e:[e],'<span style="'+i+";"+r+'">'+ic(e,function(e){return u_(e)}).join("&nbsp;&nbsp;")+"</span>"}(f,g,m,x)),n)}}function Hw(e,t,n,r,i,o){if(e)return Bw(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,o)}function Ww(e,t){return'<div style="margin: '+t+"px 0 0;"+Ew+';">'+e+'<div style="clear:both"></div></div>'}function jw(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Gw(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var Uw=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Mg()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=function(e,t){var n=hc(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+u_(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+u_(r)+";"+(t||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:t,type:e,renderMode:n,markerId:r});return hc(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};cc(t)?rc(t,function(e){return Qu(n,e)}):Qu(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function Xw(e){var t,n,r,i,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,d=o.getRawValue(a),h=cc(d),p=function(e,t){return ew(e.getData().getItemVisual(t,"style")[e.visualDrawType])}(o,a);if(c>1||h&&!c){var f=function(e,t,n,r,i){var o=t.getData(),a=oc(e,function(e,t,n){var r=o.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(zw("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return r.length?rc(r,function(e){c(nb(o,n,e),e)}):rc(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(d,o,a,u,p);t=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=t=nb(l,a,u[0]),n=g.type}else i=t=h?d[0]:d;var m=Wg(o),y=m&&o.name||"",v=l.getName(a),x=s?y:v;return zw("section",{header:y,noHeader:s||!m,sortParam:i,blocks:[zw("nameValue",{markerType:"item",markerColor:p,name:x,noName:!Mc(x),value:t,valueType:n,dataIndex:a})].concat(r||[])})}var qw=Ug();function Yw(e,t){return e.getName(t)||e.getId(t)}var Zw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return Du(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=vw({count:Qw,reset:Jw}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(qw(this).sourceManager=new Pw(this)).prepareSource();var r=this.getInitialData(e,n);tS(r,this),this.dataTask.context.data=r,qw(this).dataBeforeProcessed=r,Kw(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=lw(this),r=n?cw(e):{},i=this.subType;hw.hasClass(i)&&(i+="Series"),Ku(e,t.getTheme().get(this.subType)),Ku(e,this.getDefaultOption()),Lg(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&uw(e,r,n)},t.prototype.mergeOption=function(e,t){e=Ku(this.option,e,!0),this.fillDataTextStyle(e.data);var n=lw(this);n&&uw(this.option,e,n);var r=qw(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);tS(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,qw(this).dataBeforeProcessed=i,Kw(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!yc(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Lg(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=rS(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return qw(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=rS(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}qw(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Rc(e)},t.prototype.getSourceManager=function(){return qw(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return qw(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return Xw({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Vc.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=fw.prototype.getColorFromPalette.call(this,e,t,n);return i||(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("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=Yw(i,e[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-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("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=sc(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("all"===n||n[Yw(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,o=i.selectedMode,a=t.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){gc(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=t[l];s[d=Yw(e,u)]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(u)}}else if("single"===o||!0===o){var c=t[a-1],d=Yw(e,c);i.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((r={})[d]=e.getRawIndex(c),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 hw.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}(hw);function Kw(e){var t=e.name;Wg(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return rc(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(" ")}(e)||t)}function Qw(e){return e.model.getRawData().count()}function Jw(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),eS}function eS(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function tS(e,t){rc(function(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,uc(nS,t))})}function nS(e,t){var n=rS(e);return n&&n.setOutputEnd((t||this).count()),t}function rS(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}}tc(Zw,mw),tc(Zw,fw),Uc(Zw,hw);var iS=Ff.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,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),oS=Ff.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,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),aS=Ff.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,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,d=Math.sin(u),h=Math.cos(u),p=.6*a,f=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*p,l+s+h*p,n,r-f,n,r),e.bezierCurveTo(n,r-f,n-c+d*p,l+s+h*p,n-c,l+s),e.closePath()}}),sS=Ff.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,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),lS={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 o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},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}},uS={};rc({line:$y,rect:Kf,roundRect:Kf,square:Kf,circle:py,diamond:oS,pin:aS,arrow:sS,triangle:iS},function(e,t){uS[t]=new e});var cS=Ff.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Dd(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=uS[r];i||(i=uS[r="rect"]),lS[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function dS(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function hS(e,t,n,r,i,o,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?wv(e.slice(8),new wd(t,n,r,i),a?"center":"cover"):0===e.indexOf("path://")?_v(e.slice(7),{},new wd(t,n,r,i),a?"center":"cover"):new cS({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=dS,o&&s.setColor(o),s}function pS(e,t){if(null!=e)return cc(e)||(e=[e,e]),[fg(e[0],t[0])||0,fg(wc(e[1],e[0]),t[1])||0]}var fS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Du(t,e),t.prototype.getInitialData=function(e){return Zb(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new dy,n=hS("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"),o="none"===r?"circle":r,a=.8*e.itemHeight,s=hS(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=("inherit"===e.iconRotate?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Zw);function gS(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=nb(e,t,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(nb(e,t,n[a]));return o.join(" ")}}var mS=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.updateData(t,n,r,i),o}return Du(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var o=hS(e,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=yS,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(){Mm(this.childAt(0))},t.prototype.downplay=function(){Im(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 o,a=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=a!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,e,n,l,d)}else{(p=this.childAt(0)).silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(h):av(p,h,s,n),iv(o=p).oldStyle=o.style}if(this._updateCommon(e,n,l,r,i),u){var p=this.childAt(0);if(!c){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,sv(p,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var o,a,s,l,u,c,d,h,p,f=this.childAt(0),g=e.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,d=r.labelStatesModels,h=r.hoverScale,p=r.cursorStyle,c=r.emphasisDisabled),!r||e.hasItemOption){var m=r&&r.itemModel?r.itemModel:e.getItemModel(t),y=m.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),d=Uv(m),h=y.getShallow("scale"),p=m.getShallow("cursor")}var v=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(v||0)*Math.PI/180||0);var x=pS(e.getItemVisual(t,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),p&&f.attr("cursor",p);var b=e.getItemVisual(t,"style"),_=b.fill;if(f instanceof jf){var w=f.style;f.useStyle(Qu({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},b))}else f.__isEmptyBrush?f.useStyle(Qu({},b)):f.useStyle(b),f.style.decal=null,f.setColor(_,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),k=this._z2;null!=S?null==k&&(this._z2=f.z2,f.z2+=S):null!=k&&(f.z2=k,this._z2=null);var C=i&&i.useNameLabel;Gv(f,d,{labelFetcher:g,labelDataIndex:t,defaultText:function(t){return C?e.getName(t):gS(e,t)},inheritColor:_,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var M=null==h||!0===h?Math.max(1.1,3/this._sizeY):isFinite(h)&&h>0?+h:1;T.scaleX=this._sizeX*M,T.scaleY=this._sizeY*M,this.setSymbolScale(1),$m(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=em(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&uv(a,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();uv(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return cc(n=e.getItemVisual(t,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},t}(dy);function yS(e,t){this.parent.drift(e,t)}function vS(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function xS(e){return null==e||gc(e)||(e={isIgnore:e}),e||{}}function bS(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:Uv(t),cursorStyle:t.get("cursor")}}var _S=function(){function e(e){this.group=new dy,this._SymbolCtor=e||mS}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=xS(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=bS(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=u(r);if(vS(e,i,r,t)){var a=new o(e,r,s,l);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}}).update(function(c,d){var h=i.getItemGraphicEl(d),p=u(c);if(vS(e,p,c,t)){var f=e.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==f)n.remove(h),(h=new o(e,c,s,l)).setPosition(p);else{h.updateData(e,c,s,l);var m={x:p[0],y:p[1]};a?h.attr(m):av(h,m,r)}n.add(h),e.setItemGraphicEl(c,h)}else n.remove(h)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bS(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=xS(n);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(vS(t,o,i,n)){var a=new this._SymbolCtor(t,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){Hv(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 wS(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=function(e,t){var n=0,r=e.scale.getExtent();"start"===t?n=r[0]:"end"===t?n=r[1]:fc(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,d=ic(e.dimensions,function(e){return t.mapDimension(e)}),h=!1,p=t.getCalculationInfo("stackResultDimension");return Yb(t,d[0])&&(h=!0,d[0]=p),Yb(t,d[1])&&(h=!0,d[1]=p),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function SS(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var kS="undefined"!=typeof Float32Array,CS=kS?Float32Array:Array;function TS(e){return cc(e)?kS?new Float32Array(e):e:new CS(e)}var MS=Math.min,IS=Math.max;function PS(e,t){return isNaN(e)||isNaN(t)}function AS(e,t,n,r,i,o,a,s,l){for(var u,c,d,h,p,f,g=n,m=0;m<r;m++){var y=t[2*g],v=t[2*g+1];if(g>=i||g<0)break;if(PS(y,v)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](y,v),d=y,h=v;else{var x=y-u,b=v-c;if(x*x+b*b<.5){g+=o;continue}if(a>0){for(var _=g+o,w=t[2*_],S=t[2*_+1];w===y&&S===v&&m<r;)m++,g+=o,w=t[2*(_+=o)],S=t[2*_+1],x=(y=t[2*g])-u,b=(v=t[2*g+1])-c;var k=m+1;if(l)for(;PS(w,S)&&k<r;)k++,w=t[2*(_+=o)],S=t[2*_+1];var C=.5,T=0,M=0,I=void 0,P=void 0;if(k>=r||PS(w,S))p=y,f=v;else{T=w-u,M=S-c;var A=y-u,D=w-y,E=v-c,O=S-v,R=void 0,L=void 0;if("x"===s){var z=T>0?1:-1;p=y-z*(R=Math.abs(A))*a,f=v,I=y+z*(L=Math.abs(D))*a,P=v}else if("y"===s){var N=M>0?1:-1;p=y,f=v-N*(R=Math.abs(E))*a,I=y,P=v+N*(L=Math.abs(O))*a}else R=Math.sqrt(A*A+E*E),p=y-T*a*(1-(C=(L=Math.sqrt(D*D+O*O))/(L+R))),f=v-M*a*(1-C),P=v+M*a*C,I=MS(I=y+T*a*C,IS(w,y)),P=MS(P,IS(S,v)),I=IS(I,MS(w,y)),f=v-(M=(P=IS(P,MS(S,v)))-v)*R/L,p=MS(p=y-(T=I-y)*R/L,IS(u,y)),f=MS(f,IS(c,v)),I=y+(T=y-(p=IS(p,MS(u,y))))*L/R,P=v+(M=v-(f=IS(f,MS(c,v))))*L/R}e.bezierCurveTo(d,h,p,f,y,v),d=I,h=P}else e.lineTo(y,v)}u=y,c=v,g+=o}return m}var DS=function(){this.smooth=0,this.smoothConstraint=!0},ES=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return Du(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new DS},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&PS(n[2*i-2],n[2*i-1]);i--);for(;r<i&&PS(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=AS(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,r,i=this.path.data,o=vf.CMD,a="x"===t,s=[],l=0;l<i.length;){var u=void 0,c=void 0,d=void 0,h=void 0,p=void 0,f=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(e-n)/(u-n):(e-r)/(c-r))<=1&&g>=0){var m=a?(c-r)*g+r:(u-n)*g+n;return a?[e,m]:[m,e]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],d=i[l++],h=i[l++],p=i[l++],f=i[l++];var y=a?Ch(n,u,d,p,e,s):Ch(r,c,h,f,e,s);if(y>0)for(var v=0;v<y;v++){var x=s[v];if(x<=1&&x>=0){m=a?Sh(r,c,h,f,x):Sh(n,u,d,p,x);return a?[e,m]:[m,e]}}n=p,r=f}}},t}(Ff),OS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t}(DS),RS=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return Du(t,e),t.prototype.getDefaultShape=function(){return new OS},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0&&PS(n[2*o-2],n[2*o-1]);o--);for(;i<o&&PS(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=AS(e,n,i,o,o,1,t.smooth,a,t.connectNulls);AS(e,r,i+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),i+=s+1,e.closePath()}},t}(Ff);function LS(){var e=Ug();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var zS=Ug(),NS=LS(),BS=function(){function e(){this.group=new dy,this.uid=Qb("viewChart"),this.renderTask=vw({plan:VS,reset:HS}),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&&$S(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&$S(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.updateLayout=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){Hv(this.group,e)},e.markUpdateMethod=function(e,t){zS(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function FS(e,t,n){e&&Gm(e)&&("emphasis"===t?Mm:Im)(e,n)}function $S(e,t,n){var r=Gg(e,t),i=t&&null!=t.highlightKey?function(e){var t=nm[e];return null==t&&tm<=32&&(t=nm[e]=tm++),t}(t.highlightKey):null;null!=r?rc(Rg(r),function(t){FS(e.getItemGraphicEl(t),n,i)}):e.eachItemGraphicEl(function(e){FS(e,n,i)})}function VS(e){return NS(e.model)}function HS(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&zS(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,r,i),WS[l]}Gc(BS),Zc(BS);var WS={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)}}};function jS(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function GS(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function US(e,t){var n=GS(e),r=n[0],i=n[1],o=GS(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function XS(e){return fc(e)?e:e?.5:0}function qS(e,t,n,r){var i=t.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],d=[];if(r){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||d.push(e[s],e[s+1]);e=d}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var h=(u[o]+c[o])/2,p=[];l[o]=p[o]=h,l[1-o]=u[1-o],p[1-o]=c[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function YS(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=t.getAxis(i),u=ic(o.stops,function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}}),c=u.length,d=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var h=function(e,t){var n,r,i=[],o=e.length;function a(e,t,n){var r=e.coord;return{coord:n,color:Qh((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){r?i.push(a(r,l,t)):n&&i.push(a(n,l,0),a(n,l,t));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}(u,"x"===i?n.getWidth():n.getHeight()),p=h.length;if(!p&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var f=h[0].coord-10,g=h[p-1].coord+10,m=g-f;if(m<.001)return"transparent";rc(h,function(e){e.offset=(e.coord-f)/m}),h.push({offset:p?h[p-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:d[0]||"transparent"});var y=new Yy(0,0,0,0,h,!0);return y[i]=f,y[i+"2"]=g,y}}}function ZS(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(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(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*mS.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return rc(o.getViewLabels(),function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function KS(e,t){return isNaN(e)||isNaN(t)}function QS(e,t){return[e[2*t],e[2*t+1]]}function JS(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<om.length;t++)if(e.get([om[t],"endLabel","show"]))return!0;return!1}function ek(e,t,n,r){if(function(e,t){return e.type===t}(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=JS(r)?function(n,r){e._endLabelOnDuring(n,r,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=function(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var d=new Kf({shape:{x:a,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),p=h.isHorizontal(),f=h.inverse;p?(f&&(d.shape.x+=l),d.shape.width=0):(f||(d.shape.y+=u),d.shape.height=0);var g=dc(i)?function(e){i(e,d)}:null;sv(d,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return d}(t,n,r,function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var d=c.shape,h=Math.max(d.width,d.height);u?(d.y-=h,d.height+=2*h):(d.x-=h,d.width+=2*h)}return l&&l(1,c),c}return function(e,t,n){var r=e.getArea(),i=gg(r.r0,1),o=gg(r.r,1),a=new Ay({shape:{cx:gg(e.cx,1),cy:gg(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,sv(a,{shape:{endAngle:r.endAngle,r:o}},n)),a}(t,n,r)}var tk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.prototype.init=function(){var e=new dy,t=new _S;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,d=this._coordSys,h=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,m=!t.ssr&&e.get("animation"),y=!l.isEmpty(),v=l.get("origin"),x=wS(i,a,v),b=y&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=TS(2*r),o=0;o<r;o++){var a=SS(n,e,t,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,x),_=e.get("showSymbol"),w=e.get("connectNulls"),S=_&&!c&&ZS(e,a,i),k=this._data;k&&k.eachItemGraphicEl(function(e,t){e.__temp&&(o.remove(e),k.setItemGraphicEl(t,null))}),_||h.remove(),o.add(g);var C,T=!c&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(C=i.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var M=YS(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(p&&d.type===i.type&&T===this._step){y&&!f?f=this._newPolygon(u,b):f&&!y&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,ew(M));var I=g.getClipPath();if(I)sv(I,{shape:ek(this,i,!1,e).shape},e);else g.setClipPath(ek(this,i,!0,e));_&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),jS(this._stackedOnPoints,b)&&jS(this._points,u)||(m?this._doUpdateAnimation(a,b,i,n,T,v,w):(T&&(u=qS(u,i,T,w),b&&(b=qS(b,i,T,w))),p.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:b})))}else _&&h.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),m&&this._initSymbolLabelAnimation(a,i,C),T&&(u=qS(u,i,T,w),b&&(b=qS(b,i,T,w))),p=this._newPolyline(u),y?f=this._newPolygon(u,b):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,ew(M)),g.setClipPath(ek(this,i,!0,e));var P=e.getModel("emphasis"),A=P.get("focus"),D=P.get("blurScope"),E=P.get("disabled");(p.useStyle(Ju(s.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),Wm(p,e,"lineStyle"),p.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1);em(p).seriesIndex=e.seriesIndex,$m(p,A,D,E);var O=XS(e.get("smooth")),R=e.get("smoothMonotone");if(p.setShape({smooth:O,smoothMonotone:R,connectNulls:w}),f){var L=a.getCalculationInfo("stackedOnSeries"),z=0;f.useStyle(Ju(l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),L&&(z=XS(L.get("smooth"))),f.setShape({smooth:O,stackedOnSmooth:z,smoothMonotone:R,connectNulls:w}),Wm(f,e,"areaStyle"),em(f).seriesIndex=e.seriesIndex,$m(f,A,D,E)}var N=function(e){r._changePolyState(e)};a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=N)}),this._polyline.onHoverStateChange=N,this._data=a,this._coordSys=i,this._stackedOnPoints=b,this._points=u,this._step=T,this._valueOrigin=v,e.get("triggerLineEvent")&&(this.packEventData(e,p),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){em(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=Gg(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,d=e.get("z")||0;(s=new mS(i,o)).x=l,s.y=u,s.setZ(c,d);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=d,h.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else BS.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),o=Gg(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else BS.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;wm(this._polyline,e),t&&wm(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new ES({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 RS({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,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");dc(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=dc(u)?u(null):u;e.eachItemGraphicEl(function(e,o){var s=e;if(s){var d=[e.x,e.y],h=void 0,p=void 0,f=void 0;if(n)if(i){var g=n,m=t.pointToCoord(d);r?(h=g.startAngle,p=g.endAngle,f=-m[1]/180*Math.PI):(h=g.r0,p=g.r,f=m[0])}else{var y=n;r?(h=y.x,p=y.x+y.width,f=e.x):(h=y.y+y.height,p=y.y,f=e.y)}var v=p===h?0:(f-h)/(p-h);a&&(v=1-v);var x=dc(u)?u(o):l*v+c,b=s.getSymbolPath(),_=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:x}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(JS(e)){var i=e.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new eg({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(e){for(var t=e.length/2;t>0&&KS(e[2*t-2],e[2*t-1]);t--);return t-1}(a);l>=0&&(Gv(o,Uv(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?function(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!cc(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}(i,n):gS(i,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}(r,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),h=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,y=t.shape,v=m?g?y.x:y.y+y.height:g?y.x+y.width:y.y,x=(g?p:0)*(m?-1:1),b=(g?0:-p)*(m?-1:1),_=g?"x":"y",w=function(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=e[2*u+a],!isNaN(i)&&!isNaN(e[2*u+1-a]))if(0!==u){if(r<=t&&i>=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}(u,v,_),S=w.range,k=S[1]-S[0],C=void 0;if(k>=1){if(k>1&&!d){var T=QS(u,S[0]);s.attr({x:T[0]+x,y:T[1]+b}),i&&(C=c.getRawValue(S[0]))}else{(T=l.getPointOn(v,_))&&s.attr({x:T[0]+x,y:T[1]+b});var M=c.getRawValue(S[0]),I=c.getRawValue(S[1]);i&&(C=function(e,t,n,r,i){var o=null==t||"auto"===t;if(null==r)return r;if(fc(r))return gg(f=Dg(n||0,r,i),o?Math.max(yg(n||0),yg(r)):t);if(hc(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var d=e.getDimensionInfo(c);if(d&&"ordinal"===d.type)a[c]=(i<1&&s?s:l)[c];else{var h=s&&s[c]?s[c]:0,p=l[c],f=Dg(h,p,i);a[c]=gg(f,o?Math.max(yg(h),yg(p)):t)}}return a}(n,h,M,I,w.t))}r.lastFrameIndex=S[0]}else{var P=1===e||r.lastFrameIndex>0?S[0]:0;T=QS(u,P);i&&(C=c.getRawValue(P)),s.attr({x:T[0]+x,y:T[1]+b})}if(i){var A=nx(s);"function"==typeof A.setLabelText&&A.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=function(e,t,n,r,i,o,a){for(var s=function(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}(e,t),l=[],u=[],c=[],d=[],h=[],p=[],f=[],g=wS(i,t,a),m=e.getLayout("points")||[],y=t.getLayout("points")||[],v=0;v<s.length;v++){var x=s[v],b=!0,_=void 0,w=void 0;switch(x.cmd){case"=":_=2*x.idx,w=2*x.idx1;var S=m[_],k=m[_+1],C=y[w],T=y[w+1];(isNaN(S)||isNaN(k))&&(S=C,k=T),l.push(S,k),u.push(C,T),c.push(n[_],n[_+1]),d.push(r[w],r[w+1]),f.push(t.getRawIndex(x.idx1));break;case"+":var M=x.idx,I=g.dataDimsForPoint,P=i.dataToPoint([t.get(I[0],M),t.get(I[1],M)]);w=2*M,l.push(P[0],P[1]),u.push(y[w],y[w+1]);var A=SS(g,i,t,M);c.push(A[0],A[1]),d.push(r[w],r[w+1]),f.push(t.getRawIndex(M));break;case"-":b=!1}b&&(h.push(x),p.push(p.length))}p.sort(function(e,t){return f[e]-f[t]});var D=l.length,E=TS(D),O=TS(D),R=TS(D),L=TS(D),z=[];for(v=0;v<p.length;v++){var N=p[v],B=2*v,F=2*N;E[B]=l[F],E[B+1]=l[F+1],O[B]=u[F],O[B+1]=u[F+1],R[B]=c[F],R[B+1]=c[F+1],L[B]=d[F],L[B+1]=d[F+1],z[v]=h[N]}return{current:E,next:O,stackedOnCurrent:R,stackedOnNext:L,status:z}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),d=c.current,h=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(i&&(d=qS(c.current,n,i,a),h=qS(c.stackedOnCurrent,n,i,a),p=qS(c.next,n,i,a),f=qS(c.stackedOnNext,n,i,a)),US(d,p)>3e3||l&&US(h,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=d;var g={shape:{points:p}};c.current!==d&&(g.shape.__points=c.next),s.stopAnimation(),av(s,g,u),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),av(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],y=c.status,v=0;v<y.length;v++)if("="===y[v].cmd){var x=e.getItemGraphicEl(y[v].idx1);x&&m.push({el:x,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<m.length;t++){var n=m[t].el,r=2*m[t].ptIdx;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}(BS);var nk={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?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},minmax:function(e){for(var t=-1/0,n=-1/0,r=0;r<e.length;r++){var i=e[r],o=Math.abs(i);o>t&&(t=o,n=i)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},rk=function(e){return Math.round(e.length/2)};function ik(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function ok(e){return e.dim+e.index}function ak(e){var t=function(e){var t={};rc(e,function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);t[i]?t[i].push(u):t[i]=[u]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(e,t){return e-t});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(e),n=[];return rc(e,function(e){var r,i=e.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=t[i.dim+"_"+i.index],s=Math.abs(o[1]-o[0]),l=i.scale.getExtent(),u=Math.abs(l[1]-l[0]);r=a?s/u*a:s}else{var c=e.getData();r=Math.abs(o[1]-o[0])/c.count()}var d=fg(e.get("barWidth"),r),h=fg(e.get("barMaxWidth"),r),p=fg(e.get("barMinWidth")||(function(e){return e.pipelineContext&&e.pipelineContext.large}(e)?.5:1),r),f=e.get("barGap"),g=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:h,barMinWidth:p,barGap:f,barCategoryGap:g,axisKey:ok(i),stackId:ik(e)})}),function(e){var t={};rc(e,function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[r]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var d=e.barGap;null!=d&&(o.gap=d);var h=e.barCategoryGap;null!=h&&(o.categoryGap=h)});var n={};return rc(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=sc(r).length;o=Math.max(35-4*a,15)+"%"}var s=fg(o,i),l=fg(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),rc(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+l*r,c--}else{var r=d;t&&t<r&&(r=Math.min(t,u)),n&&n>r&&(r=n),r!==d&&(e.width=r,u-=r+l*r,c--)}}),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var h,p=0;rc(r,function(e,t){e.width||(e.width=d),h=e,p+=e.width*(1+l)}),h&&(p-=h.width*l);var f=-p/2;rc(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:f,width:e.width},f+=e.width*(1+l)})}),n}(n)}var sk="\0__throttleOriginMethod",lk="\0__throttleRate",uk="\0__throttleType";function ck(e,t,n){var r,i,o,a,s,l=0,u=0,c=null;function d(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var h=function(){for(var e=[],h=0;h<arguments.length;h++)e[h]=arguments[h];r=(new Date).getTime(),o=this,a=e;var p=s||t,f=s||n;s=null,i=r-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(d,p):i>=0?d():c=setTimeout(d,-i),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}function dk(e,t,n,r){var i=e[t];if(i){var o=i[sk]||i,a=i[uk];if(i[lk]!==n||a!==r){if(null==n||!r)return e[t]=o;(i=e[t]=ck(o,n,"debounce"===r))[sk]=o,i[uk]=r,i[lk]=n}return i}}function hk(e,t){var n=e[t];n&&n[sk]&&(n.clear&&n.clear(),e[t]=n[sk])}function pk(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),u=Gg(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:cc(u)?l.getName(u[0]):l.getName(u),selected:hc(r)?r:Qu({},r)})}})}var fk=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},gk=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 fk(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,o=r-this._y;this._x=n,this._y=r,t.drift(i,o,e),this.handler.dispatchToElement(new fk(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new fk(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new fk(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new fk(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new fk(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),mk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yk=[],vk=Vc.browser.firefox&&+Vc.browser.version.split(".")[0]<39;function xk(e,t,n,r){return n=n||{},r?bk(e,t,n):vk&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):bk(e,t,n),n}function bk(e,t,n){if(Vc.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(a_(e)){var o=e.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(o_(yk,e,r,i))return n.zrX=yk[0],void(n.zrY=yk[1])}n.zrX=n.zrY=0}function _k(e){return e||window.event}function wk(e,t,n){if(null!=(t=_k(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&xk(e,i,t,n)}else{xk(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;return null==n||null==r?t:3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&mk.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function Sk(e,t,n,r){e.addEventListener(t,n,r)}function kk(e,t,n,r){e.removeEventListener(t,n,r)}var Ck=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Tk=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},o=0,a=r.length;o<a;o++){var s=r[o],l=xk(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in Ik)if(Ik.hasOwnProperty(t)){var n=Ik[t](this._track,e);if(n)return n}},e}();function Mk(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var Ik={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,o=(e[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=Mk(i)/Mk(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},Pk="silent";function Ak(){Ck(this.event)}var Dk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Du(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(yp),Ek=function(e,t){this.x=e,this.y=t},Ok=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Rk=new wd(0,0,0,0),Lk=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a._hovered=new Ek(0,0),a.storage=t,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new Dk,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new gk(a),a}return Du(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(rc(Ok,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=Bk(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new Ek(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ek(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){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,o=function(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:Ak}}(t,e,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Ek(e,t);if(Nk(r,i,e,t,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new wd(e-s,t-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Rk.copy(c.getBoundingRect()),c.transform&&Rk.applyTransform(c.transform),Rk.intersect(l)&&o.push(c))}if(o.length)for(var d=Math.PI/12,h=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<h;f+=d)if(Nk(o,i,e+p*Math.cos(f),t+p*Math.sin(f),n),i.target)return i}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new Tk);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var o=new Ek;o.target=r.target,this.dispatchToElement(o,i,r.event)}},t}(yp);function zk(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||Pk}return!1}function Nk(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=zk(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==Pk)){t.target=a;break}}}function Bk(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}rc(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Lk.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,a=Bk(this,i,o);if("mouseup"===e&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||Kd(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});function Fk(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++;!function(e,t,n){n--;for(;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function $k(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o,a=e[r],s=t,l=r;s<l;)i(a,e[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=a}}function Vk(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function Hk(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Wk(e,t){var n,r,i=7,o=0,a=[];function s(s){var l=n[s],u=r[s],c=n[s+1],d=r[s+1];r[s]=u+d,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--;var h=Hk(e[c],e,l,u,0,t);l+=h,0!==(u-=h)&&0!==(d=Vk(e[l+u-1],e,c,d,d-1,t))&&(u<=d?function(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=e[n+l];var u=0,c=o,d=n;if(e[d++]=e[c++],0===--s){for(l=0;l<r;l++)e[d+l]=a[u+l];return}if(1===r){for(l=0;l<s;l++)e[d+l]=e[c+l];return void(e[d+s]=a[u])}var h,p,f,g=i;for(;;){h=0,p=0,f=!1;do{if(t(e[c],a[u])<0){if(e[d++]=e[c++],p++,h=0,0===--s){f=!0;break}}else if(e[d++]=a[u++],h++,p=0,1===--r){f=!0;break}}while((h|p)<g);if(f)break;do{if(0!==(h=Hk(e[c],a,u,r,0,t))){for(l=0;l<h;l++)e[d+l]=a[u+l];if(d+=h,u+=h,(r-=h)<=1){f=!0;break}}if(e[d++]=e[c++],0===--s){f=!0;break}if(0!==(p=Vk(a[u],e,c,s,0,t))){for(l=0;l<p;l++)e[d+l]=e[c+l];if(d+=p,c+=p,0===(s-=p)){f=!0;break}}if(e[d++]=a[u++],1===--r){f=!0;break}g--}while(h>=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===r){for(l=0;l<s;l++)e[d+l]=e[c+l];e[d+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)e[d+l]=a[u+l]}}(l,u,c,d):function(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=e[o+l];var u=n+r-1,c=s-1,d=o+s-1,h=0,p=0;if(e[d--]=e[u--],0===--r){for(h=d-(s-1),l=0;l<s;l++)e[h+l]=a[l];return}if(1===s){for(p=(d-=r)+1,h=(u-=r)+1,l=r-1;l>=0;l--)e[p+l]=e[h+l];return void(e[d]=a[c])}var f=i;for(;;){var g=0,m=0,y=!1;do{if(t(a[c],e[u])<0){if(e[d--]=e[u--],g++,m=0,0===--r){y=!0;break}}else if(e[d--]=a[c--],m++,g=0,1===--s){y=!0;break}}while((g|m)<f);if(y)break;do{if(0!==(g=r-Hk(a[c],e,n,r,r-1,t))){for(r-=g,p=(d-=g)+1,h=(u-=g)+1,l=g-1;l>=0;l--)e[p+l]=e[h+l];if(0===r){y=!0;break}}if(e[d--]=a[c--],1===--s){y=!0;break}if(0!==(m=s-Vk(e[u],a,0,s,s-1,t))){for(s-=m,p=(d-=m)+1,h=(c-=m)+1,l=0;l<m;l++)e[p+l]=a[h+l];if(s<=1){y=!0;break}}if(e[d--]=e[u--],0===--r){y=!0;break}f--}while(g>=7||m>=7);if(y)break;f<0&&(f=0),f+=2}(i=f)<1&&(i=1);if(1===s){for(p=(d-=r)+1,h=(u-=r)+1,l=r-1;l>=0;l--)e[p+l]=e[h+l];e[d]=a[c]}else{if(0===s)throw new Error;for(h=d-(s-1),l=0;l<s;l++)e[h+l]=a[l]}}(l,u,c,d))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var e=o-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;o>1;){var e=o-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[o]=e,r[o]=t,o+=1}}}function jk(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<32)$k(e,n,r,n+(o=Fk(e,n,r,t)),t);else{var a=Wk(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((o=Fk(e,n,r,t))<s){var l=i;l>s&&(l=s),$k(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var Gk=!1;function Uk(){Gk||(Gk=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Xk(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var qk=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Xk}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=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,jk(n,Xk)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Uk(),u.z=0),isNaN(u.z2)&&(Uk(),u.z2=0),isNaN(u.zlevel)&&(Uk(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,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]);else{var r=ec(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}(),Yk=Vc.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function Zk(){return(new Date).getTime()}var Kk,Qk,Jk=function(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=t||{},n.stage=t.stage||{},n}return Du(t,e),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=Zk()-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,Yk(function t(){e._running&&(Yk(t),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=Zk(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Zk(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Zk()-this._pauseStart,this._paused=!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 null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new mp(e,t.loop);return this.addAnimator(n),n},t}(yp),eC=Vc.domSupported,tC=(Qk={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Kk=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:ic(Kk,function(e){var t=e.replace("mouse","pointer");return Qk.hasOwnProperty(t)?t:e})}),nC=["mousemove","mouseup"],rC=["pointermove","pointerup"],iC=!1;function oC(e){var t=e.pointerType;return"pen"===t||"touch"===t}function aC(e){e&&(e.zrByTouch=!0)}function sC(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var lC=function(e,t){this.stopPropagation=Bc,this.stopImmediatePropagation=Bc,this.preventDefault=Bc,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},uC={mousedown:function(e){e=wk(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=wk(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=wk(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){sC(this,(e=wk(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){iC=!0,e=wk(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){iC||(e=wk(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){aC(e=wk(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),uC.mousemove.call(this,e),uC.mousedown.call(this,e)},touchmove:function(e){aC(e=wk(this.dom,e)),this.handler.processGesture(e,"change"),uC.mousemove.call(this,e)},touchend:function(e){aC(e=wk(this.dom,e)),this.handler.processGesture(e,"end"),uC.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&uC.click.call(this,e)},pointerdown:function(e){uC.mousedown.call(this,e)},pointermove:function(e){oC(e)||uC.mousemove.call(this,e)},pointerup:function(e){uC.mouseup.call(this,e)},pointerout:function(e){oC(e)||uC.mouseout.call(this,e)}};rc(["click","dblclick","contextmenu"],function(e){uC[e]=function(t){t=wk(this.dom,t),this.trigger(e,t)}});var cC={pointermove:function(e){oC(e)||cC.mousemove.call(this,e)},pointerup:function(e){cC.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 dC(e,t){var n=t.domHandlers;Vc.pointerEventsSupported?rc(tC.pointer,function(r){pC(t,r,function(t){n[r].call(e,t)})}):(Vc.touchEventsSupported&&rc(tC.touch,function(r){pC(t,r,function(i){n[r].call(e,i),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}(t)})}),rc(tC.mouse,function(r){pC(t,r,function(i){i=_k(i),t.touching||n[r].call(e,i)})}))}function hC(e,t){function n(n){pC(t,n,function(r){r=_k(r),sC(e,r.target)||(r=function(e,t){return wk(e.dom,new lC(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))},{capture:!0})}Vc.pointerEventsSupported?rc(rC,n):Vc.touchEventsSupported||rc(nC,n)}function pC(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Sk(e.domTarget,t,n,r)}function fC(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&kk(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var gC=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},mC=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new gC(t,uC),eC&&(r._globalHandlerScope=new gC(document,cC)),dC(r,r._localHandlerScope),r}return Du(t,e),t.prototype.dispose=function(){fC(this._localHandlerScope),eC&&fC(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,eC&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?hC(this,t):fC(t)}},t}(yp),yC={},vC={};var xC=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new qk,o=n.renderer||"canvas";yC[o]||(o=sc(yC)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new yC[o](t,i,n,e),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=Vc.node||Vc.worker||s?null:new mC(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?Vc.touchEventsSupported:!!c)&&(l=wc(n.pointerSize,44)),this.handler=new Lk(i,a,u,a.root,l),this.animation=new Jk({stage:{update:s?null:function(){return r._flush(!0)}}}),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=function(e){if(!e)return!1;if("string"==typeof e)return ep(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=ep(t[i].color,1);return(n/=r)<.4}return!1}(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||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=Zk();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=Zk();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-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._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=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 dy&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){var e;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,e=this.id,delete vC[e])},e}();function bC(e,t){var n=new xC(qu(),e,t);return vC[n.id]=n,n}var _C="";"undefined"!=typeof navigator&&(_C=navigator.platform||"");var wC,SC,kC,CC="rgba(0, 0, 0, 0.2)",TC={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:CC,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:CC,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:CC,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:CC,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:CC,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:CC,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:_C.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},MC=Rc();var IC="\0_ec_inner",PC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new px(r),this._locale=new px(i),this._optionManager=o},t.prototype.setOption=function(e,t,n){var r=EC(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,EC(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):kC(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=r.getMediaOption(this);a.length&&rc(a,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,o=[],a=Rc(),s=t&&t.replaceMergeMainTypeMap;Ix(this).datasetMap=Rc(),rc(e,function(e,t){null!=e&&(hw.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?Zu(e):Ku(n[t],e,!0))}),s&&s.each(function(e,t){hw.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))}),hw.topologicalTravel(o,hw.getAllClassMainTypes(),function(t){var o=function(e,t,n){var r=MC.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,Rg(e[t])),a=r.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=Fg(a,o,l);(function(e,t,n){rc(e,function(e){var r=e.newOption;gc(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))})})(u,t,hw),n[t]=null,r.set(t,null),i.set(t,0);var c,d=[],h=[],p=0;rc(u,function(e,n){var r=e.existing,i=e.newOption;if(i){var o="series"===t,a=hw.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(c)return;c=!0}if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Qu({componentIndex:n},e.keyInfo);Qu(r=new a(i,this,this,s),s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(d.push(r.option),h.push(r),p++):(d.push(void 0),h.push(void 0))},this),n[t]=d,r.set(t,h),i.set(t,p),"series"===t&&wC(this)},this),this._seriesIndices||wC(this)},t.prototype.getOption=function(){var e=Zu(this.option);return rc(e,function(t,n){if(hw.hasClass(n)){for(var r=Rg(t),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!jg(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,e[n]=r}}),delete e[IC],e},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(null==t)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,r=e.index,i=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=r?(n=[],rc(Rg(r),function(e){a[e]&&n.push(a[e])})):n=null!=i?AC("id",i,a):null!=o?AC("name",o,a):ac(a,function(e){return!!e}),DC(n,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,o,a=e.query,s=e.mainType,l=(n=s+"Index",r=s+"Id",i=s+"Name",!(t=a)||null==t[n]&&null==t[r]&&null==t[i]?null:{mainType:s,index:t[n],id:t[r],name:t[i]});return o=DC(l?this.queryComponents(l):ac(this._componentsMap.get(s),function(e){return!!e}),e),e.filter?ac(o,e.filter):o},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(dc(e)){var i=t,o=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&o.call(i,t,r,r.componentIndex)}})}else for(var a=hc(e)?r.get(e):gc(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Hg(e,null);return ac(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return ac(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return ac(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){SC(this),rc(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){rc(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){SC(this),rc(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 rc(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return SC(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){SC(this);var n=[];rc(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=Rc(n)},t.prototype.restoreData=function(e){wC(this);var t=this._componentsMap,n=[];t.each(function(e,t){hw.hasClass(t)&&n.push(t)}),hw.topologicalTravel(n,hw.getAllClassMainTypes(),function(n){rc(t.get(n),function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e)||t.restoreData()})})},t.internalField=(wC=function(e){var t=e._seriesIndices=[];rc(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=Rc(t)},SC=function(e){},void(kC=function(e,t){e.option={},e.option[IC]=1,e._componentsMap=Rc({series:[]}),e._componentsCount=Rc();var n=t.aria;gc(n)&&null==n.enabled&&(n.enabled=!0),function(e,t){var n=e.color&&!e.colorLayer;rc(t,function(t,r){"colorLayer"===r&&n||hw.hasClass(r)||("object"==typeof t?e[r]=e[r]?Ku(e[r],t,!1):Zu(t):null==e[r]&&(e[r]=t))})}(t,e._theme.option),Ku(t,TC,!1),e._mergeOption(t,null)})),t}(px);function AC(e,t,n){if(cc(t)){var r=Rc();return rc(t,function(e){null!=e&&null!=Hg(e,null)&&r.set(e,!0)}),ac(n,function(t){return t&&r.get(t[e])})}var i=Hg(t,null);return ac(n,function(t){return t&&null!=i&&t[e]===i})}function DC(e,t){return t.hasOwnProperty("subType")?ac(e,function(e){return e&&e.subType===t.subType}):e}function EC(e){var t=Rc();return e&&rc(Rg(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}tc(PC,fw);var OC=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],RC=function(e){rc(OC,function(t){this[t]=lc(e[t],e)},this)},LC=/^(min|max)?(.+)$/,zC=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(rc(Rg(e.series),function(e){e&&e.data&&yc(e.data)&&Pc(e.data)}),rc(Rg(e.dataset),function(e){e&&e.source&&yc(e.source)&&Pc(e.source)})),e=Zu(e);var r=this._optionBackup,i=function(e,t,n){var r,i,o=[],a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((d||c)&&(e.options=e.media=null),i=e);c&&cc(u)&&rc(u,function(e){e&&e.option&&(e.query?o.push(e):r||(r=e))});function h(e){rc(t,function(t){t(e,n)})}return h(i),rc(l,function(e){return h(e)}),rc(o,function(e){return h(e.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(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=[],Zu(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=Zu(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)NC(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=ic(s,function(e){return Zu(-1===e?a.option:o[e].option)})),this._currentMediaIndices=s,l},e}();function NC(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return rc(e,function(e,t){var n=t.match(LC);if(n&&n[1]&&n[2]){var o=n[1];(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[n[2].toLowerCase()],e,o)||(i=!1)}}),i}var BC=rc,FC=gc,$C=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function VC(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=$C.length;n<r;n++){var i=$C[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?Ku(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?Ku(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function HC(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,Ju(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 WC(e){HC(e,"itemStyle"),HC(e,"lineStyle"),HC(e,"areaStyle"),HC(e,"label"),HC(e,"labelLine"),HC(e,"upperLabel"),HC(e,"edgeLabel")}function jC(e,t){var n=FC(e)&&e[t],r=FC(n)&&n.textStyle;if(r)for(var i=0,o=zg.length;i<o;i++){var a=zg[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function GC(e){e&&(WC(e),jC(e,"label"),e.emphasis&&jC(e.emphasis,"label"))}function UC(e){return cc(e)?e:e?[e]:[]}function XC(e){return(cc(e)?e[0]:e)||{}}function qC(e,t){BC(UC(e.series),function(e){FC(e)&&function(e){if(FC(e)){VC(e),WC(e),jC(e,"label"),jC(e,"upperLabel"),jC(e,"edgeLabel"),e.emphasis&&(jC(e.emphasis,"label"),jC(e.emphasis,"upperLabel"),jC(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(VC(t),GC(t));var n=e.markLine;n&&(VC(n),GC(n));var r=e.markArea;r&&GC(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var o=e.links||e.edges;if(o&&!yc(o))for(var a=0;a<o.length;a++)GC(o[a]);rc(e.categories,function(e){WC(e)})}if(i&&!yc(i))for(a=0;a<i.length;a++)GC(i[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)GC(s[a])}if((n=e.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)cc(l[a])?(GC(l[a][0]),GC(l[a][1])):GC(l[a])}"gauge"===e.type?(jC(e,"axisLabel"),jC(e,"title"),jC(e,"detail")):"treemap"===e.type?(HC(e.breadcrumb,"itemStyle"),rc(e.levels,function(e){WC(e)})):"tree"===e.type&&WC(e.leaves)}}(e)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),BC(n,function(t){BC(UC(e[t]),function(e){e&&(jC(e,"axisLabel"),jC(e.axisPointer,"label"))})}),BC(UC(e.parallel),function(e){var t=e&&e.parallelAxisDefault;jC(t,"axisLabel"),jC(t&&t.axisPointer,"label")}),BC(UC(e.calendar),function(e){HC(e,"itemStyle"),jC(e,"dayLabel"),jC(e,"monthLabel"),jC(e,"yearLabel")}),BC(UC(e.radar),function(e){jC(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),BC(UC(e.geo),function(e){FC(e)&&(GC(e),BC(UC(e.regions),function(e){GC(e)}))}),BC(UC(e.timeline),function(e){GC(e),HC(e,"label"),HC(e,"itemStyle"),HC(e,"controlStyle",!0);var t=e.data;cc(t)&&rc(t,function(e){gc(e)&&(HC(e,"label"),HC(e,"itemStyle"))})}),BC(UC(e.toolbox),function(e){HC(e,"iconStyle"),BC(e.feature,function(e){HC(e,"iconStyle")})}),jC(XC(e.axisPointer),"label"),jC(XC(e.tooltip).axisPointer,"label")}function YC(e){e&&rc(ZC,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var ZC=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],KC=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],QC=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function JC(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<QC.length;n++){var r=QC[n][1],i=QC[n][0];null!=t[r]&&(t[i]=t[r])}}function eT(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function tT(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function nT(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&nT(e[n].children,t)}function rT(e,t){qC(e,t),e.series=Rg(e.series),rc(e.series,function(e){if(gc(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),eT(e.label),(i=e.data)&&!yc(i))for(var n=0;n<i.length;n++)eT(i[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=r&&function(e,t,n,r){for(var i,o=t.split(","),a=e,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}(e,"itemStyle.color",r)}else if("bar"===t){var i;if(JC(e),JC(e.backgroundStyle),JC(e.emphasis),(i=e.data)&&!yc(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(JC(i[n]),JC(i[n]&&i[n].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),tT(e),nT(e.data,tT)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Ju(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),YC(e)}}),e.dataRange&&(e.visualMap=e.dataRange),rc(KC,function(t){var n=e[t];n&&(cc(n)||(n=[n]),rc(n,function(e){YC(e)}))})}function iT(e){rc(e,function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,c){var d,h,p=a.get(t.stackedDimension,c);if(isNaN(p))return i;s?h=a.getRawIndex(c):d=a.get(t.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,d)),h>=0){var y=m.data.getByRawIndex(m.stackResultDimension,h);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=xg(p,y),f=y;break}}}return r[0]=p,r[1]=f,r})})}var oT=function(){function e(){this.group=new dy,this.uid=Qb("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}();Gc(oT),Zc(oT);var aT=Ug(),sT={itemStyle:Kc(cx,!0),lineStyle:Kc(sx,!0)},lT={lineStyle:"stroke",itemStyle:"fill"};function uT(e,t){var n=e.visualStyleMapper||sT[t];return n||(console.warn("Unknown style type '"+t+"'."),sT.itemStyle)}function cT(e,t){var n=e.visualDrawType||lT[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var dT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=uT(e,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=cT(e,r),l=o[s],u=dc(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[s]||(o[s]=d,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||dc(o.fill)?d:o.fill,o.stroke="auto"===o.stroke||dc(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=Qu({},o);i[s]=u(r),t.setItemVisual(n,"style",i)}}}},hT=new px,pT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=uT(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){hT.option=n[r];var a=i(hT);Qu(e.ensureUniqueItemVisual(t,"style"),a),hT.option.decal&&(e.setItemVisual(t,"decal",hT.option.decal),hT.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},fT={performRawSeries:!0,overallReset:function(e){var t=Rc();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),aT(e).scope=i}}),e.eachSeries(function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),o=aT(t).scope,a=cT(t,t.visualStyleAccessPath||"itemStyle");i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var s=r[e];if(i.getItemVisual(s,"colorFromPalette")){var l=i.ensureUniqueItemVisual(s,"style"),u=n.getName(e)||e+"",c=n.count();l[a]=t.getColorFromPalette(u,o,c)}})}})}},gT=Math.PI;var mT=function(){function e(e,t,n,r){this._stageTaskMap=Rc(),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,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,o=e.get("large")&&r>=e.get("largeThreshold");e.pipelineContext=n.context={progressiveRender:i,modDataCount:"mod"===e.get("progressiveChunkMode")?r:null,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Rc();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;rc(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});Tc(!(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,o=i.context;o.model=t,o.ecModel=n,o.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=r||{};var i=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}rc(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each(function(e){a(r,e)&&(e.dirty(),d=!0)}),d&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,r.block);h.each(function(e){e.perform(p)}),c.perform(p)&&(i=!0)}else u&&u.each(function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)})}}),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){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,o=t.seriesTaskMap,a=t.seriesTaskMap=Rc(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||vw({plan:_T,reset:wT,count:CT}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||vw({reset:yT});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Rc(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1;function h(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(d=!0,vw({reset:vT,onDirty:bT})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,i._pipe(e,n)}Tc(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,h):u?u(n,r).each(h):(c=!1,rc(n.getSeries(),h)),d&&o.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 dc(e)&&(e={overallReset:e,seriesType:TT(e)}),e.uid=Qb("stageHandler"),t&&(e.visualType=t),e},e}();function yT(e){e.overallReset(e.ecModel,e.api,e.payload)}function vT(e){return e.overallProgress&&xT}function xT(){this.agent.dirty(),this.getDownstream().dirty()}function bT(){this.agent&&this.agent.dirty()}function _T(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function wT(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Rg(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?ic(t,function(e,t){return kT(t)}):ST}var ST=kT(0);function kT(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function CT(e){return e.data.count()}function TT(e){MT=null;try{e(IT,PT)}catch(Ty){}return MT}var MT,IT={},PT={};function AT(e,t){for(var n in t.prototype)e[n]=Bc}AT(IT,PC),AT(PT,RC),IT.eachSeriesByType=IT.eachRawSeriesByType=function(e){MT=e},IT.eachComponent=function(e){"series"===e.mainType&&e.subType&&(MT=e.subType)};var DT=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],ET={color:DT,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],DT]},OT="#B9B8CE",RT="#100C2A",LT=function(){return{axisLine:{lineStyle:{color:OT}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},zT=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],NT={darkMode:!0,color:zT,backgroundColor:RT,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:OT}},textStyle:{color:OT},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:OT}},dataZoom:{borderColor:"#71708A",textStyle:{color:OT},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:OT}},timeline:{lineStyle:{color:OT},label:{color:OT},controlStyle:{color:OT,borderColor:OT}},calendar:{itemStyle:{color:RT},dayLabel:{color:OT},monthLabel:{color:OT},yearLabel:{color:OT}},timeAxis:LT(),logAxis:LT(),valueAxis:LT(),categoryAxis:LT(),line:{symbol:"circle"},graph:{color:zT},gauge:{title:{color:OT},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:OT},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};NT.categoryAxis.splitLine.show=!1;var BT=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(hc(e)){var i=jc(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};rc(e,function(e,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var d=i.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}a.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,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),FT=["symbol","symbolSize","symbolRotate","symbolOffset"],$T=FT.concat(["symbolKeepAspect"]),VT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<FT.length;a++){var s=FT[a],l=e.get(s);dc(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Qu({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var u=sc(i);return{dataEach:o?function(t,n){for(var r=e.getRawValue(n),o=e.getDataParams(n),a=0;a<u.length;a++){var s=u[a];t.setItemVisual(n,s,i[s](r,o))}}:null}}}}},HT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<$T.length;r++){var i=$T[r],o=n.getShallow(i,!0);null!=o&&e.setItemVisual(t,i,o)}}:null}}};function WT(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var jT=Math.round(9*Math.random()),GT="function"==typeof Object.defineProperty,UT=function(){function e(){this._id="__ec_inner_"+jT++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return GT?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)},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}();function XT(e){return isFinite(e)}function qT(e,t,n){for(var r="radial"===t.type?function(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=XT(a)?a:.5,s=XT(s)?s:.5,l=l>=0&&XT(l)?l:.5,e.createRadialGradient(a,s,0,a,s,l)}(e,t,n):function(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=XT(r)?r:0,i=XT(i)?i:1,o=XT(o)?o:0,a=XT(a)?a:0,e.createLinearGradient(r,o,i,a)}(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function YT(e){return parseInt(e,10)}function ZT(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||YT(s[r])||YT(e.style[r]))-(YT(s[o])||0)-(YT(s[a])||0)|0}function KT(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:fc(t)?[t]:cc(t)?t:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(i=ic(i,function(e){return e/a}),o/=a)}return[i,o]}var QT=new vf(!0);function JT(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function eM(e){return"string"==typeof e&&"none"!==e}function tM(e){var t=e.fill;return null!=t&&"none"!==t}function nM(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function rM(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function iM(e,t,n){var r=od(t.image,t.__image,n);if(sd(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*Fc),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}var oM=["shadowBlur","shadowOffsetX","shadowOffsetY"],aM=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function sM(e,t,n,r,i){var o=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){cM(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Op.opacity:a}(r||t.blend!==n.blend)&&(o||(cM(e,i),o=!0),e.globalCompositeOperation=t.blend||Op.blend);for(var s=0;s<oM.length;s++){var l=oM[s];(r||t[l]!==n[l])&&(o||(cM(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(cM(e,i),o=!0),e.shadowColor=t.shadowColor||Op.shadowColor),o}function lM(e,t,n,r,i){var o=dM(t,i.inHover),a=r?null:n&&dM(n,i.inHover)||{};if(o===a)return!1;var s=sM(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(cM(e,i),s=!0),eM(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(cM(e,i),s=!0),eM(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(cM(e,i),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(cM(e,i),s=!0),e.lineWidth=l)}for(var u=0;u<aM.length;u++){var c=aM[u],d=c[0];(r||o[d]!==a[d])&&(s||(cM(e,i),s=!0),e[d]=o[d]||c[1])}return s}function uM(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 cM(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function dM(e,t){return t&&e.__hoverStyle||e.style}function hM(e,t){pM(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function pM(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(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}(o,a)||(a&&a.length&&(cM(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(cM(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),uM(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,d,h=t instanceof Ff&&t.autoBatch&&function(e){var t=tM(e),n=JT(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(c=i,d=u.transform,c&&d?c[0]!==d[0]||c[1]!==d[1]||c[2]!==d[2]||c[3]!==d[3]||c[4]!==d[4]||c[5]!==d[5]:c||d)?(cM(e,n),uM(e,t)):h||cM(e,n);var p=dM(t,n.inHover);t instanceof Ff?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),lM(e,t,u,l,n),h&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,o=JT(n),a=tM(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||QT,d=t.__dirty;if(!r){var h=n.fill,p=n.stroke,f=a&&!!h.colorStops,g=o&&!!p.colorStops,m=a&&!!h.image,y=o&&!!p.image,v=void 0,x=void 0,b=void 0,_=void 0,w=void 0;(f||g)&&(w=t.getBoundingRect()),f&&(v=d?qT(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=v),g&&(x=d?qT(e,p,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),m&&(b=d||!t.__canvasFillPattern?iM(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=b),y&&(_=d||!t.__canvasStrokePattern?iM(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),f?e.fillStyle=v:m&&(b?e.fillStyle=b:a=!1),g?e.strokeStyle=x:y&&(_?e.strokeStyle=_:o=!1)}var S,k,C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(S=(i=KT(t))[0],k=i[1]);var T=!0;(u||4&d)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),T=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),T&&c.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=k),r||(n.strokeFirst?(o&&rM(e,n),a&&nM(e,n)):(a&&nM(e,n),o&&rM(e,n))),S&&e.setLineDash([])}(e,t,p,h),h&&(n.batchFill=p.fill||"",n.batchStroke=p.stroke||"")):t instanceof Vf?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),lM(e,t,u,l,n),function(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||"12px sans-serif",e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(o=(r=KT(t))[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(JT(n)&&e.strokeText(i,n.x,n.y),tM(n)&&e.fillText(i,n.x,n.y)):(tM(n)&&e.fillText(i,n.x,n.y),JT(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}(e,t,p)):t instanceof jf?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(e,t,n,r,i){sM(e,dM(t,i.inHover),n&&dM(n,i.inHover),r,i)}(e,t,u,l,n),function(e,t,n){var r=t.__image=od(n.image,t.__image,t,t.onload);if(r&&sd(r)){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var d=a-(u=n.sx),h=s-(c=n.sy);e.drawImage(r,u,c,d,h,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}(e,t,p)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=r.length;o<a;o++){(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),pM(e,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),pM(e,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),h&&r&&cM(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var fM=new UT,gM=new nd(100),mM=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function yM(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&fM.delete(e);var o=fM.get(e);if(o)return o;var a=Ju(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});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,o=[n],s=!0,l=0;l<mM.length;++l){var u=a[mM[l]];if(null!=u&&!cc(u)&&!hc(u)&&!fc(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){t=o.join(",")+(i?"-svg":"");var c=gM.get(t);c&&(i?e.svgElement=c:e.image=c)}var d,h=xM(a.dashArrayX),p=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(fc(e)){var t=Math.ceil(e);return[t,t]}var n=ic(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(a.dashArrayY),f=vM(a.symbol),g=(b=h,ic(b,function(e){return bM(e)})),m=bM(p),y=!i&&Lu.createCanvas(),v=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var e=1,t=0,n=g.length;t<n;++t)e=Pg(e,g[t]);var r=1;for(t=0,n=f.length;t<n;++t)r=Pg(r,f[t].length);e*=r;var i=m*g.length*f.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var b;y&&(y.width=x.width*n,y.height=x.height*n,d=y.getContext("2d"));(function(){d&&(d.clearRect(0,0,y.width,y.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,y.width,y.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(e<=0)return;var o=-m,s=0,l=0,u=0;for(;o<x.height;){if(s%2==0){for(var c=l/2%f.length,g=0,b=0,_=0;g<2*x.width;){var w=0;for(t=0;t<h[u].length;++t)w+=h[u][t];if(w<=0)break;if(b%2==0){var S=.5*(1-a.symbolSize),k=g+h[u][b]*S,C=o+p[s]*S,T=h[u][b]*a.symbolSize,M=p[s]*a.symbolSize,I=_/2%f[c].length;P(k,C,T,M,f[c][I])}g+=h[u][b],++_,++b===h[u].length&&(b=0)}++u===h.length&&(u=0)}o+=p[s],++l,++s===p.length&&(s=0)}function P(e,t,o,s,l){var u=i?1:n,c=hS(l,e*u,t*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var h=r.painter.renderOneToVNode(c);h&&v.children.push(h)}else hM(d,c)}})(),s&&gM.put(t,y||v);e.image=y,e.svgElement=v,e.svgWidth=x.width,e.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,fM.set(e,s),e.dirty=!1,s}function vM(e){if(!e||0===e.length)return[["rect"]];if(hc(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!hc(e[n])){t=!1;break}if(t)return vM([e]);var r=[];for(n=0;n<e.length;++n)hc(e[n])?r.push([e[n]]):r.push(e[n]);return r}function xM(e){if(!e||0===e.length)return[[0,0]];if(fc(e))return[[i=Math.ceil(e),i]];for(var t=!0,n=0;n<e.length;++n)if(!fc(e[n])){t=!1;break}if(t)return xM([e]);var r=[];for(n=0;n<e.length;++n)if(fc(e[n])){var i=Math.ceil(e[n]);r.push([i,i])}else{(i=ic(e[n],function(e){return Math.ceil(e)})).length%2==1?r.push(i.concat(i)):r.push(i)}return r}function bM(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var _M=new yp,wM={};var SM=2e3,kM=4500,CM={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:SM,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:kM,ARIA:6e3,DECAL:7e3}},TM="__flagInMainProcess",MM="__pendingUpdate",IM="__needsUpdateStatus",PM=/^[a-zA-Z0-9_]+$/,AM="__connectUpdateStatus";function DM(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return OM(this,e,t);this.id}}function EM(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return OM(this,e,t)}}function OM(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),yp.prototype[t].apply(e,n)}var RM,LM,zM,NM,BM,FM,$M,VM,HM,WM,jM,GM,UM,XM,qM,YM,ZM,KM,QM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t}(yp),JM=QM.prototype;JM.on=EM("on"),JM.off=EM("off");var eI=function(e){function t(t,n,r){var i=e.call(this,new BT)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},hc(n)&&(n=lI[n]),i._dom=t;r.ssr&&function(e){var t=em(e),n=t.dataIndex;if(null!=n){var r=Rc();return r.set("series_index",t.seriesIndex),r.set("data_index",n),t.ssrType&&r.set("ssr_type",t.ssrType),r}};var o=i._zr=bC(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:wc(r.useDirtyRect,!1),useCoarsePointer:wc(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=ck(lc(o.flush,o),17),(n=Zu(n))&&rT(n,!0),i._theme=n,i._locale=function(e){if(hc(e)){var t=p_[e.toUpperCase()]||{};return e===c_||e===d_?Zu(t):Ku(Zu(t),Zu(p_[h_]),!1)}return Ku(Zu(e),Zu(p_[h_]),!1)}(r.locale||g_),i._coordSysMgr=new jb;var a=i._api=qM(i);function s(e,t){return e.__prio-t.__prio}return jk(sI,s),jk(oI,s),i._scheduler=new mT(i,a,oI,sI),i._messageCenter=new QM,i._initEvents(),i.resize=lc(i.resize,i),o.animation.on("frame",i._onframe,i),WM(o,i),jM(o,i),Pc(i),i}return Du(t,e),t.prototype._onframe=function(){if(!this._disposed){KM(this);var e=this._scheduler;if(this[MM]){var t=this[MM].silent;this[TM]=!0;try{RM(this),NM.update.call(this,null,this[MM].updateParams)}catch(Ty){throw this[TM]=!1,this[MM]=null,Ty}this._zr.flush(),this[TM]=!1,this[MM]=null,VM.call(this,t),HM.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),FM(this,r),e.performVisualTasks(r),XM(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>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[TM])if(this._disposed)this.id;else{var r,i,o;if(gc(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this[TM]=!0,!this._model||t){var a=new zC(this._api),s=this._theme,l=this._model=new PC;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:i},aI);var u={seriesTransition:o,optionChanged:!0};if(n)this[MM]={silent:r,updateParams:u},this[TM]=!1,this.getZr().wakeUp();else{try{RM(this),NM.update.call(this,null,u)}catch(Ty){throw this[MM]=null,this[TM]=!1,Ty}this._ssr||this._zr.flush(),this[MM]=null,this[TM]=!1,VM.call(this,r),HM.call(this,r)}}},t.prototype.setTheme=function(){},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||Vc.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Vc.svgSupported){var e=this._zr;return rc(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;rc(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 o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return rc(r,function(e){e.group.ignore=!1}),o}this.id},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(dI[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();rc(cI,function(o,d){if(o.group===n){var h=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Zu(e)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),c.push({dom:h,left:p.left,top:p.top})}});var h=(l*=d)-(a*=d),p=(u*=d)-(s*=d),f=Lu.createCanvas(),g=bC(f,{renderer:t?"svg":"canvas"});if(g.resize({width:h,height:p}),t){var m="";return rc(c,function(e){var t=e.left-a,n=e.top-s;m+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new Kf({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),rc(c,function(e){var t=new jf({style:{x:e.left*d-a,y:e.top*d-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}this.id},t.prototype.convertToPixel=function(e,t){return BM(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return BM(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return rc(qg(this._model,e),function(e,r){r.indexOf("Models")>=0&&rc(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}},this)},this),!!n;this.id},t.prototype.getVisual=function(e,t){var n=qg(this._model,e,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?function(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)}}(r,i,t):function(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)}}(r,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,t,n,r=this;rc(nI,function(e){var t=function(t){var n,i=r.getModel(),o=t.target;if("globalout"===e?n={}:o&&WT(o,function(e){var t=em(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType,o)||{},!0}if(t.eventData)return n=Qu({},t.eventData),!0},!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&i.getComponent(a,s),u=l&&r["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)}),rc(iI,function(e,t){r._messageCenter.on(t,function(e){this.trigger(t,e)},r)}),rc(["selectchanged"],function(e){r._messageCenter.on(e,function(t){this.trigger(e,t)},r)}),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",function(e){var r=n.getModel();e.isFromClick?(pk("map","selectchanged",t,r,e),pk("pie","selectchanged",t,r,e)):"select"===e.fromAction?(pk("map","selected",t,r,e),pk("pie","selected",t,r,e)):"unselect"===e.fromAction&&(pk("map","unselected",t,r,e),pk("pie","unselected",t,r,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&Jg(this.getDom(),fI,"");var e=this,t=e._api,n=e._model;rc(e._componentsViews,function(e){e.dispose(n,t)}),rc(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 cI[e.id]}},t.prototype.resize=function(e){if(!this[TM])if(this._disposed)this.id;else{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[MM]&&(null==r&&(r=this[MM].silent),n=!0,this[MM]=null),this[TM]=!0;try{n&&RM(this),NM.update.call(this,{type:"resize",animation:Qu({duration:0},e&&e.animation)})}catch(Ty){throw this[TM]=!1,Ty}this[TM]=!1,VM.call(this,r),HM.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(gc(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),uI[e]){var n=uI[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Qu({},e);return t.type=iI[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(gc(t)||(t={silent:!!t}),rI[e.type]&&this._model)if(this[TM])this._pendingActions.push(e);else{var n=t.silent;$M.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&Vc.browser.weChat&&this._throttledZrFlush(),VM.call(this,n),HM.call(this,n)}},t.prototype.updateLabelLayout=function(){_M.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered(function(e){return r(e,n,i,-1/0),!0})}}function r(e,t,n,i){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(o&&(o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var u=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function i(e,t){t.eachRendered(function(e){if(!lv(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(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&&(e.prevStates=null)}})}function o(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis){if(lv(e))return;if(e instanceof Ff&&function(e){var t=rm(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}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}})}RM=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),LM(e,!0),LM(e,!1),t.plan()},LM=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var d=jc(e.type);(c=new(t?oT.getClass(d.main,d.sub):BS.getClass(d.sub))).init(n,s),o[u]=c,i.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}t?n.eachComponent(function(e,t){"series"!==e&&u(t)}):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},zM=function(e,t,n,r,i){var o=e._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=Rc(),rc(Rg(u),function(e){var t=Hg(e,null);null!=t&&l.set(t,!0)})),o&&o.eachComponent(s,function(t){if(!l||null==l.get(t.id))if(Xm(n))if(t instanceof Zw)"highlight"!==n.type||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=Gg(i,t);o=(cc(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=em(a);Rm(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=c&&Rm(r,c,d,n)}}}(t,n,e._api);else{var r=zm(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,o=r.dispatchers;"highlight"===n.type&&i&&!n.notBlur&&Lm(t.mainType,t.componentIndex,e._api),o&&rc(o,function(e){"highlight"===n.type?Mm(e):Im(e)})}else Um(n)&&t instanceof Zw&&(!function(e,t){if(Um(t)){var n=t.dataType,r=Gg(e.getData(n),t);cc(r)||(r=[r]),e["toggleSelect"===t.type?"toggleSelect":"select"===t.type?"select":"unselect"](r,n)}}(t,n,e._api),Nm(t),ZM(e))},e),o&&o.eachComponent(s,function(t){l&&null!=l.get(t.id)||c(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])},e)}else rc([].concat(e._componentsViews).concat(e._chartsViews),c);function c(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}},NM={prepareAndUpdate:function(e){RM(this),NM.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,t),FM(this,r),a.update(r,i),e(r),s.performVisualTasks(r,t),GM(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),_M.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var o=[];r.eachComponent(function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,t);l&&l.update&&o.push(s)}else o.push(s)}});var a=Rc();r.eachSeries(function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var s=o.updateTransform(e,r,i,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)}),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:a}),XM(this,r,i,t,{},a),_M.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),BS.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),GM(this,n,this._api,t,{}),_M.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),BS.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent(function(e,i){if("series"!==e){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),_M.trigger("afterupdate",r,this._api))},updateLayout:function(e){NM.update.call(this,e)}},BM=function(e,t,n,r){if(e._disposed)e.id;else for(var i,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=qg(o,n),l=0;l<a.length;l++){var u=a[l];if(u[t]&&null!=(i=u[t](o,s,r)))return i}},FM=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},$M=function(e,t){var n=this,r=this.getModel(),i=e.type,o=e.escapeConnect,a=rI[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&jc(l[0]);this[TM]=!0;var d=[e],h=!1;e.batch&&(h=!0,d=ic(e.batch,function(t){return(t=Ju(Qu({},t),e)).batch=null,t}));var p,f=[],g=Um(e),m=Xm(e);if(m&&Om(this._api),rc(d,function(t){if((p=(p=a.action(t,n._model,n._api))||Qu({},t)).type=s.event||p.type,f.push(p),m){var r=Yg(e),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";zM(n,u,t,o),ZM(n)}else g?(zM(n,u,t,"series"),ZM(n)):c&&zM(n,u,t,c.main,c.sub)}),"none"!==u&&!m&&!g&&!c)try{this[MM]?(RM(this),NM.update.call(this,e),this[MM]=null):NM[u].call(this,e)}catch(Ty){throw this[TM]=!1,Ty}if(p=h?{type:s.event||i,escapeConnect:o,batch:f}:f[0],this[TM]=!1,!t){var y=this._messageCenter;if(y.trigger(p.type,p),g){var v={type:"selectchanged",escapeConnect:o,selected:Bm(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};y.trigger(v.type,v)}}},VM=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();$M.call(this,n,e)}},HM=function(e){!e&&this.trigger("updated")},WM=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[MM]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},jM=function(e,t){e.on("mouseover",function(e){var n=WT(e.target,Gm);n&&(!function(e,t,n){var r=em(e),i=zm(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&Lm(r.componentMainType,r.componentIndex,n),rc(o,function(e){return Cm(e,t)})):(Rm(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Lm(r.componentMainType,r.componentIndex,n),Cm(e,t))}(n,e,t._api),ZM(t))}).on("mouseout",function(e){var n=WT(e.target,Gm);n&&(!function(e,t,n){Om(n);var r=em(e),i=zm(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?rc(i,function(e){return Tm(e,t)}):Tm(e,t)}(n,e,t._api),ZM(t))}).on("click",function(e){var n=WT(e.target,function(e){return null!=em(e).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=em(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},GM=function(e,t,n,r,i){!function(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:i.componentIndex,type:e,key:s})}),r){var i,o,a=t.concat(n);jk(a,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),rc(a,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,a=t.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)})}}(t),UM(e,t,n,r,i),rc(e._chartsViews,function(e){e.__alive=!1}),XM(e,t,n,r,i),rc(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},UM=function(e,t,r,a,s,l){rc(l||e._componentsViews,function(e){var s=e.__model;i(s,e),e.render(s,t,r,a),n(s,e),o(s,e)})},XM=function(e,t,r,a,s,l){var u=e._scheduler;s=Qu(s||{},{updatedSeries:t.getSeries()}),_M.trigger("series:beforeupdate",t,r,s);var c=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(t,n),l&&l.get(t.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}(t,n),Nm(t)}),u.unfinished=c||u.unfinished,_M.trigger("series:layoutlabels",t,r,s),_M.trigger("series:transition",t,r,s),t.eachSeries(function(t){var r=e._chartsMap[t.__viewId];n(t,r),o(t,r)}),function(e,t){var n=e._zr.storage,r=0;n.traverse(function(e){e.isGroup||r++}),r>t.get("hoverLayerThreshold")&&!Vc.node&&!Vc.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}(e,t),_M.trigger("series:afterupdate",t,r,s)},ZM=function(e){e[IM]=!0,e.getZr().wakeUp()},KM=function(e){e[IM]&&(e.getZr().storage.traverse(function(e){lv(e)||t(e)}),e[IM]=!1)},qM=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Du(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Mm(t,n),ZM(e)},n.prototype.leaveEmphasis=function(t,n){Im(t,n),ZM(e)},n.prototype.enterBlur=function(t){!function(e){_m(e,mm)}(t),ZM(e)},n.prototype.leaveBlur=function(t){Pm(t),ZM(e)},n.prototype.enterSelect=function(t){Am(t),ZM(e)},n.prototype.leaveSelect=function(t){Dm(t),ZM(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}(RC))(e)},YM=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][AM]=t}}rc(iI,function(n,r){e._messageCenter.on(r,function(n){if(dI[e.group]&&0!==e[AM]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];rc(cI,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,0),rc(i,function(e){1!==e[AM]&&e.dispatchAction(r)}),t(i,2)}})})}}(),t}(yp),tI=eI.prototype;tI.on=DM("on"),tI.off=DM("off"),tI.one=function(e,t,n){var r=this;this.on.call(this,e,function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),r.off(e,n)},n)};var nI=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var rI={},iI={},oI=[],aI=[],sI=[],lI={},uI={},cI={},dI={},hI=+new Date-0,pI=+new Date-0,fI="_echarts_instance_";function gI(e){return cI[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,fI)]}function mI(e,t){lI[e]=t}function yI(e){ec(aI,e)<0&&aI.push(e)}function vI(e,t){SI(oI,e,t,2e3)}function xI(e,t){_M.on(e,t)}function bI(e,t,n){dc(t)&&(n=t,t="");var r=gc(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,iI[t]||(Tc(PM.test(r)&&PM.test(t)),rI[r]||(rI[r]={action:n,actionInfo:e}),iI[t]=r)}function _I(e,t){SI(sI,e,t,3e3,"visual")}var wI=[];function SI(e,t,n,r,i){if((dc(t)||gc(t))&&(n=t,t=r),!(ec(wI,n)>=0)){wI.push(n);var o=mT.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function kI(e,t){uI[e]=t}var CI=function(e){var t=(e=Zu(e)).type;t||Ag("");var n=t.split(":");2!==n.length&&Ag("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,Tw.set(t,e)};_I(SM,dT),_I(kM,pT),_I(kM,fT),_I(SM,VT),_I(kM,HT),_I(7e3,function(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");n&&(r.ensureUniqueItemVisual(e,"style").decal=yM(n,t))});var i=r.getVisual("decal");if(i)r.getVisual("style").decal=yM(i,t)}})}),yI(rT),vI(900,function(e){var t=Rc();e.eachSeries(function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}}),t.each(iT)}),kI("default",function(e,t){Ju(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new dy,r=new Kf({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,o=new eg({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 Kf({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((i=new Uy({shape:{startAngle:-gT/2,endAngle:-gT/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*gT/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*gT/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}),bI({type:sm,event:sm,update:sm},Bc),bI({type:lm,event:lm,update:lm},Bc),bI({type:um,event:um,update:um},Bc),bI({type:cm,event:cm,update:cm},Bc),bI({type:dm,event:dm,update:dm},Bc),mI("light",ET),mI("dark",NT);var TI=[],MI={registerPreprocessor:yI,registerProcessor:vI,registerPostInit:function(e){xI("afterinit",e)},registerPostUpdate:function(e){xI("afterupdate",e)},registerUpdateLifecycle:xI,registerAction:bI,registerCoordinateSystem:function(e,t){jb.register(e,t)},registerLayout:function(e,t){SI(sI,e,t,1e3,"layout")},registerVisual:_I,registerTransform:CI,registerLoading:kI,registerMap:function(e,t,n){var r=wM["registerMap"];r&&r(e,t,n)},registerImpl:function(e,t){wM[e]=t},PRIORITY:CM,ComponentModel:hw,ComponentView:oT,SeriesModel:Zw,ChartView:BS,registerComponentModel:function(e){hw.registerClass(e)},registerComponentView:function(e){oT.registerClass(e)},registerSeriesModel:function(e){Zw.registerClass(e)},registerChartView:function(e){BS.registerClass(e)},registerSubTypeDefaulter:function(e,t){hw.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){var n;n=t,yC[e]=n}};function II(e){cc(e)?rc(e,function(e){II(e)}):ec(TI,e)>=0||(TI.push(e),dc(e)&&(e={install:e}),e.install(MI))}var PI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(hw),AI=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),DI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Zg).models[0]},t.type="cartesian2dAxis",t}(hw);tc(DI,AI);var EI={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},OI=Ku({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},EI),RI=Ku({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},EI),LI={category:OI,value:RI,time:Ku({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},RI),log:Ju({logBase:10},RI)},zI=0,NI=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++zI}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&ic(r,BI);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!hc(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Rc(this.categories))},e}();function BI(e){return gc(e)&&null!=e.value?e.value:e+""}var FI={value:1,category:1,time:1,log:1};function $I(e,t,n,r){rc(FI,function(i,o){var a=Ku(Ku({},LI[o],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return Du(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=lw(this),r=n?cw(e):{};Ku(e,t.getTheme().get(o+"Axis")),Ku(e,this.getDefaultOption()),e.type=VI(e),n&&uw(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=NI.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=a,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",VI)}function VI(e){return e.type||(e.data?"category":"value")}var HI=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();function WI(e){return"interval"===e.type||"log"===e.type}function jI(e,t,n,r){var i={},o=i.interval=Cg((e[1]-e[0])/t,!0);null!=n&&o<n&&(o=i.interval=n),null!=r&&o>r&&(o=i.interval=r);var a=i.intervalPrecision=UI(o);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),XI(e,0,t),XI(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(i.niceTickExtent=[gg(Math.ceil(e[0]/o)*o,a),gg(Math.floor(e[1]/o)*o,a)],e),i}function GI(e){var t=Math.pow(10,kg(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,gg(n*t)}function UI(e){return yg(e)+2}function XI(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function qI(e,t){return e>=t[0]&&e<=t[1]}function YI(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function ZI(e,t){return e*(t[1]-t[0])+t[0]}Zc(HI);var KI=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new NI({})),cc(r)&&(r=new NI({categories:ic(r,function(e){return gc(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return Du(t,e),t.prototype.parse=function(e){return null==e?NaN:hc(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return qI(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return YI(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(ZI(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i<a;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},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 null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(HI);HI.registerClass(KI);var QI=gg,JI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return Du(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return qI(e,this._extent)},t.prototype.normalize=function(e){return YI(e,this._extent)},t.prototype.scale=function(e){return ZI(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=UI(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;n[0]<r[0]&&(e?o.push({value:QI(r[0]-t,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=QI(a+t,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(e?o.push({value:QI(s+t,i)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var o=t[i],a=t[i-1],s=0,l=[],u=(o.value-a.value)/e;s<e-1;){var c=QI(a.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=yg(e.value)||0:"auto"===n&&(n=this._intervalPrecision),X_(QI(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=jI(r,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=QI(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=QI(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(HI);HI.registerClass(JI);var eP=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return Du(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return A_(e.value,k_[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(I_(this._minLevelUnit))]||k_.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var o=null;if(hc(n))o=n;else if(dc(n))o=n(e.value,t,{level:e.level});else{var a=Qu({},w_);if(e.level>0)for(var s=0;s<C_.length;++s)a[C_[s]]="{primary|"+a[C_[s]]+"}";var l=n?!1===n.inherit?n:Ju(n,a):a,u=D_(e.value,i);if(l[u])o=l[u];else if(l.inherit){for(s=T_.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(cc(o)){var c=null==e.level?0:e.level>=0?e.level:o.length+e.level;o=o[c=Math.min(c,o.length-1)]}}return A_(new Date(e.value),o,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=function(e,t,n,r){var i=1e4,o=T_,a=0;function s(e,t,n,i,o,a,s){for(var l=new Date(t),u=t,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,i,o){var a=[],l=!i.length;if(!function(e,t,n,r){var i=Sg(t),o=Sg(n),a=function(e){return E_(i,e,r)===E_(o,e,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},d=function(){return c()&&a("minute")},h=function(){return d()&&a("second")},p=function(){return h()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return p()}}(I_(e),r[0],r[1],n)){l&&(i=[{value:sP(new Date(r[0]),e,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,d=i[u+1].value;if(c!==d){var h=void 0,p=void 0,f=void 0,g=!1;switch(e){case"year":h=Math.max(1,Math.round(t/b_/365)),p=O_(n),f=$_(n);break;case"half-year":case"quarter":case"month":h=rP(t),p=R_(n),f=V_(n);break;case"week":case"half-week":case"day":h=nP(t,31),p=L_(n),f=H_(n),g=!0;break;case"half-day":case"quarter-day":case"hour":h=iP(t),p=z_(n),f=W_(n);break;case"minute":h=oP(t,!0),p=N_(n),f=j_(n);break;case"second":h=oP(t,!1),p=B_(n),f=G_(n);break;case"millisecond":h=aP(t),p=F_(n),f=U_(n)}s(h,c,d,p,f,g,a),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-h})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],d=0,h=0,p=0;p<o.length&&a++<i;++p){var f=I_(o[p]);if(P_(o[p])&&(l(o[p],u[u.length-1]||[],c),f!==(o[p+1]?I_(o[p+1]):null))){if(c.length){h=d,c.sort(function(e,t){return e.value-t.value});for(var g=[],m=0;m<c.length;++m){var y=c[m].value;0!==m&&c[m-1].value===y||(g.push(c[m]),y>=r[0]&&y<=r[1]&&d++)}var v=(r[1]-r[0])/t;if(d>1.5*v&&h>v/1.5)break;if(u.push(g),d>v||e===o[p])break}c=[]}}var x=ac(ic(u,function(e){return ac(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),b=[],_=x.length-1;for(p=0;p<x.length;++p)for(var w=x[p],S=0;S<w.length;++S)b.push({value:w[S].value,level:_-p});b.sort(function(e,t){return e.value-t.value});var k=[];for(p=0;p<b.length;++p)0!==p&&b[p].value===b[p-1].value||k.push(b[p]);return k}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(i)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=b_,t[1]+=b_),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-b_}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent;this._approxInterval=(r[1]-r[0])/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var i=tP.length,o=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(tP,this._approxInterval,0,i),i-1);this._interval=tP[o][1],this._minLevelUnit=tP[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return fc(e)?e:+Sg(e)},t.prototype.contain=function(e){return qI(this.parse(e),this._extent)},t.prototype.normalize=function(e){return YI(this.parse(e),this._extent)},t.prototype.scale=function(e){return ZI(e,this._extent)},t.type="time",t}(JI),tP=[["second",y_],["minute",v_],["hour",x_],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",__/2],["year",__]];function nP(e,t){return(e/=b_)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function rP(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function iP(e){return(e/=x_)>12?12:e>6?6:e>3.5?4:e>2?2:1}function oP(e,t){return(e/=t?v_:y_)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function aP(e){return Cg(e,!0)}function sP(e,t,n){var r=new Date(e);switch(I_(t)){case"year":case"month":r[V_(n)](0);case"day":r[H_(n)](1);case"hour":r[W_(n)](0);case"minute":r[j_(n)](0);case"second":r[G_(n)](0),r[U_(n)](0)}return r.getTime()}HI.registerClass(eP);var lP=HI.prototype,uP=JI.prototype,cP=gg,dP=Math.floor,hP=Math.ceil,pP=Math.pow,fP=Math.log,gP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new JI,t._interval=0,t}return Du(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return ic(uP.getTicks.call(this,e),function(e){var t=e.value,i=gg(pP(this.base,t));return i=t===n[0]&&this._fixMin?yP(i,r[0]):i,{value:i=t===n[1]&&this._fixMax?yP(i,r[1]):i}},this)},t.prototype.setExtent=function(e,t){var n=fP(this.base);e=fP(Math.max(0,e))/n,t=fP(Math.max(0,t))/n,uP.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=lP.getExtent.call(this);t[0]=pP(e,t[0]),t[1]=pP(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=yP(t[0],n[0])),this._fixMax&&(t[1]=yP(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=fP(e[0])/fP(t),e[1]=fP(e[1])/fP(t),lP.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r,i=(r=n,Math.pow(10,kg(r)));for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[gg(hP(t[0]/i)*i),gg(dP(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){uP.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return qI(e=fP(e)/fP(this.base),this._extent)},t.prototype.normalize=function(e){return YI(e=fP(e)/fP(this.base),this._extent)},t.prototype.scale=function(e){return e=ZI(e,this._extent),pP(this.base,e)},t.type="log",t}(HI),mP=gP.prototype;function yP(e,t){return cP(e,yg(t))}mP.getMinorTicks=uP.getMinorTicks,mP.getLabel=uP.getLabel,HI.registerClass(gP);var vP=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);null==i&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;dc(o)?this._modelMinNum=wP(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=wP(e,o));var a=this._modelMaxRaw=t.get("max",!0);if(dc(a)?this._modelMaxNum=wP(e,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=wP(e,a)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=cc(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ad(l[0],1),Ad(l[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?r?0:NaN:t-i[0]*o),null==s&&(s=e?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=bc(a)||bc(s)||e&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var d=this._determinedMin,h=this._determinedMax;return null!=d&&(a=d,l=!0),null!=h&&(s=h,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[bP[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[xP[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),xP={min:"_determinedMin",max:"_determinedMax"},bP={min:"_dataMin",max:"_dataMax"};function _P(e,t,n){var r=e.rawExtentInfo;return r||(r=new vP(e,t,n),e.rawExtentInfo=r,r)}function wP(e,t){return null==t?null:bc(t)?NaN:e.parse(t)}function SP(e,t){var n=e.type,r=_P(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===n){var s=function(e,t){var n=[];return t.eachSeriesByType(e,function(e){(function(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type})(e)&&n.push(e)}),n}("bar",a),l=!1;if(rc(s,function(e){l=l||e.getBaseAxis()===t.axis}),l){var u=ak(s),c=function(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=function(e,t,n){if(e&&t){var r=e[ok(t)];return null!=r&&null!=n?r[ik(n)]:r}}(r,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;rc(a,function(e){s=Math.min(e.offset,s)});var l=-1/0;rc(a,function(e){l=Math.max(e.offset+e.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,d=c/(1-(s+l)/o)-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function kP(e,t){var n=t,r=SP(e,n),i=r.extent,o=n.get("splitNumber");e instanceof gP&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function CP(e){var t,n,r=e.getLabelModel().get("formatter"),i="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=r,function(t,r){return e.scale.getFormattedLabel(t,r,n)}):hc(r)?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(r):dc(r)?(t=r,function(n,r){return null!=i&&(r=n.value-i),t(TP(e,n),r,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function TP(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function MP(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new wd(e.x,e.y,o,a)}function IP(e){var t=e.get("interval");return null==t?"auto":t}function PP(e){return"category"===e.type&&0===IP(e.getLabelModel())}function AP(e,t){var n={};return rc(e.mapDimensionsAll(t),function(t){n[function(e,t){return Yb(e,t)?e.getCalculationInfo("stackResultDimension"):t}(e,t)]=!0}),sc(n)}var DP=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 ic(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ac(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}(),EP=["x","y"];function OP(e){return"interval"===e.type||"time"===e.type}var RP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=EP,t}return Du(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(OP(e)&&OP(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s;this._invTransform=hd([],this._transform=[l,0,0,u,i[0]-n[0]*l,i[1]-r[0]*u])}}},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(),o=new wd(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Jd(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Jd(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("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){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 wd(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(DP),LP=Ug();function zP(e,t){var n=ic(t,function(t){return e.scale.parse(t)});return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function NP(e){var t=e.getLabelModel().get("customValues");if(t){var n=CP(e);return{labels:zP(e,t).map(function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}})}}return"category"===e.type?function(e){var t=e.getLabelModel(),n=FP(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=CP(e);return{labels:ic(t,function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}})}}(e)}function BP(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:zP(e,n)}:"category"===e.type?function(e,t){var n,r,i=$P(e,"ticks"),o=IP(t),a=VP(i,o);if(a)return a;t.get("show")&&!e.scale.isBlank()||(n=[]);if(dc(o))n=jP(e,o,!0);else if("auto"===o){var s=FP(e,e.getLabelModel());r=s.labelCategoryInterval,n=ic(s.labels,function(e){return e.tickValue})}else n=WP(e,r=o,!0);return HP(i,o,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:ic(e.scale.getTicks(),function(e){return e.value})}}function FP(e,t){var n,r,i=$P(e,"labels"),o=IP(t),a=VP(i,o);return a||(dc(o)?n=jP(e,o):(r="auto"===o?function(e){var t=LP(e).autoInterval;return null!=t?t:LP(e).autoInterval=e.calculateCategoryInterval()}(e):o,n=WP(e,r)),HP(i,o,{labels:n,labelCategoryInterval:r}))}function $P(e,t){return LP(e)[t]||(LP(e)[t]=[])}function VP(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function HP(e,t,n){return e.push({key:t,value:n}),n}function WP(e,t,n){var r=CP(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=PP(e),h=a.get("showMinLabel")||d,p=a.get("showMaxLabel")||d;h&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return p&&f-l!==o[1]&&g(o[1]),s}function jP(e,t,n){var r=e.scale,i=CP(e),o=[];return rc(r.getTicks(),function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})}),o}var GP=[0,1],UP=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(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return vg(e||this.scale.getExtent(),this._extent)},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._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&XP(n=n.slice(),r.count()),pg(e,GP,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&XP(n=n.slice(),r.count());var i=pg(e,n,GP,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=ic(BP(this,t).ticks,function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this);return function(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],o=t[1]={coord:s[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;rc(t,function(e){e.coord-=u/2}),a=1+e.scale.getExtent()[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*a},t.push(o)}var c=s[0]>s[1];d(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift());r&&d(s[0],t[0].coord)&&t.unshift({coord:s[0]});d(s[1],o.coord)&&(r?o.coord=s[1]:t.pop());r&&d(o.coord,s[1])&&t.push({coord:s[1]});function d(e,t){return e=gg(e),t=gg(t),c?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),ic(this.scale.getMinorTicks(e),function(e){return ic(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(){return NP(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(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()}}(e),n=CP(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),h=0,p=0;l<=o[1];l+=s){var f,g,m=Td(n({value:l}),t.font,"center","top");f=1.3*m.width,g=1.3*m.height,h=Math.max(h,f,7),p=Math.max(p,g,7)}var y=h/c,v=p/d;isNaN(y)&&(y=1/0),isNaN(v)&&(v=1/0);var x=Math.max(0,Math.floor(Math.min(y,v))),b=LP(e.model),_=e.getExtent(),w=b.lastAutoInterval,S=b.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&b.axisExtent0===_[0]&&b.axisExtent1===_[1]?x=w:(b.lastTickCount=a,b.lastAutoInterval=x,b.axisExtent0=_[0],b.axisExtent1=_[1]),x}(this)},e}();function XP(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var qP=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return Du(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},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["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(UP);function YP(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,f="x"===u?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[h.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[h[l]]:d[0],"x"===u?f[h[l]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[h[s]]-f[h.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),_c(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function ZP(e){return"cartesian2d"===e.get("coordinateSystem")}function KP(e){var t={xAxisModel:null,yAxisModel:null};return rc(t,function(n,r){var i=r.replace(/Model$/,"");t[r]=e.getReferringComponents(i,Zg).models[0]}),t}var QP=Math.log;var JP=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=EP,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;function r(e){var t,n=sc(e),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=e[+n[o]],s=a.model,l=a.scale;WI(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(kP(l,s),WI(l)&&(t=a))}i.length&&(t||kP((t=i.pop()).scale,t.model),rc(i,function(e){!function(e,t,n){var r=JI.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=SP(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var h=QP(e.base);u=[QP(u[0])/h,QP(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var p=r.getExtent.call(e);c&&(u[0]=p[0]),d&&(u[1]=p[1]);var f=r.getInterval.call(e),g=u[0],m=u[1];if(c&&d)f=(m-g)/a;else if(c)for(m=u[0]+f*a;m<u[1]&&isFinite(m)&&isFinite(u[1]);)f=GI(f),m=u[0]+f*a;else if(d)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=GI(f),g=u[1]-f*a;else{e.getTicks().length-1>a&&(f=GI(f));var y=f*a;(g=gg((m=Math.ceil(u[1]/f)*f)-y))<0&&u[0]>=0?(g=0,m=gg(y)):m>0&&u[1]<=0&&(m=0,g=-gg(y))}var v=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(e,g+f*v,m+f*x),r.setInterval.call(e,f),(v||x)&&r.setNiceExtent.call(e,g+f,m-f)}(e.scale,e.model,t.scale)}))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};rc(n.x,function(e){tA(n,"y",e,i)}),rc(n.y,function(e){tA(n,"x",e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=sw(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){rc(a,function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?o.x:o.y)})}s(),i&&(rc(a,function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof KI?n.count():(r=n.getTicks()).length;var a,s=e.getLabelModel(),l=CP(e),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var d=l(r?r[c]:{value:o[0]+c},c),h=MP(s.getTextRect(d),s.get("rotate")||0);a?a.union(h):a=h}return a}}(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+r,"top"===e.position?o.y+=t.height+r:"left"===e.position&&(o.x+=t.width+r)}}}),s()),rc(this._coordsList,function(e){e.calcAffineTransform()})},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}gc(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,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",Zg).models[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis",Zg).models[0],a=e.gridModel,s=this._coordsList;return r?ec(s,t=r.coordinateSystem)<0&&(t=null):i&&o?t=this.getCartesian(i.componentIndex,o.componentIndex):i?n=this.getAxis("x",i.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(t=this._coordsList[0]),{cartesian:t,axis:n}},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,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,r){if(eA(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new qP(t,function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new KI({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new eP({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(HI.getClass(t)||JI)}}(n),[0,0],n.get("type"),l);u.onBand="category"===u.type&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[t][r]=u,s[t]++}}}this._axesMap=a,rc(a.x,function(t,n){rc(a.y,function(i,o){var a="x"+n+"y"+o,s=new RP(a);s.master=r,s.model=e,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})})},e.prototype._updateScale=function(e,t){function n(e,t){rc(AP(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}rc(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if(ZP(e)){var r=KP(e),i=r.xAxisModel,o=r.yAxisModel;if(!eA(i,t)||!eA(o,t))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}},this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return rc(this.getCartesians(),function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(i);ec(t,i)<0&&t.push(i),ec(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),t.eachSeries(function(e){if(ZP(e)){var t=KP(e),n=t.xAxisModel,r=t.yAxisModel;e.coordinateSystem=n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,r.componentIndex)}}),r},e.dimensions=EP,e}();function eA(e,t){return e.getCoordSysModel()===t}function tA(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)nA(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&nA(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function nA(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}(e)}var rA=Math.PI,iA=function(){function e(e,t){this.group=new dy,this.opt=t,this.axisModel=e,Ju(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new dy({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!oA[e]},e.prototype.add=function(e){oA[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,o=bg(t-e);return _g(o)?(i=n>0?"top":"bottom",r="center"):_g(o-rA)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<rA?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},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}(),oA={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Jd(s,s,a),Jd(l,l,a));var c=Qu({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new $y({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Tv(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var h=t.get(["axisLine","symbol"]);if(null!=h){var p=t.get(["axisLine","symbolSize"]);hc(h)&&(h=[h,h]),(hc(p)||fc(p))&&(p=[p,p]);var f=pS(t.get(["axisLine","symbolOffset"])||0,p),g=p[0],m=p[1];rc([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(t,r){if("none"!==h[r]&&null!=h[r]){var i=hS(h[r],-g/2,-m/2,g,m,c.stroke,!0),o=t.r+t.offset,a=u?l:s;i.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}})}}},axisTickLabel:function(e,t,n,r){var i=function(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||i.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=uA(i.getTicksCoords(),t.transform,l,Ju(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(n,r,t,e),o=function(e,t,n,r){var i=n.axis;if(!_c(r.axisLabelShow,n.get(["axisLabel","show"]))||i.scale.isBlank())return;var o=n.getModel("axisLabel"),a=o.get("margin"),s=i.getViewLabels(),l=(_c(r.labelRotate,o.get("rotate"))||0)*rA/180,u=iA.innerTextLayout(r.rotation,l,r.labelDirection),c=n.getCategories&&n.getCategories(!0),d=[],h=iA.isLabelSilent(n),p=n.get("triggerEvent");return rc(s,function(l,f){var g="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(l.tickValue):l.tickValue,m=l.formattedLabel,y=l.rawLabel,v=o;if(c&&c[g]){var x=c[g];gc(x)&&x.textStyle&&(v=new px(x.textStyle,o,n.ecModel))}var b=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=i.dataToCoord(g),w=v.getShallow("align",!0)||u.textAlign,S=wc(v.getShallow("alignMinLabel",!0),w),k=wc(v.getShallow("alignMaxLabel",!0),w),C=v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||u.textVerticalAlign,T=wc(v.getShallow("verticalAlignMinLabel",!0),C),M=wc(v.getShallow("verticalAlignMaxLabel",!0),C),I=new eg({x:_,y:r.labelOffset+r.labelDirection*a,rotation:u.rotation,silent:h,z2:10+(l.level||0),style:Xv(v,{text:m,align:0===f?S:f===s.length-1?k:w,verticalAlign:0===f?T:f===s.length-1?M:C,fill:dc(b)?b("category"===i.type?y:"value"===i.type?g+"":g,f):b})});if(I.anid="label_"+g,p){var P=iA.makeAxisEventDataBase(n);P.targetType="axisLabel",P.value=y,P.tickIndex=f,"category"===i.type&&(P.dataIndex=g),em(I).eventData=P}t.add(I),I.updateTransform(),d.push(I),e.add(I),I.decomposeTransform()}),d}(n,r,t,e);!function(e,t,n){if(PP(e.axis))return;var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],h=n[n.length-2];!1===r?(aA(o),aA(u)):sA(o,a)&&(r?(aA(a),aA(c)):(aA(o),aA(u)));!1===i?(aA(s),aA(d)):sA(l,s)&&(i?(aA(l),aA(h)):(aA(s),aA(d)))}(t,o,i),function(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(!o.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Ju(s.getLineStyle(),Ju(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var d=uA(a[c],t.transform,l,u,"minorticks_"+c),h=0;h<d.length;h++)e.add(d[h])}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])&&function(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new wd(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=o.obb,h=!1,p=0;p<t.length;p++){var f=t[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){h=!0;break}if(f.obb||(f.obb=new tv(f.localRect,f.transform)),d||(d=new tv(s,l)),d.intersect(f.obb)){h=!0;break}}}h?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new tv(a,o):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}(ic(o,function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})))},axisName:function(e,t,n,r){var i=_c(e.axisName,t.get("name"));if(i){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),h=d[0]>d[1]?-1:1,p=["start"===s?d[0]-h*c:"end"===s?d[1]+h*c:(d[0]+d[1])/2,lA(s)?e.labelOffset+l*c:0],f=t.get("nameRotate");null!=f&&(f=f*rA/180),lA(s)?o=iA.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(o=function(e,t,n,r){var i,o,a=bg(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;_g(a-rA/2)?(o=l?"bottom":"top",i="center"):_g(a-1.5*rA)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*rA&&a>rA/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(e.rotation,s,f||0,d),null!=(a=e.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),m=t.get("nameTruncate",!0)||{},y=m.ellipsis,v=_c(e.nameTruncateMaxWidth,m.maxWidth,a),x=new eg({x:p[0],y:p[1],rotation:o.rotation,silent:iA.isLabelSilent(t),style:Xv(u,{text:i,font:g,overflow:"truncate",width:v,ellipsis:y,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if($v({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var b=iA.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,em(x).eventData=b}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function aA(e){e&&(e.ignore=!0)}function sA(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=ld([]);return dd(i,i,-e.rotation),n.applyTransform(ud([],i,e.getLocalTransform())),r.applyTransform(ud([],i,t.getLocalTransform())),n.intersect(r)}}function lA(e){return"middle"===e||"center"===e}function uA(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(Jd(a,a,t),Jd(s,s,t));var c=new $y({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Tv(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,o.push(c)}return o}function cA(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];rc(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=fA(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(rc(n.getAxes(),uc(p,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),d="cross"===u.get(["axisPointer","type"]),h=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||d)&&rc(h.baseAxes,uc(p,!d||"cross",c)),d&&rc(h.otherAxes,uc(p,"cross",!1))}}function p(r,s,c){var d=c.model.getModel("axisPointer",i),h=d.get("show");if(h&&("auto"!==h||r||pA(d))){null==s&&(s=d.get("triggerTooltip")),d=r?function(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s={};rc(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(e){s[e]=Zu(a.get(e))}),s.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(l.show??=!1,"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&Ju(l,c.textStyle)}}return e.model.getModel("axisPointer",new px(s,n,r))}(c,u,i,t,r,s):d;var p=d.get("snap"),f=d.get("triggerEmphasis"),g=fA(c.model),m=s||p||"category"===c.type,y=e.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:f,involveSeries:m,snap:p,useHandle:pA(d),seriesModels:[],linkGroup:null};l[g]=y,e.seriesInvolved=e.seriesInvolved||m;var v=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(dA(o[r+"AxisId"],n.id)||dA(o[r+"AxisIndex"],n.componentIndex)||dA(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=v){var x=a[v]||(a[v]={axesInfo:{}});x.axesInfo[g]=y,x.mapper=o[v].mapper,y.linkGroup=x}}}})}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&rc(e.coordSysAxesInfo[fA(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())})})}(n,e),n}function dA(e,t){return"all"===e||cc(e)&&ec(e,t)>=0||e===t}function hA(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[fA(e)]}function pA(e){return!!e.get(["handle","show"])}function fA(e){return e.type+"||"+e.id}var gA={},mA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Du(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&function(e){var t=hA(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=pA(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}(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 o=function(e){var t=hA(e);return t&&t.axisPointerModel}(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){gA[e]=t},t.getAxisPointerClass=function(e){return e&&gA[e]},t.type="axis",t}(oT),yA=Ug();var vA=["axisLine","axisTickLabel","axisName"],xA=["splitArea","splitLine","minorSplitLine"],bA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return Du(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new dy,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=YP(a,t),l=new iA(t,Qu({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(WI(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},s));rc(vA,l.add,l),this._axisGroup.add(l.getGroup()),rc(xA,function(e){t.get([e,"show"])&&_A[e](this,this._axisGroup,t,a)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Ov(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){yA(this).splitAreaColors=null},t.type="cartesianAxis",t}(mA),_A={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=cc(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,d=i.getTicksCoords({tickModel:o}),h=[],p=[],f=a.getLineStyle(),g=0;g<d.length;g++){var m=i.toGlobalCoord(d[g].coord);u?(h[0]=m,h[1]=l.y,p[0]=m,p[1]=l.y+l.height):(h[0]=l.x,h[1]=m,p[0]=l.x+l.width,p[1]=m);var y=c++%s.length,v=d[g].tickValue,x=new $y({anid:null!=v?"line_"+d[g].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},style:Ju({stroke:s[y]},f),silent:!0});Tv(x.shape,f.lineWidth),t.add(x)}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],d=o.getLineStyle(),h=0;h<l.length;h++)for(var p=0;p<l[h].length;p++){var f=i.toGlobalCoord(l[h][p].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new $y({anid:"minor_line_"+l[h][p].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:d,silent:!0});Tv(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){!function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,d=yA(e).splitAreaColors,h=Rc(),p=0;if(d)for(var f=0;f<u.length;f++){var g=d.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var m=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();for(s=cc(s)?s:[s],f=1;f<u.length;f++){var v=i.toGlobalCoord(u[f].coord),x=void 0,b=void 0,_=void 0,w=void 0;i.isHorizontal()?(x=m,b=l.y,_=v-x,w=l.height,m=x+_):(x=l.x,b=m,_=l.width,m=b+(w=v-b));var S=u[f-1].tickValue;null!=S&&h.set(S,p),t.add(new Kf({anid:null!=S?"area_"+S:null,shape:{x:x,y:b,width:_,height:w},style:Ju({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%c}yA(e).splitAreaColors=h}}}(e,t,n,r)}},wA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Du(t,e),t.type="xAxis",t}(bA),SA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=wA.type,t}return Du(t,e),t.type="yAxis",t}(bA),kA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return Du(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Kf({shape:e.coordinateSystem.getRect(),style:Ju({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(oT),CA={offset:0};function TA(e){e.registerComponentView(kA),e.registerComponentModel(PI),e.registerCoordinateSystem("cartesian2d",JP),$I(e,"x",DI,CA),$I(e,"y",DI,CA),e.registerComponentView(wA),e.registerComponentView(SA),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var MA="\0_ec_interaction_mutex";function IA(e){return e[MA]||(e[MA]={})}bI({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Bc);var PA={axisPointer:1,tooltip:1,brush:1};function AA(e,t,n,r,i,o){e=e||0;var a=n[1]-n[0];if(null!=i&&(i=EA(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=EA(s,[0,a]),i=o=EA(s,[i,o]),r=0}t[0]=EA(t[0],n),t[1]=EA(t[1],n);var l=DA(t,r);t[r]+=e;var u=i||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,t[r]=EA(t[r],c);var d=DA(t,r);return null!=i&&(d.sign!==l.sign||d.span<i)&&(t[1-r]=t[r]+l.sign*i),d=DA(t,r),null!=o&&d.span>o&&(t[1-r]=t[r]+d.sign*o),t}function DA(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 EA(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var OA=!0,RA=Math.min,LA=Math.max,zA=Math.pow,NA="globalPan",BA={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},FA={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},$A={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},VA=0,HA=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new dy,n._uid="brushController_"+VA++,rc(gD,function(e,t){this._handlers[t]=lc(e,this)},n),n}return Du(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||function(e,t,n){IA(e)[t]=n}(t,NA,this._uid),rc(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=Ku(Zu($A),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var r=IA(e);r[t]===n&&(r[t]=null)}(e,NA,this._uid),rc(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};rc(e,function(e){t[e.panelId]=Zu(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=ic(e,function(e){return Ku(Zu($A),e,!0)});var t=this._covers,n=this._covers=[],r=this,i=this._creatingCover;return new mx(t,e,function(e,t){return o(e.__brushOption,t)},o).add(a).update(a).remove(function(e){t[e]!==i&&r.group.remove(t[e])}).execute(),this;function o(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function a(o,a){var s=e[o];null!=a&&t[a]===i?n[o]=t[a]:XA(r,n[o]=null!=a?(t[a].__brushOption=s,t[a]):jA(r,WA(r,s)))}},t.prototype.unmount=function(){return this.enableBrush(!1),KA(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(yp);function WA(e,t){var n=yD[t.brushType].createCover(e,t);return n.__brushOption=t,UA(n,t),e.group.add(n),n}function jA(e,t){var n=qA(t);return n.endCreating&&(n.endCreating(e,t),UA(t,t.__brushOption)),t}function GA(e,t){var n=t.__brushOption;qA(t).updateCoverShape(e,t,n.range,n)}function UA(e,t){var n=t.z;n??=1e4,e.traverse(function(e){e.z=n,e.z2=n})}function XA(e,t){qA(t).updateCommon(e,t),GA(e,t)}function qA(e){return yD[e.__brushOption.brushType]}function YA(e,t,n){var r,i=e._panels;if(!i)return OA;var o=e._transform;return rc(i,function(e){e.isTargetByCursor(t,n,o)&&(r=e)}),r}function ZA(e,t){var n=e._panels;if(!n)return OA;var r=t.__brushOption.panelId;return null!=r?n[r]:OA}function KA(e){var t=e._covers,n=t.length;return rc(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function QA(e,t){var n=ic(e._covers,function(e){var t=e.__brushOption,n=Zu(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function JA(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function eD(e,t,n,r){var i=new dy;return i.add(new Kf({name:"main",style:iD(n),silent:!0,draggable:!0,cursor:"move",drift:uc(sD,e,t,i,["n","s","w","e"]),ondragend:uc(QA,t,{isEnd:!0})})),rc(r,function(n){i.add(new Kf({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:uc(sD,e,t,i,n),ondragend:uc(QA,t,{isEnd:!0})}))}),i}function tD(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=LA(i,6),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],d=n[1][1],h=c-o+i/2,p=d-o+i/2,f=c-a,g=d-s,m=f+i,y=g+i;rD(e,t,"main",a,s,f,g),r.transformable&&(rD(e,t,"w",l,u,o,y),rD(e,t,"e",h,u,o,y),rD(e,t,"n",l,u,m,o),rD(e,t,"s",l,p,m,o),rD(e,t,"nw",l,u,o,o),rD(e,t,"ne",h,u,o,o),rD(e,t,"sw",l,p,o,o),rD(e,t,"se",h,p,o,o))}function nD(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(iD(n)),i.attr({silent:!r,cursor:r?"move":"default"}),rc([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var i=t.childOfName(n.join("")),o=1===n.length?aD(e,n[0]):function(e,t){var n=[aD(e,t[0]),aD(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?FA[o]+"-resize":null})})}function rD(e,t,n,r,i,o,a){var s=t.childOfName(n);s&&s.setShape(function(e){var t=RA(e[0][0],e[1][0]),n=RA(e[0][1],e[1][1]),r=LA(e[0][0],e[1][0]),i=LA(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}(cD(e,t,[[r,i],[r+o,i+a]])))}function iD(e){return Ju({strokeNoScale:!0},e.brushStyle)}function oD(e,t,n,r){var i=[RA(e,n),RA(t,r)],o=[LA(e,n),LA(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function aD(e,t){return{left:"w",right:"e",top:"n",bottom:"s"}[Dv({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return Pv(e.group)}(e))]}function sD(e,t,n,r,i,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=uD(t,i,o);rc(r,function(e){var t=BA[e];s[t[0]][t[1]]+=l[t[0]]}),a.range=e.fromRectRange(oD(s[0][0],s[1][0],s[0][1],s[1][1])),XA(t,n),QA(t,{isEnd:!1})}function lD(e,t,n,r){var i=t.__brushOption.range,o=uD(e,n,r);rc(i,function(e){e[0]+=o[0],e[1]+=o[1]}),XA(e,t),QA(e,{isEnd:!1})}function uD(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function cD(e,t,n){var r=ZA(e,t);return r&&r!==OA?r.clipPath(n,e._transform):Zu(n)}function dD(e){var t=e.event;t.preventDefault&&t.preventDefault()}function hD(e,t,n){return e.childOfName("main").contain(t,n)}function pD(e,t,n,r){var i,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],o=n[1]-r[1];return zA(i*i+o*o,.5)>6}(e)||o){if(a&&!o){"single"===s.brushMode&&KA(e);var l=Zu(s);l.brushType=fD(l.brushType,a),l.panelId=a===OA?null:a.panelId,o=e._creatingCover=WA(e,l),e._covers.push(o)}if(o){var u=yD[fD(e._brushType,a)];o.__brushOption.range=u.getCreatingRange(cD(e,o,e._track)),r&&(jA(e,o),u.updateCommon(e,o)),GA(e,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&YA(e,t,n)&&KA(e)&&(i={isEnd:r,removeOnClick:!0});return i}function fD(e,t){return"auto"===e?t.defaultBrushType:e}var gD={mousedown:function(e){if(this._dragging)mD(this,e);else if(!e.target||!e.target.draggable){dD(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=YA(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,o=YA(e,t,n);if(!e._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===OA||s.panelId===o.panelId)&&yD[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}(this,e,r),this._dragging){dD(e);var i=pD(this,e,r,!1);i&&QA(this,i)}},mouseup:function(e){mD(this,e)}};function mD(e,t){if(e._dragging){dD(t);var n=t.offsetX,r=t.offsetY,i=pD(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&QA(e,i)}}var yD={lineX:vD(0),lineY:vD(1),rect:{createCover:function(e,t){function n(e){return e}return eD({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=JA(e);return oD(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){tD(e,t,n,r)},updateCommon:nD,contain:hD},polygon:{createCover:function(e,t){var n=new dy;return n.add(new Ny({name:"main",style:iD(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ly({name:"main",draggable:!0,drift:uc(lD,e,t),ondragend:uc(QA,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:cD(e,t,n)})},updateCommon:nD,contain:hD}};function vD(e){return{createCover:function(t,n){return eD({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=JA(t);return[RA(n[0][e],n[1][e]),LA(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var o,a=ZA(t,n);if(a!==OA&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,o];e&&l.reverse(),tD(t,n,l,i)},updateCommon:nD,contain:hD}}function xD(e){return e=wD(e),function(t){return Rv(t,e)}}function bD(e,t){return e=wD(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(i||0)]}}function _D(e,t,n){var r=wD(e);return function(e,i){return r.contain(i[0],i[1])&&!function(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!PA.hasOwnProperty(r.mainType)&&i&&i.model!==n}(e,t,n)}}function wD(e){return wd.create(e)}var SD=Ug(),kD=Zu,CD=lc,TD=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var d=uc(MD,t,c);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,t)}else a=this._group=new dy,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);DD(a,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="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=hA(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var o=SD(e).pointerEl=new hv[i.type](kD(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=SD(e).labelEl=new eg(kD(t.label));e.add(i),PD(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=SD(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=SD(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),PD(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=zv(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){Ck(e.event)},onmousedown:CD(this._onHandleDragMove,this,0,0),drift:CD(this._onHandleDragMove,this),ondragend:CD(this._onHandleDragEnd,this)}),r.add(i)),DD(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");cc(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,dk(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){MD(this._axisPointerModel,!t&&this._moveAnimation,this._handle,AD(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(AD(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(AD(r)),SD(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),hk(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function MD(e,t,n,r){ID(SD(n).lastProp,r)||(SD(n).lastProp=r,t?av(n,r,e):(n.stopAnimation(),n.attr(r)))}function ID(e,t){if(gc(e)&&gc(t)){var n=!0;return rc(t,function(t,r){n=n&&ID(e[r],t)}),!!n}return e===t}function PD(e,t){e[t.get(["label","show"])?"show":"hide"]()}function AD(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function DD(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)})}function ED(e,t,n,r,i){var o=OD(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Y_(a.get("padding")||0),l=a.getFont(),u=Td(o,l),c=i.position,d=u.width+s[1]+s[3],h=u.height+s[0]+s[2],p=i.align;"right"===p&&(c[0]-=d),"center"===p&&(c[0]-=d/2);var f=i.verticalAlign;"bottom"===f&&(c[1]-=h),"middle"===f&&(c[1]-=h/2),function(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(c,d,h,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:Xv(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function OD(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:TP(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};rc(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),hc(a)?o=a.replace("{value}",o):dc(a)&&(o=a(s))}return o}function RD(e,t,n){var r=[1,0,0,1,0,0];return dd(r,r,n.rotation),cd(r,r,n.position),Av([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}var LD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=zD(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=function(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}(r),d=ND[s](o,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}!function(e,t,n,r,i,o){var a=iA.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),ED(t,r,i,o,{position:RD(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(t,e,YP(a.model,n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=YP(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=RD(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,o=i.grid,a=i.getGlobalExtent(!0),s=zD(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];return d[l]=u[l],{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(TD);function zD(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var ND={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:(r=[t,n[0]],i=[t,n[1]],o=BD(e),{x1:r[o=o||0],y1:r[1-o],x2:i[o],y2:i[1-o]})};var r,i,o},shadow:function(e,t,n){var r,i,o,a=Math.max(1,e.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(r=[t-a/2,n[0]],i=[a,s],o=BD(e),{x:r[o=o||0],y:r[1-o],width:i[o],height:i[1-o]})}}};function BD(e){return"x"===e.dim?0:1}var FD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Du(t,e),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:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(hw),$D=Ug(),VD=rc;function HD(e,t,n){if(!Vc.node){var r=t.getZr();$D(r).records||($D(r).records={}),function(e,t){if($D(e).initialized)return;function n(n,r){e.on(n,function(n){var i=function(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}}(t);VD($D(e).records,function(e){e&&r(e,n,i.dispatchAction)}),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)})}$D(e).initialized=!0,n("click",uc(jD,"click")),n("mousemove",uc(jD,"mousemove")),n("globalout",WD)}(r,t),($D(r).records[e]||($D(r).records[e]={})).handler=n}}function WD(e,t,n){e.handler("leave",null,n)}function jD(e,t,n,r){t.handler(e,n,r)}function GD(e,t){if(!Vc.node){var n=t.getZr();($D(n).records||{})[e]&&($D(n).records[e]=null)}}var UD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Du(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";HD("axisPointer",n,function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){GD("axisPointer",t)},t.prototype.dispose=function(e,t){GD("axisPointer",t)},t.type="axisPointer",t}(oT);function XD(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=Gg(o,e);if(null==a||a<0||cc(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,d=u.dim,h="x"===c||"radius"===c?1:0,p=o.mapDimension(d),f=[];f[h]=o.get(p,a),f[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(f)||[]}else r=l.dataToPoint(o.getValues(ic(l.dimensions,function(e){return o.mapDimension(e)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var qD=Ug();function YD(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||lc(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){eE(i)&&(i=XD({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=eE(i),u=o.axesInfo,c=s.axesInfo,d="leave"===r||eE(i),h={},p={},f={list:[],map:{}},g={showPointer:uc(KD,p),showTooltip:uc(QD,f)};rc(s.coordSysMap,function(e,t){var n=l||e.containPoint(i);rc(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,o=function(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}}(u,e);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&ZD(e,a,g,!1,h)}})});var m={};return rc(c,function(e,t){var n=e.linkGroup;n&&!p[t]&&rc(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,JD(t),JD(e)))),m[e.key]=o}})}),rc(m,function(e,t){ZD(c[t],e,g,!0,h)}),function(e,t,n){var r=n.axesInfo=[];rc(t,function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}(p,c,h),function(e,t,n,r){if(eE(t)||!e.list.length)return void r({type:"hideTip"});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})}(f,i,e,a),function(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=qD(r)[i]||{},a=qD(r)[i]={};rc(e,function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&rc(n.seriesDataIndices,function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e})});var s=[],l=[];rc(o,function(e,t){!a[t]&&l.push(e)}),rc(a,function(e,t){!o[t]&&s.push(e)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),h}}function ZD(e,t,n,r,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return rc(t.seriesModels,function(t,l){var u,c,d=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var h=t.getAxisTooltipData(d,e,n);c=h.dataIndices,u=h.nestestValue}else{if(!(c=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null)).length)return;u=t.getData().get(d[0],c[0])}if(null!=u&&isFinite(u)){var p=e-u,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,i=u,o.length=0),rc(c,function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:o,snapToValue:i}}(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Qu(i,s[0]),!r&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function KD(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function QD(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=fA(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function JD(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 eE(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function tE(e){mA.registerAxisPointerClass("CartesianAxisPointer",LD),e.registerComponentModel(FD),e.registerComponentView(UD),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!cc(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=cA(e,t)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},YD)}var nE=["x","y","radius","angle","single"],rE=["cartesian2d","polar","singleAxis"];function iE(e){return e+"Axis"}function oE(e,t){var n,r=Rc(),i=[],o=Rc();e.eachComponent({mainType:"dataZoom",query:t},function(e){o.get(e.uid)||s(e)});do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis(function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)}),t}(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),i.push(e),e.eachTargetAxis(function(e,t){(r.get(e)||r.set(e,[]))[t]=!0})}return i}var aE=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}(),sE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Du(t,e),t.prototype.init=function(e,t,n){var r=lE(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=lE(e);Ku(this.option,e,!0),Ku(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;rc([["start","startValue"],["end","endValue"]],function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Rc();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 rc(nE,function(n){var r=this.getReferringComponents(iE(n),Kg);if(r.specified){t=!0;var i=new aE;rc(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="vertical"===t?"y":"x";o(n.findComponents({mainType:i+"Axis"}),i)}r&&o(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function o(t,n){var i=t[0];if(i){var o=new aE;if(o.add(i.componentIndex),e.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",Zg).models[0];a&&rc(t,function(e){i.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",Zg).models[0]&&o.add(e.componentIndex)})}}}r&&rc(nE,function(t){if(r){var i=n.findComponents({mainType:iE(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var o=new aE;o.add(i[0].componentIndex),e.set(t,o),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),"y"===e?"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");rc([["start","startValue"],["end","endValue"]],function(r,i){var o=null!=e[r[0]],a=null!=e[r[1]];o&&!a?t[i]="percent":!o&&a?t[i]="value":n?t[i]=n[i]:o&&(t[i]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){null==e&&(e=this.ecModel.getComponent(iE(t),n))},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){rc(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(iE(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;rc([["start","startValue"],["end","endValue"]],function(r){null==e[r[0]]&&null==e[r[1]]||(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;rc(["start","startValue","end","endValue"],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;t||(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}(hw);function lE(e){var t={};return rc(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var uE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Du(t,e),t.type="dataZoom.select",t}(sE),cE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Du(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(oT),dE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Du(t,e),t.type="dataZoom.select",t}(cE),hE=rc,pE=mg,fE=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.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(function(e){return ec(rE,e.get("coordinateSystem"))>=0}(t)){var n=iE(this._dimName),r=t.getReferringComponents(n,Zg).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 Zu(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];hE(["start","end"],function(l,u){var c=e[l],d=e[l+"Value"];"percent"===i[u]?(c??=o[u],d=r.parse(pg(c,o,n))):(t=!0,c=pg(d=null==d?n[u]:r.parse(d),n,o)),s[u]=null==d||isNaN(d)?n[u]:d,a[u]=null==c||isNaN(c)?o[u]:c}),pE(s),pE(a);var l=this._minMaxSpan;function u(e,t,n,i,o){var a=o?"Span":"ValueSpan";AA(0,e,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)t[s]=pg(e[s],n,i,!0),o&&(t[s]=r.parse(t[s]))}return t?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var r=[1/0,-1/0];hE(n,function(e){!function(e,t,n){t&&rc(AP(t,n),function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])})}(r,e.getData(),t)});var i=e.getAxisModel(),o=_P(i.axis.scale,i,r).calculate();return[o.min,o.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;"none"!==i&&hE(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var a=t.getStore(),s=ic(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,l=0;l<r.length;l++){var u=a.get(s[l],e),c=!isNaN(u),d=u<o[0],h=u>o[1];if(c&&!d&&!h)return!0;c&&(i=!0),d&&(t=!0),h&&(n=!0)}return i&&t&&n})}else hE(r,function(n){if("empty"===i)e.setData(t=t.map(n,function(e){return function(e){return e>=o[0]&&e<=o[1]}(e)?e:NaN}));else{var r={};r[n]=o,t.selectRange(r)}});hE(r,function(e){t.setApproximateExtent(o,e)})}})}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;hE(["min","max"],function(r){var i=t.get(r+"Span"),o=t.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=pg(n[0]+o,n,[0,100],!0):null!=i&&(o=pg(i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=vg(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}();var gE={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(iE(r),i),n)})})}t(function(e,t,n,r){n.__dzAxisProxy=null});var n=[];t(function(t,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new fE(t,r,o,e),n.push(i.__dzAxisProxy))});var r=Rc();return rc(n,function(e){rc(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),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.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};var mE=!1;function yE(e){mE||(mE=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,gE),function(e){e.registerAction("dataZoom",function(e,t){rc(oE(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function vE(e){e.registerComponentModel(uE),e.registerComponentView(dE),yE(e)}var xE=function(){},bE={};function _E(e,t){bE[e]=t}function wE(e){return bE[e]}var SE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Du(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;rc(this.option.feature,function(e,n){var r=wE(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),Ku(e,r.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(hw);function kE(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=sw(r,o,i);aw(t.get("orient"),e,t.get("itemGap"),a.width,a.height),function(e,t,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if((o=o||e).x=e.x,o.y=e.y,!s&&!l)return!1;if("raw"===u)a="group"===e.type?new wd(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();(a=a.clone()).applyTransform(c)}var d=sw(Ju({width:a.width,height:a.height},t),n,r),h=s?d.x-a.x:0,p=l?d.y-a.y:0;"raw"===u?(o.x=h,o.y=p):(o.x+=h,o.y+=p),o===e&&e.markRedraw()}(e,r,o,i)}function CE(e,t){var n=Y_(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Kf({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})}var TE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];rc(s,function(e,t){u.push(t)}),new mx(this._featureNames||[],u).add(c).update(c).remove(uc(c,null)).execute(),this._featureNames=u,kE(i,e,n),i.add(CE(i.getBoundingRect(),e)),a||i.eachChild(function(e){var t=e.__title,r=e.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!dc(l)&&t){var u=l.style||(l.style={}),c=Td(t,eg.makeFont(u)),d=e.x+i.x,h=!1;e.y+i.y+o+c.height>n.getHeight()&&(a.position="top",h=!0);var p=h?-5-c.height:o+10;d+c.width/2>n.getWidth()?(a.position=["100%",p],u.align="right"):d-c.width/2<0&&(a.position=[0,p],u.align="left")}})}function c(c,d){var h,p=u[c],f=u[d],g=s[p],m=new px(g,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===p&&(g.title=r.newTitle),p&&!f){if(function(e){return 0===e.indexOf("my")}(p))h={onclick:m.option.onclick,featureName:p};else{var y=wE(p);if(!y)return;h=new y}l[p]=h}else if(!(h=l[f]))return;h.uid=Qb("toolbox-feature"),h.model=m,h.ecModel=t,h.api=n;var v=h instanceof xE;p||!f?!m.get("show")||v&&h.unusable?v&&h.remove&&h.remove(t,n):(!function(r,s,l){var u,c,d=r.getModel("iconStyle"),h=r.getModel(["emphasis","iconStyle"]),p=s instanceof xE&&s.getIcons?s.getIcons():r.get("icon"),f=r.get("title")||{};hc(p)?(u={})[l]=p:u=p;hc(f)?(c={})[l]=f:c=f;var g=r.iconPaths={};rc(u,function(l,u){var p=zv(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(d.getItemStyle()),p.ensureState("emphasis").style=h.getItemStyle();var f=new eg({style:{text:c[u],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null,font:Jv({fontStyle:h.get("textFontStyle"),fontFamily:h.get("textFontFamily"),fontSize:h.get("textFontSize"),fontWeight:h.get("textFontWeight")},t)},ignore:!0});p.setTextContent(f),$v({el:p,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",function(){var t=h.getItemStyle(),r=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";f.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),p.setTextConfig({position:h.get("textPosition")||r}),f.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()}),("emphasis"===r.get(["iconStatus",u])?Mm:Im)(p),i.add(p),p.on("click",lc(s.onclick,s,t,n,u)),g[u]=p})}(m,h,p),m.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?Mm:Im)(r[e])},h instanceof xE&&h.render&&h.render(m,t,n,r)):v&&h.dispose&&h.dispose(t,n)}},t.prototype.updateView=function(e,t,n,r){rc(this._features,function(e){e instanceof xE&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){rc(this._features,function(n){n instanceof xE&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){rc(this._features,function(n){n instanceof xE&&n.dispose&&n.dispose(e,t)})},t.type="toolbox",t}(oT);var ME=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=Vc.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||i){var l=a.split(","),u=l[0].indexOf("base64")>-1,c=i?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var d=r+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var h=c.length,p=new Uint8Array(h);h--;)p[h]=c.charCodeAt(h);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,d)}else{var g=document.createElement("iframe");document.body.appendChild(g);var m=g.contentWindow,y=m.document;y.open("image/svg+xml","replace"),y.write(c),y.close(),m.focus(),y.execCommand("SaveAs",!0,d),document.body.removeChild(g)}}else{var v=n.get("lang"),x='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(v&&v[0]||"")+'" /></body>',b=window.open();b.document.write(x),b.document.title=r}else{var _=document.createElement("a");_.download=r+"."+o,_.target="_blank",_.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});_.dispatchEvent(w)}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(xE),IE="__ec_magicType_stack__",PE=[["line","bar"],["stack"]],AE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return rc(e.get("type"),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);if(DE[n]){var o,a={series:[]};rc(PE,function(e){ec(e,n)>=0&&rc(e,function(e){r.setIconStatus(e,"normal")})}),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=DE[n](t,i,e,r);o&&(Ju(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=e.getReferringComponents(u,Zg).models[0].componentIndex;a[u]=a[u]||[];for(var d=0;d<=c;d++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(o=Ku({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},t}(xE),DE={line:function(e,t,n,r){if("bar"===e)return Ku({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return Ku({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i=n.get("stack")===IE;if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),Ku({id:t,stack:i?"":IE},r.get(["option","stack"])||{},!0)}};bI({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var EE=new Array(60).join("-"),OE="\t";function RE(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var LE=new RegExp("[\t]+","g");function zE(e,t){var n=e.split(new RegExp("\n*"+EE+"\n*","g")),r={series:[]};return rc(n,function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(OE)>=0)return!0}(e)){var i=function(e){for(var t=e.split(/\n+/g),n=[],r=ic(RE(t.shift()).split(LE),function(e){return{name:e,data:[]}}),i=0;i<t.length;i++){var o=RE(t[i]).split(LE);n.push(o.shift());for(var a=0;a<o.length;a++)r[a]&&(r[a].data[i]=o[a])}return{series:r,categories:n}}(e),o=t[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=function(e){for(var t=e.split(/\n+/g),n=RE(t.shift()),r=[],i=0;i<t.length;i++){var o=RE(t[i]);if(o){var a=o.split(LE),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}(e);r.series.push(i)}}),r}var NE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:"hideTip"})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),d=function(e){var t,n,r,i=function(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}(e);return{value:ac([(n=i.seriesGroupByCategoryAxis,r=[],rc(n,function(e,t){var n=e.categoryAxis,i=e.valueAxis.dim,o=[" "].concat(ic(e.series,function(e){return e.name})),a=[n.model.getCategories()];rc(e.series,function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[o.join(OE)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(OE))}r.push(s.join("\n"))}),r.join("\n\n"+EE+"\n\n")),(t=i.other,ic(t,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],o=t.getName(i),a=0;a<e-1;a++)r[a]=arguments[a];n.push((o?o+OE:"")+r.join(OE))}),n.join("\n")}).join("\n\n"+EE+"\n\n"))],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join("\n\n"+EE+"\n\n"),meta:i.meta}}(e);if(dc(u)){var h=u(t.getOption());hc(h)?s.innerHTML=h:vc(h)&&s.appendChild(h)}else{l.readOnly=r.get("readOnly");var p=l.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=r.get("textColor"),p.borderColor=r.get("textareaBorderColor"),p.backgroundColor=r.get("textareaColor"),l.value=d.value,s.appendChild(l)}var f=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",y=document.createElement("div"),v=document.createElement("div");m+=";background-color:"+r.get("buttonColor"),m+=";color:"+r.get("buttonTextColor");var x=this;function b(){n.removeChild(i),x._dom=null}Sk(y,"click",b),Sk(v,"click",function(){if(null==c&&null!=u||null!=c&&null==u)b();else{var e;try{e=dc(c)?c(s,t.getOption()):zE(l.value,f)}catch(Ty){throw b(),new Error("Data view format error "+Ty)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),b()}}),y.innerHTML=a[1],v.innerHTML=a[2],v.style.cssText=y.style.cssText=m,!r.get("readOnly")&&g.appendChild(v),g.appendChild(y),i.appendChild(o),i.appendChild(s),i.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(xE);function BE(e,t){return ic(e,function(e,n){var r=t&&t[n];if(gc(r)&&!cc(r)){gc(e)&&!cc(e)||(e={value:e});var i=null!=r.name&&null==e.name;return e=Ju(e,r),i&&delete e.name,e}return e})}bI({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];rc(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(r){var i=r.get("data");n.push({name:e.name,data:BE(e.data,i)})}else n.push(Qu({type:"scatter"},e))}),t.mergeOption(Ju({series:n},e.newOption))});var FE=rc,$E=Ug();function VE(e){var t=$E(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var HE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.prototype.onclick=function(e,t){!function(e){$E(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(xE);bI({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var WE=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],jE=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=UE(t,e);rc(XE,function(e,t){(!n||!n.include||ec(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=ZE[e.brushType](0,n,t);e.__rangeOffset={offset:QE[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){rc(e,function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&rc(r.coordSyses,function(r){n(e,ZE[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){rc(e,function(e){var n,r,i,o,a,s=this.findTargetInfo(e,t);if(e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var l=ZE[e.brushType](0,s.coordSys,e.coordRange),u=e.__rangeOffset;e.range=u?QE[e.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.xyMinMax,i=eO(n),o=eO(r),a=[i[0]/o[0],i[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}},this)},e.prototype.makePanelOpts=function(e,t){return ic(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:xD(r),isTargetByCursor:_D(r,e,n.coordSysModel),getLinearBrushOtherExtent:bD(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&ec(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=UE(t,e),i=0;i<n.length;i++){var o=n[i],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<qE.length;s++)if(qE[s](r,o))return o}return!0},e}();function GE(e){return e[0]>e[1]&&e.reverse(),e}function UE(e,t){return qg(e,t,{includeMainTypes:WE})}var XE={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,o=Rc(),a={},s={};(n||r||i)&&(rc(n,function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0}),rc(r,function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0}),rc(i,function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0}),o.each(function(e){var i=e.coordinateSystem,o=[];rc(i.getCartesians(),function(e,t){(ec(n,e.getAxis("x").model)>=0||ec(r,e.getAxis("y").model)>=0)&&o.push(e)}),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:YE.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){rc(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:YE.geo})})}},qE=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],YE={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Pv(e)),t}},ZE={lineX:uc(KE,0),lineY:uc(KE,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),o=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),a=[GE([i[0],o[0]]),GE([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:ic(n,function(n){var o=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o}),xyMinMax:i}}};function KE(e,t,n,r){var i=n.getAxis(["x","y"][e]),o=GE(ic([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var QE={lineX:uc(JE,0),lineY:uc(JE,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return ic(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function JE(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function eO(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var tO,nO,rO=rc,iO=Og+"toolbox-dataZoom_",oO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Du(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new HA(n.getZr()),this._brushController.on("brush",lc(this._onBrush,this)).mount()),function(e,t,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new jE(sO(e),t,{include:["grid"]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,r,n),function(e,t){e.setIconStatus("back",function(e){return VE(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){aO[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new jE(sO(this.model),r,{include:["grid"]}).matchOutputRanges(t,r,function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(i("x",n,t[0]),i("y",n,t[1])):i({lineX:"x",lineY:"y"}[r],n,t)}}),function(e,t){var n=VE(e);FE(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var a=o.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}}),n.push(t)}(r,n),this._dispatchZoomAction(n)}function i(e,t,i){var o=t.getAxis(e),a=o.model,s=function(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}(e,a,r),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=AA(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];rO(e,function(e,n){t.push(Zu(e))}),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(xE),aO={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=VE(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return FE(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n]){r[n]=e;break}}),r}(this.ecModel))}};function sO(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}tO="dataZoom",nO=function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),i=[],o=qg(e,sO(r));return rO(o.xAxisModels,function(e){return a(e,"xAxis","xAxisIndex")}),rO(o.yAxisModels,function(e){return a(e,"yAxis","yAxisIndex")}),i}function a(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:iO+t+o};a[n]=o,i.push(a)}},Tc(null==MC.get(tO)&&nO),MC.set(tO,nO);var lO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Du(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(hw);function uO(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function cO(e){if(Vc.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var dO=cO(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function hO(e,t){if(!e)return t;t=q_(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var pO=hO(cO(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),fO=hO(dO,"transform"),gO="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Vc.transform3dSupported?"will-change:transform;":"");function mO(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Vc.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Vc.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+fO+":"+a+";":[["top",0],["left",0],[dO,a]]}function yO(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=Gw(e,"html"),h=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+h),t&&i&&r.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=Vc.transformSupported?","+fO+r:",left"+r+",top"+r),pO+":"+i}(i,n)),o&&r.push("background-color:"+o),rc(["width","color","radius"],function(t){var n="border-"+t,i=q_(n),o=e.get(i);null!=o&&r.push(n+":"+o+("color"===t?"":"px"))}),r.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),rc(["decoration","align"],function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)}),t.join(";")}(c)),null!=d&&r.push("padding:"+Y_(d).join("px ")+"px"),r.join(";")+";"}function vO(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&function(e,t,n,r,i){o_(i_,t,r,i,!0)&&o_(e,n,i_[0],i_[1])}(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var xO=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,Vc.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,o=i&&(hc(i)?document.querySelector(i):vc(i)?i:dc(i)&&i(e.getDom()));vO(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler;wk(r.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=function(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}(t,"position"),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,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=gO+yO(e,!this._firstShow,this._longHide)+mO(i[0],i[1],!0)+"border-color:"+ew(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 o=this.el;if(null!=e){var a="";if(hc(i)&&"item"===n.get("trigger")&&!uO(n)&&(a=function(e,t,n){if(!hc(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=ew(t);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=fO+":";ec(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var d=a*Math.PI/180,h=l+i,p=h*Math.abs(Math.cos(d))+h*Math.abs(Math.sin(d)),f=t+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-h)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),hc(e))o.innerHTML=e+a;else if(e){o.innerHTML="",cc(e)||(e=[e]);for(var s=0;s<e.length;s++)vc(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(vO(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style;rc(mO(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;t.visibility="hidden",t.opacity="0",Vc.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(lc(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.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),bO=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),SO(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 o=this;gc(e)&&Ag(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new eg({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Gw(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),rc(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(e){o.el.style[e]=n.get(e)}),rc(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(e){o.el.style[e]=a.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=wO(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;SO(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,o=_O(i.borderWidth||0),a=wO(i);n.x=e+o+a.left,n.y=t+o+a.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(lc(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function _O(e){return Math.max(0,e)}function wO(e){var t=_O(e.shadowBlur||0),n=_O(e.shadowOffsetX||0),r=_O(e.shadowOffsetY||0);return{left:_O(t-n),right:_O(t+n),top:_O(t-r),bottom:_O(t+r)}}function SO(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var kO=new Kf({shape:{x:-1,y:-1,width:2,height:2}}),CO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Du(t,e),t.prototype.init=function(e,t){if(!Vc.node&&t.getDom()){var n,r=e.getComponent("tooltip");this._tooltipContent="richText"===(this._renderMode="auto"===(n=r.get("renderMode"))?Vc.domSupported?"html":"richText":n||"html")?new bO(t):new xO(t,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!Vc.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(),"richText"!==this._renderMode&&e.get("transitionDuration")?dk(this,"_updatePosition",50,"fixRate"):hk(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");HD("itemTooltip",this._api,lc(function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){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&&!Vc.node&&n.getDom()){var i=MO(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(e,t,n){var r=Yg(e).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o=Qg(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!o)return;var a,s=n.getViewOfComponentModel(o);if(s.group.traverse(function(t){var n=em(t).tooltipConfig;if(n&&n.name===e.name)return a=t,!0}),a)return{componentMainType:i,componentIndex:o.componentIndex,el:a}}(r,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=kO;l.x=r.x,l.y=r.y,l.update(),em(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=XD(r,t),c=u.point[0],d=u.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(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,r.from!==this.uid&&this._hide(MO(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s&&"axis"===TO([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,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("legend"===em(n).ssrType)return;var i,o;this._lastDataByCoordSys=null,WT(n,function(e){return null!=em(e).dataIndex?(i=e,!0):null!=em(e).tooltipConfig?(o=e,!0):void 0},!0),i?this._showSeriesItemTooltip(e,i,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=lc(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],o=TO([t.tooltipOption],r),a=this._renderMode,s=[],l=zw("section",{blocks:[],noHeader:!0}),u=[],c=new Uw;rc(e,function(e){rc(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var o=OD(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=zw("section",{header:o,noHeader:!Mc(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),rc(e.seriesDataIndices,function(l){var h=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=h.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=TP(t.axis,{value:i}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",ew(f.color),a);var g=yw(h.formatTooltip(p,!0,null)),m=g.frag;if(m){var y=TO([h],r).get("valueFormatter");d.blocks.push(y?Qu({valueFormatter:y},m):m)}g.text&&u.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var d=t.position,h=Hw(l,c,a,o.get("order"),n.get("useUTC"),o.get("textStyle"));h&&u.unshift(h);var p="richText"===a?"\n\n":"<br/>",f=u.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,f,s,Math.random()+"",i[0],i[1],d,null,c)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=em(t),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),d=this._renderMode,h=e.positionDefault,p=TO([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),m=new Uw;g.marker=m.makeTooltipMarker("item",ew(g.color),d);var y=yw(s.formatTooltip(l,!1,u)),v=p.get("order"),x=p.get("valueFormatter"),b=y.frag,_=b?Hw(x?Qu({valueFormatter:x},b):b,m,d,v,r.get("useUTC"),p.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(p,function(){this._showTooltipContent(p,_,g,w,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r="html"===this._renderMode,i=em(t),o=i.tooltipConfig.option||{},a=o.encodeHTMLContent;if(hc(o)){o={content:o,formatter:o},a=!0}a&&r&&o.content&&((o=Zu(o)).content=u_(o.content));var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=e.positionDefault,c=TO(s,this._tooltipModel,u?{position:u}:null),d=c.get("content"),h=Math.random()+"",p=new Uw;this._showOrMove(c,function(){var n=Zu(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,h,e.offsetX,e.offsetY,e.position,t,p)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var d=t,h=this._getNearestPoint([i,o],n,e.get("trigger"),e.get("borderColor")).color;if(c)if(hc(c)){var p=e.ecModel.get("useUTC"),f=cc(n)?n[0]:n;d=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(d=A_(f.axisValue,d,p)),d=J_(d,n,!0)}else if(dc(c)){var g=lc(function(t,r){t===this._ticket&&(u.setContent(r,l,e,h,a),this._updatePosition(e,a,i,o,u,n,s))},this);this._ticket=r,d=c(n,r,g)}else d=c;u.setContent(d,l,e,h,a),u.show(e,h),this._updatePosition(e,a,i,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||cc(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:cc(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=i.getSize(),c=e.get("align"),d=e.get("verticalAlign"),h=a&&a.getBoundingRect().clone();if(a&&h.applyTransform(a.transform),dc(t)&&(t=t([n,r],o,i.el,h,{viewSize:[s,l],contentSize:u.slice()})),cc(t))n=fg(t[0],s),r=fg(t[1],l);else if(gc(t)){var p=t;p.width=u[0],p.height=u[1];var f=sw(p,{width:s,height:l});n=f.x,r=f.y,c=null,d=null}else if(hc(t)&&a){var g=function(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}(t,h,u,e.get("borderWidth"));n=g[0],r=g[1]}else{g=function(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(e+l+o+2>r?e-=l+o:e+=o);null!=a&&(t+u+a>i?t-=u+a:t+=a);return[e,t]}(n,r,i,s,l,c?null:20,d?null:20);n=g[0],r=g[1]}if(c&&(n-=IO(c)?u[0]/2:"right"===c?u[0]:0),d&&(r-=IO(d)?u[1]/2:"bottom"===d?u[1]:0),uO(e)){g=function(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,i,s,l);n=g[0],r=g[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&&rc(n,function(n,o){var a=n.dataByAxis||[],s=(e[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&rc(a,function(e,n){var o=s[n]||{},a=e.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===l.length)&&rc(a,function(e,t){var n=l[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&rc(e.seriesDataIndices,function(e){var n=e.seriesIndex,o=t[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!Vc.node&&t.getDom()&&(hk(this,"_updatePosition"),this._tooltipContent.dispose(),GD("itemTooltip",t))},t.type="tooltip",t}(oT);function TO(e,t,n){var r,i=t.ecModel;n?(r=new px(n,i,i),r=new px(t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof px&&(a=a.get("tooltip",!0)),hc(a)&&(a={formatter:a}),a&&(r=new px(a,r,i)))}return r}function MO(e,t){return e.dispatchAction||lc(t.dispatchAction,t)}function IO(e){return"center"===e||"middle"===e}var PO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Du(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(hw),AO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Du(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=wc(e.get("textBaseline"),e.get("textVerticalAlign")),l=new eg({style:Xv(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),d=new eg({style:Xv(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=e.get("link"),p=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!h&&!f,d.silent=!p&&!f,h&&l.on("click",function(){tw(h,"_"+e.get("target"))}),p&&d.on("click",function(){tw(p,"_"+e.get("subtarget"))}),em(l).eventData=em(d).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),c&&r.add(d);var g=r.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var y=sw(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var v={align:a,verticalAlign:s};l.setStyle(v),d.setStyle(v),g=r.getBoundingRect();var x=y.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var _=new Kf({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});r.add(_)}},t.type="title",t}(oT);var DO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Du(t,e),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;!0===t&&(t=e.selector=["all","inverse"]),cc(t)&&rc(t,function(e,r){hc(e)&&(e={type:e}),t[r]=Ku(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){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,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(a)),a.length?t=t.concat(a):i=!0}else i=!0;i&&Wg(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get("data")||t,i=Rc(),o=ic(r,function(e){return(hc(e)||fc(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new px(e,this,this.ecModel))},this);this._data=ac(o,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&rc(this._data,function(e){t[e.get("name")]=!1});t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(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;rc(e,function(e){t[e.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;rc(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])&&ec(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{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",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(hw),EO=uc,OO=rc,RO=dy,LO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return Du(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new RO),this.group.add(this._selectorGroup=new RO),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"),o=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),d=sw(l,u,c),h=this.layoutInner(e,i,d,r,a,s),p=sw(Ju({width:h.width,height:h.height},l),u,c);this.group.x=p.x-h.x,this.group.y=p.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=CE(h,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,o,a){var s=this.getContentGroup(),l=Rc(),u=t.get("selectedMode"),c=[];n.eachRawSeries(function(e){!e.get("legendHoverLink")&&c.push(e.id)}),OO(t.getData(),function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new RO;return d.newline=!0,void s.add(d)}var h=n.getSeriesByName(a)[0];if(!l.get(a))if(h){var p=h.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),m=p.getVisual("style"),y=this._createItem(h,a,o,i,t,e,f,m,g,u,r);y.on("click",EO(zO,a,null,r,c)).on("mouseover",EO(BO,h.name,null,r,c)).on("mouseout",EO(FO,h.name,null,r,c)),n.ssr&&y.eachChild(function(e){var t=em(e);t.seriesIndex=h.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),l.set(a,!0)}else n.eachRawSeries(function(s){if(!l.get(a)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(a))return;var h=d.indexOfName(a),p=d.getItemVisual(h,"style"),f=d.getItemVisual(h,"legendIcon"),g=Yh(p.fill);g&&0===g[3]&&(g[3]=.2,p=Qu(Qu({},p),{fill:Jh(g,"rgba")}));var m=this._createItem(s,a,o,i,t,e,{},p,f,u,r);m.on("click",EO(zO,null,a,r,c)).on("mouseover",EO(BO,null,a,r,c)).on("mouseout",EO(FO,null,a,r,c)),n.ssr&&m.eachChild(function(e){var t=em(e);t.seriesIndex=s.seriesIndex,t.dataIndex=o,t.ssrType="legend"}),l.set(a,!0)}},this)},this),i&&this._createSelector(i,t,r,o,a)},t.prototype._createSelector=function(e,t,n,r,i){var o=this.getSelectorGroup();OO(e,function(e){var r=e.type,i=new eg({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),Gv(i,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),Fm(i)})},t.prototype._createItem=function(e,t,n,r,i,o,a,s,l,u,c){var d=e.visualDrawType,h=i.get("itemWidth"),p=i.get("itemHeight"),f=i.isSelected(t),g=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),y=r.get("icon"),v=function(e,t,n,r,i,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),OO(e,function(n,r){"inherit"===e[r]&&(e[r]=t[r])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?yM(d,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]);"inherit"===u.stroke&&(u.stroke=r[c]);"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity);s(u,r);var h=t.getModel("lineStyle"),p=h.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!o){var f=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=h.get("inactiveColor"),p.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=y||l||"roundRect",r,a,s,d,f,c),x=new RO,b=r.getModel("textStyle");if(!dc(e.getLegendIcon)||y&&"inherit"!==y){var _="inherit"===y&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;x.add(function(e){var t=e.icon||"roundRect",n=hS(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);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="#fff",n.style.lineWidth=2);return n}({itemWidth:h,itemHeight:p,icon:l,iconRotate:_,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:m}))}else x.add(e.getLegendIcon({itemWidth:h,itemHeight:p,icon:l,iconRotate:g,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:m}));var w="left"===o?h+5:-5,S=o,k=i.get("formatter"),C=t;hc(k)&&k?C=k.replace("{name}",null!=t?t:""):dc(k)&&(C=k(t));var T=f?b.getTextColor():r.get("inactiveColor");x.add(new eg({style:Xv(b,{text:C,x:w,y:p/2,fill:T,align:S,verticalAlign:"middle"},{inheritColor:T})}));var M=new Kf({shape:x.getBoundingRect(),style:{fill:"transparent"}}),I=r.getModel("tooltip");return I.get("show")&&$v({el:M,componentModel:i,itemName:t,itemTooltipOption:I.option}),x.add(M),x.eachChild(function(e){e.silent=!0}),M.silent=!u,this.getContentGroup().add(x),Fm(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();aw(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){aw("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],h=e.get("selectorButtonGap",!0),p=e.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===o?d[p]+=l[f]+h:u[p]+=c[f]+h,d[1-p]+=l[g]/2-c[g]/2,s.x=d[0],s.y=d[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+h+c[f],y[g]=Math.max(l[g],c[g]),y[m]=Math.min(0,c[m]+d[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(oT);function zO(e,t,n,r){FO(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),BO(e,t,n,r)}function NO(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(t=n[r].states.emphasis);)r++;return t&&t.hoverLayer}function BO(e,t,n,r){NO(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function FO(e,t,n,r){NO(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function $O(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 VO(e,t,n){var r,i={},o="toggleSelected"===e;return n.eachComponent("legend",function(n){o&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name)),rc(n.getData(),function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);i.hasOwnProperty(t)?i[t]=i[t]&&r:i[t]=r}})}),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function HO(e){e.registerComponentModel(DO),e.registerComponentView(LO),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,$O),e.registerSubTypeDefaulter("legend",function(){return"plain"}),function(e){e.registerAction("legendToggleSelect","legendselectchanged",uc(VO,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",uc(VO,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",uc(VO,"inverseSelect")),e.registerAction("legendSelect","legendselected",uc(VO,"select")),e.registerAction("legendUnSelect","legendunselected",uc(VO,"unSelect"))}(e)}var WO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Du(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=cw(t);e.prototype.init.call(this,t,n,r),jO(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),jO(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Jb(DO.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(DO);function jO(e,t,n){var r=[1,1];r[e.getOrient().index]=0,uw(t,n,{type:"box",ignoreSize:!!r})}var GO=dy,UO=["width","height"],XO=["x","y"],qO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Du(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new GO),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new GO)},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,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),d=cc(c)?c:[c,c];p("pagePrev",0);var h=n.getModel("pageTextStyle");function p(e,t){var r=e+"DataIndex",o=zv(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:lc(l._pageGo,l,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});o.name=e,u.add(o)}u.add(new eg({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=UO[s],u=XO[s],c=UO[1-s],d=XO[1-s];i&&aw("horizontal",a,e.get("selectorItemGap",!0));var h=e.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=Zu(n);i&&(g[l]=n[l]-p[l]-h);var m=this._layoutContentAndController(e,r,g,s,l,c,d,u);if(i){if("end"===o)f[s]+=m[l]+h;else{var y=p[l]+h;f[s]-=y,m[u]-=y}m[l]+=p[l]+h,f[1-s]+=m[d]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[d]=Math.min(m[d],p[d]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,t,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;aw(e.get("orient"),l,e.get("itemGap"),r?n.width:null,r?null:n.height),aw("horizontal",c,e.get("pageButtonItemGap",!0));var d=l.getBoundingRect(),h=c.getBoundingRect(),p=this._showController=d[i]>n[i],f=[-d.x,-d.y];t||(f[r]=l[s]);var g=[0,0],m=[-h.x,-h.y],y=wc(e.get("pageButtonGap",!0),e.get("itemGap",!0));p&&("end"===e.get("pageButtonPosition",!0)?m[r]+=n[i]-h[i]:g[r]+=h[i]+y),m[1-r]+=d[o]/2-h[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(m);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[o]=Math.max(d[o],h[o]),v[a]=Math.min(0,h[a]+m[1-r]),u.__rectSize=n[i],p){var x={x:0,y:0};x[i]=Math.max(n[i]-h[i]-y,0),x[o]=v[o],u.setClipPath(new Kf({shape:x})),u.__rectSize=x[i]}else c.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return null!=b.pageIndex&&av(l,{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];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;rc(["pagePrev","pageNext"],function(r){var i=null!=t[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")});var r=n.childOfName("pageText"),i=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;r&&i&&r.setStyle("text",hc(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=UO[i],a=XO[i],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,h={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return h;var p=v(u);h.contentPosition[i]=-p.s;for(var f=s+1,g=p,m=p,y=null;f<=c;++f)(!(y=v(l[f]))&&m.e>g.s+r||y&&!x(y,g.s))&&(g=m.i>g.i?m:y)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=g.i),++h.pageCount),m=y;for(f=s-1,g=p,m=p,y=null;f>=-1;--f)(y=v(l[f]))&&x(m,y.s)||!(g.i<m.i)||(m=g,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=y;return h;function v(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)}),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(LO);function YO(e){II(HO),e.registerComponentModel(WO),e.registerComponentView(qO),function(e){e.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(e){e.setScrollDataIndex(n)})})}(e)}var ZO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Du(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Jb(sE.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(sE),KO=Kf,QO="horizontal",JO="vertical",eR=["line","bar","candlestick","scatter"],tR={easing:"cubicOut",duration:100,delay:0},nR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return Du(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=lc(this._onBrush,this),this._onBrushEnd=lc(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),dk(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){hk(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 dy;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")?7:0,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},o=this._orient===QO?{right:i.width-r.x-r.width,top:i.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},a=cw(e.option);rc(["right","top","width","height"],function(e){"ph"===a[e]&&(a[e]=o[e])});var s=sw(a,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===JO&&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"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==QO||i?n===QO&&i?{scaleY:a?1:-1,scaleX:-1}:n!==JO||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,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 KO({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new KO({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:lc(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var d,h=[0,t[1]],p=[0,t[0]],f=[[t[0],0],[0,0]],g=[],m=p[1]/(i.count()-1),y=0,v=Math.round(i.count()/t[0]);i.each([a],function(e,t){if(v>0&&t%v)y+=m;else{var n=null==e||isNaN(e)||""===e,r=n?0:pg(e,u,h,!0);n&&!d&&t?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&d&&(f.push([y,0]),g.push([y,0])),f.push([y,r]),g.push([y,r]),y+=m,d=n}}),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var x=this.dataZoomModel,b=0;b<3;b++){var _=w(1===b);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function w(e){var t=x.getModel(e?"selectedDataBackground":"dataBackground"),n=new dy,r=new Ly({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Ny({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis(function(i,o){rc(e.getAxisProxy(i,o).getTargetSeriesModels(),function(e){if(!(n||!0!==t&&ec(eR,e.get("type"))<0)){var a,s=r.getComponent(iE(i),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[i],u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:i,otherDim:l,otherAxisInverse:a}}},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,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new KO({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new KO({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),rc([0,1],function(t){var o=a.get("handleIcon");!uS[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=hS(o,-1,0,2,2,null,!0);s.attr({cursor:rR(this._orient),draggable:!0,drift:lc(this._onDragMove,this,t),ondragend:lc(this._onDragEnd,this),onmouseover:lc(this._showDataInfo,this,!0),onmouseout:lc(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect();this._handleHeight=fg(a.get("handleSize"),this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Fm(s);var u=a.get("handleColor");null!=u&&(s.style.fill=u),i.add(n[t]=s);var c=a.getModel("textStyle");e.add(r[t]=new eg({silent:!0,invisible:!0,style:Xv(c,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:c.getTextColor(),font:c.getFont()}),z2:10}))},this);var d=c;if(u){var h=fg(a.get("moveHandleSize"),o[1]),p=t.moveHandle=new Kf({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:h}}),f=.8*h,g=t.moveHandleIcon=hS(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+h/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(h,10));(d=t.moveZone=new Kf({invisible:!0,shape:{y:o[1]-m,height:h+m}})).on("mouseover",function(){s.enterEmphasis(p)}).on("mouseout",function(){s.leaveEmphasis(p)}),i.add(p),i.add(g),i.add(d)}d.attr({draggable:!0,cursor:rR(this._orient),drift:lc(this._onDragMove,this,"all"),ondragstart:lc(this._showDataInfo,this,!0),ondragend:lc(this._onDragEnd,this),onmouseover:lc(this._showDataInfo,this,!0),onmouseout:lc(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[pg(e[0],[0,100],t,!0),pg(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];AA(t,r,i,n.get("zoomLock")?"all":e,null!=o.minSpan?pg(o.minSpan,a,i,!0):null,null!=o.maxSpan?pg(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=mg([pg(r[0],i,a,!0),pg(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=mg(n.slice()),i=this._size;rc([0,1],function(e){var r=t.handles[e],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:i[1]/2-o/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new Kf,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=mg(this._handleEnds.slice());function d(e){var t=Pv(n.handles[e].parent,this.group),a=Dv(0===e?"right":"left",t),s=this._handleWidth/2+5,l=Av([c[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:l[0],y:l[1],verticalAlign:i===QO?"middle":a,align:i===QO?a:"center",text:o[e]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return dc(r)?r(e,o):hc(r)?r.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,Ck(r.event);var i=Av([t,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(e,i[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,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,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new pd(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];this._range=mg([pg(n.x,r,i,!0),pg(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ck(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 KO({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?tR:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t,n,r,i=(t=this.dataZoomModel,n=t.ecModel,r={infoList:[],infoMap:Rc()},t.eachTargetAxis(function(e,t){var i=n.getComponent(iE(e),t);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=r.infoMap.get(a);s||(s={model:o,axisModels:[]},r.infoList.push(s),r.infoMap.set(a,s)),s.axisModels.push(i)}}}),r).infoList;if(!e&&i.length){var o=i[0].model.coordinateSystem;e=o.getRect&&o.getRect()}if(!e){var a=this.api.getWidth(),s=this.api.getHeight();e={x:.2*a,y:.2*s,width:.6*a,height:.6*s}}return e},t.type="dataZoom.slider",t}(cE);function rR(e){return"vertical"===e?"ns-resize":"ew-resize"}function iR(e,t,n){var r=Lu.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var oR=function(e){function t(t,n,r){var i,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||xp,"string"==typeof t?i=iR(t,n,r):gc(t)&&(t=(i=t).id),o.id=t,o.dom=i;var a=i.style;return a&&(zc(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return Du(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},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=iR("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new wd(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){(t=new wd(0,0,0,0)).copy(e),o.push(t)}else{for(var t,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(e)){var d=new wd(0,0,0,0);d.copy(c),d.union(e),o[u]=d,n=!0;break}if(s){l.copy(e),l.union(c);var h=e.width*e.height,p=c.width*c.height,f=l.width*l.height-h-p;f<r&&(r=f,i=u)}}if(s&&(o[i].union(e),n=!0),!n)(t=new wd(0,0,0,0)).copy(e),o.push(t);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(p=e[c]){var d=p.shouldBePainted(n,r,!0,!0);(f=p.__isRendered&&(1&p.__dirty||!d)?p.getPrevPaintRect():null)&&u(f);var h=d&&(1&p.__dirty||!p.__isRendered)?p.getPaintRect():null;h&&u(h)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var p,f;d=(p=t[c])&&p.shouldBePainted(n,r,!0,!0);if(p&&(!d||!p.__zr)&&p.__isRendered)(f=p.getPrevPaintRect())&&u(f)}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var d=this.domBack;function h(e,n,r,o){if(i.clearRect(e,n,r,o),t&&"transparent"!==t){var a=void 0;xc(t)?(a=(t.global||t.__width===r&&t.__height===o)&&t.__canvasGradient||qT(i,t,{x:0,y:0,width:r,height:o}),t.__canvasGradient=a,t.__width=r,t.__height=o):null!=t.image&&(t.scaleX=t.scaleX||u,t.scaleY=t.scaleY||u,a=iM(i,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),i.save(),i.fillStyle=a||t,i.fillRect(e,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(d,e,n,r,o),i.restore())}!n||s?h(0,0,o,a):n.length&&rc(n,function(e){h(e.x*u,e.y*u,e.width*u,e.height*u)})},t}(yp),aR=1e5,sR=314159,lR=.01;var uR=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=Qu({},n||{}),this.dpr=n.devicePixelRatio||xp,this._singleCanvas=i,this.root=e,e.style&&(zc(e),e.innerHTML=""),this.storage=t;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=e,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new oR(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=sR,o.push(sR),this._domRoot=e}else{this._width=ZT(e,0,n),this._height=ZT(e,1,n);var d=this._domRoot=function(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}(this._width,this._height);e.appendChild(d)}}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=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(aR)),r||(r=n.ctx).save(),pM(r,a,i,o===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(aR)},e.prototype.paintOne=function(e,t){hM(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;Yk(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(sR).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,d=function(a){var s,l=i[a],d=l.ctx,p=o&&l.createRepaintRects(e,t,h._width,h._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),y=l.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,p);else if(f===l.__startIndex){var v=e[f];v.incremental&&v.notClear&&!n||l.clear(!1,y,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,t,n,s===l.__endIndex-1),g&&Date.now()-m>15)break}n.prevElClipPaths&&d.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var b=h.dpr,_=0;_<p.length;++_){var w=p[_];d.save(),d.beginPath(),d.rect(w.x*b,w.y*b,w.width*b,w.height*b),d.clip(),x(w),d.restore()}else d.save(),x(),d.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},h=this,p=0;p<i.length;p++)d(p);return Vc.wxa&&rc(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:u,needsRefreshHover:c}},e.prototype._doPaintEl=function(e,t,n,r,i,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(pM(a,e,i,o),e.setPrevPaintRect(s))}else pM(a,e,i,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=sR);var n=this._layers[e];return n||((n=new oR("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Ku(n,this._layerConfig[e],!0):this._layerConfig[e-lR]&&Ku(n,this._layerConfig[e-lR],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[e]&&function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);a=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n=1;n<e.length;n++){if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,a=0;for(i=0;i<e.length;i++){var s,l=(s=e[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?lR:0),this._needsManuallyCompositing),u.__builtin__||Yu("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,t(i),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}t(i),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,rc(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Ku(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+lR)Ku(this._layers[i],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(ec(n,e),1))},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;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=ZT(i,0,r),t=ZT(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(sR).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new oR("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;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];pM(n,u,o,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();var cR={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},dR=e=>e&&!isNaN(new Date(e).getTime())?new Date(e).toLocaleString():"",hR=({charts:e,lines:t,scatterplot:n})=>t.map(({key:t,name:r})=>({symbolSize:4,type:n?"scatter":"line",name:r,data:e[t]})),pR={type:"value",boundaryGap:[0,"5%"]},fR=({splitAxis:e,yAxisLabels:t})=>!e||t&&!Array.isArray(t)?{...pR,...t?{name:t}:{}}:Array(2).fill(pR).map((e,n)=>({...e,...t?{name:t[n]}:{}})),gR=e=>new Date(e).toLocaleTimeString(),mR=({charts:e,title:t,lines:n,colors:r,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:u})=>({title:{text:t},tooltip:{trigger:"axis",formatter:e=>Array.isArray(e)&&e.length>0&&e.some(e=>!!e.value)?e.reduce((e,{axisValue:t,color:n,seriesName:r,value:o},a)=>`\n ${0===a?dR(t):""}\n ${e}\n <br>\n <span style="color:${n};">\n ${r}:&nbsp${(({chartValueFormatter:e,value:t})=>e?e(t):Array.isArray(t)?t[1]:t)({chartValueFormatter:i,value:o})}\n </span>\n `,""):"No data",borderWidth:0},xAxis:s||{type:"time",min:(e.time||[(new Date).toISOString()])[0],startValue:(e.time||[])[0],splitNumber:window.innerWidth<900?2:7,minInterval:1,axisLabel:{formatter:gR}},grid:l||{left:60,right:40},yAxis:fR({splitAxis:o,yAxisLabels:a}),series:hR({charts:e,lines:n,scatterplot:u}),color:r,toolbox:{right:10,feature:{dataZoom:{title:{zoom:"Zoom Select",back:"Zoom Reset"},yAxisIndex:!1},saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+(new Date).getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}},legend:{top:25}}),yR=e=>({symbol:"none",label:{formatter:e=>`Run #${e.dataIndex+1}`,padding:[0,0,8,0]},data:(e.markers||[]).map(e=>({xAxis:e}))});function vR({charts:e,title:t,lines:n,colors:r,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:u,shouldReplaceMergeLines:c=!1,isDarkMode:d=!1}){const[h,p]=(0,y.useState)(null),f=(0,y.useRef)(null);return(0,y.useEffect)(()=>{if(!f.current)return;const c=function(e,t,n){var r=!(n&&n.ssr);if(r){var i=gI(e);if(i)return i}var o=new eI(e,t,n);return o.id="ec_"+hI++,cI[o.id]=o,r&&Jg(e,fI,o.id),YM(o),_M.trigger("afterinit",o),o}(f.current);c.setOption(mR({charts:e,title:t,lines:n,colors:r,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:u})),c.on("datazoom",(e=>t=>{const{batch:n}=t;if(!n)return;const[{start:r,startValue:i,end:o}]=n,a=r>0&&o<=100||i>0;e.setOption({dataZoom:[{type:"slider",show:a}]})})(c));const d=()=>{c.resize(),c.setOption({xAxis:{splitNumber:window.innerWidth<900?2:7}})};return window.addEventListener("resize",d),c.group="swarmCharts",function(e){if(cc(e)){var t=e;e=null,rc(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+pI++,rc(t,function(t){t.group=e})}dI[e]=!0}("swarmCharts"),p(c),()=>{!function(e){hc(e)?e=cI[e]:e instanceof eI||(e=gI(e)),e instanceof eI&&!e.isDisposed()&&e.dispose()}(c),window.removeEventListener("resize",d)}},[f]),(0,y.useEffect)(()=>{const t=n.every(({key:t})=>!!e[t]);h&&t&&h.setOption({series:n.map(({key:t,yAxisIndex:n,...r},i)=>({...r,data:e[t],...o?{yAxisIndex:n||i}:{},...0===i?{markLine:yR(e)}:{}}))})},[e,h,n]),(0,y.useEffect)(()=>{if(h){const{textColor:e,axisColor:t,backgroundColor:n,splitLine:r}=d?cR.DARK:cR.LIGHT;h.setOption({backgroundColor:n,textStyle:{color:e},title:{textStyle:{color:e}},legend:{icon:"circle",inactiveColor:e,textStyle:{color:e}},tooltip:{backgroundColor:n,textStyle:{color:e}},xAxis:{axisLine:{lineStyle:{color:t}}},yAxis:{axisLine:{lineStyle:{color:t}},splitLine:{lineStyle:{color:r}}}})}},[h,d]),(0,y.useEffect)(()=>{h&&h.setOption({series:hR({charts:e,lines:n,scatterplot:u})},c?{replaceMerge:["series"]}:void 0)},[n]),(0,w.jsx)("div",{ref:f,style:{width:"100%",height:"300px"}})}II([function(e){e.registerChartView(tk),e.registerSeriesModel(fS),e.registerLayout(function(e,t){return{seriesType:e,plan:LS(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(r){var a=ic(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Yb(n,a[0])&&(a[0]=l),Yb(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),d=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=o&&TS(n*s),a=[],l=[],h=e.start,p=0;h<e.end;h++){var f=void 0;if(1===s){var g=u.get(c,h);f=r.dataToPoint(g,null,l)}else a[0]=u.get(c,h),a[1]=u.get(d,h),f=r.dataToPoint(a,null,l);o?(i[p++]=f[0],i[p++]=f[1]):t.setItemLayout(h,f.slice())}o&&t.setLayout("points",i)}}}}}}("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,function(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(c||1),h=Math.round(a/d);if(isFinite(h)&&h>1){"lttb"===i&&e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/h));var p=void 0;hc(i)?p=nk[i]:dc(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(l.dim),1/h,p,rk))}}}}}("line"))},function(e){e.registerComponentModel(PO),e.registerComponentView(AO)},function(e){II(tE),e.registerComponentModel(lO),e.registerComponentView(CO),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Bc),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Bc)},function(e){e.registerComponentModel(SE),e.registerComponentView(TE),_E("saveAsImage",ME),_E("magicType",AE),_E("dataView",NE),_E("dataZoom",oO),_E("restore",HE),II(vE)},function(e){e.registerComponentModel(ZO),e.registerComponentView(nR),yE(e)},function(e){II(TA),II(tE)},function(e){II(HO),II(YO)},function(e){e.registerPainter("canvas",uR)}]);var xR=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:M.percentilesToChart?M.percentilesToChart.map(e=>({name:100*e+"th percentile",key:`responseTimePercentile${e}`})):[],colors:["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"]},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function bR({charts:e,isDarkMode:t}){return xR.map((n,r)=>(0,w.jsx)(vR,{...n,charts:e,isDarkMode:t},`swarm-chart-${r}`))}function _R(e){return(100*e).toFixed(1)+"%"}function wR({classRatio:e}){return(0,w.jsx)("ul",{children:Object.entries(e).map(([e,{ratio:t,tasks:n}])=>(0,w.jsxs)("li",{children:[`${_R(t)} ${e}`,n&&(0,w.jsx)(wR,{classRatio:n})]},`nested-ratio-${e}`))})}function SR({ratios:{perClass:e,total:t}}){return e||t?(0,w.jsxs)("div",{children:[e&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("h3",{children:"Ratio Per Class"}),(0,w.jsx)(wR,{classRatio:e})]}),t&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("h3",{children:"Total Ratio"}),(0,w.jsx)(wR,{classRatio:t})]})]}):null}var kR="dark",CR="light",TR=localStorage.theme===kR||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?kR:CR,MR=co({palette:{mode:window.theme||TR,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"},p:{margin:0},ul:{paddingLeft:"16px"}}}}}),IR="dark"===(window.theme||TR),PR=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"totalRps",title:"RPS",round:2},{key:"totalFailPerSec",title:"Failures/s",round:2}];function AR({locustfile:e,showDownloadLink:t,startTime:n,endTime:r,duration:i,charts:o,host:a,exceptionsStatistics:s,requestsStatistics:l,failuresStatistics:u,responseTimeStatistics:c,tasks:d}){return(0,y.useEffect)(()=>{document.title=window.templateArgs.profile?`Locust - ${window.templateArgs.profile}`:"Locust"},[]),(0,w.jsxs)(Co,{theme:MR,children:[(0,w.jsx)(Ws,{}),(0,w.jsxs)(zs,{maxWidth:"lg",sx:{my:4},children:[(0,w.jsxs)(bs,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[(0,w.jsx)(ls,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&(0,w.jsx)(Cl,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),(0,w.jsxs)(bs,{sx:{my:2},children:[window.templateArgs.profile&&(0,w.jsxs)(bs,{sx:{display:"flex",columnGap:.5},children:[(0,w.jsx)(ls,{fontWeight:600,children:"Profile:"}),(0,w.jsx)(ls,{children:window.templateArgs.profile})]}),(0,w.jsxs)(bs,{sx:{display:"flex",columnGap:.5},children:[(0,w.jsx)(ls,{fontWeight:600,children:"During:"}),(0,w.jsxs)(ls,{children:[dR(n)," - ",dR(r)," (",i,")"]})]}),(0,w.jsxs)(bs,{sx:{display:"flex",columnGap:.5},children:[(0,w.jsx)(ls,{fontWeight:600,children:"Target Host:"}),(0,w.jsx)(ls,{children:a||"None"})]}),(0,w.jsxs)(bs,{sx:{display:"flex",columnGap:.5},children:[(0,w.jsx)(ls,{fontWeight:600,children:"Script:"}),(0,w.jsx)(ls,{children:e})]})]}),(0,w.jsxs)(bs,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[(0,w.jsxs)(bs,{children:[(0,w.jsx)(ls,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),(0,w.jsx)(Pu,{stats:l,tableStructure:PR})]}),!!c.length&&(0,w.jsxs)(bs,{children:[(0,w.jsx)(ls,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),(0,w.jsx)(Cu,{responseTimes:c})]}),(0,w.jsxs)(bs,{children:[(0,w.jsx)(ls,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),(0,w.jsx)(Su,{errors:u})]}),!!s.length&&(0,w.jsxs)(bs,{children:[(0,w.jsx)(ls,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),(0,w.jsx)(bu,{exceptions:s})]}),(0,w.jsxs)(bs,{children:[(0,w.jsx)(ls,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),(0,w.jsx)(bR,{charts:o,isDarkMode:IR})]}),(0,w.jsxs)(bs,{children:[(0,w.jsx)(ls,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),(0,w.jsx)(SR,{ratios:d})]})]})]})]})}m.createRoot(document.getElementById("root")).render((0,w.jsx)(b,{fallbackRender:function({error:e}){return(0,w.jsxs)("div",{role:"alert",children:[(0,w.jsx)("p",{children:"Something went wrong"}),e.message&&(0,w.jsx)("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",(0,w.jsx)("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})},children:(0,w.jsx)(AR,{...I})}));</script>
  99. </head>
  100. <body>
  101. <div id="root"></div>
  102. <script>
  103. window.templateArgs = {"duration": "2 minutes and 59 seconds", "end_time": "2026-06-08T08:19:08Z", "exceptions_statistics": [], "failures_statistics": [], "history": [{"current_fail_per_sec": ["2026-06-08T08:16:14Z", 0], "current_rps": ["2026-06-08T08:16:14Z", 5.666666666666667], "response_time_percentile_0.5": ["2026-06-08T08:16:14Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:16:14Z", 13], "time": "2026-06-08T08:16:14Z", "total_avg_response_time": ["2026-06-08T08:16:14Z", 7.51], "user_count": ["2026-06-08T08:16:14Z", 25]}, {"current_fail_per_sec": ["2026-06-08T08:16:19Z", 0], "current_rps": ["2026-06-08T08:16:19Z", 10.875], "response_time_percentile_0.5": ["2026-06-08T08:16:19Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:16:19Z", 10], "time": "2026-06-08T08:16:19Z", "total_avg_response_time": ["2026-06-08T08:16:19Z", 4.57], "user_count": ["2026-06-08T08:16:19Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:16:24Z", 0], "current_rps": ["2026-06-08T08:16:24Z", 14.0], "response_time_percentile_0.5": ["2026-06-08T08:16:24Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:16:24Z", 4], "time": "2026-06-08T08:16:24Z", "total_avg_response_time": ["2026-06-08T08:16:24Z", 3.93], "user_count": ["2026-06-08T08:16:24Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:16:29Z", 0], "current_rps": ["2026-06-08T08:16:29Z", 13.9], "response_time_percentile_0.5": ["2026-06-08T08:16:29Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:16:29Z", 4], "time": "2026-06-08T08:16:29Z", "total_avg_response_time": ["2026-06-08T08:16:29Z", 3.62], "user_count": ["2026-06-08T08:16:29Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:16:34Z", 0], "current_rps": ["2026-06-08T08:16:34Z", 14.3], "response_time_percentile_0.5": ["2026-06-08T08:16:34Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:16:34Z", 4], "time": "2026-06-08T08:16:34Z", "total_avg_response_time": ["2026-06-08T08:16:34Z", 3.51], "user_count": ["2026-06-08T08:16:34Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:16:39Z", 0], "current_rps": ["2026-06-08T08:16:39Z", 15.4], "response_time_percentile_0.5": ["2026-06-08T08:16:39Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:16:39Z", 5], "time": "2026-06-08T08:16:39Z", "total_avg_response_time": ["2026-06-08T08:16:39Z", 3.38], "user_count": ["2026-06-08T08:16:39Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:16:44Z", 0], "current_rps": ["2026-06-08T08:16:44Z", 15.0], "response_time_percentile_0.5": ["2026-06-08T08:16:44Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:16:44Z", 3], "time": "2026-06-08T08:16:44Z", "total_avg_response_time": ["2026-06-08T08:16:44Z", 3.24], "user_count": ["2026-06-08T08:16:44Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:16:49Z", 0], "current_rps": ["2026-06-08T08:16:49Z", 14.8], "response_time_percentile_0.5": ["2026-06-08T08:16:49Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:16:49Z", 3], "time": "2026-06-08T08:16:49Z", "total_avg_response_time": ["2026-06-08T08:16:49Z", 3.12], "user_count": ["2026-06-08T08:16:49Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:16:54Z", 0], "current_rps": ["2026-06-08T08:16:54Z", 15.4], "response_time_percentile_0.5": ["2026-06-08T08:16:54Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:16:54Z", 4], "time": "2026-06-08T08:16:54Z", "total_avg_response_time": ["2026-06-08T08:16:54Z", 3.07], "user_count": ["2026-06-08T08:16:54Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:16:59Z", 0], "current_rps": ["2026-06-08T08:16:59Z", 14.9], "response_time_percentile_0.5": ["2026-06-08T08:16:59Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:16:59Z", 4], "time": "2026-06-08T08:16:59Z", "total_avg_response_time": ["2026-06-08T08:16:59Z", 3.03], "user_count": ["2026-06-08T08:16:59Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:17:04Z", 0], "current_rps": ["2026-06-08T08:17:04Z", 15.0], "response_time_percentile_0.5": ["2026-06-08T08:17:04Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:17:04Z", 4], "time": "2026-06-08T08:17:04Z", "total_avg_response_time": ["2026-06-08T08:17:04Z", 2.98], "user_count": ["2026-06-08T08:17:04Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:17:09Z", 0], "current_rps": ["2026-06-08T08:17:09Z", 15.4], "response_time_percentile_0.5": ["2026-06-08T08:17:09Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:17:09Z", 4], "time": "2026-06-08T08:17:09Z", "total_avg_response_time": ["2026-06-08T08:17:09Z", 2.96], "user_count": ["2026-06-08T08:17:09Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:17:14Z", 0], "current_rps": ["2026-06-08T08:17:14Z", 15.2], "response_time_percentile_0.5": ["2026-06-08T08:17:14Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:17:14Z", 4], "time": "2026-06-08T08:17:14Z", "total_avg_response_time": ["2026-06-08T08:17:14Z", 2.93], "user_count": ["2026-06-08T08:17:14Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:17:19Z", 0], "current_rps": ["2026-06-08T08:17:19Z", 14.5], "response_time_percentile_0.5": ["2026-06-08T08:17:19Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:17:19Z", 3], "time": "2026-06-08T08:17:19Z", "total_avg_response_time": ["2026-06-08T08:17:19Z", 2.91], "user_count": ["2026-06-08T08:17:19Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:17:24Z", 0], "current_rps": ["2026-06-08T08:17:24Z", 14.6], "response_time_percentile_0.5": ["2026-06-08T08:17:24Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:17:24Z", 4], "time": "2026-06-08T08:17:24Z", "total_avg_response_time": ["2026-06-08T08:17:24Z", 2.88], "user_count": ["2026-06-08T08:17:24Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:17:29Z", 0], "current_rps": ["2026-06-08T08:17:29Z", 14.9], "response_time_percentile_0.5": ["2026-06-08T08:17:29Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:17:29Z", 3], "time": "2026-06-08T08:17:29Z", "total_avg_response_time": ["2026-06-08T08:17:29Z", 2.85], "user_count": ["2026-06-08T08:17:29Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:17:34Z", 0], "current_rps": ["2026-06-08T08:17:34Z", 14.4], "response_time_percentile_0.5": ["2026-06-08T08:17:34Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:17:34Z", 4], "time": "2026-06-08T08:17:34Z", "total_avg_response_time": ["2026-06-08T08:17:34Z", 2.85], "user_count": ["2026-06-08T08:17:34Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:17:39Z", 0], "current_rps": ["2026-06-08T08:17:39Z", 14.1], "response_time_percentile_0.5": ["2026-06-08T08:17:39Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:17:39Z", 4], "time": "2026-06-08T08:17:39Z", "total_avg_response_time": ["2026-06-08T08:17:39Z", 2.84], "user_count": ["2026-06-08T08:17:39Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:17:44Z", 0], "current_rps": ["2026-06-08T08:17:44Z", 14.5], "response_time_percentile_0.5": ["2026-06-08T08:17:44Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:17:44Z", 4], "time": "2026-06-08T08:17:44Z", "total_avg_response_time": ["2026-06-08T08:17:44Z", 2.84], "user_count": ["2026-06-08T08:17:44Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:17:49Z", 0], "current_rps": ["2026-06-08T08:17:49Z", 15.4], "response_time_percentile_0.5": ["2026-06-08T08:17:49Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:17:49Z", 4], "time": "2026-06-08T08:17:49Z", "total_avg_response_time": ["2026-06-08T08:17:49Z", 2.82], "user_count": ["2026-06-08T08:17:49Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:17:54Z", 0], "current_rps": ["2026-06-08T08:17:54Z", 15.5], "response_time_percentile_0.5": ["2026-06-08T08:17:54Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:17:54Z", 4], "time": "2026-06-08T08:17:54Z", "total_avg_response_time": ["2026-06-08T08:17:54Z", 2.81], "user_count": ["2026-06-08T08:17:54Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:18:00Z", 0], "current_rps": ["2026-06-08T08:18:00Z", 15.1], "response_time_percentile_0.5": ["2026-06-08T08:18:00Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:18:00Z", 4], "time": "2026-06-08T08:18:00Z", "total_avg_response_time": ["2026-06-08T08:18:00Z", 2.8], "user_count": ["2026-06-08T08:18:00Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:18:05Z", 0], "current_rps": ["2026-06-08T08:18:05Z", 15.2], "response_time_percentile_0.5": ["2026-06-08T08:18:05Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:18:05Z", 3], "time": "2026-06-08T08:18:05Z", "total_avg_response_time": ["2026-06-08T08:18:05Z", 2.78], "user_count": ["2026-06-08T08:18:05Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:18:10Z", 0], "current_rps": ["2026-06-08T08:18:10Z", 14.9], "response_time_percentile_0.5": ["2026-06-08T08:18:10Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:18:10Z", 4], "time": "2026-06-08T08:18:10Z", "total_avg_response_time": ["2026-06-08T08:18:10Z", 2.78], "user_count": ["2026-06-08T08:18:10Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:18:15Z", 0], "current_rps": ["2026-06-08T08:18:15Z", 15.0], "response_time_percentile_0.5": ["2026-06-08T08:18:15Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:18:15Z", 4], "time": "2026-06-08T08:18:15Z", "total_avg_response_time": ["2026-06-08T08:18:15Z", 2.78], "user_count": ["2026-06-08T08:18:15Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:18:20Z", 0], "current_rps": ["2026-06-08T08:18:20Z", 14.8], "response_time_percentile_0.5": ["2026-06-08T08:18:20Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:18:20Z", 4], "time": "2026-06-08T08:18:20Z", "total_avg_response_time": ["2026-06-08T08:18:20Z", 2.78], "user_count": ["2026-06-08T08:18:20Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:18:25Z", 0], "current_rps": ["2026-06-08T08:18:25Z", 15.2], "response_time_percentile_0.5": ["2026-06-08T08:18:25Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:18:25Z", 3], "time": "2026-06-08T08:18:25Z", "total_avg_response_time": ["2026-06-08T08:18:25Z", 2.77], "user_count": ["2026-06-08T08:18:25Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:18:30Z", 0], "current_rps": ["2026-06-08T08:18:30Z", 15.2], "response_time_percentile_0.5": ["2026-06-08T08:18:30Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:18:30Z", 3], "time": "2026-06-08T08:18:30Z", "total_avg_response_time": ["2026-06-08T08:18:30Z", 2.76], "user_count": ["2026-06-08T08:18:30Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:18:35Z", 0], "current_rps": ["2026-06-08T08:18:35Z", 15.0], "response_time_percentile_0.5": ["2026-06-08T08:18:35Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:18:35Z", 4], "time": "2026-06-08T08:18:35Z", "total_avg_response_time": ["2026-06-08T08:18:35Z", 2.76], "user_count": ["2026-06-08T08:18:35Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:18:40Z", 0], "current_rps": ["2026-06-08T08:18:40Z", 15.0], "response_time_percentile_0.5": ["2026-06-08T08:18:40Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:18:40Z", 4], "time": "2026-06-08T08:18:40Z", "total_avg_response_time": ["2026-06-08T08:18:40Z", 2.76], "user_count": ["2026-06-08T08:18:40Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:18:45Z", 0], "current_rps": ["2026-06-08T08:18:45Z", 15.7], "response_time_percentile_0.5": ["2026-06-08T08:18:45Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:18:45Z", 4], "time": "2026-06-08T08:18:45Z", "total_avg_response_time": ["2026-06-08T08:18:45Z", 2.77], "user_count": ["2026-06-08T08:18:45Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:18:50Z", 0], "current_rps": ["2026-06-08T08:18:50Z", 15.3], "response_time_percentile_0.5": ["2026-06-08T08:18:50Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:18:50Z", 4], "time": "2026-06-08T08:18:50Z", "total_avg_response_time": ["2026-06-08T08:18:50Z", 2.77], "user_count": ["2026-06-08T08:18:50Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:18:55Z", 0], "current_rps": ["2026-06-08T08:18:55Z", 14.5], "response_time_percentile_0.5": ["2026-06-08T08:18:55Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:18:55Z", 4], "time": "2026-06-08T08:18:55Z", "total_avg_response_time": ["2026-06-08T08:18:55Z", 2.77], "user_count": ["2026-06-08T08:18:55Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:19:00Z", 0], "current_rps": ["2026-06-08T08:19:00Z", 14.8], "response_time_percentile_0.5": ["2026-06-08T08:19:00Z", 3], "response_time_percentile_0.95": ["2026-06-08T08:19:00Z", 5], "time": "2026-06-08T08:19:00Z", "total_avg_response_time": ["2026-06-08T08:19:00Z", 2.77], "user_count": ["2026-06-08T08:19:00Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:19:05Z", 0], "current_rps": ["2026-06-08T08:19:05Z", 15.1], "response_time_percentile_0.5": ["2026-06-08T08:19:05Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:19:05Z", 5], "time": "2026-06-08T08:19:05Z", "total_avg_response_time": ["2026-06-08T08:19:05Z", 2.77], "user_count": ["2026-06-08T08:19:05Z", 30]}, {"current_fail_per_sec": ["2026-06-08T08:19:08Z", 0], "current_rps": ["2026-06-08T08:19:08Z", 15.2], "response_time_percentile_0.5": ["2026-06-08T08:19:08Z", 2], "response_time_percentile_0.95": ["2026-06-08T08:19:08Z", 4], "time": "2026-06-08T08:19:08Z", "total_avg_response_time": ["2026-06-08T08:19:08Z", 2.77], "user_count": ["2026-06-08T08:19:08Z", 0]}], "host": "http://localhost:3000", "is_report": true, "locustfile": "locustfile_backend.py", "percentiles_to_chart": [0.5, 0.95], "profile": null, "requests_statistics": [{"avg_content_length": 74.0, "avg_response_time": 2.8134878979425633, "current_fail_per_sec": 0.0, "current_rps": 2.1, "max_response_time": 19.0, "median_response_time": 2, "method": "GET", "min_response_time": 2.0, "name": "API-404\u5951\u7ea6", "num_failures": 0, "num_requests": 314, "response_time_percentile_0.95": 4, "response_time_percentile_0.99": 10, "total_fail_per_sec": 0.0, "total_rps": 1.7543144013601437}, {"avg_content_length": 147.0, "avg_response_time": 2.7374042938318692, "current_fail_per_sec": 0.0, "current_rps": 5.0, "max_response_time": 20.0, "median_response_time": 2, "method": "GET", "min_response_time": 2.0, "name": "API-Parse\u914d\u7f6e", "num_failures": 0, "num_requests": 885, "response_time_percentile_0.95": 4, "response_time_percentile_0.99": 9, "total_fail_per_sec": 0.0, "total_rps": 4.944484857336711}, {"avg_content_length": 83.0, "avg_response_time": 2.7754083735024264, "current_fail_per_sec": 0.0, "current_rps": 8.1, "max_response_time": 61.0, "median_response_time": 2, "method": "GET", "min_response_time": 1.0, "name": "API-\u5065\u5eb7\u68c0\u67e5", "num_failures": 0, "num_requests": 1457, "response_time_percentile_0.95": 4, "response_time_percentile_0.99": 7, "total_fail_per_sec": 0.0, "total_rps": 8.140242301852641}, {"avg_content_length": 103.2612951807229, "avg_response_time": 2.7672469880226673, "current_fail_per_sec": 0.0, "current_rps": 15.2, "max_response_time": 61.0, "median_response_time": 2, "method": "", "min_response_time": 1.0, "name": "Aggregated", "num_failures": 0, "num_requests": 2656, "response_time_percentile_0.95": 4, "response_time_percentile_0.99": 8, "total_fail_per_sec": 0.0, "total_rps": 14.839041560549497}], "response_time_statistics": [{"0.5": 2, "0.6": 3, "0.7": 3, "0.8": 3, "0.9": 4, "0.95": 4, "0.99": 10, "1.0": 19, "method": "GET", "name": "API-404\u5951\u7ea6"}, {"0.5": 2, "0.6": 3, "0.7": 3, "0.8": 3, "0.9": 3, "0.95": 4, "0.99": 9, "1.0": 20, "method": "GET", "name": "API-Parse\u914d\u7f6e"}, {"0.5": 2, "0.6": 3, "0.7": 3, "0.8": 3, "0.9": 3, "0.95": 4, "0.99": 7, "1.0": 61, "method": "GET", "name": "API-\u5065\u5eb7\u68c0\u67e5"}, {"0.5": 2, "0.6": 3, "0.7": 3, "0.8": 3, "0.9": 3, "0.95": 4, "0.99": 8, "1.0": 61, "method": "", "name": "Aggregated"}], "show_download_link": false, "start_time": "2026-06-08T08:16:09Z", "tasks": {"per_class": {"ServicePilotBackendUser": {"ratio": 1.0, "tasks": {"health_check": {"ratio": 0.5555555555555556}, "not_found_contract": {"ratio": 0.1111111111111111}, "parse_config": {"ratio": 0.3333333333333333}}}}, "total": {"ServicePilotBackendUser": {"ratio": 1.0, "tasks": {"health_check": {"ratio": 0.5555555555555556}, "not_found_contract": {"ratio": 0.1111111111111111}, "parse_config": {"ratio": 0.3333333333333333}}}}}}
  104. window.theme = "light"
  105. </script>
  106. </body>
  107. </html>