locust 2.32.4.dev14__py3-none-any.whl → 2.32.4.dev18__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- locust/_version.py +2 -2
- locust/webui/dist/assets/index-BjM9pW6b.js +221 -0
- locust/webui/dist/auth.html +1 -1
- locust/webui/dist/index.html +1 -1
- locust/webui/dist/report.html +62 -63
- {locust-2.32.4.dev14.dist-info → locust-2.32.4.dev18.dist-info}/METADATA +1 -1
- {locust-2.32.4.dev14.dist-info → locust-2.32.4.dev18.dist-info}/RECORD +10 -10
- locust/webui/dist/assets/index-NWe79_gt.js +0 -221
- {locust-2.32.4.dev14.dist-info → locust-2.32.4.dev18.dist-info}/LICENSE +0 -0
- {locust-2.32.4.dev14.dist-info → locust-2.32.4.dev18.dist-info}/WHEEL +0 -0
- {locust-2.32.4.dev14.dist-info → locust-2.32.4.dev18.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,221 @@
|
|
1
|
+
var AY=Object.defineProperty;var MY=(e,t,r)=>t in e?AY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var g_=(e,t,r)=>MY(e,typeof t!="symbol"?t+"":t,r);function kY(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function ia(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function IY(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var m_={exports:{}},Lh={},y_={exports:{}},Lt={};/**
|
2
|
+
* @license React
|
3
|
+
* react.production.min.js
|
4
|
+
*
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
6
|
+
*
|
7
|
+
* This source code is licensed under the MIT license found in the
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
9
|
+
*/var qR;function PY(){if(qR)return Lt;qR=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.iterator;function d(Y){return Y===null||typeof Y!="object"?null:(Y=f&&Y[f]||Y["@@iterator"],typeof Y=="function"?Y:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function y(Y,Z,j){this.props=Y,this.context=Z,this.refs=g,this.updater=j||h}y.prototype.isReactComponent={},y.prototype.setState=function(Y,Z){if(typeof Y!="object"&&typeof Y!="function"&&Y!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Y,Z,"setState")},y.prototype.forceUpdate=function(Y){this.updater.enqueueForceUpdate(this,Y,"forceUpdate")};function x(){}x.prototype=y.prototype;function S(Y,Z,j){this.props=Y,this.context=Z,this.refs=g,this.updater=j||h}var b=S.prototype=new x;b.constructor=S,v(b,y.prototype),b.isPureReactComponent=!0;var w=Array.isArray,T=Object.prototype.hasOwnProperty,C={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function k(Y,Z,j){var re,ce={},te=null,pe=null;if(Z!=null)for(re in Z.ref!==void 0&&(pe=Z.ref),Z.key!==void 0&&(te=""+Z.key),Z)T.call(Z,re)&&!M.hasOwnProperty(re)&&(ce[re]=Z[re]);var ae=arguments.length-2;if(ae===1)ce.children=j;else if(1<ae){for(var he=Array(ae),ve=0;ve<ae;ve++)he[ve]=arguments[ve+2];ce.children=he}if(Y&&Y.defaultProps)for(re in ae=Y.defaultProps,ae)ce[re]===void 0&&(ce[re]=ae[re]);return{$$typeof:e,type:Y,key:te,ref:pe,props:ce,_owner:C.current}}function I(Y,Z){return{$$typeof:e,type:Y.type,key:Z,ref:Y.ref,props:Y.props,_owner:Y._owner}}function P(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function R(Y){var Z={"=":"=0",":":"=2"};return"$"+Y.replace(/[=:]/g,function(j){return Z[j]})}var L=/\/+/g;function O(Y,Z){return typeof Y=="object"&&Y!==null&&Y.key!=null?R(""+Y.key):Z.toString(36)}function N(Y,Z,j,re,ce){var te=typeof Y;(te==="undefined"||te==="boolean")&&(Y=null);var pe=!1;if(Y===null)pe=!0;else switch(te){case"string":case"number":pe=!0;break;case"object":switch(Y.$$typeof){case e:case t:pe=!0}}if(pe)return pe=Y,ce=ce(pe),Y=re===""?"."+O(pe,0):re,w(ce)?(j="",Y!=null&&(j=Y.replace(L,"$&/")+"/"),N(ce,Z,j,"",function(ve){return ve})):ce!=null&&(P(ce)&&(ce=I(ce,j+(!ce.key||pe&&pe.key===ce.key?"":(""+ce.key).replace(L,"$&/")+"/")+Y)),Z.push(ce)),1;if(pe=0,re=re===""?".":re+":",w(Y))for(var ae=0;ae<Y.length;ae++){te=Y[ae];var he=re+O(te,ae);pe+=N(te,Z,j,he,ce)}else if(he=d(Y),typeof he=="function")for(Y=he.call(Y),ae=0;!(te=Y.next()).done;)te=te.value,he=re+O(te,ae++),pe+=N(te,Z,j,he,ce);else if(te==="object")throw Z=String(Y),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.");return pe}function B(Y,Z,j){if(Y==null)return Y;var re=[],ce=0;return N(Y,re,"","",function(te){return Z.call(j,te,ce++)}),re}function G(Y){if(Y._status===-1){var Z=Y._result;Z=Z(),Z.then(function(j){(Y._status===0||Y._status===-1)&&(Y._status=1,Y._result=j)},function(j){(Y._status===0||Y._status===-1)&&(Y._status=2,Y._result=j)}),Y._status===-1&&(Y._status=0,Y._result=Z)}if(Y._status===1)return Y._result.default;throw Y._result}var q={current:null},H={transition:null},X={ReactCurrentDispatcher:q,ReactCurrentBatchConfig:H,ReactCurrentOwner:C};function F(){throw Error("act(...) is not supported in production builds of React.")}return Lt.Children={map:B,forEach:function(Y,Z,j){B(Y,function(){Z.apply(this,arguments)},j)},count:function(Y){var Z=0;return B(Y,function(){Z++}),Z},toArray:function(Y){return B(Y,function(Z){return Z})||[]},only:function(Y){if(!P(Y))throw Error("React.Children.only expected to receive a single React element child.");return Y}},Lt.Component=y,Lt.Fragment=r,Lt.Profiler=i,Lt.PureComponent=S,Lt.StrictMode=n,Lt.Suspense=l,Lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,Lt.act=F,Lt.cloneElement=function(Y,Z,j){if(Y==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Y+".");var re=v({},Y.props),ce=Y.key,te=Y.ref,pe=Y._owner;if(Z!=null){if(Z.ref!==void 0&&(te=Z.ref,pe=C.current),Z.key!==void 0&&(ce=""+Z.key),Y.type&&Y.type.defaultProps)var ae=Y.type.defaultProps;for(he in Z)T.call(Z,he)&&!M.hasOwnProperty(he)&&(re[he]=Z[he]===void 0&&ae!==void 0?ae[he]:Z[he])}var he=arguments.length-2;if(he===1)re.children=j;else if(1<he){ae=Array(he);for(var ve=0;ve<he;ve++)ae[ve]=arguments[ve+2];re.children=ae}return{$$typeof:e,type:Y.type,key:ce,ref:te,props:re,_owner:pe}},Lt.createContext=function(Y){return Y={$$typeof:o,_currentValue:Y,_currentValue2:Y,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},Y.Provider={$$typeof:a,_context:Y},Y.Consumer=Y},Lt.createElement=k,Lt.createFactory=function(Y){var Z=k.bind(null,Y);return Z.type=Y,Z},Lt.createRef=function(){return{current:null}},Lt.forwardRef=function(Y){return{$$typeof:s,render:Y}},Lt.isValidElement=P,Lt.lazy=function(Y){return{$$typeof:c,_payload:{_status:-1,_result:Y},_init:G}},Lt.memo=function(Y,Z){return{$$typeof:u,type:Y,compare:Z===void 0?null:Z}},Lt.startTransition=function(Y){var Z=H.transition;H.transition={};try{Y()}finally{H.transition=Z}},Lt.unstable_act=F,Lt.useCallback=function(Y,Z){return q.current.useCallback(Y,Z)},Lt.useContext=function(Y){return q.current.useContext(Y)},Lt.useDebugValue=function(){},Lt.useDeferredValue=function(Y){return q.current.useDeferredValue(Y)},Lt.useEffect=function(Y,Z){return q.current.useEffect(Y,Z)},Lt.useId=function(){return q.current.useId()},Lt.useImperativeHandle=function(Y,Z,j){return q.current.useImperativeHandle(Y,Z,j)},Lt.useInsertionEffect=function(Y,Z){return q.current.useInsertionEffect(Y,Z)},Lt.useLayoutEffect=function(Y,Z){return q.current.useLayoutEffect(Y,Z)},Lt.useMemo=function(Y,Z){return q.current.useMemo(Y,Z)},Lt.useReducer=function(Y,Z,j){return q.current.useReducer(Y,Z,j)},Lt.useRef=function(Y){return q.current.useRef(Y)},Lt.useState=function(Y){return q.current.useState(Y)},Lt.useSyncExternalStore=function(Y,Z,j){return q.current.useSyncExternalStore(Y,Z,j)},Lt.useTransition=function(){return q.current.useTransition()},Lt.version="18.3.1",Lt}var XR;function dx(){return XR||(XR=1,y_.exports=PY()),y_.exports}/**
|
10
|
+
* @license React
|
11
|
+
* react-jsx-runtime.production.min.js
|
12
|
+
*
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
14
|
+
*
|
15
|
+
* This source code is licensed under the MIT license found in the
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
17
|
+
*/var ZR;function DY(){if(ZR)return Lh;ZR=1;var e=dx(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,u){var c,f={},d=null,h=null;u!==void 0&&(d=""+u),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(h=l.ref);for(c in l)n.call(l,c)&&!a.hasOwnProperty(c)&&(f[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)f[c]===void 0&&(f[c]=l[c]);return{$$typeof:t,type:s,key:d,ref:h,props:f,_owner:i.current}}return Lh.Fragment=r,Lh.jsx=o,Lh.jsxs=o,Lh}var KR;function Tl(){return KR||(KR=1,m_.exports=DY()),m_.exports}var z=Tl(),iy={},x_={exports:{}},Xn={},S_={exports:{}},b_={};/**
|
18
|
+
* @license React
|
19
|
+
* scheduler.production.min.js
|
20
|
+
*
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
22
|
+
*
|
23
|
+
* This source code is licensed under the MIT license found in the
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
25
|
+
*/var QR;function RY(){return QR||(QR=1,function(e){function t(H,X){var F=H.length;H.push(X);e:for(;0<F;){var Y=F-1>>>1,Z=H[Y];if(0<i(Z,X))H[Y]=X,H[F]=Z,F=Y;else break e}}function r(H){return H.length===0?null:H[0]}function n(H){if(H.length===0)return null;var X=H[0],F=H.pop();if(F!==X){H[0]=F;e:for(var Y=0,Z=H.length,j=Z>>>1;Y<j;){var re=2*(Y+1)-1,ce=H[re],te=re+1,pe=H[te];if(0>i(ce,F))te<Z&&0>i(pe,ce)?(H[Y]=pe,H[te]=F,Y=te):(H[Y]=ce,H[re]=F,Y=re);else if(te<Z&&0>i(pe,F))H[Y]=pe,H[te]=F,Y=te;else break e}}return X}function i(H,X){var F=H.sortIndex-X.sortIndex;return F!==0?F:H.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,v=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(H){for(var X=r(u);X!==null;){if(X.callback===null)n(u);else if(X.startTime<=H)n(u),X.sortIndex=X.expirationTime,t(l,X);else break;X=r(u)}}function w(H){if(g=!1,b(H),!v)if(r(l)!==null)v=!0,G(T);else{var X=r(u);X!==null&&q(w,X.startTime-H)}}function T(H,X){v=!1,g&&(g=!1,x(k),k=-1),h=!0;var F=d;try{for(b(X),f=r(l);f!==null&&(!(f.expirationTime>X)||H&&!R());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,d=f.priorityLevel;var Z=Y(f.expirationTime<=X);X=e.unstable_now(),typeof Z=="function"?f.callback=Z:f===r(l)&&n(l),b(X)}else n(l);f=r(l)}if(f!==null)var j=!0;else{var re=r(u);re!==null&&q(w,re.startTime-X),j=!1}return j}finally{f=null,d=F,h=!1}}var C=!1,M=null,k=-1,I=5,P=-1;function R(){return!(e.unstable_now()-P<I)}function L(){if(M!==null){var H=e.unstable_now();P=H;var X=!0;try{X=M(!0,H)}finally{X?O():(C=!1,M=null)}}else C=!1}var O;if(typeof S=="function")O=function(){S(L)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,B=N.port2;N.port1.onmessage=L,O=function(){B.postMessage(null)}}else O=function(){y(L,0)};function G(H){M=H,C||(C=!0,O())}function q(H,X){k=y(function(){H(e.unstable_now())},X)}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(H){H.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,G(T))},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(H){switch(d){case 1:case 2:case 3:var X=3;break;default:X=d}var F=d;d=X;try{return H()}finally{d=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(H,X){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var F=d;d=H;try{return X()}finally{d=F}},e.unstable_scheduleCallback=function(H,X,F){var Y=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?Y+F:Y):F=Y,H){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=F+Z,H={id:c++,callback:X,priorityLevel:H,startTime:F,expirationTime:Z,sortIndex:-1},F>Y?(H.sortIndex=F,t(u,H),r(l)===null&&H===r(u)&&(g?(x(k),k=-1):g=!0,q(w,F-Y))):(H.sortIndex=Z,t(l,H),v||h||(v=!0,G(T))),H},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(H){var X=d;return function(){var F=d;d=X;try{return H.apply(this,arguments)}finally{d=F}}}}(b_)),b_}var JR;function EY(){return JR||(JR=1,S_.exports=RY()),S_.exports}/**
|
26
|
+
* @license React
|
27
|
+
* react-dom.production.min.js
|
28
|
+
*
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
30
|
+
*
|
31
|
+
* This source code is licensed under the MIT license found in the
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
33
|
+
*/var eE;function LY(){if(eE)return Xn;eE=1;var e=dx(),t=EY();function r(p){for(var m="https://reactjs.org/docs/error-decoder.html?invariant="+p,_=1;_<arguments.length;_++)m+="&args[]="+encodeURIComponent(arguments[_]);return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function a(p,m){o(p,m),o(p+"Capture",m)}function o(p,m){for(i[p]=m,p=0;p<m.length;p++)n.add(m[p])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,c={},f={};function d(p){return l.call(f,p)?!0:l.call(c,p)?!1:u.test(p)?f[p]=!0:(c[p]=!0,!1)}function h(p,m,_,A){if(_!==null&&_.type===0)return!1;switch(typeof m){case"function":case"symbol":return!0;case"boolean":return A?!1:_!==null?!_.acceptsBooleans:(p=p.toLowerCase().slice(0,5),p!=="data-"&&p!=="aria-");default:return!1}}function v(p,m,_,A){if(m===null||typeof m>"u"||h(p,m,_,A))return!0;if(A)return!1;if(_!==null)switch(_.type){case 3:return!m;case 4:return m===!1;case 5:return isNaN(m);case 6:return isNaN(m)||1>m}return!1}function g(p,m,_,A,D,E,W){this.acceptsBooleans=m===2||m===3||m===4,this.attributeName=A,this.attributeNamespace=D,this.mustUseProperty=_,this.propertyName=p,this.type=m,this.sanitizeURL=E,this.removeEmptyString=W}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){y[p]=new g(p,0,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var m=p[0];y[m]=new g(m,1,!1,p[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){y[p]=new g(p,2,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){y[p]=new g(p,2,!1,p,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){y[p]=new g(p,3,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){y[p]=new g(p,3,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){y[p]=new g(p,4,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){y[p]=new g(p,6,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){y[p]=new g(p,5,!1,p.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function S(p){return p[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var m=p.replace(x,S);y[m]=new g(m,1,!1,p,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var m=p.replace(x,S);y[m]=new g(m,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var m=p.replace(x,S);y[m]=new g(m,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){y[p]=new g(p,1,!1,p.toLowerCase(),null,!1,!1)}),y.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){y[p]=new g(p,1,!1,p.toLowerCase(),null,!0,!0)});function b(p,m,_,A){var D=y.hasOwnProperty(m)?y[m]:null;(D!==null?D.type!==0:A||!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(v(m,_,D,A)&&(_=null),A||D===null?d(m)&&(_===null?p.removeAttribute(m):p.setAttribute(m,""+_)):D.mustUseProperty?p[D.propertyName]=_===null?D.type===3?!1:"":_:(m=D.attributeName,A=D.attributeNamespace,_===null?p.removeAttribute(m):(D=D.type,_=D===3||D===4&&_===!0?"":""+_,A?p.setAttributeNS(A,m,_):p.setAttribute(m,_))))}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),C=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),R=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),q=Symbol.for("react.offscreen"),H=Symbol.iterator;function X(p){return p===null||typeof p!="object"?null:(p=H&&p[H]||p["@@iterator"],typeof p=="function"?p:null)}var F=Object.assign,Y;function Z(p){if(Y===void 0)try{throw Error()}catch(_){var m=_.stack.trim().match(/\n( *(at )?)/);Y=m&&m[1]||""}return`
|
34
|
+
`+Y+p}var j=!1;function re(p,m){if(!p||j)return"";j=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(m)if(m=function(){throw Error()},Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(se){var A=se}Reflect.construct(p,[],m)}else{try{m.call()}catch(se){A=se}p.call(m.prototype)}else{try{throw Error()}catch(se){A=se}p()}}catch(se){if(se&&A&&typeof se.stack=="string"){for(var D=se.stack.split(`
|
35
|
+
`),E=A.stack.split(`
|
36
|
+
`),W=D.length-1,K=E.length-1;1<=W&&0<=K&&D[W]!==E[K];)K--;for(;1<=W&&0<=K;W--,K--)if(D[W]!==E[K]){if(W!==1||K!==1)do if(W--,K--,0>K||D[W]!==E[K]){var Q=`
|
37
|
+
`+D[W].replace(" at new "," at ");return p.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",p.displayName)),Q}while(1<=W&&0<=K);break}}}finally{j=!1,Error.prepareStackTrace=_}return(p=p?p.displayName||p.name:"")?Z(p):""}function ce(p){switch(p.tag){case 5:return Z(p.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return p=re(p.type,!1),p;case 11:return p=re(p.type.render,!1),p;case 1:return p=re(p.type,!0),p;default:return""}}function te(p){if(p==null)return null;if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case M:return"Fragment";case C:return"Portal";case I:return"Profiler";case k:return"StrictMode";case O:return"Suspense";case N:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case R:return(p.displayName||"Context")+".Consumer";case P:return(p._context.displayName||"Context")+".Provider";case L:var m=p.render;return p=p.displayName,p||(p=m.displayName||m.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case B:return m=p.displayName||null,m!==null?m:te(p.type)||"Memo";case G:m=p._payload,p=p._init;try{return te(p(m))}catch{}}return null}function pe(p){var m=p.type;switch(p.tag){case 24:return"Cache";case 9:return(m.displayName||"Context")+".Consumer";case 10:return(m._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return p=m.render,p=p.displayName||p.name||"",m.displayName||(p!==""?"ForwardRef("+p+")":"ForwardRef");case 7:return"Fragment";case 5:return m;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return te(m);case 8:return m===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m}return null}function ae(p){switch(typeof p){case"boolean":case"number":case"string":case"undefined":return p;case"object":return p;default:return""}}function he(p){var m=p.type;return(p=p.nodeName)&&p.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function ve(p){var m=he(p)?"checked":"value",_=Object.getOwnPropertyDescriptor(p.constructor.prototype,m),A=""+p[m];if(!p.hasOwnProperty(m)&&typeof _<"u"&&typeof _.get=="function"&&typeof _.set=="function"){var D=_.get,E=_.set;return Object.defineProperty(p,m,{configurable:!0,get:function(){return D.call(this)},set:function(W){A=""+W,E.call(this,W)}}),Object.defineProperty(p,m,{enumerable:_.enumerable}),{getValue:function(){return A},setValue:function(W){A=""+W},stopTracking:function(){p._valueTracker=null,delete p[m]}}}}function fe(p){p._valueTracker||(p._valueTracker=ve(p))}function ge(p){if(!p)return!1;var m=p._valueTracker;if(!m)return!0;var _=m.getValue(),A="";return p&&(A=he(p)?p.checked?"true":"false":p.value),p=A,p!==_?(m.setValue(p),!0):!1}function De(p){if(p=p||(typeof document<"u"?document:void 0),typeof p>"u")return null;try{return p.activeElement||p.body}catch{return p.body}}function Ie(p,m){var _=m.checked;return F({},m,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:_??p._wrapperState.initialChecked})}function $e(p,m){var _=m.defaultValue==null?"":m.defaultValue,A=m.checked!=null?m.checked:m.defaultChecked;_=ae(m.value!=null?m.value:_),p._wrapperState={initialChecked:A,initialValue:_,controlled:m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null}}function dt(p,m){m=m.checked,m!=null&&b(p,"checked",m,!1)}function ct(p,m){dt(p,m);var _=ae(m.value),A=m.type;if(_!=null)A==="number"?(_===0&&p.value===""||p.value!=_)&&(p.value=""+_):p.value!==""+_&&(p.value=""+_);else if(A==="submit"||A==="reset"){p.removeAttribute("value");return}m.hasOwnProperty("value")?At(p,m.type,_):m.hasOwnProperty("defaultValue")&&At(p,m.type,ae(m.defaultValue)),m.checked==null&&m.defaultChecked!=null&&(p.defaultChecked=!!m.defaultChecked)}function bt(p,m,_){if(m.hasOwnProperty("value")||m.hasOwnProperty("defaultValue")){var A=m.type;if(!(A!=="submit"&&A!=="reset"||m.value!==void 0&&m.value!==null))return;m=""+p._wrapperState.initialValue,_||m===p.value||(p.value=m),p.defaultValue=m}_=p.name,_!==""&&(p.name=""),p.defaultChecked=!!p._wrapperState.initialChecked,_!==""&&(p.name=_)}function At(p,m,_){(m!=="number"||De(p.ownerDocument)!==p)&&(_==null?p.defaultValue=""+p._wrapperState.initialValue:p.defaultValue!==""+_&&(p.defaultValue=""+_))}var _t=Array.isArray;function it(p,m,_,A){if(p=p.options,m){m={};for(var D=0;D<_.length;D++)m["$"+_[D]]=!0;for(_=0;_<p.length;_++)D=m.hasOwnProperty("$"+p[_].value),p[_].selected!==D&&(p[_].selected=D),D&&A&&(p[_].defaultSelected=!0)}else{for(_=""+ae(_),m=null,D=0;D<p.length;D++){if(p[D].value===_){p[D].selected=!0,A&&(p[D].defaultSelected=!0);return}m!==null||p[D].disabled||(m=p[D])}m!==null&&(m.selected=!0)}}function tr(p,m){if(m.dangerouslySetInnerHTML!=null)throw Error(r(91));return F({},m,{value:void 0,defaultValue:void 0,children:""+p._wrapperState.initialValue})}function $t(p,m){var _=m.value;if(_==null){if(_=m.children,m=m.defaultValue,_!=null){if(m!=null)throw Error(r(92));if(_t(_)){if(1<_.length)throw Error(r(93));_=_[0]}m=_}m==null&&(m=""),_=m}p._wrapperState={initialValue:ae(_)}}function It(p,m){var _=ae(m.value),A=ae(m.defaultValue);_!=null&&(_=""+_,_!==p.value&&(p.value=_),m.defaultValue==null&&p.defaultValue!==_&&(p.defaultValue=_)),A!=null&&(p.defaultValue=""+A)}function le(p){var m=p.textContent;m===p._wrapperState.initialValue&&m!==""&&m!==null&&(p.value=m)}function ye(p){switch(p){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function je(p,m){return p==null||p==="http://www.w3.org/1999/xhtml"?ye(m):p==="http://www.w3.org/2000/svg"&&m==="foreignObject"?"http://www.w3.org/1999/xhtml":p}var Ne,Me=function(p){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(m,_,A,D){MSApp.execUnsafeLocalFunction(function(){return p(m,_,A,D)})}:p}(function(p,m){if(p.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in p)p.innerHTML=m;else{for(Ne=Ne||document.createElement("div"),Ne.innerHTML="<svg>"+m.valueOf().toString()+"</svg>",m=Ne.firstChild;p.firstChild;)p.removeChild(p.firstChild);for(;m.firstChild;)p.appendChild(m.firstChild)}});function Pt(p,m){if(m){var _=p.firstChild;if(_&&_===p.lastChild&&_.nodeType===3){_.nodeValue=m;return}}p.textContent=m}var sr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ze=["Webkit","ms","Moz","O"];Object.keys(sr).forEach(function(p){ze.forEach(function(m){m=m+p.charAt(0).toUpperCase()+p.substring(1),sr[m]=sr[p]})});function wt(p,m,_){return m==null||typeof m=="boolean"||m===""?"":_||typeof m!="number"||m===0||sr.hasOwnProperty(p)&&sr[p]?(""+m).trim():m+"px"}function Gt(p,m){p=p.style;for(var _ in m)if(m.hasOwnProperty(_)){var A=_.indexOf("--")===0,D=wt(_,m[_],A);_==="float"&&(_="cssFloat"),A?p.setProperty(_,D):p[_]=D}}var ke=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ue(p,m){if(m){if(ke[p]&&(m.children!=null||m.dangerouslySetInnerHTML!=null))throw Error(r(137,p));if(m.dangerouslySetInnerHTML!=null){if(m.children!=null)throw Error(r(60));if(typeof m.dangerouslySetInnerHTML!="object"||!("__html"in m.dangerouslySetInnerHTML))throw Error(r(61))}if(m.style!=null&&typeof m.style!="object")throw Error(r(62))}}function ht(p,m){if(p.indexOf("-")===-1)return typeof m.is=="string";switch(p){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 Ot=null;function _r(p){return p=p.target||p.srcElement||window,p.correspondingUseElement&&(p=p.correspondingUseElement),p.nodeType===3?p.parentNode:p}var Hn=null,fi=null,ua=null;function gs(p){if(p=xh(p)){if(typeof Hn!="function")throw Error(r(280));var m=p.stateNode;m&&(m=xm(m),Hn(p.stateNode,p.type,m))}}function Eo(p){fi?ua?ua.push(p):ua=[p]:fi=p}function Yd(){if(fi){var p=fi,m=ua;if(ua=fi=null,gs(p),m)for(p=0;p<m.length;p++)gs(m[p])}}function qd(p,m){return p(m)}function Xd(){}var Zd=!1;function qg(p,m,_){if(Zd)return p(m,_);Zd=!0;try{return qd(p,m,_)}finally{Zd=!1,(fi!==null||ua!==null)&&(Xd(),Yd())}}function Rl(p,m){var _=p.stateNode;if(_===null)return null;var A=xm(_);if(A===null)return null;_=A[m];e:switch(m){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(A=!A.disabled)||(p=p.type,A=!(p==="button"||p==="input"||p==="select"||p==="textarea")),p=!A;break e;default:p=!1}if(p)return null;if(_&&typeof _!="function")throw Error(r(231,m,typeof _));return _}var El=!1;if(s)try{var Ll={};Object.defineProperty(Ll,"passive",{get:function(){El=!0}}),window.addEventListener("test",Ll,Ll),window.removeEventListener("test",Ll,Ll)}catch{El=!1}function Ol(p,m,_,A,D,E,W,K,Q){var se=Array.prototype.slice.call(arguments,3);try{m.apply(_,se)}catch(Se){this.onError(Se)}}var Lo=!1,dn=null,Fa=!1,Kd=null,Nl={onError:function(p){Lo=!0,dn=p}};function Qd(p,m,_,A,D,E,W,K,Q){Lo=!1,dn=null,Ol.apply(Nl,arguments)}function Xg(p,m,_,A,D,E,W,K,Q){if(Qd.apply(this,arguments),Lo){if(Lo){var se=dn;Lo=!1,dn=null}else throw Error(r(198));Fa||(Fa=!0,Kd=se)}}function Va(p){var m=p,_=p;if(p.alternate)for(;m.return;)m=m.return;else{p=m;do m=p,m.flags&4098&&(_=m.return),p=m.return;while(p)}return m.tag===3?_:null}function Jd(p){if(p.tag===13){var m=p.memoizedState;if(m===null&&(p=p.alternate,p!==null&&(m=p.memoizedState)),m!==null)return m.dehydrated}return null}function eh(p){if(Va(p)!==p)throw Error(r(188))}function OS(p){var m=p.alternate;if(!m){if(m=Va(p),m===null)throw Error(r(188));return m!==p?null:p}for(var _=p,A=m;;){var D=_.return;if(D===null)break;var E=D.alternate;if(E===null){if(A=D.return,A!==null){_=A;continue}break}if(D.child===E.child){for(E=D.child;E;){if(E===_)return eh(D),p;if(E===A)return eh(D),m;E=E.sibling}throw Error(r(188))}if(_.return!==A.return)_=D,A=E;else{for(var W=!1,K=D.child;K;){if(K===_){W=!0,_=D,A=E;break}if(K===A){W=!0,A=D,_=E;break}K=K.sibling}if(!W){for(K=E.child;K;){if(K===_){W=!0,_=E,A=D;break}if(K===A){W=!0,A=E,_=D;break}K=K.sibling}if(!W)throw Error(r(189))}}if(_.alternate!==A)throw Error(r(190))}if(_.tag!==3)throw Error(r(188));return _.stateNode.current===_?p:m}function Zg(p){return p=OS(p),p!==null?Kg(p):null}function Kg(p){if(p.tag===5||p.tag===6)return p;for(p=p.child;p!==null;){var m=Kg(p);if(m!==null)return m;p=p.sibling}return null}var Qg=t.unstable_scheduleCallback,Rt=t.unstable_cancelCallback,Tn=t.unstable_shouldYield,B7=t.unstable_requestPaint,kr=t.unstable_now,F7=t.unstable_getCurrentPriorityLevel,NS=t.unstable_ImmediatePriority,wP=t.unstable_UserBlockingPriority,Jg=t.unstable_NormalPriority,V7=t.unstable_LowPriority,CP=t.unstable_IdlePriority,em=null,$a=null;function $7(p){if($a&&typeof $a.onCommitFiberRoot=="function")try{$a.onCommitFiberRoot(em,p,void 0,(p.current.flags&128)===128)}catch{}}var ca=Math.clz32?Math.clz32:W7,G7=Math.log,H7=Math.LN2;function W7(p){return p>>>=0,p===0?32:31-(G7(p)/H7|0)|0}var tm=64,rm=4194304;function th(p){switch(p&-p){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: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 p&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return p&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return p}}function nm(p,m){var _=p.pendingLanes;if(_===0)return 0;var A=0,D=p.suspendedLanes,E=p.pingedLanes,W=_&268435455;if(W!==0){var K=W&~D;K!==0?A=th(K):(E&=W,E!==0&&(A=th(E)))}else W=_&~D,W!==0?A=th(W):E!==0&&(A=th(E));if(A===0)return 0;if(m!==0&&m!==A&&!(m&D)&&(D=A&-A,E=m&-m,D>=E||D===16&&(E&4194240)!==0))return m;if(A&4&&(A|=_&16),m=p.entangledLanes,m!==0)for(p=p.entanglements,m&=A;0<m;)_=31-ca(m),D=1<<_,A|=p[_],m&=~D;return A}function j7(p,m){switch(p){case 1:case 2:case 4:return m+250;case 8:case 16:case 32:case 64: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 m+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function U7(p,m){for(var _=p.suspendedLanes,A=p.pingedLanes,D=p.expirationTimes,E=p.pendingLanes;0<E;){var W=31-ca(E),K=1<<W,Q=D[W];Q===-1?(!(K&_)||K&A)&&(D[W]=j7(K,m)):Q<=m&&(p.expiredLanes|=K),E&=~K}}function zS(p){return p=p.pendingLanes&-1073741825,p!==0?p:p&1073741824?1073741824:0}function TP(){var p=tm;return tm<<=1,!(tm&4194240)&&(tm=64),p}function BS(p){for(var m=[],_=0;31>_;_++)m.push(p);return m}function rh(p,m,_){p.pendingLanes|=m,m!==536870912&&(p.suspendedLanes=0,p.pingedLanes=0),p=p.eventTimes,m=31-ca(m),p[m]=_}function Y7(p,m){var _=p.pendingLanes&~m;p.pendingLanes=m,p.suspendedLanes=0,p.pingedLanes=0,p.expiredLanes&=m,p.mutableReadLanes&=m,p.entangledLanes&=m,m=p.entanglements;var A=p.eventTimes;for(p=p.expirationTimes;0<_;){var D=31-ca(_),E=1<<D;m[D]=0,A[D]=-1,p[D]=-1,_&=~E}}function FS(p,m){var _=p.entangledLanes|=m;for(p=p.entanglements;_;){var A=31-ca(_),D=1<<A;D&m|p[A]&m&&(p[A]|=m),_&=~D}}var rr=0;function AP(p){return p&=-p,1<p?4<p?p&268435455?16:536870912:4:1}var MP,VS,kP,IP,PP,$S=!1,im=[],ms=null,ys=null,xs=null,nh=new Map,ih=new Map,Ss=[],q7="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 submit".split(" ");function DP(p,m){switch(p){case"focusin":case"focusout":ms=null;break;case"dragenter":case"dragleave":ys=null;break;case"mouseover":case"mouseout":xs=null;break;case"pointerover":case"pointerout":nh.delete(m.pointerId);break;case"gotpointercapture":case"lostpointercapture":ih.delete(m.pointerId)}}function ah(p,m,_,A,D,E){return p===null||p.nativeEvent!==E?(p={blockedOn:m,domEventName:_,eventSystemFlags:A,nativeEvent:E,targetContainers:[D]},m!==null&&(m=xh(m),m!==null&&VS(m)),p):(p.eventSystemFlags|=A,m=p.targetContainers,D!==null&&m.indexOf(D)===-1&&m.push(D),p)}function X7(p,m,_,A,D){switch(m){case"focusin":return ms=ah(ms,p,m,_,A,D),!0;case"dragenter":return ys=ah(ys,p,m,_,A,D),!0;case"mouseover":return xs=ah(xs,p,m,_,A,D),!0;case"pointerover":var E=D.pointerId;return nh.set(E,ah(nh.get(E)||null,p,m,_,A,D)),!0;case"gotpointercapture":return E=D.pointerId,ih.set(E,ah(ih.get(E)||null,p,m,_,A,D)),!0}return!1}function RP(p){var m=zl(p.target);if(m!==null){var _=Va(m);if(_!==null){if(m=_.tag,m===13){if(m=Jd(_),m!==null){p.blockedOn=m,PP(p.priority,function(){kP(_)});return}}else if(m===3&&_.stateNode.current.memoizedState.isDehydrated){p.blockedOn=_.tag===3?_.stateNode.containerInfo:null;return}}}p.blockedOn=null}function am(p){if(p.blockedOn!==null)return!1;for(var m=p.targetContainers;0<m.length;){var _=HS(p.domEventName,p.eventSystemFlags,m[0],p.nativeEvent);if(_===null){_=p.nativeEvent;var A=new _.constructor(_.type,_);Ot=A,_.target.dispatchEvent(A),Ot=null}else return m=xh(_),m!==null&&VS(m),p.blockedOn=_,!1;m.shift()}return!0}function EP(p,m,_){am(p)&&_.delete(m)}function Z7(){$S=!1,ms!==null&&am(ms)&&(ms=null),ys!==null&&am(ys)&&(ys=null),xs!==null&&am(xs)&&(xs=null),nh.forEach(EP),ih.forEach(EP)}function oh(p,m){p.blockedOn===m&&(p.blockedOn=null,$S||($S=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Z7)))}function sh(p){function m(D){return oh(D,p)}if(0<im.length){oh(im[0],p);for(var _=1;_<im.length;_++){var A=im[_];A.blockedOn===p&&(A.blockedOn=null)}}for(ms!==null&&oh(ms,p),ys!==null&&oh(ys,p),xs!==null&&oh(xs,p),nh.forEach(m),ih.forEach(m),_=0;_<Ss.length;_++)A=Ss[_],A.blockedOn===p&&(A.blockedOn=null);for(;0<Ss.length&&(_=Ss[0],_.blockedOn===null);)RP(_),_.blockedOn===null&&Ss.shift()}var Pc=w.ReactCurrentBatchConfig,om=!0;function K7(p,m,_,A){var D=rr,E=Pc.transition;Pc.transition=null;try{rr=1,GS(p,m,_,A)}finally{rr=D,Pc.transition=E}}function Q7(p,m,_,A){var D=rr,E=Pc.transition;Pc.transition=null;try{rr=4,GS(p,m,_,A)}finally{rr=D,Pc.transition=E}}function GS(p,m,_,A){if(om){var D=HS(p,m,_,A);if(D===null)ob(p,m,A,sm,_),DP(p,A);else if(X7(D,p,m,_,A))A.stopPropagation();else if(DP(p,A),m&4&&-1<q7.indexOf(p)){for(;D!==null;){var E=xh(D);if(E!==null&&MP(E),E=HS(p,m,_,A),E===null&&ob(p,m,A,sm,_),E===D)break;D=E}D!==null&&A.stopPropagation()}else ob(p,m,A,null,_)}}var sm=null;function HS(p,m,_,A){if(sm=null,p=_r(A),p=zl(p),p!==null)if(m=Va(p),m===null)p=null;else if(_=m.tag,_===13){if(p=Jd(m),p!==null)return p;p=null}else if(_===3){if(m.stateNode.current.memoizedState.isDehydrated)return m.tag===3?m.stateNode.containerInfo:null;p=null}else m!==p&&(p=null);return sm=p,null}function LP(p){switch(p){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(F7()){case NS:return 1;case wP:return 4;case Jg:case V7:return 16;case CP:return 536870912;default:return 16}default:return 16}}var bs=null,WS=null,lm=null;function OP(){if(lm)return lm;var p,m=WS,_=m.length,A,D="value"in bs?bs.value:bs.textContent,E=D.length;for(p=0;p<_&&m[p]===D[p];p++);var W=_-p;for(A=1;A<=W&&m[_-A]===D[E-A];A++);return lm=D.slice(p,1<A?1-A:void 0)}function um(p){var m=p.keyCode;return"charCode"in p?(p=p.charCode,p===0&&m===13&&(p=13)):p=m,p===10&&(p=13),32<=p||p===13?p:0}function cm(){return!0}function NP(){return!1}function di(p){function m(_,A,D,E,W){this._reactName=_,this._targetInst=D,this.type=A,this.nativeEvent=E,this.target=W,this.currentTarget=null;for(var K in p)p.hasOwnProperty(K)&&(_=p[K],this[K]=_?_(E):E[K]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?cm:NP,this.isPropagationStopped=NP,this}return F(m.prototype,{preventDefault:function(){this.defaultPrevented=!0;var _=this.nativeEvent;_&&(_.preventDefault?_.preventDefault():typeof _.returnValue!="unknown"&&(_.returnValue=!1),this.isDefaultPrevented=cm)},stopPropagation:function(){var _=this.nativeEvent;_&&(_.stopPropagation?_.stopPropagation():typeof _.cancelBubble!="unknown"&&(_.cancelBubble=!0),this.isPropagationStopped=cm)},persist:function(){},isPersistent:cm}),m}var Dc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(p){return p.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jS=di(Dc),lh=F({},Dc,{view:0,detail:0}),J7=di(lh),US,YS,uh,fm=F({},lh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:XS,button:0,buttons:0,relatedTarget:function(p){return p.relatedTarget===void 0?p.fromElement===p.srcElement?p.toElement:p.fromElement:p.relatedTarget},movementX:function(p){return"movementX"in p?p.movementX:(p!==uh&&(uh&&p.type==="mousemove"?(US=p.screenX-uh.screenX,YS=p.screenY-uh.screenY):YS=US=0,uh=p),US)},movementY:function(p){return"movementY"in p?p.movementY:YS}}),zP=di(fm),eU=F({},fm,{dataTransfer:0}),tU=di(eU),rU=F({},lh,{relatedTarget:0}),qS=di(rU),nU=F({},Dc,{animationName:0,elapsedTime:0,pseudoElement:0}),iU=di(nU),aU=F({},Dc,{clipboardData:function(p){return"clipboardData"in p?p.clipboardData:window.clipboardData}}),oU=di(aU),sU=F({},Dc,{data:0}),BP=di(sU),lU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uU={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"},cU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fU(p){var m=this.nativeEvent;return m.getModifierState?m.getModifierState(p):(p=cU[p])?!!m[p]:!1}function XS(){return fU}var dU=F({},lh,{key:function(p){if(p.key){var m=lU[p.key]||p.key;if(m!=="Unidentified")return m}return p.type==="keypress"?(p=um(p),p===13?"Enter":String.fromCharCode(p)):p.type==="keydown"||p.type==="keyup"?uU[p.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:XS,charCode:function(p){return p.type==="keypress"?um(p):0},keyCode:function(p){return p.type==="keydown"||p.type==="keyup"?p.keyCode:0},which:function(p){return p.type==="keypress"?um(p):p.type==="keydown"||p.type==="keyup"?p.keyCode:0}}),hU=di(dU),pU=F({},fm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),FP=di(pU),vU=F({},lh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:XS}),gU=di(vU),mU=F({},Dc,{propertyName:0,elapsedTime:0,pseudoElement:0}),yU=di(mU),xU=F({},fm,{deltaX:function(p){return"deltaX"in p?p.deltaX:"wheelDeltaX"in p?-p.wheelDeltaX:0},deltaY:function(p){return"deltaY"in p?p.deltaY:"wheelDeltaY"in p?-p.wheelDeltaY:"wheelDelta"in p?-p.wheelDelta:0},deltaZ:0,deltaMode:0}),SU=di(xU),bU=[9,13,27,32],ZS=s&&"CompositionEvent"in window,ch=null;s&&"documentMode"in document&&(ch=document.documentMode);var _U=s&&"TextEvent"in window&&!ch,VP=s&&(!ZS||ch&&8<ch&&11>=ch),$P=" ",GP=!1;function HP(p,m){switch(p){case"keyup":return bU.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WP(p){return p=p.detail,typeof p=="object"&&"data"in p?p.data:null}var Rc=!1;function wU(p,m){switch(p){case"compositionend":return WP(m);case"keypress":return m.which!==32?null:(GP=!0,$P);case"textInput":return p=m.data,p===$P&&GP?null:p;default:return null}}function CU(p,m){if(Rc)return p==="compositionend"||!ZS&&HP(p,m)?(p=OP(),lm=WS=bs=null,Rc=!1,p):null;switch(p){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1<m.char.length)return m.char;if(m.which)return String.fromCharCode(m.which)}return null;case"compositionend":return VP&&m.locale!=="ko"?null:m.data;default:return null}}var TU={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 jP(p){var m=p&&p.nodeName&&p.nodeName.toLowerCase();return m==="input"?!!TU[p.type]:m==="textarea"}function UP(p,m,_,A){Eo(A),m=gm(m,"onChange"),0<m.length&&(_=new jS("onChange","change",null,_,A),p.push({event:_,listeners:m}))}var fh=null,dh=null;function AU(p){cD(p,0)}function dm(p){var m=zc(p);if(ge(m))return p}function MU(p,m){if(p==="change")return m}var YP=!1;if(s){var KS;if(s){var QS="oninput"in document;if(!QS){var qP=document.createElement("div");qP.setAttribute("oninput","return;"),QS=typeof qP.oninput=="function"}KS=QS}else KS=!1;YP=KS&&(!document.documentMode||9<document.documentMode)}function XP(){fh&&(fh.detachEvent("onpropertychange",ZP),dh=fh=null)}function ZP(p){if(p.propertyName==="value"&&dm(dh)){var m=[];UP(m,dh,p,_r(p)),qg(AU,m)}}function kU(p,m,_){p==="focusin"?(XP(),fh=m,dh=_,fh.attachEvent("onpropertychange",ZP)):p==="focusout"&&XP()}function IU(p){if(p==="selectionchange"||p==="keyup"||p==="keydown")return dm(dh)}function PU(p,m){if(p==="click")return dm(m)}function DU(p,m){if(p==="input"||p==="change")return dm(m)}function RU(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var fa=typeof Object.is=="function"?Object.is:RU;function hh(p,m){if(fa(p,m))return!0;if(typeof p!="object"||p===null||typeof m!="object"||m===null)return!1;var _=Object.keys(p),A=Object.keys(m);if(_.length!==A.length)return!1;for(A=0;A<_.length;A++){var D=_[A];if(!l.call(m,D)||!fa(p[D],m[D]))return!1}return!0}function KP(p){for(;p&&p.firstChild;)p=p.firstChild;return p}function QP(p,m){var _=KP(p);p=0;for(var A;_;){if(_.nodeType===3){if(A=p+_.textContent.length,p<=m&&A>=m)return{node:_,offset:m-p};p=A}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=KP(_)}}function JP(p,m){return p&&m?p===m?!0:p&&p.nodeType===3?!1:m&&m.nodeType===3?JP(p,m.parentNode):"contains"in p?p.contains(m):p.compareDocumentPosition?!!(p.compareDocumentPosition(m)&16):!1:!1}function eD(){for(var p=window,m=De();m instanceof p.HTMLIFrameElement;){try{var _=typeof m.contentWindow.location.href=="string"}catch{_=!1}if(_)p=m.contentWindow;else break;m=De(p.document)}return m}function JS(p){var m=p&&p.nodeName&&p.nodeName.toLowerCase();return m&&(m==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||m==="textarea"||p.contentEditable==="true")}function EU(p){var m=eD(),_=p.focusedElem,A=p.selectionRange;if(m!==_&&_&&_.ownerDocument&&JP(_.ownerDocument.documentElement,_)){if(A!==null&&JS(_)){if(m=A.start,p=A.end,p===void 0&&(p=m),"selectionStart"in _)_.selectionStart=m,_.selectionEnd=Math.min(p,_.value.length);else if(p=(m=_.ownerDocument||document)&&m.defaultView||window,p.getSelection){p=p.getSelection();var D=_.textContent.length,E=Math.min(A.start,D);A=A.end===void 0?E:Math.min(A.end,D),!p.extend&&E>A&&(D=A,A=E,E=D),D=QP(_,E);var W=QP(_,A);D&&W&&(p.rangeCount!==1||p.anchorNode!==D.node||p.anchorOffset!==D.offset||p.focusNode!==W.node||p.focusOffset!==W.offset)&&(m=m.createRange(),m.setStart(D.node,D.offset),p.removeAllRanges(),E>A?(p.addRange(m),p.extend(W.node,W.offset)):(m.setEnd(W.node,W.offset),p.addRange(m)))}}for(m=[],p=_;p=p.parentNode;)p.nodeType===1&&m.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<m.length;_++)p=m[_],p.element.scrollLeft=p.left,p.element.scrollTop=p.top}}var LU=s&&"documentMode"in document&&11>=document.documentMode,Ec=null,eb=null,ph=null,tb=!1;function tD(p,m,_){var A=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;tb||Ec==null||Ec!==De(A)||(A=Ec,"selectionStart"in A&&JS(A)?A={start:A.selectionStart,end:A.selectionEnd}:(A=(A.ownerDocument&&A.ownerDocument.defaultView||window).getSelection(),A={anchorNode:A.anchorNode,anchorOffset:A.anchorOffset,focusNode:A.focusNode,focusOffset:A.focusOffset}),ph&&hh(ph,A)||(ph=A,A=gm(eb,"onSelect"),0<A.length&&(m=new jS("onSelect","select",null,m,_),p.push({event:m,listeners:A}),m.target=Ec)))}function hm(p,m){var _={};return _[p.toLowerCase()]=m.toLowerCase(),_["Webkit"+p]="webkit"+m,_["Moz"+p]="moz"+m,_}var Lc={animationend:hm("Animation","AnimationEnd"),animationiteration:hm("Animation","AnimationIteration"),animationstart:hm("Animation","AnimationStart"),transitionend:hm("Transition","TransitionEnd")},rb={},rD={};s&&(rD=document.createElement("div").style,"AnimationEvent"in window||(delete Lc.animationend.animation,delete Lc.animationiteration.animation,delete Lc.animationstart.animation),"TransitionEvent"in window||delete Lc.transitionend.transition);function pm(p){if(rb[p])return rb[p];if(!Lc[p])return p;var m=Lc[p],_;for(_ in m)if(m.hasOwnProperty(_)&&_ in rD)return rb[p]=m[_];return p}var nD=pm("animationend"),iD=pm("animationiteration"),aD=pm("animationstart"),oD=pm("transitionend"),sD=new Map,lD="abort auxClick 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 _s(p,m){sD.set(p,m),a(m,[p])}for(var nb=0;nb<lD.length;nb++){var ib=lD[nb],OU=ib.toLowerCase(),NU=ib[0].toUpperCase()+ib.slice(1);_s(OU,"on"+NU)}_s(nD,"onAnimationEnd"),_s(iD,"onAnimationIteration"),_s(aD,"onAnimationStart"),_s("dblclick","onDoubleClick"),_s("focusin","onFocus"),_s("focusout","onBlur"),_s(oD,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vh="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(" "),zU=new Set("cancel close invalid load scroll toggle".split(" ").concat(vh));function uD(p,m,_){var A=p.type||"unknown-event";p.currentTarget=_,Xg(A,m,void 0,p),p.currentTarget=null}function cD(p,m){m=(m&4)!==0;for(var _=0;_<p.length;_++){var A=p[_],D=A.event;A=A.listeners;e:{var E=void 0;if(m)for(var W=A.length-1;0<=W;W--){var K=A[W],Q=K.instance,se=K.currentTarget;if(K=K.listener,Q!==E&&D.isPropagationStopped())break e;uD(D,K,se),E=Q}else for(W=0;W<A.length;W++){if(K=A[W],Q=K.instance,se=K.currentTarget,K=K.listener,Q!==E&&D.isPropagationStopped())break e;uD(D,K,se),E=Q}}}if(Fa)throw p=Kd,Fa=!1,Kd=null,p}function hr(p,m){var _=m[db];_===void 0&&(_=m[db]=new Set);var A=p+"__bubble";_.has(A)||(fD(m,p,2,!1),_.add(A))}function ab(p,m,_){var A=0;m&&(A|=4),fD(_,p,A,m)}var vm="_reactListening"+Math.random().toString(36).slice(2);function gh(p){if(!p[vm]){p[vm]=!0,n.forEach(function(_){_!=="selectionchange"&&(zU.has(_)||ab(_,!1,p),ab(_,!0,p))});var m=p.nodeType===9?p:p.ownerDocument;m===null||m[vm]||(m[vm]=!0,ab("selectionchange",!1,m))}}function fD(p,m,_,A){switch(LP(m)){case 1:var D=K7;break;case 4:D=Q7;break;default:D=GS}_=D.bind(null,m,_,p),D=void 0,!El||m!=="touchstart"&&m!=="touchmove"&&m!=="wheel"||(D=!0),A?D!==void 0?p.addEventListener(m,_,{capture:!0,passive:D}):p.addEventListener(m,_,!0):D!==void 0?p.addEventListener(m,_,{passive:D}):p.addEventListener(m,_,!1)}function ob(p,m,_,A,D){var E=A;if(!(m&1)&&!(m&2)&&A!==null)e:for(;;){if(A===null)return;var W=A.tag;if(W===3||W===4){var K=A.stateNode.containerInfo;if(K===D||K.nodeType===8&&K.parentNode===D)break;if(W===4)for(W=A.return;W!==null;){var Q=W.tag;if((Q===3||Q===4)&&(Q=W.stateNode.containerInfo,Q===D||Q.nodeType===8&&Q.parentNode===D))return;W=W.return}for(;K!==null;){if(W=zl(K),W===null)return;if(Q=W.tag,Q===5||Q===6){A=E=W;continue e}K=K.parentNode}}A=A.return}qg(function(){var se=E,Se=_r(_),be=[];e:{var me=sD.get(p);if(me!==void 0){var Fe=jS,Ye=p;switch(p){case"keypress":if(um(_)===0)break e;case"keydown":case"keyup":Fe=hU;break;case"focusin":Ye="focus",Fe=qS;break;case"focusout":Ye="blur",Fe=qS;break;case"beforeblur":case"afterblur":Fe=qS;break;case"click":if(_.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Fe=zP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Fe=tU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Fe=gU;break;case nD:case iD:case aD:Fe=iU;break;case oD:Fe=yU;break;case"scroll":Fe=J7;break;case"wheel":Fe=SU;break;case"copy":case"cut":case"paste":Fe=oU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Fe=FP}var Xe=(m&4)!==0,Ir=!Xe&&p==="scroll",ne=Xe?me!==null?me+"Capture":null:me;Xe=[];for(var ee=se,ie;ee!==null;){ie=ee;var Te=ie.stateNode;if(ie.tag===5&&Te!==null&&(ie=Te,ne!==null&&(Te=Rl(ee,ne),Te!=null&&Xe.push(mh(ee,Te,ie)))),Ir)break;ee=ee.return}0<Xe.length&&(me=new Fe(me,Ye,null,_,Se),be.push({event:me,listeners:Xe}))}}if(!(m&7)){e:{if(me=p==="mouseover"||p==="pointerover",Fe=p==="mouseout"||p==="pointerout",me&&_!==Ot&&(Ye=_.relatedTarget||_.fromElement)&&(zl(Ye)||Ye[Oo]))break e;if((Fe||me)&&(me=Se.window===Se?Se:(me=Se.ownerDocument)?me.defaultView||me.parentWindow:window,Fe?(Ye=_.relatedTarget||_.toElement,Fe=se,Ye=Ye?zl(Ye):null,Ye!==null&&(Ir=Va(Ye),Ye!==Ir||Ye.tag!==5&&Ye.tag!==6)&&(Ye=null)):(Fe=null,Ye=se),Fe!==Ye)){if(Xe=zP,Te="onMouseLeave",ne="onMouseEnter",ee="mouse",(p==="pointerout"||p==="pointerover")&&(Xe=FP,Te="onPointerLeave",ne="onPointerEnter",ee="pointer"),Ir=Fe==null?me:zc(Fe),ie=Ye==null?me:zc(Ye),me=new Xe(Te,ee+"leave",Fe,_,Se),me.target=Ir,me.relatedTarget=ie,Te=null,zl(Se)===se&&(Xe=new Xe(ne,ee+"enter",Ye,_,Se),Xe.target=ie,Xe.relatedTarget=Ir,Te=Xe),Ir=Te,Fe&&Ye)t:{for(Xe=Fe,ne=Ye,ee=0,ie=Xe;ie;ie=Oc(ie))ee++;for(ie=0,Te=ne;Te;Te=Oc(Te))ie++;for(;0<ee-ie;)Xe=Oc(Xe),ee--;for(;0<ie-ee;)ne=Oc(ne),ie--;for(;ee--;){if(Xe===ne||ne!==null&&Xe===ne.alternate)break t;Xe=Oc(Xe),ne=Oc(ne)}Xe=null}else Xe=null;Fe!==null&&dD(be,me,Fe,Xe,!1),Ye!==null&&Ir!==null&&dD(be,Ir,Ye,Xe,!0)}}e:{if(me=se?zc(se):window,Fe=me.nodeName&&me.nodeName.toLowerCase(),Fe==="select"||Fe==="input"&&me.type==="file")var Ke=MU;else if(jP(me))if(YP)Ke=DU;else{Ke=IU;var at=kU}else(Fe=me.nodeName)&&Fe.toLowerCase()==="input"&&(me.type==="checkbox"||me.type==="radio")&&(Ke=PU);if(Ke&&(Ke=Ke(p,se))){UP(be,Ke,_,Se);break e}at&&at(p,me,se),p==="focusout"&&(at=me._wrapperState)&&at.controlled&&me.type==="number"&&At(me,"number",me.value)}switch(at=se?zc(se):window,p){case"focusin":(jP(at)||at.contentEditable==="true")&&(Ec=at,eb=se,ph=null);break;case"focusout":ph=eb=Ec=null;break;case"mousedown":tb=!0;break;case"contextmenu":case"mouseup":case"dragend":tb=!1,tD(be,_,Se);break;case"selectionchange":if(LU)break;case"keydown":case"keyup":tD(be,_,Se)}var ot;if(ZS)e:{switch(p){case"compositionstart":var gt="onCompositionStart";break e;case"compositionend":gt="onCompositionEnd";break e;case"compositionupdate":gt="onCompositionUpdate";break e}gt=void 0}else Rc?HP(p,_)&&(gt="onCompositionEnd"):p==="keydown"&&_.keyCode===229&&(gt="onCompositionStart");gt&&(VP&&_.locale!=="ko"&&(Rc||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Rc&&(ot=OP()):(bs=Se,WS="value"in bs?bs.value:bs.textContent,Rc=!0)),at=gm(se,gt),0<at.length&&(gt=new BP(gt,p,null,_,Se),be.push({event:gt,listeners:at}),ot?gt.data=ot:(ot=WP(_),ot!==null&&(gt.data=ot)))),(ot=_U?wU(p,_):CU(p,_))&&(se=gm(se,"onBeforeInput"),0<se.length&&(Se=new BP("onBeforeInput","beforeinput",null,_,Se),be.push({event:Se,listeners:se}),Se.data=ot))}cD(be,m)})}function mh(p,m,_){return{instance:p,listener:m,currentTarget:_}}function gm(p,m){for(var _=m+"Capture",A=[];p!==null;){var D=p,E=D.stateNode;D.tag===5&&E!==null&&(D=E,E=Rl(p,_),E!=null&&A.unshift(mh(p,E,D)),E=Rl(p,m),E!=null&&A.push(mh(p,E,D))),p=p.return}return A}function Oc(p){if(p===null)return null;do p=p.return;while(p&&p.tag!==5);return p||null}function dD(p,m,_,A,D){for(var E=m._reactName,W=[];_!==null&&_!==A;){var K=_,Q=K.alternate,se=K.stateNode;if(Q!==null&&Q===A)break;K.tag===5&&se!==null&&(K=se,D?(Q=Rl(_,E),Q!=null&&W.unshift(mh(_,Q,K))):D||(Q=Rl(_,E),Q!=null&&W.push(mh(_,Q,K)))),_=_.return}W.length!==0&&p.push({event:m,listeners:W})}var BU=/\r\n?/g,FU=/\u0000|\uFFFD/g;function hD(p){return(typeof p=="string"?p:""+p).replace(BU,`
|
38
|
+
`).replace(FU,"")}function mm(p,m,_){if(m=hD(m),hD(p)!==m&&_)throw Error(r(425))}function ym(){}var sb=null,lb=null;function ub(p,m){return p==="textarea"||p==="noscript"||typeof m.children=="string"||typeof m.children=="number"||typeof m.dangerouslySetInnerHTML=="object"&&m.dangerouslySetInnerHTML!==null&&m.dangerouslySetInnerHTML.__html!=null}var cb=typeof setTimeout=="function"?setTimeout:void 0,VU=typeof clearTimeout=="function"?clearTimeout:void 0,pD=typeof Promise=="function"?Promise:void 0,$U=typeof queueMicrotask=="function"?queueMicrotask:typeof pD<"u"?function(p){return pD.resolve(null).then(p).catch(GU)}:cb;function GU(p){setTimeout(function(){throw p})}function fb(p,m){var _=m,A=0;do{var D=_.nextSibling;if(p.removeChild(_),D&&D.nodeType===8)if(_=D.data,_==="/$"){if(A===0){p.removeChild(D),sh(m);return}A--}else _!=="$"&&_!=="$?"&&_!=="$!"||A++;_=D}while(_);sh(m)}function ws(p){for(;p!=null;p=p.nextSibling){var m=p.nodeType;if(m===1||m===3)break;if(m===8){if(m=p.data,m==="$"||m==="$!"||m==="$?")break;if(m==="/$")return null}}return p}function vD(p){p=p.previousSibling;for(var m=0;p;){if(p.nodeType===8){var _=p.data;if(_==="$"||_==="$!"||_==="$?"){if(m===0)return p;m--}else _==="/$"&&m++}p=p.previousSibling}return null}var Nc=Math.random().toString(36).slice(2),Ga="__reactFiber$"+Nc,yh="__reactProps$"+Nc,Oo="__reactContainer$"+Nc,db="__reactEvents$"+Nc,HU="__reactListeners$"+Nc,WU="__reactHandles$"+Nc;function zl(p){var m=p[Ga];if(m)return m;for(var _=p.parentNode;_;){if(m=_[Oo]||_[Ga]){if(_=m.alternate,m.child!==null||_!==null&&_.child!==null)for(p=vD(p);p!==null;){if(_=p[Ga])return _;p=vD(p)}return m}p=_,_=p.parentNode}return null}function xh(p){return p=p[Ga]||p[Oo],!p||p.tag!==5&&p.tag!==6&&p.tag!==13&&p.tag!==3?null:p}function zc(p){if(p.tag===5||p.tag===6)return p.stateNode;throw Error(r(33))}function xm(p){return p[yh]||null}var hb=[],Bc=-1;function Cs(p){return{current:p}}function pr(p){0>Bc||(p.current=hb[Bc],hb[Bc]=null,Bc--)}function ur(p,m){Bc++,hb[Bc]=p.current,p.current=m}var Ts={},hn=Cs(Ts),Wn=Cs(!1),Bl=Ts;function Fc(p,m){var _=p.type.contextTypes;if(!_)return Ts;var A=p.stateNode;if(A&&A.__reactInternalMemoizedUnmaskedChildContext===m)return A.__reactInternalMemoizedMaskedChildContext;var D={},E;for(E in _)D[E]=m[E];return A&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=m,p.__reactInternalMemoizedMaskedChildContext=D),D}function jn(p){return p=p.childContextTypes,p!=null}function Sm(){pr(Wn),pr(hn)}function gD(p,m,_){if(hn.current!==Ts)throw Error(r(168));ur(hn,m),ur(Wn,_)}function mD(p,m,_){var A=p.stateNode;if(m=m.childContextTypes,typeof A.getChildContext!="function")return _;A=A.getChildContext();for(var D in A)if(!(D in m))throw Error(r(108,pe(p)||"Unknown",D));return F({},_,A)}function bm(p){return p=(p=p.stateNode)&&p.__reactInternalMemoizedMergedChildContext||Ts,Bl=hn.current,ur(hn,p),ur(Wn,Wn.current),!0}function yD(p,m,_){var A=p.stateNode;if(!A)throw Error(r(169));_?(p=mD(p,m,Bl),A.__reactInternalMemoizedMergedChildContext=p,pr(Wn),pr(hn),ur(hn,p)):pr(Wn),ur(Wn,_)}var No=null,_m=!1,pb=!1;function xD(p){No===null?No=[p]:No.push(p)}function jU(p){_m=!0,xD(p)}function As(){if(!pb&&No!==null){pb=!0;var p=0,m=rr;try{var _=No;for(rr=1;p<_.length;p++){var A=_[p];do A=A(!0);while(A!==null)}No=null,_m=!1}catch(D){throw No!==null&&(No=No.slice(p+1)),Qg(NS,As),D}finally{rr=m,pb=!1}}return null}var Vc=[],$c=0,wm=null,Cm=0,Pi=[],Di=0,Fl=null,zo=1,Bo="";function Vl(p,m){Vc[$c++]=Cm,Vc[$c++]=wm,wm=p,Cm=m}function SD(p,m,_){Pi[Di++]=zo,Pi[Di++]=Bo,Pi[Di++]=Fl,Fl=p;var A=zo;p=Bo;var D=32-ca(A)-1;A&=~(1<<D),_+=1;var E=32-ca(m)+D;if(30<E){var W=D-D%5;E=(A&(1<<W)-1).toString(32),A>>=W,D-=W,zo=1<<32-ca(m)+D|_<<D|A,Bo=E+p}else zo=1<<E|_<<D|A,Bo=p}function vb(p){p.return!==null&&(Vl(p,1),SD(p,1,0))}function gb(p){for(;p===wm;)wm=Vc[--$c],Vc[$c]=null,Cm=Vc[--$c],Vc[$c]=null;for(;p===Fl;)Fl=Pi[--Di],Pi[Di]=null,Bo=Pi[--Di],Pi[Di]=null,zo=Pi[--Di],Pi[Di]=null}var hi=null,pi=null,vr=!1,da=null;function bD(p,m){var _=Oi(5,null,null,0);_.elementType="DELETED",_.stateNode=m,_.return=p,m=p.deletions,m===null?(p.deletions=[_],p.flags|=16):m.push(_)}function _D(p,m){switch(p.tag){case 5:var _=p.type;return m=m.nodeType!==1||_.toLowerCase()!==m.nodeName.toLowerCase()?null:m,m!==null?(p.stateNode=m,hi=p,pi=ws(m.firstChild),!0):!1;case 6:return m=p.pendingProps===""||m.nodeType!==3?null:m,m!==null?(p.stateNode=m,hi=p,pi=null,!0):!1;case 13:return m=m.nodeType!==8?null:m,m!==null?(_=Fl!==null?{id:zo,overflow:Bo}:null,p.memoizedState={dehydrated:m,treeContext:_,retryLane:1073741824},_=Oi(18,null,null,0),_.stateNode=m,_.return=p,p.child=_,hi=p,pi=null,!0):!1;default:return!1}}function mb(p){return(p.mode&1)!==0&&(p.flags&128)===0}function yb(p){if(vr){var m=pi;if(m){var _=m;if(!_D(p,m)){if(mb(p))throw Error(r(418));m=ws(_.nextSibling);var A=hi;m&&_D(p,m)?bD(A,_):(p.flags=p.flags&-4097|2,vr=!1,hi=p)}}else{if(mb(p))throw Error(r(418));p.flags=p.flags&-4097|2,vr=!1,hi=p}}}function wD(p){for(p=p.return;p!==null&&p.tag!==5&&p.tag!==3&&p.tag!==13;)p=p.return;hi=p}function Tm(p){if(p!==hi)return!1;if(!vr)return wD(p),vr=!0,!1;var m;if((m=p.tag!==3)&&!(m=p.tag!==5)&&(m=p.type,m=m!=="head"&&m!=="body"&&!ub(p.type,p.memoizedProps)),m&&(m=pi)){if(mb(p))throw CD(),Error(r(418));for(;m;)bD(p,m),m=ws(m.nextSibling)}if(wD(p),p.tag===13){if(p=p.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));e:{for(p=p.nextSibling,m=0;p;){if(p.nodeType===8){var _=p.data;if(_==="/$"){if(m===0){pi=ws(p.nextSibling);break e}m--}else _!=="$"&&_!=="$!"&&_!=="$?"||m++}p=p.nextSibling}pi=null}}else pi=hi?ws(p.stateNode.nextSibling):null;return!0}function CD(){for(var p=pi;p;)p=ws(p.nextSibling)}function Gc(){pi=hi=null,vr=!1}function xb(p){da===null?da=[p]:da.push(p)}var UU=w.ReactCurrentBatchConfig;function Sh(p,m,_){if(p=_.ref,p!==null&&typeof p!="function"&&typeof p!="object"){if(_._owner){if(_=_._owner,_){if(_.tag!==1)throw Error(r(309));var A=_.stateNode}if(!A)throw Error(r(147,p));var D=A,E=""+p;return m!==null&&m.ref!==null&&typeof m.ref=="function"&&m.ref._stringRef===E?m.ref:(m=function(W){var K=D.refs;W===null?delete K[E]:K[E]=W},m._stringRef=E,m)}if(typeof p!="string")throw Error(r(284));if(!_._owner)throw Error(r(290,p))}return p}function Am(p,m){throw p=Object.prototype.toString.call(m),Error(r(31,p==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":p))}function TD(p){var m=p._init;return m(p._payload)}function AD(p){function m(ne,ee){if(p){var ie=ne.deletions;ie===null?(ne.deletions=[ee],ne.flags|=16):ie.push(ee)}}function _(ne,ee){if(!p)return null;for(;ee!==null;)m(ne,ee),ee=ee.sibling;return null}function A(ne,ee){for(ne=new Map;ee!==null;)ee.key!==null?ne.set(ee.key,ee):ne.set(ee.index,ee),ee=ee.sibling;return ne}function D(ne,ee){return ne=Ls(ne,ee),ne.index=0,ne.sibling=null,ne}function E(ne,ee,ie){return ne.index=ie,p?(ie=ne.alternate,ie!==null?(ie=ie.index,ie<ee?(ne.flags|=2,ee):ie):(ne.flags|=2,ee)):(ne.flags|=1048576,ee)}function W(ne){return p&&ne.alternate===null&&(ne.flags|=2),ne}function K(ne,ee,ie,Te){return ee===null||ee.tag!==6?(ee=c_(ie,ne.mode,Te),ee.return=ne,ee):(ee=D(ee,ie),ee.return=ne,ee)}function Q(ne,ee,ie,Te){var Ke=ie.type;return Ke===M?Se(ne,ee,ie.props.children,Te,ie.key):ee!==null&&(ee.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===G&&TD(Ke)===ee.type)?(Te=D(ee,ie.props),Te.ref=Sh(ne,ee,ie),Te.return=ne,Te):(Te=Zm(ie.type,ie.key,ie.props,null,ne.mode,Te),Te.ref=Sh(ne,ee,ie),Te.return=ne,Te)}function se(ne,ee,ie,Te){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ie.containerInfo||ee.stateNode.implementation!==ie.implementation?(ee=f_(ie,ne.mode,Te),ee.return=ne,ee):(ee=D(ee,ie.children||[]),ee.return=ne,ee)}function Se(ne,ee,ie,Te,Ke){return ee===null||ee.tag!==7?(ee=ql(ie,ne.mode,Te,Ke),ee.return=ne,ee):(ee=D(ee,ie),ee.return=ne,ee)}function be(ne,ee,ie){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=c_(""+ee,ne.mode,ie),ee.return=ne,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case T:return ie=Zm(ee.type,ee.key,ee.props,null,ne.mode,ie),ie.ref=Sh(ne,null,ee),ie.return=ne,ie;case C:return ee=f_(ee,ne.mode,ie),ee.return=ne,ee;case G:var Te=ee._init;return be(ne,Te(ee._payload),ie)}if(_t(ee)||X(ee))return ee=ql(ee,ne.mode,ie,null),ee.return=ne,ee;Am(ne,ee)}return null}function me(ne,ee,ie,Te){var Ke=ee!==null?ee.key:null;if(typeof ie=="string"&&ie!==""||typeof ie=="number")return Ke!==null?null:K(ne,ee,""+ie,Te);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case T:return ie.key===Ke?Q(ne,ee,ie,Te):null;case C:return ie.key===Ke?se(ne,ee,ie,Te):null;case G:return Ke=ie._init,me(ne,ee,Ke(ie._payload),Te)}if(_t(ie)||X(ie))return Ke!==null?null:Se(ne,ee,ie,Te,null);Am(ne,ie)}return null}function Fe(ne,ee,ie,Te,Ke){if(typeof Te=="string"&&Te!==""||typeof Te=="number")return ne=ne.get(ie)||null,K(ee,ne,""+Te,Ke);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case T:return ne=ne.get(Te.key===null?ie:Te.key)||null,Q(ee,ne,Te,Ke);case C:return ne=ne.get(Te.key===null?ie:Te.key)||null,se(ee,ne,Te,Ke);case G:var at=Te._init;return Fe(ne,ee,ie,at(Te._payload),Ke)}if(_t(Te)||X(Te))return ne=ne.get(ie)||null,Se(ee,ne,Te,Ke,null);Am(ee,Te)}return null}function Ye(ne,ee,ie,Te){for(var Ke=null,at=null,ot=ee,gt=ee=0,Zr=null;ot!==null&><ie.length;gt++){ot.index>gt?(Zr=ot,ot=null):Zr=ot.sibling;var jt=me(ne,ot,ie[gt],Te);if(jt===null){ot===null&&(ot=Zr);break}p&&ot&&jt.alternate===null&&m(ne,ot),ee=E(jt,ee,gt),at===null?Ke=jt:at.sibling=jt,at=jt,ot=Zr}if(gt===ie.length)return _(ne,ot),vr&&Vl(ne,gt),Ke;if(ot===null){for(;gt<ie.length;gt++)ot=be(ne,ie[gt],Te),ot!==null&&(ee=E(ot,ee,gt),at===null?Ke=ot:at.sibling=ot,at=ot);return vr&&Vl(ne,gt),Ke}for(ot=A(ne,ot);gt<ie.length;gt++)Zr=Fe(ot,ne,gt,ie[gt],Te),Zr!==null&&(p&&Zr.alternate!==null&&ot.delete(Zr.key===null?gt:Zr.key),ee=E(Zr,ee,gt),at===null?Ke=Zr:at.sibling=Zr,at=Zr);return p&&ot.forEach(function(Os){return m(ne,Os)}),vr&&Vl(ne,gt),Ke}function Xe(ne,ee,ie,Te){var Ke=X(ie);if(typeof Ke!="function")throw Error(r(150));if(ie=Ke.call(ie),ie==null)throw Error(r(151));for(var at=Ke=null,ot=ee,gt=ee=0,Zr=null,jt=ie.next();ot!==null&&!jt.done;gt++,jt=ie.next()){ot.index>gt?(Zr=ot,ot=null):Zr=ot.sibling;var Os=me(ne,ot,jt.value,Te);if(Os===null){ot===null&&(ot=Zr);break}p&&ot&&Os.alternate===null&&m(ne,ot),ee=E(Os,ee,gt),at===null?Ke=Os:at.sibling=Os,at=Os,ot=Zr}if(jt.done)return _(ne,ot),vr&&Vl(ne,gt),Ke;if(ot===null){for(;!jt.done;gt++,jt=ie.next())jt=be(ne,jt.value,Te),jt!==null&&(ee=E(jt,ee,gt),at===null?Ke=jt:at.sibling=jt,at=jt);return vr&&Vl(ne,gt),Ke}for(ot=A(ne,ot);!jt.done;gt++,jt=ie.next())jt=Fe(ot,ne,gt,jt.value,Te),jt!==null&&(p&&jt.alternate!==null&&ot.delete(jt.key===null?gt:jt.key),ee=E(jt,ee,gt),at===null?Ke=jt:at.sibling=jt,at=jt);return p&&ot.forEach(function(TY){return m(ne,TY)}),vr&&Vl(ne,gt),Ke}function Ir(ne,ee,ie,Te){if(typeof ie=="object"&&ie!==null&&ie.type===M&&ie.key===null&&(ie=ie.props.children),typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case T:e:{for(var Ke=ie.key,at=ee;at!==null;){if(at.key===Ke){if(Ke=ie.type,Ke===M){if(at.tag===7){_(ne,at.sibling),ee=D(at,ie.props.children),ee.return=ne,ne=ee;break e}}else if(at.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===G&&TD(Ke)===at.type){_(ne,at.sibling),ee=D(at,ie.props),ee.ref=Sh(ne,at,ie),ee.return=ne,ne=ee;break e}_(ne,at);break}else m(ne,at);at=at.sibling}ie.type===M?(ee=ql(ie.props.children,ne.mode,Te,ie.key),ee.return=ne,ne=ee):(Te=Zm(ie.type,ie.key,ie.props,null,ne.mode,Te),Te.ref=Sh(ne,ee,ie),Te.return=ne,ne=Te)}return W(ne);case C:e:{for(at=ie.key;ee!==null;){if(ee.key===at)if(ee.tag===4&&ee.stateNode.containerInfo===ie.containerInfo&&ee.stateNode.implementation===ie.implementation){_(ne,ee.sibling),ee=D(ee,ie.children||[]),ee.return=ne,ne=ee;break e}else{_(ne,ee);break}else m(ne,ee);ee=ee.sibling}ee=f_(ie,ne.mode,Te),ee.return=ne,ne=ee}return W(ne);case G:return at=ie._init,Ir(ne,ee,at(ie._payload),Te)}if(_t(ie))return Ye(ne,ee,ie,Te);if(X(ie))return Xe(ne,ee,ie,Te);Am(ne,ie)}return typeof ie=="string"&&ie!==""||typeof ie=="number"?(ie=""+ie,ee!==null&&ee.tag===6?(_(ne,ee.sibling),ee=D(ee,ie),ee.return=ne,ne=ee):(_(ne,ee),ee=c_(ie,ne.mode,Te),ee.return=ne,ne=ee),W(ne)):_(ne,ee)}return Ir}var Hc=AD(!0),MD=AD(!1),Mm=Cs(null),km=null,Wc=null,Sb=null;function bb(){Sb=Wc=km=null}function _b(p){var m=Mm.current;pr(Mm),p._currentValue=m}function wb(p,m,_){for(;p!==null;){var A=p.alternate;if((p.childLanes&m)!==m?(p.childLanes|=m,A!==null&&(A.childLanes|=m)):A!==null&&(A.childLanes&m)!==m&&(A.childLanes|=m),p===_)break;p=p.return}}function jc(p,m){km=p,Sb=Wc=null,p=p.dependencies,p!==null&&p.firstContext!==null&&(p.lanes&m&&(Un=!0),p.firstContext=null)}function Ri(p){var m=p._currentValue;if(Sb!==p)if(p={context:p,memoizedValue:m,next:null},Wc===null){if(km===null)throw Error(r(308));Wc=p,km.dependencies={lanes:0,firstContext:p}}else Wc=Wc.next=p;return m}var $l=null;function Cb(p){$l===null?$l=[p]:$l.push(p)}function kD(p,m,_,A){var D=m.interleaved;return D===null?(_.next=_,Cb(m)):(_.next=D.next,D.next=_),m.interleaved=_,Fo(p,A)}function Fo(p,m){p.lanes|=m;var _=p.alternate;for(_!==null&&(_.lanes|=m),_=p,p=p.return;p!==null;)p.childLanes|=m,_=p.alternate,_!==null&&(_.childLanes|=m),_=p,p=p.return;return _.tag===3?_.stateNode:null}var Ms=!1;function Tb(p){p.updateQueue={baseState:p.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ID(p,m){p=p.updateQueue,m.updateQueue===p&&(m.updateQueue={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,effects:p.effects})}function Vo(p,m){return{eventTime:p,lane:m,tag:0,payload:null,callback:null,next:null}}function ks(p,m,_){var A=p.updateQueue;if(A===null)return null;if(A=A.shared,Ht&2){var D=A.pending;return D===null?m.next=m:(m.next=D.next,D.next=m),A.pending=m,Fo(p,_)}return D=A.interleaved,D===null?(m.next=m,Cb(A)):(m.next=D.next,D.next=m),A.interleaved=m,Fo(p,_)}function Im(p,m,_){if(m=m.updateQueue,m!==null&&(m=m.shared,(_&4194240)!==0)){var A=m.lanes;A&=p.pendingLanes,_|=A,m.lanes=_,FS(p,_)}}function PD(p,m){var _=p.updateQueue,A=p.alternate;if(A!==null&&(A=A.updateQueue,_===A)){var D=null,E=null;if(_=_.firstBaseUpdate,_!==null){do{var W={eventTime:_.eventTime,lane:_.lane,tag:_.tag,payload:_.payload,callback:_.callback,next:null};E===null?D=E=W:E=E.next=W,_=_.next}while(_!==null);E===null?D=E=m:E=E.next=m}else D=E=m;_={baseState:A.baseState,firstBaseUpdate:D,lastBaseUpdate:E,shared:A.shared,effects:A.effects},p.updateQueue=_;return}p=_.lastBaseUpdate,p===null?_.firstBaseUpdate=m:p.next=m,_.lastBaseUpdate=m}function Pm(p,m,_,A){var D=p.updateQueue;Ms=!1;var E=D.firstBaseUpdate,W=D.lastBaseUpdate,K=D.shared.pending;if(K!==null){D.shared.pending=null;var Q=K,se=Q.next;Q.next=null,W===null?E=se:W.next=se,W=Q;var Se=p.alternate;Se!==null&&(Se=Se.updateQueue,K=Se.lastBaseUpdate,K!==W&&(K===null?Se.firstBaseUpdate=se:K.next=se,Se.lastBaseUpdate=Q))}if(E!==null){var be=D.baseState;W=0,Se=se=Q=null,K=E;do{var me=K.lane,Fe=K.eventTime;if((A&me)===me){Se!==null&&(Se=Se.next={eventTime:Fe,lane:0,tag:K.tag,payload:K.payload,callback:K.callback,next:null});e:{var Ye=p,Xe=K;switch(me=m,Fe=_,Xe.tag){case 1:if(Ye=Xe.payload,typeof Ye=="function"){be=Ye.call(Fe,be,me);break e}be=Ye;break e;case 3:Ye.flags=Ye.flags&-65537|128;case 0:if(Ye=Xe.payload,me=typeof Ye=="function"?Ye.call(Fe,be,me):Ye,me==null)break e;be=F({},be,me);break e;case 2:Ms=!0}}K.callback!==null&&K.lane!==0&&(p.flags|=64,me=D.effects,me===null?D.effects=[K]:me.push(K))}else Fe={eventTime:Fe,lane:me,tag:K.tag,payload:K.payload,callback:K.callback,next:null},Se===null?(se=Se=Fe,Q=be):Se=Se.next=Fe,W|=me;if(K=K.next,K===null){if(K=D.shared.pending,K===null)break;me=K,K=me.next,me.next=null,D.lastBaseUpdate=me,D.shared.pending=null}}while(!0);if(Se===null&&(Q=be),D.baseState=Q,D.firstBaseUpdate=se,D.lastBaseUpdate=Se,m=D.shared.interleaved,m!==null){D=m;do W|=D.lane,D=D.next;while(D!==m)}else E===null&&(D.shared.lanes=0);Wl|=W,p.lanes=W,p.memoizedState=be}}function DD(p,m,_){if(p=m.effects,m.effects=null,p!==null)for(m=0;m<p.length;m++){var A=p[m],D=A.callback;if(D!==null){if(A.callback=null,A=_,typeof D!="function")throw Error(r(191,D));D.call(A)}}}var bh={},Ha=Cs(bh),_h=Cs(bh),wh=Cs(bh);function Gl(p){if(p===bh)throw Error(r(174));return p}function Ab(p,m){switch(ur(wh,m),ur(_h,p),ur(Ha,bh),p=m.nodeType,p){case 9:case 11:m=(m=m.documentElement)?m.namespaceURI:je(null,"");break;default:p=p===8?m.parentNode:m,m=p.namespaceURI||null,p=p.tagName,m=je(m,p)}pr(Ha),ur(Ha,m)}function Uc(){pr(Ha),pr(_h),pr(wh)}function RD(p){Gl(wh.current);var m=Gl(Ha.current),_=je(m,p.type);m!==_&&(ur(_h,p),ur(Ha,_))}function Mb(p){_h.current===p&&(pr(Ha),pr(_h))}var yr=Cs(0);function Dm(p){for(var m=p;m!==null;){if(m.tag===13){var _=m.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||_.data==="$?"||_.data==="$!"))return m}else if(m.tag===19&&m.memoizedProps.revealOrder!==void 0){if(m.flags&128)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===p)break;for(;m.sibling===null;){if(m.return===null||m.return===p)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var kb=[];function Ib(){for(var p=0;p<kb.length;p++)kb[p]._workInProgressVersionPrimary=null;kb.length=0}var Rm=w.ReactCurrentDispatcher,Pb=w.ReactCurrentBatchConfig,Hl=0,xr=null,Vr=null,qr=null,Em=!1,Ch=!1,Th=0,YU=0;function pn(){throw Error(r(321))}function Db(p,m){if(m===null)return!1;for(var _=0;_<m.length&&_<p.length;_++)if(!fa(p[_],m[_]))return!1;return!0}function Rb(p,m,_,A,D,E){if(Hl=E,xr=m,m.memoizedState=null,m.updateQueue=null,m.lanes=0,Rm.current=p===null||p.memoizedState===null?KU:QU,p=_(A,D),Ch){E=0;do{if(Ch=!1,Th=0,25<=E)throw Error(r(301));E+=1,qr=Vr=null,m.updateQueue=null,Rm.current=JU,p=_(A,D)}while(Ch)}if(Rm.current=Nm,m=Vr!==null&&Vr.next!==null,Hl=0,qr=Vr=xr=null,Em=!1,m)throw Error(r(300));return p}function Eb(){var p=Th!==0;return Th=0,p}function Wa(){var p={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qr===null?xr.memoizedState=qr=p:qr=qr.next=p,qr}function Ei(){if(Vr===null){var p=xr.alternate;p=p!==null?p.memoizedState:null}else p=Vr.next;var m=qr===null?xr.memoizedState:qr.next;if(m!==null)qr=m,Vr=p;else{if(p===null)throw Error(r(310));Vr=p,p={memoizedState:Vr.memoizedState,baseState:Vr.baseState,baseQueue:Vr.baseQueue,queue:Vr.queue,next:null},qr===null?xr.memoizedState=qr=p:qr=qr.next=p}return qr}function Ah(p,m){return typeof m=="function"?m(p):m}function Lb(p){var m=Ei(),_=m.queue;if(_===null)throw Error(r(311));_.lastRenderedReducer=p;var A=Vr,D=A.baseQueue,E=_.pending;if(E!==null){if(D!==null){var W=D.next;D.next=E.next,E.next=W}A.baseQueue=D=E,_.pending=null}if(D!==null){E=D.next,A=A.baseState;var K=W=null,Q=null,se=E;do{var Se=se.lane;if((Hl&Se)===Se)Q!==null&&(Q=Q.next={lane:0,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null}),A=se.hasEagerState?se.eagerState:p(A,se.action);else{var be={lane:Se,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null};Q===null?(K=Q=be,W=A):Q=Q.next=be,xr.lanes|=Se,Wl|=Se}se=se.next}while(se!==null&&se!==E);Q===null?W=A:Q.next=K,fa(A,m.memoizedState)||(Un=!0),m.memoizedState=A,m.baseState=W,m.baseQueue=Q,_.lastRenderedState=A}if(p=_.interleaved,p!==null){D=p;do E=D.lane,xr.lanes|=E,Wl|=E,D=D.next;while(D!==p)}else D===null&&(_.lanes=0);return[m.memoizedState,_.dispatch]}function Ob(p){var m=Ei(),_=m.queue;if(_===null)throw Error(r(311));_.lastRenderedReducer=p;var A=_.dispatch,D=_.pending,E=m.memoizedState;if(D!==null){_.pending=null;var W=D=D.next;do E=p(E,W.action),W=W.next;while(W!==D);fa(E,m.memoizedState)||(Un=!0),m.memoizedState=E,m.baseQueue===null&&(m.baseState=E),_.lastRenderedState=E}return[E,A]}function ED(){}function LD(p,m){var _=xr,A=Ei(),D=m(),E=!fa(A.memoizedState,D);if(E&&(A.memoizedState=D,Un=!0),A=A.queue,Nb(zD.bind(null,_,A,p),[p]),A.getSnapshot!==m||E||qr!==null&&qr.memoizedState.tag&1){if(_.flags|=2048,Mh(9,ND.bind(null,_,A,D,m),void 0,null),Xr===null)throw Error(r(349));Hl&30||OD(_,m,D)}return D}function OD(p,m,_){p.flags|=16384,p={getSnapshot:m,value:_},m=xr.updateQueue,m===null?(m={lastEffect:null,stores:null},xr.updateQueue=m,m.stores=[p]):(_=m.stores,_===null?m.stores=[p]:_.push(p))}function ND(p,m,_,A){m.value=_,m.getSnapshot=A,BD(m)&&FD(p)}function zD(p,m,_){return _(function(){BD(m)&&FD(p)})}function BD(p){var m=p.getSnapshot;p=p.value;try{var _=m();return!fa(p,_)}catch{return!0}}function FD(p){var m=Fo(p,1);m!==null&&ga(m,p,1,-1)}function VD(p){var m=Wa();return typeof p=="function"&&(p=p()),m.memoizedState=m.baseState=p,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ah,lastRenderedState:p},m.queue=p,p=p.dispatch=ZU.bind(null,xr,p),[m.memoizedState,p]}function Mh(p,m,_,A){return p={tag:p,create:m,destroy:_,deps:A,next:null},m=xr.updateQueue,m===null?(m={lastEffect:null,stores:null},xr.updateQueue=m,m.lastEffect=p.next=p):(_=m.lastEffect,_===null?m.lastEffect=p.next=p:(A=_.next,_.next=p,p.next=A,m.lastEffect=p)),p}function $D(){return Ei().memoizedState}function Lm(p,m,_,A){var D=Wa();xr.flags|=p,D.memoizedState=Mh(1|m,_,void 0,A===void 0?null:A)}function Om(p,m,_,A){var D=Ei();A=A===void 0?null:A;var E=void 0;if(Vr!==null){var W=Vr.memoizedState;if(E=W.destroy,A!==null&&Db(A,W.deps)){D.memoizedState=Mh(m,_,E,A);return}}xr.flags|=p,D.memoizedState=Mh(1|m,_,E,A)}function GD(p,m){return Lm(8390656,8,p,m)}function Nb(p,m){return Om(2048,8,p,m)}function HD(p,m){return Om(4,2,p,m)}function WD(p,m){return Om(4,4,p,m)}function jD(p,m){if(typeof m=="function")return p=p(),m(p),function(){m(null)};if(m!=null)return p=p(),m.current=p,function(){m.current=null}}function UD(p,m,_){return _=_!=null?_.concat([p]):null,Om(4,4,jD.bind(null,m,p),_)}function zb(){}function YD(p,m){var _=Ei();m=m===void 0?null:m;var A=_.memoizedState;return A!==null&&m!==null&&Db(m,A[1])?A[0]:(_.memoizedState=[p,m],p)}function qD(p,m){var _=Ei();m=m===void 0?null:m;var A=_.memoizedState;return A!==null&&m!==null&&Db(m,A[1])?A[0]:(p=p(),_.memoizedState=[p,m],p)}function XD(p,m,_){return Hl&21?(fa(_,m)||(_=TP(),xr.lanes|=_,Wl|=_,p.baseState=!0),m):(p.baseState&&(p.baseState=!1,Un=!0),p.memoizedState=_)}function qU(p,m){var _=rr;rr=_!==0&&4>_?_:4,p(!0);var A=Pb.transition;Pb.transition={};try{p(!1),m()}finally{rr=_,Pb.transition=A}}function ZD(){return Ei().memoizedState}function XU(p,m,_){var A=Rs(p);if(_={lane:A,action:_,hasEagerState:!1,eagerState:null,next:null},KD(p))QD(m,_);else if(_=kD(p,m,_,A),_!==null){var D=Mn();ga(_,p,A,D),JD(_,m,A)}}function ZU(p,m,_){var A=Rs(p),D={lane:A,action:_,hasEagerState:!1,eagerState:null,next:null};if(KD(p))QD(m,D);else{var E=p.alternate;if(p.lanes===0&&(E===null||E.lanes===0)&&(E=m.lastRenderedReducer,E!==null))try{var W=m.lastRenderedState,K=E(W,_);if(D.hasEagerState=!0,D.eagerState=K,fa(K,W)){var Q=m.interleaved;Q===null?(D.next=D,Cb(m)):(D.next=Q.next,Q.next=D),m.interleaved=D;return}}catch{}finally{}_=kD(p,m,D,A),_!==null&&(D=Mn(),ga(_,p,A,D),JD(_,m,A))}}function KD(p){var m=p.alternate;return p===xr||m!==null&&m===xr}function QD(p,m){Ch=Em=!0;var _=p.pending;_===null?m.next=m:(m.next=_.next,_.next=m),p.pending=m}function JD(p,m,_){if(_&4194240){var A=m.lanes;A&=p.pendingLanes,_|=A,m.lanes=_,FS(p,_)}}var Nm={readContext:Ri,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useInsertionEffect:pn,useLayoutEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useDeferredValue:pn,useTransition:pn,useMutableSource:pn,useSyncExternalStore:pn,useId:pn,unstable_isNewReconciler:!1},KU={readContext:Ri,useCallback:function(p,m){return Wa().memoizedState=[p,m===void 0?null:m],p},useContext:Ri,useEffect:GD,useImperativeHandle:function(p,m,_){return _=_!=null?_.concat([p]):null,Lm(4194308,4,jD.bind(null,m,p),_)},useLayoutEffect:function(p,m){return Lm(4194308,4,p,m)},useInsertionEffect:function(p,m){return Lm(4,2,p,m)},useMemo:function(p,m){var _=Wa();return m=m===void 0?null:m,p=p(),_.memoizedState=[p,m],p},useReducer:function(p,m,_){var A=Wa();return m=_!==void 0?_(m):m,A.memoizedState=A.baseState=m,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:m},A.queue=p,p=p.dispatch=XU.bind(null,xr,p),[A.memoizedState,p]},useRef:function(p){var m=Wa();return p={current:p},m.memoizedState=p},useState:VD,useDebugValue:zb,useDeferredValue:function(p){return Wa().memoizedState=p},useTransition:function(){var p=VD(!1),m=p[0];return p=qU.bind(null,p[1]),Wa().memoizedState=p,[m,p]},useMutableSource:function(){},useSyncExternalStore:function(p,m,_){var A=xr,D=Wa();if(vr){if(_===void 0)throw Error(r(407));_=_()}else{if(_=m(),Xr===null)throw Error(r(349));Hl&30||OD(A,m,_)}D.memoizedState=_;var E={value:_,getSnapshot:m};return D.queue=E,GD(zD.bind(null,A,E,p),[p]),A.flags|=2048,Mh(9,ND.bind(null,A,E,_,m),void 0,null),_},useId:function(){var p=Wa(),m=Xr.identifierPrefix;if(vr){var _=Bo,A=zo;_=(A&~(1<<32-ca(A)-1)).toString(32)+_,m=":"+m+"R"+_,_=Th++,0<_&&(m+="H"+_.toString(32)),m+=":"}else _=YU++,m=":"+m+"r"+_.toString(32)+":";return p.memoizedState=m},unstable_isNewReconciler:!1},QU={readContext:Ri,useCallback:YD,useContext:Ri,useEffect:Nb,useImperativeHandle:UD,useInsertionEffect:HD,useLayoutEffect:WD,useMemo:qD,useReducer:Lb,useRef:$D,useState:function(){return Lb(Ah)},useDebugValue:zb,useDeferredValue:function(p){var m=Ei();return XD(m,Vr.memoizedState,p)},useTransition:function(){var p=Lb(Ah)[0],m=Ei().memoizedState;return[p,m]},useMutableSource:ED,useSyncExternalStore:LD,useId:ZD,unstable_isNewReconciler:!1},JU={readContext:Ri,useCallback:YD,useContext:Ri,useEffect:Nb,useImperativeHandle:UD,useInsertionEffect:HD,useLayoutEffect:WD,useMemo:qD,useReducer:Ob,useRef:$D,useState:function(){return Ob(Ah)},useDebugValue:zb,useDeferredValue:function(p){var m=Ei();return Vr===null?m.memoizedState=p:XD(m,Vr.memoizedState,p)},useTransition:function(){var p=Ob(Ah)[0],m=Ei().memoizedState;return[p,m]},useMutableSource:ED,useSyncExternalStore:LD,useId:ZD,unstable_isNewReconciler:!1};function ha(p,m){if(p&&p.defaultProps){m=F({},m),p=p.defaultProps;for(var _ in p)m[_]===void 0&&(m[_]=p[_]);return m}return m}function Bb(p,m,_,A){m=p.memoizedState,_=_(A,m),_=_==null?m:F({},m,_),p.memoizedState=_,p.lanes===0&&(p.updateQueue.baseState=_)}var zm={isMounted:function(p){return(p=p._reactInternals)?Va(p)===p:!1},enqueueSetState:function(p,m,_){p=p._reactInternals;var A=Mn(),D=Rs(p),E=Vo(A,D);E.payload=m,_!=null&&(E.callback=_),m=ks(p,E,D),m!==null&&(ga(m,p,D,A),Im(m,p,D))},enqueueReplaceState:function(p,m,_){p=p._reactInternals;var A=Mn(),D=Rs(p),E=Vo(A,D);E.tag=1,E.payload=m,_!=null&&(E.callback=_),m=ks(p,E,D),m!==null&&(ga(m,p,D,A),Im(m,p,D))},enqueueForceUpdate:function(p,m){p=p._reactInternals;var _=Mn(),A=Rs(p),D=Vo(_,A);D.tag=2,m!=null&&(D.callback=m),m=ks(p,D,A),m!==null&&(ga(m,p,A,_),Im(m,p,A))}};function eR(p,m,_,A,D,E,W){return p=p.stateNode,typeof p.shouldComponentUpdate=="function"?p.shouldComponentUpdate(A,E,W):m.prototype&&m.prototype.isPureReactComponent?!hh(_,A)||!hh(D,E):!0}function tR(p,m,_){var A=!1,D=Ts,E=m.contextType;return typeof E=="object"&&E!==null?E=Ri(E):(D=jn(m)?Bl:hn.current,A=m.contextTypes,E=(A=A!=null)?Fc(p,D):Ts),m=new m(_,E),p.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=zm,p.stateNode=m,m._reactInternals=p,A&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=D,p.__reactInternalMemoizedMaskedChildContext=E),m}function rR(p,m,_,A){p=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(_,A),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(_,A),m.state!==p&&zm.enqueueReplaceState(m,m.state,null)}function Fb(p,m,_,A){var D=p.stateNode;D.props=_,D.state=p.memoizedState,D.refs={},Tb(p);var E=m.contextType;typeof E=="object"&&E!==null?D.context=Ri(E):(E=jn(m)?Bl:hn.current,D.context=Fc(p,E)),D.state=p.memoizedState,E=m.getDerivedStateFromProps,typeof E=="function"&&(Bb(p,m,E,_),D.state=p.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof D.getSnapshotBeforeUpdate=="function"||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(m=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),m!==D.state&&zm.enqueueReplaceState(D,D.state,null),Pm(p,_,D,A),D.state=p.memoizedState),typeof D.componentDidMount=="function"&&(p.flags|=4194308)}function Yc(p,m){try{var _="",A=m;do _+=ce(A),A=A.return;while(A);var D=_}catch(E){D=`
|
39
|
+
Error generating stack: `+E.message+`
|
40
|
+
`+E.stack}return{value:p,source:m,stack:D,digest:null}}function Vb(p,m,_){return{value:p,source:null,stack:_??null,digest:m??null}}function $b(p,m){try{console.error(m.value)}catch(_){setTimeout(function(){throw _})}}var eY=typeof WeakMap=="function"?WeakMap:Map;function nR(p,m,_){_=Vo(-1,_),_.tag=3,_.payload={element:null};var A=m.value;return _.callback=function(){Wm||(Wm=!0,r_=A),$b(p,m)},_}function iR(p,m,_){_=Vo(-1,_),_.tag=3;var A=p.type.getDerivedStateFromError;if(typeof A=="function"){var D=m.value;_.payload=function(){return A(D)},_.callback=function(){$b(p,m)}}var E=p.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(_.callback=function(){$b(p,m),typeof A!="function"&&(Ps===null?Ps=new Set([this]):Ps.add(this));var W=m.stack;this.componentDidCatch(m.value,{componentStack:W!==null?W:""})}),_}function aR(p,m,_){var A=p.pingCache;if(A===null){A=p.pingCache=new eY;var D=new Set;A.set(m,D)}else D=A.get(m),D===void 0&&(D=new Set,A.set(m,D));D.has(_)||(D.add(_),p=pY.bind(null,p,m,_),m.then(p,p))}function oR(p){do{var m;if((m=p.tag===13)&&(m=p.memoizedState,m=m!==null?m.dehydrated!==null:!0),m)return p;p=p.return}while(p!==null);return null}function sR(p,m,_,A,D){return p.mode&1?(p.flags|=65536,p.lanes=D,p):(p===m?p.flags|=65536:(p.flags|=128,_.flags|=131072,_.flags&=-52805,_.tag===1&&(_.alternate===null?_.tag=17:(m=Vo(-1,1),m.tag=2,ks(_,m,1))),_.lanes|=1),p)}var tY=w.ReactCurrentOwner,Un=!1;function An(p,m,_,A){m.child=p===null?MD(m,null,_,A):Hc(m,p.child,_,A)}function lR(p,m,_,A,D){_=_.render;var E=m.ref;return jc(m,D),A=Rb(p,m,_,A,E,D),_=Eb(),p!==null&&!Un?(m.updateQueue=p.updateQueue,m.flags&=-2053,p.lanes&=~D,$o(p,m,D)):(vr&&_&&vb(m),m.flags|=1,An(p,m,A,D),m.child)}function uR(p,m,_,A,D){if(p===null){var E=_.type;return typeof E=="function"&&!u_(E)&&E.defaultProps===void 0&&_.compare===null&&_.defaultProps===void 0?(m.tag=15,m.type=E,cR(p,m,E,A,D)):(p=Zm(_.type,null,A,m,m.mode,D),p.ref=m.ref,p.return=m,m.child=p)}if(E=p.child,!(p.lanes&D)){var W=E.memoizedProps;if(_=_.compare,_=_!==null?_:hh,_(W,A)&&p.ref===m.ref)return $o(p,m,D)}return m.flags|=1,p=Ls(E,A),p.ref=m.ref,p.return=m,m.child=p}function cR(p,m,_,A,D){if(p!==null){var E=p.memoizedProps;if(hh(E,A)&&p.ref===m.ref)if(Un=!1,m.pendingProps=A=E,(p.lanes&D)!==0)p.flags&131072&&(Un=!0);else return m.lanes=p.lanes,$o(p,m,D)}return Gb(p,m,_,A,D)}function fR(p,m,_){var A=m.pendingProps,D=A.children,E=p!==null?p.memoizedState:null;if(A.mode==="hidden")if(!(m.mode&1))m.memoizedState={baseLanes:0,cachePool:null,transitions:null},ur(Xc,vi),vi|=_;else{if(!(_&1073741824))return p=E!==null?E.baseLanes|_:_,m.lanes=m.childLanes=1073741824,m.memoizedState={baseLanes:p,cachePool:null,transitions:null},m.updateQueue=null,ur(Xc,vi),vi|=p,null;m.memoizedState={baseLanes:0,cachePool:null,transitions:null},A=E!==null?E.baseLanes:_,ur(Xc,vi),vi|=A}else E!==null?(A=E.baseLanes|_,m.memoizedState=null):A=_,ur(Xc,vi),vi|=A;return An(p,m,D,_),m.child}function dR(p,m){var _=m.ref;(p===null&&_!==null||p!==null&&p.ref!==_)&&(m.flags|=512,m.flags|=2097152)}function Gb(p,m,_,A,D){var E=jn(_)?Bl:hn.current;return E=Fc(m,E),jc(m,D),_=Rb(p,m,_,A,E,D),A=Eb(),p!==null&&!Un?(m.updateQueue=p.updateQueue,m.flags&=-2053,p.lanes&=~D,$o(p,m,D)):(vr&&A&&vb(m),m.flags|=1,An(p,m,_,D),m.child)}function hR(p,m,_,A,D){if(jn(_)){var E=!0;bm(m)}else E=!1;if(jc(m,D),m.stateNode===null)Fm(p,m),tR(m,_,A),Fb(m,_,A,D),A=!0;else if(p===null){var W=m.stateNode,K=m.memoizedProps;W.props=K;var Q=W.context,se=_.contextType;typeof se=="object"&&se!==null?se=Ri(se):(se=jn(_)?Bl:hn.current,se=Fc(m,se));var Se=_.getDerivedStateFromProps,be=typeof Se=="function"||typeof W.getSnapshotBeforeUpdate=="function";be||typeof W.UNSAFE_componentWillReceiveProps!="function"&&typeof W.componentWillReceiveProps!="function"||(K!==A||Q!==se)&&rR(m,W,A,se),Ms=!1;var me=m.memoizedState;W.state=me,Pm(m,A,W,D),Q=m.memoizedState,K!==A||me!==Q||Wn.current||Ms?(typeof Se=="function"&&(Bb(m,_,Se,A),Q=m.memoizedState),(K=Ms||eR(m,_,K,A,me,Q,se))?(be||typeof W.UNSAFE_componentWillMount!="function"&&typeof W.componentWillMount!="function"||(typeof W.componentWillMount=="function"&&W.componentWillMount(),typeof W.UNSAFE_componentWillMount=="function"&&W.UNSAFE_componentWillMount()),typeof W.componentDidMount=="function"&&(m.flags|=4194308)):(typeof W.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=A,m.memoizedState=Q),W.props=A,W.state=Q,W.context=se,A=K):(typeof W.componentDidMount=="function"&&(m.flags|=4194308),A=!1)}else{W=m.stateNode,ID(p,m),K=m.memoizedProps,se=m.type===m.elementType?K:ha(m.type,K),W.props=se,be=m.pendingProps,me=W.context,Q=_.contextType,typeof Q=="object"&&Q!==null?Q=Ri(Q):(Q=jn(_)?Bl:hn.current,Q=Fc(m,Q));var Fe=_.getDerivedStateFromProps;(Se=typeof Fe=="function"||typeof W.getSnapshotBeforeUpdate=="function")||typeof W.UNSAFE_componentWillReceiveProps!="function"&&typeof W.componentWillReceiveProps!="function"||(K!==be||me!==Q)&&rR(m,W,A,Q),Ms=!1,me=m.memoizedState,W.state=me,Pm(m,A,W,D);var Ye=m.memoizedState;K!==be||me!==Ye||Wn.current||Ms?(typeof Fe=="function"&&(Bb(m,_,Fe,A),Ye=m.memoizedState),(se=Ms||eR(m,_,se,A,me,Ye,Q)||!1)?(Se||typeof W.UNSAFE_componentWillUpdate!="function"&&typeof W.componentWillUpdate!="function"||(typeof W.componentWillUpdate=="function"&&W.componentWillUpdate(A,Ye,Q),typeof W.UNSAFE_componentWillUpdate=="function"&&W.UNSAFE_componentWillUpdate(A,Ye,Q)),typeof W.componentDidUpdate=="function"&&(m.flags|=4),typeof W.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof W.componentDidUpdate!="function"||K===p.memoizedProps&&me===p.memoizedState||(m.flags|=4),typeof W.getSnapshotBeforeUpdate!="function"||K===p.memoizedProps&&me===p.memoizedState||(m.flags|=1024),m.memoizedProps=A,m.memoizedState=Ye),W.props=A,W.state=Ye,W.context=Q,A=se):(typeof W.componentDidUpdate!="function"||K===p.memoizedProps&&me===p.memoizedState||(m.flags|=4),typeof W.getSnapshotBeforeUpdate!="function"||K===p.memoizedProps&&me===p.memoizedState||(m.flags|=1024),A=!1)}return Hb(p,m,_,A,E,D)}function Hb(p,m,_,A,D,E){dR(p,m);var W=(m.flags&128)!==0;if(!A&&!W)return D&&yD(m,_,!1),$o(p,m,E);A=m.stateNode,tY.current=m;var K=W&&typeof _.getDerivedStateFromError!="function"?null:A.render();return m.flags|=1,p!==null&&W?(m.child=Hc(m,p.child,null,E),m.child=Hc(m,null,K,E)):An(p,m,K,E),m.memoizedState=A.state,D&&yD(m,_,!0),m.child}function pR(p){var m=p.stateNode;m.pendingContext?gD(p,m.pendingContext,m.pendingContext!==m.context):m.context&&gD(p,m.context,!1),Ab(p,m.containerInfo)}function vR(p,m,_,A,D){return Gc(),xb(D),m.flags|=256,An(p,m,_,A),m.child}var Wb={dehydrated:null,treeContext:null,retryLane:0};function jb(p){return{baseLanes:p,cachePool:null,transitions:null}}function gR(p,m,_){var A=m.pendingProps,D=yr.current,E=!1,W=(m.flags&128)!==0,K;if((K=W)||(K=p!==null&&p.memoizedState===null?!1:(D&2)!==0),K?(E=!0,m.flags&=-129):(p===null||p.memoizedState!==null)&&(D|=1),ur(yr,D&1),p===null)return yb(m),p=m.memoizedState,p!==null&&(p=p.dehydrated,p!==null)?(m.mode&1?p.data==="$!"?m.lanes=8:m.lanes=1073741824:m.lanes=1,null):(W=A.children,p=A.fallback,E?(A=m.mode,E=m.child,W={mode:"hidden",children:W},!(A&1)&&E!==null?(E.childLanes=0,E.pendingProps=W):E=Km(W,A,0,null),p=ql(p,A,_,null),E.return=m,p.return=m,E.sibling=p,m.child=E,m.child.memoizedState=jb(_),m.memoizedState=Wb,p):Ub(m,W));if(D=p.memoizedState,D!==null&&(K=D.dehydrated,K!==null))return rY(p,m,W,A,K,D,_);if(E){E=A.fallback,W=m.mode,D=p.child,K=D.sibling;var Q={mode:"hidden",children:A.children};return!(W&1)&&m.child!==D?(A=m.child,A.childLanes=0,A.pendingProps=Q,m.deletions=null):(A=Ls(D,Q),A.subtreeFlags=D.subtreeFlags&14680064),K!==null?E=Ls(K,E):(E=ql(E,W,_,null),E.flags|=2),E.return=m,A.return=m,A.sibling=E,m.child=A,A=E,E=m.child,W=p.child.memoizedState,W=W===null?jb(_):{baseLanes:W.baseLanes|_,cachePool:null,transitions:W.transitions},E.memoizedState=W,E.childLanes=p.childLanes&~_,m.memoizedState=Wb,A}return E=p.child,p=E.sibling,A=Ls(E,{mode:"visible",children:A.children}),!(m.mode&1)&&(A.lanes=_),A.return=m,A.sibling=null,p!==null&&(_=m.deletions,_===null?(m.deletions=[p],m.flags|=16):_.push(p)),m.child=A,m.memoizedState=null,A}function Ub(p,m){return m=Km({mode:"visible",children:m},p.mode,0,null),m.return=p,p.child=m}function Bm(p,m,_,A){return A!==null&&xb(A),Hc(m,p.child,null,_),p=Ub(m,m.pendingProps.children),p.flags|=2,m.memoizedState=null,p}function rY(p,m,_,A,D,E,W){if(_)return m.flags&256?(m.flags&=-257,A=Vb(Error(r(422))),Bm(p,m,W,A)):m.memoizedState!==null?(m.child=p.child,m.flags|=128,null):(E=A.fallback,D=m.mode,A=Km({mode:"visible",children:A.children},D,0,null),E=ql(E,D,W,null),E.flags|=2,A.return=m,E.return=m,A.sibling=E,m.child=A,m.mode&1&&Hc(m,p.child,null,W),m.child.memoizedState=jb(W),m.memoizedState=Wb,E);if(!(m.mode&1))return Bm(p,m,W,null);if(D.data==="$!"){if(A=D.nextSibling&&D.nextSibling.dataset,A)var K=A.dgst;return A=K,E=Error(r(419)),A=Vb(E,A,void 0),Bm(p,m,W,A)}if(K=(W&p.childLanes)!==0,Un||K){if(A=Xr,A!==null){switch(W&-W){case 4:D=2;break;case 16:D=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:D=32;break;case 536870912:D=268435456;break;default:D=0}D=D&(A.suspendedLanes|W)?0:D,D!==0&&D!==E.retryLane&&(E.retryLane=D,Fo(p,D),ga(A,p,D,-1))}return l_(),A=Vb(Error(r(421))),Bm(p,m,W,A)}return D.data==="$?"?(m.flags|=128,m.child=p.child,m=vY.bind(null,p),D._reactRetry=m,null):(p=E.treeContext,pi=ws(D.nextSibling),hi=m,vr=!0,da=null,p!==null&&(Pi[Di++]=zo,Pi[Di++]=Bo,Pi[Di++]=Fl,zo=p.id,Bo=p.overflow,Fl=m),m=Ub(m,A.children),m.flags|=4096,m)}function mR(p,m,_){p.lanes|=m;var A=p.alternate;A!==null&&(A.lanes|=m),wb(p.return,m,_)}function Yb(p,m,_,A,D){var E=p.memoizedState;E===null?p.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:A,tail:_,tailMode:D}:(E.isBackwards=m,E.rendering=null,E.renderingStartTime=0,E.last=A,E.tail=_,E.tailMode=D)}function yR(p,m,_){var A=m.pendingProps,D=A.revealOrder,E=A.tail;if(An(p,m,A.children,_),A=yr.current,A&2)A=A&1|2,m.flags|=128;else{if(p!==null&&p.flags&128)e:for(p=m.child;p!==null;){if(p.tag===13)p.memoizedState!==null&&mR(p,_,m);else if(p.tag===19)mR(p,_,m);else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===m)break e;for(;p.sibling===null;){if(p.return===null||p.return===m)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}A&=1}if(ur(yr,A),!(m.mode&1))m.memoizedState=null;else switch(D){case"forwards":for(_=m.child,D=null;_!==null;)p=_.alternate,p!==null&&Dm(p)===null&&(D=_),_=_.sibling;_=D,_===null?(D=m.child,m.child=null):(D=_.sibling,_.sibling=null),Yb(m,!1,D,_,E);break;case"backwards":for(_=null,D=m.child,m.child=null;D!==null;){if(p=D.alternate,p!==null&&Dm(p)===null){m.child=D;break}p=D.sibling,D.sibling=_,_=D,D=p}Yb(m,!0,_,null,E);break;case"together":Yb(m,!1,null,null,void 0);break;default:m.memoizedState=null}return m.child}function Fm(p,m){!(m.mode&1)&&p!==null&&(p.alternate=null,m.alternate=null,m.flags|=2)}function $o(p,m,_){if(p!==null&&(m.dependencies=p.dependencies),Wl|=m.lanes,!(_&m.childLanes))return null;if(p!==null&&m.child!==p.child)throw Error(r(153));if(m.child!==null){for(p=m.child,_=Ls(p,p.pendingProps),m.child=_,_.return=m;p.sibling!==null;)p=p.sibling,_=_.sibling=Ls(p,p.pendingProps),_.return=m;_.sibling=null}return m.child}function nY(p,m,_){switch(m.tag){case 3:pR(m),Gc();break;case 5:RD(m);break;case 1:jn(m.type)&&bm(m);break;case 4:Ab(m,m.stateNode.containerInfo);break;case 10:var A=m.type._context,D=m.memoizedProps.value;ur(Mm,A._currentValue),A._currentValue=D;break;case 13:if(A=m.memoizedState,A!==null)return A.dehydrated!==null?(ur(yr,yr.current&1),m.flags|=128,null):_&m.child.childLanes?gR(p,m,_):(ur(yr,yr.current&1),p=$o(p,m,_),p!==null?p.sibling:null);ur(yr,yr.current&1);break;case 19:if(A=(_&m.childLanes)!==0,p.flags&128){if(A)return yR(p,m,_);m.flags|=128}if(D=m.memoizedState,D!==null&&(D.rendering=null,D.tail=null,D.lastEffect=null),ur(yr,yr.current),A)break;return null;case 22:case 23:return m.lanes=0,fR(p,m,_)}return $o(p,m,_)}var xR,qb,SR,bR;xR=function(p,m){for(var _=m.child;_!==null;){if(_.tag===5||_.tag===6)p.appendChild(_.stateNode);else if(_.tag!==4&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===m)break;for(;_.sibling===null;){if(_.return===null||_.return===m)return;_=_.return}_.sibling.return=_.return,_=_.sibling}},qb=function(){},SR=function(p,m,_,A){var D=p.memoizedProps;if(D!==A){p=m.stateNode,Gl(Ha.current);var E=null;switch(_){case"input":D=Ie(p,D),A=Ie(p,A),E=[];break;case"select":D=F({},D,{value:void 0}),A=F({},A,{value:void 0}),E=[];break;case"textarea":D=tr(p,D),A=tr(p,A),E=[];break;default:typeof D.onClick!="function"&&typeof A.onClick=="function"&&(p.onclick=ym)}Ue(_,A);var W;_=null;for(se in D)if(!A.hasOwnProperty(se)&&D.hasOwnProperty(se)&&D[se]!=null)if(se==="style"){var K=D[se];for(W in K)K.hasOwnProperty(W)&&(_||(_={}),_[W]="")}else se!=="dangerouslySetInnerHTML"&&se!=="children"&&se!=="suppressContentEditableWarning"&&se!=="suppressHydrationWarning"&&se!=="autoFocus"&&(i.hasOwnProperty(se)?E||(E=[]):(E=E||[]).push(se,null));for(se in A){var Q=A[se];if(K=D!=null?D[se]:void 0,A.hasOwnProperty(se)&&Q!==K&&(Q!=null||K!=null))if(se==="style")if(K){for(W in K)!K.hasOwnProperty(W)||Q&&Q.hasOwnProperty(W)||(_||(_={}),_[W]="");for(W in Q)Q.hasOwnProperty(W)&&K[W]!==Q[W]&&(_||(_={}),_[W]=Q[W])}else _||(E||(E=[]),E.push(se,_)),_=Q;else se==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,K=K?K.__html:void 0,Q!=null&&K!==Q&&(E=E||[]).push(se,Q)):se==="children"?typeof Q!="string"&&typeof Q!="number"||(E=E||[]).push(se,""+Q):se!=="suppressContentEditableWarning"&&se!=="suppressHydrationWarning"&&(i.hasOwnProperty(se)?(Q!=null&&se==="onScroll"&&hr("scroll",p),E||K===Q||(E=[])):(E=E||[]).push(se,Q))}_&&(E=E||[]).push("style",_);var se=E;(m.updateQueue=se)&&(m.flags|=4)}},bR=function(p,m,_,A){_!==A&&(m.flags|=4)};function kh(p,m){if(!vr)switch(p.tailMode){case"hidden":m=p.tail;for(var _=null;m!==null;)m.alternate!==null&&(_=m),m=m.sibling;_===null?p.tail=null:_.sibling=null;break;case"collapsed":_=p.tail;for(var A=null;_!==null;)_.alternate!==null&&(A=_),_=_.sibling;A===null?m||p.tail===null?p.tail=null:p.tail.sibling=null:A.sibling=null}}function vn(p){var m=p.alternate!==null&&p.alternate.child===p.child,_=0,A=0;if(m)for(var D=p.child;D!==null;)_|=D.lanes|D.childLanes,A|=D.subtreeFlags&14680064,A|=D.flags&14680064,D.return=p,D=D.sibling;else for(D=p.child;D!==null;)_|=D.lanes|D.childLanes,A|=D.subtreeFlags,A|=D.flags,D.return=p,D=D.sibling;return p.subtreeFlags|=A,p.childLanes=_,m}function iY(p,m,_){var A=m.pendingProps;switch(gb(m),m.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vn(m),null;case 1:return jn(m.type)&&Sm(),vn(m),null;case 3:return A=m.stateNode,Uc(),pr(Wn),pr(hn),Ib(),A.pendingContext&&(A.context=A.pendingContext,A.pendingContext=null),(p===null||p.child===null)&&(Tm(m)?m.flags|=4:p===null||p.memoizedState.isDehydrated&&!(m.flags&256)||(m.flags|=1024,da!==null&&(a_(da),da=null))),qb(p,m),vn(m),null;case 5:Mb(m);var D=Gl(wh.current);if(_=m.type,p!==null&&m.stateNode!=null)SR(p,m,_,A,D),p.ref!==m.ref&&(m.flags|=512,m.flags|=2097152);else{if(!A){if(m.stateNode===null)throw Error(r(166));return vn(m),null}if(p=Gl(Ha.current),Tm(m)){A=m.stateNode,_=m.type;var E=m.memoizedProps;switch(A[Ga]=m,A[yh]=E,p=(m.mode&1)!==0,_){case"dialog":hr("cancel",A),hr("close",A);break;case"iframe":case"object":case"embed":hr("load",A);break;case"video":case"audio":for(D=0;D<vh.length;D++)hr(vh[D],A);break;case"source":hr("error",A);break;case"img":case"image":case"link":hr("error",A),hr("load",A);break;case"details":hr("toggle",A);break;case"input":$e(A,E),hr("invalid",A);break;case"select":A._wrapperState={wasMultiple:!!E.multiple},hr("invalid",A);break;case"textarea":$t(A,E),hr("invalid",A)}Ue(_,E),D=null;for(var W in E)if(E.hasOwnProperty(W)){var K=E[W];W==="children"?typeof K=="string"?A.textContent!==K&&(E.suppressHydrationWarning!==!0&&mm(A.textContent,K,p),D=["children",K]):typeof K=="number"&&A.textContent!==""+K&&(E.suppressHydrationWarning!==!0&&mm(A.textContent,K,p),D=["children",""+K]):i.hasOwnProperty(W)&&K!=null&&W==="onScroll"&&hr("scroll",A)}switch(_){case"input":fe(A),bt(A,E,!0);break;case"textarea":fe(A),le(A);break;case"select":case"option":break;default:typeof E.onClick=="function"&&(A.onclick=ym)}A=D,m.updateQueue=A,A!==null&&(m.flags|=4)}else{W=D.nodeType===9?D:D.ownerDocument,p==="http://www.w3.org/1999/xhtml"&&(p=ye(_)),p==="http://www.w3.org/1999/xhtml"?_==="script"?(p=W.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild)):typeof A.is=="string"?p=W.createElement(_,{is:A.is}):(p=W.createElement(_),_==="select"&&(W=p,A.multiple?W.multiple=!0:A.size&&(W.size=A.size))):p=W.createElementNS(p,_),p[Ga]=m,p[yh]=A,xR(p,m,!1,!1),m.stateNode=p;e:{switch(W=ht(_,A),_){case"dialog":hr("cancel",p),hr("close",p),D=A;break;case"iframe":case"object":case"embed":hr("load",p),D=A;break;case"video":case"audio":for(D=0;D<vh.length;D++)hr(vh[D],p);D=A;break;case"source":hr("error",p),D=A;break;case"img":case"image":case"link":hr("error",p),hr("load",p),D=A;break;case"details":hr("toggle",p),D=A;break;case"input":$e(p,A),D=Ie(p,A),hr("invalid",p);break;case"option":D=A;break;case"select":p._wrapperState={wasMultiple:!!A.multiple},D=F({},A,{value:void 0}),hr("invalid",p);break;case"textarea":$t(p,A),D=tr(p,A),hr("invalid",p);break;default:D=A}Ue(_,D),K=D;for(E in K)if(K.hasOwnProperty(E)){var Q=K[E];E==="style"?Gt(p,Q):E==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&Me(p,Q)):E==="children"?typeof Q=="string"?(_!=="textarea"||Q!=="")&&Pt(p,Q):typeof Q=="number"&&Pt(p,""+Q):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(i.hasOwnProperty(E)?Q!=null&&E==="onScroll"&&hr("scroll",p):Q!=null&&b(p,E,Q,W))}switch(_){case"input":fe(p),bt(p,A,!1);break;case"textarea":fe(p),le(p);break;case"option":A.value!=null&&p.setAttribute("value",""+ae(A.value));break;case"select":p.multiple=!!A.multiple,E=A.value,E!=null?it(p,!!A.multiple,E,!1):A.defaultValue!=null&&it(p,!!A.multiple,A.defaultValue,!0);break;default:typeof D.onClick=="function"&&(p.onclick=ym)}switch(_){case"button":case"input":case"select":case"textarea":A=!!A.autoFocus;break e;case"img":A=!0;break e;default:A=!1}}A&&(m.flags|=4)}m.ref!==null&&(m.flags|=512,m.flags|=2097152)}return vn(m),null;case 6:if(p&&m.stateNode!=null)bR(p,m,p.memoizedProps,A);else{if(typeof A!="string"&&m.stateNode===null)throw Error(r(166));if(_=Gl(wh.current),Gl(Ha.current),Tm(m)){if(A=m.stateNode,_=m.memoizedProps,A[Ga]=m,(E=A.nodeValue!==_)&&(p=hi,p!==null))switch(p.tag){case 3:mm(A.nodeValue,_,(p.mode&1)!==0);break;case 5:p.memoizedProps.suppressHydrationWarning!==!0&&mm(A.nodeValue,_,(p.mode&1)!==0)}E&&(m.flags|=4)}else A=(_.nodeType===9?_:_.ownerDocument).createTextNode(A),A[Ga]=m,m.stateNode=A}return vn(m),null;case 13:if(pr(yr),A=m.memoizedState,p===null||p.memoizedState!==null&&p.memoizedState.dehydrated!==null){if(vr&&pi!==null&&m.mode&1&&!(m.flags&128))CD(),Gc(),m.flags|=98560,E=!1;else if(E=Tm(m),A!==null&&A.dehydrated!==null){if(p===null){if(!E)throw Error(r(318));if(E=m.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[Ga]=m}else Gc(),!(m.flags&128)&&(m.memoizedState=null),m.flags|=4;vn(m),E=!1}else da!==null&&(a_(da),da=null),E=!0;if(!E)return m.flags&65536?m:null}return m.flags&128?(m.lanes=_,m):(A=A!==null,A!==(p!==null&&p.memoizedState!==null)&&A&&(m.child.flags|=8192,m.mode&1&&(p===null||yr.current&1?$r===0&&($r=3):l_())),m.updateQueue!==null&&(m.flags|=4),vn(m),null);case 4:return Uc(),qb(p,m),p===null&&gh(m.stateNode.containerInfo),vn(m),null;case 10:return _b(m.type._context),vn(m),null;case 17:return jn(m.type)&&Sm(),vn(m),null;case 19:if(pr(yr),E=m.memoizedState,E===null)return vn(m),null;if(A=(m.flags&128)!==0,W=E.rendering,W===null)if(A)kh(E,!1);else{if($r!==0||p!==null&&p.flags&128)for(p=m.child;p!==null;){if(W=Dm(p),W!==null){for(m.flags|=128,kh(E,!1),A=W.updateQueue,A!==null&&(m.updateQueue=A,m.flags|=4),m.subtreeFlags=0,A=_,_=m.child;_!==null;)E=_,p=A,E.flags&=14680066,W=E.alternate,W===null?(E.childLanes=0,E.lanes=p,E.child=null,E.subtreeFlags=0,E.memoizedProps=null,E.memoizedState=null,E.updateQueue=null,E.dependencies=null,E.stateNode=null):(E.childLanes=W.childLanes,E.lanes=W.lanes,E.child=W.child,E.subtreeFlags=0,E.deletions=null,E.memoizedProps=W.memoizedProps,E.memoizedState=W.memoizedState,E.updateQueue=W.updateQueue,E.type=W.type,p=W.dependencies,E.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),_=_.sibling;return ur(yr,yr.current&1|2),m.child}p=p.sibling}E.tail!==null&&kr()>Zc&&(m.flags|=128,A=!0,kh(E,!1),m.lanes=4194304)}else{if(!A)if(p=Dm(W),p!==null){if(m.flags|=128,A=!0,_=p.updateQueue,_!==null&&(m.updateQueue=_,m.flags|=4),kh(E,!0),E.tail===null&&E.tailMode==="hidden"&&!W.alternate&&!vr)return vn(m),null}else 2*kr()-E.renderingStartTime>Zc&&_!==1073741824&&(m.flags|=128,A=!0,kh(E,!1),m.lanes=4194304);E.isBackwards?(W.sibling=m.child,m.child=W):(_=E.last,_!==null?_.sibling=W:m.child=W,E.last=W)}return E.tail!==null?(m=E.tail,E.rendering=m,E.tail=m.sibling,E.renderingStartTime=kr(),m.sibling=null,_=yr.current,ur(yr,A?_&1|2:_&1),m):(vn(m),null);case 22:case 23:return s_(),A=m.memoizedState!==null,p!==null&&p.memoizedState!==null!==A&&(m.flags|=8192),A&&m.mode&1?vi&1073741824&&(vn(m),m.subtreeFlags&6&&(m.flags|=8192)):vn(m),null;case 24:return null;case 25:return null}throw Error(r(156,m.tag))}function aY(p,m){switch(gb(m),m.tag){case 1:return jn(m.type)&&Sm(),p=m.flags,p&65536?(m.flags=p&-65537|128,m):null;case 3:return Uc(),pr(Wn),pr(hn),Ib(),p=m.flags,p&65536&&!(p&128)?(m.flags=p&-65537|128,m):null;case 5:return Mb(m),null;case 13:if(pr(yr),p=m.memoizedState,p!==null&&p.dehydrated!==null){if(m.alternate===null)throw Error(r(340));Gc()}return p=m.flags,p&65536?(m.flags=p&-65537|128,m):null;case 19:return pr(yr),null;case 4:return Uc(),null;case 10:return _b(m.type._context),null;case 22:case 23:return s_(),null;case 24:return null;default:return null}}var Vm=!1,gn=!1,oY=typeof WeakSet=="function"?WeakSet:Set,He=null;function qc(p,m){var _=p.ref;if(_!==null)if(typeof _=="function")try{_(null)}catch(A){wr(p,m,A)}else _.current=null}function Xb(p,m,_){try{_()}catch(A){wr(p,m,A)}}var _R=!1;function sY(p,m){if(sb=om,p=eD(),JS(p)){if("selectionStart"in p)var _={start:p.selectionStart,end:p.selectionEnd};else e:{_=(_=p.ownerDocument)&&_.defaultView||window;var A=_.getSelection&&_.getSelection();if(A&&A.rangeCount!==0){_=A.anchorNode;var D=A.anchorOffset,E=A.focusNode;A=A.focusOffset;try{_.nodeType,E.nodeType}catch{_=null;break e}var W=0,K=-1,Q=-1,se=0,Se=0,be=p,me=null;t:for(;;){for(var Fe;be!==_||D!==0&&be.nodeType!==3||(K=W+D),be!==E||A!==0&&be.nodeType!==3||(Q=W+A),be.nodeType===3&&(W+=be.nodeValue.length),(Fe=be.firstChild)!==null;)me=be,be=Fe;for(;;){if(be===p)break t;if(me===_&&++se===D&&(K=W),me===E&&++Se===A&&(Q=W),(Fe=be.nextSibling)!==null)break;be=me,me=be.parentNode}be=Fe}_=K===-1||Q===-1?null:{start:K,end:Q}}else _=null}_=_||{start:0,end:0}}else _=null;for(lb={focusedElem:p,selectionRange:_},om=!1,He=m;He!==null;)if(m=He,p=m.child,(m.subtreeFlags&1028)!==0&&p!==null)p.return=m,He=p;else for(;He!==null;){m=He;try{var Ye=m.alternate;if(m.flags&1024)switch(m.tag){case 0:case 11:case 15:break;case 1:if(Ye!==null){var Xe=Ye.memoizedProps,Ir=Ye.memoizedState,ne=m.stateNode,ee=ne.getSnapshotBeforeUpdate(m.elementType===m.type?Xe:ha(m.type,Xe),Ir);ne.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var ie=m.stateNode.containerInfo;ie.nodeType===1?ie.textContent="":ie.nodeType===9&&ie.documentElement&&ie.removeChild(ie.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Te){wr(m,m.return,Te)}if(p=m.sibling,p!==null){p.return=m.return,He=p;break}He=m.return}return Ye=_R,_R=!1,Ye}function Ih(p,m,_){var A=m.updateQueue;if(A=A!==null?A.lastEffect:null,A!==null){var D=A=A.next;do{if((D.tag&p)===p){var E=D.destroy;D.destroy=void 0,E!==void 0&&Xb(m,_,E)}D=D.next}while(D!==A)}}function $m(p,m){if(m=m.updateQueue,m=m!==null?m.lastEffect:null,m!==null){var _=m=m.next;do{if((_.tag&p)===p){var A=_.create;_.destroy=A()}_=_.next}while(_!==m)}}function Zb(p){var m=p.ref;if(m!==null){var _=p.stateNode;switch(p.tag){case 5:p=_;break;default:p=_}typeof m=="function"?m(p):m.current=p}}function wR(p){var m=p.alternate;m!==null&&(p.alternate=null,wR(m)),p.child=null,p.deletions=null,p.sibling=null,p.tag===5&&(m=p.stateNode,m!==null&&(delete m[Ga],delete m[yh],delete m[db],delete m[HU],delete m[WU])),p.stateNode=null,p.return=null,p.dependencies=null,p.memoizedProps=null,p.memoizedState=null,p.pendingProps=null,p.stateNode=null,p.updateQueue=null}function CR(p){return p.tag===5||p.tag===3||p.tag===4}function TR(p){e:for(;;){for(;p.sibling===null;){if(p.return===null||CR(p.return))return null;p=p.return}for(p.sibling.return=p.return,p=p.sibling;p.tag!==5&&p.tag!==6&&p.tag!==18;){if(p.flags&2||p.child===null||p.tag===4)continue e;p.child.return=p,p=p.child}if(!(p.flags&2))return p.stateNode}}function Kb(p,m,_){var A=p.tag;if(A===5||A===6)p=p.stateNode,m?_.nodeType===8?_.parentNode.insertBefore(p,m):_.insertBefore(p,m):(_.nodeType===8?(m=_.parentNode,m.insertBefore(p,_)):(m=_,m.appendChild(p)),_=_._reactRootContainer,_!=null||m.onclick!==null||(m.onclick=ym));else if(A!==4&&(p=p.child,p!==null))for(Kb(p,m,_),p=p.sibling;p!==null;)Kb(p,m,_),p=p.sibling}function Qb(p,m,_){var A=p.tag;if(A===5||A===6)p=p.stateNode,m?_.insertBefore(p,m):_.appendChild(p);else if(A!==4&&(p=p.child,p!==null))for(Qb(p,m,_),p=p.sibling;p!==null;)Qb(p,m,_),p=p.sibling}var en=null,pa=!1;function Is(p,m,_){for(_=_.child;_!==null;)AR(p,m,_),_=_.sibling}function AR(p,m,_){if($a&&typeof $a.onCommitFiberUnmount=="function")try{$a.onCommitFiberUnmount(em,_)}catch{}switch(_.tag){case 5:gn||qc(_,m);case 6:var A=en,D=pa;en=null,Is(p,m,_),en=A,pa=D,en!==null&&(pa?(p=en,_=_.stateNode,p.nodeType===8?p.parentNode.removeChild(_):p.removeChild(_)):en.removeChild(_.stateNode));break;case 18:en!==null&&(pa?(p=en,_=_.stateNode,p.nodeType===8?fb(p.parentNode,_):p.nodeType===1&&fb(p,_),sh(p)):fb(en,_.stateNode));break;case 4:A=en,D=pa,en=_.stateNode.containerInfo,pa=!0,Is(p,m,_),en=A,pa=D;break;case 0:case 11:case 14:case 15:if(!gn&&(A=_.updateQueue,A!==null&&(A=A.lastEffect,A!==null))){D=A=A.next;do{var E=D,W=E.destroy;E=E.tag,W!==void 0&&(E&2||E&4)&&Xb(_,m,W),D=D.next}while(D!==A)}Is(p,m,_);break;case 1:if(!gn&&(qc(_,m),A=_.stateNode,typeof A.componentWillUnmount=="function"))try{A.props=_.memoizedProps,A.state=_.memoizedState,A.componentWillUnmount()}catch(K){wr(_,m,K)}Is(p,m,_);break;case 21:Is(p,m,_);break;case 22:_.mode&1?(gn=(A=gn)||_.memoizedState!==null,Is(p,m,_),gn=A):Is(p,m,_);break;default:Is(p,m,_)}}function MR(p){var m=p.updateQueue;if(m!==null){p.updateQueue=null;var _=p.stateNode;_===null&&(_=p.stateNode=new oY),m.forEach(function(A){var D=gY.bind(null,p,A);_.has(A)||(_.add(A),A.then(D,D))})}}function va(p,m){var _=m.deletions;if(_!==null)for(var A=0;A<_.length;A++){var D=_[A];try{var E=p,W=m,K=W;e:for(;K!==null;){switch(K.tag){case 5:en=K.stateNode,pa=!1;break e;case 3:en=K.stateNode.containerInfo,pa=!0;break e;case 4:en=K.stateNode.containerInfo,pa=!0;break e}K=K.return}if(en===null)throw Error(r(160));AR(E,W,D),en=null,pa=!1;var Q=D.alternate;Q!==null&&(Q.return=null),D.return=null}catch(se){wr(D,m,se)}}if(m.subtreeFlags&12854)for(m=m.child;m!==null;)kR(m,p),m=m.sibling}function kR(p,m){var _=p.alternate,A=p.flags;switch(p.tag){case 0:case 11:case 14:case 15:if(va(m,p),ja(p),A&4){try{Ih(3,p,p.return),$m(3,p)}catch(Xe){wr(p,p.return,Xe)}try{Ih(5,p,p.return)}catch(Xe){wr(p,p.return,Xe)}}break;case 1:va(m,p),ja(p),A&512&&_!==null&&qc(_,_.return);break;case 5:if(va(m,p),ja(p),A&512&&_!==null&&qc(_,_.return),p.flags&32){var D=p.stateNode;try{Pt(D,"")}catch(Xe){wr(p,p.return,Xe)}}if(A&4&&(D=p.stateNode,D!=null)){var E=p.memoizedProps,W=_!==null?_.memoizedProps:E,K=p.type,Q=p.updateQueue;if(p.updateQueue=null,Q!==null)try{K==="input"&&E.type==="radio"&&E.name!=null&&dt(D,E),ht(K,W);var se=ht(K,E);for(W=0;W<Q.length;W+=2){var Se=Q[W],be=Q[W+1];Se==="style"?Gt(D,be):Se==="dangerouslySetInnerHTML"?Me(D,be):Se==="children"?Pt(D,be):b(D,Se,be,se)}switch(K){case"input":ct(D,E);break;case"textarea":It(D,E);break;case"select":var me=D._wrapperState.wasMultiple;D._wrapperState.wasMultiple=!!E.multiple;var Fe=E.value;Fe!=null?it(D,!!E.multiple,Fe,!1):me!==!!E.multiple&&(E.defaultValue!=null?it(D,!!E.multiple,E.defaultValue,!0):it(D,!!E.multiple,E.multiple?[]:"",!1))}D[yh]=E}catch(Xe){wr(p,p.return,Xe)}}break;case 6:if(va(m,p),ja(p),A&4){if(p.stateNode===null)throw Error(r(162));D=p.stateNode,E=p.memoizedProps;try{D.nodeValue=E}catch(Xe){wr(p,p.return,Xe)}}break;case 3:if(va(m,p),ja(p),A&4&&_!==null&&_.memoizedState.isDehydrated)try{sh(m.containerInfo)}catch(Xe){wr(p,p.return,Xe)}break;case 4:va(m,p),ja(p);break;case 13:va(m,p),ja(p),D=p.child,D.flags&8192&&(E=D.memoizedState!==null,D.stateNode.isHidden=E,!E||D.alternate!==null&&D.alternate.memoizedState!==null||(t_=kr())),A&4&&MR(p);break;case 22:if(Se=_!==null&&_.memoizedState!==null,p.mode&1?(gn=(se=gn)||Se,va(m,p),gn=se):va(m,p),ja(p),A&8192){if(se=p.memoizedState!==null,(p.stateNode.isHidden=se)&&!Se&&p.mode&1)for(He=p,Se=p.child;Se!==null;){for(be=He=Se;He!==null;){switch(me=He,Fe=me.child,me.tag){case 0:case 11:case 14:case 15:Ih(4,me,me.return);break;case 1:qc(me,me.return);var Ye=me.stateNode;if(typeof Ye.componentWillUnmount=="function"){A=me,_=me.return;try{m=A,Ye.props=m.memoizedProps,Ye.state=m.memoizedState,Ye.componentWillUnmount()}catch(Xe){wr(A,_,Xe)}}break;case 5:qc(me,me.return);break;case 22:if(me.memoizedState!==null){DR(be);continue}}Fe!==null?(Fe.return=me,He=Fe):DR(be)}Se=Se.sibling}e:for(Se=null,be=p;;){if(be.tag===5){if(Se===null){Se=be;try{D=be.stateNode,se?(E=D.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none"):(K=be.stateNode,Q=be.memoizedProps.style,W=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,K.style.display=wt("display",W))}catch(Xe){wr(p,p.return,Xe)}}}else if(be.tag===6){if(Se===null)try{be.stateNode.nodeValue=se?"":be.memoizedProps}catch(Xe){wr(p,p.return,Xe)}}else if((be.tag!==22&&be.tag!==23||be.memoizedState===null||be===p)&&be.child!==null){be.child.return=be,be=be.child;continue}if(be===p)break e;for(;be.sibling===null;){if(be.return===null||be.return===p)break e;Se===be&&(Se=null),be=be.return}Se===be&&(Se=null),be.sibling.return=be.return,be=be.sibling}}break;case 19:va(m,p),ja(p),A&4&&MR(p);break;case 21:break;default:va(m,p),ja(p)}}function ja(p){var m=p.flags;if(m&2){try{e:{for(var _=p.return;_!==null;){if(CR(_)){var A=_;break e}_=_.return}throw Error(r(160))}switch(A.tag){case 5:var D=A.stateNode;A.flags&32&&(Pt(D,""),A.flags&=-33);var E=TR(p);Qb(p,E,D);break;case 3:case 4:var W=A.stateNode.containerInfo,K=TR(p);Kb(p,K,W);break;default:throw Error(r(161))}}catch(Q){wr(p,p.return,Q)}p.flags&=-3}m&4096&&(p.flags&=-4097)}function lY(p,m,_){He=p,IR(p)}function IR(p,m,_){for(var A=(p.mode&1)!==0;He!==null;){var D=He,E=D.child;if(D.tag===22&&A){var W=D.memoizedState!==null||Vm;if(!W){var K=D.alternate,Q=K!==null&&K.memoizedState!==null||gn;K=Vm;var se=gn;if(Vm=W,(gn=Q)&&!se)for(He=D;He!==null;)W=He,Q=W.child,W.tag===22&&W.memoizedState!==null?RR(D):Q!==null?(Q.return=W,He=Q):RR(D);for(;E!==null;)He=E,IR(E),E=E.sibling;He=D,Vm=K,gn=se}PR(p)}else D.subtreeFlags&8772&&E!==null?(E.return=D,He=E):PR(p)}}function PR(p){for(;He!==null;){var m=He;if(m.flags&8772){var _=m.alternate;try{if(m.flags&8772)switch(m.tag){case 0:case 11:case 15:gn||$m(5,m);break;case 1:var A=m.stateNode;if(m.flags&4&&!gn)if(_===null)A.componentDidMount();else{var D=m.elementType===m.type?_.memoizedProps:ha(m.type,_.memoizedProps);A.componentDidUpdate(D,_.memoizedState,A.__reactInternalSnapshotBeforeUpdate)}var E=m.updateQueue;E!==null&&DD(m,E,A);break;case 3:var W=m.updateQueue;if(W!==null){if(_=null,m.child!==null)switch(m.child.tag){case 5:_=m.child.stateNode;break;case 1:_=m.child.stateNode}DD(m,W,_)}break;case 5:var K=m.stateNode;if(_===null&&m.flags&4){_=K;var Q=m.memoizedProps;switch(m.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&_.focus();break;case"img":Q.src&&(_.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(m.memoizedState===null){var se=m.alternate;if(se!==null){var Se=se.memoizedState;if(Se!==null){var be=Se.dehydrated;be!==null&&sh(be)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}gn||m.flags&512&&Zb(m)}catch(me){wr(m,m.return,me)}}if(m===p){He=null;break}if(_=m.sibling,_!==null){_.return=m.return,He=_;break}He=m.return}}function DR(p){for(;He!==null;){var m=He;if(m===p){He=null;break}var _=m.sibling;if(_!==null){_.return=m.return,He=_;break}He=m.return}}function RR(p){for(;He!==null;){var m=He;try{switch(m.tag){case 0:case 11:case 15:var _=m.return;try{$m(4,m)}catch(Q){wr(m,_,Q)}break;case 1:var A=m.stateNode;if(typeof A.componentDidMount=="function"){var D=m.return;try{A.componentDidMount()}catch(Q){wr(m,D,Q)}}var E=m.return;try{Zb(m)}catch(Q){wr(m,E,Q)}break;case 5:var W=m.return;try{Zb(m)}catch(Q){wr(m,W,Q)}}}catch(Q){wr(m,m.return,Q)}if(m===p){He=null;break}var K=m.sibling;if(K!==null){K.return=m.return,He=K;break}He=m.return}}var uY=Math.ceil,Gm=w.ReactCurrentDispatcher,Jb=w.ReactCurrentOwner,Li=w.ReactCurrentBatchConfig,Ht=0,Xr=null,Or=null,tn=0,vi=0,Xc=Cs(0),$r=0,Ph=null,Wl=0,Hm=0,e_=0,Dh=null,Yn=null,t_=0,Zc=1/0,Go=null,Wm=!1,r_=null,Ps=null,jm=!1,Ds=null,Um=0,Rh=0,n_=null,Ym=-1,qm=0;function Mn(){return Ht&6?kr():Ym!==-1?Ym:Ym=kr()}function Rs(p){return p.mode&1?Ht&2&&tn!==0?tn&-tn:UU.transition!==null?(qm===0&&(qm=TP()),qm):(p=rr,p!==0||(p=window.event,p=p===void 0?16:LP(p.type)),p):1}function ga(p,m,_,A){if(50<Rh)throw Rh=0,n_=null,Error(r(185));rh(p,_,A),(!(Ht&2)||p!==Xr)&&(p===Xr&&(!(Ht&2)&&(Hm|=_),$r===4&&Es(p,tn)),qn(p,A),_===1&&Ht===0&&!(m.mode&1)&&(Zc=kr()+500,_m&&As()))}function qn(p,m){var _=p.callbackNode;U7(p,m);var A=nm(p,p===Xr?tn:0);if(A===0)_!==null&&Rt(_),p.callbackNode=null,p.callbackPriority=0;else if(m=A&-A,p.callbackPriority!==m){if(_!=null&&Rt(_),m===1)p.tag===0?jU(LR.bind(null,p)):xD(LR.bind(null,p)),$U(function(){!(Ht&6)&&As()}),_=null;else{switch(AP(A)){case 1:_=NS;break;case 4:_=wP;break;case 16:_=Jg;break;case 536870912:_=CP;break;default:_=Jg}_=GR(_,ER.bind(null,p))}p.callbackPriority=m,p.callbackNode=_}}function ER(p,m){if(Ym=-1,qm=0,Ht&6)throw Error(r(327));var _=p.callbackNode;if(Kc()&&p.callbackNode!==_)return null;var A=nm(p,p===Xr?tn:0);if(A===0)return null;if(A&30||A&p.expiredLanes||m)m=Xm(p,A);else{m=A;var D=Ht;Ht|=2;var E=NR();(Xr!==p||tn!==m)&&(Go=null,Zc=kr()+500,Ul(p,m));do try{dY();break}catch(K){OR(p,K)}while(!0);bb(),Gm.current=E,Ht=D,Or!==null?m=0:(Xr=null,tn=0,m=$r)}if(m!==0){if(m===2&&(D=zS(p),D!==0&&(A=D,m=i_(p,D))),m===1)throw _=Ph,Ul(p,0),Es(p,A),qn(p,kr()),_;if(m===6)Es(p,A);else{if(D=p.current.alternate,!(A&30)&&!cY(D)&&(m=Xm(p,A),m===2&&(E=zS(p),E!==0&&(A=E,m=i_(p,E))),m===1))throw _=Ph,Ul(p,0),Es(p,A),qn(p,kr()),_;switch(p.finishedWork=D,p.finishedLanes=A,m){case 0:case 1:throw Error(r(345));case 2:Yl(p,Yn,Go);break;case 3:if(Es(p,A),(A&130023424)===A&&(m=t_+500-kr(),10<m)){if(nm(p,0)!==0)break;if(D=p.suspendedLanes,(D&A)!==A){Mn(),p.pingedLanes|=p.suspendedLanes&D;break}p.timeoutHandle=cb(Yl.bind(null,p,Yn,Go),m);break}Yl(p,Yn,Go);break;case 4:if(Es(p,A),(A&4194240)===A)break;for(m=p.eventTimes,D=-1;0<A;){var W=31-ca(A);E=1<<W,W=m[W],W>D&&(D=W),A&=~E}if(A=D,A=kr()-A,A=(120>A?120:480>A?480:1080>A?1080:1920>A?1920:3e3>A?3e3:4320>A?4320:1960*uY(A/1960))-A,10<A){p.timeoutHandle=cb(Yl.bind(null,p,Yn,Go),A);break}Yl(p,Yn,Go);break;case 5:Yl(p,Yn,Go);break;default:throw Error(r(329))}}}return qn(p,kr()),p.callbackNode===_?ER.bind(null,p):null}function i_(p,m){var _=Dh;return p.current.memoizedState.isDehydrated&&(Ul(p,m).flags|=256),p=Xm(p,m),p!==2&&(m=Yn,Yn=_,m!==null&&a_(m)),p}function a_(p){Yn===null?Yn=p:Yn.push.apply(Yn,p)}function cY(p){for(var m=p;;){if(m.flags&16384){var _=m.updateQueue;if(_!==null&&(_=_.stores,_!==null))for(var A=0;A<_.length;A++){var D=_[A],E=D.getSnapshot;D=D.value;try{if(!fa(E(),D))return!1}catch{return!1}}}if(_=m.child,m.subtreeFlags&16384&&_!==null)_.return=m,m=_;else{if(m===p)break;for(;m.sibling===null;){if(m.return===null||m.return===p)return!0;m=m.return}m.sibling.return=m.return,m=m.sibling}}return!0}function Es(p,m){for(m&=~e_,m&=~Hm,p.suspendedLanes|=m,p.pingedLanes&=~m,p=p.expirationTimes;0<m;){var _=31-ca(m),A=1<<_;p[_]=-1,m&=~A}}function LR(p){if(Ht&6)throw Error(r(327));Kc();var m=nm(p,0);if(!(m&1))return qn(p,kr()),null;var _=Xm(p,m);if(p.tag!==0&&_===2){var A=zS(p);A!==0&&(m=A,_=i_(p,A))}if(_===1)throw _=Ph,Ul(p,0),Es(p,m),qn(p,kr()),_;if(_===6)throw Error(r(345));return p.finishedWork=p.current.alternate,p.finishedLanes=m,Yl(p,Yn,Go),qn(p,kr()),null}function o_(p,m){var _=Ht;Ht|=1;try{return p(m)}finally{Ht=_,Ht===0&&(Zc=kr()+500,_m&&As())}}function jl(p){Ds!==null&&Ds.tag===0&&!(Ht&6)&&Kc();var m=Ht;Ht|=1;var _=Li.transition,A=rr;try{if(Li.transition=null,rr=1,p)return p()}finally{rr=A,Li.transition=_,Ht=m,!(Ht&6)&&As()}}function s_(){vi=Xc.current,pr(Xc)}function Ul(p,m){p.finishedWork=null,p.finishedLanes=0;var _=p.timeoutHandle;if(_!==-1&&(p.timeoutHandle=-1,VU(_)),Or!==null)for(_=Or.return;_!==null;){var A=_;switch(gb(A),A.tag){case 1:A=A.type.childContextTypes,A!=null&&Sm();break;case 3:Uc(),pr(Wn),pr(hn),Ib();break;case 5:Mb(A);break;case 4:Uc();break;case 13:pr(yr);break;case 19:pr(yr);break;case 10:_b(A.type._context);break;case 22:case 23:s_()}_=_.return}if(Xr=p,Or=p=Ls(p.current,null),tn=vi=m,$r=0,Ph=null,e_=Hm=Wl=0,Yn=Dh=null,$l!==null){for(m=0;m<$l.length;m++)if(_=$l[m],A=_.interleaved,A!==null){_.interleaved=null;var D=A.next,E=_.pending;if(E!==null){var W=E.next;E.next=D,A.next=W}_.pending=A}$l=null}return p}function OR(p,m){do{var _=Or;try{if(bb(),Rm.current=Nm,Em){for(var A=xr.memoizedState;A!==null;){var D=A.queue;D!==null&&(D.pending=null),A=A.next}Em=!1}if(Hl=0,qr=Vr=xr=null,Ch=!1,Th=0,Jb.current=null,_===null||_.return===null){$r=1,Ph=m,Or=null;break}e:{var E=p,W=_.return,K=_,Q=m;if(m=tn,K.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var se=Q,Se=K,be=Se.tag;if(!(Se.mode&1)&&(be===0||be===11||be===15)){var me=Se.alternate;me?(Se.updateQueue=me.updateQueue,Se.memoizedState=me.memoizedState,Se.lanes=me.lanes):(Se.updateQueue=null,Se.memoizedState=null)}var Fe=oR(W);if(Fe!==null){Fe.flags&=-257,sR(Fe,W,K,E,m),Fe.mode&1&&aR(E,se,m),m=Fe,Q=se;var Ye=m.updateQueue;if(Ye===null){var Xe=new Set;Xe.add(Q),m.updateQueue=Xe}else Ye.add(Q);break e}else{if(!(m&1)){aR(E,se,m),l_();break e}Q=Error(r(426))}}else if(vr&&K.mode&1){var Ir=oR(W);if(Ir!==null){!(Ir.flags&65536)&&(Ir.flags|=256),sR(Ir,W,K,E,m),xb(Yc(Q,K));break e}}E=Q=Yc(Q,K),$r!==4&&($r=2),Dh===null?Dh=[E]:Dh.push(E),E=W;do{switch(E.tag){case 3:E.flags|=65536,m&=-m,E.lanes|=m;var ne=nR(E,Q,m);PD(E,ne);break e;case 1:K=Q;var ee=E.type,ie=E.stateNode;if(!(E.flags&128)&&(typeof ee.getDerivedStateFromError=="function"||ie!==null&&typeof ie.componentDidCatch=="function"&&(Ps===null||!Ps.has(ie)))){E.flags|=65536,m&=-m,E.lanes|=m;var Te=iR(E,K,m);PD(E,Te);break e}}E=E.return}while(E!==null)}BR(_)}catch(Ke){m=Ke,Or===_&&_!==null&&(Or=_=_.return);continue}break}while(!0)}function NR(){var p=Gm.current;return Gm.current=Nm,p===null?Nm:p}function l_(){($r===0||$r===3||$r===2)&&($r=4),Xr===null||!(Wl&268435455)&&!(Hm&268435455)||Es(Xr,tn)}function Xm(p,m){var _=Ht;Ht|=2;var A=NR();(Xr!==p||tn!==m)&&(Go=null,Ul(p,m));do try{fY();break}catch(D){OR(p,D)}while(!0);if(bb(),Ht=_,Gm.current=A,Or!==null)throw Error(r(261));return Xr=null,tn=0,$r}function fY(){for(;Or!==null;)zR(Or)}function dY(){for(;Or!==null&&!Tn();)zR(Or)}function zR(p){var m=$R(p.alternate,p,vi);p.memoizedProps=p.pendingProps,m===null?BR(p):Or=m,Jb.current=null}function BR(p){var m=p;do{var _=m.alternate;if(p=m.return,m.flags&32768){if(_=aY(_,m),_!==null){_.flags&=32767,Or=_;return}if(p!==null)p.flags|=32768,p.subtreeFlags=0,p.deletions=null;else{$r=6,Or=null;return}}else if(_=iY(_,m,vi),_!==null){Or=_;return}if(m=m.sibling,m!==null){Or=m;return}Or=m=p}while(m!==null);$r===0&&($r=5)}function Yl(p,m,_){var A=rr,D=Li.transition;try{Li.transition=null,rr=1,hY(p,m,_,A)}finally{Li.transition=D,rr=A}return null}function hY(p,m,_,A){do Kc();while(Ds!==null);if(Ht&6)throw Error(r(327));_=p.finishedWork;var D=p.finishedLanes;if(_===null)return null;if(p.finishedWork=null,p.finishedLanes=0,_===p.current)throw Error(r(177));p.callbackNode=null,p.callbackPriority=0;var E=_.lanes|_.childLanes;if(Y7(p,E),p===Xr&&(Or=Xr=null,tn=0),!(_.subtreeFlags&2064)&&!(_.flags&2064)||jm||(jm=!0,GR(Jg,function(){return Kc(),null})),E=(_.flags&15990)!==0,_.subtreeFlags&15990||E){E=Li.transition,Li.transition=null;var W=rr;rr=1;var K=Ht;Ht|=4,Jb.current=null,sY(p,_),kR(_,p),EU(lb),om=!!sb,lb=sb=null,p.current=_,lY(_),B7(),Ht=K,rr=W,Li.transition=E}else p.current=_;if(jm&&(jm=!1,Ds=p,Um=D),E=p.pendingLanes,E===0&&(Ps=null),$7(_.stateNode),qn(p,kr()),m!==null)for(A=p.onRecoverableError,_=0;_<m.length;_++)D=m[_],A(D.value,{componentStack:D.stack,digest:D.digest});if(Wm)throw Wm=!1,p=r_,r_=null,p;return Um&1&&p.tag!==0&&Kc(),E=p.pendingLanes,E&1?p===n_?Rh++:(Rh=0,n_=p):Rh=0,As(),null}function Kc(){if(Ds!==null){var p=AP(Um),m=Li.transition,_=rr;try{if(Li.transition=null,rr=16>p?16:p,Ds===null)var A=!1;else{if(p=Ds,Ds=null,Um=0,Ht&6)throw Error(r(331));var D=Ht;for(Ht|=4,He=p.current;He!==null;){var E=He,W=E.child;if(He.flags&16){var K=E.deletions;if(K!==null){for(var Q=0;Q<K.length;Q++){var se=K[Q];for(He=se;He!==null;){var Se=He;switch(Se.tag){case 0:case 11:case 15:Ih(8,Se,E)}var be=Se.child;if(be!==null)be.return=Se,He=be;else for(;He!==null;){Se=He;var me=Se.sibling,Fe=Se.return;if(wR(Se),Se===se){He=null;break}if(me!==null){me.return=Fe,He=me;break}He=Fe}}}var Ye=E.alternate;if(Ye!==null){var Xe=Ye.child;if(Xe!==null){Ye.child=null;do{var Ir=Xe.sibling;Xe.sibling=null,Xe=Ir}while(Xe!==null)}}He=E}}if(E.subtreeFlags&2064&&W!==null)W.return=E,He=W;else e:for(;He!==null;){if(E=He,E.flags&2048)switch(E.tag){case 0:case 11:case 15:Ih(9,E,E.return)}var ne=E.sibling;if(ne!==null){ne.return=E.return,He=ne;break e}He=E.return}}var ee=p.current;for(He=ee;He!==null;){W=He;var ie=W.child;if(W.subtreeFlags&2064&&ie!==null)ie.return=W,He=ie;else e:for(W=ee;He!==null;){if(K=He,K.flags&2048)try{switch(K.tag){case 0:case 11:case 15:$m(9,K)}}catch(Ke){wr(K,K.return,Ke)}if(K===W){He=null;break e}var Te=K.sibling;if(Te!==null){Te.return=K.return,He=Te;break e}He=K.return}}if(Ht=D,As(),$a&&typeof $a.onPostCommitFiberRoot=="function")try{$a.onPostCommitFiberRoot(em,p)}catch{}A=!0}return A}finally{rr=_,Li.transition=m}}return!1}function FR(p,m,_){m=Yc(_,m),m=nR(p,m,1),p=ks(p,m,1),m=Mn(),p!==null&&(rh(p,1,m),qn(p,m))}function wr(p,m,_){if(p.tag===3)FR(p,p,_);else for(;m!==null;){if(m.tag===3){FR(m,p,_);break}else if(m.tag===1){var A=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof A.componentDidCatch=="function"&&(Ps===null||!Ps.has(A))){p=Yc(_,p),p=iR(m,p,1),m=ks(m,p,1),p=Mn(),m!==null&&(rh(m,1,p),qn(m,p));break}}m=m.return}}function pY(p,m,_){var A=p.pingCache;A!==null&&A.delete(m),m=Mn(),p.pingedLanes|=p.suspendedLanes&_,Xr===p&&(tn&_)===_&&($r===4||$r===3&&(tn&130023424)===tn&&500>kr()-t_?Ul(p,0):e_|=_),qn(p,m)}function VR(p,m){m===0&&(p.mode&1?(m=rm,rm<<=1,!(rm&130023424)&&(rm=4194304)):m=1);var _=Mn();p=Fo(p,m),p!==null&&(rh(p,m,_),qn(p,_))}function vY(p){var m=p.memoizedState,_=0;m!==null&&(_=m.retryLane),VR(p,_)}function gY(p,m){var _=0;switch(p.tag){case 13:var A=p.stateNode,D=p.memoizedState;D!==null&&(_=D.retryLane);break;case 19:A=p.stateNode;break;default:throw Error(r(314))}A!==null&&A.delete(m),VR(p,_)}var $R;$R=function(p,m,_){if(p!==null)if(p.memoizedProps!==m.pendingProps||Wn.current)Un=!0;else{if(!(p.lanes&_)&&!(m.flags&128))return Un=!1,nY(p,m,_);Un=!!(p.flags&131072)}else Un=!1,vr&&m.flags&1048576&&SD(m,Cm,m.index);switch(m.lanes=0,m.tag){case 2:var A=m.type;Fm(p,m),p=m.pendingProps;var D=Fc(m,hn.current);jc(m,_),D=Rb(null,m,A,p,D,_);var E=Eb();return m.flags|=1,typeof D=="object"&&D!==null&&typeof D.render=="function"&&D.$$typeof===void 0?(m.tag=1,m.memoizedState=null,m.updateQueue=null,jn(A)?(E=!0,bm(m)):E=!1,m.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,Tb(m),D.updater=zm,m.stateNode=D,D._reactInternals=m,Fb(m,A,p,_),m=Hb(null,m,A,!0,E,_)):(m.tag=0,vr&&E&&vb(m),An(null,m,D,_),m=m.child),m;case 16:A=m.elementType;e:{switch(Fm(p,m),p=m.pendingProps,D=A._init,A=D(A._payload),m.type=A,D=m.tag=yY(A),p=ha(A,p),D){case 0:m=Gb(null,m,A,p,_);break e;case 1:m=hR(null,m,A,p,_);break e;case 11:m=lR(null,m,A,p,_);break e;case 14:m=uR(null,m,A,ha(A.type,p),_);break e}throw Error(r(306,A,""))}return m;case 0:return A=m.type,D=m.pendingProps,D=m.elementType===A?D:ha(A,D),Gb(p,m,A,D,_);case 1:return A=m.type,D=m.pendingProps,D=m.elementType===A?D:ha(A,D),hR(p,m,A,D,_);case 3:e:{if(pR(m),p===null)throw Error(r(387));A=m.pendingProps,E=m.memoizedState,D=E.element,ID(p,m),Pm(m,A,null,_);var W=m.memoizedState;if(A=W.element,E.isDehydrated)if(E={element:A,isDehydrated:!1,cache:W.cache,pendingSuspenseBoundaries:W.pendingSuspenseBoundaries,transitions:W.transitions},m.updateQueue.baseState=E,m.memoizedState=E,m.flags&256){D=Yc(Error(r(423)),m),m=vR(p,m,A,_,D);break e}else if(A!==D){D=Yc(Error(r(424)),m),m=vR(p,m,A,_,D);break e}else for(pi=ws(m.stateNode.containerInfo.firstChild),hi=m,vr=!0,da=null,_=MD(m,null,A,_),m.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling;else{if(Gc(),A===D){m=$o(p,m,_);break e}An(p,m,A,_)}m=m.child}return m;case 5:return RD(m),p===null&&yb(m),A=m.type,D=m.pendingProps,E=p!==null?p.memoizedProps:null,W=D.children,ub(A,D)?W=null:E!==null&&ub(A,E)&&(m.flags|=32),dR(p,m),An(p,m,W,_),m.child;case 6:return p===null&&yb(m),null;case 13:return gR(p,m,_);case 4:return Ab(m,m.stateNode.containerInfo),A=m.pendingProps,p===null?m.child=Hc(m,null,A,_):An(p,m,A,_),m.child;case 11:return A=m.type,D=m.pendingProps,D=m.elementType===A?D:ha(A,D),lR(p,m,A,D,_);case 7:return An(p,m,m.pendingProps,_),m.child;case 8:return An(p,m,m.pendingProps.children,_),m.child;case 12:return An(p,m,m.pendingProps.children,_),m.child;case 10:e:{if(A=m.type._context,D=m.pendingProps,E=m.memoizedProps,W=D.value,ur(Mm,A._currentValue),A._currentValue=W,E!==null)if(fa(E.value,W)){if(E.children===D.children&&!Wn.current){m=$o(p,m,_);break e}}else for(E=m.child,E!==null&&(E.return=m);E!==null;){var K=E.dependencies;if(K!==null){W=E.child;for(var Q=K.firstContext;Q!==null;){if(Q.context===A){if(E.tag===1){Q=Vo(-1,_&-_),Q.tag=2;var se=E.updateQueue;if(se!==null){se=se.shared;var Se=se.pending;Se===null?Q.next=Q:(Q.next=Se.next,Se.next=Q),se.pending=Q}}E.lanes|=_,Q=E.alternate,Q!==null&&(Q.lanes|=_),wb(E.return,_,m),K.lanes|=_;break}Q=Q.next}}else if(E.tag===10)W=E.type===m.type?null:E.child;else if(E.tag===18){if(W=E.return,W===null)throw Error(r(341));W.lanes|=_,K=W.alternate,K!==null&&(K.lanes|=_),wb(W,_,m),W=E.sibling}else W=E.child;if(W!==null)W.return=E;else for(W=E;W!==null;){if(W===m){W=null;break}if(E=W.sibling,E!==null){E.return=W.return,W=E;break}W=W.return}E=W}An(p,m,D.children,_),m=m.child}return m;case 9:return D=m.type,A=m.pendingProps.children,jc(m,_),D=Ri(D),A=A(D),m.flags|=1,An(p,m,A,_),m.child;case 14:return A=m.type,D=ha(A,m.pendingProps),D=ha(A.type,D),uR(p,m,A,D,_);case 15:return cR(p,m,m.type,m.pendingProps,_);case 17:return A=m.type,D=m.pendingProps,D=m.elementType===A?D:ha(A,D),Fm(p,m),m.tag=1,jn(A)?(p=!0,bm(m)):p=!1,jc(m,_),tR(m,A,D),Fb(m,A,D,_),Hb(null,m,A,!0,p,_);case 19:return yR(p,m,_);case 22:return fR(p,m,_)}throw Error(r(156,m.tag))};function GR(p,m){return Qg(p,m)}function mY(p,m,_,A){this.tag=p,this.key=_,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=A,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oi(p,m,_,A){return new mY(p,m,_,A)}function u_(p){return p=p.prototype,!(!p||!p.isReactComponent)}function yY(p){if(typeof p=="function")return u_(p)?1:0;if(p!=null){if(p=p.$$typeof,p===L)return 11;if(p===B)return 14}return 2}function Ls(p,m){var _=p.alternate;return _===null?(_=Oi(p.tag,m,p.key,p.mode),_.elementType=p.elementType,_.type=p.type,_.stateNode=p.stateNode,_.alternate=p,p.alternate=_):(_.pendingProps=m,_.type=p.type,_.flags=0,_.subtreeFlags=0,_.deletions=null),_.flags=p.flags&14680064,_.childLanes=p.childLanes,_.lanes=p.lanes,_.child=p.child,_.memoizedProps=p.memoizedProps,_.memoizedState=p.memoizedState,_.updateQueue=p.updateQueue,m=p.dependencies,_.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},_.sibling=p.sibling,_.index=p.index,_.ref=p.ref,_}function Zm(p,m,_,A,D,E){var W=2;if(A=p,typeof p=="function")u_(p)&&(W=1);else if(typeof p=="string")W=5;else e:switch(p){case M:return ql(_.children,D,E,m);case k:W=8,D|=8;break;case I:return p=Oi(12,_,m,D|2),p.elementType=I,p.lanes=E,p;case O:return p=Oi(13,_,m,D),p.elementType=O,p.lanes=E,p;case N:return p=Oi(19,_,m,D),p.elementType=N,p.lanes=E,p;case q:return Km(_,D,E,m);default:if(typeof p=="object"&&p!==null)switch(p.$$typeof){case P:W=10;break e;case R:W=9;break e;case L:W=11;break e;case B:W=14;break e;case G:W=16,A=null;break e}throw Error(r(130,p==null?p:typeof p,""))}return m=Oi(W,_,m,D),m.elementType=p,m.type=A,m.lanes=E,m}function ql(p,m,_,A){return p=Oi(7,p,A,m),p.lanes=_,p}function Km(p,m,_,A){return p=Oi(22,p,A,m),p.elementType=q,p.lanes=_,p.stateNode={isHidden:!1},p}function c_(p,m,_){return p=Oi(6,p,null,m),p.lanes=_,p}function f_(p,m,_){return m=Oi(4,p.children!==null?p.children:[],p.key,m),m.lanes=_,m.stateNode={containerInfo:p.containerInfo,pendingChildren:null,implementation:p.implementation},m}function xY(p,m,_,A,D){this.tag=m,this.containerInfo=p,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=BS(0),this.expirationTimes=BS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=BS(0),this.identifierPrefix=A,this.onRecoverableError=D,this.mutableSourceEagerHydrationData=null}function d_(p,m,_,A,D,E,W,K,Q){return p=new xY(p,m,_,K,Q),m===1?(m=1,E===!0&&(m|=8)):m=0,E=Oi(3,null,null,m),p.current=E,E.stateNode=p,E.memoizedState={element:A,isDehydrated:_,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tb(E),p}function SY(p,m,_){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:C,key:A==null?null:""+A,children:p,containerInfo:m,implementation:_}}function HR(p){if(!p)return Ts;p=p._reactInternals;e:{if(Va(p)!==p||p.tag!==1)throw Error(r(170));var m=p;do{switch(m.tag){case 3:m=m.stateNode.context;break e;case 1:if(jn(m.type)){m=m.stateNode.__reactInternalMemoizedMergedChildContext;break e}}m=m.return}while(m!==null);throw Error(r(171))}if(p.tag===1){var _=p.type;if(jn(_))return mD(p,_,m)}return m}function WR(p,m,_,A,D,E,W,K,Q){return p=d_(_,A,!0,p,D,E,W,K,Q),p.context=HR(null),_=p.current,A=Mn(),D=Rs(_),E=Vo(A,D),E.callback=m??null,ks(_,E,D),p.current.lanes=D,rh(p,D,A),qn(p,A),p}function Qm(p,m,_,A){var D=m.current,E=Mn(),W=Rs(D);return _=HR(_),m.context===null?m.context=_:m.pendingContext=_,m=Vo(E,W),m.payload={element:p},A=A===void 0?null:A,A!==null&&(m.callback=A),p=ks(D,m,W),p!==null&&(ga(p,D,W,E),Im(p,D,W)),W}function Jm(p){if(p=p.current,!p.child)return null;switch(p.child.tag){case 5:return p.child.stateNode;default:return p.child.stateNode}}function jR(p,m){if(p=p.memoizedState,p!==null&&p.dehydrated!==null){var _=p.retryLane;p.retryLane=_!==0&&_<m?_:m}}function h_(p,m){jR(p,m),(p=p.alternate)&&jR(p,m)}function bY(){return null}var UR=typeof reportError=="function"?reportError:function(p){console.error(p)};function p_(p){this._internalRoot=p}ey.prototype.render=p_.prototype.render=function(p){var m=this._internalRoot;if(m===null)throw Error(r(409));Qm(p,m,null,null)},ey.prototype.unmount=p_.prototype.unmount=function(){var p=this._internalRoot;if(p!==null){this._internalRoot=null;var m=p.containerInfo;jl(function(){Qm(null,p,null,null)}),m[Oo]=null}};function ey(p){this._internalRoot=p}ey.prototype.unstable_scheduleHydration=function(p){if(p){var m=IP();p={blockedOn:null,target:p,priority:m};for(var _=0;_<Ss.length&&m!==0&&m<Ss[_].priority;_++);Ss.splice(_,0,p),_===0&&RP(p)}};function v_(p){return!(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)}function ty(p){return!(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11&&(p.nodeType!==8||p.nodeValue!==" react-mount-point-unstable "))}function YR(){}function _Y(p,m,_,A,D){if(D){if(typeof A=="function"){var E=A;A=function(){var se=Jm(W);E.call(se)}}var W=WR(m,A,p,0,null,!1,!1,"",YR);return p._reactRootContainer=W,p[Oo]=W.current,gh(p.nodeType===8?p.parentNode:p),jl(),W}for(;D=p.lastChild;)p.removeChild(D);if(typeof A=="function"){var K=A;A=function(){var se=Jm(Q);K.call(se)}}var Q=d_(p,0,!1,null,null,!1,!1,"",YR);return p._reactRootContainer=Q,p[Oo]=Q.current,gh(p.nodeType===8?p.parentNode:p),jl(function(){Qm(m,Q,_,A)}),Q}function ry(p,m,_,A,D){var E=_._reactRootContainer;if(E){var W=E;if(typeof D=="function"){var K=D;D=function(){var Q=Jm(W);K.call(Q)}}Qm(m,W,p,D)}else W=_Y(_,m,p,D,A);return Jm(W)}MP=function(p){switch(p.tag){case 3:var m=p.stateNode;if(m.current.memoizedState.isDehydrated){var _=th(m.pendingLanes);_!==0&&(FS(m,_|1),qn(m,kr()),!(Ht&6)&&(Zc=kr()+500,As()))}break;case 13:jl(function(){var A=Fo(p,1);if(A!==null){var D=Mn();ga(A,p,1,D)}}),h_(p,1)}},VS=function(p){if(p.tag===13){var m=Fo(p,134217728);if(m!==null){var _=Mn();ga(m,p,134217728,_)}h_(p,134217728)}},kP=function(p){if(p.tag===13){var m=Rs(p),_=Fo(p,m);if(_!==null){var A=Mn();ga(_,p,m,A)}h_(p,m)}},IP=function(){return rr},PP=function(p,m){var _=rr;try{return rr=p,m()}finally{rr=_}},Hn=function(p,m,_){switch(m){case"input":if(ct(p,_),m=_.name,_.type==="radio"&&m!=null){for(_=p;_.parentNode;)_=_.parentNode;for(_=_.querySelectorAll("input[name="+JSON.stringify(""+m)+'][type="radio"]'),m=0;m<_.length;m++){var A=_[m];if(A!==p&&A.form===p.form){var D=xm(A);if(!D)throw Error(r(90));ge(A),ct(A,D)}}}break;case"textarea":It(p,_);break;case"select":m=_.value,m!=null&&it(p,!!_.multiple,m,!1)}},qd=o_,Xd=jl;var wY={usingClientEntryPoint:!1,Events:[xh,zc,xm,Eo,Yd,o_]},Eh={findFiberByHostInstance:zl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},CY={bundleType:Eh.bundleType,version:Eh.version,rendererPackageName:Eh.rendererPackageName,rendererConfig:Eh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(p){return p=Zg(p),p===null?null:p.stateNode},findFiberByHostInstance:Eh.findFiberByHostInstance||bY,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ny=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ny.isDisabled&&ny.supportsFiber)try{em=ny.inject(CY),$a=ny}catch{}}return Xn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wY,Xn.createPortal=function(p,m){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v_(m))throw Error(r(200));return SY(p,m,null,_)},Xn.createRoot=function(p,m){if(!v_(p))throw Error(r(299));var _=!1,A="",D=UR;return m!=null&&(m.unstable_strictMode===!0&&(_=!0),m.identifierPrefix!==void 0&&(A=m.identifierPrefix),m.onRecoverableError!==void 0&&(D=m.onRecoverableError)),m=d_(p,1,!1,null,null,_,!1,A,D),p[Oo]=m.current,gh(p.nodeType===8?p.parentNode:p),new p_(m)},Xn.findDOMNode=function(p){if(p==null)return null;if(p.nodeType===1)return p;var m=p._reactInternals;if(m===void 0)throw typeof p.render=="function"?Error(r(188)):(p=Object.keys(p).join(","),Error(r(268,p)));return p=Zg(m),p=p===null?null:p.stateNode,p},Xn.flushSync=function(p){return jl(p)},Xn.hydrate=function(p,m,_){if(!ty(m))throw Error(r(200));return ry(null,p,m,!0,_)},Xn.hydrateRoot=function(p,m,_){if(!v_(p))throw Error(r(405));var A=_!=null&&_.hydratedSources||null,D=!1,E="",W=UR;if(_!=null&&(_.unstable_strictMode===!0&&(D=!0),_.identifierPrefix!==void 0&&(E=_.identifierPrefix),_.onRecoverableError!==void 0&&(W=_.onRecoverableError)),m=WR(m,null,p,1,_??null,D,!1,E,W),p[Oo]=m.current,gh(p),A)for(p=0;p<A.length;p++)_=A[p],D=_._getVersion,D=D(_._source),m.mutableSourceEagerHydrationData==null?m.mutableSourceEagerHydrationData=[_,D]:m.mutableSourceEagerHydrationData.push(_,D);return new ey(m)},Xn.render=function(p,m,_){if(!ty(m))throw Error(r(200));return ry(null,p,m,!1,_)},Xn.unmountComponentAtNode=function(p){if(!ty(p))throw Error(r(40));return p._reactRootContainer?(jl(function(){ry(null,null,p,!1,function(){p._reactRootContainer=null,p[Oo]=null})}),!0):!1},Xn.unstable_batchedUpdates=o_,Xn.unstable_renderSubtreeIntoContainer=function(p,m,_,A){if(!ty(_))throw Error(r(200));if(p==null||p._reactInternals===void 0)throw Error(r(38));return ry(p,m,_,!1,A)},Xn.version="18.3.1-next-f1338f8080-20240426",Xn}var tE;function iV(){if(tE)return x_.exports;tE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),x_.exports=LY(),x_.exports}var rE;function OY(){if(rE)return iy;rE=1;var e=iV();return iy.createRoot=e.createRoot,iy.hydrateRoot=e.hydrateRoot,iy}var NY=OY();const zY=ia(NY);var $=dx();const wa=ia($),xv=kY({__proto__:null,default:wa},[$]),BY=$.createContext(null),__={didCatch:!1,error:null};class FY extends $.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=__}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:a,reason:"imperative-api"}),this.setState(__)}}componentDidCatch(t,r){var n,i;(n=(i=this.props).onError)===null||n===void 0||n.call(i,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:i}=this.props;if(n&&r.error!==null&&VY(t.resetKeys,i)){var a,o;(a=(o=this.props).onReset)===null||a===void 0||a.call(o,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(__)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:a,error:o}=this.state;let s=t;if(a){const l={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(l);else if(n)s=$.createElement(n,l);else if(i===null||$.isValidElement(i))s=i;else throw o}return $.createElement(BY.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}function VY(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}function rn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var $Y=typeof Symbol=="function"&&Symbol.observable||"@@observable",nE=$Y,w_=()=>Math.random().toString(36).substring(7).split("").join("."),GY={INIT:`@@redux/INIT${w_()}`,REPLACE:`@@redux/REPLACE${w_()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${w_()}`},Q0=GY;function yo(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function aV(e,t,r){if(typeof e!="function")throw new Error(rn(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(rn(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(rn(1));return r(aV)(e,t)}let n=e,i=t,a=new Map,o=a,s=0,l=!1;function u(){o===a&&(o=new Map,a.forEach((y,x)=>{o.set(x,y)}))}function c(){if(l)throw new Error(rn(3));return i}function f(y){if(typeof y!="function")throw new Error(rn(4));if(l)throw new Error(rn(5));let x=!0;u();const S=s++;return o.set(S,y),function(){if(x){if(l)throw new Error(rn(6));x=!1,u(),o.delete(S),a=null}}}function d(y){if(!yo(y))throw new Error(rn(7));if(typeof y.type>"u")throw new Error(rn(8));if(typeof y.type!="string")throw new Error(rn(17));if(l)throw new Error(rn(9));try{l=!0,i=n(i,y)}finally{l=!1}return(a=o).forEach(S=>{S()}),y}function h(y){if(typeof y!="function")throw new Error(rn(10));n=y,d({type:Q0.REPLACE})}function v(){const y=f;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(rn(11));function S(){const w=x;w.next&&w.next(c())}return S(),{unsubscribe:y(S)}},[nE](){return this}}}return d({type:Q0.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:h,[nE]:v}}function HY(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Q0.INIT})>"u")throw new Error(rn(12));if(typeof r(void 0,{type:Q0.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(rn(13))})}function hx(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{HY(r)}catch(a){i=a}return function(o={},s){if(i)throw i;let l=!1;const u={};for(let c=0;c<n.length;c++){const f=n[c],d=r[f],h=o[f],v=d(h,s);if(typeof v>"u")throw s&&s.type,new Error(rn(14));u[f]=v,l=l||v!==h}return l=l||n.length!==Object.keys(o).length,l?u:o}}function J0(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function WY(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(rn(15))};const o={getState:i.getState,dispatch:(l,...u)=>a(l,...u)},s=e.map(l=>l(o));return a=J0(...s)(i.dispatch),{...i,dispatch:a}}}function oV(e){return yo(e)&&"type"in e&&typeof e.type=="string"}var nM=Symbol.for("immer-nothing"),jp=Symbol.for("immer-draftable"),si=Symbol.for("immer-state");function sn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var nc=Object.getPrototypeOf;function Ia(e){return!!e&&!!e[si]}function Pa(e){var t;return e?sV(e)||Array.isArray(e)||!!e[jp]||!!((t=e.constructor)!=null&&t[jp])||cg(e)||fg(e):!1}var jY=Object.prototype.constructor.toString();function sV(e){if(!e||typeof e!="object")return!1;const t=nc(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===jY}function UY(e){return Ia(e)||sn(15,e),e[si].base_}function Sv(e,t){ic(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function ic(e){const t=e[si];return t?t.type_:Array.isArray(e)?1:cg(e)?2:fg(e)?3:0}function bv(e,t){return ic(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function C_(e,t){return ic(e)===2?e.get(t):e[t]}function lV(e,t,r){const n=ic(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function YY(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function cg(e){return e instanceof Map}function fg(e){return e instanceof Set}function bu(e){return e.copy_||e.base_}function DT(e,t){if(cg(e))return new Map(e);if(fg(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=sV(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[si];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(nc(e),n)}else{const n=nc(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function iM(e,t=!1){return px(e)||Ia(e)||!Pa(e)||(ic(e)>1&&(e.set=e.add=e.clear=e.delete=qY),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>iM(n,!0))),e}function qY(){sn(2)}function px(e){return Object.isFrozen(e)}var RT={};function ac(e){const t=RT[e];return t||sn(0,e),t}function XY(e,t){RT[e]||(RT[e]=t)}var _v;function uV(){return _v}function ZY(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function iE(e,t){t&&(ac("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ET(e){LT(e),e.drafts_.forEach(KY),e.drafts_=null}function LT(e){e===_v&&(_v=e.parent_)}function aE(e){return _v=ZY(_v,e)}function KY(e){const t=e[si];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function oE(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[si].modified_&&(ET(t),sn(4)),Pa(e)&&(e=e1(t,e),t.parent_||t1(t,e)),t.patches_&&ac("Patches").generateReplacementPatches_(r[si].base_,e,t.patches_,t.inversePatches_)):e=e1(t,r,[]),ET(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==nM?e:void 0}function e1(e,t,r){if(px(t))return t;const n=t[si];if(!n)return Sv(t,(i,a)=>sE(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return t1(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let a=i,o=!1;n.type_===3&&(a=new Set(i),i.clear(),o=!0),Sv(a,(s,l)=>sE(e,n,i,s,l,r,o)),t1(e,i,!1),r&&e.patches_&&ac("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function sE(e,t,r,n,i,a,o){if(Ia(i)){const s=a&&t&&t.type_!==3&&!bv(t.assigned_,n)?a.concat(n):void 0,l=e1(e,i,s);if(lV(r,n,l),Ia(l))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Pa(i)&&!px(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;e1(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&t1(e,i)}}function t1(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&iM(t,r)}function QY(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:uV(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=aM;r&&(i=[n],a=wv);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return n.draft_=s,n.revoke_=o,s}var aM={get(e,t){if(t===si)return e;const r=bu(e);if(!bv(r,t))return JY(e,r,t);const n=r[t];return e.finalized_||!Pa(n)?n:n===T_(e.base_,t)?(A_(e),e.copy_[t]=NT(n,e)):n},has(e,t){return t in bu(e)},ownKeys(e){return Reflect.ownKeys(bu(e))},set(e,t,r){const n=cV(bu(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=T_(bu(e),t),a=i==null?void 0:i[si];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(YY(r,i)&&(r!==void 0||bv(e.base_,t)))return!0;A_(e),OT(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return T_(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,A_(e),OT(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=bu(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){sn(11)},getPrototypeOf(e){return nc(e.base_)},setPrototypeOf(){sn(12)}},wv={};Sv(aM,(e,t)=>{wv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});wv.deleteProperty=function(e,t){return wv.set.call(this,e,t,void 0)};wv.set=function(e,t,r){return aM.set.call(this,e[0],t,r,e[0])};function T_(e,t){const r=e[si];return(r?bu(r):e)[t]}function JY(e,t,r){var i;const n=cV(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function cV(e,t){if(!(t in e))return;let r=nc(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=nc(r)}}function OT(e){e.modified_||(e.modified_=!0,e.parent_&&OT(e.parent_))}function A_(e){e.copy_||(e.copy_=DT(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var eq=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(l=a,...u){return o.produce(l,c=>r.call(this,c,...u))}}typeof r!="function"&&sn(6),n!==void 0&&typeof n!="function"&&sn(7);let i;if(Pa(t)){const a=aE(this),o=NT(t,void 0);let s=!0;try{i=r(o),s=!1}finally{s?ET(a):LT(a)}return iE(a,n),oE(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===nM&&(i=void 0),this.autoFreeze_&&iM(i,!0),n){const a=[],o=[];ac("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else sn(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let n,i;return[this.produce(t,r,(o,s)=>{n=o,i=s}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Pa(e)||sn(8),Ia(e)&&(e=fV(e));const t=aE(this),r=NT(e,void 0);return r[si].isManual_=!0,LT(t),r}finishDraft(e,t){const r=e&&e[si];(!r||!r.isManual_)&&sn(9);const{scope_:n}=r;return iE(n,t),oE(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=ac("Patches").applyPatches_;return Ia(e)?n(e,t):this.produce(e,i=>n(i,t))}};function NT(e,t){const r=cg(e)?ac("MapSet").proxyMap_(e,t):fg(e)?ac("MapSet").proxySet_(e,t):QY(e,t);return(t?t.scope_:uV()).drafts_.push(r),r}function fV(e){return Ia(e)||sn(10,e),dV(e)}function dV(e){if(!Pa(e)||px(e))return e;const t=e[si];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=DT(e,t.scope_.immer_.useStrictShallowCopy_)}else r=DT(e,!0);return Sv(r,(n,i)=>{lV(r,n,dV(i))}),t&&(t.finalized_=!1),r}function tq(){const t="replace",r="add",n="remove";function i(d,h,v,g){switch(d.type_){case 0:case 2:return o(d,h,v,g);case 1:return a(d,h,v,g);case 3:return s(d,h,v,g)}}function a(d,h,v,g){let{base_:y,assigned_:x}=d,S=d.copy_;S.length<y.length&&([y,S]=[S,y],[v,g]=[g,v]);for(let b=0;b<y.length;b++)if(x[b]&&S[b]!==y[b]){const w=h.concat([b]);v.push({op:t,path:w,value:f(S[b])}),g.push({op:t,path:w,value:f(y[b])})}for(let b=y.length;b<S.length;b++){const w=h.concat([b]);v.push({op:r,path:w,value:f(S[b])})}for(let b=S.length-1;y.length<=b;--b){const w=h.concat([b]);g.push({op:n,path:w})}}function o(d,h,v,g){const{base_:y,copy_:x}=d;Sv(d.assigned_,(S,b)=>{const w=C_(y,S),T=C_(x,S),C=b?bv(y,S)?t:r:n;if(w===T&&C===t)return;const M=h.concat(S);v.push(C===n?{op:C,path:M}:{op:C,path:M,value:T}),g.push(C===r?{op:n,path:M}:C===n?{op:r,path:M,value:f(w)}:{op:t,path:M,value:f(w)})})}function s(d,h,v,g){let{base_:y,copy_:x}=d,S=0;y.forEach(b=>{if(!x.has(b)){const w=h.concat([S]);v.push({op:n,path:w,value:b}),g.unshift({op:r,path:w,value:b})}S++}),S=0,x.forEach(b=>{if(!y.has(b)){const w=h.concat([S]);v.push({op:r,path:w,value:b}),g.unshift({op:n,path:w,value:b})}S++})}function l(d,h,v,g){v.push({op:t,path:[],value:h===nM?void 0:h}),g.push({op:t,path:[],value:d})}function u(d,h){return h.forEach(v=>{const{path:g,op:y}=v;let x=d;for(let T=0;T<g.length-1;T++){const C=ic(x);let M=g[T];typeof M!="string"&&typeof M!="number"&&(M=""+M),(C===0||C===1)&&(M==="__proto__"||M==="constructor")&&sn(19),typeof x=="function"&&M==="prototype"&&sn(19),x=C_(x,M),typeof x!="object"&&sn(18,g.join("/"))}const S=ic(x),b=c(v.value),w=g[g.length-1];switch(y){case t:switch(S){case 2:return x.set(w,b);case 3:sn(16);default:return x[w]=b}case r:switch(S){case 1:return w==="-"?x.push(b):x.splice(w,0,b);case 2:return x.set(w,b);case 3:return x.add(b);default:return x[w]=b}case n:switch(S){case 1:return x.splice(w,1);case 2:return x.delete(w);case 3:return x.delete(v.value);default:return delete x[w]}default:sn(17,y)}}),d}function c(d){if(!Pa(d))return d;if(Array.isArray(d))return d.map(c);if(cg(d))return new Map(Array.from(d.entries()).map(([v,g])=>[v,c(g)]));if(fg(d))return new Set(Array.from(d).map(c));const h=Object.create(nc(d));for(const v in d)h[v]=c(d[v]);return bv(d,jp)&&(h[jp]=d[jp]),h}function f(d){return Ia(d)?c(d):d}XY("Patches",{applyPatches_:u,generatePatches_:i,generateReplacementPatches_:l})}var Ai=new eq,dg=Ai.produce,hV=Ai.produceWithPatches.bind(Ai);Ai.setAutoFreeze.bind(Ai);Ai.setUseStrictShallowCopy.bind(Ai);var lE=Ai.applyPatches.bind(Ai);Ai.createDraft.bind(Ai);Ai.finishDraft.bind(Ai);function rq(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function nq(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function iq(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var uE=e=>Array.isArray(e)?e:[e];function aq(e){const t=Array.isArray(e[0])?e[0]:e;return iq(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function oq(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var sq=class{constructor(e){this.value=e}deref(){return this.value}},lq=typeof WeakRef<"u"?WeakRef:sq,uq=0,cE=1;function ay(){return{s:uq,v:void 0,o:null,p:null}}function Cv(e,t={}){let r=ay();const{resultEqualityCheck:n}=t;let i,a=0;function o(){var f;let s=r;const{length:l}=arguments;for(let d=0,h=l;d<h;d++){const v=arguments[d];if(typeof v=="function"||typeof v=="object"&&v!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const y=g.get(v);y===void 0?(s=ay(),g.set(v,s)):s=y}else{let g=s.p;g===null&&(s.p=g=new Map);const y=g.get(v);y===void 0?(s=ay(),g.set(v,s)):s=y}}const u=s;let c;if(s.s===cE)c=s.v;else if(c=e.apply(null,arguments),a++,n){const d=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;d!=null&&n(d,c)&&(c=d,a!==0&&a--),i=typeof c=="object"&&c!==null||typeof c=="function"?new lq(c):c}return u.s=cE,u.v=c,c}return o.clearCache=()=>{r=ay(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function pV(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,s,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),rq(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:h=Cv,argsMemoizeOptions:v=[],devModeChecks:g={}}=c,y=uE(d),x=uE(v),S=aq(i),b=f(function(){return a++,u.apply(null,arguments)},...y),w=h(function(){o++;const C=oq(S,arguments);return s=b.apply(null,C),s},...x);return Object.assign(w,{resultFunc:u,memoizedResultFunc:b,dependencies:S,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var oM=pV(Cv),cq=Object.assign((e,t=oM)=>{nq(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,s,l)=>(o[r[l]]=s,o),{}))},{withTypes:()=>cq});function vV(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var fq=vV(),dq=vV,hq=(...e)=>{const t=pV(...e),r=Object.assign((...n)=>{const i=t(...n),a=(o,...s)=>i(Ia(o)?fV(o):o,...s);return Object.assign(a,i),a},{withTypes:()=>r});return r};hq(Cv);var pq=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?J0:J0.apply(null,arguments)},vq=e=>e&&typeof e.match=="function";function Ln(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(_n(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>oV(n)&&n.type===e,r}var gV=class kp extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,kp.prototype)}static get[Symbol.species](){return kp}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new kp(...t[0].concat(this)):new kp(...t.concat(this))}};function fE(e){return Pa(e)?dg(e,()=>{}):e}function dE(e,t,r){if(e.has(t)){let i=e.get(t);return r.update&&(i=r.update(i,t,e),e.set(t,i)),i}if(!r.insert)throw new Error(_n(10));const n=r.insert(t,e);return e.set(t,n),n}function gq(e){return typeof e=="boolean"}var mq=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new gV;return r&&(gq(r)?o.push(fq):o.push(dq(r.extraArgument))),o},zf="RTK_autoBatch",Oh=()=>e=>({payload:e,meta:{[zf]:!0}}),mV=e=>t=>{setTimeout(t,e)},yq=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:mV(10),xq=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?yq:e.type==="callback"?e.queueNotification:mV(e.timeout),u=()=>{o=!1,a&&(a=!1,s.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),d=n.subscribe(f);return s.add(c),()=>{d(),s.delete(c)}},dispatch(c){var f;try{return i=!((f=c==null?void 0:c.meta)!=null&&f[zf]),a=!i,a&&(o||(o=!0,l(u))),n.dispatch(c)}finally{i=!0}}})},Sq=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new gV(e);return n&&i.push(xq(typeof n=="object"?n:void 0)),i},bq=!0;function yV(e){const t=mq(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let s;if(typeof r=="function")s=r;else if(yo(r))s=hx(r);else throw new Error(_n(1));let l;typeof n=="function"?l=n(t):l=t();let u=J0;i&&(u=pq({trace:!bq,...typeof i=="object"&&i}));const c=WY(...l),f=Sq(c);let d=typeof o=="function"?o(f):f();const h=u(...d);return aV(s,a,h)}function xV(e){const t={},r=[];let n;const i={addCase(a,o){const s=typeof a=="string"?a:a.type;if(!s)throw new Error(_n(28));if(s in t)throw new Error(_n(29));return t[s]=o,i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function _q(e){return typeof e=="function"}function wq(e,t){let[r,n,i]=xV(t),a;if(_q(e))a=()=>fE(e());else{const s=fE(e);a=()=>s}function o(s=a(),l){let u=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,f)=>{if(f)if(Ia(c)){const h=f(c,l);return h===void 0?c:h}else{if(Pa(c))return dg(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw new Error(_n(9))}return d}}return c},s)}return o.getInitialState=a,o}var Cq="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",sM=(e=21)=>{let t="",r=e;for(;r--;)t+=Cq[Math.random()*64|0];return t},SV=(e,t)=>vq(e)?e.match(t):e(t);function rs(...e){return t=>e.some(r=>SV(r,t))}function Up(...e){return t=>e.every(r=>SV(r,t))}function vx(e,t){if(!e||!e.meta)return!1;const r=typeof e.meta.requestId=="string",n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function hg(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function lM(...e){return e.length===0?t=>vx(t,["pending"]):hg(e)?rs(...e.map(t=>t.pending)):lM()(e[0])}function nd(...e){return e.length===0?t=>vx(t,["rejected"]):hg(e)?rs(...e.map(t=>t.rejected)):nd()(e[0])}function gx(...e){const t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?Up(nd(...e),t):hg(e)?Up(nd(...e),t):gx()(e[0])}function vl(...e){return e.length===0?t=>vx(t,["fulfilled"]):hg(e)?rs(...e.map(t=>t.fulfilled)):vl()(e[0])}function zT(...e){return e.length===0?t=>vx(t,["pending","fulfilled","rejected"]):hg(e)?rs(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):zT()(e[0])}var Tq=["name","message","stack","code"],M_=class{constructor(e,t){g_(this,"_type");this.payload=e,this.meta=t}},hE=class{constructor(e,t){g_(this,"_type");this.payload=e,this.meta=t}},Aq=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of Tq)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},pE=(()=>{function e(t,r,n){const i=Ln(t+"/fulfilled",(l,u,c,f)=>({payload:l,meta:{...f||{},arg:c,requestId:u,requestStatus:"fulfilled"}})),a=Ln(t+"/pending",(l,u,c)=>({payload:void 0,meta:{...c||{},arg:u,requestId:l,requestStatus:"pending"}})),o=Ln(t+"/rejected",(l,u,c,f,d)=>({payload:f,error:(n&&n.serializeError||Aq)(l||"Rejected"),meta:{...d||{},arg:c,requestId:u,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(u,c,f)=>{const d=n!=null&&n.idGenerator?n.idGenerator(l):sM(),h=new AbortController;let v,g;function y(S){g=S,h.abort()}const x=async function(){var w,T;let S;try{let C=(w=n==null?void 0:n.condition)==null?void 0:w.call(n,l,{getState:c,extra:f});if(kq(C)&&(C=await C),C===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const M=new Promise((k,I)=>{v=()=>{I({name:"AbortError",message:g||"Aborted"})},h.signal.addEventListener("abort",v)});u(a(d,l,(T=n==null?void 0:n.getPendingMeta)==null?void 0:T.call(n,{requestId:d,arg:l},{getState:c,extra:f}))),S=await Promise.race([M,Promise.resolve(r(l,{dispatch:u,getState:c,extra:f,requestId:d,signal:h.signal,abort:y,rejectWithValue:(k,I)=>new M_(k,I),fulfillWithValue:(k,I)=>new hE(k,I)})).then(k=>{if(k instanceof M_)throw k;return k instanceof hE?i(k.payload,d,l,k.meta):i(k,d,l)})])}catch(C){S=C instanceof M_?o(null,d,l,C.payload,C.meta):o(C,d,l)}finally{v&&h.signal.removeEventListener("abort",v)}return n&&!n.dispatchConditionRejection&&o.match(S)&&S.meta.condition||u(S),S}();return Object.assign(x,{abort:y,requestId:d,arg:l,unwrap(){return x.then(Mq)}})}}return Object.assign(s,{pending:a,rejected:o,fulfilled:i,settled:rs(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Mq(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function kq(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Iq=Symbol.for("rtk-slice-createasyncthunk");function Pq(e,t){return`${e}/${t}`}function Dq({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[Iq];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(_n(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(Eq()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,w){const T=typeof b=="string"?b:b.type;if(!T)throw new Error(_n(12));if(T in u.sliceCaseReducersByType)throw new Error(_n(13));return u.sliceCaseReducersByType[T]=w,c},addMatcher(b,w){return u.sliceMatchers.push({matcher:b,reducer:w}),c},exposeAction(b,w){return u.actionCreators[b]=w,c},exposeCaseReducer(b,w){return u.sliceCaseReducersByName[b]=w,c}};l.forEach(b=>{const w=s[b],T={reducerName:b,type:Pq(a,b),createNotation:typeof i.reducers=="function"};Oq(w)?zq(T,w,c,t):Lq(T,w,c)});function f(){const[b={},w=[],T=void 0]=typeof i.extraReducers=="function"?xV(i.extraReducers):[i.extraReducers],C={...b,...u.sliceCaseReducersByType};return wq(i.initialState,M=>{for(let k in C)M.addCase(k,C[k]);for(let k of u.sliceMatchers)M.addMatcher(k.matcher,k.reducer);for(let k of w)M.addMatcher(k.matcher,k.reducer);T&&M.addDefaultCase(T)})}const d=b=>b,h=new Map;let v;function g(b,w){return v||(v=f()),v(b,w)}function y(){return v||(v=f()),v.getInitialState()}function x(b,w=!1){function T(M){let k=M[b];return typeof k>"u"&&w&&(k=y()),k}function C(M=d){const k=dE(h,w,{insert:()=>new WeakMap});return dE(k,M,{insert:()=>{const I={};for(const[P,R]of Object.entries(i.selectors??{}))I[P]=Rq(R,M,y,w);return I}})}return{reducerPath:b,getSelectors:C,get selectors(){return C(T)},selectSlice:T}}const S={name:a,reducer:g,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:y,...x(o),injectInto(b,{reducerPath:w,...T}={}){const C=w??o;return b.inject({reducerPath:C,reducer:g},T),{...S,...x(C,!0)}}};return S}}function Rq(e,t,r,n){function i(a,...o){let s=t(a);return typeof s>"u"&&n&&(s=r()),e(s,...o)}return i.unwrapped=e,i}var Ui=Dq();function Eq(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Lq({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!Nq(n))throw new Error(_n(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Ln(e,o):Ln(e))}function Oq(e){return e._reducerDefinitionType==="asyncThunk"}function Nq(e){return e._reducerDefinitionType==="reducerWithPrepare"}function zq({type:e,reducerName:t},r,n,i){if(!i)throw new Error(_n(18));const{payloadCreator:a,fulfilled:o,pending:s,rejected:l,settled:u,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),u&&n.addMatcher(f.settled,u),n.exposeCaseReducer(t,{fulfilled:o||oy,pending:s||oy,rejected:l||oy,settled:u||oy})}function oy(){}var Bq=(e,t)=>{if(typeof e!="function")throw new Error(_n(32))},uM="listenerMiddleware",Fq=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Ln(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(_n(21));return Bq(a),{predicate:i,type:t,effect:a}},Vq=Object.assign(e=>{const{type:t,predicate:r,effect:n}=Fq(e);return{id:sM(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(_n(22))}}},{withTypes:()=>Vq}),$q=Object.assign(Ln(`${uM}/add`),{withTypes:()=>$q});Ln(`${uM}/removeAll`);var Gq=Object.assign(Ln(`${uM}/remove`),{withTypes:()=>Gq});function _n(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var k_={exports:{}},I_={};/**
|
41
|
+
* @license React
|
42
|
+
* use-sync-external-store-with-selector.production.min.js
|
43
|
+
*
|
44
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
45
|
+
*
|
46
|
+
* This source code is licensed under the MIT license found in the
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
48
|
+
*/var vE;function Hq(){if(vE)return I_;vE=1;var e=dx();function t(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,s=e.useDebugValue;return I_.useSyncExternalStoreWithSelector=function(l,u,c,f,d){var h=i(null);if(h.current===null){var v={hasValue:!1,value:null};h.current=v}else v=h.current;h=o(function(){function y(T){if(!x){if(x=!0,S=T,T=f(T),d!==void 0&&v.hasValue){var C=v.value;if(d(C,T))return b=C}return b=T}if(C=b,r(S,T))return C;var M=f(T);return d!==void 0&&d(C,M)?C:(S=T,b=M)}var x=!1,S,b,w=c===void 0?null:c;return[function(){return y(u())},w===null?void 0:function(){return y(w())}]},[u,c,f,d]);var g=n(l,h[0],h[1]);return a(function(){v.hasValue=!0,v.value=g},[g]),s(g),g},I_}var gE;function Wq(){return gE||(gE=1,k_.exports=Hq()),k_.exports}var jq=Wq(),Ft="default"in xv?wa:xv,mE=Symbol.for("react-redux-context"),yE=typeof globalThis<"u"?globalThis:{};function Uq(){if(!Ft.createContext)return{};const e=yE[mE]??(yE[mE]=new Map);let t=e.get(Ft.createContext);return t||(t=Ft.createContext(null),e.set(Ft.createContext,t)),t}var ns=Uq(),bV=()=>{throw new Error("uSES not initialized!")};function cM(e=ns){return function(){return Ft.useContext(e)}}var _V=cM(),wV=bV,Yq=e=>{wV=e},qq=(e,t)=>e===t;function Xq(e=ns){const t=e===ns?_V:cM(e),r=(n,i={})=>{const{equalityFn:a=qq,devModeChecks:o={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:f}=t();Ft.useRef(!0);const d=Ft.useCallback({[n.name](v){return n(v)}}[n.name],[n,c,o.stabilityCheck]),h=wV(l.addNestedSub,s.getState,u||s.getState,d,a);return Ft.useDebugValue(h),h};return Object.assign(r,{withTypes:()=>r}),r}var CV=Xq(),Zq=Symbol.for("react.element"),Kq=Symbol.for("react.portal"),Qq=Symbol.for("react.fragment"),Jq=Symbol.for("react.strict_mode"),eX=Symbol.for("react.profiler"),tX=Symbol.for("react.provider"),rX=Symbol.for("react.context"),nX=Symbol.for("react.server_context"),TV=Symbol.for("react.forward_ref"),iX=Symbol.for("react.suspense"),aX=Symbol.for("react.suspense_list"),fM=Symbol.for("react.memo"),oX=Symbol.for("react.lazy"),sX=TV,lX=fM;function uX(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case Zq:{const r=e.type;switch(r){case Qq:case eX:case Jq:case iX:case aX:return r;default:{const n=r&&r.$$typeof;switch(n){case nX:case rX:case TV:case oX:case fM:case tX:return n;default:return t}}}}case Kq:return t}}}function cX(e){return uX(e)===fM}function fX(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,l,u,c,f,d;function h(S,b){return l=S,u=b,c=e(l,u),f=t(n,u),d=r(c,f,u),s=!0,d}function v(){return c=e(l,u),t.dependsOnOwnProps&&(f=t(n,u)),d=r(c,f,u),d}function g(){return e.dependsOnOwnProps&&(c=e(l,u)),t.dependsOnOwnProps&&(f=t(n,u)),d=r(c,f,u),d}function y(){const S=e(l,u),b=!o(S,c);return c=S,b&&(d=r(c,f,u)),d}function x(S,b){const w=!a(b,u),T=!i(S,l,b,u);return l=S,u=b,w&&T?v():w?g():T?y():d}return function(b,w){return s?x(b,w):h(b,w)}}function dX(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const a=t(e,i),o=r(e,i),s=n(e,i);return fX(a,o,s,e,i)}function hX(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...a)=>t(i(...a)))}return r}function BT(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function xE(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function AV(e,t){return function(n,{displayName:i}){const a=function(s,l){return a.dependsOnOwnProps?a.mapToProps(s,l):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,l){a.mapToProps=e,a.dependsOnOwnProps=xE(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=xE(u),u=a(s,l)),u},a}}function dM(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function pX(e){return e&&typeof e=="object"?BT(t=>hX(e,t)):e?typeof e=="function"?AV(e):dM(e,"mapDispatchToProps"):BT(t=>({dispatch:t}))}function vX(e){return e?typeof e=="function"?AV(e):dM(e,"mapStateToProps"):BT(()=>({}))}function gX(e,t,r){return{...r,...e,...t}}function mX(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(l,u,c){const f=e(l,u,c);return a?i(f,o)||(o=f):(a=!0,o=f),o}}}function yX(e){return e?typeof e=="function"?mX(e):dM(e,"mergeProps"):()=>gX}function MV(e){e()}function xX(){let e=null,t=null;return{clear(){e=null,t=null},notify(){MV(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var SE={notify(){},get:()=>[]};function kV(e,t){let r,n=SE,i=0,a=!1;function o(g){c();const y=n.subscribe(g);let x=!1;return()=>{x||(x=!0,y(),f())}}function s(){n.notify()}function l(){v.onStateChange&&v.onStateChange()}function u(){return a}function c(){i++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=xX())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=SE)}function d(){a||(a=!0,c())}function h(){a&&(a=!1,f())}const v={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return v}var SX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bX=typeof navigator<"u"&&navigator.product==="ReactNative",r1=SX||bX?Ft.useLayoutEffect:Ft.useEffect;function bE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function cl(e,t){if(bE(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!bE(e[r[i]],t[r[i]]))return!1;return!0}var _X={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},wX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},CX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},IV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TX={[sX]:CX,[lX]:IV};function _E(e){return cX(e)?IV:TX[e.$$typeof]||_X}var AX=Object.defineProperty,MX=Object.getOwnPropertyNames,wE=Object.getOwnPropertySymbols,kX=Object.getOwnPropertyDescriptor,IX=Object.getPrototypeOf,CE=Object.prototype;function FT(e,t){if(typeof t!="string"){if(CE){const a=IX(t);a&&a!==CE&&FT(e,a)}let r=MX(t);wE&&(r=r.concat(wE(t)));const n=_E(e),i=_E(t);for(let a=0;a<r.length;++a){const o=r[a];if(!wX[o]&&!(i&&i[o])&&!(n&&n[o])){const s=kX(t,o);try{AX(e,o,s)}catch{}}}}return e}var PV=bV,PX=e=>{PV=e},DX=[null,null];function RX(e,t,r){r1(()=>e(...t),r)}function EX(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function LX(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,d=null;const h=()=>{if(f||!s.current)return;const g=t.getState();let y,x;try{y=n(g,i.current)}catch(S){x=S,d=S}x||(d=null),y===a.current?o.current||u():(a.current=y,l.current=y,o.current=!0,c())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function OX(e,t){return e===t}function NX(e,t,r,{pure:n,areStatesEqual:i=OX,areOwnPropsEqual:a=cl,areStatePropsEqual:o=cl,areMergedPropsEqual:s=cl,forwardRef:l=!1,context:u=ns}={}){const c=u,f=vX(e),d=pX(t),h=yX(r),v=!!e;return y=>{const x=y.displayName||y.name||"Component",S=`Connect(${x})`,b={shouldHandleStateChanges:v,displayName:S,wrappedComponentName:x,WrappedComponent:y,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function w(M){const[k,I,P]=Ft.useMemo(()=>{const{reactReduxForwardedRef:ge,...De}=M;return[M.context,ge,De]},[M]),R=Ft.useMemo(()=>{let ge=c;return k!=null&&k.Consumer,ge},[k,c]),L=Ft.useContext(R),O=!!M.store&&!!M.store.getState&&!!M.store.dispatch,N=!!L&&!!L.store,B=O?M.store:L.store,G=N?L.getServerState:B.getState,q=Ft.useMemo(()=>dX(B.dispatch,b),[B]),[H,X]=Ft.useMemo(()=>{if(!v)return DX;const ge=kV(B,O?void 0:L.subscription),De=ge.notifyNestedSubs.bind(ge);return[ge,De]},[B,O,L]),F=Ft.useMemo(()=>O?L:{...L,subscription:H},[O,L,H]),Y=Ft.useRef(void 0),Z=Ft.useRef(P),j=Ft.useRef(void 0),re=Ft.useRef(!1),ce=Ft.useRef(!1),te=Ft.useRef(void 0);r1(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const pe=Ft.useMemo(()=>()=>j.current&&P===Z.current?j.current:q(B.getState(),P),[B,P]),ae=Ft.useMemo(()=>De=>H?LX(v,B,H,q,Z,Y,re,ce,j,X,De):()=>{},[H]);RX(EX,[Z,Y,re,P,j,X]);let he;try{he=PV(ae,pe,G?()=>q(G(),P):pe)}catch(ge){throw te.current&&(ge.message+=`
|
49
|
+
The error may be correlated with this previous error:
|
50
|
+
${te.current.stack}
|
51
|
+
|
52
|
+
`),ge}r1(()=>{te.current=void 0,j.current=void 0,Y.current=he});const ve=Ft.useMemo(()=>Ft.createElement(y,{...he,ref:I}),[I,y,he]);return Ft.useMemo(()=>v?Ft.createElement(R.Provider,{value:F},ve):ve,[R,ve,F])}const C=Ft.memo(w);if(C.WrappedComponent=y,C.displayName=w.displayName=S,l){const k=Ft.forwardRef(function(P,R){return Ft.createElement(C,{...P,reactReduxForwardedRef:R})});return k.displayName=S,k.WrappedComponent=y,FT(k,y)}return FT(C,y)}}var ki=NX;function zX({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const o=Ft.useMemo(()=>{const u=kV(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,n,i,a]),s=Ft.useMemo(()=>e.getState(),[e]);r1(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,s]);const l=t||ns;return Ft.createElement(l.Provider,{value:o},r)}var TE=zX;function DV(e=ns){const t=e===ns?_V:cM(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var RV=DV();function BX(e=ns){const t=e===ns?RV:DV(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var EV=BX(),FX=MV;Yq(jq.useSyncExternalStoreWithSelector);PX($.useSyncExternalStore);function LV(e,t,r){return t&&(Array.isArray(t)?t.map(n=>LV(e,n,r)):typeof t=="object"?hM(t,r):t)}const hM=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:LV(e,i,t)}),{}),OV=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),VX=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),Bf=e=>hM(e,OV),AE=e=>hM(e,VX),VT=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),$X=e=>Object.fromEntries(new URLSearchParams(e).entries()),GX=(e,t=2)=>{if(e===0)return"0 Bytes";if(e===0)return"N/A";const r=1024,n=t<0?0:t,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],a=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,a)).toFixed(n))+" "+i[a]},ME=!!window.authArgs&&Bf(window.authArgs),Tv={black:"#000",white:"#fff"},Ks={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Qc={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},_u={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Jc={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ef={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},HX={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},Nh={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},WX={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 U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},U.apply(this,arguments)}function Du(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function NV(e){if(!Du(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=NV(e[r])}),t}function ni(e,t,r={clone:!0}){const n=r.clone?U({},e):e;return Du(e)&&Du(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Du(t[i])&&i in e&&Du(e[i])?n[i]=ni(e[i],t[i],r):r.clone?n[i]=Du(t[i])?NV(t[i]):t[i]:n[i]=t[i])}),n}function gl(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Oe(e){if(typeof e!="string")throw new Error(gl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function $T(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function pg(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function jX(e,t){return()=>null}function Yp(e,t){return $.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function ln(e){return e&&e.ownerDocument||document}function xo(e){return ln(e).defaultView||window}function UX(e,t){return()=>null}function n1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Da=typeof window<"u"?$.useLayoutEffect:$.useEffect;let kE=0;function YX(e){const[t,r]=$.useState(e),n=e||t;return $.useEffect(()=>{t==null&&(kE+=1,r(`mui-${kE}`))},[t]),n}const IE=xv.useId;function pM(e){if(IE!==void 0){const t=IE();return e??t}return YX(e)}function qX(e,t,r,n,i){return null}function id({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=$.useRef(e!==void 0),[a,o]=$.useState(t),s=i?e:a,l=$.useCallback(u=>{i||o(u)},[]);return[s,l]}function Ca(e){const t=$.useRef(e);return Da(()=>{t.current=e}),$.useCallback((...r)=>(0,t.current)(...r),[])}function Rr(...e){return $.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{n1(r,t)})},e)}let mx=!0,GT=!1,PE;const XX={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ZX(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&XX[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function KX(e){e.metaKey||e.altKey||e.ctrlKey||(mx=!0)}function P_(){mx=!1}function QX(){this.visibilityState==="hidden"&>&&(mx=!0)}function JX(e){e.addEventListener("keydown",KX,!0),e.addEventListener("mousedown",P_,!0),e.addEventListener("pointerdown",P_,!0),e.addEventListener("touchstart",P_,!0),e.addEventListener("visibilitychange",QX,!0)}function eZ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return mx||ZX(t)}function yx(){const e=$.useCallback(i=>{i!=null&&JX(i.ownerDocument)},[]),t=$.useRef(!1);function r(){return t.current?(GT=!0,window.clearTimeout(PE),PE=window.setTimeout(()=>{GT=!1},100),t.current=!1,!0):!1}function n(i){return eZ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function zV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let tf;function BV(){if(tf)return tf;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),tf="reverse",e.scrollLeft>0?tf="default":(e.scrollLeft=1,e.scrollLeft===0&&(tf="negative")),document.body.removeChild(e),tf}function tZ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(BV()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function vM(e,t){const r=U({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=U({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=U({},a),Object.keys(i).forEach(o=>{r[n][o]=vM(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function st(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,o)=>{if(o){const s=t(o);s!==""&&a.push(s),r&&r[o]&&a.push(r[o])}return a},[]).join(" ")}),n}const DE=e=>e,rZ=()=>{let e=DE;return{configure(t){e=t},generate(t){return e(t)},reset(){e=DE}}},gM=rZ(),nZ={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 nt(e,t,r="Mui"){const n=nZ[t];return n?`${r}-${n}`:`${gM.generate(e)}-${t}`}function lt(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=nt(e,i,r)}),n}const oc="$$material";function Ee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function FV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var iZ=/^((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|download|draggable|encType|enterKeyHint|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)-.*))$/,aZ=FV(function(e){return iZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function oZ(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]}function sZ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var lZ=function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(sZ(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=oZ(i);try{a.insertRule(n,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),xn="-ms-",i1="-moz-",Yt="-webkit-",VV="comm",mM="rule",yM="decl",uZ="@import",$V="@keyframes",cZ="@layer",fZ=Math.abs,xx=String.fromCharCode,dZ=Object.assign;function hZ(e,t){return on(e,0)^45?(((t<<2^on(e,0))<<2^on(e,1))<<2^on(e,2))<<2^on(e,3):0}function GV(e){return e.trim()}function pZ(e,t){return(e=t.exec(e))?e[0]:e}function qt(e,t,r){return e.replace(t,r)}function HT(e,t){return e.indexOf(t)}function on(e,t){return e.charCodeAt(t)|0}function Av(e,t,r){return e.slice(t,r)}function to(e){return e.length}function xM(e){return e.length}function sy(e,t){return t.push(e),e}function vZ(e,t){return e.map(t).join("")}var Sx=1,ad=1,HV=0,li=0,zr=0,Ad="";function bx(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Sx,column:ad,length:o,return:""}}function zh(e,t){return dZ(bx("",null,null,"",null,null,0),e,{length:-e.length},t)}function gZ(){return zr}function mZ(){return zr=li>0?on(Ad,--li):0,ad--,zr===10&&(ad=1,Sx--),zr}function _i(){return zr=li<HV?on(Ad,li++):0,ad++,zr===10&&(ad=1,Sx++),zr}function fo(){return on(Ad,li)}function A0(){return li}function vg(e,t){return Av(Ad,e,t)}function Mv(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 WV(e){return Sx=ad=1,HV=to(Ad=e),li=0,[]}function jV(e){return Ad="",e}function M0(e){return GV(vg(li-1,WT(e===91?e+2:e===40?e+1:e)))}function yZ(e){for(;(zr=fo())&&zr<33;)_i();return Mv(e)>2||Mv(zr)>3?"":" "}function xZ(e,t){for(;--t&&_i()&&!(zr<48||zr>102||zr>57&&zr<65||zr>70&&zr<97););return vg(e,A0()+(t<6&&fo()==32&&_i()==32))}function WT(e){for(;_i();)switch(zr){case e:return li;case 34:case 39:e!==34&&e!==39&&WT(zr);break;case 40:e===41&&WT(e);break;case 92:_i();break}return li}function SZ(e,t){for(;_i()&&e+zr!==57;)if(e+zr===84&&fo()===47)break;return"/*"+vg(t,li-1)+"*"+xx(e===47?e:_i())}function bZ(e){for(;!Mv(fo());)_i();return vg(e,li)}function _Z(e){return jV(k0("",null,null,null,[""],e=WV(e),0,[0],e))}function k0(e,t,r,n,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,v=0,g=1,y=1,x=1,S=0,b="",w=i,T=a,C=n,M=b;y;)switch(v=S,S=_i()){case 40:if(v!=108&&on(M,f-1)==58){HT(M+=qt(M0(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:M+=M0(S);break;case 9:case 10:case 13:case 32:M+=yZ(v);break;case 92:M+=xZ(A0()-1,7);continue;case 47:switch(fo()){case 42:case 47:sy(wZ(SZ(_i(),A0()),t,r),l);break;default:M+="/"}break;case 123*g:s[u++]=to(M)*x;case 125*g:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+c:x==-1&&(M=qt(M,/\f/g,"")),h>0&&to(M)-f&&sy(h>32?EE(M+";",n,r,f-1):EE(qt(M," ","")+";",n,r,f-2),l);break;case 59:M+=";";default:if(sy(C=RE(M,t,r,u,c,i,s,b,w=[],T=[],f),a),S===123)if(c===0)k0(M,t,C,C,w,a,f,s,T);else switch(d===99&&on(M,3)===110?100:d){case 100:case 108:case 109:case 115:k0(e,C,C,n&&sy(RE(e,C,C,0,0,i,s,b,i,w=[],f),T),i,T,f,s,n?w:T);break;default:k0(M,C,C,C,[""],T,0,s,T)}}u=c=h=0,g=x=1,b=M="",f=o;break;case 58:f=1+to(M),h=v;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&mZ()==125)continue}switch(M+=xx(S),S*g){case 38:x=c>0?1:(M+="\f",-1);break;case 44:s[u++]=(to(M)-1)*x,x=1;break;case 64:fo()===45&&(M+=M0(_i())),d=fo(),c=f=to(b=M+=bZ(A0())),S++;break;case 45:v===45&&to(M)==2&&(g=0)}}return a}function RE(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=xM(d),v=0,g=0,y=0;v<n;++v)for(var x=0,S=Av(e,f+1,f=fZ(g=o[v])),b=e;x<h;++x)(b=GV(g>0?d[x]+" "+S:qt(S,/&\f/g,d[x])))&&(l[y++]=b);return bx(e,t,r,i===0?mM:s,l,u,c)}function wZ(e,t,r){return bx(e,t,r,VV,xx(gZ()),Av(e,2,-2),0)}function EE(e,t,r,n){return bx(e,t,r,yM,Av(e,0,n),Av(e,n+1,-1),n)}function jf(e,t){for(var r="",n=xM(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function CZ(e,t,r,n){switch(e.type){case cZ:if(e.children.length)break;case uZ:case yM:return e.return=e.return||e.value;case VV:return"";case $V:return e.return=e.value+"{"+jf(e.children,n)+"}";case mM:e.value=e.props.join(",")}return to(r=jf(e.children,n))?e.return=e.value+"{"+r+"}":""}function TZ(e){var t=xM(e);return function(r,n,i,a){for(var o="",s=0;s<t;s++)o+=e[s](r,n,i,a)||"";return o}}function AZ(e){return function(t){t.root||(t=t.return)&&e(t)}}var MZ=function(t,r,n){for(var i=0,a=0;i=a,a=fo(),i===38&&a===12&&(r[n]=1),!Mv(a);)_i();return vg(t,li)},kZ=function(t,r){var n=-1,i=44;do switch(Mv(i)){case 0:i===38&&fo()===12&&(r[n]=1),t[n]+=MZ(li-1,r,n);break;case 2:t[n]+=M0(i);break;case 4:if(i===44){t[++n]=fo()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=xx(i)}while(i=_i());return t},IZ=function(t,r){return jV(kZ(WV(t),r))},LE=new WeakMap,PZ=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!LE.get(n))&&!i){LE.set(t,!0);for(var a=[],o=IZ(r,a),s=n.props,l=0,u=0;l<o.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=a[l]?o[l].replace(/&\f/g,s[c]):s[c]+" "+o[l]}}},DZ=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function UV(e,t){switch(hZ(e,t)){case 5103:return Yt+"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 Yt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yt+e+i1+e+xn+e+e;case 6828:case 4268:return Yt+e+xn+e+e;case 6165:return Yt+e+xn+"flex-"+e+e;case 5187:return Yt+e+qt(e,/(\w+).+(:[^]+)/,Yt+"box-$1$2"+xn+"flex-$1$2")+e;case 5443:return Yt+e+xn+"flex-item-"+qt(e,/flex-|-self/,"")+e;case 4675:return Yt+e+xn+"flex-line-pack"+qt(e,/align-content|flex-|-self/,"")+e;case 5548:return Yt+e+xn+qt(e,"shrink","negative")+e;case 5292:return Yt+e+xn+qt(e,"basis","preferred-size")+e;case 6060:return Yt+"box-"+qt(e,"-grow","")+Yt+e+xn+qt(e,"grow","positive")+e;case 4554:return Yt+qt(e,/([^-])(transform)/g,"$1"+Yt+"$2")+e;case 6187:return qt(qt(qt(e,/(zoom-|grab)/,Yt+"$1"),/(image-set)/,Yt+"$1"),e,"")+e;case 5495:case 3959:return qt(e,/(image-set\([^]*)/,Yt+"$1$`$1");case 4968:return qt(qt(e,/(.+:)(flex-)?(.*)/,Yt+"box-pack:$3"+xn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yt+e+e;case 4095:case 3583:case 4068:case 2532:return qt(e,/(.+)-inline(.+)/,Yt+"$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(to(e)-1-t>6)switch(on(e,t+1)){case 109:if(on(e,t+4)!==45)break;case 102:return qt(e,/(.+:)(.+)-([^]+)/,"$1"+Yt+"$2-$3$1"+i1+(on(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~HT(e,"stretch")?UV(qt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(on(e,t+1)!==115)break;case 6444:switch(on(e,to(e)-3-(~HT(e,"!important")&&10))){case 107:return qt(e,":",":"+Yt)+e;case 101:return qt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yt+(on(e,14)===45?"inline-":"")+"box$3$1"+Yt+"$2$3$1"+xn+"$2box$3")+e}break;case 5936:switch(on(e,t+11)){case 114:return Yt+e+xn+qt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yt+e+xn+qt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yt+e+xn+qt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Yt+e+xn+e+e}return e}var RZ=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case yM:t.return=UV(t.value,t.length);break;case $V:return jf([zh(t,{value:qt(t.value,"@","@"+Yt)})],i);case mM:if(t.length)return vZ(t.props,function(a){switch(pZ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jf([zh(t,{props:[qt(a,/:(read-\w+)/,":"+i1+"$1")]})],i);case"::placeholder":return jf([zh(t,{props:[qt(a,/:(plac\w+)/,":"+Yt+"input-$1")]}),zh(t,{props:[qt(a,/:(plac\w+)/,":"+i1+"$1")]}),zh(t,{props:[qt(a,/:(plac\w+)/,xn+"input-$1")]})],i)}return""})}},EZ=[RZ],LZ=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){var y=g.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||EZ,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var y=g.getAttribute("data-emotion").split(" "),x=1;x<y.length;x++)a[y[x]]=!0;s.push(g)});var l,u=[PZ,DZ];{var c,f=[CZ,AZ(function(g){c.insert(g)})],d=TZ(u.concat(i,f)),h=function(y){return jf(_Z(y),d)};l=function(y,x,S,b){c=S,h(y?y+"{"+x.styles+"}":x.styles),b&&(v.inserted[x.name]=!0)}}var v={key:r,sheet:new lZ({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return v.sheet.hydrate(s),v},D_={exports:{}},Kt={};/** @license React v16.13.1
|
53
|
+
* react-is.production.min.js
|
54
|
+
*
|
55
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
56
|
+
*
|
57
|
+
* This source code is licensed under the MIT license found in the
|
58
|
+
* LICENSE file in the root directory of this source tree.
|
59
|
+
*/var OE;function OZ(){if(OE)return Kt;OE=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function b(T){if(typeof T=="object"&&T!==null){var C=T.$$typeof;switch(C){case t:switch(T=T.type,T){case l:case u:case n:case a:case i:case f:return T;default:switch(T=T&&T.$$typeof,T){case s:case c:case v:case h:case o:return T;default:return C}}case r:return C}}}function w(T){return b(T)===u}return Kt.AsyncMode=l,Kt.ConcurrentMode=u,Kt.ContextConsumer=s,Kt.ContextProvider=o,Kt.Element=t,Kt.ForwardRef=c,Kt.Fragment=n,Kt.Lazy=v,Kt.Memo=h,Kt.Portal=r,Kt.Profiler=a,Kt.StrictMode=i,Kt.Suspense=f,Kt.isAsyncMode=function(T){return w(T)||b(T)===l},Kt.isConcurrentMode=w,Kt.isContextConsumer=function(T){return b(T)===s},Kt.isContextProvider=function(T){return b(T)===o},Kt.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Kt.isForwardRef=function(T){return b(T)===c},Kt.isFragment=function(T){return b(T)===n},Kt.isLazy=function(T){return b(T)===v},Kt.isMemo=function(T){return b(T)===h},Kt.isPortal=function(T){return b(T)===r},Kt.isProfiler=function(T){return b(T)===a},Kt.isStrictMode=function(T){return b(T)===i},Kt.isSuspense=function(T){return b(T)===f},Kt.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===n||T===u||T===a||T===i||T===f||T===d||typeof T=="object"&&T!==null&&(T.$$typeof===v||T.$$typeof===h||T.$$typeof===o||T.$$typeof===s||T.$$typeof===c||T.$$typeof===y||T.$$typeof===x||T.$$typeof===S||T.$$typeof===g)},Kt.typeOf=b,Kt}var NE;function NZ(){return NE||(NE=1,D_.exports=OZ()),D_.exports}var R_,zE;function zZ(){if(zE)return R_;zE=1;var e=NZ(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=n,a[e.Memo]=i;function o(v){return e.isMemo(v)?i:a[v.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,d=Object.prototype;function h(v,g,y){if(typeof g!="string"){if(d){var x=f(g);x&&x!==d&&h(v,x,y)}var S=l(g);u&&(S=S.concat(u(g)));for(var b=o(v),w=o(g),T=0;T<S.length;++T){var C=S[T];if(!r[C]&&!(y&&y[C])&&!(w&&w[C])&&!(b&&b[C])){var M=c(g,C);try{s(v,C,M)}catch{}}}}return v}return R_=h,R_}zZ();var BZ=!0;function FZ(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var YV=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||BZ===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},qV=function(t,r,n){YV(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function VZ(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var $Z={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,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},GZ=/[A-Z]|^ms/g,HZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,XV=function(t){return t.charCodeAt(1)===45},BE=function(t){return t!=null&&typeof t!="boolean"},E_=FV(function(e){return XV(e)?e:e.replace(GZ,"-$&").toLowerCase()}),FE=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(HZ,function(n,i,a){return ro={name:i,styles:a,next:ro},i})}return $Z[t]!==1&&!XV(t)&&typeof r=="number"&&r!==0?r+"px":r};function kv(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return ro={name:r.name,styles:r.styles,next:ro},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)ro={name:n.name,styles:n.styles,next:ro},n=n.next;var i=r.styles+";";return i}return WZ(e,t,r)}case"function":{if(e!==void 0){var a=ro,o=r(e);return ro=a,kv(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function WZ(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=kv(e,t,r[i])+";";else for(var a in r){var o=r[a];if(typeof o!="object")t!=null&&t[o]!==void 0?n+=a+"{"+t[o]+"}":BE(o)&&(n+=E_(a)+":"+FE(a,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)BE(o[s])&&(n+=E_(a)+":"+FE(a,o[s])+";");else{var l=kv(e,t,o);switch(a){case"animation":case"animationName":{n+=E_(a)+":"+l+";";break}default:n+=a+"{"+l+"}"}}}return n}var VE=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ro,SM=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,a="";ro=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,a+=kv(n,r,o)):a+=o[0];for(var s=1;s<t.length;s++)a+=kv(n,r,t[s]),i&&(a+=o[s]);VE.lastIndex=0;for(var l="",u;(u=VE.exec(a))!==null;)l+="-"+u[1];var c=VZ(a)+l;return{name:c,styles:a,next:ro}},jZ=function(t){return t()},ZV=xv.useInsertionEffect?xv.useInsertionEffect:!1,UZ=ZV||jZ,$E=ZV||$.useLayoutEffect,KV=$.createContext(typeof HTMLElement<"u"?LZ({key:"css"}):null);KV.Provider;var QV=function(t){return $.forwardRef(function(r,n){var i=$.useContext(KV);return t(r,i,n)})},_x=$.createContext({}),YZ=QV(function(e,t){var r=e.styles,n=SM([r],void 0,$.useContext(_x)),i=$.useRef();return $E(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[t]),$E(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(n.next!==void 0&&qV(t,n.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",n,o,!1)},[t,n.name]),null});function qZ(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return SM(t)}var bM=function(){var t=qZ.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},XZ=aZ,ZZ=function(t){return t!=="theme"},GE=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?XZ:ZZ},HE=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},KZ=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return YV(r,n,i),UZ(function(){return qV(r,n,i)}),null},QZ=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=HE(t,r,n),l=s||GE(i),u=!l("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,h=1;h<d;h++)f.push(c[h],c[0][h])}var v=QV(function(g,y,x){var S=u&&g.as||i,b="",w=[],T=g;if(g.theme==null){T={};for(var C in g)T[C]=g[C];T.theme=$.useContext(_x)}typeof g.className=="string"?b=FZ(y.registered,w,g.className):g.className!=null&&(b=g.className+" ");var M=SM(f.concat(w),y.registered,T);b+=y.key+"-"+M.name,o!==void 0&&(b+=" "+o);var k=u&&s===void 0?GE(S):l,I={};for(var P in g)u&&P==="as"||k(P)&&(I[P]=g[P]);return I.className=b,I.ref=x,$.createElement($.Fragment,null,$.createElement(KZ,{cache:y,serialized:M,isStringTag:typeof S=="string"}),$.createElement(S,I))});return v.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=f,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+o}}),v.withComponent=function(g,y){return e(g,U({},r,y,{shouldForwardProp:HE(v,y,!0)})).apply(void 0,f)},v}},JZ=["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"],jT=QZ.bind();JZ.forEach(function(e){jT[e]=jT(e)});function eK(e){return e==null||Object.keys(e).length===0}function tK(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(eK(i)?r:i):t;return z.jsx(YZ,{styles:n})}function JV(e,t){return jT(e,t)}const rK=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},nK=["values","unit","step"],iK=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>U({},r,{[n.key]:n.val}),{})};function aK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=Ee(e,nK),a=iK(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function u(d,h){const v=o.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(v!==-1&&typeof t[o[v]]=="number"?t[o[v]]:h)-n/100}${r})`}function c(d){return o.indexOf(d)+1<o.length?u(d,o[o.indexOf(d)+1]):s(d)}function f(d){const h=o.indexOf(d);return h===0?s(o[1]):h===o.length-1?l(o[h]):u(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return U({keys:o,values:a,up:s,down:l,between:u,only:c,not:f,unit:r},i)}const oK={borderRadius:4};function qp(e,t){return t?ni(e,t,{clone:!1}):e}const _M={xs:0,sm:600,md:900,lg:1200,xl:1536},WE={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${_M[e]}px)`};function Ra(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||WE;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||WE;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||_M).indexOf(s)!==-1){const l=a.up(s);o[l]=r(t[s],s)}else{const l=s;o[l]=t[l]}return o},{})}return r(t)}function e$(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function t$(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function sK(e,...t){const r=e$(e),n=[r,...t].reduce((i,a)=>ni(i,a),{});return t$(Object.keys(r),n)}function lK(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,a)=>{a<e.length&&(r[i]=!0)}):n.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function L_({values:e,breakpoints:t,base:r}){const n=r||lK(e,t),i=Object.keys(n);if(i.length===0)return e;let a;return i.reduce((o,s,l)=>(Array.isArray(e)?(o[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(o[s]=e[s]!=null?e[s]:e[a],a=s):o[s]=e,o),{})}function od(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function a1(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=od(e,r)||n,t&&(i=t(i,n,e)),i}function er(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],l=o.theme,u=od(l,n)||{};return Ra(o,s,f=>{let d=a1(u,i,f);return f===d&&typeof f=="string"&&(d=a1(u,i,`${t}${f==="default"?"":Oe(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function uK(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const cK={m:"margin",p:"padding"},fK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},dK=uK(e=>{if(e.length>2)if(jE[e])e=jE[e];else return[e];const[t,r]=e.split(""),n=cK[t],i=fK[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),wM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],CM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...wM,...CM];function gg(e,t,r,n){var i;const a=(i=od(e,t,!1))!=null?i:r;return typeof a=="number"?o=>typeof o=="string"?o:a*o:Array.isArray(a)?o=>typeof o=="string"?o:a[o]:typeof a=="function"?a:()=>{}}function TM(e){return gg(e,"spacing",8)}function sc(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function hK(e,t){return r=>e.reduce((n,i)=>(n[i]=sc(t,r),n),{})}function pK(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=dK(r),a=hK(i,n),o=e[r];return Ra(e,o,a)}function r$(e,t){const r=TM(e.theme);return Object.keys(e).map(n=>pK(e,t,n,r)).reduce(qp,{})}function Cr(e){return r$(e,wM)}Cr.propTypes={};Cr.filterProps=wM;function Tr(e){return r$(e,CM)}Tr.propTypes={};Tr.filterProps=CM;function vK(e=8){if(e.mui)return e;const t=TM({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function Cx(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?qp(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function no(e){return typeof e!="number"?e:`${e}px solid`}const gK=er({prop:"border",themeKey:"borders",transform:no}),mK=er({prop:"borderTop",themeKey:"borders",transform:no}),yK=er({prop:"borderRight",themeKey:"borders",transform:no}),xK=er({prop:"borderBottom",themeKey:"borders",transform:no}),SK=er({prop:"borderLeft",themeKey:"borders",transform:no}),bK=er({prop:"borderColor",themeKey:"palette"}),_K=er({prop:"borderTopColor",themeKey:"palette"}),wK=er({prop:"borderRightColor",themeKey:"palette"}),CK=er({prop:"borderBottomColor",themeKey:"palette"}),TK=er({prop:"borderLeftColor",themeKey:"palette"}),Tx=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=gg(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:sc(t,n)});return Ra(e,e.borderRadius,r)}return null};Tx.propTypes={};Tx.filterProps=["borderRadius"];Cx(gK,mK,yK,xK,SK,bK,_K,wK,CK,TK,Tx);const Ax=e=>{if(e.gap!==void 0&&e.gap!==null){const t=gg(e.theme,"spacing",8),r=n=>({gap:sc(t,n)});return Ra(e,e.gap,r)}return null};Ax.propTypes={};Ax.filterProps=["gap"];const Mx=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=gg(e.theme,"spacing",8),r=n=>({columnGap:sc(t,n)});return Ra(e,e.columnGap,r)}return null};Mx.propTypes={};Mx.filterProps=["columnGap"];const kx=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=gg(e.theme,"spacing",8),r=n=>({rowGap:sc(t,n)});return Ra(e,e.rowGap,r)}return null};kx.propTypes={};kx.filterProps=["rowGap"];const AK=er({prop:"gridColumn"}),MK=er({prop:"gridRow"}),kK=er({prop:"gridAutoFlow"}),IK=er({prop:"gridAutoColumns"}),PK=er({prop:"gridAutoRows"}),DK=er({prop:"gridTemplateColumns"}),RK=er({prop:"gridTemplateRows"}),EK=er({prop:"gridTemplateAreas"}),LK=er({prop:"gridArea"});Cx(Ax,Mx,kx,AK,MK,kK,IK,PK,DK,RK,EK,LK);function Uf(e,t){return t==="grey"?t:e}const OK=er({prop:"color",themeKey:"palette",transform:Uf}),NK=er({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Uf}),zK=er({prop:"backgroundColor",themeKey:"palette",transform:Uf});Cx(OK,NK,zK);function yi(e){return e<=1&&e!==0?`${e*100}%`:e}const BK=er({prop:"width",transform:yi}),AM=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||_M[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:yi(r)}};return Ra(e,e.maxWidth,t)}return null};AM.filterProps=["maxWidth"];const FK=er({prop:"minWidth",transform:yi}),VK=er({prop:"height",transform:yi}),$K=er({prop:"maxHeight",transform:yi}),GK=er({prop:"minHeight",transform:yi});er({prop:"size",cssProperty:"width",transform:yi});er({prop:"size",cssProperty:"height",transform:yi});const HK=er({prop:"boxSizing"});Cx(BK,AM,FK,VK,$K,GK,HK);const Ix={border:{themeKey:"borders",transform:no},borderTop:{themeKey:"borders",transform:no},borderRight:{themeKey:"borders",transform:no},borderBottom:{themeKey:"borders",transform:no},borderLeft:{themeKey:"borders",transform:no},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Tx},color:{themeKey:"palette",transform:Uf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Uf},backgroundColor:{themeKey:"palette",transform:Uf},p:{style:Tr},pt:{style:Tr},pr:{style:Tr},pb:{style:Tr},pl:{style:Tr},px:{style:Tr},py:{style:Tr},padding:{style:Tr},paddingTop:{style:Tr},paddingRight:{style:Tr},paddingBottom:{style:Tr},paddingLeft:{style:Tr},paddingX:{style:Tr},paddingY:{style:Tr},paddingInline:{style:Tr},paddingInlineStart:{style:Tr},paddingInlineEnd:{style:Tr},paddingBlock:{style:Tr},paddingBlockStart:{style:Tr},paddingBlockEnd:{style:Tr},m:{style:Cr},mt:{style:Cr},mr:{style:Cr},mb:{style:Cr},ml:{style:Cr},mx:{style:Cr},my:{style:Cr},margin:{style:Cr},marginTop:{style:Cr},marginRight:{style:Cr},marginBottom:{style:Cr},marginLeft:{style:Cr},marginX:{style:Cr},marginY:{style:Cr},marginInline:{style:Cr},marginInlineStart:{style:Cr},marginInlineEnd:{style:Cr},marginBlock:{style:Cr},marginBlockStart:{style:Cr},marginBlockEnd:{style:Cr},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:Ax},rowGap:{style:kx},columnGap:{style:Mx},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:yi},maxWidth:{style:AM},minWidth:{transform:yi},height:{transform:yi},maxHeight:{transform:yi},minHeight:{transform:yi},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function WK(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function jK(e,t){return typeof e=="function"?e(t):e}function UK(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const d=od(i,u)||{};return f?f(o):Ra(o,n,v=>{let g=a1(d,c,v);return v===g&&typeof v=="string"&&(g=a1(d,c,`${r}${v==="default"?"":Oe(v)}`,v)),l===!1?g:{[l]:g}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:Ix;function s(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=e$(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const v=jK(u[h],a);if(v!=null)if(typeof v=="object")if(o[h])d=qp(d,e(h,v,a,o));else{const g=Ra({theme:a},v,y=>({[h]:y}));WK(g,v)?d[h]=t({sx:v,theme:a}):d=qp(d,g)}else d=qp(d,e(h,v,a,o))}),t$(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const mg=UK();mg.filterProps=["sx"];const YK=["breakpoints","palette","spacing","shape"];function yg(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=Ee(e,YK),s=aK(r),l=vK(i);let u=ni({breakpoints:s,direction:"ltr",components:{},palette:U({mode:"light"},n),spacing:l,shape:U({},oK,a)},o);return u=t.reduce((c,f)=>ni(c,f),u),u.unstable_sxConfig=U({},Ix,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return mg({sx:f,theme:this})},u}function qK(e){return Object.keys(e).length===0}function MM(e=null){const t=$.useContext(_x);return!t||qK(t)?e:t}const XK=yg();function Px(e=XK){return MM(e)}function ZK({styles:e,themeId:t,defaultTheme:r={}}){const n=Px(r),i=typeof e=="function"?e(t&&n[t]||n):e;return z.jsx(tK,{styles:i})}const KK=["sx"],QK=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ix;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function kM(e){const{sx:t}=e,r=Ee(e,KK),{systemProps:n,otherProps:i}=QK(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Du(s)?U({},n,s):n}:a=U({},n,t),U({},i,{sx:a})}function n$(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=n$(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Le(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=n$(e))&&(n&&(n+=" "),n+=t);return n}const JK=["className","component"];function eQ(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:i}=e,a=JV("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(mg);return $.forwardRef(function(l,u){const c=Px(r),f=kM(l),{className:d,component:h="div"}=f,v=Ee(f,JK);return z.jsx(a,U({as:h,ref:u,className:Le(d,i?i(n):n),theme:t&&c[t]||c},v))})}const tQ=["variant"];function UE(e){return e.length===0}function i$(e){const{variant:t}=e,r=Ee(e,tQ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=UE(n)?e[i]:Oe(e[i]):n+=`${UE(n)?i:Oe(i)}${Oe(e[i].toString())}`}),n}const rQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nQ(e){return Object.keys(e).length===0}function iQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const aQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,oQ=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const a=i$(i.props);n[a]=i.style}),n},sQ=(e,t,r,n)=>{var i;const{ownerState:a={}}=e,o=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{a[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&o.push(t[i$(l.props)])}),o};function Xp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const lQ=yg(),uQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Bh({defaultTheme:e,theme:t,themeId:r}){return nQ(t)?e:t[r]||t}function cQ(e){return e?(t,r)=>r[e]:null}function a$(e={}){const{themeId:t,defaultTheme:r=lQ,rootShouldForwardProp:n=Xp,slotShouldForwardProp:i=Xp}=e,a=o=>mg(U({},o,{theme:Bh(U({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{rK(o,w=>w.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=cQ(uQ(u))}=s,h=Ee(s,rQ),v=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=f||!1;let y,x=Xp;u==="Root"||u==="root"?x=n:u?x=i:iQ(o)&&(x=void 0);const S=JV(o,U({shouldForwardProp:x,label:y},h)),b=(w,...T)=>{const C=T?T.map(P=>typeof P=="function"&&P.__emotion_real!==P?R=>P(U({},R,{theme:Bh(U({},R,{defaultTheme:r,themeId:t}))})):P):[];let M=w;l&&d&&C.push(P=>{const R=Bh(U({},P,{defaultTheme:r,themeId:t})),L=aQ(l,R);if(L){const O={};return Object.entries(L).forEach(([N,B])=>{O[N]=typeof B=="function"?B(U({},P,{theme:R})):B}),d(P,O)}return null}),l&&!v&&C.push(P=>{const R=Bh(U({},P,{defaultTheme:r,themeId:t}));return sQ(P,oQ(l,R),R,l)}),g||C.push(a);const k=C.length-T.length;if(Array.isArray(w)&&k>0){const P=new Array(k).fill("");M=[...w,...P],M.raw=[...w.raw,...P]}else typeof w=="function"&&w.__emotion_real!==w&&(M=P=>w(U({},P,{theme:Bh(U({},P,{defaultTheme:r,themeId:t}))})));const I=S(M,...C);return o.muiName&&(I.muiName=o.muiName),I};return S.withConfig&&(b.withConfig=S.withConfig),b}}const o$=a$();function fQ(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:vM(t.components[r].defaultProps,n)}function IM({props:e,name:t,defaultTheme:r,themeId:n}){let i=Px(r);return n&&(i=i[n]||i),fQ({theme:i,name:t,props:e})}function PM(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function dQ(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function lc(e){if(e.type)return e;if(e.charAt(0)==="#")return lc(dQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(gl(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(gl(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function Dx(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function hQ(e){e=lc(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(u,c=(u+r/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Dx({type:s,values:l})}function YE(e){e=lc(e);let t=e.type==="hsl"||e.type==="hsla"?lc(hQ(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pQ(e,t){const r=YE(e),n=YE(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Sr(e,t){return e=lc(e),t=PM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Dx(e)}function Iv(e,t){if(e=lc(e),t=PM(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Dx(e)}function Pv(e,t){if(e=lc(e),t=PM(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Dx(e)}const s$=$.createContext(null);function l$(){return $.useContext(s$)}const vQ=typeof Symbol=="function"&&Symbol.for,gQ=vQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function mQ(e,t){return typeof t=="function"?t(e):U({},e,t)}function yQ(e){const{children:t,theme:r}=e,n=l$(),i=$.useMemo(()=>{const a=n===null?r:mQ(n,r);return a!=null&&(a[gQ]=n!==null),a},[r,n]);return z.jsx(s$.Provider,{value:i,children:t})}const qE={};function XE(e,t,r,n=!1){return $.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?U({},t,{[e]:a}):a;return n?()=>o:o}return e?U({},t,{[e]:r}):U({},t,r)},[e,t,r,n])}function xQ(e){const{children:t,theme:r,themeId:n}=e,i=MM(qE),a=l$()||qE,o=XE(n,i,r),s=XE(n,a,r,!0);return z.jsx(yQ,{theme:s,children:z.jsx(_x.Provider,{value:o,children:t})})}const SQ=["className","component","disableGutters","fixed","maxWidth","classes"],bQ=yg(),_Q=o$("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Oe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),wQ=e=>IM({props:e,name:"MuiContainer",defaultTheme:bQ}),CQ=(e,t)=>{const r=l=>nt(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${Oe(String(o))}`,i&&"fixed",a&&"disableGutters"]};return st(s,r,n)};function TQ(e={}){const{createStyledComponent:t=_Q,useThemeProps:r=wQ,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>U({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}),({theme:o,ownerState:s})=>s.fixed&&Object.keys(o.breakpoints.values).reduce((l,u)=>{const c=u,f=o.breakpoints.values[c];return f!==0&&(l[o.breakpoints.up(c)]={maxWidth:`${f}${o.breakpoints.unit}`}),l},{}),({theme:o,ownerState:s})=>U({},s.maxWidth==="xs"&&{[o.breakpoints.up("xs")]:{maxWidth:Math.max(o.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[o.breakpoints.up(s.maxWidth)]:{maxWidth:`${o.breakpoints.values[s.maxWidth]}${o.breakpoints.unit}`}}));return $.forwardRef(function(s,l){const u=r(s),{className:c,component:f="div",disableGutters:d=!1,fixed:h=!1,maxWidth:v="lg"}=u,g=Ee(u,SQ),y=U({},u,{component:f,disableGutters:d,fixed:h,maxWidth:v}),x=CQ(y,n);return z.jsx(i,U({as:f,ownerState:y,className:Le(x.root,c),ref:l},g))})}const AQ=["component","direction","spacing","divider","children","className","useFlexGap"],MQ=yg(),kQ=o$("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function IQ(e){return IM({props:e,name:"MuiStack",defaultTheme:MQ})}function PQ(e,t){const r=$.Children.toArray(e).filter(Boolean);return r.reduce((n,i,a)=>(n.push(i),a<r.length-1&&n.push($.cloneElement(t,{key:`separator-${a}`})),n),[])}const DQ=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],RQ=({ownerState:e,theme:t})=>{let r=U({display:"flex",flexDirection:"column"},Ra({theme:t},L_({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=TM(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=L_({values:e.direction,base:i}),o=L_({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,c)=>{if(!a[l]){const d=u>0?a[c[u-1]]:"column";a[l]=d}}),r=ni(r,Ra({theme:t},o,(l,u)=>e.useFlexGap?{gap:sc(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${DQ(u?a[u]:e.direction)}`]:sc(n,l)}}))}return r=sK(t.breakpoints,r),r};function EQ(e={}){const{createStyledComponent:t=kQ,useThemeProps:r=IQ,componentName:n="MuiStack"}=e,i=()=>st({root:["root"]},l=>nt(n,l),{}),a=t(RQ);return $.forwardRef(function(l,u){const c=r(l),f=kM(c),{component:d="div",direction:h="column",spacing:v=0,divider:g,children:y,className:x,useFlexGap:S=!1}=f,b=Ee(f,AQ),w={direction:h,spacing:v,useFlexGap:S},T=i();return z.jsx(a,U({as:d,ownerState:w,ref:u,className:Le(T.root,x)},b,{children:g?PQ(y,g):y}))})}function LQ(e,t){return U({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const OQ=["mode","contrastThreshold","tonalOffset"],ZE={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:Tv.white,default:Tv.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}},O_={text:{primary:Tv.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:Tv.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}};function KE(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Pv(e.main,i):t==="dark"&&(e.dark=Iv(e.main,a)))}function NQ(e="light"){return e==="dark"?{main:_u[200],light:_u[50],dark:_u[400]}:{main:_u[700],light:_u[400],dark:_u[800]}}function zQ(e="light"){return e==="dark"?{main:Qc[200],light:Qc[50],dark:Qc[400]}:{main:Qc[500],light:Qc[300],dark:Qc[700]}}function BQ(e="light"){return e==="dark"?{main:Ks[500],light:Ks[300],dark:Ks[700]}:{main:Ks[700],light:Ks[400],dark:Ks[800]}}function FQ(e="light"){return e==="dark"?{main:Jc[400],light:Jc[300],dark:Jc[700]}:{main:Jc[700],light:Jc[500],dark:Jc[900]}}function VQ(e="light"){return e==="dark"?{main:ef[400],light:ef[300],dark:ef[700]}:{main:ef[800],light:ef[500],dark:ef[900]}}function $Q(e="light"){return e==="dark"?{main:Nh[400],light:Nh[300],dark:Nh[700]}:{main:"#ed6c02",light:Nh[500],dark:Nh[900]}}function GQ(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=Ee(e,OQ),a=e.primary||NQ(t),o=e.secondary||zQ(t),s=e.error||BQ(t),l=e.info||FQ(t),u=e.success||VQ(t),c=e.warning||$Q(t);function f(g){return pQ(g,O_.text.primary)>=r?O_.text.primary:ZE.text.primary}const d=({color:g,name:y,mainShade:x=500,lightShade:S=300,darkShade:b=700})=>{if(g=U({},g),!g.main&&g[x]&&(g.main=g[x]),!g.hasOwnProperty("main"))throw new Error(gl(11,y?` (${y})`:"",x));if(typeof g.main!="string")throw new Error(gl(12,y?` (${y})`:"",JSON.stringify(g.main)));return KE(g,"light",S,n),KE(g,"dark",b,n),g.contrastText||(g.contrastText=f(g.main)),g},h={dark:O_,light:ZE};return ni(U({common:U({},Tv),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:WX,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const HQ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function WQ(e){return Math.round(e*1e5)/1e5}const QE={textTransform:"uppercase"},JE='"Roboto", "Helvetica", "Arial", sans-serif';function jQ(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=JE,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=Ee(r,HQ),h=i/14,v=f||(x=>`${x/u*h}rem`),g=(x,S,b,w,T)=>U({fontFamily:n,fontWeight:x,fontSize:v(S),lineHeight:b},n===JE?{letterSpacing:`${WQ(w/S)}em`}:{},T,c),y={h1:g(a,96,1.167,-1.5),h2:g(a,60,1.2,-.5),h3:g(o,48,1.167,0),h4:g(o,34,1.235,.25),h5:g(o,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(o,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(o,16,1.5,.15),body2:g(o,14,1.43,.15),button:g(s,14,1.75,.4,QE),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,QE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ni(U({htmlFontSize:u,pxToRem:v,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},y),d,{clone:!1})}const UQ=.2,YQ=.14,qQ=.12;function gr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${UQ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${YQ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${qQ})`].join(",")}const XQ=["none",gr(0,2,1,-1,0,1,1,0,0,1,3,0),gr(0,3,1,-2,0,2,2,0,0,1,5,0),gr(0,3,3,-2,0,3,4,0,0,1,8,0),gr(0,2,4,-1,0,4,5,0,0,1,10,0),gr(0,3,5,-1,0,5,8,0,0,1,14,0),gr(0,3,5,-1,0,6,10,0,0,1,18,0),gr(0,4,5,-2,0,7,10,1,0,2,16,1),gr(0,5,5,-3,0,8,10,1,0,3,14,2),gr(0,5,6,-3,0,9,12,1,0,3,16,2),gr(0,6,6,-3,0,10,14,1,0,4,18,3),gr(0,6,7,-4,0,11,15,1,0,4,20,3),gr(0,7,8,-4,0,12,17,2,0,5,22,4),gr(0,7,8,-4,0,13,19,2,0,5,24,4),gr(0,7,9,-4,0,14,21,2,0,5,26,4),gr(0,8,9,-5,0,15,22,2,0,6,28,5),gr(0,8,10,-5,0,16,24,2,0,6,30,5),gr(0,8,11,-5,0,17,26,2,0,6,32,5),gr(0,9,11,-5,0,18,28,2,0,7,34,6),gr(0,9,12,-6,0,19,29,2,0,7,36,6),gr(0,10,13,-6,0,20,31,3,0,8,38,7),gr(0,10,13,-6,0,21,33,3,0,8,40,7),gr(0,10,14,-6,0,22,35,3,0,8,42,7),gr(0,11,14,-7,0,23,36,3,0,9,44,8),gr(0,11,15,-7,0,24,38,3,0,9,46,8)],ZQ=["duration","easing","delay"],KQ={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)"},u$={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function eL(e){return`${Math.round(e)}ms`}function QQ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function JQ(e){const t=U({},KQ,e.easing),r=U({},u$,e.duration);return U({getAutoHeightDuration:QQ,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return Ee(a,ZQ),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:eL(o)} ${s} ${typeof l=="string"?l:eL(l)}`).join(",")}},e,{easing:t,duration:r})}const eJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},tJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function DM(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=Ee(e,tJ);if(e.vars)throw new Error(gl(18));const s=GQ(n),l=yg(e);let u=ni(l,{mixins:LQ(l.breakpoints,r),palette:s,shadows:XQ.slice(),typography:jQ(s,a),transitions:JQ(i),zIndex:U({},eJ)});return u=ni(u,o),u=t.reduce((c,f)=>ni(c,f),u),u.unstable_sxConfig=U({},Ix,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return mg({sx:f,theme:this})},u}const Rx=DM();function mc(){const e=Px(Rx);return e[oc]||e}function ut({props:e,name:t}){return IM({props:e,name:t,defaultTheme:Rx,themeId:oc})}const ko=e=>Xp(e)&&e!=="classes",rJ=Xp,we=a$({themeId:oc,defaultTheme:Rx,rootShouldForwardProp:ko}),nJ=["theme"];function c$(e){let{theme:t}=e,r=Ee(e,nJ);const n=t[oc];return z.jsx(xQ,U({},r,{themeId:n?oc:void 0,theme:n||t}))}const tL=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function iJ(e){return nt("MuiSvgIcon",e)}lt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const aJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],oJ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return st(i,iJ,n)},sJ=we("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,o,s,l,u,c,f,d,h,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(o=a.pxToRem)==null?void 0:o.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),UT=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,h=Ee(n,aJ),v=$.isValidElement(i)&&i.type==="svg",g=U({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:v}),y={};c||(y.viewBox=d);const x=oJ(g);return z.jsxs(sJ,U({as:s,className:Le(x.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},y,h,v&&i.props,{ownerState:g,children:[v?i.props.children:i,f?z.jsx("title",{children:f}):null]}))});UT.muiName="SvgIcon";function ci(e,t){function r(n,i){return z.jsx(UT,U({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=UT.muiName,$.memo($.forwardRef(r))}const lJ={configure:e=>{gM.configure(e)}},uJ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:$T,createSvgIcon:ci,debounce:pg,deprecatedPropType:jX,isMuiElement:Yp,ownerDocument:ln,ownerWindow:xo,requirePropFactory:UX,setRef:n1,unstable_ClassNameGenerator:lJ,unstable_useEnhancedEffect:Da,unstable_useId:pM,unsupportedProp:qX,useControlled:id,useEventCallback:Ca,useForkRef:Rr,useIsFocusVisible:yx},Symbol.toStringTag,{value:"Module"}));var N_={exports:{}},Qt={};/**
|
60
|
+
* @license React
|
61
|
+
* react-is.production.min.js
|
62
|
+
*
|
63
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
64
|
+
*
|
65
|
+
* This source code is licensed under the MIT license found in the
|
66
|
+
* LICENSE file in the root directory of this source tree.
|
67
|
+
*/var rL;function cJ(){if(rL)return Qt;rL=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function g(y){if(typeof y=="object"&&y!==null){var x=y.$$typeof;switch(x){case e:switch(y=y.type,y){case r:case i:case n:case u:case c:return y;default:switch(y=y&&y.$$typeof,y){case s:case o:case l:case d:case f:case a:return y;default:return x}}case t:return x}}}return Qt.ContextConsumer=o,Qt.ContextProvider=a,Qt.Element=e,Qt.ForwardRef=l,Qt.Fragment=r,Qt.Lazy=d,Qt.Memo=f,Qt.Portal=t,Qt.Profiler=i,Qt.StrictMode=n,Qt.Suspense=u,Qt.SuspenseList=c,Qt.isAsyncMode=function(){return!1},Qt.isConcurrentMode=function(){return!1},Qt.isContextConsumer=function(y){return g(y)===o},Qt.isContextProvider=function(y){return g(y)===a},Qt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Qt.isForwardRef=function(y){return g(y)===l},Qt.isFragment=function(y){return g(y)===r},Qt.isLazy=function(y){return g(y)===d},Qt.isMemo=function(y){return g(y)===f},Qt.isPortal=function(y){return g(y)===t},Qt.isProfiler=function(y){return g(y)===i},Qt.isStrictMode=function(y){return g(y)===n},Qt.isSuspense=function(y){return g(y)===u},Qt.isSuspenseList=function(y){return g(y)===c},Qt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===u||y===c||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===f||y.$$typeof===a||y.$$typeof===o||y.$$typeof===l||y.$$typeof===v||y.getModuleId!==void 0)},Qt.typeOf=g,Qt}var nL;function fJ(){return nL||(nL=1,N_.exports=cJ()),N_.exports}fJ();function YT(e,t){return YT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},YT(e,t)}function f$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,YT(e,t)}var RM=iV();const ly=ia(RM),iL={disabled:!1},o1=wa.createContext(null);var dJ=function(t){return t.scrollTop},Ip="unmounted",wu="exited",Cu="entering",If="entered",qT="exiting",Na=function(e){f$(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=wu,a.appearStatus=Cu):l=If:n.unmountOnExit||n.mountOnEnter?l=Ip:l=wu,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Ip?{status:wu}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Cu&&o!==If&&(a=Cu):(o===Cu||o===If)&&(a=qT)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Cu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:ly.findDOMNode(this);o&&dJ(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wu&&this.setState({status:Ip})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[ly.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||iL.disabled){this.safeSetState({status:If},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Cu},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:If},function(){a.props.onEntered(u,c)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:ly.findDOMNode(this);if(!a||iL.disabled){this.safeSetState({status:wu},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:qT},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:wu},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:ly.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Ip)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Ee(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return wa.createElement(o1.Provider,{value:null},typeof o=="function"?o(i,s):wa.cloneElement(wa.Children.only(o),s))},t}(wa.Component);Na.contextType=o1;Na.propTypes={};function rf(){}Na.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:rf,onEntering:rf,onEntered:rf,onExit:rf,onExiting:rf,onExited:rf};Na.UNMOUNTED=Ip;Na.EXITED=wu;Na.ENTERING=Cu;Na.ENTERED=If;Na.EXITING=qT;function hJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EM(e,t){var r=function(a){return t&&$.isValidElement(a)?t(a):a},n=Object.create(null);return e&&$.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function pJ(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,s={};for(var l in t){if(n[l])for(o=0;o<n[l].length;o++){var u=n[l][o];s[n[l][o]]=r(u)}s[l]=r(l)}for(o=0;o<i.length;o++)s[i[o]]=r(i[o]);return s}function zu(e,t,r){return r[t]!=null?r[t]:e.props[t]}function vJ(e,t){return EM(e.children,function(r){return $.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:zu(r,"appear",e),enter:zu(r,"enter",e),exit:zu(r,"exit",e)})})}function gJ(e,t,r){var n=EM(e.children),i=pJ(t,n);return Object.keys(i).forEach(function(a){var o=i[a];if($.isValidElement(o)){var s=a in t,l=a in n,u=t[a],c=$.isValidElement(u)&&!u.props.in;l&&(!s||c)?i[a]=$.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:zu(o,"exit",e),enter:zu(o,"enter",e)}):!l&&s&&!c?i[a]=$.cloneElement(o,{in:!1}):l&&s&&$.isValidElement(u)&&(i[a]=$.cloneElement(o,{onExited:r.bind(null,o),in:u.props.in,exit:zu(o,"exit",e),enter:zu(o,"enter",e)}))}}),i}var mJ=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},yJ={component:"div",childFactory:function(t){return t}},LM=function(e){f$(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=a.handleExited.bind(hJ(a));return a.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var o=a.children,s=a.handleExited,l=a.firstRender;return{children:l?vJ(i,s):gJ(i,o,s),firstRender:!1}},r.handleExited=function(i,a){var o=EM(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var l=U({},s.children);return delete l[i.key],{children:l}}))},r.render=function(){var i=this.props,a=i.component,o=i.childFactory,s=Ee(i,["component","childFactory"]),l=this.state.contextValue,u=mJ(this.state.children).map(o);return delete s.appear,delete s.enter,delete s.exit,a===null?wa.createElement(o1.Provider,{value:l},u):wa.createElement(o1.Provider,{value:l},wa.createElement(a,s,u))},t}(wa.Component);LM.propTypes={};LM.defaultProps=yJ;const d$=e=>e.scrollTop;function sd(e,t){var r,n;const{timeout:i,easing:a,style:o={}}=e;return{duration:(r=o.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(n=o.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:o.transitionDelay}}function xJ(e){return nt("MuiCollapse",e)}lt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const SJ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],bJ=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return st(n,xJ,r)},_J=we("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>U({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&U({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),wJ=we("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>U({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),CJ=we("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>U({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),h$=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:o,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:f,onEntered:d,onEntering:h,onExit:v,onExited:g,onExiting:y,orientation:x="vertical",style:S,timeout:b=u$.standard,TransitionComponent:w=Na}=n,T=Ee(n,SJ),C=U({},n,{orientation:x,collapsedSize:s}),M=bJ(C),k=mc(),I=$.useRef(),P=$.useRef(null),R=$.useRef(),L=typeof s=="number"?`${s}px`:s,O=x==="horizontal",N=O?"width":"height";$.useEffect(()=>()=>{clearTimeout(I.current)},[]);const B=$.useRef(null),G=Rr(r,B),q=te=>pe=>{if(te){const ae=B.current;pe===void 0?te(ae):te(ae,pe)}},H=()=>P.current?P.current[O?"clientWidth":"clientHeight"]:0,X=q((te,pe)=>{P.current&&O&&(P.current.style.position="absolute"),te.style[N]=L,f&&f(te,pe)}),F=q((te,pe)=>{const ae=H();P.current&&O&&(P.current.style.position="");const{duration:he,easing:ve}=sd({style:S,timeout:b,easing:u},{mode:"enter"});if(b==="auto"){const fe=k.transitions.getAutoHeightDuration(ae);te.style.transitionDuration=`${fe}ms`,R.current=fe}else te.style.transitionDuration=typeof he=="string"?he:`${he}ms`;te.style[N]=`${ae}px`,te.style.transitionTimingFunction=ve,h&&h(te,pe)}),Y=q((te,pe)=>{te.style[N]="auto",d&&d(te,pe)}),Z=q(te=>{te.style[N]=`${H()}px`,v&&v(te)}),j=q(g),re=q(te=>{const pe=H(),{duration:ae,easing:he}=sd({style:S,timeout:b,easing:u},{mode:"exit"});if(b==="auto"){const ve=k.transitions.getAutoHeightDuration(pe);te.style.transitionDuration=`${ve}ms`,R.current=ve}else te.style.transitionDuration=typeof ae=="string"?ae:`${ae}ms`;te.style[N]=L,te.style.transitionTimingFunction=he,y&&y(te)}),ce=te=>{b==="auto"&&(I.current=setTimeout(te,R.current||0)),i&&i(B.current,te)};return z.jsx(w,U({in:c,onEnter:X,onEntered:Y,onEntering:F,onExit:Z,onExited:j,onExiting:re,addEndListener:ce,nodeRef:B,timeout:b==="auto"?null:b},T,{children:(te,pe)=>z.jsx(_J,U({as:l,className:Le(M.root,o,{entered:M.entered,exited:!c&&L==="0px"&&M.hidden}[te]),style:U({[O?"minWidth":"minHeight"]:L},S),ownerState:U({},C,{state:te}),ref:G},pe,{children:z.jsx(wJ,{ownerState:U({},C,{state:te}),className:M.wrapper,ref:P,children:z.jsx(CJ,{ownerState:U({},C,{state:te}),className:M.wrapperInner,children:a})})}))}))});h$.muiSupportAuto=!0;function TJ(e){return nt("MuiPaper",e)}lt("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"]);const AJ=["className","component","elevation","square","variant"],MJ=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return st(a,TJ,i)},kJ=we("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return U({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&U({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Sr("#fff",tL(t.elevation))}, ${Sr("#fff",tL(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Al=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=Ee(n,AJ),c=U({},n,{component:a,elevation:o,square:s,variant:l}),f=MJ(c);return z.jsx(kJ,U({as:a,ownerState:c,className:Le(f.root,i),ref:r},u))}),p$=$.createContext({});function IJ(e){return nt("MuiAccordion",e)}const uy=lt("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),PJ=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],DJ=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return st({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},IJ,t)},RJ=we(Al,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${uy.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${uy.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${uy.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>U({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${uy.expanded}`]:{margin:"16px 0"}})),OM=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiAccordion"}),{children:i,className:a,defaultExpanded:o=!1,disabled:s=!1,disableGutters:l=!1,expanded:u,onChange:c,square:f=!1,TransitionComponent:d=h$,TransitionProps:h}=n,v=Ee(n,PJ),[g,y]=id({controlled:u,default:o,name:"Accordion",state:"expanded"}),x=$.useCallback(M=>{y(!g),c&&c(M,!g)},[g,c,y]),[S,...b]=$.Children.toArray(i),w=$.useMemo(()=>({expanded:g,disabled:s,disableGutters:l,toggle:x}),[g,s,l,x]),T=U({},n,{square:f,disabled:s,disableGutters:l,expanded:g}),C=DJ(T);return z.jsxs(RJ,U({className:Le(C.root,a),ref:r,ownerState:T,square:f},v,{children:[z.jsx(p$.Provider,{value:w,children:S}),z.jsx(d,U({in:g,timeout:"auto"},h,{children:z.jsx("div",{"aria-labelledby":S.props.id,id:S.props["aria-controls"],role:"region",className:C.region,children:b})}))]}))});function EJ(e){return nt("MuiAccordionDetails",e)}lt("MuiAccordionDetails",["root"]);const LJ=["className"],OJ=e=>{const{classes:t}=e;return st({root:["root"]},EJ,t)},NJ=we("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),NM=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=Ee(n,LJ),o=n,s=OJ(o);return z.jsx(NJ,U({className:Le(s.root,i),ref:r,ownerState:o},a))});function zJ(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:l,timeout:u}=e,[c,f]=$.useState(!1),d=Le(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=Le(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),$.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,u);return()=>{clearTimeout(g)}}},[l,s,u]),z.jsx("span",{className:d,style:h,children:z.jsx("span",{className:v})})}const ji=lt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),BJ=["center","classes","className"];let Ex=e=>e,aL,oL,sL,lL;const XT=550,FJ=80,VJ=bM(aL||(aL=Ex`
|
68
|
+
0% {
|
69
|
+
transform: scale(0);
|
70
|
+
opacity: 0.1;
|
71
|
+
}
|
72
|
+
|
73
|
+
100% {
|
74
|
+
transform: scale(1);
|
75
|
+
opacity: 0.3;
|
76
|
+
}
|
77
|
+
`)),$J=bM(oL||(oL=Ex`
|
78
|
+
0% {
|
79
|
+
opacity: 1;
|
80
|
+
}
|
81
|
+
|
82
|
+
100% {
|
83
|
+
opacity: 0;
|
84
|
+
}
|
85
|
+
`)),GJ=bM(sL||(sL=Ex`
|
86
|
+
0% {
|
87
|
+
transform: scale(1);
|
88
|
+
}
|
89
|
+
|
90
|
+
50% {
|
91
|
+
transform: scale(0.92);
|
92
|
+
}
|
93
|
+
|
94
|
+
100% {
|
95
|
+
transform: scale(1);
|
96
|
+
}
|
97
|
+
`)),HJ=we("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),WJ=we(zJ,{name:"MuiTouchRipple",slot:"Ripple"})(lL||(lL=Ex`
|
98
|
+
opacity: 0;
|
99
|
+
position: absolute;
|
100
|
+
|
101
|
+
&.${0} {
|
102
|
+
opacity: 0.3;
|
103
|
+
transform: scale(1);
|
104
|
+
animation-name: ${0};
|
105
|
+
animation-duration: ${0}ms;
|
106
|
+
animation-timing-function: ${0};
|
107
|
+
}
|
108
|
+
|
109
|
+
&.${0} {
|
110
|
+
animation-duration: ${0}ms;
|
111
|
+
}
|
112
|
+
|
113
|
+
& .${0} {
|
114
|
+
opacity: 1;
|
115
|
+
display: block;
|
116
|
+
width: 100%;
|
117
|
+
height: 100%;
|
118
|
+
border-radius: 50%;
|
119
|
+
background-color: currentColor;
|
120
|
+
}
|
121
|
+
|
122
|
+
& .${0} {
|
123
|
+
opacity: 0;
|
124
|
+
animation-name: ${0};
|
125
|
+
animation-duration: ${0}ms;
|
126
|
+
animation-timing-function: ${0};
|
127
|
+
}
|
128
|
+
|
129
|
+
& .${0} {
|
130
|
+
position: absolute;
|
131
|
+
/* @noflip */
|
132
|
+
left: 0px;
|
133
|
+
top: 0;
|
134
|
+
animation-name: ${0};
|
135
|
+
animation-duration: 2500ms;
|
136
|
+
animation-timing-function: ${0};
|
137
|
+
animation-iteration-count: infinite;
|
138
|
+
animation-delay: 200ms;
|
139
|
+
}
|
140
|
+
`),ji.rippleVisible,VJ,XT,({theme:e})=>e.transitions.easing.easeInOut,ji.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ji.child,ji.childLeaving,$J,XT,({theme:e})=>e.transitions.easing.easeInOut,ji.childPulsate,GJ,({theme:e})=>e.transitions.easing.easeInOut),jJ=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=Ee(n,BJ),[l,u]=$.useState([]),c=$.useRef(0),f=$.useRef(null);$.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=$.useRef(!1),h=$.useRef(0),v=$.useRef(null),g=$.useRef(null);$.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const y=$.useCallback(w=>{const{pulsate:T,rippleX:C,rippleY:M,rippleSize:k,cb:I}=w;u(P=>[...P,z.jsx(WJ,{classes:{ripple:Le(a.ripple,ji.ripple),rippleVisible:Le(a.rippleVisible,ji.rippleVisible),ripplePulsate:Le(a.ripplePulsate,ji.ripplePulsate),child:Le(a.child,ji.child),childLeaving:Le(a.childLeaving,ji.childLeaving),childPulsate:Le(a.childPulsate,ji.childPulsate)},timeout:XT,pulsate:T,rippleX:C,rippleY:M,rippleSize:k},c.current)]),c.current+=1,f.current=I},[a]),x=$.useCallback((w={},T={},C=()=>{})=>{const{pulsate:M=!1,center:k=i||T.pulsate,fakeElement:I=!1}=T;if((w==null?void 0:w.type)==="mousedown"&&d.current){d.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(d.current=!0);const P=I?null:g.current,R=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,O,N;if(k||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)L=Math.round(R.width/2),O=Math.round(R.height/2);else{const{clientX:B,clientY:G}=w.touches&&w.touches.length>0?w.touches[0]:w;L=Math.round(B-R.left),O=Math.round(G-R.top)}if(k)N=Math.sqrt((2*R.width**2+R.height**2)/3),N%2===0&&(N+=1);else{const B=Math.max(Math.abs((P?P.clientWidth:0)-L),L)*2+2,G=Math.max(Math.abs((P?P.clientHeight:0)-O),O)*2+2;N=Math.sqrt(B**2+G**2)}w!=null&&w.touches?v.current===null&&(v.current=()=>{y({pulsate:M,rippleX:L,rippleY:O,rippleSize:N,cb:C})},h.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},FJ)):y({pulsate:M,rippleX:L,rippleY:O,rippleSize:N,cb:C})},[i,y]),S=$.useCallback(()=>{x({},{pulsate:!0})},[x]),b=$.useCallback((w,T)=>{if(clearTimeout(h.current),(w==null?void 0:w.type)==="touchend"&&v.current){v.current(),v.current=null,h.current=setTimeout(()=>{b(w,T)});return}v.current=null,u(C=>C.length>0?C.slice(1):C),f.current=T},[]);return $.useImperativeHandle(r,()=>({pulsate:S,start:x,stop:b}),[S,x,b]),z.jsx(HJ,U({className:Le(ji.root,a.root,o),ref:g},s,{children:z.jsx(LM,{component:null,exit:!0,children:l})}))});function UJ(e){return nt("MuiButtonBase",e)}const YJ=lt("MuiButtonBase",["root","disabled","focusVisible"]),qJ=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],XJ=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=st({root:["root",t&&"disabled",r&&"focusVisible"]},UJ,i);return r&&n&&(o.root+=` ${n}`),o},ZJ=we("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${YJ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yc=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:v,onClick:g,onContextMenu:y,onDragLeave:x,onFocus:S,onFocusVisible:b,onKeyDown:w,onKeyUp:T,onMouseDown:C,onMouseLeave:M,onMouseUp:k,onTouchEnd:I,onTouchMove:P,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:N,type:B}=n,G=Ee(n,qJ),q=$.useRef(null),H=$.useRef(null),X=Rr(H,N),{isFocusVisibleRef:F,onFocus:Y,onBlur:Z,ref:j}=yx(),[re,ce]=$.useState(!1);u&&re&&ce(!1),$.useImperativeHandle(i,()=>({focusVisible:()=>{ce(!0),q.current.focus()}}),[]);const[te,pe]=$.useState(!1);$.useEffect(()=>{pe(!0)},[]);const ae=te&&!c&&!u;$.useEffect(()=>{re&&d&&!c&&te&&H.current.pulsate()},[c,d,re,te]);function he(Me,Pt,sr=f){return Ca(ze=>(Pt&&Pt(ze),!sr&&H.current&&H.current[Me](ze),!0))}const ve=he("start",C),fe=he("stop",y),ge=he("stop",x),De=he("stop",k),Ie=he("stop",Me=>{re&&Me.preventDefault(),M&&M(Me)}),$e=he("start",R),dt=he("stop",I),ct=he("stop",P),bt=he("stop",Me=>{Z(Me),F.current===!1&&ce(!1),v&&v(Me)},!1),At=Ca(Me=>{q.current||(q.current=Me.currentTarget),Y(Me),F.current===!0&&(ce(!0),b&&b(Me)),S&&S(Me)}),_t=()=>{const Me=q.current;return l&&l!=="button"&&!(Me.tagName==="A"&&Me.href)},it=$.useRef(!1),tr=Ca(Me=>{d&&!it.current&&re&&H.current&&Me.key===" "&&(it.current=!0,H.current.stop(Me,()=>{H.current.start(Me)})),Me.target===Me.currentTarget&&_t()&&Me.key===" "&&Me.preventDefault(),w&&w(Me),Me.target===Me.currentTarget&&_t()&&Me.key==="Enter"&&!u&&(Me.preventDefault(),g&&g(Me))}),$t=Ca(Me=>{d&&Me.key===" "&&H.current&&re&&!Me.defaultPrevented&&(it.current=!1,H.current.stop(Me,()=>{H.current.pulsate(Me)})),T&&T(Me),g&&Me.target===Me.currentTarget&&_t()&&Me.key===" "&&!Me.defaultPrevented&&g(Me)});let It=l;It==="button"&&(G.href||G.to)&&(It=h);const le={};It==="button"?(le.type=B===void 0?"button":B,le.disabled=u):(!G.href&&!G.to&&(le.role="button"),u&&(le["aria-disabled"]=u));const ye=Rr(r,j,q),je=U({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:L,focusVisible:re}),Ne=XJ(je);return z.jsxs(ZJ,U({as:It,className:Le(Ne.root,s),ownerState:je,onBlur:bt,onClick:g,onContextMenu:fe,onFocus:At,onKeyDown:tr,onKeyUp:$t,onMouseDown:ve,onMouseLeave:Ie,onMouseUp:De,onDragLeave:ge,onTouchEnd:dt,onTouchMove:ct,onTouchStart:$e,ref:ye,tabIndex:u?-1:L,type:B},le,G,{children:[o,ae?z.jsx(jJ,U({ref:X,center:a},O)):null]}))});function KJ(e){return nt("MuiAccordionSummary",e)}const Ff=lt("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),QJ=["children","className","expandIcon","focusVisibleClassName","onClick"],JJ=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return st({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},KJ,t)},eee=we(yc,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return U({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${Ff.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ff.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Ff.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Ff.expanded}`]:{minHeight:64}})}),tee=we("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>U({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Ff.expanded}`]:{margin:"20px 0"}})),ree=we("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Ff.expanded}`]:{transform:"rotate(180deg)"}})),zM=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=Ee(n,QJ),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=$.useContext(p$),v=x=>{h&&h(x),l&&l(x)},g=U({},n,{expanded:d,disabled:c,disableGutters:f}),y=JJ(g);return z.jsxs(eee,U({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:Le(y.root,a),focusVisibleClassName:Le(y.focusVisible,s),onClick:v,ref:r,ownerState:g},u,{children:[z.jsx(tee,{className:y.content,ownerState:g,children:i}),o&&z.jsx(ree,{className:y.expandIconWrapper,ownerState:g,children:o})]}))});function nee(e){return nt("MuiAlert",e)}const uL=lt("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function iee(e){return nt("MuiIconButton",e)}const aee=lt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),oee=["edge","children","className","color","disabled","disableFocusRipple","size"],see=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${Oe(n)}`,i&&`edge${Oe(i)}`,`size${Oe(a)}`]};return st(o,iee,t)},lee=we(yc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Oe(r.color)}`],r.edge&&t[`edge${Oe(r.edge)}`],t[`size${Oe(r.size)}`]]}})(({theme:e,ownerState:t})=>U({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return U({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&U({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":U({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${aee.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Md=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=n,f=Ee(n,oee),d=U({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=see(d);return z.jsx(lee,U({className:Le(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),uee=ci(z.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),cee=ci(z.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),fee=ci(z.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),dee=ci(z.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),hee=ci(z.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),pee=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],vee=e=>{const{variant:t,color:r,severity:n,classes:i}=e,a={root:["root",`${t}${Oe(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return st(a,nee,i)},gee=we(Al,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Oe(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?Iv:Pv,n=e.palette.mode==="light"?Pv:Iv,i=t.color||t.severity;return U({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},i&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:n(e.palette[i].light,.9),[`& .${uL.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${uL.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="filled"&&U({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}))}),mee=we("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),yee=we("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),cL=we("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),fL={success:z.jsx(uee,{fontSize:"inherit"}),warning:z.jsx(cee,{fontSize:"inherit"}),error:z.jsx(fee,{fontSize:"inherit"}),info:z.jsx(dee,{fontSize:"inherit"})},Vf=$.forwardRef(function(t,r){var n,i,a,o,s,l;const u=ut({props:t,name:"MuiAlert"}),{action:c,children:f,className:d,closeText:h="Close",color:v,components:g={},componentsProps:y={},icon:x,iconMapping:S=fL,onClose:b,role:w="alert",severity:T="success",slotProps:C={},slots:M={},variant:k="standard"}=u,I=Ee(u,pee),P=U({},u,{color:v,severity:T,variant:k}),R=vee(P),L=(n=(i=M.closeButton)!=null?i:g.CloseButton)!=null?n:Md,O=(a=(o=M.closeIcon)!=null?o:g.CloseIcon)!=null?a:hee,N=(s=C.closeButton)!=null?s:y.closeButton,B=(l=C.closeIcon)!=null?l:y.closeIcon;return z.jsxs(gee,U({role:w,elevation:0,ownerState:P,className:Le(R.root,d),ref:r},I,{children:[x!==!1?z.jsx(mee,{ownerState:P,className:R.icon,children:x||S[T]||fL[T]}):null,z.jsx(yee,{ownerState:P,className:R.message,children:f}),c!=null?z.jsx(cL,{ownerState:P,className:R.action,children:c}):null,c==null&&b?z.jsx(cL,{ownerState:P,className:R.action,children:z.jsx(L,U({size:"small","aria-label":h,title:h,color:"inherit",onClick:b},N,{children:z.jsx(O,U({fontSize:"small"},B))}))}):null]}))});function xee(e){return nt("MuiTypography",e)}lt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const See=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bee=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Oe(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return st(s,xee,o)},_ee=we("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Oe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>U({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),dL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Cee=e=>wee[e]||e,zt=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTypography"}),i=Cee(n.color),a=kM(U({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=dL}=a,v=Ee(a,See),g=U({},a,{align:o,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),y=l||(f?"p":h[d]||dL[d])||"span",x=bee(g);return z.jsx(_ee,U({as:y,ref:r,ownerState:g,className:Le(x.root,s)},v))});function Tee(e){return nt("MuiAppBar",e)}lt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Aee=["className","color","enableColorOnDark","position"],Mee=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${Oe(t)}`,`position${Oe(r)}`]};return st(i,Tee,n)},cy=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,kee=we(Al,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Oe(r.position)}`],t[`color${Oe(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return U({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&U({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&U({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&U({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:cy(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:cy(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:cy(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:cy(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Iee=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=Ee(n,Aee),u=U({},n,{color:a,position:s,enableColorOnDark:o}),c=Mee(u);return z.jsx(kee,U({square:!0,component:"header",ownerState:u,elevation:4,className:Le(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))});function ld(e){return typeof e=="string"}function Pp(e,t,r){return e===void 0||ld(e)?t:U({},t,{ownerState:U({},t.ownerState,r)})}const Pee={disableDefaultClasses:!1},Dee=$.createContext(Pee);function Ree(e){const{disableDefaultClasses:t}=$.useContext(Dee);return r=>t?"":e(r)}function v$(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Eee(e,t,r){return typeof e=="function"?e(t,r):e}function hL(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Lee(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=Le(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),v=U({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),g=U({},r,i,n);return h.length>0&&(g.className=h),Object.keys(v).length>0&&(g.style=v),{props:g,internalRef:void 0}}const o=v$(U({},i,n)),s=hL(n),l=hL(i),u=t(o),c=Le(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=U({},u==null?void 0:u.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),d=U({},u,r,l,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const Oee=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ea(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=Ee(e,Oee),s=a?{}:Eee(n,i),{props:l,internalRef:u}=Lee(U({},o,{externalSlotProps:s})),c=Rr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Pp(r,U({},l,{ref:c}),i)}const Nee=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zee(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Bee(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Fee(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Bee(e))}function Vee(e){const t=[],r=[];return Array.from(e.querySelectorAll(Nee)).forEach((n,i)=>{const a=zee(n);a===-1||!Fee(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function $ee(){return!0}function Gee(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=Vee,isEnabled:o=$ee,open:s}=e,l=$.useRef(!1),u=$.useRef(null),c=$.useRef(null),f=$.useRef(null),d=$.useRef(null),h=$.useRef(!1),v=$.useRef(null),g=Rr(t.ref,v),y=$.useRef(null);$.useEffect(()=>{!s||!v.current||(h.current=!r)},[r,s]),$.useEffect(()=>{if(!s||!v.current)return;const b=ln(v.current);return v.current.contains(b.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),h.current&&v.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),$.useEffect(()=>{if(!s||!v.current)return;const b=ln(v.current),w=M=>{y.current=M,!(n||!o()||M.key!=="Tab")&&b.activeElement===v.current&&M.shiftKey&&(l.current=!0,c.current&&c.current.focus())},T=()=>{const M=v.current;if(M===null)return;if(!b.hasFocus()||!o()||l.current){l.current=!1;return}if(M.contains(b.activeElement)||n&&b.activeElement!==u.current&&b.activeElement!==c.current)return;if(b.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let k=[];if((b.activeElement===u.current||b.activeElement===c.current)&&(k=a(v.current)),k.length>0){var I,P;const R=!!((I=y.current)!=null&&I.shiftKey&&((P=y.current)==null?void 0:P.key)==="Tab"),L=k[0],O=k[k.length-1];typeof L!="string"&&typeof O!="string"&&(R?O.focus():L.focus())}else M.focus()};b.addEventListener("focusin",T),b.addEventListener("keydown",w,!0);const C=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(C),b.removeEventListener("focusin",T),b.removeEventListener("keydown",w,!0)}},[r,n,i,o,s,a]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),h.current=!0,d.current=b.target;const w=t.props.onFocus;w&&w(b)},S=b=>{f.current===null&&(f.current=b.relatedTarget),h.current=!0};return z.jsxs($.Fragment,{children:[z.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:u,"data-testid":"sentinelStart"}),$.cloneElement(t,{ref:g,onFocus:x}),z.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:c,"data-testid":"sentinelEnd"})]})}var ii="top",ta="bottom",ra="right",ai="left",BM="auto",xg=[ii,ta,ra,ai],ud="start",Dv="end",Hee="clippingParents",g$="viewport",Fh="popper",Wee="reference",pL=xg.reduce(function(e,t){return e.concat([t+"-"+ud,t+"-"+Dv])},[]),m$=[].concat(xg,[BM]).reduce(function(e,t){return e.concat([t,t+"-"+ud,t+"-"+Dv])},[]),jee="beforeRead",Uee="read",Yee="afterRead",qee="beforeMain",Xee="main",Zee="afterMain",Kee="beforeWrite",Qee="write",Jee="afterWrite",ete=[jee,Uee,Yee,qee,Xee,Zee,Kee,Qee,Jee];function So(e){return e?(e.nodeName||"").toLowerCase():null}function Mi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function uc(e){var t=Mi(e).Element;return e instanceof t||e instanceof Element}function Ji(e){var t=Mi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function FM(e){if(typeof ShadowRoot>"u")return!1;var t=Mi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function tte(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!Ji(a)||!So(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function rte(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(l,u){return l[u]="",l},{});!Ji(i)||!So(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const nte={name:"applyStyles",enabled:!0,phase:"write",fn:tte,effect:rte,requires:["computeStyles"]};function ho(e){return e.split("-")[0]}var Yu=Math.max,s1=Math.min,cd=Math.round;function ZT(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function y$(){return!/^((?!chrome|android).)*safari/i.test(ZT())}function fd(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&Ji(e)&&(i=e.offsetWidth>0&&cd(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&cd(n.height)/e.offsetHeight||1);var o=uc(e)?Mi(e):window,s=o.visualViewport,l=!y$()&&r,u=(n.left+(l&&s?s.offsetLeft:0))/i,c=(n.top+(l&&s?s.offsetTop:0))/a,f=n.width/i,d=n.height/a;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function VM(e){var t=fd(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function x$(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&FM(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function is(e){return Mi(e).getComputedStyle(e)}function ite(e){return["table","td","th"].indexOf(So(e))>=0}function Ml(e){return((uc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lx(e){return So(e)==="html"?e:e.assignedSlot||e.parentNode||(FM(e)?e.host:null)||Ml(e)}function vL(e){return!Ji(e)||is(e).position==="fixed"?null:e.offsetParent}function ate(e){var t=/firefox/i.test(ZT()),r=/Trident/i.test(ZT());if(r&&Ji(e)){var n=is(e);if(n.position==="fixed")return null}var i=Lx(e);for(FM(i)&&(i=i.host);Ji(i)&&["html","body"].indexOf(So(i))<0;){var a=is(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Sg(e){for(var t=Mi(e),r=vL(e);r&&ite(r)&&is(r).position==="static";)r=vL(r);return r&&(So(r)==="html"||So(r)==="body"&&is(r).position==="static")?t:r||ate(e)||t}function $M(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zp(e,t,r){return Yu(e,s1(t,r))}function ote(e,t,r){var n=Zp(e,t,r);return n>r?r:n}function S$(){return{top:0,right:0,bottom:0,left:0}}function b$(e){return Object.assign({},S$(),e)}function _$(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var ste=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,b$(typeof t!="number"?t:_$(t,xg))};function lte(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=ho(r.placement),l=$M(s),u=[ai,ra].indexOf(s)>=0,c=u?"height":"width";if(!(!a||!o)){var f=ste(i.padding,r),d=VM(a),h=l==="y"?ii:ai,v=l==="y"?ta:ra,g=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],y=o[l]-r.rects.reference[l],x=Sg(a),S=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,b=g/2-y/2,w=f[h],T=S-d[c]-f[v],C=S/2-d[c]/2+b,M=Zp(w,C,T),k=l;r.modifiersData[n]=(t={},t[k]=M,t.centerOffset=M-C,t)}}function ute(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||x$(t.elements.popper,i)&&(t.elements.arrow=i))}const cte={name:"arrow",enabled:!0,phase:"main",fn:lte,effect:ute,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dd(e){return e.split("-")[1]}var fte={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dte(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:cd(r*i)/i||0,y:cd(n*i)/i||0}}function gL(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,v=o.y,g=v===void 0?0:v,y=typeof c=="function"?c({x:h,y:g}):{x:h,y:g};h=y.x,g=y.y;var x=o.hasOwnProperty("x"),S=o.hasOwnProperty("y"),b=ai,w=ii,T=window;if(u){var C=Sg(r),M="clientHeight",k="clientWidth";if(C===Mi(r)&&(C=Ml(r),is(C).position!=="static"&&s==="absolute"&&(M="scrollHeight",k="scrollWidth")),C=C,i===ii||(i===ai||i===ra)&&a===Dv){w=ta;var I=f&&C===T&&T.visualViewport?T.visualViewport.height:C[M];g-=I-n.height,g*=l?1:-1}if(i===ai||(i===ii||i===ta)&&a===Dv){b=ra;var P=f&&C===T&&T.visualViewport?T.visualViewport.width:C[k];h-=P-n.width,h*=l?1:-1}}var R=Object.assign({position:s},u&&fte),L=c===!0?dte({x:h,y:g},Mi(r)):{x:h,y:g};if(h=L.x,g=L.y,l){var O;return Object.assign({},R,(O={},O[w]=S?"0":"",O[b]=x?"0":"",O.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",O))}return Object.assign({},R,(t={},t[w]=S?g+"px":"",t[b]=x?h+"px":"",t.transform="",t))}function hte(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:ho(t.placement),variation:dd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,gL(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,gL(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const pte={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hte,data:{}};var fy={passive:!0};function vte(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,l=Mi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",r.update,fy)}),s&&l.addEventListener("resize",r.update,fy),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",r.update,fy)}),s&&l.removeEventListener("resize",r.update,fy)}}const gte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vte,data:{}};var mte={left:"right",right:"left",bottom:"top",top:"bottom"};function I0(e){return e.replace(/left|right|bottom|top/g,function(t){return mte[t]})}var yte={start:"end",end:"start"};function mL(e){return e.replace(/start|end/g,function(t){return yte[t]})}function GM(e){var t=Mi(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function HM(e){return fd(Ml(e)).left+GM(e).scrollLeft}function xte(e,t){var r=Mi(e),n=Ml(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var u=y$();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+HM(e),y:l}}function Ste(e){var t,r=Ml(e),n=GM(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Yu(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Yu(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+HM(e),l=-n.scrollTop;return is(i||r).direction==="rtl"&&(s+=Yu(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function WM(e){var t=is(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function w$(e){return["html","body","#document"].indexOf(So(e))>=0?e.ownerDocument.body:Ji(e)&&WM(e)?e:w$(Lx(e))}function Kp(e,t){var r;t===void 0&&(t=[]);var n=w$(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Mi(n),o=i?[a].concat(a.visualViewport||[],WM(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(Kp(Lx(o)))}function KT(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bte(e,t){var r=fd(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function yL(e,t,r){return t===g$?KT(xte(e,r)):uc(t)?bte(t,r):KT(Ste(Ml(e)))}function _te(e){var t=Kp(Lx(e)),r=["absolute","fixed"].indexOf(is(e).position)>=0,n=r&&Ji(e)?Sg(e):e;return uc(n)?t.filter(function(i){return uc(i)&&x$(i,n)&&So(i)!=="body"}):[]}function wte(e,t,r,n){var i=t==="clippingParents"?_te(e):[].concat(t),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(l,u){var c=yL(e,u,n);return l.top=Yu(c.top,l.top),l.right=s1(c.right,l.right),l.bottom=s1(c.bottom,l.bottom),l.left=Yu(c.left,l.left),l},yL(e,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function C$(e){var t=e.reference,r=e.element,n=e.placement,i=n?ho(n):null,a=n?dd(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case ii:l={x:o,y:t.y-r.height};break;case ta:l={x:o,y:t.y+t.height};break;case ra:l={x:t.x+t.width,y:s};break;case ai:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?$M(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case ud:l[u]=l[u]-(t[c]/2-r[c]/2);break;case Dv:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function Rv(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,o=a===void 0?e.strategy:a,s=r.boundary,l=s===void 0?Hee:s,u=r.rootBoundary,c=u===void 0?g$:u,f=r.elementContext,d=f===void 0?Fh:f,h=r.altBoundary,v=h===void 0?!1:h,g=r.padding,y=g===void 0?0:g,x=b$(typeof y!="number"?y:_$(y,xg)),S=d===Fh?Wee:Fh,b=e.rects.popper,w=e.elements[v?S:d],T=wte(uc(w)?w:w.contextElement||Ml(e.elements.popper),l,c,o),C=fd(e.elements.reference),M=C$({reference:C,element:b,strategy:"absolute",placement:i}),k=KT(Object.assign({},b,M)),I=d===Fh?k:C,P={top:T.top-I.top+x.top,bottom:I.bottom-T.bottom+x.bottom,left:T.left-I.left+x.left,right:I.right-T.right+x.right},R=e.modifiersData.offset;if(d===Fh&&R){var L=R[i];Object.keys(P).forEach(function(O){var N=[ra,ta].indexOf(O)>=0?1:-1,B=[ii,ta].indexOf(O)>=0?"y":"x";P[O]+=L[B]*N})}return P}function Cte(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?m$:l,c=dd(n),f=c?s?pL:pL.filter(function(v){return dd(v)===c}):xg,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,g){return v[g]=Rv(e,{placement:g,boundary:i,rootBoundary:a,padding:o})[ho(g)],v},{});return Object.keys(h).sort(function(v,g){return h[v]-h[g]})}function Tte(e){if(ho(e)===BM)return[];var t=I0(e);return[mL(e),t,mL(t)]}function Ate(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,g=r.allowedAutoPlacements,y=t.options.placement,x=ho(y),S=x===y,b=l||(S||!v?[I0(y)]:Tte(y)),w=[y].concat(b).reduce(function(re,ce){return re.concat(ho(ce)===BM?Cte(t,{placement:ce,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:g}):ce)},[]),T=t.rects.reference,C=t.rects.popper,M=new Map,k=!0,I=w[0],P=0;P<w.length;P++){var R=w[P],L=ho(R),O=dd(R)===ud,N=[ii,ta].indexOf(L)>=0,B=N?"width":"height",G=Rv(t,{placement:R,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),q=N?O?ra:ai:O?ta:ii;T[B]>C[B]&&(q=I0(q));var H=I0(q),X=[];if(a&&X.push(G[L]<=0),s&&X.push(G[q]<=0,G[H]<=0),X.every(function(re){return re})){I=R,k=!1;break}M.set(R,X)}if(k)for(var F=v?3:1,Y=function(ce){var te=w.find(function(pe){var ae=M.get(pe);if(ae)return ae.slice(0,ce).every(function(he){return he})});if(te)return I=te,"break"},Z=F;Z>0;Z--){var j=Y(Z);if(j==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const Mte={name:"flip",enabled:!0,phase:"main",fn:Ate,requiresIfExists:["offset"],data:{_skip:!1}};function xL(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function SL(e){return[ii,ra,ta,ai].some(function(t){return e[t]>=0})}function kte(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Rv(t,{elementContext:"reference"}),s=Rv(t,{altBoundary:!0}),l=xL(o,n),u=xL(s,i,a),c=SL(l),f=SL(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Ite={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kte};function Pte(e,t,r){var n=ho(e),i=[ai,ii].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[ai,ra].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function Dte(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=m$.reduce(function(c,f){return c[f]=Pte(f,t.rects,a),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=o}const Rte={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Dte};function Ete(e){var t=e.state,r=e.name;t.modifiersData[r]=C$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Lte={name:"popperOffsets",enabled:!0,phase:"read",fn:Ete,data:{}};function Ote(e){return e==="x"?"y":"x"}function Nte(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,g=v===void 0?0:v,y=Rv(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),x=ho(t.placement),S=dd(t.placement),b=!S,w=$M(x),T=Ote(w),C=t.modifiersData.popperOffsets,M=t.rects.reference,k=t.rects.popper,I=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(C){if(a){var O,N=w==="y"?ii:ai,B=w==="y"?ta:ra,G=w==="y"?"height":"width",q=C[w],H=q+y[N],X=q-y[B],F=h?-k[G]/2:0,Y=S===ud?M[G]:k[G],Z=S===ud?-k[G]:-M[G],j=t.elements.arrow,re=h&&j?VM(j):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:S$(),te=ce[N],pe=ce[B],ae=Zp(0,M[G],re[G]),he=b?M[G]/2-F-ae-te-P.mainAxis:Y-ae-te-P.mainAxis,ve=b?-M[G]/2+F+ae+pe+P.mainAxis:Z+ae+pe+P.mainAxis,fe=t.elements.arrow&&Sg(t.elements.arrow),ge=fe?w==="y"?fe.clientTop||0:fe.clientLeft||0:0,De=(O=R==null?void 0:R[w])!=null?O:0,Ie=q+he-De-ge,$e=q+ve-De,dt=Zp(h?s1(H,Ie):H,q,h?Yu(X,$e):X);C[w]=dt,L[w]=dt-q}if(s){var ct,bt=w==="x"?ii:ai,At=w==="x"?ta:ra,_t=C[T],it=T==="y"?"height":"width",tr=_t+y[bt],$t=_t-y[At],It=[ii,ai].indexOf(x)!==-1,le=(ct=R==null?void 0:R[T])!=null?ct:0,ye=It?tr:_t-M[it]-k[it]-le+P.altAxis,je=It?_t+M[it]+k[it]-le-P.altAxis:$t,Ne=h&&It?ote(ye,_t,je):Zp(h?ye:tr,_t,h?je:$t);C[T]=Ne,L[T]=Ne-_t}t.modifiersData[n]=L}}const zte={name:"preventOverflow",enabled:!0,phase:"main",fn:Nte,requiresIfExists:["offset"]};function Bte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Fte(e){return e===Mi(e)||!Ji(e)?GM(e):Bte(e)}function Vte(e){var t=e.getBoundingClientRect(),r=cd(t.width)/e.offsetWidth||1,n=cd(t.height)/e.offsetHeight||1;return r!==1||n!==1}function $te(e,t,r){r===void 0&&(r=!1);var n=Ji(t),i=Ji(t)&&Vte(t),a=Ml(t),o=fd(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((So(t)!=="body"||WM(a))&&(s=Fte(t)),Ji(t)?(l=fd(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=HM(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function Gte(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function Hte(e){var t=Gte(e);return ete.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Wte(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function jte(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var bL={placement:"bottom",modifiers:[],strategy:"absolute"};function _L(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Ute(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?bL:i;return function(s,l,u){u===void 0&&(u=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},bL,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:c,setOptions:function(x){var S=typeof x=="function"?x(c.options):x;g(),c.options=Object.assign({},a,c.options,S),c.scrollParents={reference:uc(s)?Kp(s):s.contextElement?Kp(s.contextElement):[],popper:Kp(l)};var b=Hte(jte([].concat(n,c.options.modifiers)));return c.orderedModifiers=b.filter(function(w){return w.enabled}),v(),h.update()},forceUpdate:function(){if(!d){var x=c.elements,S=x.reference,b=x.popper;if(_L(S,b)){c.rects={reference:$te(S,Sg(b),c.options.strategy==="fixed"),popper:VM(b)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(P){return c.modifiersData[P.name]=Object.assign({},P.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var T=c.orderedModifiers[w],C=T.fn,M=T.options,k=M===void 0?{}:M,I=T.name;typeof C=="function"&&(c=C({state:c,options:k,name:I,instance:h})||c)}}}},update:Wte(function(){return new Promise(function(y){h.forceUpdate(),y(c)})}),destroy:function(){g(),d=!0}};if(!_L(s,l))return h;h.setOptions(u).then(function(y){!d&&u.onFirstUpdate&&u.onFirstUpdate(y)});function v(){c.orderedModifiers.forEach(function(y){var x=y.name,S=y.options,b=S===void 0?{}:S,w=y.effect;if(typeof w=="function"){var T=w({state:c,name:x,instance:h,options:b}),C=function(){};f.push(T||C)}})}function g(){f.forEach(function(y){return y()}),f=[]}return h}}var Yte=[gte,Lte,pte,nte,Rte,Mte,zte,cte,Ite],qte=Ute({defaultModifiers:Yte});function Xte(e){return typeof e=="function"?e():e}const T$=$.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=$.useState(null),l=Rr($.isValidElement(n)?n.ref:null,r);if(Da(()=>{a||s(Xte(i)||document.body)},[i,a]),Da(()=>{if(o&&!a)return n1(r,o),()=>{n1(r,null)}},[r,o,a]),a){if($.isValidElement(n)){const u={ref:l};return $.cloneElement(n,u)}return z.jsx($.Fragment,{children:n})}return z.jsx($.Fragment,{children:o&&RM.createPortal(n,o)})});function Zte(e){return nt("MuiPopper",e)}lt("MuiPopper",["root"]);const Kte=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Qte=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Jte(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function QT(e){return typeof e=="function"?e():e}function ere(e){return e.nodeType!==void 0}const tre=()=>st({root:["root"]},Ree(Zte)),rre={},nre=$.forwardRef(function(t,r){var n;const{anchorEl:i,children:a,direction:o,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:d,slotProps:h={},slots:v={},TransitionProps:g}=t,y=Ee(t,Kte),x=$.useRef(null),S=Rr(x,r),b=$.useRef(null),w=Rr(b,d),T=$.useRef(w);Da(()=>{T.current=w},[w]),$.useImperativeHandle(d,()=>b.current,[]);const C=Jte(c,o),[M,k]=$.useState(C),[I,P]=$.useState(QT(i));$.useEffect(()=>{b.current&&b.current.forceUpdate()}),$.useEffect(()=>{i&&P(QT(i))},[i]),Da(()=>{if(!I||!u)return;const B=H=>{k(H.placement)};let G=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{B(H)}}];l!=null&&(G=G.concat(l)),f&&f.modifiers!=null&&(G=G.concat(f.modifiers));const q=qte(I,x.current,U({placement:C},f,{modifiers:G}));return T.current(q),()=>{q.destroy(),T.current(null)}},[I,s,l,u,f,C]);const R={placement:M};g!==null&&(R.TransitionProps=g);const L=tre(),O=(n=v.root)!=null?n:"div",N=Ea({elementType:O,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:L.root});return z.jsx(O,U({},N,{children:typeof a=="function"?a(R):a}))}),ire=$.forwardRef(function(t,r){const{anchorEl:n,children:i,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:d=rre,popperRef:h,style:v,transition:g=!1,slotProps:y={},slots:x={}}=t,S=Ee(t,Qte),[b,w]=$.useState(!0),T=()=>{w(!1)},C=()=>{w(!0)};if(!l&&!c&&(!g||b))return null;let M;if(a)M=a;else if(n){const P=QT(n);M=P&&ere(P)?ln(P).body:ln(null).body}const k=!c&&l&&(!g||b)?"none":void 0,I=g?{in:c,onEnter:T,onExited:C}:void 0;return z.jsx(T$,{disablePortal:s,container:M,children:z.jsx(nre,U({anchorEl:n,direction:o,disablePortal:s,modifiers:u,ref:r,open:g?!b:c,placement:f,popperOptions:d,popperRef:h,slotProps:y,slots:x},S,{style:U({position:"fixed",top:0,left:0,display:k},v),TransitionProps:I,children:i}))})});function are(e){const t=ln(e);return t.body===e?xo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Qp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wL(e){return parseInt(xo(e).getComputedStyle(e).paddingRight,10)||0}function ore(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function CL(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!ore(o);s&&l&&Qp(o,i)})}function z_(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function sre(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(are(n)){const o=zV(ln(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${wL(n)+o}px`;const s=ln(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${wL(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=ln(n).body;else{const o=n.parentElement,s=xo(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function lre(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class ure{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Qp(t.modalRef,!1);const i=lre(r);CL(r,t.mount,t.modalRef,i,!0);const a=z_(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=z_(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=sre(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=z_(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Qp(t.modalRef,r),CL(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&Qp(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function cre(e){return typeof e=="function"?e():e}function fre(e){return e?e.props.hasOwnProperty("in"):!1}const dre=new ure;function hre(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=dre,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,d=$.useRef({}),h=$.useRef(null),v=$.useRef(null),g=Rr(v,f),[y,x]=$.useState(!c),S=fre(l);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const w=()=>ln(h.current),T=()=>(d.current.modalRef=v.current,d.current.mount=h.current,d.current),C=()=>{i.mount(T(),{disableScrollLock:n}),v.current&&(v.current.scrollTop=0)},M=Ca(()=>{const G=cre(t)||w().body;i.add(T(),G),v.current&&C()}),k=$.useCallback(()=>i.isTopModal(T()),[i]),I=Ca(G=>{h.current=G,G&&(c&&k()?C():v.current&&Qp(v.current,b))}),P=$.useCallback(()=>{i.remove(T(),b)},[b,i]);$.useEffect(()=>()=>{P()},[P]),$.useEffect(()=>{c?M():(!S||!a)&&P()},[c,P,S,a,M]);const R=G=>q=>{var H;(H=G.onKeyDown)==null||H.call(G,q),!(q.key!=="Escape"||!k())&&(r||(q.stopPropagation(),u&&u(q,"escapeKeyDown")))},L=G=>q=>{var H;(H=G.onClick)==null||H.call(G,q),q.target===q.currentTarget&&u&&u(q,"backdropClick")};return{getRootProps:(G={})=>{const q=v$(e);delete q.onTransitionEnter,delete q.onTransitionExited;const H=U({},q,G);return U({role:"presentation"},H,{onKeyDown:R(H),ref:g})},getBackdropProps:(G={})=>{const q=G;return U({"aria-hidden":!0},q,{onClick:L(q),open:c})},getTransitionProps:()=>{const G=()=>{x(!1),o&&o()},q=()=>{x(!0),s&&s(),a&&P()};return{onEnter:$T(G,l==null?void 0:l.props.onEnter),onExited:$T(q,l==null?void 0:l.props.onExited)}},rootRef:g,portalRef:I,isTopModal:k,exited:y,hasTransition:S}}const pre=["onChange","maxRows","minRows","style","value"];function dy(e){return parseInt(e,10)||0}const vre={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function TL(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const gre=$.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=Ee(t,pre),{current:u}=$.useRef(s!=null),c=$.useRef(null),f=Rr(r,c),d=$.useRef(null),h=$.useRef(0),[v,g]=$.useState({outerHeightStyle:0}),y=$.useCallback(()=>{const T=c.current,M=xo(T).getComputedStyle(T);if(M.width==="0px")return{outerHeightStyle:0};const k=d.current;k.style.width=M.width,k.value=T.value||t.placeholder||"x",k.value.slice(-1)===`
|
141
|
+
`&&(k.value+=" ");const I=M.boxSizing,P=dy(M.paddingBottom)+dy(M.paddingTop),R=dy(M.borderBottomWidth)+dy(M.borderTopWidth),L=k.scrollHeight;k.value="x";const O=k.scrollHeight;let N=L;a&&(N=Math.max(Number(a)*O,N)),i&&(N=Math.min(Number(i)*O,N)),N=Math.max(N,O);const B=N+(I==="border-box"?P+R:0),G=Math.abs(N-L)<=1;return{outerHeightStyle:B,overflow:G}},[i,a,t.placeholder]),x=(T,C)=>{const{outerHeightStyle:M,overflow:k}=C;return h.current<20&&(M>0&&Math.abs((T.outerHeightStyle||0)-M)>1||T.overflow!==k)?(h.current+=1,{overflow:k,outerHeightStyle:M}):T},S=$.useCallback(()=>{const T=y();TL(T)||g(C=>x(C,T))},[y]),b=()=>{const T=y();TL(T)||RM.flushSync(()=>{g(C=>x(C,T))})};$.useEffect(()=>{const T=()=>{h.current=0,c.current&&b()},C=pg(()=>{h.current=0,c.current&&b()});let M;const k=c.current,I=xo(k);return I.addEventListener("resize",C),typeof ResizeObserver<"u"&&(M=new ResizeObserver(T),M.observe(k)),()=>{C.clear(),I.removeEventListener("resize",C),M&&M.disconnect()}}),Da(()=>{S()}),$.useEffect(()=>{h.current=0},[s]);const w=T=>{h.current=0,u||S(),n&&n(T)};return z.jsxs($.Fragment,{children:[z.jsx("textarea",U({value:s,onChange:w,ref:f,rows:a,style:U({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},o)},l)),z.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:U({},vre.shadow,o,{paddingTop:0,paddingBottom:0})})]})}),mre=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],yre=we(ire,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),A$=$.forwardRef(function(t,r){var n;const i=MM(),a=ut({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:v,placement:g,popperOptions:y,popperRef:x,transition:S,slots:b,slotProps:w}=a,T=Ee(a,mre),C=(n=b==null?void 0:b.root)!=null?n:l==null?void 0:l.Root,M=U({anchorEl:o,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:v,placement:g,popperOptions:y,popperRef:x,transition:S},T);return z.jsx(yre,U({as:s,direction:i==null?void 0:i.direction,slots:{root:C},slotProps:w??u},M,{ref:r}))});function kl({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const Ox=$.createContext(void 0);function Io(){return $.useContext(Ox)}function M$(e){return z.jsx(ZK,U({},e,{defaultTheme:Rx,themeId:oc}))}function AL(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function l1(e,t=!1){return e&&(AL(e.value)&&e.value!==""||t&&AL(e.defaultValue)&&e.defaultValue!=="")}function xre(e){return e.startAdornment}function Sre(e){return nt("MuiInputBase",e)}const hd=lt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),bre=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Nx=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Oe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},zx=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},_re=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:v}=e,g={root:["root",`color${Oe(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${Oe(d)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",v==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return st(g,Sre,t)},Bx=we("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Nx})(({theme:e,ownerState:t})=>U({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${hd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&U({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Fx=we("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=U({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return U({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${hd.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${hd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),wre=z.jsx(M$,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),jM=$.forwardRef(function(t,r){var n;const i=ut({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:v,fullWidth:g=!1,id:y,inputComponent:x="input",inputProps:S={},inputRef:b,maxRows:w,minRows:T,multiline:C=!1,name:M,onBlur:k,onChange:I,onClick:P,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:N,readOnly:B,renderSuffix:G,rows:q,slotProps:H={},slots:X={},startAdornment:F,type:Y="text",value:Z}=i,j=Ee(i,bre),re=S.value!=null?S.value:Z,{current:ce}=$.useRef(re!=null),te=$.useRef(),pe=$.useCallback(Ne=>{},[]),ae=Rr(te,b,S.ref,pe),[he,ve]=$.useState(!1),fe=Io(),ge=kl({props:i,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=fe?fe.focused:he,$.useEffect(()=>{!fe&&d&&he&&(ve(!1),k&&k())},[fe,d,he,k]);const De=fe&&fe.onFilled,Ie=fe&&fe.onEmpty,$e=$.useCallback(Ne=>{l1(Ne)?De&&De():Ie&&Ie()},[De,Ie]);Da(()=>{ce&&$e({value:re})},[re,$e,ce]);const dt=Ne=>{if(ge.disabled){Ne.stopPropagation();return}R&&R(Ne),S.onFocus&&S.onFocus(Ne),fe&&fe.onFocus?fe.onFocus(Ne):ve(!0)},ct=Ne=>{k&&k(Ne),S.onBlur&&S.onBlur(Ne),fe&&fe.onBlur?fe.onBlur(Ne):ve(!1)},bt=(Ne,...Me)=>{if(!ce){const Pt=Ne.target||te.current;if(Pt==null)throw new Error(gl(1));$e({value:Pt.value})}S.onChange&&S.onChange(Ne,...Me),I&&I(Ne,...Me)};$.useEffect(()=>{$e(te.current)},[]);const At=Ne=>{te.current&&Ne.currentTarget===Ne.target&&te.current.focus(),P&&P(Ne)};let _t=x,it=S;C&&_t==="input"&&(q?it=U({type:void 0,minRows:q,maxRows:q},it):it=U({type:void 0,maxRows:w,minRows:T},it),_t=gre);const tr=Ne=>{$e(Ne.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};$.useEffect(()=>{fe&&fe.setAdornedStart(!!F)},[fe,F]);const $t=U({},i,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:v,error:ge.error,focused:ge.focused,formControl:fe,fullWidth:g,hiddenLabel:ge.hiddenLabel,multiline:C,size:ge.size,startAdornment:F,type:Y}),It=_re($t),le=X.root||u.Root||Bx,ye=H.root||c.root||{},je=X.input||u.Input||Fx;return it=U({},it,(n=H.input)!=null?n:c.input),z.jsxs($.Fragment,{children:[!h&&wre,z.jsxs(le,U({},ye,!ld(le)&&{ownerState:U({},$t,ye.ownerState)},{ref:r,onClick:At},j,{className:Le(It.root,ye.className,l,B&&"MuiInputBase-readOnly"),children:[F,z.jsx(Ox.Provider,{value:null,children:z.jsx(je,U({ownerState:$t,"aria-invalid":ge.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:ge.disabled,id:y,onAnimationStart:tr,name:M,placeholder:N,readOnly:B,required:ge.required,rows:q,value:re,onKeyDown:L,onKeyUp:O,type:Y},it,!ld(je)&&{as:_t,ownerState:U({},$t,it.ownerState)},{ref:ae,className:Le(It.input,it.className,B&&"MuiInputBase-readOnly"),onBlur:ct,onChange:bt,onFocus:dt}))}),v,G?G(U({},ge,{startAdornment:F})):null]}))]})});function Cre(e){return nt("MuiInput",e)}const Vh=U({},hd,lt("MuiInput",["root","underline","input"]));function Tre(e){return nt("MuiOutlinedInput",e)}const Ns=U({},hd,lt("MuiOutlinedInput",["root","notchedOutline","input"]));function Are(e){return nt("MuiFilledInput",e)}const Xl=U({},hd,lt("MuiFilledInput",["root","underline","input"])),Mre=ci(z.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),kre=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ire={entering:{opacity:1},entered:{opacity:1}},Pre=$.forwardRef(function(t,r){const n=mc(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:h,onExited:v,onExiting:g,style:y,timeout:x=i,TransitionComponent:S=Na}=t,b=Ee(t,kre),w=$.useRef(null),T=Rr(w,s.ref,r),C=N=>B=>{if(N){const G=w.current;B===void 0?N(G):N(G,B)}},M=C(d),k=C((N,B)=>{d$(N);const G=sd({style:y,timeout:x,easing:l},{mode:"enter"});N.style.webkitTransition=n.transitions.create("opacity",G),N.style.transition=n.transitions.create("opacity",G),c&&c(N,B)}),I=C(f),P=C(g),R=C(N=>{const B=sd({style:y,timeout:x,easing:l},{mode:"exit"});N.style.webkitTransition=n.transitions.create("opacity",B),N.style.transition=n.transitions.create("opacity",B),h&&h(N)}),L=C(v),O=N=>{a&&a(w.current,N)};return z.jsx(S,U({appear:o,in:u,nodeRef:w,onEnter:k,onEntered:I,onEntering:M,onExit:R,onExited:L,onExiting:P,addEndListener:O,timeout:x},b,{children:(N,B)=>$.cloneElement(s,U({style:U({opacity:0,visibility:N==="exited"&&!u?"hidden":void 0},Ire[N],y,s.props.style),ref:T},B))}))});function Dre(e){return nt("MuiBackdrop",e)}lt("MuiBackdrop",["root","invisible"]);const Rre=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ere=e=>{const{classes:t,invisible:r}=e;return st({root:["root",r&&"invisible"]},Dre,t)},Lre=we("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>U({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"},e.invisible&&{backgroundColor:"transparent"})),Ore=$.forwardRef(function(t,r){var n,i,a;const o=ut({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:v={},slots:g={},TransitionComponent:y=Pre,transitionDuration:x}=o,S=Ee(o,Rre),b=U({},o,{component:u,invisible:d}),w=Ere(b),T=(n=v.root)!=null?n:f.root;return z.jsx(y,U({in:h,timeout:x},S,{children:z.jsx(Lre,U({"aria-hidden":!0},T,{as:(i=(a=g.root)!=null?a:c.Root)!=null?i:u,className:Le(w.root,l,T==null?void 0:T.className),ownerState:U({},b,T==null?void 0:T.ownerState),classes:w,ref:r,children:s}))}))}),Nre=DM(),ir=eQ({themeId:oc,defaultTheme:Nre,defaultClassName:"MuiBox-root",generateClassName:gM.generate});function zre(e){return nt("MuiButton",e)}const hy=lt("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Bre=$.createContext({}),Fre=$.createContext(void 0),Vre=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$re=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Oe(t)}`,`size${Oe(i)}`,`${a}Size${Oe(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Oe(i)}`],endIcon:["endIcon",`iconSize${Oe(i)}`]},l=st(s,zre,o);return U({},o,l)},k$=e=>U({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Gre=we(yc,{shouldForwardProp:e=>ko(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Oe(r.color)}`],t[`size${Oe(r.size)}`],t[`${r.variant}Size${Oe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return U({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":U({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":U({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${hy.focusVisible}`]:U({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${hy.disabled}`]:U({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Sr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${hy.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hy.disabled}`]:{boxShadow:"none"}}),Hre=we("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Oe(r.size)}`]]}})(({ownerState:e})=>U({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},k$(e))),Wre=we("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Oe(r.size)}`]]}})(({ownerState:e})=>U({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},k$(e))),bo=$.forwardRef(function(t,r){const n=$.useContext(Bre),i=$.useContext(Fre),a=vM(n,t),o=ut({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:v,focusVisibleClassName:g,fullWidth:y=!1,size:x="medium",startIcon:S,type:b,variant:w="text"}=o,T=Ee(o,Vre),C=U({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:y,size:x,type:b,variant:w}),M=$re(C),k=S&&z.jsx(Hre,{className:M.startIcon,ownerState:C,children:S}),I=v&&z.jsx(Wre,{className:M.endIcon,ownerState:C,children:v}),P=i||"";return z.jsxs(Gre,U({ownerState:C,className:Le(n.className,M.root,c,P),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:Le(M.focusVisible,g),ref:r,type:b},T,{classes:M,children:[k,s,I]}))});function jre(e){return nt("PrivateSwitchBase",e)}lt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Ure=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Yre=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${Oe(i)}`],input:["input"]};return st(a,jre,t)},qre=we(yc)(({ownerState:e})=>U({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Xre=we("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),I$=$.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:o,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:d,inputProps:h,inputRef:v,name:g,onBlur:y,onChange:x,onFocus:S,readOnly:b,required:w=!1,tabIndex:T,type:C,value:M}=t,k=Ee(t,Ure),[I,P]=id({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),R=Io(),L=X=>{S&&S(X),R&&R.onFocus&&R.onFocus(X)},O=X=>{y&&y(X),R&&R.onBlur&&R.onBlur(X)},N=X=>{if(X.nativeEvent.defaultPrevented)return;const F=X.target.checked;P(F),x&&x(X,F)};let B=l;R&&typeof B>"u"&&(B=R.disabled);const G=C==="checkbox"||C==="radio",q=U({},t,{checked:I,disabled:B,disableFocusRipple:u,edge:c}),H=Yre(q);return z.jsxs(qre,U({component:"span",className:Le(H.root,o),centerRipple:!0,focusRipple:!u,disabled:B,tabIndex:null,role:void 0,onFocus:L,onBlur:O,ownerState:q,ref:r},k,{children:[z.jsx(Xre,U({autoFocus:n,checked:i,defaultChecked:s,className:H.input,disabled:B,id:G?d:void 0,name:g,onChange:N,readOnly:b,ref:v,required:w,ownerState:q,tabIndex:T,type:C},C==="checkbox"&&M===void 0?{}:{value:M},h)),I?a:f]}))}),Zre=ci(z.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Kre=ci(z.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Qre=ci(z.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Jre(e){return nt("MuiCheckbox",e)}const B_=lt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ene=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],tne=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${Oe(n)}`,`size${Oe(i)}`]},o=st(a,Jre,t);return U({},t,o)},rne=we(I$,{shouldForwardProp:e=>ko(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,r.color!=="default"&&t[`color${Oe(r.color)}`]]}})(({theme:e,ownerState:t})=>U({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${B_.checked}, &.${B_.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${B_.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),nne=z.jsx(Kre,{}),ine=z.jsx(Zre,{}),ane=z.jsx(Qre,{}),JT=$.forwardRef(function(t,r){var n,i;const a=ut({props:t,name:"MuiCheckbox"}),{checkedIcon:o=nne,color:s="primary",icon:l=ine,indeterminate:u=!1,indeterminateIcon:c=ane,inputProps:f,size:d="medium",className:h}=a,v=Ee(a,ene),g=u?c:l,y=u?c:o,x=U({},a,{color:s,indeterminate:u,size:d}),S=tne(x);return z.jsx(rne,U({type:"checkbox",inputProps:U({"data-indeterminate":u},f),icon:$.cloneElement(g,{fontSize:(n=g.props.fontSize)!=null?n:d}),checkedIcon:$.cloneElement(y,{fontSize:(i=y.props.fontSize)!=null?i:d}),ownerState:x,ref:r,className:Le(S.root,h)},v,{classes:S}))}),bg=TQ({createStyledComponent:we("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Oe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ut({props:e,name:"MuiContainer"})}),one=(e,t)=>U({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),sne=e=>U({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}}),lne=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{var l;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=U({html:one(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:U({margin:0},sne(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const a=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function P$(e){const t=ut({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return z.jsxs($.Fragment,{children:[z.jsx(M$,{styles:i=>lne(i,n)}),r]})}function une(e){return nt("MuiModal",e)}lt("MuiModal",["root","hidden","backdrop"]);const cne=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],fne=e=>{const{open:t,exited:r,classes:n}=e;return st({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},une,n)},dne=we("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>U({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),hne=we(Ore,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),D$=$.forwardRef(function(t,r){var n,i,a,o,s,l;const u=ut({name:"MuiModal",props:t}),{BackdropComponent:c=hne,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:v,container:g,component:y,components:x={},componentsProps:S={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:T=!1,disablePortal:C=!1,disableRestoreFocus:M=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:P=!1,onBackdropClick:R,open:L,slotProps:O,slots:N}=u,B=Ee(u,cne),G=U({},u,{closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:T,disablePortal:C,disableRestoreFocus:M,disableScrollLock:k,hideBackdrop:I,keepMounted:P}),{getRootProps:q,getBackdropProps:H,getTransitionProps:X,portalRef:F,isTopModal:Y,exited:Z,hasTransition:j}=hre(U({},G,{rootRef:r})),re=U({},G,{exited:Z}),ce=fne(re),te={};if(v.props.tabIndex===void 0&&(te.tabIndex="-1"),j){const{onEnter:De,onExited:Ie}=X();te.onEnter=De,te.onExited=Ie}const pe=(n=(i=N==null?void 0:N.root)!=null?i:x.Root)!=null?n:dne,ae=(a=(o=N==null?void 0:N.backdrop)!=null?o:x.Backdrop)!=null?a:c,he=(s=O==null?void 0:O.root)!=null?s:S.root,ve=(l=O==null?void 0:O.backdrop)!=null?l:S.backdrop,fe=Ea({elementType:pe,externalSlotProps:he,externalForwardedProps:B,getSlotProps:q,additionalProps:{ref:r,as:y},ownerState:re,className:Le(d,he==null?void 0:he.className,ce==null?void 0:ce.root,!re.open&&re.exited&&(ce==null?void 0:ce.hidden))}),ge=Ea({elementType:ae,externalSlotProps:ve,additionalProps:f,getSlotProps:De=>H(U({},De,{onClick:Ie=>{R&&R(Ie),De!=null&&De.onClick&&De.onClick(Ie)}})),className:Le(ve==null?void 0:ve.className,f==null?void 0:f.className,ce==null?void 0:ce.backdrop),ownerState:re});return!P&&!L&&(!j||Z)?null:z.jsx(T$,{ref:F,container:g,disablePortal:C,children:z.jsxs(pe,U({},fe,{children:[!I&&c?z.jsx(ae,U({},ge)):null,z.jsx(Gee,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:M,isEnabled:Y,open:L,children:$.cloneElement(v,te)})]}))})});function pne(e){return nt("MuiDivider",e)}lt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const vne=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],gne=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return st({root:["root",t&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},pne,n)},mne=we("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>U({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Sr(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>U({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>U({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>U({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>U({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),yne=we("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>U({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Pf=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=n,v=Ee(n,vne),g=U({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),y=gne(g);return z.jsx(mne,U({as:s,className:Le(y.root,o),role:f,ref:r,ownerState:g},v,{children:a?z.jsx(yne,{className:y.wrapper,ownerState:g,children:a}):null}))});Pf.muiSkipListHighlight=!0;const xne=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Sne=e=>{const{classes:t,disableUnderline:r}=e,i=st({root:["root",!r&&"underline"],input:["input"]},Are,t);return U({},t,i)},bne=we(Bx,{shouldForwardProp:e=>ko(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Nx(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return U({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Xl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Xl.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xl.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xl.disabled}, .${Xl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xl.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&U({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),_ne=we(Fx,{name:"MuiFilledInput",slot:"Input",overridesResolver:zx})(({theme:e,ownerState:t})=>U({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),UM=$.forwardRef(function(t,r){var n,i,a,o;const s=ut({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:v={},type:g="text"}=s,y=Ee(s,xne),x=U({},s,{fullWidth:c,inputComponent:f,multiline:d,type:g}),S=Sne(s),b={root:{ownerState:x},input:{ownerState:x}},w=h??u?ni(h??u,b):b,T=(n=(i=v.root)!=null?i:l.Root)!=null?n:bne,C=(a=(o=v.input)!=null?o:l.Input)!=null?a:_ne;return z.jsx(jM,U({slots:{root:T,input:C},componentsProps:w,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:g},y,{classes:S}))});UM.muiName="Input";function wne(e){return nt("MuiFormControl",e)}lt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Cne=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Tne=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${Oe(r)}`,n&&"fullWidth"]};return st(i,wne,t)},Ane=we("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>U({},t.root,t[`margin${Oe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>U({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),YM=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiFormControl"}),{children:i,className:a,color:o="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:v=!1,size:g="medium",variant:y="outlined"}=n,x=Ee(n,Cne),S=U({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:v,size:g,variant:y}),b=Tne(S),[w,T]=$.useState(()=>{let O=!1;return i&&$.Children.forEach(i,N=>{if(!Yp(N,["Input","Select"]))return;const B=Yp(N,["Select"])?N.props.input:N;B&&xre(B.props)&&(O=!0)}),O}),[C,M]=$.useState(()=>{let O=!1;return i&&$.Children.forEach(i,N=>{Yp(N,["Input","Select"])&&(l1(N.props,!0)||l1(N.props.inputProps,!0))&&(O=!0)}),O}),[k,I]=$.useState(!1);l&&k&&I(!1);const P=c!==void 0&&!l?c:k;let R;const L=$.useMemo(()=>({adornedStart:w,setAdornedStart:T,color:o,disabled:l,error:u,filled:C,focused:P,fullWidth:f,hiddenLabel:d,size:g,onBlur:()=>{I(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{I(!0)},registerEffect:R,required:v,variant:y}),[w,o,l,u,C,P,f,d,R,v,g,y]);return z.jsx(Ox.Provider,{value:L,children:z.jsx(Ane,U({as:s,ownerState:S,className:Le(b.root,a),ref:r},x,{children:i}))})}),R$=EQ({createStyledComponent:we("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ut({props:e,name:"MuiStack"})});function Mne(e){return nt("MuiFormControlLabel",e)}const Dp=lt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),kne=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ine=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,o={root:["root",r&&"disabled",`labelPlacement${Oe(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return st(o,Mne,t)},Pne=we("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Dp.label}`]:t.label},t.root,t[`labelPlacement${Oe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>U({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Dp.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Dp.label}`]:{[`&.${Dp.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Dne=we("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Dp.error}`]:{color:(e.vars||e).palette.error.main}})),E$=$.forwardRef(function(t,r){var n,i;const a=ut({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:d="end",required:h,slotProps:v={}}=a,g=Ee(a,kne),y=Io(),x=(n=u??l.props.disabled)!=null?n:y==null?void 0:y.disabled,S=h??l.props.required,b={disabled:x,required:S};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(b[I]=a[I])});const w=kl({props:a,muiFormControl:y,states:["error"]}),T=U({},a,{disabled:x,labelPlacement:d,required:S,error:w.error}),C=Ine(T),M=(i=v.typography)!=null?i:s.typography;let k=f;return k!=null&&k.type!==zt&&!c&&(k=z.jsx(zt,U({component:"span"},M,{className:Le(C.label,M==null?void 0:M.className),children:k}))),z.jsxs(Pne,U({className:Le(C.root,o),ownerState:T,ref:r},g,{children:[$.cloneElement(l,b),S?z.jsxs(R$,{direction:"row",alignItems:"center",children:[k,z.jsxs(Dne,{ownerState:T,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):k]}))});function Rne(e){return nt("MuiFormGroup",e)}lt("MuiFormGroup",["root","row","error"]);const Ene=["className","row"],Lne=e=>{const{classes:t,row:r,error:n}=e;return st({root:["root",r&&"row",n&&"error"]},Rne,t)},One=we("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>U({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),L$=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=n,o=Ee(n,Ene),s=Io(),l=kl({props:n,muiFormControl:s,states:["error"]}),u=U({},n,{row:a,error:l.error}),c=Lne(u);return z.jsx(One,U({className:Le(c.root,i),ownerState:u,ref:r},o))});function Nne(e){return nt("MuiFormHelperText",e)}const ML=lt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var kL;const zne=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Bne=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:o,focused:s,required:l}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${Oe(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return st(u,Nne,t)},Fne=we("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Oe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>U({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ML.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ML.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Vne=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=Ee(n,zne),l=Io(),u=kl({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=U({},n,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Bne(c);return z.jsx(Fne,U({as:o,ownerState:c,className:Le(f.root,a),ref:r},s,{children:i===" "?kL||(kL=z.jsx("span",{className:"notranslate",children:""})):i}))});function $ne(e){return nt("MuiFormLabel",e)}const Jp=lt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Gne=["children","className","color","component","disabled","error","filled","focused","required"],Hne=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${Oe(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return st(l,$ne,t)},Wne=we("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>U({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>U({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Jp.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Jp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Jp.error}`]:{color:(e.vars||e).palette.error.main}})),jne=we("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Jp.error}`]:{color:(e.vars||e).palette.error.main}})),Une=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=Ee(n,Gne),l=Io(),u=kl({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=U({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Hne(c);return z.jsxs(Wne,U({as:o,ownerState:c,className:Le(f.root,a),ref:r},s,{children:[i,u.required&&z.jsxs(jne,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Yne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function e2(e){return`scale(${e}, ${e**2})`}const qne={entering:{opacity:1,transform:e2(1)},entered:{opacity:1,transform:"none"}},F_=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),u1=$.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:v,timeout:g="auto",TransitionComponent:y=Na}=t,x=Ee(t,Yne),S=$.useRef(),b=$.useRef(),w=mc(),T=$.useRef(null),C=Rr(T,a.ref,r),M=B=>G=>{if(B){const q=T.current;G===void 0?B(q):B(q,G)}},k=M(c),I=M((B,G)=>{d$(B);const{duration:q,delay:H,easing:X}=sd({style:v,timeout:g,easing:o},{mode:"enter"});let F;g==="auto"?(F=w.transitions.getAutoHeightDuration(B.clientHeight),b.current=F):F=q,B.style.transition=[w.transitions.create("opacity",{duration:F,delay:H}),w.transitions.create("transform",{duration:F_?F:F*.666,delay:H,easing:X})].join(","),l&&l(B,G)}),P=M(u),R=M(h),L=M(B=>{const{duration:G,delay:q,easing:H}=sd({style:v,timeout:g,easing:o},{mode:"exit"});let X;g==="auto"?(X=w.transitions.getAutoHeightDuration(B.clientHeight),b.current=X):X=G,B.style.transition=[w.transitions.create("opacity",{duration:X,delay:q}),w.transitions.create("transform",{duration:F_?X:X*.666,delay:F_?q:q||X*.333,easing:H})].join(","),B.style.opacity=0,B.style.transform=e2(.75),f&&f(B)}),O=M(d),N=B=>{g==="auto"&&(S.current=setTimeout(B,b.current||0)),n&&n(T.current,B)};return $.useEffect(()=>()=>{clearTimeout(S.current)},[]),z.jsx(y,U({appear:i,in:s,nodeRef:T,onEnter:I,onEntered:P,onEntering:k,onExit:L,onExited:O,onExiting:R,addEndListener:N,timeout:g==="auto"?null:g},x,{children:(B,G)=>$.cloneElement(a,U({style:U({opacity:0,transform:e2(.75),visibility:B==="exited"&&!s?"hidden":void 0},qne[B],v,a.props.style),ref:C},G))}))});u1.muiSupportAuto=!0;const Xne=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Zne=e=>{const{classes:t,disableUnderline:r}=e,i=st({root:["root",!r&&"underline"],input:["input"]},Cre,t);return U({},t,i)},Kne=we(Bx,{shouldForwardProp:e=>ko(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Nx(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),U({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Vh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Vh.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Vh.disabled}, .${Vh.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Vh.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Qne=we(Fx,{name:"MuiInput",slot:"Input",overridesResolver:zx})({}),qM=$.forwardRef(function(t,r){var n,i,a,o;const s=ut({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:v,slots:g={},type:y="text"}=s,x=Ee(s,Xne),S=Zne(s),w={root:{ownerState:{disableUnderline:l}}},T=v??c?ni(v??c,w):w,C=(n=(i=g.root)!=null?i:u.Root)!=null?n:Kne,M=(a=(o=g.input)!=null?o:u.Input)!=null?a:Qne;return z.jsx(jM,U({slots:{root:C,input:M},slotProps:T,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:y},x,{classes:S}))});qM.muiName="Input";function Jne(e){return nt("MuiInputAdornment",e)}const IL=lt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var PL;const eie=["children","className","component","disablePointerEvents","disableTypography","position","variant"],tie=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Oe(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},rie=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:a,variant:o}=e,s={root:["root",r&&"disablePointerEvents",i&&`position${Oe(i)}`,o,n&&"hiddenLabel",a&&`size${Oe(a)}`]};return st(s,Jne,t)},nie=we("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:tie})(({theme:e,ownerState:t})=>U({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${IL.positionStart}&:not(.${IL.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),iie=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:o="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=n,f=Ee(n,eie),d=Io()||{};let h=c;c&&d.variant,d&&!h&&(h=d.variant);const v=U({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:s,position:u,variant:h}),g=rie(v);return z.jsx(Ox.Provider,{value:null,children:z.jsx(nie,U({as:o,ownerState:v,className:Le(g.root,a),ref:r},f,{children:typeof i=="string"&&!l?z.jsx(zt,{color:"text.secondary",children:i}):z.jsxs($.Fragment,{children:[u==="start"?PL||(PL=z.jsx("span",{className:"notranslate",children:""})):null,i]})}))})});function aie(e){return nt("MuiInputLabel",e)}lt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const oie=["disableAnimation","margin","shrink","variant","className"],sie=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:o,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="normal"&&`size${Oe(n)}`,o],asterisk:[s&&"asterisk"]},u=st(l,aie,t);return U({},t,u)},lie=we(Une,{shouldForwardProp:e=>ko(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Jp.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})(({theme:e,ownerState:t})=>U({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&U({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&U({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&U({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Vx=$.forwardRef(function(t,r){const n=ut({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=Ee(n,oie),l=Io();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=kl({props:n,muiFormControl:l,states:["size","variant","required"]}),f=U({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=sie(f);return z.jsx(lie,U({"data-shrink":u,ownerState:f,ref:r,className:Le(d.root,o)},s,{classes:d}))});function uie(e){return nt("MuiLink",e)}const cie=lt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),O$={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},fie=e=>O$[e]||e,die=({theme:e,ownerState:t})=>{const r=fie(t.color),n=od(e,`palette.${r}`,!1)||t.color,i=od(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Sr(n,.4)},hie=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],pie=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Oe(i)}`,r==="button"&&"button",n&&"focusVisible"]};return st(a,uie,t)},vie=we(zt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Oe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>U({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&U({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:die({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{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"},[`&.${cie.focusVisible}`]:{outline:"auto"}})),an=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiLink"}),{className:i,color:a="primary",component:o="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:d}=n,h=Ee(n,hie),{isFocusVisibleRef:v,onBlur:g,onFocus:y,ref:x}=yx(),[S,b]=$.useState(!1),w=Rr(r,x),T=I=>{g(I),v.current===!1&&b(!1),s&&s(I)},C=I=>{y(I),v.current===!0&&b(!0),l&&l(I)},M=U({},n,{color:a,component:o,focusVisible:S,underline:c,variant:f}),k=pie(M);return z.jsx(vie,U({color:a,className:Le(k.root,i),classes:u,component:o,onBlur:T,onFocus:C,ref:w,ownerState:M,variant:f,sx:[...Object.keys(O$).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),ev=$.createContext({});function gie(e){return nt("MuiList",e)}lt("MuiList",["root","padding","dense","subheader"]);const mie=["children","className","component","dense","disablePadding","subheader"],yie=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return st({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},gie,t)},xie=we("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>U({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),N$=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=Ee(n,mie),f=$.useMemo(()=>({dense:s}),[s]),d=U({},n,{component:o,dense:s,disablePadding:l}),h=yie(d);return z.jsx(ev.Provider,{value:f,children:z.jsxs(xie,U({as:o,className:Le(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})});function Sie(e){return nt("MuiListItem",e)}const Df=lt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),bie=lt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function _ie(e){return nt("MuiListItemSecondaryAction",e)}lt("MuiListItemSecondaryAction",["root","disableGutters"]);const wie=["className"],Cie=e=>{const{disableGutters:t,classes:r}=e;return st({root:["root",t&&"disableGutters"]},_ie,r)},Tie=we("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>U({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),z$=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=Ee(n,wie),o=$.useContext(ev),s=U({},n,{disableGutters:o.disableGutters}),l=Cie(s);return z.jsx(Tie,U({className:Le(l.root,i),ownerState:s,ref:r},a))});z$.muiName="ListItemSecondaryAction";const Aie=["className"],Mie=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],kie=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},Iie=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return st({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Sie,n)},Pie=we("div",{name:"MuiListItem",slot:"Root",overridesResolver:kie})(({theme:e,ownerState:t})=>U({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&U({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${bie.root}`]:{paddingRight:48}},{[`&.${Df.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Df.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Df.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Df.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Df.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Die=we("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),nf=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:o=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:v=!1,disabled:g=!1,disableGutters:y=!1,disablePadding:x=!1,divider:S=!1,focusVisibleClassName:b,secondaryAction:w,selected:T=!1,slotProps:C={},slots:M={}}=n,k=Ee(n.ContainerProps,Aie),I=Ee(n,Mie),P=$.useContext(ev),R=$.useMemo(()=>({dense:v||P.dense||!1,alignItems:i,disableGutters:y}),[i,P.dense,v,y]),L=$.useRef(null);Da(()=>{a&&L.current&&L.current.focus()},[a]);const O=$.Children.toArray(s),N=O.length&&Yp(O[O.length-1],["ListItemSecondaryAction"]),B=U({},n,{alignItems:i,autoFocus:a,button:o,dense:R.dense,disabled:g,disableGutters:y,disablePadding:x,divider:S,hasSecondaryAction:N,selected:T}),G=Iie(B),q=Rr(L,r),H=M.root||c.Root||Pie,X=C.root||f.root||{},F=U({className:Le(G.root,X.className,l),disabled:g},I);let Y=u||"li";return o&&(F.component=u||"div",F.focusVisibleClassName=Le(Df.focusVisible,b),Y=yc),N?(Y=!F.component&&!u?"div":Y,d==="li"&&(Y==="li"?Y="div":F.component==="li"&&(F.component="div")),z.jsx(ev.Provider,{value:R,children:z.jsxs(Die,U({as:d,className:Le(G.container,h),ref:q,ownerState:B},k,{children:[z.jsx(H,U({},X,!ld(H)&&{as:Y,ownerState:U({},B,X.ownerState)},F,{children:O})),O.pop()]}))})):z.jsx(ev.Provider,{value:R,children:z.jsxs(H,U({},X,{as:Y,ref:q},!ld(H)&&{ownerState:U({},B,X.ownerState)},F,{children:[O,w&&z.jsx(z$,{children:w})]}))})}),Rie=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function V_(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function DL(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function B$(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function $h(e,t,r,n,i,a){let o=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!B$(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Eie=$.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=Ee(t,Rie),h=$.useRef(null),v=$.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Da(()=>{i&&h.current.focus()},[i]),$.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,w)=>{const T=!h.current.style.width;if(b.clientHeight<h.current.clientHeight&&T){const C=`${zV(ln(b))}px`;h.current.style[w.direction==="rtl"?"paddingLeft":"paddingRight"]=C,h.current.style.width=`calc(100% + ${C})`}return h.current}}),[]);const g=b=>{const w=h.current,T=b.key,C=ln(w).activeElement;if(T==="ArrowDown")b.preventDefault(),$h(w,C,u,l,V_);else if(T==="ArrowUp")b.preventDefault(),$h(w,C,u,l,DL);else if(T==="Home")b.preventDefault(),$h(w,null,u,l,V_);else if(T==="End")b.preventDefault(),$h(w,null,u,l,DL);else if(T.length===1){const M=v.current,k=T.toLowerCase(),I=performance.now();M.keys.length>0&&(I-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&k!==M.keys[0]&&(M.repeating=!1)),M.lastTime=I,M.keys.push(k);const P=C&&!M.repeating&&B$(C,M);M.previousKeyMatched&&(P||$h(w,C,!1,l,V_,M))?b.preventDefault():M.previousKeyMatched=!1}c&&c(b)},y=Rr(h,r);let x=-1;$.Children.forEach(o,(b,w)=>{if(!$.isValidElement(b)){x===w&&(x+=1,x>=o.length&&(x=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||x===-1)&&(x=w),x===w&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(x+=1,x>=o.length&&(x=-1))});const S=$.Children.map(o,(b,w)=>{if(w===x){const T={};return a&&(T.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),$.cloneElement(b,T)}return b});return z.jsx(N$,U({role:"menu",ref:y,className:s,onKeyDown:g,tabIndex:i?0:-1},d,{children:S}))});function Lie(e){return nt("MuiPopover",e)}lt("MuiPopover",["root","paper"]);const Oie=["onEntering"],Nie=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],zie=["slotProps"];function RL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function EL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function LL(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function $_(e){return typeof e=="function"?e():e}const Bie=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"]},Lie,t)},Fie=we(D$,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),F$=we(Al,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),V$=$.forwardRef(function(t,r){var n,i,a;const o=ut({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:v,elevation:g=8,marginThreshold:y=16,open:x,PaperProps:S={},slots:b,slotProps:w,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:C=u1,transitionDuration:M="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=o,P=Ee(o.TransitionProps,Oie),R=Ee(o,Nie),L=(n=w==null?void 0:w.paper)!=null?n:S,O=$.useRef(),N=Rr(O,L.ref),B=U({},o,{anchorOrigin:u,anchorReference:f,elevation:g,marginThreshold:y,externalPaperSlotProps:L,transformOrigin:T,TransitionComponent:C,transitionDuration:M,TransitionProps:P}),G=Bie(B),q=$.useCallback(()=>{if(f==="anchorPosition")return c;const De=$_(l),$e=(De&&De.nodeType===1?De:ln(O.current).body).getBoundingClientRect();return{top:$e.top+RL($e,u.vertical),left:$e.left+EL($e,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),H=$.useCallback(De=>({vertical:RL(De,T.vertical),horizontal:EL(De,T.horizontal)}),[T.horizontal,T.vertical]),X=$.useCallback(De=>{const Ie={width:De.offsetWidth,height:De.offsetHeight},$e=H(Ie);if(f==="none")return{top:null,left:null,transformOrigin:LL($e)};const dt=q();let ct=dt.top-$e.vertical,bt=dt.left-$e.horizontal;const At=ct+Ie.height,_t=bt+Ie.width,it=xo($_(l)),tr=it.innerHeight-y,$t=it.innerWidth-y;if(y!==null&&ct<y){const It=ct-y;ct-=It,$e.vertical+=It}else if(y!==null&&At>tr){const It=At-tr;ct-=It,$e.vertical+=It}if(y!==null&&bt<y){const It=bt-y;bt-=It,$e.horizontal+=It}else if(_t>$t){const It=_t-$t;bt-=It,$e.horizontal+=It}return{top:`${Math.round(ct)}px`,left:`${Math.round(bt)}px`,transformOrigin:LL($e)}},[l,f,q,H,y]),[F,Y]=$.useState(x),Z=$.useCallback(()=>{const De=O.current;if(!De)return;const Ie=X(De);Ie.top!==null&&(De.style.top=Ie.top),Ie.left!==null&&(De.style.left=Ie.left),De.style.transformOrigin=Ie.transformOrigin,Y(!0)},[X]);$.useEffect(()=>(I&&window.addEventListener("scroll",Z),()=>window.removeEventListener("scroll",Z)),[l,I,Z]);const j=(De,Ie)=>{k&&k(De,Ie),Z()},re=()=>{Y(!1)};$.useEffect(()=>{x&&Z()}),$.useImperativeHandle(s,()=>x?{updatePosition:()=>{Z()}}:null,[x,Z]),$.useEffect(()=>{if(!x)return;const De=pg(()=>{Z()}),Ie=xo(l);return Ie.addEventListener("resize",De),()=>{De.clear(),Ie.removeEventListener("resize",De)}},[l,x,Z]);let ce=M;M==="auto"&&!C.muiSupportAuto&&(ce=void 0);const te=v||(l?ln($_(l)).body:void 0),pe=(i=b==null?void 0:b.root)!=null?i:Fie,ae=(a=b==null?void 0:b.paper)!=null?a:F$,he=Ea({elementType:ae,externalSlotProps:U({},L,{style:F?L.style:U({},L.style,{opacity:0})}),additionalProps:{elevation:g,ref:N},ownerState:B,className:Le(G.paper,L==null?void 0:L.className)}),ve=Ea({elementType:pe,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:R,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:te,open:x},ownerState:B,className:Le(G.root,h)}),{slotProps:fe}=ve,ge=Ee(ve,zie);return z.jsx(pe,U({},ge,!ld(pe)&&{slotProps:fe,disableScrollLock:I},{children:z.jsx(C,U({appear:!0,in:x,onEntering:j,onExited:re,timeout:ce},P,{children:z.jsx(ae,U({},he,{children:d}))}))}))});function Vie(e){return nt("MuiMenu",e)}lt("MuiMenu",["root","paper","list"]);const $ie=["onEntering"],Gie=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Hie={vertical:"top",horizontal:"right"},Wie={vertical:"top",horizontal:"left"},jie=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"],list:["list"]},Vie,t)},Uie=we(V$,{shouldForwardProp:e=>ko(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yie=we(F$,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qie=we(Eie,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Xie=$.forwardRef(function(t,r){var n,i;const a=ut({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:v,transitionDuration:g="auto",TransitionProps:{onEntering:y}={},variant:x="selectedMenu",slots:S={},slotProps:b={}}=a,w=Ee(a.TransitionProps,$ie),T=Ee(a,Gie),C=mc(),M=C.direction==="rtl",k=U({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:y,PaperProps:h,transitionDuration:g,TransitionProps:w,variant:x}),I=jie(k),P=o&&!u&&d,R=$.useRef(null),L=(X,F)=>{R.current&&R.current.adjustStyleForScrollbar(X,C),y&&y(X,F)},O=X=>{X.key==="Tab"&&(X.preventDefault(),f&&f(X,"tabKeyDown"))};let N=-1;$.Children.map(s,(X,F)=>{$.isValidElement(X)&&(X.props.disabled||(x==="selectedMenu"&&X.props.selected||N===-1)&&(N=F))});const B=(n=S.paper)!=null?n:Yie,G=(i=b.paper)!=null?i:h,q=Ea({elementType:S.root,externalSlotProps:b.root,ownerState:k,className:[I.root,l]}),H=Ea({elementType:B,externalSlotProps:G,ownerState:k,className:I.paper});return z.jsx(Uie,U({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:M?"right":"left"},transformOrigin:M?Hie:Wie,slots:{paper:B,root:S.root},slotProps:{root:q,paper:H},open:d,ref:r,transitionDuration:g,TransitionProps:U({onEntering:L},w),ownerState:k},T,{classes:v,children:z.jsx(qie,U({onKeyDown:O,actions:R,autoFocus:o&&(N===-1||u),autoFocusItem:P,variant:x},c,{className:Le(I.list,c.className),children:s}))}))});function Zie(e){return nt("MuiNativeSelect",e)}const XM=lt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Kie=["className","disabled","error","IconComponent","inputRef","variant"],Qie=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${Oe(r)}`,a&&"iconOpen",n&&"disabled"]};return st(s,Zie,t)},$$=({ownerState:e,theme:t})=>U({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":U({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${XM.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Jie=we("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ko,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${XM.multiple}`]:t.multiple}]}})($$),G$=({ownerState:e,theme:t})=>U({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${XM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),eae=we("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Oe(r.variant)}`],r.open&&t.iconOpen]}})(G$),tae=$.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=Ee(t,Kie),c=U({},t,{disabled:i,variant:l,error:a}),f=Qie(c);return z.jsxs($.Fragment,{children:[z.jsx(Jie,U({ownerState:c,className:Le(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:z.jsx(eae,{as:o,ownerState:c,className:f.icon})]})});var OL;const rae=["children","classes","className","label","notched"],nae=we("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),iae=we("legend")(({ownerState:e,theme:t})=>U({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&U({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function aae(e){const{className:t,label:r,notched:n}=e,i=Ee(e,rae),a=r!=null&&r!=="",o=U({},e,{notched:n,withLabel:a});return z.jsx(nae,U({"aria-hidden":!0,className:t,ownerState:o},i,{children:z.jsx(iae,{ownerState:o,children:a?z.jsx("span",{children:r}):OL||(OL=z.jsx("span",{className:"notranslate",children:""}))})}))}const oae=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],sae=e=>{const{classes:t}=e,n=st({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Tre,t);return U({},t,n)},lae=we(Bx,{shouldForwardProp:e=>ko(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Nx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return U({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ns.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ns.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Ns.focused} .${Ns.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ns.error} .${Ns.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ns.disabled} .${Ns.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&U({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),uae=we(aae,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),cae=we(Fx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zx})(({theme:e,ownerState:t})=>U({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),$x=$.forwardRef(function(t,r){var n,i,a,o,s;const l=ut({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:v,slots:g={},type:y="text"}=l,x=Ee(l,oae),S=sae(l),b=Io(),w=kl({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=U({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:b,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:h,size:w.size,type:y}),C=(n=(i=g.root)!=null?i:u.Root)!=null?n:lae,M=(a=(o=g.input)!=null?o:u.Input)!=null?a:cae;return z.jsx(jM,U({slots:{root:C,input:M},renderSuffix:k=>z.jsx(uae,{ownerState:T,className:S.notchedOutline,label:d!=null&&d!==""&&w.required?s||(s=z.jsxs($.Fragment,{children:[d," ","*"]})):d,notched:typeof v<"u"?v:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:r,type:y},x,{classes:U({},S,{notchedOutline:null})}))});$x.muiName="Input";function fae(e){return nt("MuiSelect",e)}const Gh=lt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var NL;const dae=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],hae=we("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Gh.select}`]:t.select},{[`&.${Gh.select}`]:t[r.variant]},{[`&.${Gh.error}`]:t.error},{[`&.${Gh.multiple}`]:t.multiple}]}})($$,{[`&.${Gh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),pae=we("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Oe(r.variant)}`],r.open&&t.iconOpen]}})(G$),vae=we("input",{shouldForwardProp:e=>rJ(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function zL(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function gae(e){return e==null||typeof e=="string"&&!e.trim()}const mae=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${Oe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return st(s,fae,t)},yae=$.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":a,autoFocus:o,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:v=!1,IconComponent:g,inputRef:y,labelId:x,MenuProps:S={},multiple:b,name:w,onBlur:T,onChange:C,onClose:M,onFocus:k,onOpen:I,open:P,readOnly:R,renderValue:L,SelectDisplayProps:O={},tabIndex:N,value:B,variant:G="standard"}=t,q=Ee(t,dae),[H,X]=id({controlled:B,default:f,name:"Select"}),[F,Y]=id({controlled:P,default:c,name:"Select"}),Z=$.useRef(null),j=$.useRef(null),[re,ce]=$.useState(null),{current:te}=$.useRef(P!=null),[pe,ae]=$.useState(),he=Rr(r,y),ve=$.useCallback(ze=>{j.current=ze,ze&&ce(ze)},[]),fe=re==null?void 0:re.parentNode;$.useImperativeHandle(he,()=>({focus:()=>{j.current.focus()},node:Z.current,value:H}),[H]),$.useEffect(()=>{c&&F&&re&&!te&&(ae(s?null:fe.clientWidth),j.current.focus())},[re,s]),$.useEffect(()=>{o&&j.current.focus()},[o]),$.useEffect(()=>{if(!x)return;const ze=ln(j.current).getElementById(x);if(ze){const wt=()=>{getSelection().isCollapsed&&j.current.focus()};return ze.addEventListener("click",wt),()=>{ze.removeEventListener("click",wt)}}},[x]);const ge=(ze,wt)=>{ze?I&&I(wt):M&&M(wt),te||(ae(s?null:fe.clientWidth),Y(ze))},De=ze=>{ze.button===0&&(ze.preventDefault(),j.current.focus(),ge(!0,ze))},Ie=ze=>{ge(!1,ze)},$e=$.Children.toArray(l),dt=ze=>{const wt=$e.find(Gt=>Gt.props.value===ze.target.value);wt!==void 0&&(X(wt.props.value),C&&C(ze,wt))},ct=ze=>wt=>{let Gt;if(wt.currentTarget.hasAttribute("tabindex")){if(b){Gt=Array.isArray(H)?H.slice():[];const ke=H.indexOf(ze.props.value);ke===-1?Gt.push(ze.props.value):Gt.splice(ke,1)}else Gt=ze.props.value;if(ze.props.onClick&&ze.props.onClick(wt),H!==Gt&&(X(Gt),C)){const ke=wt.nativeEvent||wt,Ue=new ke.constructor(ke.type,ke);Object.defineProperty(Ue,"target",{writable:!0,value:{value:Gt,name:w}}),C(Ue,ze)}b||ge(!1,wt)}},bt=ze=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ze.key)!==-1&&(ze.preventDefault(),ge(!0,ze))},At=re!==null&&F,_t=ze=>{!At&&T&&(Object.defineProperty(ze,"target",{writable:!0,value:{value:H,name:w}}),T(ze))};delete q["aria-invalid"];let it,tr;const $t=[];let It=!1;(l1({value:H})||h)&&(L?it=L(H):It=!0);const le=$e.map(ze=>{if(!$.isValidElement(ze))return null;let wt;if(b){if(!Array.isArray(H))throw new Error(gl(2));wt=H.some(Gt=>zL(Gt,ze.props.value)),wt&&It&&$t.push(ze.props.children)}else wt=zL(H,ze.props.value),wt&&It&&(tr=ze.props.children);return $.cloneElement(ze,{"aria-selected":wt?"true":"false",onClick:ct(ze),onKeyUp:Gt=>{Gt.key===" "&&Gt.preventDefault(),ze.props.onKeyUp&&ze.props.onKeyUp(Gt)},role:"option",selected:wt,value:void 0,"data-value":ze.props.value})});It&&(b?$t.length===0?it=null:it=$t.reduce((ze,wt,Gt)=>(ze.push(wt),Gt<$t.length-1&&ze.push(", "),ze),[]):it=tr);let ye=pe;!s&&te&&re&&(ye=fe.clientWidth);let je;typeof N<"u"?je=N:je=d?null:0;const Ne=O.id||(w?`mui-component-select-${w}`:void 0),Me=U({},t,{variant:G,value:H,open:At,error:v}),Pt=mae(Me),sr=U({},S.PaperProps,(n=S.slotProps)==null?void 0:n.paper);return z.jsxs($.Fragment,{children:[z.jsx(hae,U({ref:ve,tabIndex:je,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":At?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[x,Ne].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:bt,onMouseDown:d||R?null:De,onBlur:_t,onFocus:k},O,{ownerState:Me,className:Le(O.className,Pt.select,u),id:Ne,children:gae(it)?NL||(NL=z.jsx("span",{className:"notranslate",children:""})):it})),z.jsx(vae,U({"aria-invalid":v,value:Array.isArray(H)?H.join(","):H,name:w,ref:Z,"aria-hidden":!0,onChange:dt,tabIndex:-1,disabled:d,className:Pt.nativeInput,autoFocus:o,ownerState:Me},q)),z.jsx(pae,{as:g,className:Pt.icon,ownerState:Me}),z.jsx(Xie,U({id:`menu-${w||""}`,anchorEl:fe,open:At,onClose:Ie,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},S,{MenuListProps:U({"aria-labelledby":x,role:"listbox",disableListWrap:!0},S.MenuListProps),slotProps:{paper:U({},sr,{style:U({minWidth:ye},sr!=null?sr.style:null)})},children:le}))]})}),xae=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Sae=["root"],bae=e=>{const{classes:t}=e;return t},ZM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ko(e)&&e!=="variant",slot:"Root"},_ae=we(qM,ZM)(""),wae=we($x,ZM)(""),Cae=we(UM,ZM)(""),KM=$.forwardRef(function(t,r){const n=ut({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Mre,id:f,input:d,inputProps:h,label:v,labelId:g,MenuProps:y,multiple:x=!1,native:S=!1,onClose:b,onOpen:w,open:T,renderValue:C,SelectDisplayProps:M,variant:k="outlined"}=n,I=Ee(n,xae),P=S?tae:yae,R=Io(),L=kl({props:n,muiFormControl:R,states:["variant","error"]}),O=L.variant||k,N=U({},n,{variant:O,classes:o}),B=bae(N),G=Ee(B,Sae),q=d||{standard:z.jsx(_ae,{ownerState:N}),outlined:z.jsx(wae,{label:v,ownerState:N}),filled:z.jsx(Cae,{ownerState:N})}[O],H=Rr(r,q.ref);return z.jsx($.Fragment,{children:$.cloneElement(q,U({inputComponent:P,inputProps:U({children:a,error:L.error,IconComponent:c,variant:O,type:void 0,multiple:x},S?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:g,MenuProps:y,onClose:b,onOpen:w,open:T,renderValue:C,SelectDisplayProps:U({id:f},M)},h,{classes:h?ni(G,h.classes):G},d?d.props.inputProps:{})},x&&S&&O==="outlined"?{notched:!0}:{},{ref:H,className:Le(q.props.className,s,B.root)},!d&&{variant:O},I))})});KM.muiName="Select";function Tae(e){return nt("MuiTooltip",e)}const el=lt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Aae=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Mae(e){return Math.round(e*1e5)/1e5}const kae=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:a}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${Oe(a.split("-")[0])}`],arrow:["arrow"]};return st(o,Tae,t)},Iae=we(A$,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>U({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${el.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${el.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${el.arrow}`]:U({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${el.arrow}`]:U({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Pae=we("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Oe(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>U({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Sr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Mae(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${el.popper}[data-popper-placement*="left"] &`]:U({transformOrigin:"right center"},t.isRtl?U({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):U({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${el.popper}[data-popper-placement*="right"] &`]:U({transformOrigin:"left center"},t.isRtl?U({marginRight:"14px"},t.touch&&{marginRight:"24px"}):U({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${el.popper}[data-popper-placement*="top"] &`]:U({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${el.popper}[data-popper-placement*="bottom"] &`]:U({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Dae=we("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Sr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let py=!1,G_=null,Hh={x:0,y:0};function vy(e,t){return r=>{t&&t(r),e(r)}}const H$=$.forwardRef(function(t,r){var n,i,a,o,s,l,u,c,f,d,h,v,g,y,x,S,b,w,T;const C=ut({props:t,name:"MuiTooltip"}),{arrow:M=!1,children:k,components:I={},componentsProps:P={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:N=!1,disableTouchListener:B=!1,enterDelay:G=100,enterNextDelay:q=0,enterTouchDelay:H=700,followCursor:X=!1,id:F,leaveDelay:Y=0,leaveTouchDelay:Z=1500,onClose:j,onOpen:re,open:ce,placement:te="bottom",PopperComponent:pe,PopperProps:ae={},slotProps:he={},slots:ve={},title:fe,TransitionComponent:ge=u1,TransitionProps:De}=C,Ie=Ee(C,Aae),$e=$.isValidElement(k)?k:z.jsx("span",{children:k}),dt=mc(),ct=dt.direction==="rtl",[bt,At]=$.useState(),[_t,it]=$.useState(null),tr=$.useRef(!1),$t=N||X,It=$.useRef(),le=$.useRef(),ye=$.useRef(),je=$.useRef(),[Ne,Me]=id({controlled:ce,default:!1,name:"Tooltip",state:"open"});let Pt=Ne;const sr=pM(F),ze=$.useRef(),wt=$.useCallback(()=>{ze.current!==void 0&&(document.body.style.WebkitUserSelect=ze.current,ze.current=void 0),clearTimeout(je.current)},[]);$.useEffect(()=>()=>{clearTimeout(It.current),clearTimeout(le.current),clearTimeout(ye.current),wt()},[wt]);const Gt=Rt=>{clearTimeout(G_),py=!0,Me(!0),re&&!Pt&&re(Rt)},ke=Ca(Rt=>{clearTimeout(G_),G_=setTimeout(()=>{py=!1},800+Y),Me(!1),j&&Pt&&j(Rt),clearTimeout(It.current),It.current=setTimeout(()=>{tr.current=!1},dt.transitions.duration.shortest)}),Ue=Rt=>{tr.current&&Rt.type!=="touchstart"||(bt&&bt.removeAttribute("title"),clearTimeout(le.current),clearTimeout(ye.current),G||py&&q?le.current=setTimeout(()=>{Gt(Rt)},py?q:G):Gt(Rt))},ht=Rt=>{clearTimeout(le.current),clearTimeout(ye.current),ye.current=setTimeout(()=>{ke(Rt)},Y)},{isFocusVisibleRef:Ot,onBlur:_r,onFocus:Hn,ref:fi}=yx(),[,ua]=$.useState(!1),gs=Rt=>{_r(Rt),Ot.current===!1&&(ua(!1),ht(Rt))},Eo=Rt=>{bt||At(Rt.currentTarget),Hn(Rt),Ot.current===!0&&(ua(!0),Ue(Rt))},Yd=Rt=>{tr.current=!0;const Tn=$e.props;Tn.onTouchStart&&Tn.onTouchStart(Rt)},qd=Ue,Xd=ht,Zd=Rt=>{Yd(Rt),clearTimeout(ye.current),clearTimeout(It.current),wt(),ze.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",je.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ze.current,Ue(Rt)},H)},qg=Rt=>{$e.props.onTouchEnd&&$e.props.onTouchEnd(Rt),wt(),clearTimeout(ye.current),ye.current=setTimeout(()=>{ke(Rt)},Z)};$.useEffect(()=>{if(!Pt)return;function Rt(Tn){(Tn.key==="Escape"||Tn.key==="Esc")&&ke(Tn)}return document.addEventListener("keydown",Rt),()=>{document.removeEventListener("keydown",Rt)}},[ke,Pt]);const Rl=Rr($e.ref,fi,At,r);!fe&&fe!==0&&(Pt=!1);const El=$.useRef(),Ll=Rt=>{const Tn=$e.props;Tn.onMouseMove&&Tn.onMouseMove(Rt),Hh={x:Rt.clientX,y:Rt.clientY},El.current&&El.current.update()},Ol={},Lo=typeof fe=="string";R?(Ol.title=!Pt&&Lo&&!O?fe:null,Ol["aria-describedby"]=Pt?sr:null):(Ol["aria-label"]=Lo?fe:null,Ol["aria-labelledby"]=Pt&&!Lo?sr:null);const dn=U({},Ol,Ie,$e.props,{className:Le(Ie.className,$e.props.className),onTouchStart:Yd,ref:Rl},X?{onMouseMove:Ll}:{}),Fa={};B||(dn.onTouchStart=Zd,dn.onTouchEnd=qg),O||(dn.onMouseOver=vy(qd,dn.onMouseOver),dn.onMouseLeave=vy(Xd,dn.onMouseLeave),$t||(Fa.onMouseOver=qd,Fa.onMouseLeave=Xd)),L||(dn.onFocus=vy(Eo,dn.onFocus),dn.onBlur=vy(gs,dn.onBlur),$t||(Fa.onFocus=Eo,Fa.onBlur=gs));const Kd=$.useMemo(()=>{var Rt;let Tn=[{name:"arrow",enabled:!!_t,options:{element:_t,padding:4}}];return(Rt=ae.popperOptions)!=null&&Rt.modifiers&&(Tn=Tn.concat(ae.popperOptions.modifiers)),U({},ae.popperOptions,{modifiers:Tn})},[_t,ae]),Nl=U({},C,{isRtl:ct,arrow:M,disableInteractive:$t,placement:te,PopperComponentProp:pe,touch:tr.current}),Qd=kae(Nl),Xg=(n=(i=ve.popper)!=null?i:I.Popper)!=null?n:Iae,Va=(a=(o=(s=ve.transition)!=null?s:I.Transition)!=null?o:ge)!=null?a:u1,Jd=(l=(u=ve.tooltip)!=null?u:I.Tooltip)!=null?l:Pae,eh=(c=(f=ve.arrow)!=null?f:I.Arrow)!=null?c:Dae,OS=Pp(Xg,U({},ae,(d=he.popper)!=null?d:P.popper,{className:Le(Qd.popper,ae==null?void 0:ae.className,(h=(v=he.popper)!=null?v:P.popper)==null?void 0:h.className)}),Nl),Zg=Pp(Va,U({},De,(g=he.transition)!=null?g:P.transition),Nl),Kg=Pp(Jd,U({},(y=he.tooltip)!=null?y:P.tooltip,{className:Le(Qd.tooltip,(x=(S=he.tooltip)!=null?S:P.tooltip)==null?void 0:x.className)}),Nl),Qg=Pp(eh,U({},(b=he.arrow)!=null?b:P.arrow,{className:Le(Qd.arrow,(w=(T=he.arrow)!=null?T:P.arrow)==null?void 0:w.className)}),Nl);return z.jsxs($.Fragment,{children:[$.cloneElement($e,dn),z.jsx(Xg,U({as:pe??A$,placement:te,anchorEl:X?{getBoundingClientRect:()=>({top:Hh.y,left:Hh.x,right:Hh.x,bottom:Hh.y,width:0,height:0})}:bt,popperRef:El,open:bt?Pt:!1,id:sr,transition:!0},Fa,OS,{popperOptions:Kd,children:({TransitionProps:Rt})=>z.jsx(Va,U({timeout:dt.transitions.duration.shorter},Rt,Zg,{children:z.jsxs(Jd,U({},Kg,{children:[fe,M?z.jsx(eh,U({},Qg,{ref:it})):null]}))}))}))]})});function Rae(e){return nt("MuiSwitch",e)}const Pn=lt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Eae=["className","color","edge","size","sx"],Lae=e=>{const{classes:t,edge:r,size:n,color:i,checked:a,disabled:o}=e,s={root:["root",r&&`edge${Oe(r)}`,`size${Oe(n)}`],switchBase:["switchBase",`color${Oe(i)}`,a&&"checked",o&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=st(s,Rae,t);return U({},t,l)},Oae=we("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Oe(r.edge)}`],t[`size${Oe(r.size)}`]]}})(({ownerState:e})=>U({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Pn.thumb}`]:{width:16,height:16},[`& .${Pn.switchBase}`]:{padding:4,[`&.${Pn.checked}`]:{transform:"translateX(16px)"}}})),Nae=we(I$,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Pn.input}`]:t.input},r.color!=="default"&&t[`color${Oe(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Pn.checked}`]:{transform:"translateX(20px)"},[`&.${Pn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Pn.checked} + .${Pn.track}`]:{opacity:.5},[`&.${Pn.disabled} + .${Pn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Pn.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>U({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Pn.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Pv(e.palette[t.color].main,.62):Iv(e.palette[t.color].main,.55)}`}},[`&.${Pn.checked} + .${Pn.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),zae=we("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Bae=we("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Fae=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:o=!1,size:s="medium",sx:l}=n,u=Ee(n,Eae),c=U({},n,{color:a,edge:o,size:s}),f=Lae(c),d=z.jsx(Bae,{className:f.thumb,ownerState:c});return z.jsxs(Oae,{className:Le(f.root,i),sx:l,ownerState:c,children:[z.jsx(Nae,U({type:"checkbox",icon:d,checkedIcon:d,ref:r,ownerState:c},u,{classes:U({},f,{root:f.switchBase})})),z.jsx(zae,{className:f.track,ownerState:c})]})});function Vae(e){return nt("MuiTab",e)}const Zl=lt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),$ae=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Gae=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:a,label:o,selected:s,disabled:l}=e,u={root:["root",a&&o&&"labelIcon",`textColor${Oe(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return st(u,Vae,t)},Hae=we(yc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Oe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>U({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Zl.iconWrapper}`]:U({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Zl.selected}`]:{opacity:1},[`&.${Zl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Zl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Zl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Wae=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:d,onClick:h,onFocus:v,selected:g,selectionFollowsFocus:y,textColor:x="inherit",value:S,wrapped:b=!1}=n,w=Ee(n,$ae),T=U({},n,{disabled:a,disableFocusRipple:o,selected:g,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:x,wrapped:b}),C=Gae(T),M=l&&f&&$.isValidElement(l)?$.cloneElement(l,{className:Le(C.iconWrapper,l.props.className)}):l,k=P=>{!g&&d&&d(P,S),h&&h(P)},I=P=>{y&&!g&&d&&d(P,S),v&&v(P)};return z.jsxs(Hae,U({focusRipple:!o,className:Le(C.root,i),ref:r,role:"tab","aria-selected":g,disabled:a,onClick:k,onFocus:I,ownerState:T,tabIndex:g?0:-1},w,{children:[u==="top"||u==="start"?z.jsxs($.Fragment,{children:[M,f]}):z.jsxs($.Fragment,{children:[f,M]}),c]}))}),W$=$.createContext();function jae(e){return nt("MuiTable",e)}lt("MuiTable",["root","stickyHeader"]);const Uae=["className","component","padding","size","stickyHeader"],Yae=e=>{const{classes:t,stickyHeader:r}=e;return st({root:["root",r&&"stickyHeader"]},jae,t)},qae=we("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>U({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":U({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),BL="table",j$=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTable"}),{className:i,component:a=BL,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=Ee(n,Uae),c=U({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=Yae(c),d=$.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return z.jsx(W$.Provider,{value:d,children:z.jsx(qae,U({as:a,role:a===BL?null:"table",ref:r,className:Le(f.root,i),ownerState:c},u))})}),Gx=$.createContext();function Xae(e){return nt("MuiTableBody",e)}lt("MuiTableBody",["root"]);const Zae=["className","component"],Kae=e=>{const{classes:t}=e;return st({root:["root"]},Xae,t)},Qae=we("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Jae={variant:"body"},FL="tbody",U$=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTableBody"}),{className:i,component:a=FL}=n,o=Ee(n,Zae),s=U({},n,{component:a}),l=Kae(s);return z.jsx(Gx.Provider,{value:Jae,children:z.jsx(Qae,U({className:Le(l.root,i),as:a,ref:r,role:a===FL?null:"rowgroup",ownerState:s},o))})});function eoe(e){return nt("MuiTableCell",e)}const toe=lt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),roe=["align","className","component","padding","scope","size","sortDirection","variant"],noe=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Oe(n)}`,i!=="normal"&&`padding${Oe(i)}`,`size${Oe(a)}`]};return st(s,eoe,t)},ioe=we("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Oe(r.size)}`],r.padding!=="normal"&&t[`padding${Oe(r.padding)}`],r.align!=="inherit"&&t[`align${Oe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>U({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
142
|
+
${e.palette.mode==="light"?Pv(Sr(e.palette.divider,1),.88):Iv(Sr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${toe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Ru=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=Ee(n,roe),h=$.useContext(W$),v=$.useContext(Gx),g=v&&v.variant==="head";let y;o?y=o:y=g?"th":"td";let x=l;y==="td"?x=void 0:!x&&g&&(x="col");const S=f||v&&v.variant,b=U({},n,{align:i,component:y,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:S==="head"&&h&&h.stickyHeader,variant:S}),w=noe(b);let T=null;return c&&(T=c==="asc"?"ascending":"descending"),z.jsx(ioe,U({as:y,ref:r,className:Le(w.root,a),"aria-sort":T,scope:x,ownerState:b},d))});function aoe(e){return nt("MuiTableContainer",e)}lt("MuiTableContainer",["root"]);const ooe=["className","component"],soe=e=>{const{classes:t}=e;return st({root:["root"]},aoe,t)},loe=we("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Y$=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=Ee(n,ooe),s=U({},n,{component:a}),l=soe(s);return z.jsx(loe,U({ref:r,as:a,className:Le(l.root,i),ownerState:s},o))});function uoe(e){return nt("MuiTableHead",e)}lt("MuiTableHead",["root"]);const coe=["className","component"],foe=e=>{const{classes:t}=e;return st({root:["root"]},uoe,t)},doe=we("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),hoe={variant:"head"},VL="thead",q$=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTableHead"}),{className:i,component:a=VL}=n,o=Ee(n,coe),s=U({},n,{component:a}),l=foe(s);return z.jsx(Gx.Provider,{value:hoe,children:z.jsx(doe,U({as:a,className:Le(l.root,i),ref:r,role:a===VL?null:"rowgroup",ownerState:s},o))})});function poe(e){return nt("MuiToolbar",e)}lt("MuiToolbar",["root","gutters","regular","dense"]);const voe=["className","component","disableGutters","variant"],goe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return st({root:["root",!r&&"gutters",n]},poe,t)},moe=we("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>U({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),yoe=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=Ee(n,voe),u=U({},n,{component:a,disableGutters:o,variant:s}),c=goe(u);return z.jsx(moe,U({as:a,className:Le(c.root,i),ref:r,ownerState:u},l))}),xoe=ci(z.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Soe=ci(z.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function boe(e){return nt("MuiTableRow",e)}const $L=lt("MuiTableRow",["root","selected","hover","head","footer"]),_oe=["className","component","hover","selected"],woe=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return st({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},boe,t)},Coe=we("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${$L.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${$L.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Sr(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}))`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),GL="tr",c1=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTableRow"}),{className:i,component:a=GL,hover:o=!1,selected:s=!1}=n,l=Ee(n,_oe),u=$.useContext(Gx),c=U({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=woe(c);return z.jsx(Coe,U({as:a,ref:r,className:Le(f.root,i),role:a===GL?null:"row",ownerState:c},l))});function Toe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Aoe(e,t,r,n={},i=()=>{}){const{ease:a=Toe,duration:o=300}=n;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=d=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=d);const h=Math.min(1,(d-s)/o);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Moe=["onChange"],koe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ioe(e){const{onChange:t}=e,r=Ee(e,Moe),n=$.useRef(),i=$.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return Da(()=>{const o=pg(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=xo(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),$.useEffect(()=>{a(),t(n.current)},[t]),z.jsx("div",U({style:koe,ref:i},r))}function Poe(e){return nt("MuiTabScrollButton",e)}const Doe=lt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Roe=["className","slots","slotProps","direction","orientation","disabled"],Eoe=e=>{const{classes:t,orientation:r,disabled:n}=e;return st({root:["root",r,n&&"disabled"]},Poe,t)},Loe=we(yc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>U({width:40,flexShrink:0,opacity:.8,[`&.${Doe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Ooe=$.forwardRef(function(t,r){var n,i;const a=ut({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=Ee(a,Roe),d=mc().direction==="rtl",h=U({isRtl:d},a),v=Eoe(h),g=(n=s.StartScrollButtonIcon)!=null?n:xoe,y=(i=s.EndScrollButtonIcon)!=null?i:Soe,x=Ea({elementType:g,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),S=Ea({elementType:y,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return z.jsx(Loe,U({component:"div",className:Le(v.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?z.jsx(g,U({},x)):z.jsx(y,U({},S))}))});function Noe(e){return nt("MuiTabs",e)}const H_=lt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),zoe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],HL=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,WL=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,gy=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=r(e,i);else{i.focus();return}}},Boe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return st({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Noe,l)},Foe=we("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${H_.scrollButtons}`]:t.scrollButtons},{[`& .${H_.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>U({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${H_.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Voe=we("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>U({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),$oe=we("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>U({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Goe=we("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>U({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Hoe=we(Ioe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),jL={},Woe=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTabs"}),i=mc(),a=i.direction==="rtl",{"aria-label":o,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:h=!1,indicatorColor:v="primary",onChange:g,orientation:y="horizontal",ScrollButtonComponent:x=Ooe,scrollButtons:S="auto",selectionFollowsFocus:b,slots:w={},slotProps:T={},TabIndicatorProps:C={},TabScrollButtonProps:M={},textColor:k="primary",value:I,variant:P="standard",visibleScrollbar:R=!1}=n,L=Ee(n,zoe),O=P==="scrollable",N=y==="vertical",B=N?"scrollTop":"scrollLeft",G=N?"top":"left",q=N?"bottom":"right",H=N?"clientHeight":"clientWidth",X=N?"height":"width",F=U({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:v,orientation:y,vertical:N,scrollButtons:S,textColor:k,variant:P,visibleScrollbar:R,fixed:!O,hideScrollbar:O&&!R,scrollableX:O&&!N,scrollableY:O&&N,centered:u&&!O,scrollButtonsHideMobile:!h}),Y=Boe(F),Z=Ea({elementType:w.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:F}),j=Ea({elementType:w.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:F}),[re,ce]=$.useState(!1),[te,pe]=$.useState(jL),[ae,he]=$.useState(!1),[ve,fe]=$.useState(!1),[ge,De]=$.useState(!1),[Ie,$e]=$.useState({overflow:"hidden",scrollbarWidth:0}),dt=new Map,ct=$.useRef(null),bt=$.useRef(null),At=()=>{const ke=ct.current;let Ue;if(ke){const Ot=ke.getBoundingClientRect();Ue={clientWidth:ke.clientWidth,scrollLeft:ke.scrollLeft,scrollTop:ke.scrollTop,scrollLeftNormalized:tZ(ke,i.direction),scrollWidth:ke.scrollWidth,top:Ot.top,bottom:Ot.bottom,left:Ot.left,right:Ot.right}}let ht;if(ke&&I!==!1){const Ot=bt.current.children;if(Ot.length>0){const _r=Ot[dt.get(I)];ht=_r?_r.getBoundingClientRect():null}}return{tabsMeta:Ue,tabMeta:ht}},_t=Ca(()=>{const{tabsMeta:ke,tabMeta:Ue}=At();let ht=0,Ot;if(N)Ot="top",Ue&&ke&&(ht=Ue.top-ke.top+ke.scrollTop);else if(Ot=a?"right":"left",Ue&&ke){const Hn=a?ke.scrollLeftNormalized+ke.clientWidth-ke.scrollWidth:ke.scrollLeft;ht=(a?-1:1)*(Ue[Ot]-ke[Ot]+Hn)}const _r={[Ot]:ht,[X]:Ue?Ue[X]:0};if(isNaN(te[Ot])||isNaN(te[X]))pe(_r);else{const Hn=Math.abs(te[Ot]-_r[Ot]),fi=Math.abs(te[X]-_r[X]);(Hn>=1||fi>=1)&&pe(_r)}}),it=(ke,{animation:Ue=!0}={})=>{Ue?Aoe(B,ct.current,ke,{duration:i.transitions.duration.standard}):ct.current[B]=ke},tr=ke=>{let Ue=ct.current[B];N?Ue+=ke:(Ue+=ke*(a?-1:1),Ue*=a&&BV()==="reverse"?-1:1),it(Ue)},$t=()=>{const ke=ct.current[H];let Ue=0;const ht=Array.from(bt.current.children);for(let Ot=0;Ot<ht.length;Ot+=1){const _r=ht[Ot];if(Ue+_r[H]>ke){Ot===0&&(Ue=ke);break}Ue+=_r[H]}return Ue},It=()=>{tr(-1*$t())},le=()=>{tr($t())},ye=$.useCallback(ke=>{$e({overflow:null,scrollbarWidth:ke})},[]),je=()=>{const ke={};ke.scrollbarSizeListener=O?z.jsx(Hoe,{onChange:ye,className:Le(Y.scrollableX,Y.hideScrollbar)}):null;const ht=O&&(S==="auto"&&(ae||ve)||S===!0);return ke.scrollButtonStart=ht?z.jsx(x,U({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Z},orientation:y,direction:a?"right":"left",onClick:It,disabled:!ae},M,{className:Le(Y.scrollButtons,M.className)})):null,ke.scrollButtonEnd=ht?z.jsx(x,U({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:j},orientation:y,direction:a?"left":"right",onClick:le,disabled:!ve},M,{className:Le(Y.scrollButtons,M.className)})):null,ke},Ne=Ca(ke=>{const{tabsMeta:Ue,tabMeta:ht}=At();if(!(!ht||!Ue)){if(ht[G]<Ue[G]){const Ot=Ue[B]+(ht[G]-Ue[G]);it(Ot,{animation:ke})}else if(ht[q]>Ue[q]){const Ot=Ue[B]+(ht[q]-Ue[q]);it(Ot,{animation:ke})}}}),Me=Ca(()=>{O&&S!==!1&&De(!ge)});$.useEffect(()=>{const ke=pg(()=>{ct.current&&_t()}),Ue=xo(ct.current);Ue.addEventListener("resize",ke);let ht;return typeof ResizeObserver<"u"&&(ht=new ResizeObserver(ke),Array.from(bt.current.children).forEach(Ot=>{ht.observe(Ot)})),()=>{ke.clear(),Ue.removeEventListener("resize",ke),ht&&ht.disconnect()}},[_t]),$.useEffect(()=>{const ke=Array.from(bt.current.children),Ue=ke.length;if(typeof IntersectionObserver<"u"&&Ue>0&&O&&S!==!1){const ht=ke[0],Ot=ke[Ue-1],_r={root:ct.current,threshold:.99},Hn=Eo=>{he(!Eo[0].isIntersecting)},fi=new IntersectionObserver(Hn,_r);fi.observe(ht);const ua=Eo=>{fe(!Eo[0].isIntersecting)},gs=new IntersectionObserver(ua,_r);return gs.observe(Ot),()=>{fi.disconnect(),gs.disconnect()}}},[O,S,ge,c==null?void 0:c.length]),$.useEffect(()=>{ce(!0)},[]),$.useEffect(()=>{_t()}),$.useEffect(()=>{Ne(jL!==te)},[Ne,te]),$.useImperativeHandle(l,()=>({updateIndicator:_t,updateScrollButtons:Me}),[_t,Me]);const Pt=z.jsx(Goe,U({},C,{className:Le(Y.indicator,C.className),ownerState:F,style:U({},te,C.style)}));let sr=0;const ze=$.Children.map(c,ke=>{if(!$.isValidElement(ke))return null;const Ue=ke.props.value===void 0?sr:ke.props.value;dt.set(Ue,sr);const ht=Ue===I;return sr+=1,$.cloneElement(ke,U({fullWidth:P==="fullWidth",indicator:ht&&!re&&Pt,selected:ht,selectionFollowsFocus:b,onChange:g,textColor:k,value:Ue},sr===1&&I===!1&&!ke.props.tabIndex?{tabIndex:0}:{}))}),wt=ke=>{const Ue=bt.current,ht=ln(Ue).activeElement;if(ht.getAttribute("role")!=="tab")return;let _r=y==="horizontal"?"ArrowLeft":"ArrowUp",Hn=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(_r="ArrowRight",Hn="ArrowLeft"),ke.key){case _r:ke.preventDefault(),gy(Ue,ht,WL);break;case Hn:ke.preventDefault(),gy(Ue,ht,HL);break;case"Home":ke.preventDefault(),gy(Ue,null,HL);break;case"End":ke.preventDefault(),gy(Ue,null,WL);break}},Gt=je();return z.jsxs(Foe,U({className:Le(Y.root,f),ownerState:F,ref:r,as:d},L,{children:[Gt.scrollButtonStart,Gt.scrollbarSizeListener,z.jsxs(Voe,{className:Y.scroller,ownerState:F,style:{overflow:Ie.overflow,[N?`margin${a?"Left":"Right"}`:"marginBottom"]:R?void 0:-Ie.scrollbarWidth},ref:ct,children:[z.jsx($oe,{"aria-label":o,"aria-labelledby":s,"aria-orientation":y==="vertical"?"vertical":null,className:Y.flexContainer,ownerState:F,onKeyDown:wt,ref:bt,role:"tablist",children:ze}),re&&Pt]}),Gt.scrollButtonEnd]}))});function joe(e){return nt("MuiTextField",e)}lt("MuiTextField",["root"]);const Uoe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Yoe={standard:qM,filled:UM,outlined:$x},qoe=e=>{const{classes:t}=e;return st({root:["root"]},joe,t)},Xoe=we(YM,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pd=$.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:o,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:v,id:g,InputLabelProps:y,inputProps:x,InputProps:S,inputRef:b,label:w,maxRows:T,minRows:C,multiline:M=!1,name:k,onBlur:I,onChange:P,onFocus:R,placeholder:L,required:O=!1,rows:N,select:B=!1,SelectProps:G,type:q,value:H,variant:X="outlined"}=n,F=Ee(n,Uoe),Y=U({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:M,required:O,select:B,variant:X}),Z=qoe(Y),j={};X==="outlined"&&(y&&typeof y.shrink<"u"&&(j.notched=y.shrink),j.label=w),B&&((!G||!G.native)&&(j.id=void 0),j["aria-describedby"]=void 0);const re=pM(g),ce=v&&re?`${re}-helper-text`:void 0,te=w&&re?`${re}-label`:void 0,pe=Yoe[X],ae=z.jsx(pe,U({"aria-describedby":ce,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:M,name:k,rows:N,maxRows:T,minRows:C,type:q,value:H,id:re,inputRef:b,onBlur:I,onChange:P,onFocus:R,placeholder:L,inputProps:x},j,S));return z.jsxs(Xoe,U({className:Le(Z.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:O,color:l,variant:X,ownerState:Y},F,{children:[w!=null&&w!==""&&z.jsx(Vx,U({htmlFor:re,id:te},y,{children:w})),B?z.jsx(KM,U({"aria-describedby":ce,id:re,labelId:te,value:H,input:ae},G,{children:o})):ae,v&&z.jsx(Vne,U({id:ce},d,{children:v}))]}))});function X$(){return z.jsxs("svg",{clipRule:"evenodd",fillRule:"evenodd",height:"35",strokeLinejoin:"round",strokeMiterlimit:"2",version:"1.1",viewBox:"0 0 183 35",width:"183",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[z.jsx("title",{children:"Locust"}),z.jsx("path",{d:"M36.694,18.975L48.943,6.626L47.341,5.012L35.092,17.361L36.694,18.975Z",fill:"rgb(184,238,75)"}),z.jsx("path",{d:"M40.954,20.093L53.03,8.017L51.416,6.403L39.34,18.479L40.954,20.093Z",fill:"rgb(184,238,75)"}),z.jsx("rect",{fill:"rgb(184,238,75)",height:"7.152",width:"2.459",x:"37.215",y:"17.411"}),z.jsx("path",{d:"M14.632,4.173L11.279,5.804L10.932,5.973L4.446,30.826L10.881,30.826L15.383,13.594L32.616,30.826L41.285,30.826L14.632,4.173Z",fill:"rgb(184,238,75)",fillRule:"nonzero"}),z.jsx("path",{d:"M4.722,26.007L3.683,29.988L0,29.988L0,28.176L4.722,26.007ZM27.385,15.595L39.945,9.824L43.705,9.824L47.464,13.583L47.464,19.963L43.819,23.608L39.201,18.928L38.025,20.088L47.793,29.988L41.778,29.988L27.385,15.595ZM14.232,21.637L19.644,19.151L27.609,27.116L20.962,29.988L12.05,29.988L14.232,21.637Z",fill:"rgb(184,238,75)"}),z.jsx("path",{d:"M64.001,30L64.001,11.009L68.501,11.009L68.501,26.224L79.443,26.224L79.443,30L64.001,30ZM90.405,30.633C84.211,30.633 79.983,26.473 79.983,20.505C79.983,14.536 84.211,10.376 90.405,10.376C96.623,10.376 100.85,14.536 100.85,20.505C100.85,26.473 96.623,30.633 90.405,30.633ZM90.405,26.722C93.796,26.722 96.374,24.235 96.374,20.505C96.374,16.774 93.796,14.287 90.405,14.287C87.037,14.287 84.437,16.774 84.437,20.505C84.437,24.235 87.037,26.722 90.405,26.722ZM112.638,30.633C106.488,30.633 102.238,26.473 102.238,20.505C102.238,14.536 106.488,10.376 112.638,10.376C116.798,10.376 121.071,12.23 121.997,17.814L117.679,17.814C116.865,15.372 114.989,14.287 112.638,14.287C109.269,14.287 106.692,16.842 106.692,20.505C106.692,24.144 109.269,26.722 112.638,26.722C114.989,26.722 116.865,25.637 117.679,23.172L121.997,23.172C121.071,28.779 116.843,30.633 112.638,30.633ZM132.77,30.633C126.914,30.633 123.613,27.875 123.613,22.087L123.613,11.009L128.158,11.009L128.158,21.974C128.158,25.004 129.672,26.835 132.77,26.835C135.867,26.835 137.404,25.004 137.404,21.974L137.404,11.009L141.926,11.009L141.926,22.087C141.926,27.875 138.625,30.633 132.77,30.633ZM152.22,30.633C146.432,30.633 143.38,28.576 143.403,24.122L147.472,24.122C147.63,25.908 149.1,27.038 152.22,27.061C155.159,27.061 156.764,26.066 156.764,24.574C156.764,23.263 155.702,22.607 153.441,22.223L151.089,21.816C147.495,21.183 143.923,20.233 143.923,16.096C143.923,12.501 146.952,10.376 152.265,10.376C157.216,10.376 160.653,12.117 160.698,16.819L156.651,16.819C156.357,15.101 155.023,13.948 152.175,13.948C149.597,13.948 148.241,14.83 148.241,16.299C148.241,17.452 149.168,18.176 151.112,18.538L153.169,18.899C156.787,19.555 161.241,20.165 161.241,24.71C161.241,28.485 158.143,30.633 152.22,30.633ZM180.394,11.009L180.394,14.785L173.272,14.785L173.272,30L168.751,30L168.751,14.785L161.652,14.785L161.652,11.009L180.394,11.009Z",fill:"currentcolor"})]})}const Zoe=ci(z.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),Koe=ci(z.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");function Z$({name:e="password",label:t="Password",defaultValue:r,isRequired:n}){const[i,a]=$.useState(!1),o=()=>a(!i);return z.jsxs(YM,{variant:"outlined",children:[z.jsx(Vx,{htmlFor:`${t}-${e}-field`,children:t}),z.jsx($x,{defaultValue:r,endAdornment:z.jsx(iie,{position:"end",children:z.jsx(Md,{edge:"end",onClick:o,children:i?z.jsx(Koe,{}):z.jsx(Zoe,{})})}),id:`${t}-${e}-field`,label:t,name:e,required:n,type:i?"text":"password"})]})}function QM({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,size:a="medium",sx:o,...s}){return z.jsxs(YM,{size:a,sx:o,children:[z.jsx(Vx,{htmlFor:t,shrink:!0,children:e}),z.jsx(KM,{...s,defaultValue:s.value?void 0:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((l,u)=>z.jsx("option",{value:l,children:l},`option-${l}-${u}`))})]})}function Qoe(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Joe=/[ \t\n\f\r]/g;function ese(e){return typeof e=="object"?e.type==="text"?UL(e.value):!1:UL(e)}function UL(e){return e.replace(Joe,"")===""}class _g{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}_g.prototype.property={};_g.prototype.normal={};_g.prototype.space=null;function K$(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new _g(r,n,t)}function t2(e){return e.toLowerCase()}class aa{constructor(t,r){this.property=t,this.attribute=r}}aa.prototype.space=null;aa.prototype.boolean=!1;aa.prototype.booleanish=!1;aa.prototype.overloadedBoolean=!1;aa.prototype.number=!1;aa.prototype.commaSeparated=!1;aa.prototype.spaceSeparated=!1;aa.prototype.commaOrSpaceSeparated=!1;aa.prototype.mustUseProperty=!1;aa.prototype.defined=!1;let tse=0;const Mt=xc(),Nr=xc(),Q$=xc(),Ce=xc(),cr=xc(),Yf=xc(),mi=xc();function xc(){return 2**++tse}const r2=Object.freeze(Object.defineProperty({__proto__:null,boolean:Mt,booleanish:Nr,commaOrSpaceSeparated:mi,commaSeparated:Yf,number:Ce,overloadedBoolean:Q$,spaceSeparated:cr},Symbol.toStringTag,{value:"Module"})),W_=Object.keys(r2);class JM extends aa{constructor(t,r,n,i){let a=-1;if(super(t,r),YL(this,"space",i),typeof n=="number")for(;++a<W_.length;){const o=W_[a];YL(this,W_[a],(n&r2[o])===r2[o])}}}JM.prototype.defined=!0;function YL(e,t,r){r&&(e[t]=r)}const rse={}.hasOwnProperty;function kd(e){const t={},r={};let n;for(n in e.properties)if(rse.call(e.properties,n)){const i=e.properties[n],a=new JM(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[t2(n)]=n,r[t2(a.attribute)]=n}return new _g(t,r,e.space)}const J$=kd({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),e6=kd({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t6(e,t){return t in e?e[t]:t}function r6(e,t){return t6(e,t.toLowerCase())}const n6=kd({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:r6,properties:{xmlns:null,xmlnsXLink:null}}),i6=kd({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Nr,ariaAutoComplete:null,ariaBusy:Nr,ariaChecked:Nr,ariaColCount:Ce,ariaColIndex:Ce,ariaColSpan:Ce,ariaControls:cr,ariaCurrent:null,ariaDescribedBy:cr,ariaDetails:null,ariaDisabled:Nr,ariaDropEffect:cr,ariaErrorMessage:null,ariaExpanded:Nr,ariaFlowTo:cr,ariaGrabbed:Nr,ariaHasPopup:null,ariaHidden:Nr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:cr,ariaLevel:Ce,ariaLive:null,ariaModal:Nr,ariaMultiLine:Nr,ariaMultiSelectable:Nr,ariaOrientation:null,ariaOwns:cr,ariaPlaceholder:null,ariaPosInSet:Ce,ariaPressed:Nr,ariaReadOnly:Nr,ariaRelevant:null,ariaRequired:Nr,ariaRoleDescription:cr,ariaRowCount:Ce,ariaRowIndex:Ce,ariaRowSpan:Ce,ariaSelected:Nr,ariaSetSize:Ce,ariaSort:null,ariaValueMax:Ce,ariaValueMin:Ce,ariaValueNow:Ce,ariaValueText:null,role:null}}),nse=kd({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yf,acceptCharset:cr,accessKey:cr,action:null,allow:null,allowFullScreen:Mt,allowPaymentRequest:Mt,allowUserMedia:Mt,alt:null,as:null,async:Mt,autoCapitalize:null,autoComplete:cr,autoFocus:Mt,autoPlay:Mt,blocking:cr,capture:Mt,charSet:null,checked:Mt,cite:null,className:cr,cols:Ce,colSpan:null,content:null,contentEditable:Nr,controls:Mt,controlsList:cr,coords:Ce|Yf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mt,defer:Mt,dir:null,dirName:null,disabled:Mt,download:Q$,draggable:Nr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mt,formTarget:null,headers:cr,height:Ce,hidden:Mt,high:Ce,href:null,hrefLang:null,htmlFor:cr,httpEquiv:cr,id:null,imageSizes:null,imageSrcSet:null,inert:Mt,inputMode:null,integrity:null,is:null,isMap:Mt,itemId:null,itemProp:cr,itemRef:cr,itemScope:Mt,itemType:cr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mt,low:Ce,manifest:null,max:null,maxLength:Ce,media:null,method:null,min:null,minLength:Ce,multiple:Mt,muted:Mt,name:null,nonce:null,noModule:Mt,noValidate:Mt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Mt,optimum:Ce,pattern:null,ping:cr,placeholder:null,playsInline:Mt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Mt,referrerPolicy:null,rel:cr,required:Mt,reversed:Mt,rows:Ce,rowSpan:Ce,sandbox:cr,scope:null,scoped:Mt,seamless:Mt,selected:Mt,shape:null,size:Ce,sizes:null,slot:null,span:Ce,spellCheck:Nr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ce,step:null,style:null,tabIndex:Ce,target:null,title:null,translate:null,type:null,typeMustMatch:Mt,useMap:null,value:Nr,width:Ce,wrap:null,align:null,aLink:null,archive:cr,axis:null,background:null,bgColor:null,border:Ce,borderColor:null,bottomMargin:Ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mt,declare:Mt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ce,leftMargin:Ce,link:null,longDesc:null,lowSrc:null,marginHeight:Ce,marginWidth:Ce,noResize:Mt,noHref:Mt,noShade:Mt,noWrap:Mt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ce,rules:null,scheme:null,scrolling:Nr,standby:null,summary:null,text:null,topMargin:Ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Mt,disableRemotePlayback:Mt,prefix:null,property:null,results:Ce,security:null,unselectable:null}}),ise=kd({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:t6,properties:{about:mi,accentHeight:Ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ce,amplitude:Ce,arabicForm:null,ascent:Ce,attributeName:null,attributeType:null,azimuth:Ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ce,by:null,calcMode:null,capHeight:Ce,className:cr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ce,diffuseConstant:Ce,direction:null,display:null,dur:null,divisor:Ce,dominantBaseline:null,download:Mt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ce,enableBackground:null,end:null,event:null,exponent:Ce,externalResourcesRequired:null,fill:null,fillOpacity:Ce,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Yf,g2:Yf,glyphName:Yf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ce,horizOriginX:Ce,horizOriginY:Ce,id:null,ideographic:Ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ce,k:Ce,k1:Ce,k2:Ce,k3:Ce,k4:Ce,kernelMatrix:mi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ce,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ce,overlineThickness:Ce,paintOrder:null,panose1:null,path:null,pathLength:Ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:cr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ce,pointsAtY:Ce,pointsAtZ:Ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mi,rev:mi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mi,requiredFeatures:mi,requiredFonts:mi,requiredFormats:mi,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ce,specularExponent:Ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ce,strikethroughThickness:Ce,string:null,stroke:null,strokeDashArray:mi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ce,strokeOpacity:Ce,strokeWidth:null,style:null,surfaceScale:Ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mi,tabIndex:Ce,tableValues:null,target:null,targetX:Ce,targetY:Ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mi,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ce,underlineThickness:Ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ce,values:null,vAlphabetic:Ce,vMathematical:Ce,vectorEffect:null,vHanging:Ce,vIdeographic:Ce,version:null,vertAdvY:Ce,vertOriginX:Ce,vertOriginY:Ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ase=/^data[-\w.:]+$/i,qL=/-[a-z]/g,ose=/[A-Z]/g;function sse(e,t){const r=t2(t);let n=t,i=aa;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ase.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(qL,use);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!qL.test(a)){let o=a.replace(ose,lse);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=JM}return new i(n,t)}function lse(e){return"-"+e.toLowerCase()}function use(e){return e.charAt(1).toUpperCase()}const cse={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},fse=K$([e6,J$,n6,i6,nse],"html"),a6=K$([e6,J$,n6,i6,ise],"svg");function dse(e){return e.join(" ").trim()}var my={exports:{}},j_,XL;function hse(){if(XL)return j_;XL=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
|
143
|
+
`,u="/",c="*",f="",d="comment",h="declaration";j_=function(g,y){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];y=y||{};var x=1,S=1;function b(O){var N=O.match(t);N&&(x+=N.length);var B=O.lastIndexOf(l);S=~B?O.length-B:S+O.length}function w(){var O={line:x,column:S};return function(N){return N.position=new T(O),k(),N}}function T(O){this.start=O,this.end={line:x,column:S},this.source=y.source}T.prototype.content=g;function C(O){var N=new Error(y.source+":"+x+":"+S+": "+O);if(N.reason=O,N.filename=y.source,N.line=x,N.column=S,N.source=g,!y.silent)throw N}function M(O){var N=O.exec(g);if(N){var B=N[0];return b(B),g=g.slice(B.length),N}}function k(){M(r)}function I(O){var N;for(O=O||[];N=P();)N!==!1&&O.push(N);return O}function P(){var O=w();if(!(u!=g.charAt(0)||c!=g.charAt(1))){for(var N=2;f!=g.charAt(N)&&(c!=g.charAt(N)||u!=g.charAt(N+1));)++N;if(N+=2,f===g.charAt(N-1))return C("End of comment missing");var B=g.slice(2,N-2);return S+=2,b(B),g=g.slice(N),S+=2,O({type:d,comment:B})}}function R(){var O=w(),N=M(n);if(N){if(P(),!M(i))return C("property missing ':'");var B=M(a),G=O({type:h,property:v(N[0].replace(e,f)),value:B?v(B[0].replace(e,f)):f});return M(o),G}}function L(){var O=[];I(O);for(var N;N=R();)N!==!1&&(O.push(N),I(O));return O}return k(),L()};function v(g){return g?g.replace(s,f):f}return j_}var ZL;function pse(){if(ZL)return my.exports;ZL=1;var e=hse();function t(r,n){var i=null;if(!r||typeof r!="string")return i;for(var a,o=e(r),s=typeof n=="function",l,u,c=0,f=o.length;c<f;c++)a=o[c],l=a.property,u=a.value,s?n(l,u,a):u&&(i||(i={}),i[l]=u);return i}return my.exports=t,my.exports.default=t,my.exports}var vse=pse();const gse=ia(vse),o6=s6("end"),ek=s6("start");function s6(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function mse(e){const t=ek(e),r=o6(e);if(t&&r)return{start:t,end:r}}function tv(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?KL(e.position):"start"in e||"end"in e?KL(e):"line"in e||"column"in e?n2(e):""}function n2(e){return QL(e&&e.line)+":"+QL(e&&e.column)}function KL(e){return n2(e&&e.start)+"-"+n2(e&&e.end)}function QL(e){return e&&typeof e=="number"?e:1}class $n extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=tv(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}$n.prototype.file="";$n.prototype.name="";$n.prototype.reason="";$n.prototype.message="";$n.prototype.stack="";$n.prototype.column=void 0;$n.prototype.line=void 0;$n.prototype.ancestors=void 0;$n.prototype.cause=void 0;$n.prototype.fatal=void 0;$n.prototype.place=void 0;$n.prototype.ruleId=void 0;$n.prototype.source=void 0;const tk={}.hasOwnProperty,yse=new Map,xse=/[A-Z]/g,Sse=/-([a-z])/g,bse=new Set(["table","tbody","thead","tfoot","tr"]),_se=new Set(["td","th"]);function wse(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=Tse(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=Cse(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?a6:fse,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=l6(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function l6(e,t,r){if(t.type==="element"||t.type==="root"){const n=e.schema;let i=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=a6,e.schema=i),e.ancestors.push(t);let a=Ase(e,t);const o=Mse(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&bse.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!ese(l):!0})),tk.call(e.components,t.tagName)){const l=t.tagName;s=e.components[l],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(o.node=t)}else s=t.tagName;if(a.length>0){const l=a.length>1?a:a[0];l&&(o.children=l)}return e.schema=n,e.create(t,s,o,r)}if(t.type==="text")return t.value}function Cse(e,t,r){return n;function n(i,a,o,s){const u=Array.isArray(o.children)?r:t;return s?u(a,o,s):u(a,o)}}function Tse(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=ek(n);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Ase(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:yse;for(;++n<t.children.length;){const a=t.children[n];let o;if(e.passKeys&&a.type==="element"){const l=i.get(a.tagName)||0;o=a.tagName+"-"+l,i.set(a.tagName,l+1)}const s=l6(e,a,o);s!==void 0&&r.push(s)}return r}function Mse(e,t){const r=t[t.length-1],n={};let i;if("properties"in r&&r.properties){let a;for(i in r.properties)if(i!=="children"&&tk.call(r.properties,i)){const o=kse(e,t,i,r.properties[i]);if(o){const[s,l]=o;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&_se.has(r.tagName)?a=l:n[s]=l}}if(a){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}}return n}function kse(e,t,r,n){const i=sse(e.schema,r);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Qoe(n):dse(n)),i.property==="style"){let a=typeof n=="object"?n:Ise(e,t,String(n));return e.stylePropertyNameCase==="css"&&(a=Pse(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?cse[i.property]||i.property:i.attribute,n]}}function Ise(e,t,r){const n={};try{gse(r,i)}catch(a){if(!e.ignoreInvalidStyle){const o=a,s=new $n("Cannot parse `style` attribute",{ancestors:t,cause:o,source:"hast-util-to-jsx-runtime",ruleId:"style"});throw s.file=e.filePath||void 0,s.url="https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute",s}}return n;function i(a,o){let s=a;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(Sse,Rse)),n[s]=o}}function Pse(e){const t={};let r;for(r in e)tk.call(e,r)&&(t[Dse(r)]=e[r]);return t}function Dse(e){let t=e.replace(xse,Ese);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Rse(e,t){return t.toUpperCase()}function Ese(e){return"-"+e.toLowerCase()}const U_={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Lse={};function Ose(e,t){const r=Lse,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return u6(e,n,i)}function u6(e,t,r){if(Nse(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return JL(e.children,t,r)}return Array.isArray(e)?JL(e,t,r):""}function JL(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=u6(e[i],t,r);return n.join("")}function Nse(e){return!!(e&&typeof e=="object")}const eO=document.createElement("i");function rk(e){const t="&"+e+";";eO.innerHTML=t;const r=eO.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function _o(e,t,r,n){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Yi(e,t){return e.length>0?(_o(e,e.length,0,t),e):t}const tO={}.hasOwnProperty;function zse(e){const t={};let r=-1;for(;++r<e.length;)Bse(t,e[r]);return t}function Bse(e,t){let r;for(r in t){const i=(tO.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let o;if(a)for(o in a){tO.call(i,o)||(i[o]=[]);const s=a[o];Fse(i[o],Array.isArray(s)?s:s?[s]:[])}}}function Fse(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);_o(e,0,0,n)}function c6(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function qf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vse=Il(new RegExp("\\p{P}","u")),io=Il(/[A-Za-z]/),Si=Il(/[\dA-Za-z]/),$se=Il(/[#-'*+\--9=?A-Z^-~]/);function i2(e){return e!==null&&(e<32||e===127)}const a2=Il(/\d/),Gse=Il(/[\dA-Fa-f]/),f6=Il(/[!-/:-@[-`{-~]/);function mt(e){return e!==null&&e<-2}function oi(e){return e!==null&&(e<0||e===32)}function Xt(e){return e===-2||e===-1||e===32}function Hse(e){return f6(e)||Vse(e)}const Wse=Il(/\s/);function Il(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Id(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(a===37&&Si(e.charCodeAt(r+1))&&Si(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function fr(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return Xt(l)?(e.enter(r),s(l)):t(l)}function s(l){return Xt(l)&&a++<i?(e.consume(l),s):(e.exit(r),t(l))}}const jse={tokenize:Use};function Use(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),fr(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return mt(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const Yse={tokenize:qse},rO={tokenize:Xse};function qse(e){const t=this,r=[];let n=0,i,a,o;return s;function s(b){if(n<r.length){const w=r[n];return t.containerState=w[1],e.attempt(w[0].continuation,l,u)(b)}return u(b)}function l(b){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const w=t.events.length;let T=w,C;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){C=t.events[T][1].end;break}x(n);let M=w;for(;M<t.events.length;)t.events[M][1].end=Object.assign({},C),M++;return _o(t.events,T+1,0,t.events.slice(w)),t.events.length=M,u(b)}return s(b)}function u(b){if(n===r.length){if(!i)return d(b);if(i.currentConstruct&&i.currentConstruct.concrete)return v(b);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(rO,c,f)(b)}function c(b){return i&&S(),x(n),d(b)}function f(b){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,v(b)}function d(b){return t.containerState={},e.attempt(rO,h,v)(b)}function h(b){return n++,r.push([t.currentConstruct,t.containerState]),d(b)}function v(b){if(b===null){i&&S(),x(0),e.consume(b);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),g(b)}function g(b){if(b===null){y(e.exit("chunkFlow"),!0),x(0),e.consume(b);return}return mt(b)?(e.consume(b),y(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(b),g)}function y(b,w){const T=t.sliceStream(b);if(w&&T.push(null),b.previous=a,a&&(a.next=b),a=b,i.defineSkip(b.start),i.write(T),t.parser.lazy[b.start.line]){let C=i.events.length;for(;C--;)if(i.events[C][1].start.offset<o&&(!i.events[C][1].end||i.events[C][1].end.offset>o))return;const M=t.events.length;let k=M,I,P;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(I){P=t.events[k][1].end;break}I=!0}for(x(n),C=M;C<t.events.length;)t.events[C][1].end=Object.assign({},P),C++;_o(t.events,k+1,0,t.events.slice(M)),t.events.length=C}}function x(b){let w=r.length;for(;w-- >b;){const T=r[w];t.containerState=T[1],T[0].exit.call(t,e)}r.length=b}function S(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Xse(e,t,r){return fr(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function nO(e){if(e===null||oi(e)||Wse(e))return 1;if(Hse(e))return 2}function nk(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const o2={name:"attention",tokenize:Kse,resolveAll:Zse};function Zse(e,t){let r=-1,n,i,a,o,s,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[r][1].start);iO(f,-l),iO(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=Yi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Yi(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=Yi(u,nk(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=Yi(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=Yi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,_o(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Kse(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=nO(n);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const u=e.exit("attentionSequence"),c=nO(l),f=!c||c===2&&i||r.includes(l),d=!i||i===2&&c||r.includes(n);return u._open=!!(a===42?f:f&&(i||!d)),u._close=!!(a===42?d:d&&(c||!f)),t(l)}}function iO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Qse={name:"autolink",tokenize:Jse};function Jse(e,t,r){let n=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return io(h)?(e.consume(h),o):u(h)}function o(h){return h===43||h===45||h===46||Si(h)?(n=1,s(h)):u(h)}function s(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Si(h))&&n++<32?(e.consume(h),s):(n=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||i2(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):$se(h)?(e.consume(h),u):r(h)}function c(h){return Si(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||Si(h))&&n++<63){const v=h===45?d:f;return e.consume(h),v}return r(h)}}const Hx={tokenize:ele,partial:!0};function ele(e,t,r){return n;function n(a){return Xt(a)?fr(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||mt(a)?t(a):r(a)}}const d6={name:"blockQuote",tokenize:tle,continuation:{tokenize:rle},exit:nle};function tle(e,t,r){const n=this;return i;function i(o){if(o===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return r(o)}function a(o){return Xt(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function rle(e,t,r){const n=this;return i;function i(o){return Xt(o)?fr(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(d6,t,r)(o)}}function nle(e){e.exit("blockQuote")}const h6={name:"characterEscape",tokenize:ile};function ile(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return f6(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const p6={name:"characterReference",tokenize:ale};function ale(e,t,r){const n=this;let i=0,a,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,o=Si,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Gse,c):(e.enter("characterReferenceValue"),a=7,o=a2,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return o===Si&&!rk(n.sliceSerialize(d))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<a?(e.consume(f),c):r(f)}}const aO={tokenize:sle,partial:!0},oO={name:"codeFenced",tokenize:ole,concrete:!0};function ole(e,t,r){const n=this,i={tokenize:T,partial:!0};let a=0,o=0,s;return l;function l(C){return u(C)}function u(C){const M=n.events[n.events.length-1];return a=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,s=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(C)}function c(C){return C===s?(o++,e.consume(C),c):o<3?r(C):(e.exit("codeFencedFenceSequence"),Xt(C)?fr(e,f,"whitespace")(C):f(C))}function f(C){return C===null||mt(C)?(e.exit("codeFencedFence"),n.interrupt?t(C):e.check(aO,g,w)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(C))}function d(C){return C===null||mt(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(C)):Xt(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),fr(e,h,"whitespace")(C)):C===96&&C===s?r(C):(e.consume(C),d)}function h(C){return C===null||mt(C)?f(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(C))}function v(C){return C===null||mt(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(C)):C===96&&C===s?r(C):(e.consume(C),v)}function g(C){return e.attempt(i,w,y)(C)}function y(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),x}function x(C){return a>0&&Xt(C)?fr(e,S,"linePrefix",a+1)(C):S(C)}function S(C){return C===null||mt(C)?e.check(aO,g,w)(C):(e.enter("codeFlowValue"),b(C))}function b(C){return C===null||mt(C)?(e.exit("codeFlowValue"),S(C)):(e.consume(C),b)}function w(C){return e.exit("codeFenced"),t(C)}function T(C,M,k){let I=0;return P;function P(B){return C.enter("lineEnding"),C.consume(B),C.exit("lineEnding"),R}function R(B){return C.enter("codeFencedFence"),Xt(B)?fr(C,L,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):L(B)}function L(B){return B===s?(C.enter("codeFencedFenceSequence"),O(B)):k(B)}function O(B){return B===s?(I++,C.consume(B),O):I>=o?(C.exit("codeFencedFenceSequence"),Xt(B)?fr(C,N,"whitespace")(B):N(B)):k(B)}function N(B){return B===null||mt(B)?(C.exit("codeFencedFence"),M(B)):k(B)}}}function sle(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const Y_={name:"codeIndented",tokenize:ule},lle={tokenize:cle,partial:!0};function ule(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),fr(e,a,"linePrefix",5)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):mt(u)?e.attempt(lle,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||mt(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function cle(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):mt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):fr(e,a,"linePrefix",5)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):mt(o)?i(o):r(o)}}const fle={name:"codeText",tokenize:ple,resolve:dle,previous:hle};function dle(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function hle(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ple(e,t,r){let n=0,i,a;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),n++,s):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(a=e.enter("codeTextSequence"),i=0,c(f)):mt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||mt(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",u(f))}}function v6(e){const t={};let r=-1,n,i,a,o,s,l,u;for(;++r<e.length;){for(;r in t;)r=t[r];if(n=e[r],r&&n[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,vle(e,r)),r=t[r],u=!0);else if(n[1]._container){for(a=r,i=void 0;a--&&(o=e[a],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(n[1].end=Object.assign({},e[i][1].start),s=e.slice(i,r),s.unshift(n),_o(e,i,r-i+1,s))}}return!u}function vle(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const a=[],o=r._tokenizer||n.parser[r.contentType](r.start),s=o.events,l=[],u={};let c,f,d=-1,h=r,v=0,g=0;const y=[g];for(;h;){for(;e[++i][1]!==h;);a.push(i),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=r;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(g=d+1,y.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):y.pop(),d=y.length;d--;){const x=s.slice(y[d],y[d+1]),S=a.pop();l.unshift([S,S+x.length-1]),_o(e,S,2,x)}for(d=-1;++d<l.length;)u[v+l[d][0]]=v+l[d][1],v+=l[d][1]-l[d][0]-1;return u}const gle={tokenize:xle,resolve:yle},mle={tokenize:Sle,partial:!0};function yle(e){return v6(e),e}function xle(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):mt(s)?e.check(mle,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function Sle(e,t,r){const n=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),fr(e,a,"linePrefix")}function a(o){if(o===null||mt(o))return r(o);const s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function g6(e,t,r,n,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(x){return x===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(x),e.exit(a),d):x===null||x===32||x===41||i2(x)?r(x):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(x))}function d(x){return x===62?(e.enter(a),e.consume(x),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(s),d(x)):x===null||x===60||mt(x)?r(x):(e.consume(x),x===92?v:h)}function v(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function g(x){return!c&&(x===null||x===41||oi(x))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(x)):c<u&&x===40?(e.consume(x),c++,g):x===41?(e.consume(x),c--,g):x===null||x===32||x===40||i2(x)?r(x):(e.consume(x),x===92?y:g)}function y(x){return x===40||x===41||x===92?(e.consume(x),g):g(x)}}function m6(e,t,r,n,i,a){const o=this;let s=0,l;return u;function u(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(a),c}function c(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):mt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||mt(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Xt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function y6(e,t,r,n,i,a){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,l):r(d)}function l(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===o?(e.exit(a),l(o)):d===null?r(d):mt(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),fr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||mt(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function rv(e,t){let r;return n;function n(i){return mt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):Xt(i)?fr(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const ble={name:"definition",tokenize:wle},_le={tokenize:Cle,partial:!0};function wle(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return m6.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=qf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return oi(h)?rv(e,u)(h):u(h)}function u(h){return g6(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(_le,f,f)(h)}function f(h){return Xt(h)?fr(e,d,"whitespace")(h):d(h)}function d(h){return h===null||mt(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function Cle(e,t,r){return n;function n(s){return oi(s)?rv(e,i)(s):r(s)}function i(s){return y6(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Xt(s)?fr(e,o,"whitespace")(s):o(s)}function o(s){return s===null||mt(s)?t(s):r(s)}}const Tle={name:"hardBreakEscape",tokenize:Ale};function Ale(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return mt(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const Mle={name:"headingAtx",tokenize:Ile,resolve:kle};function kle(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},_o(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Ile(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||oi(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||mt(c)?(e.exit("atxHeading"),t(c)):Xt(c)?fr(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||oi(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const Ple=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],sO=["pre","script","style","textarea"],Dle={name:"htmlFlow",tokenize:Ole,resolveTo:Lle,concrete:!0},Rle={tokenize:zle,partial:!0},Ele={tokenize:Nle,partial:!0};function Lle(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Ole(e,t,r){const n=this;let i,a,o,s,l;return u;function u(j){return c(j)}function c(j){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(j),f}function f(j){return j===33?(e.consume(j),d):j===47?(e.consume(j),a=!0,g):j===63?(e.consume(j),i=3,n.interrupt?t:F):io(j)?(e.consume(j),o=String.fromCharCode(j),y):r(j)}function d(j){return j===45?(e.consume(j),i=2,h):j===91?(e.consume(j),i=5,s=0,v):io(j)?(e.consume(j),i=4,n.interrupt?t:F):r(j)}function h(j){return j===45?(e.consume(j),n.interrupt?t:F):r(j)}function v(j){const re="CDATA[";return j===re.charCodeAt(s++)?(e.consume(j),s===re.length?n.interrupt?t:L:v):r(j)}function g(j){return io(j)?(e.consume(j),o=String.fromCharCode(j),y):r(j)}function y(j){if(j===null||j===47||j===62||oi(j)){const re=j===47,ce=o.toLowerCase();return!re&&!a&&sO.includes(ce)?(i=1,n.interrupt?t(j):L(j)):Ple.includes(o.toLowerCase())?(i=6,re?(e.consume(j),x):n.interrupt?t(j):L(j)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(j):a?S(j):b(j))}return j===45||Si(j)?(e.consume(j),o+=String.fromCharCode(j),y):r(j)}function x(j){return j===62?(e.consume(j),n.interrupt?t:L):r(j)}function S(j){return Xt(j)?(e.consume(j),S):P(j)}function b(j){return j===47?(e.consume(j),P):j===58||j===95||io(j)?(e.consume(j),w):Xt(j)?(e.consume(j),b):P(j)}function w(j){return j===45||j===46||j===58||j===95||Si(j)?(e.consume(j),w):T(j)}function T(j){return j===61?(e.consume(j),C):Xt(j)?(e.consume(j),T):b(j)}function C(j){return j===null||j===60||j===61||j===62||j===96?r(j):j===34||j===39?(e.consume(j),l=j,M):Xt(j)?(e.consume(j),C):k(j)}function M(j){return j===l?(e.consume(j),l=null,I):j===null||mt(j)?r(j):(e.consume(j),M)}function k(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||oi(j)?T(j):(e.consume(j),k)}function I(j){return j===47||j===62||Xt(j)?b(j):r(j)}function P(j){return j===62?(e.consume(j),R):r(j)}function R(j){return j===null||mt(j)?L(j):Xt(j)?(e.consume(j),R):r(j)}function L(j){return j===45&&i===2?(e.consume(j),G):j===60&&i===1?(e.consume(j),q):j===62&&i===4?(e.consume(j),Y):j===63&&i===3?(e.consume(j),F):j===93&&i===5?(e.consume(j),X):mt(j)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Rle,Z,O)(j)):j===null||mt(j)?(e.exit("htmlFlowData"),O(j)):(e.consume(j),L)}function O(j){return e.check(Ele,N,Z)(j)}function N(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),B}function B(j){return j===null||mt(j)?O(j):(e.enter("htmlFlowData"),L(j))}function G(j){return j===45?(e.consume(j),F):L(j)}function q(j){return j===47?(e.consume(j),o="",H):L(j)}function H(j){if(j===62){const re=o.toLowerCase();return sO.includes(re)?(e.consume(j),Y):L(j)}return io(j)&&o.length<8?(e.consume(j),o+=String.fromCharCode(j),H):L(j)}function X(j){return j===93?(e.consume(j),F):L(j)}function F(j){return j===62?(e.consume(j),Y):j===45&&i===2?(e.consume(j),F):L(j)}function Y(j){return j===null||mt(j)?(e.exit("htmlFlowData"),Z(j)):(e.consume(j),Y)}function Z(j){return e.exit("htmlFlow"),t(j)}}function Nle(e,t,r){const n=this;return i;function i(o){return mt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function zle(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Hx,t,r)}}const Ble={name:"htmlText",tokenize:Fle};function Fle(e,t,r){const n=this;let i,a,o;return s;function s(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),l}function l(F){return F===33?(e.consume(F),u):F===47?(e.consume(F),T):F===63?(e.consume(F),b):io(F)?(e.consume(F),k):r(F)}function u(F){return F===45?(e.consume(F),c):F===91?(e.consume(F),a=0,v):io(F)?(e.consume(F),S):r(F)}function c(F){return F===45?(e.consume(F),h):r(F)}function f(F){return F===null?r(F):F===45?(e.consume(F),d):mt(F)?(o=f,q(F)):(e.consume(F),f)}function d(F){return F===45?(e.consume(F),h):f(F)}function h(F){return F===62?G(F):F===45?d(F):f(F)}function v(F){const Y="CDATA[";return F===Y.charCodeAt(a++)?(e.consume(F),a===Y.length?g:v):r(F)}function g(F){return F===null?r(F):F===93?(e.consume(F),y):mt(F)?(o=g,q(F)):(e.consume(F),g)}function y(F){return F===93?(e.consume(F),x):g(F)}function x(F){return F===62?G(F):F===93?(e.consume(F),x):g(F)}function S(F){return F===null||F===62?G(F):mt(F)?(o=S,q(F)):(e.consume(F),S)}function b(F){return F===null?r(F):F===63?(e.consume(F),w):mt(F)?(o=b,q(F)):(e.consume(F),b)}function w(F){return F===62?G(F):b(F)}function T(F){return io(F)?(e.consume(F),C):r(F)}function C(F){return F===45||Si(F)?(e.consume(F),C):M(F)}function M(F){return mt(F)?(o=M,q(F)):Xt(F)?(e.consume(F),M):G(F)}function k(F){return F===45||Si(F)?(e.consume(F),k):F===47||F===62||oi(F)?I(F):r(F)}function I(F){return F===47?(e.consume(F),G):F===58||F===95||io(F)?(e.consume(F),P):mt(F)?(o=I,q(F)):Xt(F)?(e.consume(F),I):G(F)}function P(F){return F===45||F===46||F===58||F===95||Si(F)?(e.consume(F),P):R(F)}function R(F){return F===61?(e.consume(F),L):mt(F)?(o=R,q(F)):Xt(F)?(e.consume(F),R):I(F)}function L(F){return F===null||F===60||F===61||F===62||F===96?r(F):F===34||F===39?(e.consume(F),i=F,O):mt(F)?(o=L,q(F)):Xt(F)?(e.consume(F),L):(e.consume(F),N)}function O(F){return F===i?(e.consume(F),i=void 0,B):F===null?r(F):mt(F)?(o=O,q(F)):(e.consume(F),O)}function N(F){return F===null||F===34||F===39||F===60||F===61||F===96?r(F):F===47||F===62||oi(F)?I(F):(e.consume(F),N)}function B(F){return F===47||F===62||oi(F)?I(F):r(F)}function G(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),t):r(F)}function q(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),H}function H(F){return Xt(F)?fr(e,X,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):X(F)}function X(F){return e.enter("htmlTextData"),o(F)}}const ik={name:"labelEnd",tokenize:jle,resolveTo:Wle,resolveAll:Hle},Vle={tokenize:Ule},$le={tokenize:Yle},Gle={tokenize:qle};function Hle(e){let t=-1;for(;++t<e.length;){const r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function Wle(e,t){let r=e.length,n=0,i,a,o,s;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(o=r);const l={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[a+n+2][1].end),end:Object.assign({},e[o-2][1].start)};return s=[["enter",l,t],["enter",u,t]],s=Yi(s,e.slice(a+1,a+n+3)),s=Yi(s,[["enter",c,t]]),s=Yi(s,nk(t.parser.constructs.insideSpan.null,e.slice(a+n+4,o-3),t)),s=Yi(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=Yi(s,e.slice(o+1)),s=Yi(s,[["exit",l,t]]),_o(e,a,e.length,s),e}function jle(e,t,r){const n=this;let i=n.events.length,a,o;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return s;function s(d){return a?a._inactive?f(d):(o=n.parser.defined.includes(qf(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):r(d)}function l(d){return d===40?e.attempt(Vle,c,o?c:f)(d):d===91?e.attempt($le,c,o?u:f)(d):o?c(d):f(d)}function u(d){return e.attempt(Gle,c,f)(d)}function c(d){return t(d)}function f(d){return a._balanced=!0,r(d)}}function Ule(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return oi(f)?rv(e,a)(f):a(f)}function a(f){return f===41?c(f):g6(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return oi(f)?rv(e,l)(f):c(f)}function s(f){return r(f)}function l(f){return f===34||f===39||f===40?y6(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return oi(f)?rv(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function Yle(e,t,r){const n=this;return i;function i(s){return m6.call(n,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.includes(qf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function qle(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const Xle={name:"labelStartImage",tokenize:Zle,resolveAll:ik.resolveAll};function Zle(e,t,r){const n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const Kle={name:"labelStartLink",tokenize:Qle,resolveAll:ik.resolveAll};function Qle(e,t,r){const n=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const q_={name:"lineEnding",tokenize:Jle};function Jle(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),fr(e,t,"linePrefix")}}const P0={name:"thematicBreak",tokenize:eue};function eue(e,t,r){let n=0,i;return a;function a(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||mt(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),Xt(u)?fr(e,s,"whitespace")(u):s(u))}}const Qn={name:"list",tokenize:nue,continuation:{tokenize:iue},exit:oue},tue={tokenize:sue,partial:!0},rue={tokenize:aue,partial:!0};function nue(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const v=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:a2(h)){if(n.containerState.type||(n.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(P0,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return a2(h)&&++o<10?(e.consume(h),l):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(Hx,n.interrupt?r:c,e.attempt(tue,d,f))}function c(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return Xt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function iue(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Hx,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,fr(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!Xt(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(rue,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,fr(e,e.attempt(Qn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function aue(e,t,r){const n=this;return fr(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function oue(e){e.exit(this.containerState.type)}function sue(e,t,r){const n=this;return fr(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=n.events[n.events.length-1];return!Xt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const lO={name:"setextUnderline",tokenize:uue,resolveTo:lue};function lue(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}function uue(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Xt(u)?fr(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||mt(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const cue={tokenize:fue};function fue(e){const t=this,r=e.attempt(Hx,n,e.attempt(this.parser.constructs.flowInitial,i,fr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(gle,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const due={resolveAll:S6()},hue=x6("string"),pue=x6("text");function x6(e){return{tokenize:t,resolveAll:S6(e==="text"?vue:void 0)};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d<f.length;){const h=f[d];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function S6(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function vue(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,o=-1,s=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){a++;break}}if(s){const u={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-s,offset:n.end.offset-s,_index:n.start._index+a,_bufferIndex:a?o:n.start._bufferIndex+o},end:Object.assign({},n.end)};n.end=Object.assign({},u.start),n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}function gue(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],s=[];const l={consume:S,enter:b,exit:w,attempt:M(T),check:M(C),interrupt:M(C,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:d,now:v,defineSkip:g,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function f(R){return o=Yi(o,R),y(),o[o.length-1]!==null?[]:(k(t,0),u.events=nk(a,u.events,u),u.events)}function d(R,L){return yue(h(R),L)}function h(R){return mue(o,R)}function v(){const{line:R,column:L,offset:O,_index:N,_bufferIndex:B}=n;return{line:R,column:L,offset:O,_index:N,_bufferIndex:B}}function g(R){i[R.line]=R.column,P()}function y(){let R;for(;n._index<o.length;){const L=o[n._index];if(typeof L=="string")for(R=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===R&&n._bufferIndex<L.length;)x(L.charCodeAt(n._bufferIndex));else x(L)}}function x(R){c=c(R)}function S(R){mt(R)?(n.line++,n.column=1,n.offset+=R===-3?2:1,P()):R!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=R}function b(R,L){const O=L||{};return O.type=R,O.start=v(),u.events.push(["enter",O,u]),s.push(O),O}function w(R){const L=s.pop();return L.end=v(),u.events.push(["exit",L,u]),L}function T(R,L){k(R,L.from)}function C(R,L){L.restore()}function M(R,L){return O;function O(N,B,G){let q,H,X,F;return Array.isArray(N)?Z(N):"tokenize"in N?Z([N]):Y(N);function Y(te){return pe;function pe(ae){const he=ae!==null&&te[ae],ve=ae!==null&&te.null,fe=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return Z(fe)(ae)}}function Z(te){return q=te,H=0,te.length===0?G:j(te[H])}function j(te){return pe;function pe(ae){return F=I(),X=te,te.partial||(u.currentConstruct=te),te.name&&u.parser.constructs.disable.null.includes(te.name)?ce():te.tokenize.call(L?Object.assign(Object.create(u),L):u,l,re,ce)(ae)}}function re(te){return R(X,F),B}function ce(te){return F.restore(),++H<q.length?j(q[H]):G}}}function k(R,L){R.resolveAll&&!a.includes(R)&&a.push(R),R.resolve&&_o(u.events,L,u.events.length-L,R.resolve(u.events.slice(L),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function I(){const R=v(),L=u.previous,O=u.currentConstruct,N=u.events.length,B=Array.from(s);return{restore:G,from:N};function G(){n=R,u.previous=L,u.currentConstruct=O,u.events.length=N,s=B,P()}}function P(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function mue(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function yue(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
144
|
+
`;break}case-3:{o=`\r
|
145
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}const xue={42:Qn,43:Qn,45:Qn,48:Qn,49:Qn,50:Qn,51:Qn,52:Qn,53:Qn,54:Qn,55:Qn,56:Qn,57:Qn,62:d6},Sue={91:ble},bue={[-2]:Y_,[-1]:Y_,32:Y_},_ue={35:Mle,42:P0,45:[lO,P0],60:Dle,61:lO,95:P0,96:oO,126:oO},wue={38:p6,92:h6},Cue={[-5]:q_,[-4]:q_,[-3]:q_,33:Xle,38:p6,42:o2,60:[Qse,Ble],91:Kle,92:[Tle,h6],93:ik,95:o2,96:fle},Tue={null:[o2,due]},Aue={null:[42,95]},Mue={null:[]},kue=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Aue,contentInitial:Sue,disable:Mue,document:xue,flow:_ue,flowInitial:bue,insideSpan:Tue,string:wue,text:Cue},Symbol.toStringTag,{value:"Module"}));function Iue(e){const r=zse([kue,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(jse),document:i(Yse),flow:i(cue),string:i(hue),text:i(pue)};return n;function i(a){return o;function o(s){return gue(n,a,s)}}}function Pue(e){for(;!v6(e););return e}const uO=/[\0\t\n\r]/g;function Due(){let e=1,t="",r=!0,n;return i;function i(a,o,s){const l=[];let u,c,f,d,h;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),f=0,t="",r&&(a.charCodeAt(0)===65279&&f++,r=void 0);f<a.length;){if(uO.lastIndex=f,u=uO.exec(a),d=u&&u.index!==void 0?u.index:a.length,h=a.charCodeAt(d),!u){t=a.slice(f);break}if(h===10&&f===d&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<d&&(l.push(a.slice(f,d)),e+=d-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=d+1}return s&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Rue=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Eue(e){return e.replace(Rue,Lue)}function Lue(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return c6(r.slice(a?2:1),a?16:10)}return rk(r)||e}const b6={}.hasOwnProperty;function Oue(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Nue(r)(Pue(Iue(r).document().write(Due()(e,t,!0))))}function Nue(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(bt),autolinkProtocol:I,autolinkEmail:I,atxHeading:a(Ie),blockQuote:a(he),characterEscape:I,characterReference:I,codeFenced:a(ve),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ve,o),codeText:a(fe,o),codeTextData:I,data:I,codeFlowValue:I,definition:a(ge),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(De),hardBreakEscape:a($e),hardBreakTrailing:a($e),htmlFlow:a(dt,o),htmlFlowData:I,htmlText:a(dt,o),htmlTextData:I,image:a(ct),label:o,link:a(bt),listItem:a(_t),listItemValue:d,listOrdered:a(At,f),listUnordered:a(At),paragraph:a(it),reference:j,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Ie),strong:a(tr),thematicBreak:a(It)},exit:{atxHeading:l(),atxHeadingSequence:T,autolink:l(),autolinkEmail:ae,autolinkProtocol:pe,blockQuote:l(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:te,codeFenced:l(y),codeFencedFence:g,codeFencedFenceInfo:h,codeFencedFenceMeta:v,codeFlowValue:P,codeIndented:l(x),codeText:l(B),codeTextData:P,data:P,definition:l(),definitionDestinationString:w,definitionLabelString:S,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(L),hardBreakTrailing:l(L),htmlFlow:l(O),htmlFlowData:P,htmlText:l(N),htmlTextData:P,image:l(q),label:X,labelText:H,lineEnding:R,link:l(G),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:re,resourceDestinationString:F,resourceTitleString:Y,resource:Z,setextHeading:l(k),setextHeadingLineSequence:M,setextHeadingText:C,strong:l(),thematicBreak:l()}};_6(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(le){let ye={type:"root",children:[]};const je={stack:[ye],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:r},Ne=[];let Me=-1;for(;++Me<le.length;)if(le[Me][1].type==="listOrdered"||le[Me][1].type==="listUnordered")if(le[Me][0]==="enter")Ne.push(Me);else{const Pt=Ne.pop();Me=i(le,Pt,Me)}for(Me=-1;++Me<le.length;){const Pt=t[le[Me][0]];b6.call(Pt,le[Me][1].type)&&Pt[le[Me][1].type].call(Object.assign({sliceSerialize:le[Me][2].sliceSerialize},je),le[Me][1])}if(je.tokenStack.length>0){const Pt=je.tokenStack[je.tokenStack.length-1];(Pt[1]||cO).call(je,void 0,Pt[0])}for(ye.position={start:zs(le.length>0?le[0][1].start:{line:1,column:1,offset:0}),end:zs(le.length>0?le[le.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<t.transforms.length;)ye=t.transforms[Me](ye)||ye;return ye}function i(le,ye,je){let Ne=ye-1,Me=-1,Pt=!1,sr,ze,wt,Gt;for(;++Ne<=je;){const ke=le[Ne];switch(ke[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ke[0]==="enter"?Me++:Me--,Gt=void 0;break}case"lineEndingBlank":{ke[0]==="enter"&&(sr&&!Gt&&!Me&&!wt&&(wt=Ne),Gt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Gt=void 0}if(!Me&&ke[0]==="enter"&&ke[1].type==="listItemPrefix"||Me===-1&&ke[0]==="exit"&&(ke[1].type==="listUnordered"||ke[1].type==="listOrdered")){if(sr){let Ue=Ne;for(ze=void 0;Ue--;){const ht=le[Ue];if(ht[1].type==="lineEnding"||ht[1].type==="lineEndingBlank"){if(ht[0]==="exit")continue;ze&&(le[ze][1].type="lineEndingBlank",Pt=!0),ht[1].type="lineEnding",ze=Ue}else if(!(ht[1].type==="linePrefix"||ht[1].type==="blockQuotePrefix"||ht[1].type==="blockQuotePrefixWhitespace"||ht[1].type==="blockQuoteMarker"||ht[1].type==="listItemIndent"))break}wt&&(!ze||wt<ze)&&(sr._spread=!0),sr.end=Object.assign({},ze?le[ze][1].start:ke[1].end),le.splice(ze||Ne,0,["exit",sr,ke[2]]),Ne++,je++}if(ke[1].type==="listItemPrefix"){const Ue={type:"listItem",_spread:!1,start:Object.assign({},ke[1].start),end:void 0};sr=Ue,le.splice(Ne,0,["enter",Ue,ke[2]]),Ne++,je++,wt=void 0,Gt=!0}}}return le[ye][1]._spread=Pt,je}function a(le,ye){return je;function je(Ne){s.call(this,le(Ne),Ne),ye&&ye.call(this,Ne)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(le,ye,je){this.stack[this.stack.length-1].children.push(le),this.stack.push(le),this.tokenStack.push([ye,je]),le.position={start:zs(ye.start),end:void 0}}function l(le){return ye;function ye(je){le&&le.call(this,je),u.call(this,je)}}function u(le,ye){const je=this.stack.pop(),Ne=this.tokenStack.pop();if(Ne)Ne[0].type!==le.type&&(ye?ye.call(this,le,Ne[0]):(Ne[1]||cO).call(this,le,Ne[0]));else throw new Error("Cannot close `"+le.type+"` ("+tv({start:le.start,end:le.end})+"): it’s not open");je.position.end=zs(le.end)}function c(){return Ose(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(le){if(this.data.expectingFirstListItemValue){const ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(le),10),this.data.expectingFirstListItemValue=void 0}}function h(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=le}function v(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=le}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le.replace(/(\r?\n|\r)$/g,"")}function S(le){const ye=this.resume(),je=this.stack[this.stack.length-1];je.label=ye,je.identifier=qf(this.sliceSerialize(le)).toLowerCase()}function b(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.title=le}function w(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.url=le}function T(le){const ye=this.stack[this.stack.length-1];if(!ye.depth){const je=this.sliceSerialize(le).length;ye.depth=je}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function M(le){const ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(le).codePointAt(0)===61?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function I(le){const je=this.stack[this.stack.length-1].children;let Ne=je[je.length-1];(!Ne||Ne.type!=="text")&&(Ne=$t(),Ne.position={start:zs(le.start),end:void 0},je.push(Ne)),this.stack.push(Ne)}function P(le){const ye=this.stack.pop();ye.value+=this.sliceSerialize(le),ye.position.end=zs(le.end)}function R(le){const ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){const je=ye.children[ye.children.length-1];je.position.end=zs(le.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ye.type)&&(I.call(this,le),P.call(this,le))}function L(){this.data.atHardBreak=!0}function O(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le}function N(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le}function B(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le}function G(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=ye,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function q(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=ye,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function H(le){const ye=this.sliceSerialize(le),je=this.stack[this.stack.length-2];je.label=Eue(ye),je.identifier=qf(ye).toLowerCase()}function X(){const le=this.stack[this.stack.length-1],ye=this.resume(),je=this.stack[this.stack.length-1];if(this.data.inReference=!0,je.type==="link"){const Ne=le.children;je.children=Ne}else je.alt=ye}function F(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.url=le}function Y(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.title=le}function Z(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function re(le){const ye=this.resume(),je=this.stack[this.stack.length-1];je.label=ye,je.identifier=qf(this.sliceSerialize(le)).toLowerCase(),this.data.referenceType="full"}function ce(le){this.data.characterReferenceType=le.type}function te(le){const ye=this.sliceSerialize(le),je=this.data.characterReferenceType;let Ne;je?(Ne=c6(ye,je==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ne=rk(ye);const Me=this.stack.pop();Me.value+=Ne,Me.position.end=zs(le.end)}function pe(le){P.call(this,le);const ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(le)}function ae(le){P.call(this,le);const ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(le)}function he(){return{type:"blockquote",children:[]}}function ve(){return{type:"code",lang:null,meta:null,value:""}}function fe(){return{type:"inlineCode",value:""}}function ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function De(){return{type:"emphasis",children:[]}}function Ie(){return{type:"heading",depth:0,children:[]}}function $e(){return{type:"break"}}function dt(){return{type:"html",value:""}}function ct(){return{type:"image",title:null,url:"",alt:null}}function bt(){return{type:"link",title:null,url:"",children:[]}}function At(le){return{type:"list",ordered:le.type==="listOrdered",start:null,spread:le._spread,children:[]}}function _t(le){return{type:"listItem",spread:le._spread,checked:null,children:[]}}function it(){return{type:"paragraph",children:[]}}function tr(){return{type:"strong",children:[]}}function $t(){return{type:"text",value:""}}function It(){return{type:"thematicBreak"}}}function zs(e){return{line:e.line,column:e.column,offset:e.offset}}function _6(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?_6(e,n):zue(e,n)}}function zue(e,t){let r;for(r in t)if(b6.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function cO(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+tv({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+tv({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+tv({start:t.start,end:t.end})+") is still open")}function Bue(e){const t=this;t.parser=r;function r(n){return Oue(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Fue(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function Vue(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
146
|
+
`}]}function $ue(e,t){const r=t.value?t.value+`
|
147
|
+
`:"",n={};t.lang&&(n.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Gue(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Hue(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Wue(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Id(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let o,s=e.footnoteCounts.get(n);s===void 0?(s=0,e.footnoteOrder.push(n),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(n,s);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function jue(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Uue(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function w6(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=n:i.push({type:"text",value:n}),i}function Yue(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return w6(e,t);const i={src:Id(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function que(e,t){const r={src:Id(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function Xue(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function Zue(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return w6(e,t);const i={href:Id(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Kue(e,t){const r={href:Id(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Que(e,t,r){const n=e.all(t),i=r?Jue(r):C6(t),a={},o=[];if(typeof t.checked=="boolean"){const c=n[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const c=n[s];(i||s!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
|
148
|
+
`}),c.type==="element"&&c.tagName==="p"&&!i?o.push(...c.children):o.push(c)}const l=n[n.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
|
149
|
+
`});const u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)}function Jue(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=C6(r[n])}return t}function C6(e){const t=e.spread;return t??e.children.length>1}function ece(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){const o=n[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)}function tce(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function rce(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function nce(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ice(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],o),i.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=ek(t.children[1]),l=o6(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function ace(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const f=t.children[l],d={},h=o?o[l]:void 0;h&&(d.align=h);let v={type:"element",tagName:a,properties:d,children:[]};f&&(v.children=e.all(f),e.patch(f,v),v=e.applyData(f,v)),u.push(v)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function oce(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const fO=9,dO=32;function sce(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(hO(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(hO(t.slice(i),i>0,!1)),a.join("")}function hO(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===fO||a===dO;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===fO||a===dO;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function lce(e,t){const r={type:"text",value:sce(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function uce(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const cce={blockquote:Fue,break:Vue,code:$ue,delete:Gue,emphasis:Hue,footnoteReference:Wue,heading:jue,html:Uue,imageReference:Yue,image:que,inlineCode:Xue,linkReference:Zue,link:Kue,listItem:Que,list:ece,paragraph:tce,root:rce,strong:nce,table:ice,tableCell:oce,tableRow:ace,text:lce,thematicBreak:uce,toml:yy,yaml:yy,definition:yy,footnoteDefinition:yy};function yy(){}const T6=-1,Wx=0,f1=1,d1=2,ak=3,ok=4,sk=5,lk=6,A6=7,M6=8,pO=typeof self=="object"?self:globalThis,fce=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Wx:case T6:return r(o,i);case f1:{const s=r([],i);for(const l of o)s.push(n(l));return s}case d1:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case ak:return r(new Date(o),i);case ok:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case sk:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case lk:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case A6:{const{name:s,message:l}=o;return r(new pO[s](l),i)}case M6:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new pO[a](o),i)};return n},vO=e=>fce(new Map,e)(0),af="",{toString:dce}={},{keys:hce}=Object,Wh=e=>{const t=typeof e;if(t!=="object"||!e)return[Wx,t];const r=dce.call(e).slice(8,-1);switch(r){case"Array":return[f1,af];case"Object":return[d1,af];case"Date":return[ak,af];case"RegExp":return[ok,af];case"Map":return[sk,af];case"Set":return[lk,af]}return r.includes("Array")?[f1,r]:r.includes("Error")?[A6,r]:[d1,r]},xy=([e,t])=>e===Wx&&(t==="function"||t==="symbol"),pce=(e,t,r,n)=>{const i=(o,s)=>{const l=n.push(o)-1;return r.set(s,l),l},a=o=>{if(r.has(o))return r.get(o);let[s,l]=Wh(o);switch(s){case Wx:{let c=o;switch(l){case"bigint":s=M6,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([T6],o)}return i([s,c],o)}case f1:{if(l)return i([l,[...o]],o);const c=[],f=i([s,c],o);for(const d of o)c.push(a(d));return f}case d1:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const c=[],f=i([s,c],o);for(const d of hce(o))(e||!xy(Wh(o[d])))&&c.push([a(d),a(o[d])]);return f}case ak:return i([s,o.toISOString()],o);case ok:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case sk:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(xy(Wh(d))||xy(Wh(h))))&&c.push([a(d),a(h)]);return f}case lk:{const c=[],f=i([s,c],o);for(const d of o)(e||!xy(Wh(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},gO=(e,{json:t,lossy:r}={})=>{const n=[];return pce(!(t||r),!!t,new Map,n)(e),n},h1=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?vO(gO(e,t)):structuredClone(e):(e,t)=>vO(gO(e,t));function vce(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function gce(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function mce(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||vce,n=e.options.footnoteBackLabel||gce,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),d=Id(f.toLowerCase());let h=0;const v=[],g=e.footnoteCounts.get(f);for(;g!==void 0&&++h<=g;){v.length>0&&v.push({type:"text",value:" "});let S=typeof r=="string"?r:r(l,h);typeof S=="string"&&(S={type:"text",value:S}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const y=c[c.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const S=y.children[y.children.length-1];S&&S.type==="text"?S.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...v)}else c.push(...v);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,x),s.push(x)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...h1(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
150
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
151
|
+
`}]}}const k6=function(e){if(e==null)return bce;if(typeof e=="function")return jx(e);if(typeof e=="object")return Array.isArray(e)?yce(e):xce(e);if(typeof e=="string")return Sce(e);throw new Error("Expected function, string, or object as test")};function yce(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=k6(e[r]);return jx(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function xce(e){const t=e;return jx(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Sce(e){return jx(t);function t(r){return r&&r.type===e}}function jx(e){return t;function t(r,n,i){return!!(_ce(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function bce(){return!0}function _ce(e){return e!==null&&typeof e=="object"&&"type"in e}const I6=[],wce=!0,mO=!1,Cce="skip";function Tce(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=k6(i),o=n?-1:1;s(e,void 0,[])();function s(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=I6,v,g,y;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=Ace(r(l,c)),h[0]===mO))return h;if("children"in l&&l.children){const x=l;if(x.children&&h[0]!==Cce)for(g=(n?x.children.length:-1)+o,y=c.concat(x);g>-1&&g<x.children.length;){const S=x.children[g];if(v=s(S,g,y)(),v[0]===mO)return v;g=typeof v[1]=="number"?v[1]:g+o}}return h}}}function Ace(e){return Array.isArray(e)?e:typeof e=="number"?[wce,e]:e==null?I6:[e]}function P6(e,t,r,n){let i,a,o;typeof t=="function"&&typeof r!="function"?(a=void 0,o=t,i=r):(a=t,o=r,i=n),Tce(e,a,s,i);function s(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return o(l,f,c)}}const s2={}.hasOwnProperty,Mce={};function kce(e,t){const r=t||Mce,n=new Map,i=new Map,a=new Map,o={...cce,...r.handlers},s={all:u,applyData:Pce,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:l,options:r,patch:Ice,wrap:Rce};return P6(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?n:i,d=String(c.identifier).toUpperCase();f.has(d)||f.set(d,c)}}),s;function l(c,f){const d=c.type,h=s.handlers[d];if(s2.call(s.handlers,d)&&h)return h(s,c,f);if(s.options.passThrough&&s.options.passThrough.includes(d)){if("children"in c){const{children:g,...y}=c,x=h1(y);return x.children=s.all(c),x}return h1(c)}return(s.options.unknownHandler||Dce)(s,c,f)}function u(c){const f=[];if("children"in c){const d=c.children;let h=-1;for(;++h<d.length;){const v=s.one(d[h],c);if(v){if(h&&d[h-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=yO(v.value)),!Array.isArray(v)&&v.type==="element")){const g=v.children[0];g&&g.type==="text"&&(g.value=yO(g.value))}Array.isArray(v)?f.push(...v):f.push(v)}}}return f}}function Ice(e,t){e.position&&(t.position=mse(e))}function Pce(e,t){let r=t;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const o="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:o}}r.type==="element"&&a&&Object.assign(r.properties,h1(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function Dce(e,t){const r=t.data||{},n="value"in t&&!(s2.call(r,"hProperties")||s2.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rce(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
|
152
|
+
`});++n<e.length;)n&&r.push({type:"text",value:`
|
153
|
+
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
|
154
|
+
`}),r}function yO(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function xO(e,t){const r=kce(e,t),n=r.one(e,void 0),i=mce(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
|
155
|
+
`},i),a}function Ece(e,t){return e&&"run"in e?async function(r,n){const i=xO(r,t);await e.run(i,n)}:function(r){return xO(r,t||e)}}function SO(e){if(e)throw e}var X_,bO;function Lce(){if(bO)return X_;bO=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var d;for(d in u);return typeof d>"u"||e.call(u,d)},o=function(u,c){r&&c.name==="__proto__"?r(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},s=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(n)return n(u,c).value}else return;return u[c]};return X_=function l(){var u,c,f,d,h,v,g=arguments[0],y=1,x=arguments.length,S=!1;for(typeof g=="boolean"&&(S=g,g=arguments[1]||{},y=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});y<x;++y)if(u=arguments[y],u!=null)for(c in u)f=s(g,c),d=s(u,c),g!==d&&(S&&d&&(a(d)||(h=i(d)))?(h?(h=!1,v=f&&i(f)?f:[]):v=f&&a(f)?f:{},o(g,{name:c,newValue:l(S,v,d)})):typeof d<"u"&&o(g,{name:c,newValue:d}));return g},X_}var Oce=Lce();const Z_=ia(Oce);function l2(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Nce(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(l,...u){const c=e[++a];let f=-1;if(l){o(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?zce(c,s)(...u):o(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function zce(e,t){let r;return n;function n(...o){const s=e.length>o.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return i(c)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){r||(r=!0,t(o,...s))}function a(o){i(null,o)}}const Ja={basename:Bce,dirname:Fce,extname:Vce,join:$ce,sep:"/"};function Bce(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');wg(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function Fce(e){if(wg(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Vce(e){wg(e);let t=e.length,r=-1,n=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function $ce(...e){let t=-1,r;for(;++t<e.length;)wg(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Gce(r)}function Gce(e){wg(e);const t=e.codePointAt(0)===47;let r=Hce(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Hce(e,t){let r="",n=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),n=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return r}function wg(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Wce={cwd:jce};function jce(){return"/"}function u2(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Uce(e){if(typeof e=="string")e=new URL(e);else if(!u2(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Yce(e)}function Yce(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const K_=["history","path","basename","stem","extname","dirname"];class D6{constructor(t){let r;t?u2(t)?r={path:t}:typeof t=="string"||qce(t)?r={value:t}:r=t:r={},this.cwd=Wce.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<K_.length;){const a=K_[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)K_.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?Ja.basename(this.path):void 0}set basename(t){J_(t,"basename"),Q_(t,"basename"),this.path=Ja.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ja.dirname(this.path):void 0}set dirname(t){_O(this.basename,"dirname"),this.path=Ja.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ja.extname(this.path):void 0}set extname(t){if(Q_(t,"extname"),_O(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ja.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){u2(t)&&(t=Uce(t)),J_(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ja.basename(this.path,this.extname):void 0}set stem(t){J_(t,"stem"),Q_(t,"stem"),this.path=Ja.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new $n(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Q_(e,t){if(e&&e.includes(Ja.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ja.sep+"`")}function J_(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _O(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function qce(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xce=function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};Object.setPrototypeOf(a,n);const o=Object.getOwnPropertyNames(i);for(const s of o){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(a,s,l)}return a},Zce={}.hasOwnProperty;class uk extends Xce{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Nce()}copy(){const t=new uk;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(Z_(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(rw("data",this.frozen),this.namespace[t]=r,this):Zce.call(this.namespace,t)&&this.namespace[t]||void 0:t?(rw("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Sy(t),n=this.parser||this.Parser;return ew("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),ew("process",this.parser||this.Parser),tw("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,o){const s=Sy(t),l=n.parse(s);n.run(l,s,function(c,f,d){if(c||!f||!d)return u(c);const h=f,v=n.stringify(h,d);Jce(v)?d.value=v:d.result=v,u(c,d)});function u(c,f){c||!f?o(c):a?a(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),ew("processSync",this.parser||this.Parser),tw("processSync",this.compiler||this.Compiler),this.process(t,i),CO("processSync","process",r),n;function i(a,o){r=!0,SO(a),n=o}}run(t,r,n){wO(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(o,s){const l=Sy(r);i.run(t,l,u);function u(c,f,d){const h=f||t;c?s(c):o?o(h):n(void 0,h,d)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),CO("runSync","run",n),i;function a(o,s){SO(o),i=s,n=!0}}stringify(t,r){this.freeze();const n=Sy(r),i=this.compiler||this.Compiler;return tw("stringify",i),wO(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(rw("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=Z_(!0,i.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];a(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,d=-1;for(;++f<n.length;)if(n[f][0]===u){d=f;break}if(d===-1)n.push([u,...c]);else if(c.length>0){let[h,...v]=c;const g=n[d][1];l2(g)&&l2(h)&&(h=Z_(!0,g,h)),n[d]=[u,h,...v]}}}}const Kce=new uk().freeze();function ew(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function tw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function rw(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function wO(e){if(!l2(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function CO(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Sy(e){return Qce(e)?e:new D6(e)}function Qce(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Jce(e){return typeof e=="string"||efe(e)}function efe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const tfe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",TO=[],AO={allowDangerousHtml:!0},rfe=/^(https?|ircs?|mailto|xmpp)$/i,nfe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ife(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||TO,l=e.remarkPlugins||TO,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...AO}:AO,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||afe,h=Kce().use(Bue).use(l).use(Ece,u).use(s),v=new D6;typeof n=="string"&&(v.value=n);for(const S of nfe)Object.hasOwn(e,S.from)&&(""+S.from+(S.to?"use `"+S.to+"` instead":"remove it")+tfe+S.id,void 0);const g=h.parse(v);let y=h.runSync(g,v);return i&&(y={type:"element",tagName:"div",properties:{className:i},children:y.type==="root"?y.children:[y]}),P6(y,x),wse(y,{Fragment:z.Fragment,components:a,ignoreInvalidStyle:!0,jsx:z.jsx,jsxs:z.jsxs,passKeys:!0,passNode:!0});function x(S,b,w){if(S.type==="raw"&&w&&typeof b=="number")return c?w.children.splice(b,1):w.children[b]={type:"text",value:S.value},b;if(S.type==="element"){let T;for(T in U_)if(Object.hasOwn(U_,T)&&Object.hasOwn(S.properties,T)){const C=S.properties[T],M=U_[T];(M===null||M.includes(S.tagName))&&(S.properties[T]=d(String(C||""),T,S))}}if(S.type==="element"){let T=t?!t.includes(S.tagName):o?o.includes(S.tagName):!1;if(!T&&r&&typeof b=="number"&&(T=!r(S,b,w)),T&&w&&typeof b=="number")return f&&S.children?w.children.splice(b,1,...S.children):w.children.splice(b,1),b}}}function afe(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||r>-1&&t>r||n>-1&&t>n||rfe.test(e.slice(0,t))?e:""}function p1({content:e}){return z.jsx(ife,{components:{a:an},skipHtml:!1,children:e})}function R6({name:e,label:t,type:r="text",defaultValue:n,choices:i,isSecret:a,isRequired:o}){return i?z.jsx(QM,{defaultValue:n,label:t,name:e,options:i,required:o,sx:{width:"100%"}}):typeof n=="boolean"?z.jsx(E$,{control:z.jsx(JT,{defaultChecked:n,required:o}),label:z.jsx(p1,{content:t}),name:e}):a?z.jsx(Z$,{defaultValue:n,isRequired:o,label:t,name:e}):z.jsx(pd,{defaultValue:n,label:t,name:e,required:o,sx:{width:"100%"},type:r})}var jh={},nw={exports:{}},MO;function Sc(){return MO||(MO=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(nw)),nw.exports}var iw={};const ofe=IY(uJ);var kO;function bc(){return kO||(kO=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ofe}(iw)),iw}var IO;function sfe(){if(IO)return jh;IO=1;var e=Sc();Object.defineProperty(jh,"__esModule",{value:!0}),jh.default=void 0;var t=e(bc()),r=Tl(),n=(0,t.default)((0,r.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");return jh.default=n,jh}var lfe=sfe();const ufe=ia(lfe);var Uh={},PO;function cfe(){if(PO)return Uh;PO=1;var e=Sc();Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.default=void 0;var t=e(bc()),r=Tl(),n=(0,t.default)((0,r.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");return Uh.default=n,Uh}var ffe=cfe();const dfe=ia(ffe),po={DARK:"dark",LIGHT:"light"},hfe=localStorage.theme===po.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?po.DARK:po.LIGHT,Ii=CV,pfe=EV;function qo(e,t){const r=pfe();return $.useCallback(n=>{r(e(n))},[e,r])}const vfe={isDarkMode:!1},E6=Ui({name:"theme",initialState:vfe,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),gfe=E6.actions,L6=E6.reducer;function O6(){const e=Ii(({theme:{isDarkMode:n}})=>n),t=qo(gfe.setIsDarkMode);$.useEffect(()=>{t(hfe===po.DARK)},[]);const r=()=>{localStorage.theme=e?po.LIGHT:po.DARK,t(!e)};return z.jsx(Md,{color:"inherit",onClick:r,children:e?z.jsx(dfe,{}):z.jsx(ufe,{})})}const mfe=e=>DM({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"},p:{margin:0}}}}});function N6(){const e=Ii(({theme:{isDarkMode:r}})=>r);return $.useMemo(()=>mfe(e?po.DARK:po.LIGHT),[e])}function yfe({authProviders:e,customForm:t,error:r,info:n,usernamePasswordCallback:i}){const a=N6();return z.jsxs(c$,{theme:a,children:[z.jsx(P$,{}),z.jsx(ir,{sx:{position:"absolute",top:4,right:4},children:z.jsx(O6,{})}),z.jsxs(ir,{component:"main",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",rowGap:4,boxShadow:24,borderRadius:4,width:400,border:"3px solid black",p:4},children:[z.jsx(ir,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:z.jsx(X$,{})}),i&&!t&&z.jsx("form",{action:i,method:"POST",children:z.jsxs(ir,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[z.jsx(pd,{label:"Username",name:"username"}),z.jsx(Z$,{}),n&&z.jsx(Vf,{severity:"info",children:z.jsx(p1,{content:n})}),r&&z.jsx(Vf,{severity:"error",children:r}),z.jsx(bo,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),t&&z.jsx("form",{action:t.callbackUrl,method:"POST",children:z.jsxs(ir,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[t.inputs.map((o,s)=>z.jsx(R6,{...o},`custom-form-input-${s}`)),n&&z.jsx(Vf,{severity:"info",children:z.jsx(p1,{content:n})}),r&&z.jsx(Vf,{severity:"error",children:r}),z.jsx(bo,{size:"large",type:"submit",variant:"contained",children:t.submitButtonText||"Login"})]})}),e&&z.jsx(ir,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:o,callbackUrl:s,iconUrl:l},u)=>z.jsxs(Md,{href:s,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[z.jsx("img",{height:"32",src:l}),z.jsx(zt,{height:"32",variant:"button",children:o})]},`auth-provider-${u}`))})]})]})}var Yh={},DO;function xfe(){if(DO)return Yh;DO=1;var e=Sc();Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.default=void 0;var t=e(bc()),r=Tl(),n=(0,t.default)((0,r.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");return Yh.default=n,Yh}var Sfe=xfe();const bfe=ia(Sfe);function Ux({open:e,onClose:t,children:r}){return z.jsx(D$,{onClose:t,open:e,children:z.jsxs(bg,{maxWidth:"md",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxHeight:"90vh",overflowY:"auto",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[z.jsx(Md,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:z.jsx(bfe,{})}),r]})})}function _fe(){const[e,t]=$.useState(!1),r=Ii(({swarm:n})=>n.version);return z.jsxs(z.Fragment,{children:[z.jsx(ir,{sx:{display:"flex",justifyContent:"flex-end"},children:z.jsx(bo,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),z.jsxs(Ux,{onClose:()=>t(!1),open:e,children:[z.jsxs("div",{children:[z.jsx(zt,{component:"h2",mb:1,variant:"h4",children:"About"}),z.jsxs(zt,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",z.jsx(an,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),z.jsxs(zt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",z.jsx(an,{href:"https://twitter.com/jonatanheyman",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",z.jsx(an,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),z.jsxs(zt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",z.jsx(an,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),z.jsxs("div",{children:[z.jsx(zt,{component:"h2",mb:1,variant:"h4",children:"Need help getting started?"}),z.jsx(an,{href:"https://locust.cloud",children:"Locust Cloud"})," gives you access to hosted, easily scalable, and distributed load generation, as well as advanced reporting — all while preserving the flexible “it’s just Python” approach to load test scripting that Locust provides"]}),z.jsxs("div",{children:[z.jsx(zt,{component:"h2",mb:1,variant:"h4",children:"Version"}),z.jsx(an,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),z.jsxs("div",{children:[z.jsx(zt,{component:"h2",mb:1,variant:"h4",children:"Links"}),z.jsx(zt,{component:"p",variant:"subtitle1",children:z.jsx(an,{href:"https://github.com/locustio/locust",children:"GitHub"})}),z.jsx(zt,{component:"p",variant:"subtitle1",children:z.jsx(an,{href:"https://docs.locust.io/en/stable",children:"Documentation"})}),z.jsx(zt,{component:"p",variant:"subtitle1",children:z.jsx(an,{href:"https://medium.com/locust-cloud",children:"Blog"})})]})]})]})}function wfe(){return z.jsx(bg,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:z.jsx(_fe,{})})}const z6=e=>(Array.isArray(e)?e.length:Object.keys(e).length)===0;function Cfe(e,t){return{...e,...t}}const Tfe=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},Yx=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),bn={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"},vo=window.templateArgs?Bf(window.templateArgs):{};var tV;vo.isReport&&{...vo,charts:(tV=vo.history)==null||tV.reduce((e,{currentResponseTimePercentiles:t,...r})=>Yx(e,{...t,...r}),{})};function Afe({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return z.jsxs(ir,{sx:{display:"flex",columnGap:2},children:[z.jsxs(ir,{sx:{display:"flex",flexDirection:"column"},children:[z.jsx(zt,{variant:"button",children:"Host"}),z.jsx(H$,{title:r,children:z.jsx(zt,{noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"400px"},children:r})})]}),z.jsx(Pf,{flexItem:!0,orientation:"vertical"}),z.jsxs(ir,{sx:{display:"flex",flexDirection:"column"},children:[z.jsx(zt,{variant:"button",children:"Status"}),z.jsx(zt,{variant:"button",children:t})]}),(t===bn.RUNNING||t===bn.SPAWNING)&&z.jsxs(z.Fragment,{children:[z.jsx(Pf,{flexItem:!0,orientation:"vertical"}),z.jsxs(ir,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[z.jsx(zt,{variant:"button",children:"Users"}),z.jsx(zt,{noWrap:!0,variant:"button",children:a})]})]}),e&&z.jsxs(z.Fragment,{children:[z.jsx(Pf,{flexItem:!0,orientation:"vertical"}),z.jsxs(ir,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[z.jsx(zt,{variant:"button",children:"Workers"}),z.jsx(zt,{noWrap:!0,variant:"button",children:o})]})]}),z.jsx(Pf,{flexItem:!0,orientation:"vertical"}),z.jsxs(ir,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[z.jsx(zt,{variant:"button",children:"RPS"}),z.jsx(zt,{noWrap:!0,variant:"button",children:n})]}),z.jsx(Pf,{flexItem:!0,orientation:"vertical"}),z.jsxs(ir,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[z.jsx(zt,{variant:"button",children:"Failures"}),z.jsx(zt,{noWrap:!0,variant:"button",children:`${i}%`})]})]})}const Mfe=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:a,userCount:o}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:a,userCount:o,workerCount:n}),kfe=ki(Mfe)(Afe);var qh={},RO;function Ife(){if(RO)return qh;RO=1;var e=Sc();Object.defineProperty(qh,"__esModule",{value:!0}),qh.default=void 0;var t=e(bc()),r=Tl(),n=(0,t.default)((0,r.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");return qh.default=n,qh}var Pfe=Ife();const ck=ia(Pfe),Dfe="input, select, textarea",Rfe=e=>e instanceof HTMLInputElement&&e.getAttribute("data-type")==="number"?Number(e.value):e instanceof HTMLInputElement&&e.type==="checkbox"?e.checked:e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions).map(t=>t.value):e.value;function B6({children:e,onSubmit:t,onChange:r}){const n=$.useCallback(async i=>{i.preventDefault();const o=[...i.target.querySelectorAll(Dfe)].reduce((s,l)=>({...s,[l.name]:Rfe(l)}),{});t(o)},[t]);return z.jsx("form",{onChange:r,onSubmit:n,children:e})}function EO({defaultValue:e,...t}){const[r,n]=$.useState(e||""),i=a=>{t.onChange&&t.onChange(a),!((a.target.value.match(/\./g)||[]).length>1)&&n(a.target.value.replace(/[^0-9.]/g,""))};return $.useEffect(()=>{e&&n(e)},[e]),z.jsx(pd,{...t,onChange:i,value:r})}function Efe({extraOptions:e}){return z.jsxs(OM,{children:[z.jsx(zM,{expandIcon:z.jsx(ck,{}),children:z.jsx(zt,{children:"Custom parameters"})}),z.jsx(NM,{children:z.jsx(ir,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>$.createElement(R6,{...r,key:`valid-parameter-${n}`,label:r.helpText?`${VT(t)} (${r.helpText})`:VT(t),name:t}))})})]})}var Xh={},LO;function Lfe(){if(LO)return Xh;LO=1;var e=Sc();Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.default=void 0;var t=e(bc()),r=Tl(),n=(0,t.default)((0,r.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");return Xh.default=n,Xh}var Ofe=Lfe();const Nfe=ia(Ofe);var F6=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(F6||{});function zfe(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function Bfe(e){return new RegExp("(^|:)//").test(e)}var Ffe=e=>e.replace(/\/$/,""),Vfe=e=>e.replace(/^\//,"");function $fe(e,t){if(!e)return t;if(!t)return e;if(Bfe(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=Ffe(e),t=Vfe(t),`${e}${r}${t}`}var OO=e=>[].concat(...e);function Gfe(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function Hfe(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var NO=yo;function V6(e,t){if(e===t||!(NO(e)&&NO(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),n=Object.keys(e);let i=r.length===n.length;const a=Array.isArray(t)?[]:{};for(const o of r)a[o]=V6(e[o],t[o]),i&&(i=e[o]===a[o]);return i?e:a}var zO=(...e)=>fetch(...e),Wfe=e=>e.status>=200&&e.status<=299,jfe=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function BO(e){if(!yo(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}function Ufe({baseUrl:e,prepareHeaders:t=f=>f,fetchFn:r=zO,paramsSerializer:n,isJsonContentType:i=jfe,jsonContentType:a="application/json",jsonReplacer:o,timeout:s,responseHandler:l,validateStatus:u,...c}={}){return typeof fetch>"u"&&r===zO&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,h)=>{const{signal:v,getState:g,extra:y,endpoint:x,forced:S,type:b}=h;let w,{url:T,headers:C=new Headers(c.headers),params:M=void 0,responseHandler:k=l??"json",validateStatus:I=u??Wfe,timeout:P=s,...R}=typeof d=="string"?{url:d}:d,L={...c,signal:v,...R};C=new Headers(BO(C)),L.headers=await t(C,{getState:g,extra:y,endpoint:x,forced:S,type:b})||C;const O=Z=>typeof Z=="object"&&(yo(Z)||Array.isArray(Z)||typeof Z.toJSON=="function");if(!L.headers.has("content-type")&&O(L.body)&&L.headers.set("content-type",a),O(L.body)&&i(L.headers)&&(L.body=JSON.stringify(L.body,o)),M){const Z=~T.indexOf("?")?"&":"?",j=n?n(M):new URLSearchParams(BO(M));T+=Z+j}T=$fe(e,T);const N=new Request(T,L);w={request:new Request(T,L)};let G,q=!1,H=P&&setTimeout(()=>{q=!0,h.abort()},P);try{G=await r(N)}catch(Z){return{error:{status:q?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Z)},meta:w}}finally{H&&clearTimeout(H)}const X=G.clone();w.response=X;let F,Y="";try{let Z;if(await Promise.all([f(G,k).then(j=>F=j,j=>Z=j),X.text().then(j=>Y=j,()=>{})]),Z)throw Z}catch(Z){return{error:{status:"PARSING_ERROR",originalStatus:G.status,data:Y,error:String(Z)},meta:w}}return I(G,F)?{data:F,meta:w}:{error:{status:G.status,data:F},meta:w}};async function f(d,h){if(typeof h=="function")return h(d);if(h==="content-type"&&(h=i(d.headers)?"json":"text"),h==="json"){const v=await d.text();return v.length?JSON.parse(v):null}return d.text()}}var FO=class{constructor(e,t=void 0){this.value=e,this.meta=t}},fk=Ln("__rtkq/focused"),$6=Ln("__rtkq/unfocused"),dk=Ln("__rtkq/online"),G6=Ln("__rtkq/offline");function H6(e){return e.type==="query"}function Yfe(e){return e.type==="mutation"}function hk(e,t,r,n,i,a){return qfe(e)?e(t,r,n,i).map(c2).map(a):Array.isArray(e)?e.map(c2).map(a):[]}function qfe(e){return typeof e=="function"}function c2(e){return typeof e=="string"?{type:e}:e}function VO(e){return e!=null}function Xf(e){let t=0;for(const r in e)t++;return t}function Xfe(e,t){return e.catch(t)}var Ev=Symbol("forceQueryFn"),f2=e=>typeof e[Ev]=="function";function Zfe({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:i}){const a=new Map,o=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:u}=n.internalActions;return{buildInitiateQuery:v,buildInitiateMutation:g,getRunningQueryThunk:c,getRunningMutationThunk:f,getRunningQueriesThunk:d,getRunningMutationsThunk:h};function c(y,x){return S=>{var T;const b=i.endpointDefinitions[y],w=e({queryArgs:x,endpointDefinition:b,endpointName:y});return(T=a.get(S))==null?void 0:T[w]}}function f(y,x){return S=>{var b;return(b=o.get(S))==null?void 0:b[x]}}function d(){return y=>Object.values(a.get(y)||{}).filter(VO)}function h(){return y=>Object.values(o.get(y)||{}).filter(VO)}function v(y,x){const S=(b,{subscribe:w=!0,forceRefetch:T,subscriptionOptions:C,[Ev]:M,...k}={})=>(I,P)=>{var Z;const R=e({queryArgs:b,endpointDefinition:x,endpointName:y}),L=t({...k,type:"query",subscribe:w,forceRefetch:T,subscriptionOptions:C,endpointName:y,originalArgs:b,queryCacheKey:R,[Ev]:M}),O=n.endpoints[y].select(b),N=I(L),B=O(P()),{requestId:G,abort:q}=N,H=B.requestId!==G,X=(Z=a.get(I))==null?void 0:Z[R],F=()=>O(P()),Y=Object.assign(M?N.then(F):H&&!X?Promise.resolve(B):Promise.all([X,N]).then(F),{arg:b,requestId:G,subscriptionOptions:C,queryCacheKey:R,abort:q,async unwrap(){const j=await Y;if(j.isError)throw j.error;return j.data},refetch:()=>I(S(b,{subscribe:!1,forceRefetch:!0})),unsubscribe(){w&&I(s({queryCacheKey:R,requestId:G}))},updateSubscriptionOptions(j){Y.subscriptionOptions=j,I(u({endpointName:y,requestId:G,queryCacheKey:R,options:j}))}});if(!X&&!H&&!M){const j=a.get(I)||{};j[R]=Y,a.set(I,j),Y.then(()=>{delete j[R],Xf(j)||a.delete(I)})}return Y};return S}function g(y){return(x,{track:S=!0,fixedCacheKey:b}={})=>(w,T)=>{const C=r({type:"mutation",endpointName:y,originalArgs:x,track:S,fixedCacheKey:b}),M=w(C),{requestId:k,abort:I,unwrap:P}=M,R=Xfe(M.unwrap().then(B=>({data:B})),B=>({error:B})),L=()=>{w(l({requestId:k,fixedCacheKey:b}))},O=Object.assign(R,{arg:M.arg,requestId:k,abort:I,unwrap:P,reset:L}),N=o.get(w)||{};return o.set(w,N),N[k]=O,O.then(()=>{delete N[k],Xf(N)||o.delete(w)}),b&&(N[b]=O,O.then(()=>{N[b]===O&&(delete N[b],Xf(N)||o.delete(w))})),O}}}function $O(e){return e}function Kfe({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:a}){const o=(S,b,w,T)=>(C,M)=>{const k=r[S],I=n({queryArgs:b,endpointDefinition:k,endpointName:S});if(C(i.internalActions.queryResultPatched({queryCacheKey:I,patches:w})),!T)return;const P=i.endpoints[S].select(b)(M()),R=hk(k.providesTags,P.data,void 0,b,{},a);C(i.internalActions.updateProvidedBy({queryCacheKey:I,providedTags:R}))},s=(S,b,w,T=!0)=>(C,M)=>{const I=i.endpoints[S].select(b)(M());let P={patches:[],inversePatches:[],undo:()=>C(i.util.patchQueryData(S,b,P.inversePatches,T))};if(I.status==="uninitialized")return P;let R;if("data"in I)if(Pa(I.data)){const[L,O,N]=hV(I.data,w);P.patches.push(...O),P.inversePatches.push(...N),R=L}else R=w(I.data),P.patches.push({op:"replace",path:[],value:R}),P.inversePatches.push({op:"replace",path:[],value:I.data});return P.patches.length===0||C(i.util.patchQueryData(S,b,P.patches,T)),P},l=(S,b,w)=>T=>T(i.endpoints[S].initiate(b,{subscribe:!1,forceRefetch:!0,[Ev]:()=>({data:w})})),u=async(S,{signal:b,abort:w,rejectWithValue:T,fulfillWithValue:C,dispatch:M,getState:k,extra:I})=>{const P=r[S.endpointName];try{let R=$O,L;const O={signal:b,abort:w,dispatch:M,getState:k,extra:I,endpoint:S.endpointName,type:S.type,forced:S.type==="query"?c(S,k()):void 0},N=S.type==="query"?S[Ev]:void 0;if(N?L=N():P.query?(L=await t(P.query(S.originalArgs),O,P.extraOptions),P.transformResponse&&(R=P.transformResponse)):L=await P.queryFn(S.originalArgs,O,P.extraOptions,B=>t(B,O,P.extraOptions)),typeof process<"u",L.error)throw new FO(L.error,L.meta);return C(await R(L.data,L.meta,S.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:L.meta,[zf]:!0})}catch(R){let L=R;if(L instanceof FO){let O=$O;P.query&&P.transformErrorResponse&&(O=P.transformErrorResponse);try{return T(await O(L.value,L.meta,S.originalArgs),{baseQueryMeta:L.meta,[zf]:!0})}catch(N){L=N}}throw typeof process<"u",console.error(L),L}};function c(S,b){var k,I,P;const w=(I=(k=b[e])==null?void 0:k.queries)==null?void 0:I[S.queryCacheKey],T=(P=b[e])==null?void 0:P.config.refetchOnMountOrArgChange,C=w==null?void 0:w.fulfilledTimeStamp,M=S.forceRefetch??(S.subscribe&&T);return M?M===!0||(Number(new Date)-Number(C))/1e3>=M:!1}const f=pE(`${e}/executeQuery`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[zf]:!0}},condition(S,{getState:b}){var P,R,L;const w=b(),T=(R=(P=w[e])==null?void 0:P.queries)==null?void 0:R[S.queryCacheKey],C=T==null?void 0:T.fulfilledTimeStamp,M=S.originalArgs,k=T==null?void 0:T.originalArgs,I=r[S.endpointName];return f2(S)?!0:(T==null?void 0:T.status)==="pending"?!1:c(S,w)||H6(I)&&((L=I==null?void 0:I.forceRefetch)!=null&&L.call(I,{currentArg:M,previousArg:k,endpointState:T,state:w}))?!0:!C},dispatchConditionRejection:!0}),d=pE(`${e}/executeMutation`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[zf]:!0}}}),h=S=>"force"in S,v=S=>"ifOlderThan"in S,g=(S,b,w)=>(T,C)=>{const M=h(w)&&w.force,k=v(w)&&w.ifOlderThan,I=(R=!0)=>{const L={forceRefetch:R,isPrefetch:!0};return i.endpoints[S].initiate(b,L)},P=i.endpoints[S].select(b)(C());if(M)T(I());else if(k){const R=P==null?void 0:P.fulfilledTimeStamp;if(!R){T(I());return}(Number(new Date)-Number(new Date(R)))/1e3>=k&&T(I())}else T(I(!1))};function y(S){return b=>{var w,T;return((T=(w=b==null?void 0:b.meta)==null?void 0:w.arg)==null?void 0:T.endpointName)===S}}function x(S,b){return{matchPending:Up(lM(S),y(b)),matchFulfilled:Up(vl(S),y(b)),matchRejected:Up(nd(S),y(b))}}return{queryThunk:f,mutationThunk:d,prefetch:g,updateQueryData:s,upsertQueryData:l,patchQueryData:o,buildMatchThunkActions:x}}function W6(e,t,r,n){return hk(r[e.meta.arg.endpointName][t],vl(e)?e.payload:void 0,gx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function by(e,t,r){const n=e[t];n&&r(n)}function Lv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function GO(e,t,r){const n=e[Lv(t)];n&&r(n)}var Zh={};function Qfe({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:i,extractRehydrationInfo:a,hasRehydrationInfo:o},assertTagType:s,config:l}){const u=Ln(`${e}/resetApiState`),c=Ui({name:`${e}/queries`,initialState:Zh,reducers:{removeQueryResult:{reducer(b,{payload:{queryCacheKey:w}}){delete b[w]},prepare:Oh()},queryResultPatched:{reducer(b,{payload:{queryCacheKey:w,patches:T}}){by(b,w,C=>{C.data=lE(C.data,T.concat())})},prepare:Oh()}},extraReducers(b){b.addCase(t.pending,(w,{meta:T,meta:{arg:C}})=>{var k;const M=f2(C);w[k=C.queryCacheKey]??(w[k]={status:"uninitialized",endpointName:C.endpointName}),by(w,C.queryCacheKey,I=>{I.status="pending",I.requestId=M&&I.requestId?I.requestId:T.requestId,C.originalArgs!==void 0&&(I.originalArgs=C.originalArgs),I.startedTimeStamp=T.startedTimeStamp})}).addCase(t.fulfilled,(w,{meta:T,payload:C})=>{by(w,T.arg.queryCacheKey,M=>{if(M.requestId!==T.requestId&&!f2(T.arg))return;const{merge:k}=n[T.arg.endpointName];if(M.status="fulfilled",k)if(M.data!==void 0){const{fulfilledTimeStamp:I,arg:P,baseQueryMeta:R,requestId:L}=T;let O=dg(M.data,N=>k(N,C,{arg:P.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:I,requestId:L}));M.data=O}else M.data=C;else M.data=n[T.arg.endpointName].structuralSharing??!0?V6(Ia(M.data)?UY(M.data):M.data,C):C;delete M.error,M.fulfilledTimeStamp=T.fulfilledTimeStamp})}).addCase(t.rejected,(w,{meta:{condition:T,arg:C,requestId:M},error:k,payload:I})=>{by(w,C.queryCacheKey,P=>{if(!T){if(P.requestId!==M)return;P.status="rejected",P.error=I??k}})}).addMatcher(o,(w,T)=>{const{queries:C}=a(T);for(const[M,k]of Object.entries(C))((k==null?void 0:k.status)==="fulfilled"||(k==null?void 0:k.status)==="rejected")&&(w[M]=k)})}}),f=Ui({name:`${e}/mutations`,initialState:Zh,reducers:{removeMutationResult:{reducer(b,{payload:w}){const T=Lv(w);T in b&&delete b[T]},prepare:Oh()}},extraReducers(b){b.addCase(r.pending,(w,{meta:T,meta:{requestId:C,arg:M,startedTimeStamp:k}})=>{M.track&&(w[Lv(T)]={requestId:C,status:"pending",endpointName:M.endpointName,startedTimeStamp:k})}).addCase(r.fulfilled,(w,{payload:T,meta:C})=>{C.arg.track&&GO(w,C,M=>{M.requestId===C.requestId&&(M.status="fulfilled",M.data=T,M.fulfilledTimeStamp=C.fulfilledTimeStamp)})}).addCase(r.rejected,(w,{payload:T,error:C,meta:M})=>{M.arg.track&&GO(w,M,k=>{k.requestId===M.requestId&&(k.status="rejected",k.error=T??C)})}).addMatcher(o,(w,T)=>{const{mutations:C}=a(T);for(const[M,k]of Object.entries(C))((k==null?void 0:k.status)==="fulfilled"||(k==null?void 0:k.status)==="rejected")&&M!==(k==null?void 0:k.requestId)&&(w[M]=k)})}}),d=Ui({name:`${e}/invalidation`,initialState:Zh,reducers:{updateProvidedBy:{reducer(b,w){var M,k;const{queryCacheKey:T,providedTags:C}=w.payload;for(const I of Object.values(b))for(const P of Object.values(I)){const R=P.indexOf(T);R!==-1&&P.splice(R,1)}for(const{type:I,id:P}of C){const R=(M=b[I]??(b[I]={}))[k=P||"__internal_without_id"]??(M[k]=[]);R.includes(T)||R.push(T)}},prepare:Oh()}},extraReducers(b){b.addCase(c.actions.removeQueryResult,(w,{payload:{queryCacheKey:T}})=>{for(const C of Object.values(w))for(const M of Object.values(C)){const k=M.indexOf(T);k!==-1&&M.splice(k,1)}}).addMatcher(o,(w,T)=>{var M,k;const{provided:C}=a(T);for(const[I,P]of Object.entries(C))for(const[R,L]of Object.entries(P)){const O=(M=w[I]??(w[I]={}))[k=R||"__internal_without_id"]??(M[k]=[]);for(const N of L)O.includes(N)||O.push(N)}}).addMatcher(rs(vl(t),gx(t)),(w,T)=>{const C=W6(T,"providesTags",n,s),{queryCacheKey:M}=T.meta.arg;d.caseReducers.updateProvidedBy(w,d.actions.updateProvidedBy({queryCacheKey:M,providedTags:C}))})}}),h=Ui({name:`${e}/subscriptions`,initialState:Zh,reducers:{updateSubscriptionOptions(b,w){},unsubscribeQueryResult(b,w){},internal_getRTKQSubscriptions(){}}}),v=Ui({name:`${e}/internalSubscriptions`,initialState:Zh,reducers:{subscriptionsUpdated:{reducer(b,w){return lE(b,w.payload)},prepare:Oh()}}}),g=Ui({name:`${e}/config`,initialState:{online:Gfe(),focused:Hfe(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(b,{payload:w}){b.middlewareRegistered=b.middlewareRegistered==="conflict"||i!==w?"conflict":!0}},extraReducers:b=>{b.addCase(dk,w=>{w.online=!0}).addCase(G6,w=>{w.online=!1}).addCase(fk,w=>{w.focused=!0}).addCase($6,w=>{w.focused=!1}).addMatcher(o,w=>({...w}))}}),y=hx({queries:c.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:v.reducer,config:g.reducer}),x=(b,w)=>y(u.match(w)?void 0:b,w),S={...g.actions,...c.actions,...h.actions,...v.actions,...f.actions,...d.actions,resetApiState:u};return{reducer:x,actions:S}}var Bu=Symbol.for("RTKQ/skipToken"),j6={status:"uninitialized"},HO=dg(j6,()=>{}),WO=dg(j6,()=>{});function Jfe({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=f=>HO,i=f=>WO;return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:u,selectCachedArgsForQuery:c};function a(f){return{...f,...zfe(f.status)}}function o(f){return f[t]}function s(f,d){return h=>{const v=e({queryArgs:h,endpointDefinition:d,endpointName:f});return r(h===Bu?n:x=>{var S,b;return((b=(S=o(x))==null?void 0:S.queries)==null?void 0:b[v])??HO},a)}}function l(){return f=>{let d;return typeof f=="object"?d=Lv(f)??Bu:d=f,r(d===Bu?i:g=>{var y,x;return((x=(y=o(g))==null?void 0:y.mutations)==null?void 0:x[d])??WO},a)}}function u(f,d){const h=f[t],v=new Set;for(const g of d.map(c2)){const y=h.provided[g.type];if(!y)continue;let x=(g.id!==void 0?y[g.id]:OO(Object.values(y)))??[];for(const S of x)v.add(S)}return OO(Array.from(v.values()).map(g=>{const y=h.queries[g];return y?[{queryCacheKey:g,endpointName:y.endpointName,originalArgs:y.originalArgs}]:[]}))}function c(f,d){return Object.values(f[t].queries).filter(h=>(h==null?void 0:h.endpointName)===d&&h.status!=="uninitialized").map(h=>h.originalArgs)}}var of=WeakMap?new WeakMap:void 0,jO=({endpointName:e,queryArgs:t})=>{let r="";const n=of==null?void 0:of.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=yo(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));yo(t)&&(of==null||of.set(t,i)),r=i}return`${e}(${r})`};function ede(...e){return function(r){const n=Cv(u=>{var c;return(c=r.extractRehydrationInfo)==null?void 0:c.call(r,u,{reducerPath:r.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...r,extractRehydrationInfo:n,serializeQueryArgs(u){let c=jO;if("serializeQueryArgs"in u.endpointDefinition){const f=u.endpointDefinition.serializeQueryArgs;c=d=>{const h=f(d);return typeof h=="string"?h:jO({...d,queryArgs:h})}}else r.serializeQueryArgs&&(c=r.serializeQueryArgs);return c(u)},tagTypes:[...r.tagTypes||[]]},a={endpointDefinitions:{},batch(u){u()},apiUid:sM(),extractRehydrationInfo:n,hasRehydrationInfo:Cv(u=>n(u)!=null)},o={injectEndpoints:l,enhanceEndpoints({addTagTypes:u,endpoints:c}){if(u)for(const f of u)i.tagTypes.includes(f)||i.tagTypes.push(f);if(c)for(const[f,d]of Object.entries(c))typeof d=="function"?d(a.endpointDefinitions[f]):Object.assign(a.endpointDefinitions[f]||{},d);return o}},s=e.map(u=>u.init(o,i,a));function l(u){const c=u.endpoints({query:f=>({...f,type:"query"}),mutation:f=>({...f,type:"mutation"})});for(const[f,d]of Object.entries(c)){if(u.overrideExisting!==!0&&f in a.endpointDefinitions){if(u.overrideExisting==="throw")throw new Error(_n(39));typeof process<"u";continue}a.endpointDefinitions[f]=d;for(const h of s)h.injectEndpoint(f,d)}return o}return o.injectEndpoints({endpoints:r.endpoints})}}function tde(e){for(let t in e)return!1;return!0}var rde=2147483647/1e3-1,nde=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions,s=rs(o.match,r.fulfilled,r.rejected);function l(d){const h=i.currentSubscriptions[d];return!!h&&!tde(h)}const u={},c=(d,h,v)=>{var g;if(s(d)){const y=h.getState()[e],{queryCacheKey:x}=o.match(d)?d.payload:d.meta.arg;f(x,(g=y.queries[x])==null?void 0:g.endpointName,h,y.config)}if(t.util.resetApiState.match(d))for(const[y,x]of Object.entries(u))x&&clearTimeout(x),delete u[y];if(n.hasRehydrationInfo(d)){const y=h.getState()[e],{queries:x}=n.extractRehydrationInfo(d);for(const[S,b]of Object.entries(x))f(S,b==null?void 0:b.endpointName,h,y.config)}};function f(d,h,v,g){const y=n.endpointDefinitions[h],x=(y==null?void 0:y.keepUnusedDataFor)??g.keepUnusedDataFor;if(x===1/0)return;const S=Math.max(0,Math.min(x,rde));if(!l(d)){const b=u[d];b&&clearTimeout(b),u[d]=setTimeout(()=>{l(d)||v.dispatch(a({queryCacheKey:d})),delete u[d]},S*1e3)}}return c},ide=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:i,api:a,assertTagType:o,refetchQuery:s,internalState:l})=>{const{removeQueryResult:u}=a.internalActions,c=rs(vl(n),gx(n)),f=rs(vl(n,i),nd(n,i));let d=[];const h=(y,x)=>{c(y)?g(W6(y,"invalidatesTags",r,o),x):f(y)?g([],x):a.util.invalidateTags.match(y)&&g(hk(y.payload,void 0,void 0,void 0,void 0,o),x)};function v(y){var x,S;for(const b in y.queries)if(((x=y.queries[b])==null?void 0:x.status)==="pending")return!0;for(const b in y.mutations)if(((S=y.mutations[b])==null?void 0:S.status)==="pending")return!0;return!1}function g(y,x){const S=x.getState(),b=S[e];if(d.push(...y),b.config.invalidationBehavior==="delayed"&&v(b))return;const w=d;if(d=[],w.length===0)return;const T=a.util.selectInvalidatedBy(S,w);t.batch(()=>{const C=Array.from(T.values());for(const{queryCacheKey:M}of C){const k=b.queries[M],I=l.currentSubscriptions[M]??{};k&&(Xf(I)===0?x.dispatch(u({queryCacheKey:M})):k.status!=="uninitialized"&&x.dispatch(s(k,M)))}})}return h},ade=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const a={},o=(d,h)=>{(r.internalActions.updateSubscriptionOptions.match(d)||r.internalActions.unsubscribeQueryResult.match(d))&&l(d.payload,h),(t.pending.match(d)||t.rejected.match(d)&&d.meta.condition)&&l(d.meta.arg,h),(t.fulfilled.match(d)||t.rejected.match(d)&&!d.meta.condition)&&s(d.meta.arg,h),r.util.resetApiState.match(d)&&c()};function s({queryCacheKey:d},h){const v=h.getState()[e],g=v.queries[d],y=i.currentSubscriptions[d];if(!g||g.status==="uninitialized")return;const{lowestPollingInterval:x,skipPollingIfUnfocused:S}=f(y);if(!Number.isFinite(x))return;const b=a[d];b!=null&&b.timeout&&(clearTimeout(b.timeout),b.timeout=void 0);const w=Date.now()+x;a[d]={nextPollTimestamp:w,pollingInterval:x,timeout:setTimeout(()=>{(v.config.focused||!S)&&h.dispatch(n(g,d)),s({queryCacheKey:d},h)},x)}}function l({queryCacheKey:d},h){const g=h.getState()[e].queries[d],y=i.currentSubscriptions[d];if(!g||g.status==="uninitialized")return;const{lowestPollingInterval:x}=f(y);if(!Number.isFinite(x)){u(d);return}const S=a[d],b=Date.now()+x;(!S||b<S.nextPollTimestamp)&&s({queryCacheKey:d},h)}function u(d){const h=a[d];h!=null&&h.timeout&&clearTimeout(h.timeout),delete a[d]}function c(){for(const d of Object.keys(a))u(d)}function f(d={}){let h=!1,v=Number.POSITIVE_INFINITY;for(let g in d)d[g].pollingInterval&&(v=Math.min(d[g].pollingInterval,v),h=d[g].skipPollingIfUnfocused||h);return{lowestPollingInterval:v,skipPollingIfUnfocused:h}}return o},ode=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:a}=r.internalActions,o=(l,u)=>{fk.match(l)&&s(u,"refetchOnFocus"),dk.match(l)&&s(u,"refetchOnReconnect")};function s(l,u){const c=l.getState()[e],f=c.queries,d=i.currentSubscriptions;t.batch(()=>{for(const h of Object.keys(d)){const v=f[h],g=d[h];if(!g||!v)continue;(Object.values(g).some(x=>x[u]===!0)||Object.values(g).every(x=>x[u]===void 0)&&c.config[u])&&(Xf(g)===0?l.dispatch(a({queryCacheKey:h})):v.status!=="uninitialized"&&l.dispatch(n(v,h)))}})}return o},UO=new Error("Promise never resolved before cacheEntryRemoved."),sde=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:a})=>{const o=zT(n),s=zT(i),l=vl(n,i),u={},c=(h,v,g)=>{const y=f(h);if(n.pending.match(h)){const x=g[t].queries[y],S=v.getState()[t].queries[y];!x&&S&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,y,v,h.meta.requestId)}else if(i.pending.match(h))v.getState()[t].mutations[y]&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,y,v,h.meta.requestId);else if(l(h)){const x=u[y];x!=null&&x.valueResolved&&(x.valueResolved({data:h.payload,meta:h.meta.baseQueryMeta}),delete x.valueResolved)}else if(e.internalActions.removeQueryResult.match(h)||e.internalActions.removeMutationResult.match(h)){const x=u[y];x&&(delete u[y],x.cacheEntryRemoved())}else if(e.util.resetApiState.match(h))for(const[x,S]of Object.entries(u))delete u[x],S.cacheEntryRemoved()};function f(h){return o(h)?h.meta.arg.queryCacheKey:s(h)?h.meta.arg.fixedCacheKey??h.meta.requestId:e.internalActions.removeQueryResult.match(h)?h.payload.queryCacheKey:e.internalActions.removeMutationResult.match(h)?Lv(h.payload):""}function d(h,v,g,y,x){const S=r.endpointDefinitions[h],b=S==null?void 0:S.onCacheEntryAdded;if(!b)return;let w={};const T=new Promise(R=>{w.cacheEntryRemoved=R}),C=Promise.race([new Promise(R=>{w.valueResolved=R}),T.then(()=>{throw UO})]);C.catch(()=>{}),u[g]=w;const M=e.endpoints[h].select(S.type==="query"?v:g),k=y.dispatch((R,L,O)=>O),I={...y,getCacheEntry:()=>M(y.getState()),requestId:x,extra:k,updateCachedData:S.type==="query"?R=>y.dispatch(e.util.updateQueryData(h,v,R)):void 0,cacheDataLoaded:C,cacheEntryRemoved:T},P=b(v,I);Promise.resolve(P).catch(R=>{if(R!==UO)throw R})}return c},lde=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=lM(r,n),a=nd(r,n),o=vl(r,n),s={};return(u,c)=>{var f,d;if(i(u)){const{requestId:h,arg:{endpointName:v,originalArgs:g}}=u.meta,y=t.endpointDefinitions[v],x=y==null?void 0:y.onQueryStarted;if(x){const S={},b=new Promise((M,k)=>{S.resolve=M,S.reject=k});b.catch(()=>{}),s[h]=S;const w=e.endpoints[v].select(y.type==="query"?g:h),T=c.dispatch((M,k,I)=>I),C={...c,getCacheEntry:()=>w(c.getState()),requestId:h,extra:T,updateCachedData:y.type==="query"?M=>c.dispatch(e.util.updateQueryData(v,g,M)):void 0,queryFulfilled:b};x(g,C)}}else if(o(u)){const{requestId:h,baseQueryMeta:v}=u.meta;(f=s[h])==null||f.resolve({data:u.payload,meta:v}),delete s[h]}else if(a(u)){const{requestId:h,rejectedWithValue:v,baseQueryMeta:g}=u.meta;(d=s[h])==null||d.reject({error:u.payload??u.error,isUnhandledError:!v,meta:g}),delete s[h]}}},ude=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t)),typeof process<"u"},cde=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let i=null,a=null;const{updateSubscriptionOptions:o,unsubscribeQueryResult:s}=e.internalActions,l=(h,v)=>{var y,x,S;if(o.match(v)){const{queryCacheKey:b,requestId:w,options:T}=v.payload;return(y=h==null?void 0:h[b])!=null&&y[w]&&(h[b][w]=T),!0}if(s.match(v)){const{queryCacheKey:b,requestId:w}=v.payload;return h[b]&&delete h[b][w],!0}if(e.internalActions.removeQueryResult.match(v))return delete h[v.payload.queryCacheKey],!0;if(t.pending.match(v)){const{meta:{arg:b,requestId:w}}=v,T=h[x=b.queryCacheKey]??(h[x]={});return T[`${w}_running`]={},b.subscribe&&(T[w]=b.subscriptionOptions??T[w]??{}),!0}let g=!1;if(t.fulfilled.match(v)||t.rejected.match(v)){const b=h[v.meta.arg.queryCacheKey]||{},w=`${v.meta.requestId}_running`;g||(g=!!b[w]),delete b[w]}if(t.rejected.match(v)){const{meta:{condition:b,arg:w,requestId:T}}=v;if(b&&w.subscribe){const C=h[S=w.queryCacheKey]??(h[S]={});C[T]=w.subscriptionOptions??C[T]??{},g=!0}}return g},u=()=>r.currentSubscriptions,d={getSubscriptions:u,getSubscriptionCount:h=>{const g=u()[h]??{};return Xf(g)},isRequestSubscribed:(h,v)=>{var y;const g=u();return!!((y=g==null?void 0:g[h])!=null&&y[v])}};return(h,v)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(h))return i=r.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(h))return[!1,d];const g=l(r.currentSubscriptions,h);let y=!0;if(g){a||(a=setTimeout(()=>{const b=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,w]=hV(i,()=>b);v.next(e.internalActions.subscriptionsUpdated(w)),i=b,a=null},500));const x=typeof h.type=="string"&&!!h.type.startsWith(n),S=t.rejected.match(h)&&h.meta.condition&&!!h.meta.arg.subscribe;y=!x&&!S}return[y,!1]}};function fde(e){const{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:a}=i,o={invalidateTags:Ln(`${t}/invalidateTags`)},s=f=>f.type.startsWith(`${t}/`),l=[ude,nde,ide,ade,sde,lde];return{middleware:f=>{let d=!1;const v={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:s},g=l.map(S=>S(v)),y=cde(v),x=ode(v);return S=>b=>{if(!oV(b))return S(b);d||(d=!0,f.dispatch(n.internalActions.middlewareRegistered(a)));const w={...f,next:S},T=f.getState(),[C,M]=y(b,w,T);let k;if(C?k=S(b):k=M,f.getState()[t]&&(x(b,w,T),s(b)||i.hasRehydrationInfo(b)))for(let I of g)I(b,w,T);return k}},actions:o};function c(f,d,h={}){return r({type:"query",endpointName:f.endpointName,originalArgs:f.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d,...h})}}function Bs(e,...t){return Object.assign(e,...t)}var YO=Symbol(),dde=({createSelector:e=oM}={})=>({name:YO,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:a,keepUnusedDataFor:o,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:u,invalidationBehavior:c},f){tq();const d=H=>(typeof process<"u",H);Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:dk,onOffline:G6,onFocus:fk,onFocusLost:$6},util:{}});const{queryThunk:h,mutationThunk:v,patchQueryData:g,updateQueryData:y,upsertQueryData:x,prefetch:S,buildMatchThunkActions:b}=Kfe({baseQuery:r,reducerPath:i,context:f,api:t,serializeQueryArgs:a,assertTagType:d}),{reducer:w,actions:T}=Qfe({context:f,queryThunk:h,mutationThunk:v,reducerPath:i,assertTagType:d,config:{refetchOnFocus:l,refetchOnReconnect:u,refetchOnMountOrArgChange:s,keepUnusedDataFor:o,reducerPath:i,invalidationBehavior:c}});Bs(t.util,{patchQueryData:g,updateQueryData:y,upsertQueryData:x,prefetch:S,resetApiState:T.resetApiState}),Bs(t.internalActions,T);const{middleware:C,actions:M}=fde({reducerPath:i,context:f,queryThunk:h,mutationThunk:v,api:t,assertTagType:d});Bs(t.util,M),Bs(t,{reducer:w,middleware:C});const{buildQuerySelector:k,buildMutationSelector:I,selectInvalidatedBy:P,selectCachedArgsForQuery:R}=Jfe({serializeQueryArgs:a,reducerPath:i,createSelector:e});Bs(t.util,{selectInvalidatedBy:P,selectCachedArgsForQuery:R});const{buildInitiateQuery:L,buildInitiateMutation:O,getRunningMutationThunk:N,getRunningMutationsThunk:B,getRunningQueriesThunk:G,getRunningQueryThunk:q}=Zfe({queryThunk:h,mutationThunk:v,api:t,serializeQueryArgs:a,context:f});return Bs(t.util,{getRunningMutationThunk:N,getRunningMutationsThunk:B,getRunningQueryThunk:q,getRunningQueriesThunk:G}),{name:YO,injectEndpoint(H,X){var Y;const F=t;(Y=F.endpoints)[H]??(Y[H]={}),H6(X)?Bs(F.endpoints[H],{name:H,select:k(H,X),initiate:L(H,X)},b(h,H)):Yfe(X)&&Bs(F.endpoints[H],{name:H,select:I(),initiate:O(H)},b(v,H))}}}});function hde(e){return e.type==="query"}function pde(e){return e.type==="mutation"}function _y(e,...t){return Object.assign(e,...t)}function aw(e){return e.replace(e[0],e[0].toUpperCase())}var sf=WeakMap?new WeakMap:void 0,vde=({endpointName:e,queryArgs:t})=>{let r="";const n=sf==null?void 0:sf.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=yo(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));yo(t)&&(sf==null||sf.set(t,i)),r=i}return`${e}(${r})`},ow=Symbol();function qO(e,t,r,n){const i=$.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),a=$.useRef(i);return $.useEffect(()=>{a.current.serialized!==i.serialized&&(a.current=i)},[i]),a.current.serialized===i.serialized?a.current.queryArgs:e}function sw(e){const t=$.useRef(e);return $.useEffect(()=>{cl(t.current,e)||(t.current=e)},[e]),cl(t.current,e)?t.current:e}var gde=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mde=gde(),yde=()=>typeof navigator<"u"&&navigator.product==="ReactNative",xde=yde(),Sde=()=>mde||xde?$.useLayoutEffect:$.useEffect,bde=Sde(),_de=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:F6.pending}:e;function wde({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:i},unstable__sideEffectsInRender:a,createSelector:o},serializeQueryArgs:s,context:l}){const u=a?v=>v():$.useEffect;return{buildQueryHooks:d,buildMutationHook:h,usePrefetch:f};function c(v,g,y){if(g!=null&&g.endpointName&&v.isUninitialized){const{endpointName:C}=g,M=l.endpointDefinitions[C];s({queryArgs:g.originalArgs,endpointDefinition:M,endpointName:C})===s({queryArgs:y,endpointDefinition:M,endpointName:C})&&(g=void 0)}let x=v.isSuccess?v.data:g==null?void 0:g.data;x===void 0&&(x=v.data);const S=x!==void 0,b=v.isLoading,w=(!g||g.isLoading||g.isUninitialized)&&!S&&b,T=v.isSuccess||b&&S;return{...v,data:x,currentData:v.data,isFetching:b,isLoading:w,isSuccess:T}}function f(v,g){const y=r(),x=sw(g);return $.useCallback((S,b)=>y(e.util.prefetch(v,S,{...x,...b})),[v,y,x])}function d(v){const g=(S,{refetchOnReconnect:b,refetchOnFocus:w,refetchOnMountOrArgChange:T,skip:C=!1,pollingInterval:M=0,skipPollingIfUnfocused:k=!1}={})=>{const{initiate:I}=e.endpoints[v],P=r(),R=$.useRef(void 0);if(!R.current){const F=P(e.internalActions.internal_getRTKQSubscriptions());R.current=F}const L=qO(C?Bu:S,vde,l.endpointDefinitions[v],v),O=sw({refetchOnReconnect:b,refetchOnFocus:w,pollingInterval:M,skipPollingIfUnfocused:k}),N=$.useRef(!1),B=$.useRef(void 0);let{queryCacheKey:G,requestId:q}=B.current||{},H=!1;G&&q&&(H=R.current.isRequestSubscribed(G,q));const X=!H&&N.current;return u(()=>{N.current=H}),u(()=>{X&&(B.current=void 0)},[X]),u(()=>{var Z;const F=B.current;if(typeof process<"u",L===Bu){F==null||F.unsubscribe(),B.current=void 0;return}const Y=(Z=B.current)==null?void 0:Z.subscriptionOptions;if(!F||F.arg!==L){F==null||F.unsubscribe();const j=P(I(L,{subscriptionOptions:O,forceRefetch:T}));B.current=j}else O!==Y&&F.updateSubscriptionOptions(O)},[P,I,T,L,O,X]),$.useEffect(()=>()=>{var F;(F=B.current)==null||F.unsubscribe(),B.current=void 0},[]),$.useMemo(()=>({refetch:()=>{var F;if(!B.current)throw new Error(_n(38));return(F=B.current)==null?void 0:F.refetch()}}),[])},y=({refetchOnReconnect:S,refetchOnFocus:b,pollingInterval:w=0,skipPollingIfUnfocused:T=!1}={})=>{const{initiate:C}=e.endpoints[v],M=r(),[k,I]=$.useState(ow),P=$.useRef(void 0),R=sw({refetchOnReconnect:S,refetchOnFocus:b,pollingInterval:w,skipPollingIfUnfocused:T});u(()=>{var B,G;const N=(B=P.current)==null?void 0:B.subscriptionOptions;R!==N&&((G=P.current)==null||G.updateSubscriptionOptions(R))},[R]);const L=$.useRef(R);u(()=>{L.current=R},[R]);const O=$.useCallback(function(N,B=!1){let G;return t(()=>{var q;(q=P.current)==null||q.unsubscribe(),P.current=G=M(C(N,{subscriptionOptions:L.current,forceRefetch:!B})),I(N)}),G},[M,C]);return $.useEffect(()=>()=>{var N;(N=P==null?void 0:P.current)==null||N.unsubscribe()},[]),$.useEffect(()=>{k!==ow&&!P.current&&O(k,!0)},[k,O]),$.useMemo(()=>[O,k],[O,k])},x=(S,{skip:b=!1,selectFromResult:w}={})=>{const{select:T}=e.endpoints[v],C=qO(b?Bu:S,s,l.endpointDefinitions[v],v),M=$.useRef(void 0),k=$.useMemo(()=>o([T(C),(O,N)=>N,O=>C],c,{memoizeOptions:{resultEqualityCheck:cl}}),[T,C]),I=$.useMemo(()=>w?o([k],w,{devModeChecks:{identityFunctionCheck:"never"}}):k,[k,w]),P=n(O=>I(O,M.current),cl),R=i(),L=k(R.getState(),M.current);return bde(()=>{M.current=L},[L]),P};return{useQueryState:x,useQuerySubscription:g,useLazyQuerySubscription:y,useLazyQuery(S){const[b,w]=y(S),T=x(w,{...S,skip:w===ow}),C=$.useMemo(()=>({lastArg:w}),[w]);return $.useMemo(()=>[b,T,C],[b,T,C])},useQuery(S,b){const w=g(S,b),T=x(S,{selectFromResult:S===Bu||b!=null&&b.skip?void 0:_de,...b}),{data:C,status:M,isLoading:k,isSuccess:I,isError:P,error:R}=T;return $.useDebugValue({data:C,status:M,isLoading:k,isSuccess:I,isError:P,error:R}),$.useMemo(()=>({...T,...w}),[T,w])}}}function h(v){return({selectFromResult:g,fixedCacheKey:y}={})=>{const{select:x,initiate:S}=e.endpoints[v],b=r(),[w,T]=$.useState();$.useEffect(()=>()=>{w!=null&&w.arg.fixedCacheKey||w==null||w.reset()},[w]);const C=$.useCallback(function(Y){const Z=b(S(Y,{fixedCacheKey:y}));return T(Z),Z},[b,S,y]),{requestId:M}=w||{},k=$.useMemo(()=>x({fixedCacheKey:y,requestId:w==null?void 0:w.requestId}),[y,w,x]),I=$.useMemo(()=>g?o([k],g):k,[g,k]),P=n(I,cl),R=y==null?w==null?void 0:w.arg.originalArgs:void 0,L=$.useCallback(()=>{t(()=>{w&&T(void 0),y&&b(e.internalActions.removeMutationResult({requestId:M,fixedCacheKey:y}))})},[b,y,w,M]),{endpointName:O,data:N,status:B,isLoading:G,isSuccess:q,isError:H,error:X}=P;$.useDebugValue({endpointName:O,data:N,status:B,isLoading:G,isSuccess:q,isError:H,error:X});const F=$.useMemo(()=>({...P,originalArgs:R,reset:L}),[P,R,L]);return $.useMemo(()=>[C,F],[C,F])}}}var Cde=Symbol(),Tde=({batch:e=FX,hooks:t={useDispatch:EV,useSelector:CV,useStore:RV},createSelector:r=oM,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:Cde,init(a,{serializeQueryArgs:o},s){const l=a,{buildQueryHooks:u,buildMutationHook:c,usePrefetch:f}=wde({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:o,context:s});return _y(l,{usePrefetch:f}),_y(s,{batch:e}),{injectEndpoint(d,h){if(hde(h)){const{useQuery:v,useLazyQuery:g,useLazyQuerySubscription:y,useQueryState:x,useQuerySubscription:S}=u(d);_y(l.endpoints[d],{useQuery:v,useLazyQuery:g,useLazyQuerySubscription:y,useQueryState:x,useQuerySubscription:S}),a[`use${aw(d)}Query`]=v,a[`useLazy${aw(d)}Query`]=g}else if(pde(h)){const v=c(d);_y(l.endpoints[d],{useMutation:v}),a[`use${aw(d)}Mutation`]=v}}}}}),Ade=ede(dde(),Tde());const v1=Ade({baseQuery:Ufe(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:Bf}),getTasks:e.query({query:()=>"tasks",transformResponse:Bf}),getExceptions:e.query({query:()=>"exceptions",transformResponse:Bf}),getLogs:e.query({query:()=>"logs",transformResponse:Bf}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Tfe(AE(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:AE(t)})})})}),{useGetStatsQuery:Mde,useGetTasksQuery:kde,useGetExceptionsQuery:Ide,useGetLogsQuery:Pde,useStartSwarmMutation:Dde,useUpdateUserSettingsMutation:Rde}=v1;function Cg(e,{payload:t}){return Cfe(e,t)}const Ede=vo,U6=Ui({name:"swarm",initialState:Ede,reducers:{setSwarm:Cg}}),pk=U6.actions,Lde=U6.reducer;function Ode({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return z.jsx(B6,{onSubmit:r,children:z.jsxs(ir,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[z.jsx(zt,{children:`${t.userClassName} Settings`}),z.jsx(QM,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>z.jsx(pd,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:VT(a),name:a},`user-to-edit-${a}`)),z.jsx(bo,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function Nde({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=$.useState(!1),[l,u]=$.useState(),[c]=Rde(),f=y=>{l&&(i({users:{...a,[l.userClassName]:y}}),c({...y,userClassName:l.userClassName}),s(!1))},d=y=>()=>r.includes(y)?n(r.filter(x=>x!==y)):n(r.concat(y)),h=r.length,v=e.length,g=y=>y.target.checked?n(e):n([]);return z.jsxs(z.Fragment,{children:[z.jsx(ir,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:z.jsxs(ir,{sx:{maxHeight:"30vh",overflow:"auto"},children:[z.jsx(Vx,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),z.jsx(L$,{children:z.jsx(Y$,{component:Al,children:z.jsxs(j$,{children:[z.jsx(q$,{children:z.jsx(c1,{children:z.jsx(Ru,{colSpan:4,padding:"checkbox",children:z.jsx(JT,{checked:v>0&&h===v,indeterminate:h>0&&h<v,onChange:g})})})}),z.jsx(U$,{children:Object.entries(a).map(([y,x])=>z.jsxs(c1,{hover:!0,children:[z.jsx(Ru,{onClick:d(y),padding:"checkbox",children:z.jsx(JT,{checked:r.includes(y)})}),z.jsx(Ru,{children:y}),z.jsx(Ru,{children:z.jsx(zt,{variant:"subtitle2",children:x.host})}),z.jsx(Ru,{align:"right",children:z.jsx(Md,{onClick:()=>{s(!o),u({userClass:x,userClassName:y})},children:z.jsx(Nfe,{})})})]},`user-class-${y}`))})]})})})]})}),z.jsx(Ux,{onClose:()=>s(!1),open:o,children:l&&z.jsx(Ode,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const zde={setSwarm:pk.setSwarm},Bde=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),Fde=ki(Bde,zde)(Nde);function Vde({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:a,numUsers:o,userCount:s,overrideHostWarning:l,runTime:u,setSwarm:c,showUserclassPicker:f,spawnRate:d,alert:h,isDisabled:v=!1,isEditSwarm:g=!1,onFormChange:y,onFormSubmit:x}){const[S]=Dde(),[b,w]=$.useState(""),[T,C]=$.useState(t),M=async P=>{const{data:R}=await S({...P,...f&&T?{userClasses:T}:{}});R&&R.success?c({state:bn.RUNNING,host:P.host||r,runTime:P.runTime,spawnRate:P.spawnRate,userCount:P.userCount}):w(R?R.message:"An unknown error occured."),x&&x(P)},k=P=>{b&&w(""),y&&y(P)},I=P=>{if(!a){const R=P.target.value!==e[0];c({hideCommonOptions:R})}};return z.jsxs(bg,{maxWidth:"md",sx:{my:2},children:[z.jsx(zt,{component:"h2",noWrap:!0,variant:"h6",children:g?"Edit running load test":"Start new load test"}),!g&&f&&z.jsx(ir,{marginBottom:2,marginTop:2,children:z.jsx(Fde,{availableUserClasses:t,selectedUserClasses:T,setSelectedUserClasses:C})}),z.jsx(B6,{onChange:k,onSubmit:M,children:z.jsxs(ir,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[!g&&f&&z.jsx(QM,{label:"Shape Class",name:"shapeClass",onChange:I,options:e}),z.jsx(EO,{defaultValue:i&&"0"||s||o||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount",required:!0,title:i?"Disabled for tests using LoadTestShape class":""}),z.jsx(EO,{defaultValue:i&&"0"||d||1,disabled:!!i,label:"Ramp up (users started/second)",name:"spawnRate",required:!0,title:i?"Disabled for tests using LoadTestShape class":""}),!g&&z.jsxs(z.Fragment,{children:[z.jsx(pd,{defaultValue:r,label:`Host ${l?"(setting this will override the host for the User classes)":""}`,name:"host"}),z.jsxs(OM,{children:[z.jsx(zM,{expandIcon:z.jsx(ck,{}),children:z.jsx(zt,{children:"Advanced options"})}),z.jsx(NM,{children:z.jsx(pd,{defaultValue:u,disabled:!!i,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"},title:i?"Disabled for tests using LoadTestShape class":""})})]})]}),!z6(n)&&z.jsx(Efe,{extraOptions:n}),h&&!b&&z.jsx(Vf,{severity:h.level||"info",children:h.message}),b&&z.jsx(Vf,{severity:"error",children:b}),z.jsx(bo,{disabled:v,size:"large",type:"submit",variant:"contained",children:g?"Update":"Start"})]})})]})}const $de=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,hideCommonOptions:n,shapeUseCommonOptions:i,host:a,numUsers:o,userCount:s,overrideHostWarning:l,runTime:u,spawnRate:c,showUserclassPicker:f}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,hideCommonOptions:n,shapeUseCommonOptions:i,host:a,overrideHostWarning:l,showUserclassPicker:f,numUsers:o,userCount:s,runTime:u,spawnRate:c}),Gde={setSwarm:pk.setSwarm},vk=ki($de,Gde)(Vde);function Hde(e){const[t,r]=$.useState(!1),{hideCommonOptions:n}=Ii(({swarm:i})=>i);return z.jsxs(z.Fragment,{children:[z.jsx(H$,{title:n?"Disabled for tests using LoadTestShape class":"",children:z.jsx(ir,{children:z.jsx(bo,{color:"secondary",disabled:!!n,onClick:()=>r(!0),sx:{minHeight:"100%"},type:"button",variant:"contained",children:"Edit"})})}),z.jsx(Ux,{onClose:()=>r(!1),open:t,children:z.jsx(vk,{...e,isEditSwarm:!0,onFormSubmit:()=>r(!1)})})]})}function Wde(e){const[t,r]=$.useState(!1);return z.jsxs(z.Fragment,{children:[z.jsx(bo,{color:"success",onClick:()=>r(!0),type:"button",variant:"contained",children:"New"}),z.jsx(Ux,{onClose:()=>r(!1),open:t,children:z.jsx(vk,{...e})})]})}function jde(){const e=()=>{fetch("stats/reset")};return z.jsx(bo,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function Ude(){const[e,t]=$.useState(!1);$.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return z.jsx(bo,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function Yde(){const e=Ii(({swarm:t})=>t.state);return e===bn.READY?null:z.jsxs(ir,{sx:{display:"flex",columnGap:2,marginY:"auto",height:"50px"},children:[e===bn.STOPPED?z.jsx(Wde,{}):z.jsxs(z.Fragment,{children:[z.jsx(Hde,{}),z.jsx(Ude,{})]}),z.jsx(jde,{})]})}function qde(){return z.jsx(Iee,{position:"static",children:z.jsx(bg,{maxWidth:"xl",children:z.jsxs(yoe,{disableGutters:!0,sx:{display:"flex",justifyContent:"space-between",columnGap:2},children:[z.jsx(an,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center"},underline:"none",children:z.jsx(X$,{})}),z.jsxs(ir,{sx:{display:"flex",columnGap:6},children:[z.jsx(kfe,{}),z.jsx(Yde,{}),z.jsx(O6,{})]})]})})})}function Xde({children:e}){return z.jsxs(z.Fragment,{children:[z.jsxs(ir,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[z.jsx(qde,{}),z.jsx("main",{children:e})]}),z.jsx(wfe,{})]})}const Y6=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL"),q6="logViewer";function Ov(e,t,{shouldRunInterval:r,immediate:n}={shouldRunInterval:!0,immediate:!1}){const i=$.useRef(e);$.useEffect(()=>{i.current=e},[e]),$.useEffect(()=>{if(!r)return;n&&i.current();const a=setInterval(()=>i.current(),t);return()=>{clearInterval(a)}},[t,r])}const Zde={},X6=Ui({name:"notification",initialState:Zde,reducers:{setNotification:Cg}}),Z6=X6.actions,Kde=X6.reducer;function Qde(e,{key:t,shouldNotify:r}){const n=qo(Z6.setNotification),i=Ii(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;$.useEffect(()=>{e.length>0&&e.length<localStorage[a]&&(localStorage[a]=e.length),e.length>(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r(a))&&(n({[t]:!0}),localStorage[a]=e.length)},[e])}const Jde={master:[],workers:{}},K6=Ui({name:"logViewer",initialState:Jde,reducers:{setLogs:Cg}}),ehe=K6.actions,the=K6.reducer,Q6=e=>e.reduce((t,r)=>t.concat(Array.isArray(r)?Q6(r):r),[]),rhe={master:[],workers:{}};function nhe(){const e=Ii(({swarm:l})=>l),t=qo(ehe.setLogs),{data:r,refetch:n}=Pde(),i=r||rhe,a=$.useMemo(()=>Q6(Object.values(i.workers)),[i.workers]),o=$.useMemo(()=>[...i.master].concat(a),[i.master,i.workers]),s=$.useCallback(l=>o.slice(localStorage[l]).some(Y6),[o]);return Ov(n,5e3,{shouldRunInterval:e.state===bn.SPAWNING||e.state==bn.RUNNING}),Qde(o,{key:q6,shouldNotify:s}),$.useEffect(()=>{t(i)},[i]),i}var Kh={},XO;function ihe(){if(XO)return Kh;XO=1;var e=Sc();Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.default=void 0;var t=e(bc()),r=Tl(),n=(0,t.default)([(0,r.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,r.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");return Kh.default=n,Kh}var ahe=ihe();const J6=ia(ahe);function ohe(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return a<o?r*-1:a>o?r*1:0}}function she(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=$.useState(e),[a,o]=$.useState(!1),s=$.useRef(),l=c=>{const d=(t?e.slice(0,-1):[...e]).sort(ohe(c,c===s.current&&!a));i(t?[...d,...e.slice(-1)]:d)},u=$.useCallback(c=>{s.current||(s.current=r);const f=c.target.getAttribute("data-sortkey");if(f===s.current)if(a){o(!1),s.current=void 0,l(r);return}else o(!0);else a&&o(!1);l(f),s.current=f},[s,e,a]);return $.useEffect(()=>{e.length&&l(s.current||r)},[e]),{onTableHeadClick:u,sortedRows:n,currentSortField:s.current}}const Rp=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function lhe({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?Rp(e,r):n?z.jsx(p1,{content:e}):e}function Tg({rows:e,structure:t,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:a,currentSortField:o}=she(e,{hasTotalRow:r,defaultSortKey:n});return z.jsx(Y$,{component:Al,sx:{overflowX:"visible"},children:z.jsxs(j$,{children:[z.jsx(q$,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:z.jsx(c1,{children:t.map(({title:s,key:l})=>z.jsx(Ru,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:o===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),z.jsx(U$,{children:a.map((s,l)=>z.jsx(c1,{children:t.map(({key:u,...c},f)=>z.jsx(Ru,{children:z.jsx(lhe,{content:s[u],...c})},`table-row=${f}`))},`${s.name}-${l}`))})]})})}function uhe({rows:e,tableStructure:t}){return t?z.jsx(Tg,{rows:e,structure:t}):null}const che=({swarm:{extendedTables:e},ui:{extendedStats:t},url:{query:r}})=>{const n=r&&r.tab&&e&&e.find(({key:a})=>a===r.tab),i=r&&r.tab&&t&&t.find(({key:a})=>a===r.tab);return{tableStructure:n?n.structure.map(({key:a,...o})=>({key:OV(a),...o})):null,rows:i?i.data:[]}},fhe=ki(che)(uhe),dhe=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message",markdown:!0},{key:"traceback",title:"Traceback",markdown:!0}];function hhe({exceptions:e}){return z.jsx(Tg,{rows:e,structure:dhe})}const phe=({ui:{exceptions:e}})=>({exceptions:e}),vhe=ki(phe)(hhe);var rV;const ghe={totalRps:0,failRatio:0,startTime:"",stats:[],errors:[],exceptions:[],charts:(rV=vo.history)==null?void 0:rV.reduce(Yx,{}),ratios:{},userCount:0};var nV;const mhe=(nV=vo.percentilesToChart)==null?void 0:nV.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),yhe=e=>Yx(e,{...mhe,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),eG=Ui({name:"ui",initialState:ghe,reducers:{setUi:Cg,updateCharts:(e,{payload:t})=>({...e,charts:Yx(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...yhe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[(e.charts.time||[""])[0],t]}})}}),nv=eG.actions,xhe=eG.reducer,She=e=>{const t=new URL(window.location.href);for(const[r,n]of Object.entries(e))t.searchParams.set(r,n);window.history.pushState(null,"",t)},bhe=()=>window.location.search?$X(window.location.search):null,_he={query:bhe()},tG=Ui({name:"url",initialState:_he,reducers:{setUrl:Cg}}),whe=tG.actions,Che=tG.reducer,The=hx({[v1.reducerPath]:v1.reducer,logViewer:the,notification:Kde,swarm:Lde,theme:L6,ui:xhe,url:Che}),Ahe=yV({reducer:The,middleware:e=>e().concat(v1.middleware)});/*! *****************************************************************************
|
156
|
+
Copyright (c) Microsoft Corporation.
|
157
|
+
|
158
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
159
|
+
purpose with or without fee is hereby granted.
|
160
|
+
|
161
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
162
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
163
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
164
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
165
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
166
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
167
|
+
PERFORMANCE OF THIS SOFTWARE.
|
168
|
+
***************************************************************************** */var d2=function(e,t){return d2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},d2(e,t)};function J(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");d2(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Mhe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),khe=function(){function e(){this.browser=new Mhe,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),yt=new khe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(yt.wxa=!0,yt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?yt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(yt.node=!0,yt.svgSupported=!0):Ihe(navigator.userAgent,yt);function Ihe(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var gk=12,rG="sans-serif",ml=gk+"px "+rG,Phe=20,Dhe=100,Rhe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Ehe(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-Phe)/Dhe;t[n]=i}return t}var Lhe=Ehe(Rhe),yl={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=yl.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||ml),e.measureText(r);r=r||"",n=n||ml;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||gk,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=Lhe[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},nG=wo(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),iG=wo(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Pd=Object.prototype.toString,qx=Array.prototype,Ohe=qx.forEach,Nhe=qx.filter,mk=qx.slice,zhe=qx.map,ZO=(function(){}).constructor,wy=ZO?ZO.prototype:null,yk="__proto__",Bhe=2311;function aG(){return Bhe++}function xk(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function We(e){if(e==null||typeof e!="object")return e;var t=e,r=Pd.call(e);if(r==="[object Array]"){if(!iv(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=We(e[n])}}else if(iG[r]){if(!iv(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!nG[r]&&!iv(e)&&!vd(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==yk&&(t[o]=We(e[o]))}return t}function tt(e,t,r){if(!Ge(t)||!Ge(e))return r?We(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==yk){var i=e[n],a=t[n];Ge(a)&&Ge(i)&&!ue(a)&&!ue(i)&&!vd(a)&&!vd(i)&&!KO(a)&&!KO(i)&&!iv(a)&&!iv(i)?tt(i,a,r):(r||!(n in e))&&(e[n]=We(t[n]))}return e}function Sk(e,t){for(var r=e[0],n=1,i=e.length;n<i;n++)r=tt(r,e[n],t);return r}function oe(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==yk&&(e[r]=t[r]);return e}function Ve(e,t,r){for(var n=St(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}function ft(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function Fhe(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Lr(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else Ve(e,t,r)}function wn(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function V(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Ohe)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function de(e,t,r){if(!e)return[];if(!t)return bk(e);if(e.map&&e.map===zhe)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function wo(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function Wt(e,t,r){if(!e)return[];if(!t)return bk(e);if(e.filter&&e.filter===Nhe)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function Vhe(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function St(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function $he(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(mk.call(arguments)))}}var Ae=wy&&Be(wy.bind)?wy.call.bind(wy.bind):$he;function Je(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(mk.call(arguments)))}}function ue(e){return Array.isArray?Array.isArray(e):Pd.call(e)==="[object Array]"}function Be(e){return typeof e=="function"}function _e(e){return typeof e=="string"}function h2(e){return Pd.call(e)==="[object String]"}function Dt(e){return typeof e=="number"}function Ge(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function KO(e){return!!nG[Pd.call(e)]}function ui(e){return!!iG[Pd.call(e)]}function vd(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Xx(e){return e.colorStops!=null}function Ghe(e){return e.image!=null}function Hhe(e){return Pd.call(e)==="[object RegExp]"}function Nv(e){return e!==e}function Qr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function Qe(e,t){return e??t}function go(e,t,r){return e??t??r}function bk(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return mk.apply(e,t)}function _k(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function zn(e,t){if(!e)throw new Error(t)}function Ta(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var oG="__ec_primitive__";function g1(e){e[oG]=!0}function iv(e){return e[oG]}var Whe=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return St(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),sG=typeof Map=="function";function jhe(){return sG?new Map:new Whe}var Uhe=function(){function e(t){var r=ue(t);this.data=jhe();var n=this;t instanceof e?t.each(i):t&&V(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return sG?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Re(e){return new Uhe(e)}function m1(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function Zx(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&oe(r,t),r}function lG(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Pe(e,t){return e.hasOwnProperty(t)}function Mr(){}var D0=180/Math.PI;function _c(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Dn(e,t){return e[0]=t[0],e[1]=t[1],e}function Ko(e){return[e[0],e[1]]}function Yhe(e,t,r){return e[0]=t,e[1]=r,e}function QO(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function p2(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function Fu(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function v2(e){return Math.sqrt(qhe(e))}function qhe(e){return e[0]*e[0]+e[1]*e[1]}function R0(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Dd(e,t){var r=v2(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function g2(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var tl=g2;function Xhe(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var qu=Xhe;function E0(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function un(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function rl(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function nl(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var lf=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),Zhe=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new lf(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new lf(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new lf(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new lf(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new lf(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new lf(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),oa=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,c=a[t][u];return c&&c.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),Khe=Math.log(2);function m2(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/Khe);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&i||(f+=(h%2?-1:1)*e[r][d]*m2(e,t-1,c,u,i|v,a),h++)}return a[o]=f,f}function JO(e,t){var r=[[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]]],n={},i=m2(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*m2(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var eN="___zrEVENTSAVED",lw=[];function Qhe(e,t,r,n,i){return y2(lw,t,n,i,!0)&&y2(e,r,lw[0],lw[1])}function y2(e,t,r,n,i){if(t.getBoundingClientRect&&yt.domSupported&&!uG(t)){var a=t[eN]||(t[eN]={}),o=Jhe(t,a),s=epe(o,a,i);if(s)return s(e,r,n),!0}return!1}function Jhe(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function epe(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?JO(s,o):JO(o,s))}function uG(e){return e.nodeName.toUpperCase()==="CANVAS"}var tpe=/([&<>"'])/g,rpe={"&":"&","<":"<",">":">",'"':""","'":"'"};function Jn(e){return e==null?"":(e+"").replace(tpe,function(t,r){return rpe[r]})}var npe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,uw=[],ipe=yt.browser.firefox&&+yt.browser.version.split(".")[0]<39;function x2(e,t,r,n){return r=r||{},n?tN(e,t,r):ipe&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):tN(e,t,r),r}function tN(e,t,r){if(yt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(uG(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(y2(uw,e,n,i)){r.zrX=uw[0],r.zrY=uw[1];return}}r.zrX=r.zrY=0}function wk(e){return e||window.event}function $i(e,t,r){if(t=wk(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&x2(e,o,t,r)}else{x2(e,t,t,r);var a=ape(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&npe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function ape(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function S2(e,t,r,n){e.addEventListener(t,r,n)}function ope(e,t,r,n){e.removeEventListener(t,r,n)}var as=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function rN(e){return e.which===2||e.which===3}var spe=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=x2(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in cw)if(cw.hasOwnProperty(r)){var n=cw[r](this._track,t);if(n)return n}},e}();function nN(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function lpe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var cw={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=nN(n)/nN(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=lpe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function wi(){return[1,0,0,1,0,0]}function Kx(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Ck(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Qo(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Co(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function wc(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=a*f+l*c,e[3]=-a*c+f*l,e[4]=f*(o-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(o-n[0])+n[1],e}function Tk(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Rd(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function upe(e){var t=wi();return Ck(t,e),t}var et=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.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 t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),Cy=Math.min,Ty=Math.max,Kl=new et,Ql=new et,Jl=new et,eu=new et,Qh=new et,Jh=new et,rt=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Cy(t.x,this.x),n=Cy(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ty(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ty(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=wi();return Co(a,a,[-r.x,-r.y]),Tk(a,a,[n,i]),Co(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(a<l||u<i||s<c||f<o);if(r){var h=1/0,v=0,g=Math.abs(a-l),y=Math.abs(u-i),x=Math.abs(s-c),S=Math.abs(f-o),b=Math.min(g,y),w=Math.min(x,S);a<l||u<i?b>v&&(v=b,g<y?et.set(Jh,-g,0):et.set(Jh,y,0)):b<h&&(h=b,g<y?et.set(Qh,g,0):et.set(Qh,-y,0)),s<c||f<o?w>v&&(v=w,x<S?et.set(Jh,0,-x):et.set(Jh,0,S)):b<h&&(h=b,x<S?et.set(Qh,0,x):et.set(Qh,0,-S))}return r&&et.copy(r,d?Qh:Jh),d},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=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 this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Kl.x=Jl.x=r.x,Kl.y=eu.y=r.y,Ql.x=eu.x=r.x+r.width,Ql.y=Jl.y=r.y+r.height,Kl.transform(n),eu.transform(n),Ql.transform(n),Jl.transform(n),t.x=Cy(Kl.x,Ql.x,Jl.x,eu.x),t.y=Cy(Kl.y,Ql.y,Jl.y,eu.y);var l=Ty(Kl.x,Ql.x,Jl.x,eu.x),u=Ty(Kl.y,Ql.y,Jl.y,eu.y);t.width=l-t.x,t.height=u-t.y},e}(),cG="silent";function cpe(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:fpe}}function fpe(){as(this.event)}var dpe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(oa),ep=function(){function e(t,r){this.x=t,this.y=r}return e}(),hpe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fw=new rt(0,0,0,0),fG=function(e){J(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new ep(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new dpe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Zhe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(V(hpe,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=dG(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ep(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new ep(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=cpe(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new ep(r,n);if(iN(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new rt(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(fw.copy(d.getBoundingRect()),d.transform&&fw.applyTransform(d.transform),fw.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,g=Math.PI*2,y=0;y<u;y+=h)for(var x=0;x<g;x+=v){var S=r+y*Math.cos(x),b=n+y*Math.sin(x);if(iN(s,o,S,b,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new spe);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new ep;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(oa);V(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){fG.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=dG(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||tl(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function ppe(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?cG:!0}return!1}function iN(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=ppe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==cG)){t.target=o;break}}}function dG(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var hG=32,tp=7;function vpe(e){for(var t=0;e>=hG;)t|=e&1,e>>=1;return e+t}function aN(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;gpe(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function gpe(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function oN(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function dw(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function hw(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function mpe(e,t){var r=tp,n,i,a=0,o=[];n=[],i=[];function s(h,v){n[a]=h,i[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,c(h)}}function c(h){var v=n[h],g=i[h],y=n[h+1],x=i[h+1];i[h]=g+x,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var S=hw(e[y],e,v,g,0,t);v+=S,g-=S,g!==0&&(x=dw(e[v+g-1],e,y,x,x-1,t),x!==0&&(g<=x?f(v,g,y,x):d(v,g,y,x)))}function f(h,v,g,y){var x=0;for(x=0;x<v;x++)o[x]=e[h+x];var S=0,b=g,w=h;if(e[w++]=e[b++],--y===0){for(x=0;x<v;x++)e[w+x]=o[S+x];return}if(v===1){for(x=0;x<y;x++)e[w+x]=e[b+x];e[w+y]=o[S];return}for(var T=r,C,M,k;;){C=0,M=0,k=!1;do if(t(e[b],o[S])<0){if(e[w++]=e[b++],M++,C=0,--y===0){k=!0;break}}else if(e[w++]=o[S++],C++,M=0,--v===1){k=!0;break}while((C|M)<T);if(k)break;do{if(C=hw(e[b],o,S,v,0,t),C!==0){for(x=0;x<C;x++)e[w+x]=o[S+x];if(w+=C,S+=C,v-=C,v<=1){k=!0;break}}if(e[w++]=e[b++],--y===0){k=!0;break}if(M=dw(o[S],e,b,y,0,t),M!==0){for(x=0;x<M;x++)e[w+x]=e[b+x];if(w+=M,b+=M,y-=M,y===0){k=!0;break}}if(e[w++]=o[S++],--v===1){k=!0;break}T--}while(C>=tp||M>=tp);if(k)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),v===1){for(x=0;x<y;x++)e[w+x]=e[b+x];e[w+y]=o[S]}else{if(v===0)throw new Error;for(x=0;x<v;x++)e[w+x]=o[S+x]}}function d(h,v,g,y){var x=0;for(x=0;x<y;x++)o[x]=e[g+x];var S=h+v-1,b=y-1,w=g+y-1,T=0,C=0;if(e[w--]=e[S--],--v===0){for(T=w-(y-1),x=0;x<y;x++)e[T+x]=o[x];return}if(y===1){for(w-=v,S-=v,C=w+1,T=S+1,x=v-1;x>=0;x--)e[C+x]=e[T+x];e[w]=o[b];return}for(var M=r;;){var k=0,I=0,P=!1;do if(t(o[b],e[S])<0){if(e[w--]=e[S--],k++,I=0,--v===0){P=!0;break}}else if(e[w--]=o[b--],I++,k=0,--y===1){P=!0;break}while((k|I)<M);if(P)break;do{if(k=v-hw(o[b],e,h,v,v-1,t),k!==0){for(w-=k,S-=k,v-=k,C=w+1,T=S+1,x=k-1;x>=0;x--)e[C+x]=e[T+x];if(v===0){P=!0;break}}if(e[w--]=o[b--],--y===1){P=!0;break}if(I=y-dw(e[S],o,0,y,y-1,t),I!==0){for(w-=I,b-=I,y-=I,C=w+1,T=b+1,x=0;x<I;x++)e[C+x]=o[T+x];if(y<=1){P=!0;break}}if(e[w--]=e[S--],--v===0){P=!0;break}M--}while(k>=tp||I>=tp);if(P)break;M<0&&(M=0),M+=2}if(r=M,r<1&&(r=1),y===1){for(w-=v,S-=v,C=w+1,T=S+1,x=v-1;x>=0;x--)e[C+x]=e[T+x];e[w]=o[b]}else{if(y===0)throw new Error;for(T=w-(y-1),x=0;x<y;x++)e[T+x]=o[x]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function L0(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<hG){a=aN(e,r,n,t),oN(e,r,n,r+a,t);return}var o=mpe(e,t),s=vpe(i);do{if(a=aN(e,r,n,t),a<s){var l=i;l>s&&(l=s),oN(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var xi=1,Ep=2,Rf=4,sN=!1;function pw(){sN||(sN=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function lN(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ype=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=lN}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,L0(n,lN)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=xi),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(pw(),c.z=0),isNaN(c.z2)&&(pw(),c.z2=0),isNaN(c.zlevel)&&(pw(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=ft(this._roots,t);i>=0&&this._roots.splice(i,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}(),y1;y1=yt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var av={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.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?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-av.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?av.bounceIn(e*2)*.5:av.bounceOut(e*2-1)*.5+.5}},Ay=Math.pow,fl=Math.sqrt,x1=1e-8,pG=1e-4,uN=fl(3),My=1/3,ao=_c(),qi=_c(),Zf=_c();function il(e){return e>-x1&&e<x1}function vG(e){return e>x1||e<-x1}function Gr(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function cN(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function S1(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(il(c)&&il(f))if(il(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var g=f*f-4*c*d;if(il(g)){var y=f/c,v=-s/o+y,x=-y/2;v>=0&&v<=1&&(a[h++]=v),x>=0&&x<=1&&(a[h++]=x)}else if(g>0){var S=fl(g),b=c*s+1.5*o*(-f+S),w=c*s+1.5*o*(-f-S);b<0?b=-Ay(-b,My):b=Ay(b,My),w<0?w=-Ay(-w,My):w=Ay(w,My);var v=(-s-(b+w))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var T=(2*c*s-3*o*f)/(2*fl(c*c*c)),C=Math.acos(T)/3,M=fl(c),k=Math.cos(C),v=(-s-2*M*k)/(3*o),x=(-s+M*(k+uN*Math.sin(C)))/(3*o),I=(-s+M*(k-uN*Math.sin(C)))/(3*o);v>=0&&v<=1&&(a[h++]=v),x>=0&&x<=1&&(a[h++]=x),I>=0&&I<=1&&(a[h++]=I)}}return h}function gG(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(il(o)){if(vG(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(il(c))i[0]=-a/(2*o);else if(c>0){var f=fl(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function xl(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function mG(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,v,g,y,x;ao[0]=l,ao[1]=u;for(var S=0;S<1;S+=.05)qi[0]=Gr(e,r,i,o,S),qi[1]=Gr(t,n,a,s,S),y=qu(ao,qi),y<h&&(f=S,h=y);h=1/0;for(var b=0;b<32&&!(d<pG);b++)v=f-d,g=f+d,qi[0]=Gr(e,r,i,o,v),qi[1]=Gr(t,n,a,s,v),y=qu(qi,ao),v>=0&&y<h?(f=v,h=y):(Zf[0]=Gr(e,r,i,o,g),Zf[1]=Gr(t,n,a,s,g),x=qu(Zf,ao),g<=1&&x<h?(f=g,h=x):d*=.5);return c&&(c[0]=Gr(e,r,i,o,f),c[1]=Gr(t,n,a,s,f)),fl(h)}function xpe(e,t,r,n,i,a,o,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,g=Gr(e,r,i,o,v),y=Gr(t,n,a,s,v),x=g-u,S=y-c;f+=Math.sqrt(x*x+S*S),u=g,c=y}return f}function Kr(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function b2(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function Spe(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(il(a)){if(vG(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(il(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=fl(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function yG(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function zv(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function xG(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;ao[0]=o,ao[1]=s;for(var d=0;d<1;d+=.05){qi[0]=Kr(e,r,i,d),qi[1]=Kr(t,n,a,d);var h=qu(ao,qi);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<pG);v++){var g=u-c,y=u+c;qi[0]=Kr(e,r,i,g),qi[1]=Kr(t,n,a,g);var h=qu(qi,ao);if(g>=0&&h<f)u=g,f=h;else{Zf[0]=Kr(e,r,i,y),Zf[1]=Kr(t,n,a,y);var x=qu(Zf,ao);y<=1&&x<f?(u=y,f=x):c*=.5}}return l&&(l[0]=Kr(e,r,i,u),l[1]=Kr(t,n,a,u)),fl(f)}function bpe(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=Kr(e,r,i,d),v=Kr(t,n,a,d),g=h-s,y=v-l;u+=Math.sqrt(g*g+y*y),s=h,l=v}return u}var _pe=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ak(e){var t=e&&_pe.exec(e);if(t){var r=t[1].split(","),n=+Ta(r[0]),i=+Ta(r[1]),a=+Ta(r[2]),o=+Ta(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:S1(0,n,a,1,l,s)&&Gr(0,i,o,1,s[0])}}}var wpe=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Mr,this.ondestroy=t.ondestroy||Mr,this.onrestart=t.onrestart||Mr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Be(t)?t:av[t]||Ak(t)},e}(),SG=function(){function e(t){this.value=t}return e}(),Cpe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new SG(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Ag=function(){function e(t){this._list=new Cpe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new SG(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),fN={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 Ma(e){return e=Math.round(e),e<0?0:e>255?255:e}function Tpe(e){return e=Math.round(e),e<0?0:e>360?360:e}function Bv(e){return e<0?0:e>1?1:e}function vw(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ma(parseFloat(t)/100*255):Ma(parseInt(t,10))}function Xu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Bv(parseFloat(t)/100):Bv(parseFloat(t))}function gw(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function al(e,t,r){return e+(t-e)*r}function Vi(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function _2(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var bG=new Ag(20),ky=null;function uf(e,t){ky&&_2(ky,t),ky=bG.put(e,ky||t.slice())}function Ci(e,t){if(e){t=t||[];var r=bG.get(e);if(r)return _2(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in fN)return _2(t,fN[n]),uf(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Vi(t,0,0,0,1);return}return Vi(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),uf(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Vi(t,0,0,0,1);return}return Vi(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),uf(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Vi(t,+u[0],+u[1],+u[2],1):Vi(t,0,0,0,1);c=Xu(u.pop());case"rgb":if(u.length>=3)return Vi(t,vw(u[0]),vw(u[1]),vw(u[2]),u.length===3?c:Xu(u[3])),uf(e,t),t;Vi(t,0,0,0,1);return;case"hsla":if(u.length!==4){Vi(t,0,0,0,1);return}return u[3]=Xu(u[3]),w2(u,t),uf(e,t),t;case"hsl":if(u.length!==3){Vi(t,0,0,0,1);return}return w2(u,t),uf(e,t),t;default:return}}Vi(t,0,0,0,1)}}function w2(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Xu(e[1]),i=Xu(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Vi(t,Ma(gw(o,a,r+1/3)*255),Ma(gw(o,a,r)*255),Ma(gw(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Ape(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-n)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+c-d:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function C2(e,t){var r=Ci(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Jo(r,r.length===4?"rgba":"rgb")}}function mw(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=Ma(al(o[0],s[0],l)),r[1]=Ma(al(o[1],s[1],l)),r[2]=Ma(al(o[2],s[2],l)),r[3]=Bv(al(o[3],s[3],l)),r}}function Mpe(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Ci(t[i]),s=Ci(t[a]),l=n-i,u=Jo([Ma(al(o[0],s[0],l)),Ma(al(o[1],s[1],l)),Ma(al(o[2],s[2],l)),Bv(al(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function ov(e,t,r,n){var i=Ci(e);if(e)return i=Ape(i),t!=null&&(i[0]=Tpe(t)),r!=null&&(i[1]=Xu(r)),n!=null&&(i[2]=Xu(n)),Jo(w2(i),"rgba")}function b1(e,t){var r=Ci(e);if(r&&t!=null)return r[3]=Bv(t),Jo(r,"rgba")}function Jo(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function _1(e,t){var r=Ci(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var dN=new Ag(100);function T2(e){if(_e(e)){var t=dN.get(e);return t||(t=C2(e,-.1),dN.put(e,t)),t}else if(Xx(e)){var r=oe({},e);return r.colorStops=de(e.colorStops,function(n){return{offset:n.offset,color:C2(n.color,-.1)}}),r}return e}var w1=Math.round;function Fv(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Ci(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var hN=1e-4;function ol(e){return e<hN&&e>-hN}function Iy(e){return w1(e*1e3)/1e3}function A2(e){return w1(e*1e4)/1e4}function kpe(e){return"matrix("+Iy(e[0])+","+Iy(e[1])+","+Iy(e[2])+","+Iy(e[3])+","+A2(e[4])+","+A2(e[5])+")"}var Ipe={left:"start",right:"end",center:"middle",middle:"middle"};function Ppe(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Dpe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Rpe(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function _G(e){return e&&!!e.image}function Epe(e){return e&&!!e.svgElement}function Mk(e){return _G(e)||Epe(e)}function wG(e){return e.type==="linear"}function CG(e){return e.type==="radial"}function TG(e){return e&&(e.type==="linear"||e.type==="radial")}function Qx(e){return"url(#"+e+")"}function AG(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function MG(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*D0,i=Qe(e.scaleX,1),a=Qe(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+w1(o*D0)+"deg, "+w1(s*D0)+"deg)"),l.join(" ")}var Lpe=function(){return yt.hasGlobalWindow&&Be(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),M2=Array.prototype.slice;function Uo(e,t,r){return(t-e)*r+e}function yw(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=Uo(t[a],r[a],n);return e}function Ope(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Uo(t[o][s],r[o][s],n)}return e}function Py(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function pN(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function Npe(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function zpe(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:M2.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function sv(e){if(wn(e)){var t=e.length;if(wn(e[0])){for(var r=[],n=0;n<t;n++)r.push(M2.call(e[n]));return r}return M2.call(e)}return e}function O0(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function Bpe(e){return wn(e&&e[0])?2:1}var Dy=0,N0=1,kG=2,Lp=3,k2=4,I2=5,vN=6;function gN(e){return e===k2||e===I2}function Ry(e){return e===N0||e===kG}var rp=[0,0,0,0],Fpe=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}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(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=vN,l=r;if(wn(r)){var u=Bpe(r);s=u,(u===1&&!Dt(r[0])||u===2&&!Dt(r[0][0]))&&(o=!0)}else if(Dt(r)&&!Nv(r))s=Dy;else if(_e(r))if(!isNaN(+r))s=Dy;else{var c=Ci(r);c&&(l=c,s=Lp)}else if(Xx(r)){var f=oe({},l);f.colorStops=de(r.colorStops,function(h){return{offset:h.offset,color:Ci(h.color)}}),wG(r)?s=k2:CG(r)&&(s=I2),l=f}a===0?this.valType=s:(s!==this.valType||s===vN)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=Be(n)?n:av[n]||Ak(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,y){return g.time-y.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Ry(i),u=gN(i),c=0;c<a;c++){var f=n[c],d=f.value,h=o.value;f.percent=f.time/t,s||(l&&c!==a-1?zpe(d,h,i):u&&Npe(d.colorStops,h.colorStops))}if(!s&&i!==I2&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,c=0;c<a;c++)i===Dy?n[c].additiveValue=n[c].value-v:i===Lp?n[c].additiveValue=Py([],n[c].value,v,-1):Ry(i)&&(n[c].additiveValue=i===N0?Py([],n[c].value,v,-1):pN([],n[c].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Lp,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var g=d(f+1,s-1);for(c=g;c>=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=d(c-1,s-2)}v=o[c+1],h=o[c]}if(h&&v){this._lastFr=c,this._lastFrP=r;var y=v.percent-h.percent,x=y===0?1:d((r-h.percent)/y,1);v.easingFunc&&(x=v.easingFunc(x));var S=n?this._additiveValue:u?rp:t[l];if((Ry(a)||u)&&!S&&(S=this._additiveValue=[]),this.discrete)t[l]=x<1?h.rawValue:v.rawValue;else if(Ry(a))a===N0?yw(S,h[i],v[i],x):Ope(S,h[i],v[i],x);else if(gN(a)){var b=h[i],w=v[i],T=a===k2;t[l]={type:T?"linear":"radial",x:Uo(b.x,w.x,x),y:Uo(b.y,w.y,x),colorStops:de(b.colorStops,function(M,k){var I=w.colorStops[k];return{offset:Uo(M.offset,I.offset,x),color:O0(yw([],M.color,I.color,x))}}),global:w.global},T?(t[l].x2=Uo(b.x2,w.x2,x),t[l].y2=Uo(b.y2,w.y2,x)):t[l].r=Uo(b.r,w.r,x)}else if(u)yw(S,h[i],v[i],x),n||(t[l]=O0(S));else{var C=Uo(h[i],v[i],x);n?this._additiveValue=C:t[l]=C}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Dy?t[n]=t[n]+i:r===Lp?(Ci(t[n],rp),Py(rp,rp,i,1),t[n]=O0(rp)):r===N0?Py(t[n],t[n],i,1):r===kG&&pN(t[n],t[n],i,1)},e}(),kk=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){xk("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,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(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,St(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new Fpe(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===Lp&&u&&(u=O0(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,sv(u),i),this._trackKeys.push(s)}l.addKeyframe(t,sv(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),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(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new wpe({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var g=!1,y=0;y<v.length;y++)if(v[y]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var y=0;y<n.length;y++)n[y].step(r._target,h);var x=r._onframeCbs;if(x)for(var y=0;y<x.length;y++)x[y](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return de(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=sv(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||St(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function $f(){return new Date().getTime()}var Vpe=function(e){J(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=$f()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(y1(n),!r._paused&&r.update())}y1(n)},t.prototype.start=function(){this._running||(this._time=$f(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=$f(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=$f()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new kk(r,n.loop);return this.addAnimator(i),i},t}(oa),$pe=300,xw=yt.domSupported,Sw=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=de(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),mN={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},yN=!1;function P2(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Gpe(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function bw(e){e&&(e.zrByTouch=!0)}function Hpe(e,t){return $i(e.dom,new Wpe(e,t),!0)}function IG(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Wpe=function(){function e(t,r){this.stopPropagation=Mr,this.stopImmediatePropagation=Mr,this.preventDefault=Mr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Sa={mousedown:function(e){e=$i(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=$i(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=$i(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=$i(this.dom,e);var t=e.toElement||e.relatedTarget;IG(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){yN=!0,e=$i(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){yN||(e=$i(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=$i(this.dom,e),bw(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Sa.mousemove.call(this,e),Sa.mousedown.call(this,e)},touchmove:function(e){e=$i(this.dom,e),bw(e),this.handler.processGesture(e,"change"),Sa.mousemove.call(this,e)},touchend:function(e){e=$i(this.dom,e),bw(e),this.handler.processGesture(e,"end"),Sa.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<$pe&&Sa.click.call(this,e)},pointerdown:function(e){Sa.mousedown.call(this,e)},pointermove:function(e){P2(e)||Sa.mousemove.call(this,e)},pointerup:function(e){Sa.mouseup.call(this,e)},pointerout:function(e){P2(e)||Sa.mouseout.call(this,e)}};V(["click","dblclick","contextmenu"],function(e){Sa[e]=function(t){t=$i(this.dom,t),this.trigger(e,t)}});var D2={pointermove:function(e){P2(e)||D2.mousemove.call(this,e)},pointerup:function(e){D2.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 jpe(e,t){var r=t.domHandlers;yt.pointerEventsSupported?V(Sw.pointer,function(n){z0(t,n,function(i){r[n].call(e,i)})}):(yt.touchEventsSupported&&V(Sw.touch,function(n){z0(t,n,function(i){r[n].call(e,i),Gpe(t)})}),V(Sw.mouse,function(n){z0(t,n,function(i){i=wk(i),t.touching||r[n].call(e,i)})}))}function Upe(e,t){yt.pointerEventsSupported?V(mN.pointer,r):yt.touchEventsSupported||V(mN.mouse,r);function r(n){function i(a){a=wk(a),IG(e,a.target)||(a=Hpe(e,a),t.domHandlers[n].call(e,a))}z0(t,n,i,{capture:!0})}}function z0(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,S2(e.domTarget,t,r,n)}function _w(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&ope(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var xN=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Ype=function(e){J(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new xN(r,Sa),xw&&(i._globalHandlerScope=new xN(document,D2)),jpe(i,i._localHandlerScope),i}return t.prototype.dispose=function(){_w(this._localHandlerScope),xw&&_w(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,xw&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Upe(this,n):_w(n)}},t}(oa),PG=1;yt.hasGlobalWindow&&(PG=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var C1=PG,R2=.4,E2="#333",L2="#ccc",qpe="#eee",SN=Kx,bN=5e-5;function tu(e){return e>bN||e<-bN}var ru=[],cf=[],ww=wi(),Cw=Math.abs,Xo=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return tu(this.rotation)||tu(this.x)||tu(this.y)||tu(this.scaleX-1)||tu(this.scaleY-1)||tu(this.skewX)||tu(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(SN(n),this.invTransform=null);return}n=n||wi(),r?this.getLocalTransform(n):SN(n),t&&(r?Qo(n,t,n):Ck(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ru);var n=ru[0]<0?-1:1,i=ru[1]<0?-1:1,a=((ru[0]-n)*r+n)/ru[0]||0,o=((ru[1]-i)*r+i)/ru[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||wi(),Rd(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||wi(),Qo(cf,t.invTransform,r),r=cf);var n=this.originX,i=this.originY;(n||i)&&(ww[4]=n,ww[5]=i,Qo(cf,r,ww),cf[4]-=n,cf[5]-=i,r=cf),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&un(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&un(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Cw(t[0]-1)>1e-10&&Cw(t[3]-1)>1e-10?Math.sqrt(Cw(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){DG(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,g=i+l;r[4]=-v*a-d*g*o,r[5]=-g*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&wc(r,r,u),r[4]+=n+c,r[5]+=i+f,r},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}(),To=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function DG(e,t){for(var r=0;r<To.length;r++){var n=To[r];e[n]=t[n]}}var _N={};function Ti(e,t){t=t||ml;var r=_N[t];r||(r=_N[t]=new Ag(500));var n=r.get(e);return n==null&&(n=yl.measureText(e,t).width,r.put(e,n)),n}function wN(e,t,r,n){var i=Ti(e,t),a=Jx(t),o=Op(0,i,r),s=Ef(0,a,n),l=new rt(o,s,i,a);return l}function Mg(e,t,r,n){var i=((e||"")+"").split(`
|
169
|
+
`),a=i.length;if(a===1)return wN(i[0],t,r,n);for(var o=new rt(0,0,0,0),s=0;s<i.length;s++){var l=wN(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Op(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Ef(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function Jx(e){return Ti("国",e)}function La(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function T1(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=La(n[0],r.width),u+=La(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var Tw="__zr_normal__",Aw=To.concat(["ignore"]),Xpe=wo(To,function(e,t){return e[t]=!0,e},{ignore:!1}),ff={},Zpe=new rt(0,0,0,0),eS=function(){function e(t){this.id=aG(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,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(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=Zpe;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ff,n,c):T1(ff,n,c),a.x=ff.x,a.y=ff.y,o=ff.align,s=ff.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=La(f[0],c.width),h=La(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,S=void 0,b=void 0;g&&this.canBeInsideText()?(x=n.insideFill,S=n.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),b=!0)):(x=n.outsideFill,S=n.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),b=!0)),x=x||"#000",(x!==y.fill||S!==y.stroke||b!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=x,y.stroke=S,y.autoStroke=b,y.align=o,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=xi,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?L2:E2},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Ci(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Jo(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},oe(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Ge(t))for(var n=t,i=St(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Tw)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Aw)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Tw,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Tw,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ft(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){xk("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~xi),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var g=this._textContent,y=this._textGuide;g&&g.useStates(t,r,d),y&&y.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~xi)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=ft(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=ft(i,t),o=ft(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];oe(r,a),a.textConfig&&(n=n||{},oe(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=oe({},i?this.textConfig:n.textConfig),oe(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<Aw.length;c++){var f=Aw[c],d=a&&Xpe[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Xo,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),oe(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=xi;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new kk(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ft(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){Mw(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Mw(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Mw(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=xi;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(c){l[a]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Lr(eS,oa);Lr(eS,Xo);function Mw(e,t,r,n,i){r=r||{};var a=[];RG(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,g){r.during(g)});for(var d=0;d<a.length;d++){var h=a[d];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function kw(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function Kpe(e){return wn(e[0])}function Qpe(e,t,r){if(wn(t[r]))if(wn(e[r])||(e[r]=[]),ui(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),kw(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(Kpe(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?kw(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else kw(a,i,o);a.length=i.length}else e[r]=t[r]}function Jpe(e,t){return e===t||wn(e)&&wn(t)&&eve(e,t)}function eve(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function RG(e,t,r,n,i,a,o,s){for(var l=St(n),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,h=!Ge(a),v=e.animators,g=[],y=0;y<l.length;y++){var x=l[y],S=n[x];if(S!=null&&r[x]!=null&&(h||a[x]))if(Ge(S)&&!wn(S)&&!Xx(S)){if(t){s||(r[x]=S,e.updateDuringAnimation(t));continue}RG(e,x,r[x],S,i,a&&a[x],o,s)}else g.push(x);else s||(r[x]=S,e.updateDuringAnimation(t),g.push(x))}var b=g.length;if(!f&&b)for(var w=0;w<v.length;w++){var T=v[w];if(T.targetName===t){var C=T.stopTracks(g);if(C){var M=ft(v,T);v.splice(M,1)}}}if(i.force||(g=Wt(g,function(R){return!Jpe(n[R],r[R])}),b=g.length),b>0||i.force&&!o.length){var k=void 0,I=void 0,P=void 0;if(s){I={},d&&(k={});for(var w=0;w<b;w++){var x=g[w];I[x]=r[x],d?k[x]=n[x]:r[x]=n[x]}}else if(d){P={};for(var w=0;w<b;w++){var x=g[w];P[x]=sv(r[x]),Qpe(r,n,x)}}var T=new kk(r,!1,!1,f?Wt(v,function(L){return L.targetName===t}):null);T.targetName=t,i.scope&&(T.scope=i.scope),d&&k&&T.whenWithKeys(0,k,g),P&&T.whenWithKeys(0,P,g),T.whenWithKeys(u??500,s?I:n,g).delay(c||0),e.addAnimator(T,t),o.push(T)}}var qe=function(e){J(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ft(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ft(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new rt(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(rt.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(eS);qe.prototype.type="group";/*!
|
170
|
+
* ZRender, a high performance 2d drawing library.
|
171
|
+
*
|
172
|
+
* Copyright (c) 2013, Baidu Inc.
|
173
|
+
* All rights reserved.
|
174
|
+
*
|
175
|
+
* LICENSE
|
176
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
177
|
+
*/var B0={},EG={};function tve(e){delete EG[e]}function rve(e){if(!e)return!1;if(typeof e=="string")return _1(e,1)<R2;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=_1(t[i].color,1);return r/=n,r<R2}return!1}var nve=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new ype,o=n.renderer||"canvas";B0[o]||(o=St(B0)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new B0[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!yt.node&&!yt.worker&&!l?new Ype(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?yt.touchEventsSupported:!!c,d=44,h;f&&(h=Qe(n.pointerSize,d)),this.handler=new fG(a,s,u,s.root,h),this.animation=new Vpe({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=rve(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||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(t){var r,n=$f();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=$f();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},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&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.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(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof qe&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,tve(this.id))},e}();function CN(e,t){var r=new nve(aG(),e,t);return EG[r.id]=r,r}function ive(e,t){B0[e]=t}var O2;function ave(e){if(typeof O2=="function")return O2(e)}function ove(e){O2=e}var TN=1e-4,LG=20;function sve(e){return e.replace(/^\s+|\s+$/g,"")}function Vt(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function xe(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return _e(e)?sve(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function br(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),LG),e=(+e).toFixed(t),r?e:+e}function Qi(e){return e.sort(function(t,r){return t-r}),e}function so(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return lve(e)}function lve(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function OG(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function uve(e,t){var r=wo(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=de(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=de(i,function(h){return Math.floor(h)}),s=wo(o,function(h,v){return h+v},0),l=de(i,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return de(o,function(h){return h/n})}function cve(e,t){var r=Math.max(so(e),so(t)),n=e+t;return r>LG?n:br(n,r)}var AN=9007199254740991;function NG(e){var t=Math.PI*2;return(e%t+t)%t}function Vv(e){return e>-TN&&e<TN}var fve=/^(?:(\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 Ao(e){if(e instanceof Date)return e;if(_e(e)){var t=fve.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function dve(e){return Math.pow(10,Ik(e))}function Ik(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function zG(e,t){var r=Ik(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Iw(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function MN(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var i=e[n].interval,a=e[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-r),t=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(n,1):n++}return e;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function os(e){var t=parseFloat(e);return t==e&&(t!==0||!_e(e)||e.indexOf("x")<=0)?t:NaN}function BG(e){return!isNaN(os(e))}function FG(){return Math.round(Math.random()*9)}function VG(e,t){return t===0?e:VG(t,e%t)}function kN(e,t){return e==null?t:t==null?e:e*t/VG(e,t)}function Nt(e){throw new Error(e)}function IN(e,t,r){return(t-e)*r+e}var $G="series\0",GG="\0_ec_\0";function Ut(e){return e instanceof Array?e:e==null?[]:[e]}function cc(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var PN=["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 Ed(e){return Ge(e)&&!ue(e)&&!(e instanceof Date)?e.value:e}function hve(e){return Ge(e)&&!(e instanceof Array)}function HG(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=Re();V(t,function(l,u){if(!Ge(l)){t[u]=null;return}});var s=pve(e,o,r);return(n||i)&&vve(s,e,o,t),n&&gve(s,t),n||i?mve(s,t,i):a&&yve(s,t),xve(s),s}function pve(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||$v(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function vve(e,t,r,n){V(n,function(i,a){if(!(!i||i.id==null)){var o=lv(i.id),s=r.get(o);if(s!=null){var l=e[s];zn(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function gve(e,t){V(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!$v(r)&&!$v(a)&&WG("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function mve(e,t,r){V(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||$v(i.existing)||i.existing&&n.id!=null&&!WG("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function yve(e,t){V(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function xve(e){var t=Re();V(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),V(e,function(r){var n=r.newOption;zn(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),V(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Ge(a)){if(o.name=a.name!=null?lv(a.name):i?i.name:$G+n,i)o.id=lv(i.id);else if(a.id!=null)o.id=lv(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function WG(e,t,r){var n=Br(t[e],null),i=Br(r[e],null);return n!=null&&i!=null&&n===i}function lv(e){return Br(e,"")}function Br(e,t){return e==null?t:_e(e)?e:Dt(e)||h2(e)?e+"":t}function Pk(e){var t=e.name;return!!(t&&t.indexOf($G))}function $v(e){return e&&e.id!=null&&lv(e.id).indexOf(GG)===0}function Sve(e){return GG+e}function bve(e,t,r){V(e,function(n){var i=n.newOption;Ge(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=_ve(t,i,n.existing,r))})}function _ve(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function wve(e,t){var r={},n={};return i(e||[],r),i(t||[],n,r),[a(r),a(n)];function i(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=Br(o[u].seriesId,null);if(f==null)return;for(var d=Ut(o[u].dataIndex),h=l&&l[f],v=0,g=d.length;v<g;v++){var y=d[v];h&&h[y]?h[y]=null:(s[f]||(s[f]={}))[y]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=a(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function fc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ue(t.dataIndex)?de(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ue(t.name)?de(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Tt(){var e="__ec_inner_"+Cve++;return function(t){return t[e]||(t[e]={})}}var Cve=FG();function uv(e,t,r){var n=Dk(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=kg(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Dk(e,t){var r;if(_e(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=Re(),a={},o=!1;return V(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&ft(t.includeMainTypes,c)<0)){o=o||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Dr={useDefault:!0,enableAll:!1,enableNone:!1},Tve={useDefault:!1,enableAll:!0,enableNone:!0};function kg(e,t,r,n){n=n||Dr;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(zn(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(zn(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function jG(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Ave(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Mve(e){return e==="auto"?yt.domSupported?"html":"richText":e||"html"}function N2(e,t){var r=Re(),n=[];return V(e,function(i){var a=t(i);(r.get(a)||(n.push(a),r.set(a,[]))).push(i)}),{keys:n,buckets:r}}function UG(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(Dt(n)){var o=IN(r||0,n,i);return br(o,a?Math.max(so(r||0),so(n)):t)}else{if(_e(n))return i<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],o=IN(h,v,i);s[f]=br(o,a?Math.max(so(h),so(v)):t)}}return s}}var kve=".",nu="___EC__COMPONENT__CONTAINER___",YG="___EC__EXTENDED_CLASS___";function lo(e){var t={main:"",sub:""};if(e){var r=e.split(kve);t.main=r[0]||"",t.sub=r[1]||""}return t}function Ive(e){zn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Pve(e){return!!(e&&e[YG])}function Rk(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return Dve(n)?i=function(a){J(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Fhe(i,this)),oe(i.prototype,r),i[YG]=!0,i.extend=this.extend,i.superCall=Lve,i.superApply=Ove,i.superClass=n,i}}function Dve(e){return Be(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function qG(e,t){e.extend=t.extend}var Rve=Math.round(Math.random()*10);function Eve(e){var t=["__\0is_clz",Rve++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function Lve(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function Ove(e,t,r){return this.superClass.prototype[t].apply(e,r)}function tS(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){Ive(i),n.prototype.type=i;var a=lo(i);if(!a.sub)t[a.main]=n;else if(a.sub!==nu){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[nu]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=lo(n),a=[],o=t[i.main];return o&&o[nu]?V(o,function(s,l){l!==nu&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=lo(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return V(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=lo(n),a=t[i.main];return a&&a[nu]};function r(n){var i=t[n.main];return(!i||!i[nu])&&(i=t[n.main]={},i[nu]=!0),i}}function dc(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&ft(i,l)>=0||a&&ft(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Nve=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],zve=dc(Nve),Bve=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return zve(this,t,r)},e}(),z2=new Ag(50);function Fve(e){if(typeof e=="string"){var t=z2.get(e);return t&&t.image}else return e}function Ek(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=z2.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!rS(t)&&a.pending.push(o)):(t=yl.loadImage(e,DN,DN),t.__zrImageSrc=e,z2.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function DN(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function rS(e){return e&&e.width&&e.height}var Pw=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Vve(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
|
178
|
+
`);i=XG(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=ZG(a[o],i);return a.join(`
|
179
|
+
`)}function XG(e,t,r,n){n=n||{};var i=oe({},n);i.font=t,r=Qe(r,"..."),i.maxIterations=Qe(n.maxIterations,2);var a=i.minChar=Qe(n.minChar,0);i.cnCharWidth=Ti("国",t);var o=i.ascCharWidth=Ti("a",t);i.placeholder=Qe(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=Ti(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function ZG(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Ti(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?$ve(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Ti(e,n)}return e===""&&(e=t.placeholder),e}function $ve(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function Gve(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=Jx(i),s=Qe(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(r==="break"||r==="breakAll")?f=e?KG(e,t.font,c,r==="breakAll",0).lines:[]:f=e?e.split(`
|
180
|
+
`):[];var d=f.length*s,h=Qe(t.height,d);if(d>h&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(e&&a&&c!=null)for(var g=XG(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y=0;y<f.length;y++)f[y]=ZG(f[y],g);for(var x=h,S=0,y=0;y<f.length;y++)S=Math.max(Ti(f[y],i),S);c==null&&(c=S);var b=S;return n&&(x+=n[0]+n[2],b+=n[1]+n[3],c+=n[1]+n[3]),l&&(b=c),{lines:f,height:h,outerWidth:b,outerHeight:x,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:d,width:c}}var Hve=function(){function e(){}return e}(),RN=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Wve=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function jve(e,t){var r=new Wve;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Pw.lastIndex=0,l;(l=Pw.exec(e))!=null;){var u=l.index;u>s&&Dw(r,e.substring(s,u),t,o),Dw(r,l[2],t,o,l[1]),s=Pw.lastIndex}s<e.length&&Dw(r,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,v=a==="truncate",g=t.lineOverflow==="truncate";function y(H,X,F){H.width=X,H.lineHeight=F,f+=F,d=Math.max(d,X)}e:for(var x=0;x<r.lines.length;x++){for(var S=r.lines[x],b=0,w=0,T=0;T<S.tokens.length;T++){var C=S.tokens[T],M=C.styleName&&t.rich[C.styleName]||{},k=C.textPadding=M.padding,I=k?k[1]+k[3]:0,P=C.font=M.font||t.font;C.contentHeight=Jx(P);var R=Qe(M.height,C.contentHeight);if(C.innerHeight=R,k&&(R+=k[0]+k[2]),C.height=R,C.lineHeight=go(M.lineHeight,t.lineHeight,R),C.align=M&&M.align||t.align,C.verticalAlign=M&&M.verticalAlign||"middle",g&&i!=null&&f+C.lineHeight>i){T>0?(S.tokens=S.tokens.slice(0,T),y(S,w,b),r.lines=r.lines.slice(0,x+1)):r.lines=r.lines.slice(0,x);break e}var L=M.width,O=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")C.percentWidth=L,c.push(C),C.contentWidth=Ti(C.text,P);else{if(O){var N=M.backgroundColor,B=N&&N.image;B&&(B=Fve(B),rS(B)&&(C.width=Math.max(C.width,B.width*R/B.height)))}var G=v&&n!=null?n-w:null;G!=null&&G<C.width?!O||G<I?(C.text="",C.width=C.contentWidth=0):(C.text=Vve(C.text,G-I,P,t.ellipsis,{minChar:t.truncateMinChar}),C.width=C.contentWidth=Ti(C.text,P)):C.contentWidth=Ti(C.text,P)}C.width+=I,w+=C.width,M&&(b=Math.max(b,C.lineHeight))}y(S,w,b)}r.outerWidth=r.width=Qe(n,d),r.outerHeight=r.height=Qe(i,f),r.contentHeight=f,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var x=0;x<c.length;x++){var C=c[x],q=C.percentWidth;C.width=parseInt(q,10)/100*r.width}return r}function Dw(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,c,f;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=La(o.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(c=t.split(`
|
181
|
+
`),u=!0),n.accumWidth=v}else{var g=KG(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+h,f=g.linesWidths,c=g.lines}}else c=t.split(`
|
182
|
+
`);for(var y=0;y<c.length;y++){var x=c[y],S=new Hve;if(S.styleName=i,S.text=x,S.isLineHolder=!x&&!a,typeof o.width=="number"?S.width=o.width:S.width=f?f[y]:Ti(x,l),!y&&!u){var b=(s[s.length-1]||(s[0]=new RN)).tokens,w=b.length;w===1&&b[0].isLineHolder?b[0]=S:(x||!w||a)&&b.push(S)}else s.push(new RN([S]))}}function Uve(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Yve=wo(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function qve(e){return Uve(e)?!!Yve[e]:!0}function KG(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
|
183
|
+
`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=Ti(d,t),v=n?!1:!qve(d);if(a.length?c+h>r:i+c+h>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):v?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var B2="__zr_style_"+Math.round(Math.random()*10),Zu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},nS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Zu[B2]=!0;var EN=["z","z2","invisible"],Xve=["invisible"],na=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=St(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Zve(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new rt(0,0,0,0)),n?rt.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new rt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:oe(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ep,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Ep)},t.prototype.styleUpdated=function(){this.__dirty&=~Ep},t.prototype.createStyle=function(r){return Zx(Zu,r)},t.prototype.useStyle=function(r){r[B2]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[B2]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,EN)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=St(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=St(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?Xve:EN,d=0;d<g.length;d++){var h=g[d];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return oe(r,n),r},t.prototype.getAnimationStyleProps=function(){return nS},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=xi|Ep}(),t}(eS),Rw=new rt(0,0,0,0),Ew=new rt(0,0,0,0);function Zve(e,t,r){return Rw.copy(e.getBoundingRect()),e.transform&&Rw.applyTransform(e.transform),Ew.width=t,Ew.height=r,!Rw.intersect(Ew)}var ei=Math.min,ti=Math.max,Lw=Math.sin,Ow=Math.cos,iu=Math.PI*2,Ey=_c(),Ly=_c(),Oy=_c();function iS(e,t,r){if(e.length!==0){for(var n=e[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],i=ei(i,n[0]),a=ti(a,n[0]),o=ei(o,n[1]),s=ti(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function LN(e,t,r,n,i,a){i[0]=ei(e,r),i[1]=ei(t,n),a[0]=ti(e,r),a[1]=ti(t,n)}var ON=[],NN=[];function Kve(e,t,r,n,i,a,o,s,l,u){var c=gG,f=Gr,d=c(e,r,i,o,ON);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,r,i,o,ON[h]);l[0]=ei(v,l[0]),u[0]=ti(v,u[0])}d=c(t,n,a,s,NN);for(var h=0;h<d;h++){var g=f(t,n,a,s,NN[h]);l[1]=ei(g,l[1]),u[1]=ti(g,u[1])}l[0]=ei(e,l[0]),u[0]=ti(e,u[0]),l[0]=ei(o,l[0]),u[0]=ti(o,u[0]),l[1]=ei(t,l[1]),u[1]=ti(t,u[1]),l[1]=ei(s,l[1]),u[1]=ti(s,u[1])}function Qve(e,t,r,n,i,a,o,s){var l=yG,u=Kr,c=ti(ei(l(e,r,i),1),0),f=ti(ei(l(t,n,a),1),0),d=u(e,r,i,c),h=u(t,n,a,f);o[0]=ei(e,i,d),o[1]=ei(t,a,h),s[0]=ti(e,i,d),s[1]=ti(t,a,h)}function Jve(e,t,r,n,i,a,o,s,l){var u=rl,c=nl,f=Math.abs(i-a);if(f%iu<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Ey[0]=Ow(i)*r+e,Ey[1]=Lw(i)*n+t,Ly[0]=Ow(a)*r+e,Ly[1]=Lw(a)*n+t,u(s,Ey,Ly),c(l,Ey,Ly),i=i%iu,i<0&&(i=i+iu),a=a%iu,a<0&&(a=a+iu),i>a&&!o?a+=iu:i<a&&o&&(i+=iu),o){var d=a;a=i,i=d}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Oy[0]=Ow(h)*r+e,Oy[1]=Lw(h)*n+t,u(s,Oy,s),c(l,Oy,l))}var Jt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},au=[],ou=[],Ua=[],Fs=[],Ya=[],qa=[],Nw=Math.min,zw=Math.max,su=Math.cos,lu=Math.sin,Ho=Math.abs,F2=Math.PI,Xs=F2*2,Bw=typeof Float32Array<"u",np=[];function Fw(e){var t=Math.round(e/F2*1e8)/1e8;return t%2*F2}function Lk(e,t){var r=Fw(e[0]);r<0&&(r+=Xs);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Xs?i=r+Xs:t&&r-i>=Xs?i=r-Xs:!t&&r>i?i=r+(Xs-Fw(r-i)):t&&r<i&&(i=r-(Xs-Fw(i-r))),e[0]=r,e[1]=i}var Mo=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(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(t,r,n){n=n||0,n>0&&(this._ux=Ho(n/C1/t)||0,this._uy=Ho(n/C1/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},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(t,r){return this._drawPendingPt(),this.addData(Jt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Ho(t-this._xi),i=Ho(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Jt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(Jt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(Jt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),np[0]=i,np[1]=a,Lk(np,o),i=np[0],a=np[1];var s=a-i;return this.addData(Jt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=su(a)*n+t,this._yi=lu(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(Jt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Jt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Bw&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();Bw&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},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 t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Bw&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Ua[0]=Ua[1]=Ya[0]=Ya[1]=Number.MAX_VALUE,Fs[0]=Fs[1]=qa[0]=qa[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case Jt.M:r=i=t[o++],n=a=t[o++],Ya[0]=i,Ya[1]=a,qa[0]=i,qa[1]=a;break;case Jt.L:LN(r,n,t[o],t[o+1],Ya,qa),r=t[o++],n=t[o++];break;case Jt.C:Kve(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ya,qa),r=t[o++],n=t[o++];break;case Jt.Q:Qve(r,n,t[o++],t[o++],t[o],t[o+1],Ya,qa),r=t[o++],n=t[o++];break;case Jt.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var g=!t[o++];l&&(i=su(h)*f+u,a=lu(h)*d+c),Jve(u,c,f,d,h,v,g,Ya,qa),r=su(v)*f+u,n=lu(v)*d+c;break;case Jt.R:i=r=t[o++],a=n=t[o++];var y=t[o++],x=t[o++];LN(i,a,i+y,a+x,Ya,qa);break;case Jt.Z:r=i,n=a;break}rl(Ua,Ua,Ya),nl(Fs,Fs,qa)}return o===0&&(Ua[0]=Ua[1]=Fs[0]=Fs[1]=0),new rt(Ua[0],Ua[1],Fs[0]-Ua[0],Fs[1]-Ua[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<r;){var h=t[d++],v=d===1;v&&(a=t[d],o=t[d+1],s=a,l=o);var g=-1;switch(h){case Jt.M:a=s=t[d++],o=l=t[d++];break;case Jt.L:{var y=t[d++],x=t[d++],S=y-a,b=x-o;(Ho(S)>n||Ho(b)>i||d===r-1)&&(g=Math.sqrt(S*S+b*b),a=y,o=x);break}case Jt.C:{var w=t[d++],T=t[d++],y=t[d++],x=t[d++],C=t[d++],M=t[d++];g=xpe(a,o,w,T,y,x,C,M,10),a=C,o=M;break}case Jt.Q:{var w=t[d++],T=t[d++],y=t[d++],x=t[d++];g=bpe(a,o,w,T,y,x,10),a=y,o=x;break}case Jt.A:var k=t[d++],I=t[d++],P=t[d++],R=t[d++],L=t[d++],O=t[d++],N=O+L;d+=1,v&&(s=su(L)*P+k,l=lu(L)*R+I),g=zw(P,R)*Nw(Xs,Math.abs(O)),a=su(N)*P+k,o=lu(N)*R+I;break;case Jt.R:{s=a=t[d++],l=o=t[d++];var B=t[d++],G=t[d++];g=B*2+G*2;break}case Jt.Z:{var S=s-a,b=l-o;g=Math.sqrt(S*S+b*b),a=s,o=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,v,g,y=0,x=0,S,b=0,w,T;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,S=r*g,!S)))e:for(var C=0;C<o;){var M=n[C++],k=C===1;switch(k&&(u=n[C],c=n[C+1],s=u,l=c),M!==Jt.L&&b>0&&(t.lineTo(w,T),b=0),M){case Jt.M:s=u=n[C++],l=c=n[C++],t.moveTo(u,c);break;case Jt.L:{f=n[C++],d=n[C++];var I=Ho(f-u),P=Ho(d-c);if(I>i||P>a){if(h){var R=v[x++];if(y+R>S){var L=(S-y)/R;t.lineTo(u*(1-L)+f*L,c*(1-L)+d*L);break e}y+=R}t.lineTo(f,d),u=f,c=d,b=0}else{var O=I*I+P*P;O>b&&(w=f,T=d,b=O)}break}case Jt.C:{var N=n[C++],B=n[C++],G=n[C++],q=n[C++],H=n[C++],X=n[C++];if(h){var R=v[x++];if(y+R>S){var L=(S-y)/R;xl(u,N,G,H,L,au),xl(c,B,q,X,L,ou),t.bezierCurveTo(au[1],ou[1],au[2],ou[2],au[3],ou[3]);break e}y+=R}t.bezierCurveTo(N,B,G,q,H,X),u=H,c=X;break}case Jt.Q:{var N=n[C++],B=n[C++],G=n[C++],q=n[C++];if(h){var R=v[x++];if(y+R>S){var L=(S-y)/R;zv(u,N,G,L,au),zv(c,B,q,L,ou),t.quadraticCurveTo(au[1],ou[1],au[2],ou[2]);break e}y+=R}t.quadraticCurveTo(N,B,G,q),u=G,c=q;break}case Jt.A:var F=n[C++],Y=n[C++],Z=n[C++],j=n[C++],re=n[C++],ce=n[C++],te=n[C++],pe=!n[C++],ae=Z>j?Z:j,he=Ho(Z-j)>.001,ve=re+ce,fe=!1;if(h){var R=v[x++];y+R>S&&(ve=re+ce*(S-y)/R,fe=!0),y+=R}if(he&&t.ellipse?t.ellipse(F,Y,Z,j,te,re,ve,pe):t.arc(F,Y,ae,re,ve,pe),fe)break e;k&&(s=su(re)*Z+F,l=lu(re)*j+Y),u=su(ve)*Z+F,c=lu(ve)*j+Y;break;case Jt.R:s=u=n[C],l=c=n[C+1],f=n[C++],d=n[C++];var ge=n[C++],De=n[C++];if(h){var R=v[x++];if(y+R>S){var Ie=S-y;t.moveTo(f,d),t.lineTo(f+Nw(Ie,ge),d),Ie-=ge,Ie>0&&t.lineTo(f+ge,d+Nw(Ie,De)),Ie-=De,Ie>0&&t.lineTo(f+zw(ge-Ie,0),d+De),Ie-=ge,Ie>0&&t.lineTo(f,d+zw(De-Ie,0));break e}y+=R}t.rect(f,d,ge,De);break;case Jt.Z:if(h){var R=v[x++];if(y+R>S){var L=(S-y)/R;t.lineTo(u*(1-L)+s*L,c*(1-L)+l*L);break e}y+=R}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=Jt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Qs(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function ege(e,t,r,n,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>a+f&&c>s+f||c<t-f&&c<n-f&&c<a-f&&c<s-f||u>e+f&&u>r+f&&u>i+f&&u>o+f||u<e-f&&u<r-f&&u<i-f&&u<o-f)return!1;var d=mG(e,t,r,n,i,a,o,s,u,c,null);return d<=f/2}function QG(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var c=xG(e,t,r,n,i,a,s,l,null);return c<=u/2}var zN=Math.PI*2;function bi(e){return e%=zN,e<0&&(e+=zN),e}var ip=Math.PI*2;function tge(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-i)%ip<1e-4)return!0;if(a){var f=n;n=bi(i),i=bi(f)}else n=bi(n),i=bi(i);n>i&&(i+=ip);var d=Math.atan2(l,s);return d<0&&(d+=ip),d>=n&&d<=i||d+ip>=n&&d+ip<=i}function Yo(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var Vs=Mo.CMD,uu=Math.PI*2,rge=1e-4;function nge(e,t){return Math.abs(e-t)<rge}var Rn=[-1,-1,-1],Hi=[-1,-1];function ige(){var e=Hi[0];Hi[0]=Hi[1],Hi[1]=e}function age(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var c=S1(t,n,a,s,u,Rn);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,g=0;g<c;g++){var y=Rn[g],x=y===0||y===1?.5:1,S=Gr(e,r,i,o,y);S<l||(d<0&&(d=gG(t,n,a,s,Hi),Hi[1]<Hi[0]&&d>1&&ige(),h=Gr(t,n,a,s,Hi[0]),d>1&&(v=Gr(t,n,a,s,Hi[1]))),d===2?y<Hi[0]?f+=h<t?x:-x:y<Hi[1]?f+=v<h?x:-x:f+=s<v?x:-x:y<Hi[0]?f+=h<t?x:-x:f+=s<h?x:-x)}return f}function oge(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=Spe(t,n,a,s,Rn);if(l===0)return 0;var u=yG(t,n,a);if(u>=0&&u<=1){for(var c=0,f=Kr(t,n,a,u),d=0;d<l;d++){var h=Rn[d]===0||Rn[d]===1?.5:1,v=Kr(e,r,i,Rn[d]);v<o||(Rn[d]<u?c+=f<t?h:-h:c+=a<f?h:-h)}return c}else{var h=Rn[0]===0||Rn[0]===1?.5:1,v=Kr(e,r,i,Rn[0]);return v<o?0:a<t?h:-h}}function sge(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Rn[0]=-l,Rn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=uu-1e-4){n=0,i=uu;var c=a?1:-1;return o>=Rn[0]+e&&o<=Rn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=uu,i+=uu);for(var d=0,h=0;h<2;h++){var v=Rn[h];if(v+e>o){var g=Math.atan2(s,v),c=a?1:-1;g<0&&(g=uu+g),(g>=n&&g<=i||g+uu>=n&&g+uu<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),d+=c)}}return d}function JG(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<o;){var g=a[v++],y=v===1;switch(g===Vs.M&&v>1&&(r||(s+=Yo(l,u,c,f,n,i))),y&&(l=a[v],u=a[v+1],c=l,f=u),g){case Vs.M:c=a[v++],f=a[v++],l=c,u=f;break;case Vs.L:if(r){if(Qs(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Yo(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Vs.C:if(r){if(ege(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=age(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Vs.Q:if(r){if(QG(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=oge(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Vs.A:var x=a[v++],S=a[v++],b=a[v++],w=a[v++],T=a[v++],C=a[v++];v+=1;var M=!!(1-a[v++]);d=Math.cos(T)*b+x,h=Math.sin(T)*w+S,y?(c=d,f=h):s+=Yo(l,u,d,h,n,i);var k=(n-x)*w/b+x;if(r){if(tge(x,S,w,T,T+C,M,t,k,i))return!0}else s+=sge(x,S,w,T,T+C,M,k,i);l=Math.cos(T+C)*b+x,u=Math.sin(T+C)*w+S;break;case Vs.R:c=l=a[v++],f=u=a[v++];var I=a[v++],P=a[v++];if(d=c+I,h=f+P,r){if(Qs(c,f,d,f,t,n,i)||Qs(d,f,d,h,t,n,i)||Qs(d,h,c,h,t,n,i)||Qs(c,h,c,f,t,n,i))return!0}else s+=Yo(d,f,d,h,n,i),s+=Yo(c,h,c,f,n,i);break;case Vs.Z:if(r){if(Qs(l,u,c,f,t,n,i))return!0}else s+=Yo(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!nge(u,f)&&(s+=Yo(l,u,c,f,n,i)||0),s!==0}function lge(e,t,r){return JG(e,0,!1,t,r)}function uge(e,t,r,n){return JG(e,t,!0,r,n)}var A1=Ve({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Zu),cge={style:Ve({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},nS.style)},Vw=To.concat(["invisible","culling","z","z2","zlevel","parent"]),vt=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Vw.length;++s)i[Vw[s]]=this[Vw[s]];i.__dirty|=xi}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=St(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?oe(this.style,s):this.useStyle(s):o==="shape"?oe(this.shape,s):e.prototype.attrKV.call(this,o,s)}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 r=this.style.fill;if(r!=="none"){if(_e(r)){var n=_1(r,0);return n>.5?E2:n>.2?qpe:L2}else if(r)return L2}return E2},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(_e(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=_1(r,0)<R2;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Rf},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Mo(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Rf)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),uge(s,l/u,r,n)))return!0}if(this.hasFill())return lge(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Rf,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:oe(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Rf)},t.prototype.createStyle=function(r){return Zx(A1,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=oe({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=oe({},i.shape),oe(u,n.shape)):(u=oe({},a?this.shape:i.shape),oe(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=oe({},this.shape);for(var c={},f=St(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return cge},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){J(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return We(r.style)},o.prototype.getDefaultShape=function(){return We(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=xi|Ep|Rf}(),t}(na),fge=Ve({strokeFirst:!0,font:ml,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},A1),gd=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Zx(fge,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Mg(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(na);gd.prototype.type="tspan";var dge=Ve({x:0,y:0},Zu),hge={style:Ve({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},nS.style)};function pge(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Jr=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Zx(dge,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=pge(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return hge},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new rt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(na);Jr.prototype.type="image";function vge(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Gf=Math.round;function eH(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Gf(n*2)===Gf(i*2)&&(e.x1=e.x2=Vu(n,s,!0)),Gf(a*2)===Gf(o*2)&&(e.y1=e.y2=Vu(a,s,!0))),e}}function tH(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Vu(n,s,!0),e.y=Vu(i,s,!0),e.width=Math.max(Vu(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Vu(i+o,s,!1)-e.y,o===0?0:1)),e}}function Vu(e,t,r){if(!t)return e;var n=Gf(e*2);return(n+Gf(t))%2===0?n/2:(n+(r?1:-1))/2}var gge=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),mge={},Ct=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new gge},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=tH(mge,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?vge(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(vt);Ct.prototype.type="rect";var BN={fill:"#000"},FN=2,yge={style:Ve({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},nS.style)},kt=function(e){J(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=BN,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];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 r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},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,bge(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);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 r=new rt(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||BN},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return oe(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=St(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},oe(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return yge},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||ml,i=r.padding,a=UN(r),o=Gve(a,r),s=$w(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,g=r.x||0,y=r.y||0,x=r.align||v.align||"left",S=r.verticalAlign||v.verticalAlign||"top",b=g,w=Ef(y,o.contentHeight,S);if(s||i){var T=Op(g,c,x),C=Ef(y,u,S);s&&this._renderBackground(r,r,T,C,c,u)}w+=h/2,i&&(b=jN(g,x,i),S==="top"?w+=i[0]:S==="bottom"&&(w-=i[2]));for(var M=0,k=!1,I=WN("fill"in r?r.fill:(k=!0,v.fill)),P=HN("stroke"in r?r.stroke:!l&&(!v.autoStroke||k)?(M=FN,v.stroke):null),R=r.textShadowBlur>0,L=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),O=o.calculatedLineHeight,N=0;N<d.length;N++){var B=this._getOrCreateChild(gd),G=B.createStyle();B.useStyle(G),G.text=d[N],G.x=b,G.y=w,x&&(G.textAlign=x),G.textBaseline="middle",G.opacity=r.opacity,G.strokeFirst=!0,R&&(G.shadowBlur=r.textShadowBlur||0,G.shadowColor=r.textShadowColor||"transparent",G.shadowOffsetX=r.textShadowOffsetX||0,G.shadowOffsetY=r.textShadowOffsetY||0),G.stroke=P,G.fill=I,P&&(G.lineWidth=r.lineWidth||M,G.lineDash=r.lineDash,G.lineDashOffset=r.lineDashOffset||0),G.font=n,$N(G,r),w+=h,L&&B.setBoundingRect(new rt(Op(G.x,r.width,G.textAlign),Ef(G.y,O,G.textBaseline),f,O))}},t.prototype._updateRichTexts=function(){var r=this.style,n=UN(r),i=jve(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,d=r.align||f.align,h=r.verticalAlign||f.verticalAlign,v=Op(u,o,d),g=Ef(c,s,h),y=v,x=g;l&&(y+=l[3],x+=l[0]);var S=y+a;$w(r)&&this._renderBackground(r,r,v,g,o,s);for(var b=!!r.backgroundColor,w=0;w<i.lines.length;w++){for(var T=i.lines[w],C=T.tokens,M=C.length,k=T.lineHeight,I=T.width,P=0,R=y,L=S,O=M-1,N=void 0;P<M&&(N=C[P],!N.align||N.align==="left");)this._placeToken(N,r,k,x,R,"left",b),I-=N.width,R+=N.width,P++;for(;O>=0&&(N=C[O],N.align==="right");)this._placeToken(N,r,k,x,L,"right",b),I-=N.width,L-=N.width,O--;for(R+=(a-(R-y)-(S-L)-I)/2;P<=O;)N=C[P],this._placeToken(N,r,k,x,R+N.width/2,"center",b),R+=N.width,P++;x+=k}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&$w(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=jN(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild(gd),y=g.createStyle();g.useStyle(y);var x=this._defaultStyle,S=!1,b=0,w=WN("fill"in u?u.fill:"fill"in n?n.fill:(S=!0,x.fill)),T=HN("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!x.autoStroke||S)?(b=FN,x.stroke):null),C=u.textShadowBlur>0||n.textShadowBlur>0;y.text=r.text,y.x=o,y.y=f,C&&(y.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,y.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=r.font||ml,y.opacity=go(u.opacity,n.opacity,1),$N(y,u),T&&(y.lineWidth=go(u.lineWidth,n.lineWidth,b),y.lineDash=Qe(u.lineDash,n.lineDash),y.lineDashOffset=n.lineDashOffset||0,y.stroke=T),w&&(y.fill=w);var M=r.contentWidth,k=r.contentHeight;g.setBoundingRect(new rt(Op(y.x,M,y.textAlign),Ef(y.y,k,y.textBaseline),M,k))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,v=this,g,y;if(d||r.lineHeight||u&&c){g=this._getOrCreateChild(Ct),g.useStyle(g.createStyle()),g.style.fill=null;var x=g.shape;x.x=i,x.y=a,x.width=o,x.height=s,x.r=h,g.dirtyShape()}if(d){var S=g.style;S.fill=l||null,S.fillOpacity=Qe(r.fillOpacity,1)}else if(f){y=this._getOrCreateChild(Jr),y.onload=function(){v.dirtyStyle()};var b=y.style;b.image=l.image,b.x=i,b.y=a,b.width=o,b.height=s}if(u&&c){var S=g.style;S.lineWidth=u,S.stroke=c,S.strokeOpacity=Qe(r.strokeOpacity,1),S.lineDash=r.borderDash,S.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(S.strokeFirst=!0,S.lineWidth*=2)}var w=(g||y).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=go(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return nH(r)&&(n=[r.fontStyle,r.fontWeight,rH(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ta(n)||r.textFont||r.font},t}(na),xge={left:!0,right:1,center:1},Sge={top:1,bottom:1,middle:1},VN=["fontStyle","fontWeight","fontSize","fontFamily"];function rH(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?gk+"px":e+"px"}function $N(e,t){for(var r=0;r<VN.length;r++){var n=VN[r],i=t[n];i!=null&&(e[n]=i)}}function nH(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function bge(e){return GN(e),V(e.rich,GN),e}function GN(e){if(e){e.font=kt.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||xge[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||Sge[r]?r:"top";var n=e.padding;n&&(e.padding=_k(e.padding))}}function HN(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function WN(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function jN(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function UN(e){var t=e.text;return t!=null&&(t+=""),t}function $w(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Ze=Tt(),V2=function(e,t,r,n){if(n){var i=Ze(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=Ze(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},YN=1,qN={},iH=Tt(),Ok=Tt(),Nk=0,Ig=1,aS=2,Bn=["emphasis","blur","select"],Gv=["normal","emphasis","blur","select"],Ld=10,_ge=9,Ku="highlight",F0="downplay",cv="select",V0="unselect",fv="toggleSelect";function df(e){return e!=null&&e!=="none"}function oS(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function aH(e){oS(e,"emphasis",aS)}function oH(e){e.hoverState===aS&&oS(e,"normal",Nk)}function zk(e){oS(e,"blur",Ig)}function sH(e){e.hoverState===Ig&&oS(e,"normal",Nk)}function wge(e){e.selected=!0}function Cge(e){e.selected=!1}function XN(e,t,r){t(e,r)}function hs(e,t,r){XN(e,t,r),e.isGroup&&e.traverse(function(n){XN(n,t,r)})}function M1(e,t){switch(t){case"emphasis":e.hoverState=aS;break;case"normal":e.hoverState=Nk;break;case"blur":e.hoverState=Ig;break;case"select":e.selected=!0}}function Tge(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function Age(e,t,r,n){var i=r&&ft(r,"select")>=0,a=!1;if(e instanceof vt){var o=iH(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(df(s)||df(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=oe({},n),u=oe({},u),u.fill=s):!df(u.fill)&&df(s)?(a=!0,n=oe({},n),u=oe({},u),u.fill=T2(s)):!df(u.stroke)&&df(l)&&(a||(n=oe({},n),u=oe({},u)),u.stroke=T2(l)),n.style=u}}if(n&&n.z2==null){a||(n=oe({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Ld)}return n}function Mge(e,t,r){if(r&&r.z2==null){r=oe({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??_ge)}return r}function kge(e,t,r){var n=ft(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Tge(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=oe({},r),o=oe({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Gw(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Age(this,e,t,r);if(e==="blur")return kge(this,e,r);if(e==="select")return Mge(this,e,r)}return r}function hc(e){e.stateProxy=Gw;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Gw),r&&(r.stateProxy=Gw)}function ZN(e,t){!fH(e,t)&&!e.__highByOuter&&hs(e,aH)}function KN(e,t){!fH(e,t)&&!e.__highByOuter&&hs(e,oH)}function ss(e,t){e.__highByOuter|=1<<(t||0),hs(e,aH)}function ls(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&hs(e,oH)}function lH(e){hs(e,zk)}function Bk(e){hs(e,sH)}function uH(e){hs(e,wge)}function cH(e){hs(e,Cge)}function fH(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function dH(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Ok(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){sH(u)}),s&&r.push(a)),o.isBlured=!1}),V(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function $2(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&Bk(d)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||t==="series"&&c)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(y){y.__highByOuter&&c&&t==="self"||zk(y)}),wn(t))a(u.getData(),t);else if(Ge(t))for(var v=St(t),g=0;g<v.length;g++)a(u.getData(v[g]),t[v[g]]);l.push(u),Ok(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function G2(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){Ok(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){zk(a)})}}}function Ige(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=fc(i,t);a=(ue(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=Ze(o);$2(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&$2(n,c,f,r)}}}function Fk(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(Ze(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Pge(e,t,r){var n=Ze(e),i=Fk(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&G2(n.componentMainType,n.componentIndex,r),V(a,function(s){return ZN(s,t)})):($2(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&G2(n.componentMainType,n.componentIndex,r),ZN(e,t))}function Dge(e,t,r){dH(r);var n=Ze(e),i=Fk(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?V(i,function(a){return KN(a,t)}):KN(e,t)}function Rge(e,t,r){if(W2(t)){var n=t.dataType,i=e.getData(n),a=fc(i,t);ue(a)||(a=[a]),e[t.type===fv?"toggleSelect":t.type===cv?"select":"unselect"](a,n)}}function QN(e){var t=e.getAllData();V(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?uH(a):cH(a)})})}function Ege(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();V(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Qu(e,t,r){$u(e,!0),hs(e,hc),H2(e,t,r)}function Lge(e){$u(e,!1)}function mr(e,t,r,n){n?Lge(e):Qu(e,t,r)}function H2(e,t,r){var n=Ze(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var JN=["emphasis","blur","select"],Oge={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function cn(e,t,r,n){r=r||"itemStyle";for(var i=0;i<JN.length;i++){var a=JN[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[Oge[r]]()}}function $u(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Hv(e){return!!(e&&e.__highDownDispatcher)}function Nge(e,t,r){var n=Ze(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function zge(e){var t=qN[e];return t==null&&YN<=32&&(t=qN[e]=YN++),t}function W2(e){var t=e.type;return t===cv||t===V0||t===fv}function e5(e){var t=e.type;return t===Ku||t===F0}function Bge(e){var t=iH(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var hf=Mo.CMD,Fge=[[],[],[]],t5=Math.sqrt,Vge=Math.atan2;function hH(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,c=hf.M,f=hf.C,d=hf.L,h=hf.R,v=hf.A,g=hf.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case c:a=1;break;case d:a=1;break;case f:a=3;break;case g:a=2;break;case v:var y=t[4],x=t[5],S=t5(t[0]*t[0]+t[1]*t[1]),b=t5(t[2]*t[2]+t[3]*t[3]),w=Vge(-t[1]/b,t[0]/S);r[o]*=S,r[o++]+=y,r[o]*=b,r[o++]+=x,r[o++]*=S,r[o++]*=b,r[o++]+=w,r[o++]+=w,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],un(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],un(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var T=Fge[l];T[0]=r[o++],T[1]=r[o++],un(T,T,t),r[s++]=T[0],r[s++]=T[1]}}e.increaseVersion()}}var Hw=Math.sqrt,Ny=Math.sin,zy=Math.cos,ap=Math.PI;function r5(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function j2(e,t){return(e[0]*t[0]+e[1]*t[1])/(r5(e)*r5(t))}function n5(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(j2(e,t))}function i5(e,t,r,n,i,a,o,s,l,u,c){var f=l*(ap/180),d=zy(f)*(e-r)/2+Ny(f)*(t-n)/2,h=-1*Ny(f)*(e-r)/2+zy(f)*(t-n)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=Hw(v),s*=Hw(v));var g=(i===a?-1:1)*Hw((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,y=g*o*h/s,x=g*-s*d/o,S=(e+r)/2+zy(f)*y-Ny(f)*x,b=(t+n)/2+Ny(f)*y+zy(f)*x,w=n5([1,0],[(d-y)/o,(h-x)/s]),T=[(d-y)/o,(h-x)/s],C=[(-1*d-y)/o,(-1*h-x)/s],M=n5(T,C);if(j2(T,C)<=-1&&(M=ap),j2(T,C)>=1&&(M=0),M<0){var k=Math.round(M/ap*1e6)/1e6;M=ap*2+k%2*ap}c.addData(u,S,b,o,s,w,M,f,a)}var $ge=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Gge=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Hge(e){var t=new Mo;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Mo.CMD,l=e.match($ge);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(Gge)||[],v=h.length,g=0;g<v;g++)h[g]=parseFloat(h[g]);for(var y=0;y<v;){var x=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0,M=void 0,k=r,I=n,P=void 0,R=void 0;switch(f){case"l":r+=h[y++],n+=h[y++],d=s.L,t.addData(d,r,n);break;case"L":r=h[y++],n=h[y++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[y++],n+=h[y++],d=s.M,t.addData(d,r,n),i=r,a=n,f="l";break;case"M":r=h[y++],n=h[y++],d=s.M,t.addData(d,r,n),i=r,a=n,f="L";break;case"h":r+=h[y++],d=s.L,t.addData(d,r,n);break;case"H":r=h[y++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[y++],d=s.L,t.addData(d,r,n);break;case"V":n=h[y++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[y++],h[y++],h[y++],h[y++],h[y++],h[y++]),r=h[y-2],n=h[y-1];break;case"c":d=s.C,t.addData(d,h[y++]+r,h[y++]+n,h[y++]+r,h[y++]+n,h[y++]+r,h[y++]+n),r+=h[y-2],n+=h[y-1];break;case"S":x=r,S=n,P=t.len(),R=t.data,o===s.C&&(x+=r-R[P-4],S+=n-R[P-3]),d=s.C,k=h[y++],I=h[y++],r=h[y++],n=h[y++],t.addData(d,x,S,k,I,r,n);break;case"s":x=r,S=n,P=t.len(),R=t.data,o===s.C&&(x+=r-R[P-4],S+=n-R[P-3]),d=s.C,k=r+h[y++],I=n+h[y++],r+=h[y++],n+=h[y++],t.addData(d,x,S,k,I,r,n);break;case"Q":k=h[y++],I=h[y++],r=h[y++],n=h[y++],d=s.Q,t.addData(d,k,I,r,n);break;case"q":k=h[y++]+r,I=h[y++]+n,r+=h[y++],n+=h[y++],d=s.Q,t.addData(d,k,I,r,n);break;case"T":x=r,S=n,P=t.len(),R=t.data,o===s.Q&&(x+=r-R[P-4],S+=n-R[P-3]),r=h[y++],n=h[y++],d=s.Q,t.addData(d,x,S,r,n);break;case"t":x=r,S=n,P=t.len(),R=t.data,o===s.Q&&(x+=r-R[P-4],S+=n-R[P-3]),r+=h[y++],n+=h[y++],d=s.Q,t.addData(d,x,S,r,n);break;case"A":b=h[y++],w=h[y++],T=h[y++],C=h[y++],M=h[y++],k=r,I=n,r=h[y++],n=h[y++],d=s.A,i5(k,I,r,n,C,M,b,w,T,d,t);break;case"a":b=h[y++],w=h[y++],T=h[y++],C=h[y++],M=h[y++],k=r,I=n,r+=h[y++],n+=h[y++],d=s.A,i5(k,I,r,n,C,M,b,w,T,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=i,n=a),o=d}return t.toStatic(),t}var pH=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(vt);function vH(e){return e.setData!=null}function gH(e,t){var r=Hge(e),n=oe({},t);return n.buildPath=function(i){if(vH(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){hH(r,i),this.dirtyShape()},n}function mH(e,t){return new pH(gH(e,t))}function Wge(e,t){var r=gH(e,t),n=function(i){J(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(pH);return n}function jge(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new vt(t);return o.createPathProxy(),o.buildPath=function(s){if(vH(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Vk(e,t){t=t||{};var r=new vt;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?hH(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var Uge=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),ps=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Uge},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(vt);ps.prototype.type="circle";var Yge=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),sS=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Yge},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),r.closePath()},t}(vt);sS.prototype.type="ellipse";var yH=Math.PI,Ww=yH*2,cu=Math.sin,pf=Math.cos,qge=Math.acos,mn=Math.atan2,a5=Math.abs,dv=Math.sqrt,Np=Math.max,Xa=Math.min,xa=1e-4;function Xge(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=f*l-c*u;if(!(d*d<xa))return d=(c*(t-a)-f*(e-i))/d,[e+d*l,t+d*u]}function By(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/dv(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=r+c,g=n+f,y=(d+v)/2,x=(h+g)/2,S=v-d,b=g-h,w=S*S+b*b,T=i-a,C=d*g-v*h,M=(b<0?-1:1)*dv(Np(0,T*T*w-C*C)),k=(C*b-S*M)/w,I=(-C*S-b*M)/w,P=(C*b+S*M)/w,R=(-C*S+b*M)/w,L=k-y,O=I-x,N=P-y,B=R-x;return L*L+O*O>N*N+B*B&&(k=P,I=R),{cx:k,cy:I,x0:-c,y0:-f,x1:k*(i/T-1),y1:I*(i/T-1)}}function Zge(e){var t;if(ue(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Kge(e,t){var r,n=Np(t.r,0),i=Np(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=a5(u-l),v=h>Ww&&h%Ww;if(v>xa&&(h=v),!(n>xa))e.moveTo(c,f);else if(h>Ww-xa)e.moveTo(c+n*pf(l),f+n*cu(l)),e.arc(c,f,n,l,u,!d),i>xa&&(e.moveTo(c+i*pf(u),f+i*cu(u)),e.arc(c,f,i,u,l,d));else{var g=void 0,y=void 0,x=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0,M=void 0,k=void 0,I=void 0,P=void 0,R=void 0,L=void 0,O=void 0,N=void 0,B=n*pf(l),G=n*cu(l),q=i*pf(u),H=i*cu(u),X=h>xa;if(X){var F=t.cornerRadius;F&&(r=Zge(F),g=r[0],y=r[1],x=r[2],S=r[3]);var Y=a5(n-i)/2;if(b=Xa(Y,x),w=Xa(Y,S),T=Xa(Y,g),C=Xa(Y,y),I=M=Np(b,w),P=k=Np(T,C),(M>xa||k>xa)&&(R=n*pf(u),L=n*cu(u),O=i*pf(l),N=i*cu(l),h<yH)){var Z=Xge(B,G,O,N,R,L,q,H);if(Z){var j=B-Z[0],re=G-Z[1],ce=R-Z[0],te=L-Z[1],pe=1/cu(qge((j*ce+re*te)/(dv(j*j+re*re)*dv(ce*ce+te*te)))/2),ae=dv(Z[0]*Z[0]+Z[1]*Z[1]);I=Xa(M,(n-ae)/(pe+1)),P=Xa(k,(i-ae)/(pe-1))}}}if(!X)e.moveTo(c+B,f+G);else if(I>xa){var he=Xa(x,I),ve=Xa(S,I),fe=By(O,N,B,G,n,he,d),ge=By(R,L,q,H,n,ve,d);e.moveTo(c+fe.cx+fe.x0,f+fe.cy+fe.y0),I<M&&he===ve?e.arc(c+fe.cx,f+fe.cy,I,mn(fe.y0,fe.x0),mn(ge.y0,ge.x0),!d):(he>0&&e.arc(c+fe.cx,f+fe.cy,he,mn(fe.y0,fe.x0),mn(fe.y1,fe.x1),!d),e.arc(c,f,n,mn(fe.cy+fe.y1,fe.cx+fe.x1),mn(ge.cy+ge.y1,ge.cx+ge.x1),!d),ve>0&&e.arc(c+ge.cx,f+ge.cy,ve,mn(ge.y1,ge.x1),mn(ge.y0,ge.x0),!d))}else e.moveTo(c+B,f+G),e.arc(c,f,n,l,u,!d);if(!(i>xa)||!X)e.lineTo(c+q,f+H);else if(P>xa){var he=Xa(g,P),ve=Xa(y,P),fe=By(q,H,R,L,i,-ve,d),ge=By(B,G,O,N,i,-he,d);e.lineTo(c+fe.cx+fe.x0,f+fe.cy+fe.y0),P<k&&he===ve?e.arc(c+fe.cx,f+fe.cy,P,mn(fe.y0,fe.x0),mn(ge.y0,ge.x0),!d):(ve>0&&e.arc(c+fe.cx,f+fe.cy,ve,mn(fe.y0,fe.x0),mn(fe.y1,fe.x1),!d),e.arc(c,f,i,mn(fe.cy+fe.y1,fe.cx+fe.x1),mn(ge.cy+ge.y1,ge.cx+ge.x1),d),he>0&&e.arc(c+ge.cx,f+ge.cy,he,mn(ge.y1,ge.x1),mn(ge.y0,ge.x0),!d))}else e.lineTo(c+q,f+H),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Qge=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Fn=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Qge},t.prototype.buildPath=function(r,n){Kge(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(vt);Fn.prototype.type="sector";var Jge=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Pg=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Jge},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(vt);Pg.prototype.type="ring";function eme(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)rl(c,c,e[d]),nl(f,f,e[d]);rl(c,c,n[0]),nl(f,f,n[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){i.push(Ko(e[d]));continue}else l=e[d-1],u=e[d+1];Fu(a,u,l),R0(a,a,t);var g=g2(v,l),y=g2(v,u),x=g+y;x!==0&&(g/=x,y/=x),R0(o,a,-g),R0(s,a,y);var S=QO([],v,o),b=QO([],v,s);n&&(nl(S,S,c),rl(S,S,f),nl(b,b,c),rl(b,b,f)),i.push(S),i.push(b)}return r&&i.push(i.shift()),i}function xH(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=eme(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var tme=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Vn=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new tme},t.prototype.buildPath=function(r,n){xH(r,n,!0)},t}(vt);Vn.prototype.type="polygon";var rme=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Gn=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new rme},t.prototype.buildPath=function(r,n){xH(r,n,!1)},t}(vt);Gn.prototype.type="polyline";var nme={},ime=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Hr=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ime},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=eH(nme,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(vt);Hr.prototype.type="line";var Zn=[],ame=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function o5(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?cN:Gr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?cN:Gr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?b2:Kr)(e.x1,e.cpx1,e.x2,t),(r?b2:Kr)(e.y1,e.cpy1,e.y2,t)]}var Dg=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ame},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(i,a),c==null||f==null?(d<1&&(zv(i,l,o,d,Zn),l=Zn[1],o=Zn[2],zv(a,u,s,d,Zn),u=Zn[1],s=Zn[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(xl(i,l,c,o,d,Zn),l=Zn[1],c=Zn[2],o=Zn[3],xl(a,u,f,s,d,Zn),u=Zn[1],f=Zn[2],s=Zn[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return o5(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=o5(this.shape,r,!0);return Dd(n,n)},t}(vt);Dg.prototype.type="bezier-curve";var ome=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),lS=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ome},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+i,f*o+a),r.arc(i,a,o,s,l,!u)},t}(vt);lS.prototype.type="arc";var $k=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),vt.prototype.getBoundingRect.call(this)},t}(vt),SH=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),Rg=function(e){J(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(SH),bH=function(e){J(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(SH),fu=[0,0],du=[0,0],Fy=new et,Vy=new et,k1=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new et;for(var n=0;n<2;n++)this._axes[n]=new et;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);et.sub(i[0],n[1],n[0]),et.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Fy.set(1/0,1/0),Vy.set(0,0),!this._intersectCheckOneSide(this,t,Fy,Vy,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Fy,Vy,i,-1)&&(n=!1,i)||i||et.copy(r,n?Fy:Vy),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,fu),this._getProjMinMaxOnAxis(l,r._corners,du),fu[1]<du[0]||fu[0]>du[1]){if(s=!1,a)return s;var c=Math.abs(du[0]-fu[1]),f=Math.abs(fu[0]-du[1]);Math.min(c,f)>i.len()&&(c<f?et.scale(i,u,-c*o):et.scale(i,u,f*o))}else if(n){var c=Math.abs(du[0]-fu[1]),f=Math.abs(fu[0]-du[1]);Math.min(c,f)<n.len()&&(c<f?et.scale(n,u,c*o):et.scale(n,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(i)+a[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}(),sme=[],lme=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,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(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new rt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(sme)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(na),_H=Tt();function Od(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=Qe(n.duration,200),c=Qe(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),Be(f)&&(f=f(r,i)),Be(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function Gk(e,t,r,n,i,a,o){var s=!1,l;Be(i)?(o=a,a=i,i=null):Ge(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Od(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Et(e,t,r,n,i,a){Gk("update",e,t,r,n,i,a)}function lr(e,t,r,n,i,a){Gk("enter",e,t,r,n,i,a)}function Kf(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function Sl(e,t,r,n,i,a){Kf(e)||Gk("leave",e,t,r,n,i,a)}function s5(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),Sl(e,{style:{opacity:0}},t,r,n)}function Wv(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||s5(i,t,r,n)}):s5(e,t,r,n)}function Oa(e){_H(e).oldStyle=e.style}function ume(e){return _H(e).oldStyle}var I1=Math.max,P1=Math.min,U2={};function cme(e){return vt.extend(e)}var fme=Wge;function dme(e,t){return fme(e,t)}function za(e,t){U2[e]=t}function Hk(e){if(U2.hasOwnProperty(e))return U2[e]}function uS(e,t,r,n){var i=mH(e,t);return r&&(n==="center"&&(r=CH(r,i.getBoundingRect())),TH(i,r)),i}function wH(e,t,r){var n=new Jr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(CH(t,a))}}});return n}function CH(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Zi=jge;function TH(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function md(e,t){return eH(e,e,{lineWidth:t}),e}function hme(e){return tH(e.shape,e.shape,e.style),e}var $0=Vu;function Ju(e,t){for(var r=Kx([]);e&&e!==t;)Qo(r,e.getLocalTransform(),r),e=e.parent;return r}function ka(e,t,r){return t&&!wn(t)&&(t=Xo.getLocalTransform(t)),r&&(t=Rd([],t)),un([],e,t)}function cS(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=ka(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function l5(e){return!e.isGroup}function pme(e){return e.shape!=null}function Eg(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){l5(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return pme(o)&&(s.shape=oe({},o.shape)),s}var a=n(e);t.traverse(function(o){if(l5(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Et(o,l,r,Ze(o).dataIndex)}}})}function AH(e,t){return de(e,function(r){var n=r[0];n=I1(n,t.x),n=P1(n,t.x+t.width);var i=r[1];return i=I1(i,t.y),i=P1(i,t.y+t.height),[n,i]})}function vme(e,t){var r=I1(e.x,t.x),n=P1(e.x+e.width,t.x+t.width),i=I1(e.y,t.y),a=P1(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Lg(e,t,r){var n=oe({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Ve(i,r),new Jr(n)):uS(e.replace("path://",""),n,r,"center")}function zp(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(MH(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function MH(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=jw(c,f,l,u);if(gme(d))return!1;var h=e-i,v=t-a,g=jw(h,v,l,u)/d;if(g<0||g>1)return!1;var y=jw(h,v,c,f)/d;return!(y<0||y>1)}function jw(e,t,r,n){return e*n-r*t}function gme(e){return e<=1e-6&&e>=-1e-6}function Nd(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=_e(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&V(St(l),function(c){Pe(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ze(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ve({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function u5(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Pl(e,t){if(e)if(ue(e))for(var r=0;r<e.length;r++)u5(e[r],t);else u5(e,t)}za("circle",ps);za("ellipse",sS);za("sector",Fn);za("ring",Pg);za("polygon",Vn);za("polyline",Gn);za("rect",Ct);za("line",Hr);za("bezierCurve",Dg);za("arc",lS);const Cc=Object.freeze(Object.defineProperty({__proto__:null,Arc:lS,BezierCurve:Dg,BoundingRect:rt,Circle:ps,CompoundPath:$k,Ellipse:sS,Group:qe,Image:Jr,IncrementalDisplayable:lme,Line:Hr,LinearGradient:Rg,OrientedBoundingRect:k1,Path:vt,Point:et,Polygon:Vn,Polyline:Gn,RadialGradient:bH,Rect:Ct,Ring:Pg,Sector:Fn,Text:kt,applyTransform:ka,clipPointsByRect:AH,clipRectByRect:vme,createIcon:Lg,extendPath:dme,extendShape:cme,getShapeClass:Hk,getTransform:Ju,groupTransition:Eg,initProps:lr,isElementRemoved:Kf,lineLineIntersect:MH,linePolygonIntersect:zp,makeImage:wH,makePath:uS,mergePath:Zi,registerShape:za,removeElement:Sl,removeElementWithFadeOut:Wv,resizePath:TH,setTooltipConfig:Nd,subPixelOptimize:$0,subPixelOptimizeLine:md,subPixelOptimizeRect:hme,transformDirection:cS,traverseElements:Pl,updateProps:Et},Symbol.toStringTag,{value:"Module"}));var fS={};function kH(e,t){for(var r=0;r<Bn.length;r++){var n=Bn[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Y2(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Be(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<Bn.length;u++){var c=Bn[u],f=t[c];l[c]=Qe(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function fn(e,t,r,n){r=r||fS;for(var i=e instanceof kt,a=!1,o=0;o<Gv.length;o++){var s=t[Gv[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new kt,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=Y2(r,t),c=t.normal,f=!!c.getShallow("show"),d=ar(c,n&&n.normal,r,!1,!i);d.text=u.normal,i||e.setTextConfig(D1(c,r,!1));for(var o=0;o<Bn.length;o++){var h=Bn[o],s=t[h];if(s){var v=l.ensureState(h),g=!!Qe(s.getShallow("show"),f);if(g!==f&&(v.ignore=!g),v.style=ar(s,n&&n[h],r,!0,!i),v.style.text=u[h],!i){var y=e.ensureState(h);y.textConfig=D1(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),r.enableTextSetter&&(zd(l).setLabelText=function(x){var S=Y2(r,t,x);kH(l,S)})}else l&&(l.ignore=!0);e.dirty()}function Ur(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Bn.length;n++){var i=Bn[n];r[i]=e.getModel([i,t])}return r}function ar(e,t,r,n,i){var a={};return mme(a,e,r,n,i),t&&oe(a,t),a}function D1(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=Qe(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function mme(e,t,r,n,i){r=r||fS;var a=t.ecModel,o=a&&a.option.textStyle,s=yme(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);h5(l[u]={},c,o,r,n,i,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),h5(e,t,o,r,n,i,!0,!1)}function yme(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||fS).rich;if(r){t=t||{};for(var n=St(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var c5=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],f5=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],d5=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function h5(e,t,r,n,i,a,o,s){r=!i&&r||fS;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=Qe(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=Qe(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=Qe(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var v=Qe(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var g=0;g<c5.length;g++){var y=c5[g],x=Qe(t.getShallow(y),r[y]);x!=null&&(e[y]=x)}for(var g=0;g<f5.length;g++){var y=f5[g],x=t.getShallow(y);x!=null&&(e[y]=x)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!o||!n.disableBox){for(var g=0;g<d5.length;g++){var y=d5[g],x=t.getShallow(y);x!=null&&(e[y]=x)}var b=t.getShallow("borderType");b!=null&&(e.borderDash=b),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function Wk(e,t){var r=t&&t.getModel("textStyle");return Ta([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var zd=Tt();function IH(e,t,r,n){if(e){var i=zd(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function PH(e,t,r,n,i){var a=zd(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Qe(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=UG(r,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var d=Y2({labelDataIndex:t,labelFetcher:i,defaultText:o?o(f):f+""},a.statesModels,f);kH(e,d)}e.percent=0,(a.prevValue==null?lr:Et)(e,{percent:1},n,t,null,u)}var xme=["textStyle","color"],Uw=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Yw=new kt,Sme=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(xme):null)},e.prototype.getFont=function(){return Wk({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Uw.length;n++)r[Uw[n]]=this.getShallow(Uw[n]);return Yw.useStyle(r),Yw.update(),Yw.getBoundingRect()},e}(),DH=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],bme=dc(DH),_me=function(){function e(){}return e.prototype.getLineStyle=function(t){return bme(this,t)},e}(),RH=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],wme=dc(RH),Cme=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return wme(this,t,r)},e}(),Bt=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){tt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(We(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!yt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();Rk(Bt);Eve(Bt);Lr(Bt,_me);Lr(Bt,Cme);Lr(Bt,Bve);Lr(Bt,Sme);var Tme=Math.round(Math.random()*10);function Bd(e){return[e||"",Tme++].join("_")}function Ame(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=lo(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=lo(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function Mme(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),c=u.graph,f=u.noEntryList,d={};for(V(a,function(S){d[S]=!0});f.length;){var h=f.pop(),v=c[h],g=!!d[h];g&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),V(v.successor,g?x:y)}V(d,function(){var S="";throw new Error(S)});function y(S){c[S].entryCount--,c[S].entryCount===0&&f.push(S)}function x(S){d[S]=!0,y(S)}};function r(a){var o={},s=[];return V(a,function(l){var u=n(o,l),c=u.originalDeps=t(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),V(f,function(d){ft(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);ft(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return V(a,function(l){ft(o,l)>=0&&s.push(l)}),s}}function Dl(e,t){return tt(tt({},e,!0),t,!0)}const kme={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:". "}}}},Ime={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 R1="ZH",jk="EN",Qf=jk,G0={},Uk={},EH=yt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Qf).toUpperCase();return e.indexOf(R1)>-1?R1:Qf}():Qf;function LH(e,t){e=e.toUpperCase(),Uk[e]=new Bt(t),G0[e]=t}function Pme(e){if(_e(e)){var t=G0[e.toUpperCase()]||{};return e===R1||e===jk?We(t):tt(We(t),We(G0[Qf]),!1)}else return tt(We(e),We(G0[Qf]),!1)}function q2(e){return Uk[e]}function Dme(){return Uk[Qf]}LH(jk,kme);LH(R1,Ime);var Yk=1e3,qk=Yk*60,hv=qk*60,Ki=hv*24,p5=Ki*365,Bp={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}"},$y="{yyyy}-{MM}-{dd}",v5={year:"{yyyy}",month:"{yyyy}-{MM}",day:$y,hour:$y+" "+Bp.hour,minute:$y+" "+Bp.minute,second:$y+" "+Bp.second,millisecond:Bp.none},qw=["year","month","day","hour","minute","second","millisecond"],OH=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $s(e,t){return e+="","0000".substr(0,t-e.length)+e}function Jf(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 Rme(e){return e===Jf(e)}function Eme(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function dS(e,t,r,n){var i=Ao(e),a=i[Xk(r)](),o=i[ed(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[hS(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[jv(r)](),f=(c-1)%12+1,d=i[pS(r)](),h=i[vS(r)](),v=i[gS(r)](),g=c>=12?"pm":"am",y=g.toUpperCase(),x=n instanceof Bt?n:q2(n||EH)||Dme(),S=x.getModel("time"),b=S.get("month"),w=S.get("monthAbbr"),T=S.get("dayOfWeek"),C=S.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,$s(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,$s(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,$s(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,T[u]).replace(/{ee}/g,C[u]).replace(/{e}/g,u+"").replace(/{HH}/g,$s(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,$s(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,$s(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,$s(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,$s(v,3)).replace(/{S}/g,v+"")}function Lme(e,t,r,n,i){var a=null;if(_e(r))a=r;else if(Be(r))a=r(e.value,t,{level:e.level});else{var o=oe({},Bp);if(e.level>0)for(var s=0;s<qw.length;++s)o[qw[s]]="{primary|"+o[qw[s]]+"}";var l=r?r.inherit===!1?r:Ve(r,o):o,u=NH(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=OH.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ue(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return dS(new Date(e.value),a,i,n)}function NH(e,t){var r=Ao(e),n=r[ed(t)]()+1,i=r[hS(t)](),a=r[jv(t)](),o=r[pS(t)](),s=r[vS(t)](),l=r[gS(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,v=h&&n===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function g5(e,t,r){var n=Dt(e)?Ao(e):e;switch(t=t||NH(e,r),t){case"year":return n[Xk(r)]();case"half-year":return n[ed(r)]()>=6?1:0;case"quarter":return Math.floor((n[ed(r)]()+1)/4);case"month":return n[ed(r)]();case"day":return n[hS(r)]();case"half-day":return n[jv(r)]()/24;case"hour":return n[jv(r)]();case"minute":return n[pS(r)]();case"second":return n[vS(r)]();case"millisecond":return n[gS(r)]()}}function Xk(e){return e?"getUTCFullYear":"getFullYear"}function ed(e){return e?"getUTCMonth":"getMonth"}function hS(e){return e?"getUTCDate":"getDate"}function jv(e){return e?"getUTCHours":"getHours"}function pS(e){return e?"getUTCMinutes":"getMinutes"}function vS(e){return e?"getUTCSeconds":"getSeconds"}function gS(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Ome(e){return e?"setUTCFullYear":"setFullYear"}function zH(e){return e?"setUTCMonth":"setMonth"}function BH(e){return e?"setUTCDate":"setDate"}function FH(e){return e?"setUTCHours":"setHours"}function VH(e){return e?"setUTCMinutes":"setMinutes"}function $H(e){return e?"setUTCSeconds":"setSeconds"}function GH(e){return e?"setUTCMilliseconds":"setMilliseconds"}function HH(e){if(!BG(e))return _e(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function WH(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Fd=_k;function X2(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Ta(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ao(e):e;if(isNaN(+l)){if(s)return"-"}else return dS(l,n,r)}if(t==="ordinal")return h2(e)?i(e):Dt(e)&&a(e)?e+"":"-";var u=os(e);return a(u)?HH(u):h2(e)?i(e):typeof e=="boolean"?e+"":"-"}var m5=["a","b","c","d","e","f","g"],Xw=function(e,t){return"{"+e+(t??"")+"}"};function jH(e,t,r){ue(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=m5[a];e=e.replace(Xw(o),Xw(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(Xw(m5[l],s),r?Jn(u):u)}return e}function Nme(e,t,r){return V(t,function(n,i){e=e.replace("{"+i+"}",n)}),e}function zme(e,t){var r=_e(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Jn(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Jn(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function pc(e,t){return t=t||"transparent",_e(e)?e:Ge(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function E1(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var H0=V,UH=["left","right","top","bottom","width","height"],Gu=[["width","left","right"],["height","top","bottom"]];function Zk(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var g=c.width+(d?-d.x+c.x:0);h=a+g,h>n||l.newline?(a=0,h=g,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(d?-d.y+c.y:0);v=o+y,v>i||l.newline?(a+=s+r,o=0,v=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=v+r)})}var ec=Zk;Je(Zk,"vertical");Je(Zk,"horizontal");function Bme(e,t,r){var n=t.width,i=t.height,a=xe(e.left,n),o=xe(e.top,i),s=xe(e.right,n),l=xe(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=Fd(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function Fr(e,t,r){r=Fd(r||0);var n=t.width,i=t.height,a=xe(e.left,n),o=xe(e.top,i),s=xe(e.right,n),l=xe(e.bottom,i),u=xe(e.width,n),c=xe(e.height,i),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var v=new rt(a+r[3],o+r[0],u,c);return v.margin=r,v}function mS(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new rt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Fr(Ve({width:u.width,height:u.height},t),r,n),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(a.x=d,a.y=h):(a.x+=d,a.y+=h),a===e&&e.markRedraw(),!0}function Fme(e,t){return e[Gu[t][0]]!=null||e[Gu[t][1]]!=null&&e[Gu[t][2]]!=null}function Uv(e){var t=e.layoutMode||e.constructor.layoutMode;return Ge(t)?t:t?{type:t}:null}function bl(e,t,r){var n=r&&r.ignoreSize;!ue(n)&&(n=[n,n]);var i=o(Gu[0],0),a=o(Gu[1],1);u(Gu[0],e,i),u(Gu[1],e,a);function o(c,f){var d={},h=0,v={},g=0,y=2;if(H0(c,function(b){v[b]=e[b]}),H0(c,function(b){s(t,b)&&(d[b]=v[b]=t[b]),l(d,b)&&h++,l(v,b)&&g++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(g===y||!h)return v;if(h>=y)return d;for(var x=0;x<c.length;x++){var S=c[x];if(!s(d,S)&&s(e,S)){d[S]=e[S];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){H0(c,function(h){f[h]=d[h]})}}function Vd(e){return YH({},e)}function YH(e,t){return t&&e&&H0(UH,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Vme=Tt(),xt=function(e){J(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=Bd("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Uv(this),a=i?Vd(r):{},o=n.getTheme();tt(r,o.get(this.mainType)),tt(r,this.getDefaultOption()),i&&bl(r,a,i)},t.prototype.mergeOption=function(r,n){tt(this.option,r,!0);var i=Uv(this);i&&bl(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Pve(r))return r.defaultOption;var n=Vme(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=tt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return kg(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Bt);qG(xt,Bt);tS(xt);Ame(xt);Mme(xt,$me);function $me(e){var t=[];return V(xt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=de(t,function(r){return lo(r).main}),e!=="dataset"&&ft(t,"dataset")<=0&&t.unshift("dataset"),t}var qH="";typeof navigator<"u"&&(qH=navigator.platform||"");var vf="rgba(0, 0, 0, 0.2)";const Gme={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:vf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:vf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:vf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:vf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:vf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:vf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qH.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var XH=Re(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),sa="original",Cn="arrayRows",la="objectRows",Po="keyedColumns",dl="typedArray",ZH="unknown",mo="column",$d="row",nn={Must:1,Might:2,Not:3},KH=Tt();function Hme(e){KH(e).datasetMap=Re()}function QH(e,t,r){var n={},i=Qk(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=KH(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),V(e,function(g,y){var x=Ge(g)?g:e[y]={name:g};x.type==="ordinal"&&c==null&&(c=y,f=v(x)),n[x.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});V(e,function(g,y){var x=g.name,S=v(g);if(c==null){var b=d.valueWayDim;h(n[x],b,S),h(o,b,S),d.valueWayDim+=S}else if(c===y)h(n[x],0,S),h(a,0,S);else{var b=d.categoryWayDim;h(n[x],b,S),h(o,b,S),d.categoryWayDim+=S}});function h(g,y,x){for(var S=0;S<x;S++)g.push(y+S)}function v(g){var y=g.dimsDef;return y?y.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Kk(e,t,r){var n={},i=Qk(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===la||a===Po)&&V(o,function(c,f){(Ge(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,r);h<v;h++){var g=eW(t.data,a,t.seriesLayoutBy,o,t.startIndex,h);d.push(g);var y=g===nn.Not;if(y&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!y&&d[c.n]===nn.Not)&&(c.n=h),x(c)&&d[c.n]!==nn.Not)return c;y||(g===nn.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function x(S){return S.v!=null&&S.n!=null}return x(c)?c:x(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Qk(e){var t=e.get("data",!0);if(!t)return kg(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Dr).models[0]}function Wme(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:kg(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Dr).models}function JH(e,t){return eW(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function eW(e,t,r,n,i,a){var o,s=5;if(ui(e))return nn.Not;var l,u;if(n){var c=n[a];Ge(c)?(l=c.name,u=c.type):_e(c)&&(l=c)}if(u!=null)return u==="ordinal"?nn.Must:nn.Not;if(t===Cn){var f=e;if(r===$d){for(var d=f[a],h=0;h<(d||[]).length&&h<s;h++)if((o=w(d[i+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var v=f[i+h];if(v&&(o=w(v[a]))!=null)return o}}else if(t===la){var g=e;if(!l)return nn.Not;for(var h=0;h<g.length&&h<s;h++){var y=g[h];if(y&&(o=w(y[l]))!=null)return o}}else if(t===Po){var x=e;if(!l)return nn.Not;var d=x[l];if(!d||ui(d))return nn.Not;for(var h=0;h<d.length&&h<s;h++)if((o=w(d[h]))!=null)return o}else if(t===sa)for(var S=e,h=0;h<S.length&&h<s;h++){var y=S[h],b=Ed(y);if(!ue(b))return nn.Not;if((o=w(b[a]))!=null)return o}function w(T){var C=_e(T);if(T!=null&&Number.isFinite(Number(T))&&T!=="")return C?nn.Might:nn.Not;if(C&&T!=="-")return nn.Must}return nn.Not}var Z2=Re();function jme(e,t){zn(Z2.get(e)==null&&t),Z2.set(e,t)}function Ume(e,t,r){var n=Z2.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var y5=Tt(),Yme=Tt(),Jk=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=Ut(this.get("color",!0)),a=this.get("colorLayer",!0);return tW(this,y5,i,a,t,r,n)},e.prototype.clearColorPalette=function(){Xme(this,y5)},e}();function K2(e,t,r,n){var i=Ut(e.get(["aria","decal","decals"]));return tW(e,Yme,i,null,t,r,n)}function qme(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function tW(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:qme(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function Xme(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Gy,op,x5,S5="\0_ec_inner",Zme=1,eI=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Bt(a),this._locale=new Bt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=w5(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,w5(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?x5(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&V(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Re(),u=n&&n.replaceMergeMainTypeMap;Hme(this),V(r,function(f,d){f!=null&&(xt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?We(f):tt(i[d],f,!0))}),u&&u.each(function(f,d){xt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),xt.topologicalTravel(s,xt.getAllClassMainTypes(),c,this);function c(f){var d=Ume(this,f,Ut(r[f])),h=a.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=HG(h,d,v);bve(g,f,xt),i[f]=null,a.set(f,null),o.set(f,0);var y=[],x=[],S=0,b;V(g,function(w,T){var C=w.existing,M=w.newOption;if(!M)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var k=f==="series",I=xt.getClass(f,w.keyInfo.subType,!k);if(!I)return;if(f==="tooltip"){if(b)return;b=!0}if(C&&C.constructor===I)C.name=w.keyInfo.name,C.mergeOption(M,this),C.optionUpdated(M,!1);else{var P=oe({componentIndex:T},w.keyInfo);C=new I(M,this,this,P),oe(C,P),w.brandNew&&(C.__requireNewView=!0),C.init(M,this,this),C.optionUpdated(null,!0)}}C?(y.push(C.option),x.push(C),S++):(y.push(void 0),x.push(void 0))},this),i[f]=y,a.set(f,x),o.set(f,S),f==="series"&&Gy(this)}this._seriesIndices||Gy(this)},t.prototype.getOption=function(){var r=We(this.option);return V(r,function(n,i){if(xt.hasClass(i)){for(var a=Ut(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!$v(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[S5],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],V(Ut(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=b5("id",a,s):o!=null?l=b5("name",o,s):l=Wt(s,function(u){return!!u}),_5(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Wt(this._componentsMap.get(i),function(u){return!!u});return l(_5(o,r));function s(u){var c=i+"Index",f=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[f],name:u[d]}:null}function l(u){return r.filter?Wt(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Be(r)){var o=n,s=r;a.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=_e(r)?a.get(r):Ge(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Br(r,null);return Wt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Wt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Wt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){op(this),V(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){V(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){op(this),V(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return V(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return op(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){op(this);var i=[];V(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Re(i)},t.prototype.restoreData=function(r){Gy(this);var n=this._componentsMap,i=[];n.each(function(a,o){xt.hasClass(o)&&i.push(o)}),xt.topologicalTravel(i,xt.getAllClassMainTypes(),function(a){V(n.get(a),function(o){o&&(a!=="series"||!Kme(o,r))&&o.restoreData()})})},t.internalField=function(){Gy=function(r){var n=r._seriesIndices=[];V(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=Re(n)},op=function(r){},x5=function(r,n){r.option={},r.option[S5]=Zme,r._componentsMap=Re({series:[]}),r._componentsCount=Re();var i=n.aria;Ge(i)&&i.enabled==null&&(i.enabled=!0),Qme(n,r._theme.option),tt(n,Gme,!1),r._mergeOption(n,null)}}(),t}(Bt);function Kme(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function Qme(e,t){var r=e.color&&!e.colorLayer;V(t,function(n,i){i==="colorLayer"&&r||xt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?tt(e[i],n,!1):We(n):e[i]==null&&(e[i]=n))})}function b5(e,t,r){if(ue(t)){var n=Re();return V(t,function(a){if(a!=null){var o=Br(a,null);o!=null&&n.set(a,!0)}}),Wt(r,function(a){return a&&n.get(a[e])})}else{var i=Br(t,null);return Wt(r,function(a){return a&&i!=null&&a[e]===i})}}function _5(e,t){return t.hasOwnProperty("subType")?Wt(e,function(r){return r&&r.subType===t.subType}):e}function w5(e){var t=Re();return e&&V(Ut(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Lr(eI,Jk);var Jme=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],rW=function(){function e(t){V(Jme,function(r){this[r]=Ae(t[r],t)},this)}return e}(),Zw={},Og=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];V(Zw,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){V(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Zw[t]=r},e.get=function(t){return Zw[t]},e}(),eye=/^(min|max)?(.+)$/,tye=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(V(Ut(t.series),function(o){o&&o.data&&ui(o.data)&&g1(o.data)}),V(Ut(t.dataset),function(o){o&&o.source&&ui(o.source)&&g1(o.source)})),t=We(t);var i=this._optionBackup,a=rye(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],We(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=We(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)nye(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!aye(o,this._currentMediaIndices)&&(s=de(o,function(c){return We(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},e}();function rye(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(e.options=e.media=null),a=e),c&&ue(u)&&V(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),d(a),V(l,function(h){return d(h)}),V(n,function(h){return d(h.option)});function d(h){V(t,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function nye(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return V(e,function(a,o){var s=o.match(eye);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();iye(n[u],a,l)||(i=!1)}}),i}function iye(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function aye(e,t){return e.join(",")===t.join(",")}var ma=V,Yv=Ge,C5=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Kw(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=C5.length;r<n;r++){var i=C5[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?tt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?tt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Sn(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,Ve(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Fp(e){Sn(e,"itemStyle"),Sn(e,"lineStyle"),Sn(e,"areaStyle"),Sn(e,"label"),Sn(e,"labelLine"),Sn(e,"upperLabel"),Sn(e,"edgeLabel")}function Pr(e,t){var r=Yv(e)&&e[t],n=Yv(r)&&r.textStyle;if(n)for(var i=0,a=PN.length;i<a;i++){var o=PN[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Gi(e){e&&(Fp(e),Pr(e,"label"),e.emphasis&&Pr(e.emphasis,"label"))}function oye(e){if(Yv(e)){Kw(e),Fp(e),Pr(e,"label"),Pr(e,"upperLabel"),Pr(e,"edgeLabel"),e.emphasis&&(Pr(e.emphasis,"label"),Pr(e.emphasis,"upperLabel"),Pr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Kw(t),Gi(t));var r=e.markLine;r&&(Kw(r),Gi(r));var n=e.markArea;n&&Gi(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!ui(a))for(var o=0;o<a.length;o++)Gi(a[o]);V(e.categories,function(u){Fp(u)})}if(i&&!ui(i))for(var o=0;o<i.length;o++)Gi(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Gi(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)ue(l[o])?(Gi(l[o][0]),Gi(l[o][1])):Gi(l[o]);e.type==="gauge"?(Pr(e,"axisLabel"),Pr(e,"title"),Pr(e,"detail")):e.type==="treemap"?(Sn(e.breadcrumb,"itemStyle"),V(e.levels,function(u){Fp(u)})):e.type==="tree"&&Fp(e.leaves)}}function Wo(e){return ue(e)?e:e?[e]:[]}function T5(e){return(ue(e)?e[0]:e)||{}}function sye(e,t){ma(Wo(e.series),function(n){Yv(n)&&oye(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),ma(r,function(n){ma(Wo(e[n]),function(i){i&&(Pr(i,"axisLabel"),Pr(i.axisPointer,"label"))})}),ma(Wo(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Pr(i,"axisLabel"),Pr(i&&i.axisPointer,"label")}),ma(Wo(e.calendar),function(n){Sn(n,"itemStyle"),Pr(n,"dayLabel"),Pr(n,"monthLabel"),Pr(n,"yearLabel")}),ma(Wo(e.radar),function(n){Pr(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),ma(Wo(e.geo),function(n){Yv(n)&&(Gi(n),ma(Wo(n.regions),function(i){Gi(i)}))}),ma(Wo(e.timeline),function(n){Gi(n),Sn(n,"label"),Sn(n,"itemStyle"),Sn(n,"controlStyle",!0);var i=n.data;ue(i)&&V(i,function(a){Ge(a)&&(Sn(a,"label"),Sn(a,"itemStyle"))})}),ma(Wo(e.toolbox),function(n){Sn(n,"iconStyle"),ma(n.feature,function(i){Sn(i,"iconStyle")})}),Pr(T5(e.axisPointer),"label"),Pr(T5(e.tooltip).axisPointer,"label")}function lye(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function uye(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function A5(e){e&&V(cye,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var cye=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],fye=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Qw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function sp(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Qw.length;r++){var n=Qw[r][1],i=Qw[r][0];t[n]!=null&&(t[i]=t[n])}}function M5(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function k5(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function dye(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function nW(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&nW(e[r].children,t)}function iW(e,t){sye(e,t),e.series=Ut(e.series),V(e.series,function(r){if(Ge(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),M5(r.label);var i=r.data;if(i&&!ui(i))for(var a=0;a<i.length;a++)M5(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=lye(r,"pointer.color");o!=null&&uye(r,"itemStyle.color",o)}else if(n==="bar"){sp(r),sp(r.backgroundStyle),sp(r.emphasis);var i=r.data;if(i&&!ui(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(sp(i[a]),sp(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),k5(r),nW(r.data,k5)}else n==="graph"||n==="sankey"?dye(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Ve(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),A5(r)}}),e.dataRange&&(e.visualMap=e.dataRange),V(fye,function(r){var n=e[r];n&&(ue(n)||(n=[n]),V(n,function(i){A5(i)}))})}function hye(e){var t=Re();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(pye)}function pye(e){V(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return i;var h,v;s?v=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var g=NaN,y=r-1;y>=0;y--){var x=e[y];if(s||(v=x.data.rawIndexOf(x.stackedByDimension,h)),v>=0){var S=x.data.getByRawIndex(x.stackResultDimension,v);if(l==="all"||l==="positive"&&S>0||l==="negative"&&S<0||l==="samesign"&&d>=0&&S>0||l==="samesign"&&d<=0&&S<0){d=cve(d,S),g=S;break}}}return n[0]=d,n[1]=g,n})})}var yS=function(){function e(t){this.data=t.data||(t.sourceFormat===Po?{}:[]),this.sourceFormat=t.sourceFormat||ZH,this.seriesLayoutBy=t.seriesLayoutBy||mo,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&JH(this,n)===nn.Must&&(i.type="ordinal")}}return e}();function tI(e){return e instanceof yS}function Q2(e,t,r){r=r||aW(e);var n=t.seriesLayoutBy,i=gye(e,r,n,t.sourceHeader,t.dimensions),a=new yS({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:We(t)});return a}function rI(e){return new yS({data:e,sourceFormat:ui(e)?dl:sa})}function vye(e){return new yS({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:We(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function aW(e){var t=ZH;if(ui(e))t=dl;else if(ue(e)){e.length===0&&(t=Cn);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(ue(i)||ui(i)){t=Cn;break}else if(Ge(i)){t=la;break}}}}else if(Ge(e)){for(var a in e)if(Pe(e,a)&&wn(e[a])){t=Po;break}}return t}function gye(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:I5(i),startIndex:o,dimensionsDetectedCount:a};if(t===Cn){var s=e;n==="auto"||n==null?P5(function(u){u!=null&&u!=="-"&&(_e(u)?o==null&&(o=1):o=0)},r,s,10):o=Dt(n)?n:n?1:0,!i&&o===1&&(i=[],P5(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===$d?s.length:s[0]?s[0].length:null}else if(t===la)i||(i=mye(e));else if(t===Po)i||(i=[],V(e,function(u,c){i.push(c)}));else if(t===sa){var l=Ed(e[0]);a=ue(l)&&l.length||1}return{startIndex:o,dimensionsDefine:I5(i),dimensionsDetectedCount:a}}function mye(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return St(r)}function I5(e){if(e){var t=Re();return de(e,function(r,n){r=Ge(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function P5(e,t,r,n){if(t===$d)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function oW(e){var t=e.sourceFormat;return t===la||t===Po}var hu,pu,vu,D5,R5,sW=function(){function e(t,r){var n=tI(t)?t:rI(t);this._source=n;var i=this._data=n.data;n.sourceFormat===dl&&(this._offset=0,this._dimSize=r,this._data=i),R5(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;R5=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=D5[nI(u,c)];if(oe(o,h),u===dl)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=lW(u,c);o.getItem=Ae(v,null,s,f,d);var g=uW(u,c);o.count=Ae(g,null,s,f,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],g=h[1]==null?-1/0:h[1],y=s-o,x=l[d],S=0;S<y;S++){var b=c[S*f+d];x[o+S]=b,b<v&&(v=b),b>g&&(g=b)}h[0]=v,h[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};D5=(t={},t[Cn+"_"+mo]={pure:!0,appendData:a},t[Cn+"_"+$d]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[la]={pure:!0,appendData:a},t[Po]={pure:!0,appendData:function(o){var s=this._data;V(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[sa]={appendData:a},t[dl]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),E5=function(e,t,r,n){return e[n]},yye=(hu={},hu[Cn+"_"+mo]=function(e,t,r,n){return e[n+t]},hu[Cn+"_"+$d]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},hu[la]=E5,hu[Po]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];a[o]=l?l[n]:null}return a},hu[sa]=E5,hu);function lW(e,t){var r=yye[nI(e,t)];return r}var L5=function(e,t,r){return e.length},xye=(pu={},pu[Cn+"_"+mo]=function(e,t,r){return Math.max(0,e.length-t)},pu[Cn+"_"+$d]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},pu[la]=L5,pu[Po]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},pu[sa]=L5,pu);function uW(e,t){var r=xye[nI(e,t)];return r}var Jw=function(e,t,r){return e[t]},Sye=(vu={},vu[Cn]=Jw,vu[la]=function(e,t,r){return e[r]},vu[Po]=Jw,vu[sa]=function(e,t,r){var n=Ed(e);return n instanceof Array?n[t]:n},vu[dl]=Jw,vu);function cW(e){var t=Sye[e];return t}function nI(e,t){return e===Cn?e+"_"+t:e}function yd(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return cW(a)(n,o,s)}else{var l=n;return a===sa&&(l=Ed(n)),l}}}}var bye=/\{@(.+?)\}/g,xS=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,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:a,data:s,dataType:r,value:i,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&ue(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Be(a))return l.status=r,l.dimensionIndex=i,a(l);if(_e(a)){var c=jH(a,l);return c.replace(bye,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var g=yd(s,t,v);if(o&&ue(o.interpolatedValue)){var y=s.getDimensionIndex(v);y>=0&&(g=o.interpolatedValue[y])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return yd(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function O5(e){var t,r;return Ge(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function pv(e){return new _ye(e)}var _ye=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(S){return!(S>=1)&&(S=1),S}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h<v)){var g=this._progress;if(ue(g))for(var y=0;y<g.length;y++)this._doProgress(g[y],h,v,l,u);else this._doProgress(g,h,v,l,u)}this._dueIndex=v;var x=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=x}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){N5.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:N5.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),ue(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.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(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),N5=function(){var e,t,r,n,i,a={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function hl(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Dt(e)&&e!=null&&e!=="-"&&(e=+Ao(e)),e==null||e===""?NaN:Number(e))}var wye=Re({number:function(e){return parseFloat(e)},time:function(e){return+Ao(e)},trim:function(e){return _e(e)?Ta(e):e}});function fW(e){return wye.get(e)}var dW={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}},Cye=function(){function e(t,r){if(!Dt(r)){var n="";Nt(n)}this._opFn=dW[t],this._rvalFloat=os(r)}return e.prototype.evaluate=function(t){return Dt(t)?this._opFn(t,this._rvalFloat):this._opFn(os(t),this._rvalFloat)},e}(),hW=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=Dt(t)?t:os(t),i=Dt(r)?r:os(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=_e(t),l=_e(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Tye=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=os(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=os(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function Aye(e,t){return e==="eq"||e==="ne"?new Tye(e==="eq",t):Pe(dW,e)?new Cye(e,t):null}var Mye=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return hl(t,r)},e}();function kye(e,t){var r=new Mye,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==mo&&Nt(o);var s=[],l={},u=e.dimensionsDefine;if(u)V(u,function(g,y){var x=g.name,S={index:y,name:x,displayName:g.displayName};if(s.push(S),x!=null){var b="";Pe(l,x)&&Nt(b),l[x]=S}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=lW(i,mo);t.__isBuiltIn&&(r.getRawDataItem=function(g){return f(n,a,s,g)},r.getRawData=Ae(Iye,null,e)),r.cloneRawData=Ae(Pye,null,e);var d=uW(i,mo);r.count=Ae(d,null,n,a,s);var h=cW(i);r.retrieveValue=function(g,y){var x=f(n,a,s,g);return v(x,y)};var v=r.retrieveValueFromItem=function(g,y){if(g!=null){var x=s[y];if(x)return h(g,y,x.name)}};return r.getDimensionInfo=Ae(Dye,null,s,l),r.cloneAllDimensionInfo=Ae(Rye,null,s),r}function Iye(e){var t=e.sourceFormat;if(!iI(t)){var r="";Nt(r)}return e.data}function Pye(e){var t=e.sourceFormat,r=e.data;if(!iI(t)){var n="";Nt(n)}if(t===Cn){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===la){for(var i=[],a=0,o=r.length;a<o;a++)i.push(oe({},r[a]));return i}}function Dye(e,t,r){if(r!=null){if(Dt(r)||!isNaN(r)&&!Pe(t,r))return e[r];if(Pe(t,r))return t[r]}}function Rye(e){return We(e)}var pW=Re();function Eye(e){e=We(e);var t=e.type,r="";t||Nt(r);var n=t.split(":");n.length!==2&&Nt(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,pW.set(t,e)}function Lye(e,t,r){var n=Ut(e),i=n.length,a="";i||Nt(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=Oye(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Oye(e,t,r,n){var i="";t.length||Nt(i),Ge(e)||Nt(i);var a=e.type,o=pW.get(a);o||Nt(i);var s=de(t,function(u){return kye(u,o)}),l=Ut(o.transform({upstream:s[0],upstreamList:s,config:We(e.config)}));return de(l,function(u,c){var f="";Ge(u)||Nt(f),u.data||Nt(f);var d=aW(u.data);iI(d)||Nt(f);var h,v=t[0];if(v&&c===0&&!u.dimensions){var g=v.startIndex;g&&(u.data=v.data.slice(0,g).concat(u.data)),h={seriesLayoutBy:mo,sourceHeader:g,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:mo,sourceHeader:0,dimensions:u.dimensions};return Q2(u.data,h,null)})}function iI(e){return e===Cn||e===la}var SS="undefined",Nye=typeof Uint32Array===SS?Array:Uint32Array,zye=typeof Uint16Array===SS?Array:Uint16Array,vW=typeof Int32Array===SS?Array:Int32Array,z5=typeof Float64Array===SS?Array:Float64Array,gW={float:z5,int:vW,ordinal:Array,number:Array,time:z5},eC;function lp(e){return e>65535?Nye:zye}function gf(){return[1/0,-1/0]}function Bye(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function B5(e,t,r,n,i){var a=gW[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var J2=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Re()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=eC[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],oW(i),this._dimensions=de(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new gW[r||"float"](this._rawCount),this._rawExtent[a]=gf(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=gf());for(var l=a[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var c=i[u];B5(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<a;v++){var c=i[v],g=eC.arrayRows.call(this,t[h]||f,c.property,h,v);n[v][d]=g;var y=o[v];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=de(o,function(S){return S.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=gf()),B5(a,c,f.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var d=[],h=t;h<r;h++){d=i.getItem(h,d);for(var v=0;v<s;v++){var g=a[v],y=this._dimValueGetter(d,u[v],h,v);g[h]=y;var x=l[v];y<x[0]&&(x[0]=y),y>x[1]&&(x[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=r-a[d],v=Math.abs(h);v<=n&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=lp(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=lp(n._rawCount),o=new a(i),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<i;d++){var h=void 0,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var g=f[c][v];h=r(g,d)}else{for(var y=0;y<l;y++)s[y]=f[t[y]][v];s[y]=d,h=r.apply(null,s)}h&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=St(t),a=i.length;if(!a)return this;var o=r.count(),s=lp(r._rawCount),l=new s(o),u=0,c=i[0],f=t[c][0],d=t[c][1],h=r._chunks,v=!1;if(!r._indices){var g=0;if(a===1){for(var y=h[i[0]],x=0;x<n;x++){var S=y[x];(S>=f&&S<=d||isNaN(S))&&(l[u++]=g),g++}v=!0}else if(a===2){for(var y=h[i[0]],b=h[i[1]],w=t[i[1]][0],T=t[i[1]][1],x=0;x<n;x++){var S=y[x],C=b[x];(S>=f&&S<=d||isNaN(S))&&(C>=w&&C<=T||isNaN(C))&&(l[u++]=g),g++}v=!0}}if(!v)if(a===1)for(var x=0;x<o;x++){var M=r.getRawIndex(x),S=h[i[0]][M];(S>=f&&S<=d||isNaN(S))&&(l[u++]=M)}else for(var x=0;x<o;x++){for(var k=!0,M=r.getRawIndex(x),I=0;I<a;I++){var P=i[I],S=h[P][M];(S<t[P][0]||S>t[P][1])&&(k=!1)}k&&(l[u++]=r.getRawIndex(x))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=gf();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<o;h++)l[h]=i[r[h]][d];l[o]=f;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var c=0;c<v.length;c++){var g=r[c],y=v[c],x=u[g],S=i[g];S&&(S[d]=y),y<x[0]&&(x[0]=y),y>x[1]&&(x[1]=y)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(lp(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var g=Math.min(v+l,o-1),y=Math.min(v+l*2,o),x=(y+g)/2,S=0,b=g;b<y;b++){var w=this.getRawIndex(b),T=a[w];isNaN(T)||(S+=T)}S/=y-g;var C=v,M=Math.min(v+l,o),k=v-1,I=a[u];c=-1,d=C;for(var P=-1,R=0,b=C;b<M;b++){var w=this.getRawIndex(b),T=a[w];if(isNaN(T)){R++,P<0&&(P=w);continue}f=Math.abs((k-x)*(T-I)-(k-b)*(S-I)),f>c&&(c=f,d=w)}R>0&&R<M-C&&(h[s++]=Math.min(P,d),d=Math.max(P,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),f=a._rawExtent[t]=gf(),d=new(lp(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var g=0;g<l;g++){var y=this.getRawIndex(v+g);s[g]=u[y]}var x=n(s),S=this.getRawIndex(Math.min(v+i(s,x)||0,c-1));u[S]=x,x<f[0]&&(f[0]=x),x>f[1]&&(f[1]=x),d[h++]=S}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=gf();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&wo(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?Bye(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=We(this._extent),t._rawExtent=We(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return hl(r[a],this._dimensions[a])}eC={arrayRows:t,objectRows:function(r,n,i,a){return hl(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return hl(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),mW=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,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 t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Hy(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=ui(s)?dl:sa,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Qe(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=Qe(f.sourceHeader,d.sourceHeader),g=Qe(f.dimensions,d.dimensions),y=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||g;i=y?[Q2(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:g},l)]:[]}else{var x=t;if(n){var S=this._applyTransform(r);i=S.sourceList,a=S.upstreamSignList}else{var b=x.get("source",!0);i=[Q2(b,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&V5(a)}var o,s=[],l=[];return V(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&V5(f),s.push(c),l.push(u._getVersionSign())}),n?o=Lye(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[vye(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Hy(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new J2,s.initData(new sW(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Hy(t)){var r=Qk(t);return r?[r.getSourceManager()]:[]}else return de(Wme(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Hy(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function F5(e){var t=e.option.transform;t&&g1(e.option.transform)}function Hy(e){return e.mainType==="series"}function V5(e){throw new Error(e)}var yW="line-height:1";function xW(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Jn(n+"")+"px;color:"+Jn(r)+";font-weight:"+Jn(i+""),valueStyle:"font-size:"+Jn(o+"")+"px;color:"+Jn(a)+";font-weight:"+Jn(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Fye=[0,10,20,30],Vye=["",`
|
184
|
+
`,`
|
185
|
+
|
186
|
+
`,`
|
187
|
+
|
188
|
+
|
189
|
+
`];function Yr(e,t){return t.type=e,t}function eA(e){return e.type==="section"}function SW(e){return eA(e)?$ye:Gye}function bW(e){if(eA(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return V(e.blocks,function(i){var a=bW(i);a>=t&&(t=a+ +(n&&(!a||eA(i)&&!i.noHeader)))}),t}return 0}function $ye(e,t,r,n){var i=t.noHeader,a=Hye(bW(t)),o=[],s=t.blocks||[];zn(!s||ue(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Pe(u,l)){var c=new hW(u[l],null);s.sort(function(v,g){return c.evaluate(v.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}V(s,function(v,g){var y=t.valueFormatter,x=SW(v)(y?oe(oe({},e),{valueFormatter:y}):e,v,g>0?a.html:0,n);x!=null&&o.push(x)});var f=e.renderMode==="richText"?o.join(a.richText):tA(o.join(""),i?r:a.html);if(i)return f;var d=X2(t.header,"ordinal",e.useUTC),h=xW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?_W(e,d,h)+a.richText+f:tA('<div style="'+h+";"+yW+';">'+Jn(d)+"</div>"+f,r)}function Gye(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(w){return w=ue(w)?w:[w],de(w,function(T,C){return X2(T,ue(h)?h[C]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":X2(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value,t.dataIndex),g=!s||!a,y=!s&&a,x=xW(n,i),S=x.nameStyle,b=x.valueStyle;return i==="richText"?(s?"":f)+(a?"":_W(e,d,S))+(o?"":Uye(e,v,g,y,b)):tA((s?"":f)+(a?"":Wye(d,!s,S))+(o?"":jye(v,g,y,b)),r)}}function $5(e,t,r,n,i,a){if(e){var o=SW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Hye(e){return{html:Fye[e],richText:Vye[e]}}function tA(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+yW+';">'+e+r+"</div>"}function Wye(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Jn(e)+"</span>"}function jye(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ue(e)?e:[e],'<span style="'+a+";"+n+'">'+de(e,function(o){return Jn(o)}).join(" ")+"</span>"}function _W(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Uye(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ue(t)?t.join(" "):t,a)}function wW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return pc(n)}function CW(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var tC=function(){function e(){this.richTextStyles={},this._nextStyleNameId=FG()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=zme({color:r,type:t,renderMode:n,markerId:i});return _e(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};ue(r)?V(r,function(a){return oe(n,a)}):oe(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function TW(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=ue(s),u=wW(t,r),c,f,d,h;if(o>1||l&&!o){var v=Yye(s,t,r,a,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);h=c=yd(i,r,a[0]),f=g.type}else h=c=l?s[0]:s;var y=Pk(t),x=y&&t.name||"",S=i.getName(r),b=n?x:S;return Yr("section",{header:x,noHeader:n||!y,sortParam:h,blocks:[Yr("nameValue",{markerType:"item",markerColor:u,name:b,noName:!Ta(b),value:c,valueType:f,dataIndex:r})].concat(d||[])})}function Yye(e,t,r,n,i){var a=t.getData(),o=wo(e,function(f,d,h){var v=a.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?V(n,function(f){c(yd(a,r,f),f)}):V(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Yr("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Gs=Tt();function Wy(e,t){return e.getName(t)||e.getId(t)}var W0="__universalTransitionEnabled",or=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=pv({count:Xye,reset:Zye}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Gs(this).sourceManager=new mW(this);a.prepareSource();var o=this.getInitialData(r,i);H5(o,this),this.dataTask.context.data=o,Gs(this).dataBeforeProcessed=o,G5(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Uv(this),a=i?Vd(r):{},o=this.subType;xt.hasClass(o)&&(o+="Series"),tt(r,n.getTheme().get(this.subType)),tt(r,this.getDefaultOption()),cc(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&bl(r,a,i)},t.prototype.mergeOption=function(r,n){r=tt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Uv(this);i&&bl(this.option,r,i);var a=Gs(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);H5(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Gs(this).dataBeforeProcessed=o,G5(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!ui(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&cc(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=rA(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Gs(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=rA(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Gs(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Re(r)},t.prototype.getSourceManager=function(){return Gs(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Gs(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return TW({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(yt.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Jk.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Wy(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=St(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Wy(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[W0])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Ge(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=Wy(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=Wy(r,h);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(h),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return xt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(xt);Lr(or,xS);Lr(or,Jk);qG(or,xt);function G5(e){var t=e.name;Pk(e)||(e.name=qye(e)||t)}function qye(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return V(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function Xye(e){return e.model.getRawData().count()}function Zye(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Kye}function Kye(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function H5(e,t){V(m1(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Je(Qye,t))})}function Qye(e,t){var r=rA(e);return r&&r.setOutputEnd((t||this).count()),t}function rA(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var dr=function(){function e(){this.group=new qe,this.uid=Bd("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Rk(dr);tS(dr);function Gd(){var e=Tt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var AW=Tt(),Jye=Gd(),Zt=function(){function e(){this.group=new qe,this.uid=Bd("viewChart"),this.renderTask=pv({plan:e0e,reset:t0e}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&j5(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&j5(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Pl(this.group,t)},e.markUpdateMethod=function(t,r){AW(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function W5(e,t,r){e&&Hv(e)&&(t==="emphasis"?ss:ls)(e,r)}function j5(e,t,r){var n=fc(e,t),i=t&&t.highlightKey!=null?zge(t.highlightKey):null;n!=null?V(Ut(n),function(a){W5(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){W5(a,r,i)})}Rk(Zt);tS(Zt);function e0e(e){return Jye(e.model)}function t0e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&AW(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),r0e[l]}var r0e={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)}}},L1="\0__throttleOriginMethod",U5="\0__throttleRate",Y5="\0__throttleType";function aI(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),l=this,u=h;var g=c||t,y=c||r;c=null,s=n-(y?i:a)-g,clearTimeout(o),y?o=setTimeout(f,g):s>=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function Hd(e,t,r,n){var i=e[t];if(i){var a=i[L1]||i,o=i[Y5],s=i[U5];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=aI(a,r,n==="debounce"),i[L1]=a,i[Y5]=n,i[U5]=r}return i}}function qv(e,t){var r=e[t];r&&r[L1]&&(r.clear&&r.clear(),e[t]=r[L1])}var q5=Tt(),X5={itemStyle:dc(RH,!0),lineStyle:dc(DH,!0)},n0e={lineStyle:"stroke",itemStyle:"fill"};function MW(e,t){var r=e.visualStyleMapper||X5[t];return r||(console.warn("Unknown style type '"+t+"'."),X5.itemStyle)}function kW(e,t){var r=e.visualDrawType||n0e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var i0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=MW(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=kW(e,n),u=o[l],c=Be(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Be(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Be(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var g=e.getDataParams(v),y=oe({},o);y[l]=c(g),h.setItemVisual(v,"style",y)}}}},up=new Bt,a0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=MW(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){up.option=l[n];var u=i(up),c=o.ensureUniqueItemVisual(s,"style");oe(c,u),up.option.decal&&(o.setItemVisual(s,"decal",up.option.decal),up.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},o0e={performRawSeries:!0,overallReset:function(e){var t=Re();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),q5(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=q5(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=kW(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},jy=Math.PI;function s0e(e,t){t=t||{},Ve(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 r=new qe,n=new Ct({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new kt({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 Ct({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new lS({shape:{startAngle:-jy/2,endAngle:-jy/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:jy*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:jy*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var IW=function(){function e(t,r,n,i){this._stageTaskMap=Re(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=Re();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;V(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";zn(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;V(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(y){s(i,y)&&(y.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var g=o.getPerformArgs(d,i.block);v.each(function(y){y.perform(g)}),d.perform(g)&&(a=!0)}else f&&f.each(function(y,x){s(i,y)&&y.dirty();var S=o.getPerformArgs(y,i.block);S.skip=!l.performRawSeries&&r.isSeriesFiltered(y.context.model),o.updatePayload(y,n),y.perform(S)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Re(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||pv({plan:d0e,reset:h0e,count:v0e}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||pv({reset:l0e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Re(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";zn(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):c?c(n,i).each(v):(f=!1,V(n.getSeries(),v));function v(g){var y=g.uid,x=l.set(y,s&&s.get(y)||(d=!0,pv({reset:u0e,onDirty:f0e})));x.context={model:g,overallProgress:f},x.agent=o,x.__block=f,a._pipe(g,x)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return Be(t)&&(t={overallReset:t,seriesType:g0e(t)}),t.uid=Bd("stageHandler"),r&&(t.visualType=r),t},e}();function l0e(e){e.overallReset(e.ecModel,e.api,e.payload)}function u0e(e){return e.overallProgress&&c0e}function c0e(){this.agent.dirty(),this.getDownstream().dirty()}function f0e(){this.agent&&this.agent.dirty()}function d0e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function h0e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ut(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?de(t,function(r,n){return PW(n)}):p0e}var p0e=PW(0);function PW(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function v0e(e){return e.data.count()}function g0e(e){O1=null;try{e(Xv,DW)}catch{}return O1}var Xv={},DW={},O1;RW(Xv,eI);RW(DW,rW);Xv.eachSeriesByType=Xv.eachRawSeriesByType=function(e){O1=e};Xv.eachComponent=function(e){e.mainType==="series"&&e.subType&&(O1=e.subType)};function RW(e,t){for(var r in t.prototype)e[r]=Mr}var Z5=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const m0e={color:Z5,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Z5]};var In="#B9B8CE",K5="#100C2A",Uy=function(){return{axisLine:{lineStyle:{color:In}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Q5=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],EW={darkMode:!0,color:Q5,backgroundColor:K5,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:In}},textStyle:{color:In},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:In}},dataZoom:{borderColor:"#71708A",textStyle:{color:In},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:In}},timeline:{lineStyle:{color:In},label:{color:In},controlStyle:{color:In,borderColor:In}},calendar:{itemStyle:{color:K5},dayLabel:{color:In},monthLabel:{color:In},yearLabel:{color:In}},timeAxis:Uy(),logAxis:Uy(),valueAxis:Uy(),categoryAxis:Uy(),line:{symbol:"circle"},graph:{color:Q5},gauge:{title:{color:In},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:In},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};EW.categoryAxis.splitLine.show=!1;var y0e=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(_e(t)){var a=lo(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};V(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),nA=["symbol","symbolSize","symbolRotate","symbolOffset"],J5=nA.concat(["symbolKeepAspect"]),x0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<nA.length;o++){var s=nA[o],l=e.get(s);Be(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(oe({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=St(i);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),g=0;g<u.length;g++){var y=u[g];f.setItemVisual(d,y,i[y](h,v))}}return{dataEach:a?c:null}}},S0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<J5.length;s++){var l=J5[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function oI(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function Ng(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function LW(e,t,r,n){switch(r){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function OW(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}V([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=oe({},i),o.dispatchAction(oe(i,{type:n[1],seriesIndex:r(a,i)}))})})}function mf(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=fc(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:ue(d)?f.getName(d[0]):f.getName(d),selected:_e(l)?l:oe({},l)})}})}function b0e(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(mf("map","selectchanged",t,i,n),mf("pie","selectchanged",t,i,n)):n.fromAction==="select"?(mf("map","selected",t,i,n),mf("pie","selected",t,i,n)):n.fromAction==="unselect"&&(mf("map","unselected",t,i,n),mf("pie","unselected",t,i,n))})}function Hu(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var _0e=Math.round(Math.random()*9),w0e=typeof Object.defineProperty=="function",C0e=function(){function e(){this._id="__ec_inner_"+_0e++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return w0e?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),T0e=vt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),A0e=vt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),M0e=vt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,v=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*h,l+s+d*h,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-c+f*h,l+s+d*h,r-c,l+s),e.closePath()}}),k0e=vt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),I0e={line:Hr,rect:Ct,roundRect:Ct,square:Ct,circle:ps,diamond:A0e,pin:M0e,arrow:k0e,triangle:T0e},P0e={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},N1={};V(I0e,function(e,t){N1[t]=new e});var D0e=vt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=T1(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=N1[n];i||(n="rect",i=N1[n]),P0e[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function R0e(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Er(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=wH(e.slice(8),new rt(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=uS(e.slice(7),{},new rt(t,r,n,i),o?"center":"cover"):l=new D0e({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=R0e,a&&l.setColor(a),l}function Wd(e){return ue(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Tc(e,t){if(e!=null)return ue(e)||(e=[e,e]),[xe(e[0],t[0])||0,xe(Qe(e[1],e[0]),t[1])||0]}function Wu(e){return isFinite(e)}function E0e(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Wu(n)?n:0,i=Wu(i)?i:1,a=Wu(a)?a:0,o=Wu(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function L0e(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=Wu(o)?o:.5,s=Wu(s)?s:.5,l=l>=0&&Wu(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function iA(e,t,r){for(var n=t.type==="radial"?L0e(e,t,r):E0e(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function O0e(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Yy(e){return parseInt(e,10)}function Hf(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Yy(s[n])||Yy(e.style[n]))-(Yy(s[a])||0)-(Yy(s[o])||0)|0}function N0e(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Dt(e)?[e]:ue(e)?e:null}function sI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&N0e(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=de(r,function(a){return a/i}),n/=i)}return[r,n]}var z0e=new Mo(!0);function z1(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function ez(e){return typeof e=="string"&&e!=="none"}function B1(e){var t=e.fill;return t!=null&&t!=="none"}function tz(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function rz(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function aA(e,t,r){var n=Ek(t.image,t.__image,r);if(rS(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*D0),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function B0e(e,t,r,n){var i,a=z1(r),o=B1(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||z0e,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=o&&!!d.colorStops,g=a&&!!h.colorStops,y=o&&!!d.image,x=a&&!!h.image,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0;(v||g)&&(C=t.getBoundingRect()),v&&(S=f?iA(e,d,C):t.__canvasFillGradient,t.__canvasFillGradient=S),g&&(b=f?iA(e,h,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),y&&(w=f||!t.__canvasFillPattern?aA(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=w),x&&(T=f||!t.__canvasStrokePattern?aA(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=S:y&&(w?e.fillStyle=w:o=!1),g?e.strokeStyle=b:x&&(T?e.strokeStyle=T:a=!1)}var M=t.getGlobalScale();c.setScale(M[0],M[1],t.segmentIgnoreThreshold);var k,I;e.setLineDash&&r.lineDash&&(i=sI(t),k=i[0],I=i[1]);var P=!0;(u||f&Rf)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),P=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),P&&c.rebuildPath(e,l?s:1),k&&(e.setLineDash(k),e.lineDashOffset=I),n||(r.strokeFirst?(a&&rz(e,r),o&&tz(e,r)):(o&&tz(e,r),a&&rz(e,r))),k&&e.setLineDash([])}function F0e(e,t,r){var n=t.__image=Ek(r.image,t.__image,t,t.onload);if(!(!n||!rS(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function V0e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||ml,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=sI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(z1(r)&&e.strokeText(i,r.x,r.y),B1(r)&&e.fillText(i,r.x,r.y)):(B1(r)&&e.fillText(i,r.x,r.y),z1(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var nz=["shadowBlur","shadowOffsetX","shadowOffsetY"],iz=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function NW(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){ri(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Zu.opacity:o}(n||t.blend!==r.blend)&&(a||(ri(e,i),a=!0),e.globalCompositeOperation=t.blend||Zu.blend);for(var s=0;s<nz.length;s++){var l=nz[s];(n||t[l]!==r[l])&&(a||(ri(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(ri(e,i),a=!0),e.shadowColor=t.shadowColor||Zu.shadowColor),a}function az(e,t,r,n,i){var a=Zv(t,i.inHover),o=n?null:r&&Zv(r,i.inHover)||{};if(a===o)return!1;var s=NW(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ri(e,i),s=!0),ez(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ri(e,i),s=!0),ez(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ri(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(ri(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<iz.length;c++){var f=iz[c],d=f[0];(n||a[d]!==o[d])&&(s||(ri(e,i),s=!0),e[d]=a[d]||f[1])}return s}function $0e(e,t,r,n,i){return NW(e,Zv(t,i.inHover),r&&Zv(r,i.inHover),n,i)}function zW(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function G0e(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),zW(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function H0e(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var oz=1,sz=2,lz=3,uz=4;function W0e(e){var t=B1(e),r=z1(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function ri(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Zv(e,t){return t&&e.__hoverStyle||e.style}function BW(e,t){ju(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ju(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~xi,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||O0e(a,o))&&(o&&o.length&&(ri(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(ri(e,r),e.save(),G0e(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof vt&&t.autoBatch&&W0e(t.style);s||H0e(i,u.transform)?(ri(e,r),zW(e,t)):c||ri(e,r);var f=Zv(t,r.inHover);t instanceof vt?(r.lastDrawType!==oz&&(l=!0,r.lastDrawType=oz),az(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),B0e(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof gd?(r.lastDrawType!==lz&&(l=!0,r.lastDrawType=lz),az(e,t,u,l,r),V0e(e,t,f)):t instanceof Jr?(r.lastDrawType!==sz&&(l=!0,r.lastDrawType=sz),$0e(e,t,u,l,r),F0e(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==uz&&(l=!0,r.lastDrawType=uz),j0e(e,t,r)),c&&n&&ri(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function j0e(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ju(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ju(e,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var rC=new C0e,cz=new Ag(100),fz=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function xd(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&rC.delete(e);var a=rC.get(e);if(a)return a;var o=Ve(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,rC.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<fz.length;++d){var h=o[fz[d]];if(h!=null&&!ue(h)&&!_e(h)&&!Dt(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(i?"-svg":"");var g=cz.get(v);g&&(i?u.svgElement=g:u.image=g)}var y=VW(o.dashArrayX),x=U0e(o.dashArrayY),S=FW(o.symbol),b=Y0e(y),w=$W(x),T=!i&&yl.createCanvas(),C=i&&{tag:"g",attrs:{},key:"dcl",children:[]},M=I(),k;T&&(T.width=M.width*r,T.height=M.height*r,k=T.getContext("2d")),P(),f&&cz.put(v,T||C),u.image=T,u.svgElement=C,u.svgWidth=M.width,u.svgHeight=M.height;function I(){for(var R=1,L=0,O=b.length;L<O;++L)R=kN(R,b[L]);for(var N=1,L=0,O=S.length;L<O;++L)N=kN(N,S[L].length);R*=N;var B=w*b.length*S.length;return{width:Math.max(1,Math.min(R,o.maxTileWidth)),height:Math.max(1,Math.min(B,o.maxTileHeight))}}function P(){k&&(k.clearRect(0,0,T.width,T.height),o.backgroundColor&&(k.fillStyle=o.backgroundColor,k.fillRect(0,0,T.width,T.height)));for(var R=0,L=0;L<x.length;++L)R+=x[L];if(R<=0)return;for(var O=-w,N=0,B=0,G=0;O<M.height;){if(N%2===0){for(var q=B/2%S.length,H=0,X=0,F=0;H<M.width*2;){for(var Y=0,L=0;L<y[G].length;++L)Y+=y[G][L];if(Y<=0)break;if(X%2===0){var Z=(1-o.symbolSize)*.5,j=H+y[G][X]*Z,re=O+x[N]*Z,ce=y[G][X]*o.symbolSize,te=x[N]*o.symbolSize,pe=F/2%S[q].length;ae(j,re,ce,te,S[q][pe])}H+=y[G][X],++F,++X,X===y[G].length&&(X=0)}++G,G===y.length&&(G=0)}O+=x[N],++B,++N,N===x.length&&(N=0)}function ae(he,ve,fe,ge,De){var Ie=i?1:r,$e=Er(De,he*Ie,ve*Ie,fe*Ie,ge*Ie,o.color,o.symbolKeepAspect);if(i){var dt=n.painter.renderOneToVNode($e);dt&&C.children.push(dt)}else BW(k,$e)}}}}function FW(e){if(!e||e.length===0)return[["rect"]];if(_e(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!_e(e[r])){t=!1;break}if(t)return FW([e]);for(var n=[],r=0;r<e.length;++r)_e(e[r])?n.push([e[r]]):n.push(e[r]);return n}function VW(e){if(!e||e.length===0)return[[0,0]];if(Dt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Dt(e[n])){r=!1;break}if(r)return VW([e]);for(var i=[],n=0;n<e.length;++n)if(Dt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=de(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function U0e(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Dt(e)){var t=Math.ceil(e);return[t,t]}var r=de(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function Y0e(e){return de(e,function(t){return $W(t)})}function $W(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function q0e(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=xd(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=xd(i,t)}}})}var ba=new oa,GW={};function X0e(e,t){GW[e]=t}function Z0e(e){return GW[e]}var K0e=1,Q0e=800,J0e=900,e1e=1e3,t1e=2e3,r1e=5e3,HW=1e3,n1e=1100,lI=2e3,WW=3e3,i1e=4e3,bS=4500,a1e=4600,o1e=5e3,s1e=6e3,jW=7e3,l1e={PROCESSOR:{FILTER:e1e,SERIES_FILTER:Q0e,STATISTIC:r1e},VISUAL:{LAYOUT:HW,PROGRESSIVE_LAYOUT:n1e,GLOBAL:lI,CHART:WW,POST_CHART_LAYOUT:a1e,COMPONENT:i1e,BRUSH:o1e,CHART_ITEM:bS,ARIA:s1e,DECAL:jW}},yn="__flagInMainProcess",Kn="__pendingUpdate",nC="__needsUpdateStatus",dz=/^[a-zA-Z0-9_]+$/,iC="__connectUpdateStatus",hz=0,u1e=1,c1e=2;function UW(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return qW(this,e,t)}}function YW(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return qW(this,e,t)}}function qW(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),oa.prototype[t].apply(e,r)}var XW=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(oa),ZW=XW.prototype;ZW.on=YW("on");ZW.off=YW("off");var yf,aC,qy,Hs,oC,sC,lC,cp,fp,pz,vz,uC,gz,Xy,mz,KW,Ni,yz,F1=function(e){J(t,e);function t(r,n,i){var a=e.call(this,new y0e)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},_e(n)&&(n=QW[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr&&ove(function(d){var h=Ze(d),v=h.dataIndex;if(v!=null){var g=Re();return g.set("series_index",h.seriesIndex),g.set("data_index",v),h.ssrType&&g.set("ssr_type",h.ssrType),g}});var u=a._zr=CN(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Qe(i.useDirtyRect,l),useCoarsePointer:Qe(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=aI(Ae(u.flush,u),17),n=We(n),n&&iW(n,!0),a._theme=n,a._locale=Pme(i.locale||EH),a._coordSysMgr=new Og;var c=a._api=mz(a);function f(d,h){return d.__prio-h.__prio}return L0($1,f),L0(oA,f),a._scheduler=new IW(a,c,oA,$1),a._messageCenter=new XW,a._initEvents(),a.resize=Ae(a.resize,a),u.animation.on("frame",a._onframe,a),pz(u,a),vz(u,a),g1(a),a}return t.prototype._onframe=function(){if(!this._disposed){yz(this);var r=this._scheduler;if(this[Kn]){var n=this[Kn].silent;this[yn]=!0;try{yf(this),Hs.update.call(this,null,this[Kn].updateParams)}catch(l){throw this[yn]=!1,this[Kn]=null,l}this._zr.flush(),this[yn]=!1,this[Kn]=null,cp.call(this,n),fp.call(this,n)}else if(r.unfinished){var i=K0e,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),sC(this,a),r.performVisualTasks(a),Xy(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.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(r,n,i){if(!this[yn]){if(this._disposed){this.id;return}var a,o,s;if(Ge(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[yn]=!0,!this._model||n){var l=new tye(this._api),u=this._theme,c=this._model=new eI;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},sA);var f={seriesTransition:s,optionChanged:!0};if(i)this[Kn]={silent:a,updateParams:f},this[yn]=!1,this.getZr().wakeUp();else{try{yf(this),Hs.update.call(this,null,f)}catch(d){throw this[Kn]=null,this[yn]=!1,d}this._ssr||this._zr.flush(),this[Kn]=null,this[yn]=!1,cp.call(this,a),fp.call(this,a)}}},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||yt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(yt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return V(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;V(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return V(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(uA[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();V(td,function(b,w){if(b.group===i){var T=n?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(We(r)),C=b.getDom().getBoundingClientRect();l=a(C.left,l),u=a(C.top,u),c=o(C.right,c),f=o(C.bottom,f),d.push({dom:T,left:C.left,top:C.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,g=f-u,y=yl.createCanvas(),x=CN(y,{renderer:n?"svg":"canvas"});if(x.resize({width:v,height:g}),n){var S="";return V(d,function(b){var w=b.left-l,T=b.top-u;S+='<g transform="translate('+w+","+T+')">'+b.dom+"</g>"}),x.painter.getSvgRoot().innerHTML=S,r.connectedBackgroundColor&&x.painter.setBackgroundColor(r.connectedBackgroundColor),x.refreshImmediately(),x.painter.toDataURL()}else return r.connectedBackgroundColor&&x.add(new Ct({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),V(d,function(b){var w=new Jr({style:{x:b.left*h-l,y:b.top*h-u,image:b.dom}});x.add(w)}),x.refreshImmediately(),y.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return oC(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return oC(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=uv(i,r);return V(o,function(s,l){l.indexOf("Models")>=0&&V(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=uv(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?oI(s,l,n):Ng(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;V(f1e,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Hu(s,function(v){var g=Ze(v);if(g&&g.dataIndex!=null){var y=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=y&&y.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=oe({},g.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),V(vv,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),V(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),b0e(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&jG(this.getDom(),cI,"");var n=this,i=n._api,a=n._model;V(n._componentsViews,function(o){o.dispose(a,i)}),V(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete td[n.id]},t.prototype.resize=function(r){if(!this[yn]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Kn]&&(a==null&&(a=this[Kn].silent),i=!0,this[Kn]=null),this[yn]=!0;try{i&&yf(this),Hs.update.call(this,{type:"resize",animation:oe({duration:0},r&&r.animation)})}catch(o){throw this[yn]=!1,o}this[yn]=!1,cp.call(this,a),fp.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Ge(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!lA[r]){var i=lA[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=oe({},r);return n.type=vv[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Ge(n)||(n={silent:!!n}),!!V1[r.type]&&this._model){if(this[yn]){this._pendingActions.push(r);return}var i=n.silent;lC.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&yt.browser.weChat&&this._throttledZrFlush(),cp.call(this,i),fp.call(this,i)}},t.prototype.updateLabelLayout=function(){ba.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){yf=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),aC(f,!0),aC(f,!1),d.plan()},aC=function(f,d){for(var h=f._model,v=f._scheduler,g=d?f._componentsViews:f._chartsViews,y=d?f._componentsMap:f._chartsMap,x=f._zr,S=f._api,b=0;b<g.length;b++)g[b].__alive=!1;d?h.eachComponent(function(C,M){C!=="series"&&w(M)}):h.eachSeries(w);function w(C){var M=C.__requireNewView;C.__requireNewView=!1;var k="_ec_"+C.id+"_"+C.type,I=!M&&y[k];if(!I){var P=lo(C.type),R=d?dr.getClass(P.main,P.sub):Zt.getClass(P.sub);I=new R,I.init(h,S),y[k]=I,g.push(I),x.add(I.group)}C.__viewId=I.__id=k,I.__alive=!0,I.__model=C,I.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&v.prepareView(I,C,h,S)}for(var b=0;b<g.length;){var T=g[b];T.__alive?b++:(!d&&T.renderTask.dispose(),x.remove(T.group),T.dispose(h,S),g.splice(b,1),y[T.__id]===T&&delete y[T.__id],T.__id=T.group.__ecComponentInfo=null)}},qy=function(f,d,h,v,g){var y=f._model;if(y.setUpdatePayload(h),!v){V([].concat(f._componentsViews).concat(f._chartsViews),T);return}var x={};x[v+"Id"]=h[v+"Id"],x[v+"Index"]=h[v+"Index"],x[v+"Name"]=h[v+"Name"];var S={mainType:v,query:x};g&&(S.subType=g);var b=h.excludeSeriesId,w;b!=null&&(w=Re(),V(Ut(b),function(C){var M=Br(C,null);M!=null&&w.set(M,!0)})),y&&y.eachComponent(S,function(C){var M=w&&w.get(C.id)!=null;if(!M)if(e5(h))if(C instanceof or)h.type===Ku&&!h.notBlur&&!C.get(["emphasis","disabled"])&&Ige(C,h,f._api);else{var k=Fk(C.mainType,C.componentIndex,h.name,f._api),I=k.focusSelf,P=k.dispatchers;h.type===Ku&&I&&!h.notBlur&&G2(C.mainType,C.componentIndex,f._api),P&&V(P,function(R){h.type===Ku?ss(R):ls(R)})}else W2(h)&&C instanceof or&&(Rge(C,h,f._api),QN(C),Ni(f))},f),y&&y.eachComponent(S,function(C){var M=w&&w.get(C.id)!=null;M||T(f[v==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},f);function T(C){C&&C.__alive&&C[d]&&C[d](C.__model,y,f._api,h)}},Hs={prepareAndUpdate:function(f){yf(this),Hs.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,g=this._zr,y=this._coordSysMgr,x=this._scheduler;if(h){h.setUpdatePayload(f),x.restoreData(h,f),x.performSeriesTasks(h),y.create(h,v),x.performDataProcessorTasks(h,f),sC(this,h),y.update(h,v),r(h),x.performVisualTasks(h,f),uC(this,h,v,f,d);var S=h.get("backgroundColor")||"transparent",b=h.get("darkMode");g.setBackgroundColor(S),b!=null&&b!=="auto"&&g.setDarkMode(b),ba.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var g=[];h.eachComponent(function(x,S){if(x!=="series"){var b=d.getViewOfComponentModel(S);if(b&&b.__alive)if(b.updateTransform){var w=b.updateTransform(S,h,v,f);w&&w.update&&g.push(b)}else g.push(b)}});var y=Re();h.eachSeries(function(x){var S=d._chartsMap[x.__viewId];if(S.updateTransform){var b=S.updateTransform(x,h,v,f);b&&b.update&&y.set(x.uid,1)}else y.set(x.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:y}),Xy(this,h,v,f,{},y),ba.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Zt.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),uC(this,d,this._api,f,{}),ba.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),Zt.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,g){if(v!=="series"){var y=d.getViewOfComponentModel(g);y&&y.__alive&&y.updateVisual(g,h,d._api,f)}}),h.eachSeries(function(v){var g=d._chartsMap[v.__viewId];g.updateVisual(v,h,d._api,f)}),ba.trigger("afterupdate",h,this._api))},updateLayout:function(f){Hs.update.call(this,f)}},oC=function(f,d,h,v){if(f._disposed){f.id;return}for(var g=f._model,y=f._coordSysMgr.getCoordinateSystems(),x,S=uv(g,h),b=0;b<y.length;b++){var w=y[b];if(w[d]&&(x=w[d](g,S,v))!=null)return x}},sC=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(g){v.updateStreamModes(g,h[g.__viewId])})},lC=function(f,d){var h=this,v=this.getModel(),g=f.type,y=f.escapeConnect,x=V1[g],S=x.actionInfo,b=(S.update||"update").split(":"),w=b.pop(),T=b[0]!=null&&lo(b[0]);this[yn]=!0;var C=[f],M=!1;f.batch&&(M=!0,C=de(f.batch,function(N){return N=Ve(oe({},N),f),N.batch=null,N}));var k=[],I,P=W2(f),R=e5(f);if(R&&dH(this._api),V(C,function(N){if(I=x.action(N,h._model,h._api),I=I||oe({},N),I.type=S.event||I.type,k.push(I),R){var B=Dk(f),G=B.queryOptionMap,q=B.mainTypeSpecified,H=q?G.keys()[0]:"series";qy(h,w,N,H),Ni(h)}else P?(qy(h,w,N,"series"),Ni(h)):T&&qy(h,w,N,T.main,T.sub)}),w!=="none"&&!R&&!P&&!T)try{this[Kn]?(yf(this),Hs.update.call(this,f),this[Kn]=null):Hs[w].call(this,f)}catch(N){throw this[yn]=!1,N}if(M?I={type:S.event||g,escapeConnect:y,batch:k}:I=k[0],this[yn]=!1,!d){var L=this._messageCenter;if(L.trigger(I.type,I),P){var O={type:"selectchanged",escapeConnect:y,selected:Ege(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};L.trigger(O.type,O)}}},cp=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();lC.call(this,h,f)}},fp=function(f){!f&&this.trigger("updated")},pz=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[Kn]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},vz=function(f,d){f.on("mouseover",function(h){var v=h.target,g=Hu(v,Hv);g&&(Pge(g,h,d._api),Ni(d))}).on("mouseout",function(h){var v=h.target,g=Hu(v,Hv);g&&(Dge(g,h,d._api),Ni(d))}).on("click",function(h){var v=h.target,g=Hu(v,function(S){return Ze(S).dataIndex!=null},!0);if(g){var y=g.selected?"unselect":"select",x=Ze(g);d._api.dispatchAction({type:y,dataType:x.dataType,dataIndexInside:x.dataIndex,seriesIndex:x.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],h=[],v=!1;if(f.eachComponent(function(S,b){var w=b.get("zlevel")||0,T=b.get("z")||0,C=b.getZLevelKey();v=v||!!C,(S==="series"?h:d).push({zlevel:w,z:T,idx:b.componentIndex,type:S,key:C})}),v){var g=d.concat(h),y,x;L0(g,function(S,b){return S.zlevel===b.zlevel?S.z-b.z:S.zlevel-b.zlevel}),V(g,function(S){var b=f.getComponent(S.type,S.idx),w=S.zlevel,T=S.key;y!=null&&(w=Math.max(y,w)),T?(w===y&&T!==x&&w++,x=T):x&&(w===y&&w++,x=""),y=w,b.setZLevel(w)})}}uC=function(f,d,h,v,g){n(d),gz(f,d,h,v,g),V(f._chartsViews,function(y){y.__alive=!1}),Xy(f,d,h,v,g),V(f._chartsViews,function(y){y.__alive||y.remove(d,h)})},gz=function(f,d,h,v,g,y){V(y||f._componentsViews,function(x){var S=x.__model;u(S,x),x.render(S,d,h,v),s(S,x),c(S,x)})},Xy=function(f,d,h,v,g,y){var x=f._scheduler;g=oe(g||{},{updatedSeries:d.getSeries()}),ba.trigger("series:beforeupdate",d,h,g);var S=!1;d.eachSeries(function(b){var w=f._chartsMap[b.__viewId];w.__alive=!0;var T=w.renderTask;x.updatePayload(T,v),u(b,w),y&&y.get(b.uid)&&T.dirty(),T.perform(x.getPerformArgs(T))&&(S=!0),w.group.silent=!!b.get("silent"),o(b,w),QN(b)}),x.unfinished=S||x.unfinished,ba.trigger("series:layoutlabels",d,h,g),ba.trigger("series:transition",d,h,g),d.eachSeries(function(b){var w=f._chartsMap[b.__viewId];s(b,w),c(b,w)}),a(f,d),ba.trigger("series:afterupdate",d,h,g)},Ni=function(f){f[nC]=!0,f.getZr().wakeUp()},yz=function(f){f[nC]&&(f.getZr().storage.traverse(function(d){Kf(d)||i(d)}),f[nC]=!1)};function i(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var g=h[v];g==="emphasis"||g==="blur"||g==="select"||d.push(g)}f.selected&&f.states.select&&d.push("select"),f.hoverState===aS&&f.states.emphasis?d.push("emphasis"):f.hoverState===Ig&&f.states.blur&&d.push("blur"),f.useStates(d)}function a(f,d){var h=f._zr,v=h.storage,g=0;v.traverse(function(y){y.isGroup||g++}),g>d.get("hoverLayerThreshold")&&!yt.node&&!yt.worker&&d.eachSeries(function(y){if(!y.preventUsingHoverLayer){var x=f._chartsMap[y.__viewId];x.__alive&&x.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(g){return l(g,h,v,-1/0),!0})}}function l(f,d,h,v){var g=f.getTextContent(),y=f.getTextGuideLine(),x=f.isGroup;if(x)for(var S=f.childrenRef(),b=0;b<S.length;b++)v=Math.max(l(S[b],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(g&&(g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+2)),y){var w=f.textGuideLineConfig;y.z=d,y.zlevel=h,isFinite(v)&&(y.z2=v+(w&&w.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!Kf(h)){var v=h.getTextContent(),g=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),g=h.get("duration"),y=g>0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(x){if(x.states&&x.states.emphasis){if(Kf(x))return;if(x instanceof vt&&Bge(x),x.__dirty){var S=x.prevStates;S&&x.useStates(S)}if(v){x.stateTransition=y;var b=x.getTextContent(),w=x.getTextGuideLine();b&&(b.stateTransition=y),w&&(w.stateTransition=y)}x.__dirty&&i(x)}})}mz=function(f){return new(function(d){J(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);v=v.parent}},h.prototype.enterEmphasis=function(v,g){ss(v,g),Ni(f)},h.prototype.leaveEmphasis=function(v,g){ls(v,g),Ni(f)},h.prototype.enterBlur=function(v){lH(v),Ni(f)},h.prototype.leaveBlur=function(v){Bk(v),Ni(f)},h.prototype.enterSelect=function(v){uH(v),Ni(f)},h.prototype.leaveSelect=function(v){cH(v),Ni(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(rW))(f)},KW=function(f){function d(h,v){for(var g=0;g<h.length;g++){var y=h[g];y[iC]=v}}V(vv,function(h,v){f._messageCenter.on(v,function(g){if(uA[f.group]&&f[iC]!==hz){if(g&&g.escapeConnect)return;var y=f.makeActionFromEvent(g),x=[];V(td,function(S){S!==f&&S.group===f.group&&x.push(S)}),d(x,hz),V(x,function(S){S[iC]!==u1e&&S.dispatchAction(y)}),d(x,c1e)}})})}}(),t}(oa),uI=F1.prototype;uI.on=UW("on");uI.off=UW("off");uI.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var f1e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var V1={},vv={},oA=[],sA=[],$1=[],QW={},lA={},td={},uA={},d1e=+new Date-0,h1e=+new Date-0,cI="_echarts_instance_";function p1e(e,t,r){{var n=JW(e);if(n)return n}var i=new F1(e,t,r);return i.id="ec_"+d1e++,td[i.id]=i,jG(e,cI,i.id),KW(i),ba.trigger("afterinit",i),i}function v1e(e){if(ue(e)){var t=e;e=null,V(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+h1e++,V(t,function(r){r.group=e})}return uA[e]=!0,e}function g1e(e){_e(e)?e=td[e]:e instanceof F1||(e=JW(e)),e instanceof F1&&!e.isDisposed()&&e.dispose()}function JW(e){return td[Ave(e,cI)]}function e8(e,t){QW[e]=t}function t8(e){ft(sA,e)<0&&sA.push(e)}function r8(e,t){dI(oA,e,t,t1e)}function m1e(e){fI("afterinit",e)}function y1e(e){fI("afterupdate",e)}function fI(e,t){ba.on(e,t)}function Do(e,t,r){Be(t)&&(r=t,t="");var n=Ge(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!vv[t]&&(zn(dz.test(n)&&dz.test(t)),V1[n]||(V1[n]={action:r,actionInfo:e}),vv[t]=n)}function x1e(e,t){Og.register(e,t)}function S1e(e,t){dI($1,e,t,HW,"layout")}function Ac(e,t){dI($1,e,t,WW,"visual")}var xz=[];function dI(e,t,r,n,i){if((Be(t)||Ge(t))&&(r=t,t=n),!(ft(xz,r)>=0)){xz.push(r);var a=IW.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function n8(e,t){lA[e]=t}function b1e(e,t,r){var n=Z0e("registerMap");n&&n(e,t,r)}var _1e=Eye;Ac(lI,i0e);Ac(bS,a0e);Ac(bS,o0e);Ac(lI,x0e);Ac(bS,S0e);Ac(jW,q0e);t8(iW);r8(J0e,hye);n8("default",s0e);Do({type:Ku,event:Ku,update:Ku},Mr);Do({type:F0,event:F0,update:F0},Mr);Do({type:cv,event:cv,update:cv},Mr);Do({type:V0,event:V0,update:V0},Mr);Do({type:fv,event:fv,update:fv},Mr);e8("light",m0e);e8("dark",EW);var Sz=[],w1e={registerPreprocessor:t8,registerProcessor:r8,registerPostInit:m1e,registerPostUpdate:y1e,registerUpdateLifecycle:fI,registerAction:Do,registerCoordinateSystem:x1e,registerLayout:S1e,registerVisual:Ac,registerTransform:_1e,registerLoading:n8,registerMap:b1e,registerImpl:X0e,PRIORITY:l1e,ComponentModel:xt,ComponentView:dr,SeriesModel:or,ChartView:Zt,registerComponentModel:function(e){xt.registerClass(e)},registerComponentView:function(e){dr.registerClass(e)},registerSeriesModel:function(e){or.registerClass(e)},registerChartView:function(e){Zt.registerClass(e)},registerSubTypeDefaulter:function(e,t){xt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){ive(e,t)}};function pt(e){if(ue(e)){V(e,function(t){pt(t)});return}ft(Sz,e)>=0||(Sz.push(e),Be(e)&&(e={install:e}),e.install(w1e))}function dp(e){return e==null?0:e.length||1}function bz(e){return e}var us=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||bz,this._newKeyGetter=i||bz,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=dp(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],f=dp(u),d=dp(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=dp(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=dp(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),C1e=function(){function e(t,r){this._encode=t,this._schema=r}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 T1e(e,t){var r={},n=r.encode={},i=Re(),a=[],o=[],s={};V(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var g=h.coordDimIndex;cC(n,v)[g]=d,h.isExtraCoord||(i.set(v,1),A1e(h.type)&&(a[0]=d),cC(s,v)[g]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}XH.each(function(y,x){var S=cC(n,x),b=h.otherDims[x];b!=null&&b!==!1&&(S[b]=h.name)})});var l=[],u={};i.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=de(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new C1e(s,t),r}function cC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function G1(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function A1e(e){return!(e==="ordinal"||e==="time")}var j0=function(){function e(t){this.otherDims={},t!=null&&oe(this,t)}return e}(),M1e=Tt(),k1e={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},i8=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=s8(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Qe(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=oW(this.source),n=!l8(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=k1e[u]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function a8(e){return e instanceof i8}function o8(e){for(var t=Re(),r=0;r<(e||[]).length;r++){var n=e[r],i=Ge(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function s8(e){var t=M1e(e);return t.dimNameMap||(t.dimNameMap=o8(e.dimensionsDefine))}function l8(e){return e>30}var hp=Ge,Ws=de,I1e=typeof Int32Array>"u"?Array:Int32Array,P1e="e\0\0",_z=-1,D1e=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],R1e=["_approximateExtent"],wz,Zy,pp,vp,fC,Ky,dC,On=function(){function e(t,r){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 n,i=!1;a8(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],d=_e(f)?new j0({name:f}):f instanceof j0?f:new j0(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),a[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=Re();V(o,function(y){g.set(a[y].storeDimIndex,y)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Dt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof J2&&(a=t),!a){var o=this.dimensions,s=tI(t)||wn(t)?new sW(t,o.length):t;a=new J2;var l=Ws(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=T1e(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&dC(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==dl&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===sa;if(l&&!i.pure)for(var u=[],c=t;c<r;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&hve(f)&&(this.hasItemOption=!0),f){var d=f.name;a[c]==null&&d!=null&&(a[c]=Br(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=Br(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)dC(this,c);wz(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){hp(t)?oe(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=pp(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return Zy(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return ue(t)?i.getValues(Ws(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n[r];return i==null||isNaN(i)?_z:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){Be(t)&&(n=r,r=t,t=[]);var i=n||this,a=Ws(vp(t),this._getStoreDimIndex,this);this._store.each(a,i?Ae(r,i):r)},e.prototype.filterSelf=function(t,r,n){Be(t)&&(n=r,r=t,t=[]);var i=n||this,a=Ws(vp(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Ae(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=St(t);return V(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){Be(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=Ws(vp(t),this._getStoreDimIndex,this),s=Ky(this);return s._store=this._store.map(o,a?Ae(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=Ws(vp(t),this._getStoreDimIndex,this);this._store.modify(o,a?Ae(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Ky(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=Ky(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Bt(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new us(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Zy(t,n)},function(n){return Zy(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},hp(t)?oe(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),ue(a)?a=a.slice():hp(a)&&(a=oe({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,hp(r)?oe(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){hp(t)?oe(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?oe(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;V2(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){V(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Ws(this.dimensions,this._getDimInfo,this),this.hostModel)),fC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Be(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(bk(arguments)))})},e.internalField=function(){wz=function(t){var r=t._invertedIndicesMap;V(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new I1e(o.categories.length);for(var l=0;l<n.length;l++)n[l]=_z;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},pp=function(t,r,n){return Br(t._getCategory(r,n),null)},Zy=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=pp(t,t._idDimIdx,r)),n==null&&(n=P1e+r),n},vp=function(t){return ue(t)||(t=t!=null?[t]:[]),t},Ky=function(t){var r=new e(t._schema?t._schema:Ws(t.dimensions,t._getDimInfo,t),t.hostModel);return fC(r,t),r},fC=function(t,r){V(D1e.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,V(R1e,function(n){t[n]=We(r[n])}),t._calculationInfo=oe({},r._calculationInfo)},dC=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=pp(t,a,r)),l==null&&o!=null&&(i[r]=l=pp(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}}(),e}();function zg(e,t){tI(e)||(e=rI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Re(),a=[],o=L1e(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&l8(o),l=n===e.dimensionsDefine,u=l?s8(e):o8(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=Re(c),d=new vW(o),h=0;h<d.length;h++)d[h]=-1;function v(I){var P=d[I];if(P<0){var R=n[I],L=Ge(R)?R:{name:R},O=new j0,N=L.name;N!=null&&u.get(N)!=null&&(O.name=O.displayName=N),L.type!=null&&(O.type=L.type),L.displayName!=null&&(O.displayName=L.displayName);var B=a.length;return d[I]=B,O.storeDimIndex=I,a.push(O),O}return a[P]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(I,P){var R=Ut(I).slice();if(R.length===1&&!_e(R[0])&&R[0]<0){f.set(P,!1);return}var L=f.set(P,[]);V(R,function(O,N){var B=_e(O)?u.get(O):O;B!=null&&B<o&&(L[N]=B,y(v(B),P,N))})});var g=0;V(r,function(I){var P,R,L,O;if(_e(I))P=I,O={};else{O=I,P=O.name;var N=O.ordinalMeta;O.ordinalMeta=null,O=oe({},O),O.ordinalMeta=N,R=O.dimsDef,L=O.otherDims,O.name=O.coordDim=O.coordDimIndex=O.dimsDef=O.otherDims=null}var B=f.get(P);if(B!==!1){if(B=Ut(B),!B.length)for(var G=0;G<(R&&R.length||1);G++){for(;g<o&&v(g).coordDim!=null;)g++;g<o&&B.push(g++)}V(B,function(q,H){var X=v(q);if(l&&O.type!=null&&(X.type=O.type),y(Ve(X,O),P,H),X.name==null&&R){var F=R[H];!Ge(F)&&(F={name:F}),X.name=X.displayName=F.name,X.defaultTooltip=F.defaultTooltip}L&&Ve(X.otherDims,L)})}});function y(I,P,R){XH.get(P)!=null?I.otherDims[P]=R:(I.coordDim=P,I.coordDimIndex=R,i.set(P,!0))}var x=t.generateCoord,S=t.generateCoordCount,b=S!=null;S=x?S||1:0;var w=x||"value";function T(I){I.name==null&&(I.name=I.coordDim)}if(s)V(a,function(I){T(I)}),a.sort(function(I,P){return I.storeDimIndex-P.storeDimIndex});else for(var C=0;C<o;C++){var M=v(C),k=M.coordDim;k==null&&(M.coordDim=O1e(w,i,b),M.coordDimIndex=0,(!x||S<=0)&&(M.isExtraCoord=!0),S--),T(M),M.type==null&&(JH(e,C)===nn.Must||M.isExtraCoord&&(M.otherDims.itemName!=null||M.otherDims.seriesName!=null))&&(M.type="ordinal")}return E1e(a),new i8({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function E1e(e){for(var t=Re(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function L1e(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return V(t,function(a){var o;Ge(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function O1e(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var N1e=function(){function e(t){this.coordSysDims=[],this.axisMap=Re(),this.categoryAxisMap=Re(),this.coordSysName=t}return e}();function z1e(e){var t=e.get("coordinateSystem"),r=new N1e(t),n=B1e[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var B1e={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Dr).models[0],a=e.getReferringComponents("yAxis",Dr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),xf(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),xf(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Dr).models[0];t.coordSysDims=["single"],r.set("single",i),xf(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Dr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),xf(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),xf(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();V(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),xf(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function xf(e){return e.get("type")==="category"}function F1e(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;V1e(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(V(a,function(S,b){_e(S)&&(a[b]=S={name:S}),l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!c&&S.type!=="ordinal"&&S.type!=="time"&&(!i||i===S.coordDim)&&(c=S))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,g=0;V(a,function(S){S.coordDim===h&&g++});var y={name:f,coordDim:h,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},x={name:d,coordDim:d,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(d,v),x.storeDimIndex=s.ensureCalculationDimension(f,v)),o.appendCalculationDimension(y),o.appendCalculationDimension(x)):(a.push(y),a.push(x))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function V1e(e){return!a8(e.schema)}function _l(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function u8(e,t){return _l(e,t)?e.getCalculationInfo("stackResultDimension"):t}function $1e(e,t){var r=e.get("coordinateSystem"),n=Og.get(r),i;return t&&t.coordSysDims&&(i=de(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=G1(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function G1e(e,t,r){var n,i;return r&&V(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function vs(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=rI(e)):(i=n.getSource(),a=i.sourceFormat===sa);var o=z1e(t),s=$1e(t,o),l=r.useEncodeDefaulter,u=Be(l)?l:l?Je(QH,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=zg(i,c),d=G1e(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),v=F1e(t,{schema:f,store:h}),g=new On(f,t);g.setCalculationInfo(v);var y=d!=null&&H1e(i)?function(x,S,b,w){return w===d?b:this.defaultDimValueGetter(x,S,b,w)}:null;return g.hasItemOption=!1,g.initData(a?i:h,null,y),g}function H1e(e){if(e.sourceFormat===sa){var t=W1e(e.data||[]);return!ue(Ed(t))}}function W1e(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Ro=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();tS(Ro);var j1e=0,cA=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++j1e}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&de(n,U1e);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!_e(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Re(this.categories))},e}();function U1e(e){return Ge(e)&&e.value!=null?e.value:e+""}function fA(e){return e.type==="interval"||e.type==="log"}function Y1e(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=zG(a/t);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=c8(o),l=i.niceTickExtent=[br(Math.ceil(e[0]/o)*o,s),br(Math.floor(e[1]/o)*o,s)];return q1e(l,e),i}function hC(e){var t=Math.pow(10,Ik(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,br(r*t)}function c8(e){return so(e)+2}function Cz(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function q1e(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Cz(e,0,t),Cz(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function _S(e,t){return e>=t[0]&&e<=t[1]}function wS(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function CS(e,t){return e*(t[1]-t[0])+t[0]}var TS=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new cA({})),ue(i)&&(i=new cA({categories:de(i,function(a){return Ge(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:_e(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),_S(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),wS(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(CS(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ro);Ro.registerClass(TS);var gu=br,cs=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return _S(r,this._extent)},t.prototype.normalize=function(r){return wS(r,this._extent)},t.prototype.scale=function(r){return CS(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=c8(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:gu(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=gu(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:gu(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,d=f/r;u<r-1;){var h=gu(l.value+(u+1)*d);h>a[0]&&h<a[1]&&c.push(h),u++}i.push(c)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=so(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=gu(r.value,i,!0);return HH(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=Y1e(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=gu(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=gu(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Ro);Ro.registerClass(cs);var f8=typeof Float32Array<"u",X1e=f8?Float32Array:Array;function uo(e){return ue(e)?f8?new Float32Array(e):e:new X1e(e)}var dA="__ec_stack_";function hI(e){return e.get("stack")||dA+e.seriesIndex}function pI(e){return e.dim+e.index}function Z1e(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var i=r.getBandWidth(),a=0;a<e.count;a++)t.push(Ve({bandWidth:i,axisKey:n,stackId:dA+a},e));for(var o=p8(t),s=[],a=0;a<e.count;a++){var l=o[n][dA+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function d8(e,t){var r=[];return t.eachSeriesByType(e,function(n){m8(n)&&r.push(n)}),r}function K1e(e){var t={};V(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),g=0,y=v.count();g<y;++g){var x=v.get(h,g);t[d]?t[d].push(x):t[d]=[x]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function h8(e){var t=K1e(e),r=[];return V(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=xe(n.get("barWidth"),s),g=xe(n.get("barMaxWidth"),s),y=xe(n.get("barMinWidth")||(y8(n)?.5:1),s),x=n.get("barGap"),S=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:g,barMinWidth:y,barGap:x,barCategoryGap:S,axisKey:pI(a),stackId:hI(n)})}),p8(r)}function p8(e){var t={};V(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return V(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=St(a).length;s=Math.max(35-l*4,15)+"%"}var u=xe(s,o),c=xe(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),V(a,function(x){var S=x.maxWidth,b=x.minWidth;if(x.width){var w=x.width;S&&(w=Math.min(w,S)),b&&(w=Math.max(w,b)),x.width=w,f-=w+c*w,d--}else{var w=h;S&&S<w&&(w=Math.min(S,f)),b&&b>w&&(w=b),w!==h&&(x.width=w,f-=w+c*w,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,g;V(a,function(x,S){x.width||(x.width=h),g=x,v+=x.width*(1+c)}),g&&(v-=g.width*c);var y=-v/2;V(a,function(x,S){r[i][S]=r[i][S]||{bandWidth:o,offset:y,width:x.width},y+=x.width*(1+c)})}),r}function Q1e(e,t,r){if(e&&t){var n=e[pI(t)];return n!=null&&r!=null?n[hI(r)]:n}}function v8(e,t){var r=d8(e,t),n=h8(r);V(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=hI(i),u=n[pI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function g8(e){return{seriesType:e,plan:Gd(),reset:function(t){if(m8(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=_l(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=J1e(i,a),v=y8(t),g=t.get("barMinHeight")||0,y=c&&r.getDimensionIndex(c),x=r.getLayout("size"),S=r.getLayout("offset");return{progress:function(b,w){for(var T=b.count,C=v&&uo(T*3),M=v&&l&&uo(T*3),k=v&&uo(T),I=n.master.getRect(),P=d?I.width:I.height,R,L=w.getStore(),O=0;(R=b.next())!=null;){var N=L.get(f?y:o,R),B=L.get(s,R),G=h,q=void 0;f&&(q=+N-L.get(o,R));var H=void 0,X=void 0,F=void 0,Y=void 0;if(d){var Z=n.dataToPoint([N,B]);if(f){var j=n.dataToPoint([q,B]);G=j[0]}H=G,X=Z[1]+S,F=Z[0]-G,Y=x,Math.abs(F)<g&&(F=(F<0?-1:1)*g)}else{var Z=n.dataToPoint([B,N]);if(f){var j=n.dataToPoint([B,q]);G=j[1]}H=Z[0]+S,X=G,F=x,Y=Z[1]-G,Math.abs(Y)<g&&(Y=(Y<=0?-1:1)*g)}v?(C[O]=H,C[O+1]=X,C[O+2]=d?F:Y,M&&(M[O]=d?I.x:H,M[O+1]=d?X:I.y,M[O+2]=P),k[R]=R):w.setItemLayout(R,{x:H,y:X,width:F,height:Y}),O+=3}v&&w.setLayout({largePoints:C,largeDataIndices:k,largeBackgroundPoints:M,valueAxisHorizontal:d})}}}}}}function m8(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function y8(e){return e.pipelineContext&&e.pipelineContext.large}function J1e(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var exe=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},vI=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return dS(r.value,v5[Eme(Jf(this._minLevelUnit))]||v5.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Lme(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=sxe(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Ki,n[1]+=Ki),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Ki}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Qy.length,l=Math.min(exe(Qy,this._approxInterval,0,s),s-1);this._interval=Qy[l][1],this._minLevelUnit=Qy[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Dt(r)?r:+Ao(r)},t.prototype.contain=function(r){return _S(this.parse(r),this._extent)},t.prototype.normalize=function(r){return wS(this.parse(r),this._extent)},t.prototype.scale=function(r){return CS(r,this._extent)},t.type="time",t}(cs),Qy=[["second",Yk],["minute",qk],["hour",hv],["quarter-day",hv*6],["half-day",hv*12],["day",Ki*1.2],["half-week",Ki*3.5],["week",Ki*7],["month",Ki*31],["quarter",Ki*95],["half-year",p5/2],["year",p5]];function txe(e,t,r,n){var i=Ao(t),a=Ao(r),o=function(v){return g5(i,v,n)===g5(a,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function rxe(e,t){return e/=Ki,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function nxe(e){var t=30*Ki;return e/=t,e>6?6:e>3?3:e>2?2:1}function ixe(e){return e/=hv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Tz(e,t){return e/=t?qk:Yk,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function axe(e){return zG(e)}function oxe(e,t,r){var n=new Date(e);switch(Jf(t)){case"year":case"month":n[zH(r)](0);case"day":n[BH(r)](1);case"hour":n[FH(r)](0);case"minute":n[VH(r)](0);case"second":n[$H(r)](0),n[GH(r)](0)}return n.getTime()}function sxe(e,t,r,n){var i=1e4,a=OH,o=0;function s(P,R,L,O,N,B,G){for(var q=new Date(R),H=R,X=q[O]();H<L&&H<=n[1];)G.push({value:H}),X+=P,q[N](X),H=q.getTime();G.push({value:H,notAdd:!0})}function l(P,R,L){var O=[],N=!R.length;if(!txe(Jf(P),n[0],n[1],r)){N&&(R=[{value:oxe(new Date(n[0]),P,r)},{value:n[1]}]);for(var B=0;B<R.length-1;B++){var G=R[B].value,q=R[B+1].value;if(G!==q){var H=void 0,X=void 0,F=void 0,Y=!1;switch(P){case"year":H=Math.max(1,Math.round(t/Ki/365)),X=Xk(r),F=Ome(r);break;case"half-year":case"quarter":case"month":H=nxe(t),X=ed(r),F=zH(r);break;case"week":case"half-week":case"day":H=rxe(t),X=hS(r),F=BH(r),Y=!0;break;case"half-day":case"quarter-day":case"hour":H=ixe(t),X=jv(r),F=FH(r);break;case"minute":H=Tz(t,!0),X=pS(r),F=VH(r);break;case"second":H=Tz(t,!1),X=vS(r),F=$H(r);break;case"millisecond":H=axe(t),X=gS(r),F=GH(r);break}s(H,G,q,X,F,Y,O),P==="year"&&L.length>1&&B===0&&L.unshift({value:L[0].value-H})}}for(var B=0;B<O.length;B++)L.push(O[B]);return O}}for(var u=[],c=[],f=0,d=0,h=0;h<a.length&&o++<i;++h){var v=Jf(a[h]);if(Rme(a[h])){l(a[h],u[u.length-1]||[],c);var g=a[h+1]?Jf(a[h+1]):null;if(v!==g){if(c.length){d=f,c.sort(function(P,R){return P.value-R.value});for(var y=[],x=0;x<c.length;++x){var S=c[x].value;(x===0||c[x-1].value!==S)&&(y.push(c[x]),S>=n[0]&&S<=n[1]&&f++)}var b=(n[1]-n[0])/t;if(f>b*1.5&&d>b/1.5||(u.push(y),f>b||e===a[h]))break}c=[]}}}for(var w=Wt(de(u,function(P){return Wt(P,function(R){return R.value>=n[0]&&R.value<=n[1]&&!R.notAdd})}),function(P){return P.length>0}),T=[],C=w.length-1,h=0;h<w.length;++h)for(var M=w[h],k=0;k<M.length;++k)T.push({value:M[k].value,level:C-h});T.sort(function(P,R){return P.value-R.value});for(var I=[],h=0;h<T.length;++h)(h===0||T[h].value!==T[h-1].value)&&I.push(T[h]);return I}Ro.registerClass(vI);var Az=Ro.prototype,gv=cs.prototype,lxe=br,uxe=Math.floor,cxe=Math.ceil,Jy=Math.pow,ya=Math.log,gI=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new cs,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=gv.getTicks.call(this,r);return de(o,function(s){var l=s.value,u=br(Jy(this.base,l));return u=l===i[0]&&this._fixMin?e0(u,a[0]):u,u=l===i[1]&&this._fixMax?e0(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=ya(this.base);r=ya(Math.max(0,r))/i,n=ya(Math.max(0,n))/i,gv.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=Az.getExtent.call(this);n[0]=Jy(r,n[0]),n[1]=Jy(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=e0(n[0],a[0])),this._fixMax&&(n[1]=e0(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=ya(r[0])/ya(n),r[1]=ya(r[1])/ya(n),Az.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=dve(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[br(cxe(n[0]/a)*a),br(uxe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){gv.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=ya(r)/ya(this.base),_S(r,this._extent)},t.prototype.normalize=function(r){return r=ya(r)/ya(this.base),wS(r,this._extent)},t.prototype.scale=function(r){return r=CS(r,this._extent),Jy(this.base,r)},t.type="log",t}(Ro),x8=gI.prototype;x8.getMinorTicks=gv.getMinorTicks;x8.getLabel=gv.getLabel;function e0(e,t){return lxe(e,so(t))}Ro.registerClass(gI);var fxe=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;Be(o)?this._modelMinNum=t0(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=t0(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(Be(s)?this._modelMaxNum=t0(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=t0(t,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=ue(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[La(u[0],1),La(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Nv(s)||Nv(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[hxe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=dxe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),dxe={min:"_determinedMin",max:"_determinedMax"},hxe={min:"_dataMin",max:"_dataMax"};function S8(e,t,r){var n=e.rawExtentInfo;return n||(n=new fxe(e,t,r),e.rawExtentInfo=n,n)}function t0(e,t){return t==null?null:Nv(t)?NaN:e.parse(t)}function b8(e,t){var r=e.type,n=S8(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=d8("bar",o),l=!1;if(V(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=h8(s),c=pxe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function pxe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=Q1e(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;V(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;V(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Sd(e,t){var r=t,n=b8(e,r),i=n.extent,a=r.get("splitNumber");e instanceof gI&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function AS(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new TS({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new vI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ro.getClass(t)||cs)}}function vxe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function jd(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):_e(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):Be(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(mI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function mI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function gxe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof TS?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=jd(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=n?n[c]:{value:a[0]+c},d=s(f,c),h=o.getTextRect(d),v=mxe(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function mxe(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new rt(e.x,e.y,a,o);return s}function yI(e){var t=e.get("interval");return t??"auto"}function _8(e){return e.type==="category"&&yI(e.getLabelModel())===0}function H1(e,t){var r={};return V(e.mapDimensionsAll(t),function(n){r[u8(e,n)]=!0}),St(r)}function yxe(e,t,r){t&&V(H1(t,r),function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])})}var Bg=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),xxe=1e-8;function Mz(e,t){return Math.abs(e-t)<xxe}function Eu(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];n+=Yo(i[0],i[1],o[0],o[1],t,r),i=o}var s=e[0];return(!Mz(i[0],s[0])||!Mz(i[1],s[1]))&&(n+=Yo(i[0],i[1],s[0],s[1],t,r)),n!==0}var Sxe=[];function pC(e,t){for(var r=0;r<e.length;r++)un(e[r],e[r],t)}function kz(e,t,r,n){for(var i=0;i<e.length;i++){var a=e[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(rl(t,t,a),nl(r,r,a))}}function bxe(e){for(var t=0,r=0,n=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],c=a*u-l*o;t+=c,r+=(a+l)*c,n+=(o+u)*c,a=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var w8=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),Iz=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),Pz=function(){function e(t){this.type="linestring",this.points=t}return e}(),C8=function(e){J(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return bxe(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return V(o,function(s){s.type==="polygon"?kz(s.exterior,i,a,r):V(s.points,function(l){kz(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new rt(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Eu(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(Eu(u[c],r[0],r[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new rt(r,n,i,a),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(pC(d.exterior,u),V(d.interiors,function(h){pC(h,u)})):V(d.points,function(h){pC(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(w8),_xe=function(e){J(t,e);function t(r,n){var i=e.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=Kx(Sxe),o=r;o&&!o.isGeoSVGGraphicRoot;)Qo(a,o.getLocalTransform(),a),o=o.parent;return Rd(a,a),un(i,i,a),i},t}(w8);function wxe(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return V(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=T8(s,o,r);break;case"Polygon":vC(s,o,r);break;case"MultiLineString":vC(s,o,r);break;case"MultiPolygon":V(s,function(l,u){return vC(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function vC(e,t,r){for(var n=0;n<e.length;n++)e[n]=T8(e[n],t[n],r)}function T8(e,t,r){for(var n=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function Cxe(e,t){return e=wxe(e),de(Wt(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Iz(o[0],o.slice(1)));break;case"MultiPolygon":V(i.coordinates,function(l){l[0]&&a.push(new Iz(l[0],l.slice(1)))});break;case"LineString":a.push(new Pz([i.coordinates]));break;case"MultiLineString":a.push(new Pz(i.coordinates))}var s=new C8(n[t||"name"],a,n.cp);return s.properties=n,s})}var Kv=Tt();function A8(e,t){var r=de(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function Txe(e){var t=e.getLabelModel().get("customValues");if(t){var r=jd(e);return{labels:A8(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?Mxe(e):Ixe(e)}function Axe(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:A8(e,r)}:e.type==="category"?kxe(e,t):{ticks:de(e.scale.getTicks(),function(n){return n.value})}}function Mxe(e){var t=e.getLabelModel(),r=M8(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function M8(e,t){var r=k8(e,"labels"),n=yI(t),i=I8(r,n);if(i)return i;var a,o;return Be(n)?a=R8(e,n):(o=n==="auto"?Pxe(e):n,a=D8(e,o)),P8(r,n,{labels:a,labelCategoryInterval:o})}function kxe(e,t){var r=k8(e,"ticks"),n=yI(t),i=I8(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Be(n))a=R8(e,n,!0);else if(n==="auto"){var s=M8(e,e.getLabelModel());o=s.labelCategoryInterval,a=de(s.labels,function(l){return l.tickValue})}else o=n,a=D8(e,o,!0);return P8(r,n,{ticks:a,tickCategoryInterval:o})}function Ixe(e){var t=e.scale.getTicks(),r=jd(e);return{labels:de(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function k8(e,t){return Kv(e)[t]||(Kv(e)[t]=[])}function I8(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function P8(e,t,r){return e.push({key:t,value:r}),r}function Pxe(e){var t=Kv(e).autoInterval;return t??(Kv(e).autoInterval=e.calculateCategoryInterval())}function Dxe(e){var t=Rxe(e),r=jd(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var v=0,g=0,y=Mg(r({value:l}),t.font,"center","top");v=y.width*1.3,g=y.height*1.3,d=Math.max(d,v,7),h=Math.max(h,g,7)}var x=d/c,S=h/f;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S))),w=Kv(e.model),T=e.getExtent(),C=w.lastAutoInterval,M=w.lastTickCount;return C!=null&&M!=null&&Math.abs(C-b)<=1&&Math.abs(M-o)<=1&&C>b&&w.axisExtent0===T[0]&&w.axisExtent1===T[1]?b=C:(w.lastTickCount=o,w.lastAutoInterval=b,w.axisExtent0=T[0],w.axisExtent1=T[1]),b}function Rxe(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function D8(e,t,r){var n=jd(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=_8(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==a[0]&&g(a[0]);for(var v=u;v<=a[1];v+=l)g(v);h&&v-l!==a[1]&&g(a[1]);function g(y){var x={value:y};s.push(r?y:{formattedLabel:n(x),rawLabel:i.getLabel(x),tickValue:y})}return s}function R8(e,t,r){var n=e.scale,i=jd(e),a=[];return V(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Dz=[0,1],Ba=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return OG(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Rz(n,i.count())),Vt(t,Dz,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Rz(n,i.count()));var a=Vt(t,n,Dz,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Axe(this,r),i=n.ticks,a=de(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return Exe(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=de(n,function(a){return de(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return Txe(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 t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return Dxe(this)},e}();function Rz(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function Exe(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;V(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,v){return h=br(h),v=br(v),f?h>v:h<v}}var gp=Math.PI*2,mu=Mo.CMD,Lxe=["top","right","bottom","left"];function Oxe(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function Nxe(e,t,r,n,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+e,f=s*r+t;if(Math.abs(n-i)%gp<1e-4)return l[0]=c,l[1]=f,u-r;if(a){var d=n;n=bi(i),i=bi(d)}else n=bi(n),i=bi(i);n>i&&(i+=gp);var h=Math.atan2(s,o);if(h<0&&(h+=gp),h>=n&&h<=i||h+gp>=n&&h+gp<=i)return l[0]=c,l[1]=f,u-r;var v=r*Math.cos(n)+e,g=r*Math.sin(n)+t,y=r*Math.cos(i)+e,x=r*Math.sin(i)+t,S=(v-o)*(v-o)+(g-s)*(g-s),b=(y-o)*(y-o)+(x-s)*(x-s);return S<b?(l[0]=v,l[1]=g,Math.sqrt(S)):(l[0]=y,l[1]=x,Math.sqrt(b))}function W1(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var g=o[0]=e+v*c,y=o[1]=t+v*f;return Math.sqrt((g-i)*(g-i)+(y-a)*(y-a))}function E8(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var _a=[];function zxe(e,t,r){var n=E8(t.x,t.y,t.width,t.height,e.x,e.y,_a);return r.set(_a[0],_a[1]),n}function Bxe(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,h=0;h<c.length;){var v=c[h++];h===1&&(n=c[h],i=c[h+1],a=n,o=i);var g=u;switch(v){case mu.M:a=c[h++],o=c[h++],n=a,i=o;break;case mu.L:g=W1(n,i,c[h],c[h+1],f,d,_a,!0),n=c[h++],i=c[h++];break;case mu.C:g=mG(n,i,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,_a),n=c[h++],i=c[h++];break;case mu.Q:g=xG(n,i,c[h++],c[h++],c[h],c[h+1],f,d,_a),n=c[h++],i=c[h++];break;case mu.A:var y=c[h++],x=c[h++],S=c[h++],b=c[h++],w=c[h++],T=c[h++];h+=1;var C=!!(1-c[h++]);s=Math.cos(w)*S+y,l=Math.sin(w)*b+x,h<=1&&(a=s,o=l);var M=(f-y)*b/S+y;g=Nxe(y,x,b,w,w+T,C,M,d,_a),n=Math.cos(w+T)*S+y,i=Math.sin(w+T)*b+x;break;case mu.R:a=n=c[h++],o=i=c[h++];var k=c[h++],I=c[h++];g=E8(a,o,k,I,f,d,_a);break;case mu.Z:g=W1(n,i,a,o,f,d,_a,!0),n=a,i=o;break}g<u&&(u=g,r.set(_a[0],_a[1]))}return u}var Aa=new et,nr=new et,Ar=new et,co=new et,oo=new et;function Ez(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||Lxe,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),f=c&&Rd([],c),d=t.get("length2")||0;u&&Ar.copy(u);for(var h=0;h<o.length;h++){var v=o[h];Oxe(v,0,s,Aa,co),et.scaleAndAdd(nr,Aa,co,d),nr.transform(f);var g=e.getBoundingRect(),y=u?u.distance(nr):e instanceof vt?Bxe(nr,e.path,Ar):zxe(nr,g,Ar);y<l&&(l=y,nr.transform(c),Ar.transform(c),Ar.toArray(a[0]),nr.toArray(a[1]),Aa.toArray(a[2]))}L8(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var j1=[],En=new et;function L8(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Aa.fromArray(e[0]),nr.fromArray(e[1]),Ar.fromArray(e[2]),et.sub(co,Aa,nr),et.sub(oo,Ar,nr);var r=co.len(),n=oo.len();if(!(r<.001||n<.001)){co.scale(1/r),oo.scale(1/n);var i=co.dot(oo),a=Math.cos(t);if(a<i){var o=W1(nr.x,nr.y,Ar.x,Ar.y,Aa.x,Aa.y,j1,!1);En.fromArray(j1),En.scaleAndAdd(oo,o/Math.tan(Math.PI-t));var s=Ar.x!==nr.x?(En.x-nr.x)/(Ar.x-nr.x):(En.y-nr.y)/(Ar.y-nr.y);if(isNaN(s))return;s<0?et.copy(En,nr):s>1&&et.copy(En,Ar),En.toArray(e[1])}}}}function Fxe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Aa.fromArray(e[0]),nr.fromArray(e[1]),Ar.fromArray(e[2]),et.sub(co,nr,Aa),et.sub(oo,Ar,nr);var n=co.len(),i=oo.len();if(!(n<.001||i<.001)){co.scale(1/n),oo.scale(1/i);var a=co.dot(t),o=Math.cos(r);if(a<o){var s=W1(nr.x,nr.y,Ar.x,Ar.y,Aa.x,Aa.y,j1,!1);En.fromArray(j1);var l=Math.PI/2,u=Math.acos(oo.dot(t)),c=l+u-r;if(c>=l)et.copy(En,Ar);else{En.scaleAndAdd(oo,s/Math.tan(Math.PI/2-c));var f=Ar.x!==nr.x?(En.x-nr.x)/(Ar.x-nr.x):(En.y-nr.y)/(Ar.y-nr.y);if(isNaN(f))return;f<0?et.copy(En,nr):f>1&&et.copy(En,Ar)}En.toArray(e[1])}}}}function gC(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function Vxe(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=tl(n[0],n[1]),a=tl(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=E0([],n[1],n[0],o/i),l=E0([],n[1],n[2],o/a),u=E0([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function xI(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<Gv.length;l++){var u=Gv[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:Qe(i.states[u]&&i.states[u].ignore,s);if(h||!Qe(d,o)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0),n&&gC(n,!0,u,c);continue}n||(n=new Gn,e.setTextGuideLine(n),!f&&(s||!o)&&gC(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),gC(n,!1,u,c)}}if(n){Ve(n.style,r),n.style.fill=null;var g=a.get("showAbove"),y=e.textGuideLineConfig=e.textGuideLineConfig||{};y.showAbove=g||!1,n.buildPath=Vxe}}function SI(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Bn.length;n++){var i=Bn[n];r[i]=e.getModel([i,t])}return r}function O8(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new k1(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function N8(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(k,I){return k.rect[t]-I.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=h[t]+h[r]}c>0&&a&&T(-c/o,0,o);var g=e[0],y=e[o-1],x,S;b(),x<0&&C(-x,.8),S<0&&C(S,.8),b(),w(x,S,1),w(S,x,-1),b(),x<0&&M(-x),S<0&&M(S);function b(){x=g.rect[t]-n,S=i-y.rect[t]-y.rect[r]}function w(k,I,P){if(k<0){var R=Math.min(I,-k);if(R>0){T(R*P,0,o);var L=R+k;L<0&&C(-L*P,1)}else C(-k*P,1)}}function T(k,I,P){k!==0&&(u=!0);for(var R=I;R<P;R++){var L=e[R],O=L.rect;O[t]+=k,L.label[t]+=k}}function C(k,I){for(var P=[],R=0,L=1;L<o;L++){var O=e[L-1].rect,N=Math.max(e[L].rect[t]-O[t]-O[r],0);P.push(N),R+=N}if(R){var B=Math.min(Math.abs(k)/R,I);if(k>0)for(var L=0;L<o-1;L++){var G=P[L]*B;T(G,0,L+1)}else for(var L=o-1;L>0;L--){var G=P[L-1]*B;T(-G,L,o)}}}function M(k){var I=k<0?-1:1;k=Math.abs(k);for(var P=Math.ceil(k/(o-1)),R=0;R<o-1;R++)if(I>0?T(P,0,R+1):T(-P,o-R-1,o),k-=P,k<=0)return}return u}function $xe(e,t,r,n){return N8(e,"x","width",t,r,n)}function z8(e,t,r,n){return N8(e,"y","height",t,r,n)}function B8(e){var t=[];e.sort(function(g,y){return y.priority-g.priority});var r=new rt(0,0,0,0);function n(g){if(!g.ignore){var y=g.ensureState("emphasis");y.ignore==null&&(y.ignore=!1)}g.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=a.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(r.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new k1(v.localRect,v.transform)),f||(f=new k1(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function Gxe(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function Hxe(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:Gxe(n&&n.shape.points)}}var Lz=["align","verticalAlign","width","height","fontSize"],kn=new Xo,mC=Tt(),Wxe=Tt();function r0(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var n0=["x","y","rotation"],jxe=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();rt.applyTransform(c,c,u),u?kn.setLocalTransform(u):(kn.x=kn.y=kn.rotation=kn.originX=kn.originY=0,kn.scaleX=kn.scaleY=1),kn.rotation=bi(kn.rotation);var f=i.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();rt.applyTransform(d,d,h)}var v=d&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:v,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:v&&v.ignore,x:kn.x,y:kn.y,scaleX:kn.scaleX,scaleY:kn.scaleY,rotation:kn.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Be(i)||St(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=Ze(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(b,w){return function(){Ez(b,w)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Be(o.layoutOption)?c=o.layoutOption(Hxe(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=xe(c.x,r),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=xe(c.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var v=mC(s);v.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<Lz.length;g++){var y=Lz[g];s.setStyle(y,c[y]!=null?c[y]:u.style[y])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var x=o.seriesModel;if(o.dataIndex!=null){var S=o.seriesModel.getData(o.dataType);x=S.getItemModel(o.dataIndex)}s.on("drag",i(l,x.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=O8(this._labelList),a=Wt(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Wt(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});$xe(a,0,r),z8(o,0,n);var s=Wt(i,function(l){return l.layoutOption.hideOverlap});B8(s)},e.prototype.processLabelsOverall=function(){var t=this;V(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=mC(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=Ze(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");xI(t,SI(s),l),Ez(t,f)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Kf(t))){var a=mC(n),o=a.oldLayout,s=Ze(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var d=t.prevStates;d&&(ft(d,"select")>=0&&n.attr(a.oldLayoutSelect),ft(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Et(n,u,r,l)}else if(n.attr(u),!zd(n).valueAnimation){var f=Qe(n.style.opacity,1);n.style.opacity=0,lr(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};r0(h,u,n0),r0(h,n.states.select,n0)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};r0(v,u,n0),r0(v,n.states.emphasis,n0)}PH(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=Wxe(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Et(i,{shape:g},r)):(i.setShape(g),i.style.strokePercent=0,lr(i,{style:{strokePercent:1}},r)),a.oldLayout=g}},e}(),yC=Tt();function Uxe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=yC(r).labelManager;i||(i=yC(r).labelManager=new jxe),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=yC(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var xC=Math.sin,SC=Math.cos,F8=Math.PI,yu=Math.PI*2,Yxe=180/F8,V8=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=ol(f-yu)||(c?u>=yu:-u>=yu),h=u>0?u%yu:u%yu+yu,v=!1;d?v=!0:ol(f)?v=!1:v=h>=F8==!!c;var g=t+n*SC(o),y=r+i*xC(o);this._start&&this._add("M",g,y);var x=Math.round(a*Yxe);if(d){var S=1/this._p,b=(c?1:-1)*(yu-S);this._add("A",n,i,x,1,+c,t+n*SC(o+b),r+i*xC(o+b)),S>.01&&this._add("A",n,i,x,0,+c,g,y)}else{var w=t+n*SC(s),T=r+i*xC(s);this._add("A",n,i,x,+v,+c,w,T)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),bI="none",qxe=Math.round;function Xxe(e){var t=e.fill;return t!=null&&t!==bI}function Zxe(e){var t=e.stroke;return t!=null&&t!==bI}var hA=["lineCap","miterLimit","lineJoin"],Kxe=de(hA,function(e){return"stroke-"+e.toLowerCase()});function Qxe(e,t,r,n){var i=t.opacity==null?1:t.opacity;if(r instanceof Jr){e("opacity",i);return}if(Xxe(t)){var a=Fv(t.fill);e("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*i:a.opacity*i;o<1&&e("fill-opacity",o)}else e("fill",bI);if(Zxe(t)){var s=Fv(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,f=t.strokeFirst;if(u!==1&&e("stroke-width",u),f&&e("paint-order",f?"stroke":"fill"),c<1&&e("stroke-opacity",c),t.lineDash){var d=sI(r),h=d[0],v=d[1];h&&(v=qxe(v||0),e("stroke-dasharray",h.join(",")),(v||n)&&e("stroke-dashoffset",v))}for(var g=0;g<hA.length;g++){var y=hA[g];if(t[y]!==A1[y]){var x=t[y]||A1[y];x&&e(Kxe[g],x)}}}}var $8="http://www.w3.org/2000/svg",G8="http://www.w3.org/1999/xlink",Jxe="http://www.w3.org/2000/xmlns/",eSe="http://www.w3.org/XML/1998/namespace",Oz="ecmeta_";function H8(e){return document.createElementNS($8,e)}function Wr(e,t,r,n,i){return{tag:e,attrs:r||{},children:n,text:i,key:t}}function tSe(e,t){var r=[];if(t)for(var n in t){var i=t[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+e+" "+r.join(" ")+">"}function rSe(e){return"</"+e+">"}function _I(e,t){t=t||{};var r=t.newline?`
|
190
|
+
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return tSe(o,s)+(o!=="style"?Jn(l):l||"")+(a?""+r+de(a,function(u){return n(u)}).join(r)+r:"")+rSe(o)}return n(e)}function nSe(e,t,r){r=r||{};var n=r.newline?`
|
191
|
+
`:"",i=" {"+n,a=n+"}",o=de(St(e),function(l){return l+i+de(St(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=de(St(t),function(l){return"@keyframes "+l+i+de(St(t[l]),function(u){return u+i+de(St(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function pA(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Nz(e,t,r,n){return Wr("svg","root",{width:e,height:t,xmlns:$8,"xmlns:xlink":G8,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var iSe=0;function W8(){return iSe++}var zz={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Tu="transform-origin";function aSe(e,t,r){var n=oe({},e.shape);oe(n,t),e.buildPath(r,n);var i=new V8;return i.reset(AG(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function oSe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Tu]=r+"px "+n+"px")}var sSe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function j8(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function lSe(e,t,r){var n=e.shape.paths,i={},a,o;if(V(n,function(l){var u=pA(r.zrId);u.animation=!0,MS(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=St(c),h=d.length;if(h){o=d[h-1];var v=c[o];for(var g in v){var y=v[g];i[g]=i[g]||{d:""},i[g].d+=y.d||""}for(var x in f){var S=f[x].animation;S.indexOf(o)>=0&&(a=S)}}}),!!a){t.d=!1;var s=j8(i,r);return a.replace(o,s)}}function Bz(e){return _e(e)?zz[e]?"cubic-bezier("+zz[e]+")":Ak(e)?e:"":""}function MS(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof $k){var s=lSe(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],d=Bz(c.getClip().easing),h=c.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var v=f.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(c)}function g(S){var b=S[1],w=b.length,T={},C={},M={},k="animation-timing-function";function I(ae,he,ve){for(var fe=ae.getTracks(),ge=ae.getMaxTime(),De=0;De<fe.length;De++){var Ie=fe[De];if(Ie.needsAnimate()){var $e=Ie.keyframes,dt=Ie.propName;if(ve&&(dt=ve(dt)),dt)for(var ct=0;ct<$e.length;ct++){var bt=$e[ct],At=Math.round(bt.time/ge*100)+"%",_t=Bz(bt.easing),it=bt.rawValue;(_e(it)||Dt(it))&&(he[At]=he[At]||{},he[At][dt]=bt.rawValue,_t&&(he[At][k]=_t))}}}}for(var P=0;P<w;P++){var R=b[P],L=R.targetName;L?L==="shape"&&I(R,C):!n&&I(R,T)}for(var O in T){var N={};DG(N,e),oe(N,T[O]);var B=MG(N),G=T[O][k];M[O]=B?{transform:B}:{},oSe(M[O],N),G&&(M[O][k]=G)}var q,H=!0;for(var O in C){M[O]=M[O]||{};var X=!q,G=C[O][k];X&&(q=new Mo);var F=q.len();q.reset(),M[O].d=aSe(e,C[O],q);var Y=q.len();if(!X&&F!==Y){H=!1;break}G&&(M[O][k]=G)}if(!H)for(var O in M)delete M[O].d;if(!n)for(var P=0;P<w;P++){var R=b[P],L=R.targetName;L==="style"&&I(R,M,function(fe){return sSe[fe]})}for(var Z=St(M),j=!0,re,P=1;P<Z.length;P++){var ce=Z[P-1],te=Z[P];if(M[ce][Tu]!==M[te][Tu]){j=!1;break}re=M[ce][Tu]}if(j&&re){for(var O in M)M[O][Tu]&&delete M[O][Tu];t[Tu]=re}if(Wt(Z,function(ae){return St(M[ae]).length>0}).length){var pe=j8(M,r);return pe+" "+S[0]+" both"}}for(var y in l){var s=g(l[y]);s&&o.push(s)}if(o.length){var x=r.zrId+"-cls-"+W8();r.cssNodes["."+x]={animation:o.join(",")},t.class=x}}function uSe(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};Fz(n,t,r)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(a=T2(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),Fz(n,t,r)}}function Fz(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+W8(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var Qv=Math.round;function U8(e){return e&&_e(e.src)}function Y8(e){return e&&Be(e.toDataURL)}function wI(e,t,r,n){Qxe(function(i,a){var o=i==="fill"||i==="stroke";o&&TG(a)?X8(t,e,i,n):o&&Mk(a)?Z8(r,e,i,n):o&&a==="none"?e[i]="transparent":e[i]=a},t,r,!1),gSe(r,e,n)}function CI(e,t){var r=ave(t);r&&(r.each(function(n,i){n!=null&&(e[(Oz+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[Oz+"silent"]="true"))}function Vz(e){return ol(e[0]-1)&&ol(e[1])&&ol(e[2])&&ol(e[3]-1)}function cSe(e){return ol(e[4])&&ol(e[5])}function TI(e,t,r){if(t&&!(cSe(t)&&Vz(t))){var n=1e4;e.transform=Vz(t)?"translate("+Qv(t[4]*n)/n+" "+Qv(t[5]*n)/n+")":kpe(t)}}function $z(e,t,r){for(var n=e.points,i=[],a=0;a<n.length;a++)i.push(Qv(n[a][0]*r)/r),i.push(Qv(n[a][1]*r)/r);t.points=i.join(" ")}function Gz(e){return!e.smooth}function fSe(e){var t=de(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<t.length;a++){var o=t[a],s=r[o[0]];s!=null&&(n[o[1]]=Qv(s*i)/i)}}}var dSe={circle:[fSe(["cx","cy","r"])],polyline:[$z,Gz],polygon:[$z,Gz]};function hSe(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function q8(e,t){var r=e.style,n=e.shape,i=dSe[e.type],a={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&AG(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&hSe(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);i[0](n,a,c)}else{var f=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;f&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var h=d.getVersion(),v=e,g=v.__svgPathBuilder;(v.__svgPathVersion!==h||!g||l!==v.__svgPathStrokePercent)&&(g||(g=v.__svgPathBuilder=new V8),g.reset(u),d.rebuildPath(g,l),g.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),a.d=g.getStr()}return TI(a,e.transform),wI(a,r,e,t),CI(a,e),t.animation&&MS(e,a,t),t.emphasis&&uSe(e,a,t),Wr(s,e.id+"",a)}function pSe(e,t){var r=e.style,n=r.image;if(n&&!_e(n)&&(U8(n)?n=n.src:Y8(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),TI(l,e.transform),wI(l,r,e,t),CI(l,e),t.animation&&MS(e,l,t),Wr("image",e.id+"",l)}}function vSe(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||ml,a=r.x||0,o=Ppe(r.y||0,Jx(i),r.textBaseline),s=Ipe[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(nH(r)){var u="",c=r.fontStyle,f=rH(r.fontSize);if(!parseFloat(f))return;var d=r.fontFamily||rG,h=r.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),TI(l,e.transform),wI(l,r,e,t),CI(l,e),t.animation&&MS(e,l,t),Wr("text",e.id+"",l,void 0,n)}}function Hz(e,t){if(e instanceof vt)return q8(e,t);if(e instanceof Jr)return pSe(e,t);if(e instanceof gd)return vSe(e,t)}function gSe(e,t,r){var n=e.style;if(Dpe(n)){var i=Rpe(e),a=r.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,f=n.shadowOffsetY||0,d=n.shadowBlur,h=Fv(n.shadowColor),v=h.opacity,g=h.color,y=d/2/l,x=d/2/u,S=y+" "+x;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Wr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Wr("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:S,"flood-color":g,"flood-opacity":v})]),a[i]=o}t.filter=Qx(o)}}function X8(e,t,r,n){var i=e[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(wG(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(CG(i))a="radialGradient",o.cx=Qe(i.x,.5),o.cy=Qe(i.y,.5),o.r=Qe(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=A2(s[u].offset)*100+"%",d=s[u].color,h=Fv(d),v=h.color,g=h.opacity,y={offset:f};y["stop-color"]=v,g<1&&(y["stop-opacity"]=g),l.push(Wr("stop",u+"",y))}var x=Wr(a,"",o,l),S=_I(x),b=n.gradientCache,w=b[S];w||(w=n.zrId+"-g"+n.gradientIdx++,b[S]=w,o.id=w,n.defs[w]=Wr(a,w,o,l)),t[r]=Qx(w)}function Z8(e,t,r,n){var i=e.style[r],a=e.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(_G(i)){var d=i.imageWidth,h=i.imageHeight,v=void 0,g=i.image;if(_e(g)?v=g:U8(g)?v=g.src:Y8(g)&&(v=g.toDataURL()),typeof Image>"u"){var y="Image width/height must been given explictly in svg-ssr renderer.";zn(d,y),zn(h,y)}else if(d==null||h==null){var x=function(P,R){if(P){var L=P.elm,O=d||R.width,N=h||R.height;P.tag==="pattern"&&(u?(N=1,O/=a.width):c&&(O=1,N/=a.height)),P.attrs.width=O,P.attrs.height=N,L&&(L.setAttribute("width",O),L.setAttribute("height",N))}},S=Ek(v,null,e,function(P){l||x(C,P),x(f,P)});S&&S.width&&S.height&&(d=d||S.width,h=h||S.height)}f=Wr("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=We(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var b,w;l?b=w=1:u?(w=1,b=o.width/a.width):c?(b=1,w=o.height/a.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),w!=null&&!isNaN(w)&&(o.height=w);var T=MG(i);T&&(o.patternTransform=T);var C=Wr("pattern","",o,[f]),M=_I(C),k=n.patternCache,I=k[M];I||(I=n.zrId+"-p"+n.patternIdx++,k[M]=I,o.id=I,C=n.defs[I]=Wr("pattern",I,o,[f])),t[r]=Qx(I)}}function mSe(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=Wr("clipPath",a,o,[q8(e,r)])}t["clip-path"]=Qx(a)}function Wz(e){return document.createTextNode(e)}function Lu(e,t,r){e.insertBefore(t,r)}function jz(e,t){e.removeChild(t)}function Uz(e,t){e.appendChild(t)}function K8(e){return e.parentNode}function Q8(e){return e.nextSibling}function bC(e,t){e.textContent=t}var Yz=58,ySe=120,xSe=Wr("","");function vA(e){return e===void 0}function eo(e){return e!==void 0}function SSe(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function Vp(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Jv(e){var t,r=e.children,n=e.tag;if(eo(n)){var i=e.elm=H8(n);if(AI(xSe,e),ue(r))for(t=0;t<r.length;++t){var a=r[t];a!=null&&Uz(i,Jv(a))}else eo(e.text)&&!Ge(e.text)&&Uz(i,Wz(e.text))}else e.elm=Wz(e.text);return e.elm}function J8(e,t,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&Lu(e,Jv(a),t)}}function U1(e,t,r,n){for(;r<=n;++r){var i=t[r];if(i!=null)if(eo(i.tag)){var a=K8(i.elm);jz(a,i.elm)}else jz(e,i.elm)}}function AI(e,t){var r,n=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==ySe?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(Jxe,r,o):r.charCodeAt(3)===Yz?n.setAttributeNS(eSe,r,o):r.charCodeAt(5)===Yz?n.setAttributeNS(G8,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function bSe(e,t,r){for(var n=0,i=0,a=t.length-1,o=t[0],s=t[a],l=r.length-1,u=r[0],c=r[l],f,d,h,v;n<=a&&i<=l;)o==null?o=t[++n]:s==null?s=t[--a]:u==null?u=r[++i]:c==null?c=r[--l]:Vp(o,u)?(Lf(o,u),o=t[++n],u=r[++i]):Vp(s,c)?(Lf(s,c),s=t[--a],c=r[--l]):Vp(o,c)?(Lf(o,c),Lu(e,o.elm,Q8(s.elm)),o=t[++n],c=r[--l]):Vp(s,u)?(Lf(s,u),Lu(e,s.elm,o.elm),s=t[--a],u=r[++i]):(vA(f)&&(f=SSe(t,n,a)),d=f[u.key],vA(d)?Lu(e,Jv(u),o.elm):(h=t[d],h.tag!==u.tag?Lu(e,Jv(u),o.elm):(Lf(h,u),t[d]=void 0,Lu(e,h.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(v=r[l+1]==null?null:r[l+1].elm,J8(e,v,r,i,l)):U1(e,t,n,a))}function Lf(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(AI(e,t),vA(t.text)?eo(n)&&eo(i)?n!==i&&bSe(r,n,i):eo(i)?(eo(e.text)&&bC(r,""),J8(r,null,i,0,i.length-1)):eo(n)?U1(r,n,0,n.length-1):eo(e.text)&&bC(r,""):e.text!==t.text&&(eo(n)&&U1(r,n,0,n.length-1),bC(r,t.text)))}function _Se(e,t){if(Vp(e,t))Lf(e,t);else{var r=e.elm,n=K8(r);Jv(t),n!==null&&(Lu(n,t.elm,Q8(r)),U1(n,[e],0,0))}return t}var wSe=0,CSe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=qz(),this.configLayer=qz(),this.storage=r,this._opts=n=oe({},n),this.root=t,this._id="zr"+wSe++,this._oldVNode=Nz(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=H8("svg");AI(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",_Se(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return Hz(t,pA(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=pA(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis;var o=[],s=this._bgVNode=TSe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=Wr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=de(St(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(Wr("defs","defs",{},u)),t.animation){var c=nSe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=Wr("style","stl",{},[],c);o.push(f)}}return Nz(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},_I(this.renderToVNode({animation:Qe(t.cssAnimation,!0),emphasis:Qe(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Qe(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c<i;c++){var f=t[c];if(!f.invisible){var d=f.__clipPaths,h=d&&d.length||0,v=l&&l.length||0,g=void 0;for(g=Math.max(h-1,v-1);g>=0&&!(d&&l&&d[g]===l[g]);g--);for(var y=v-1;y>g;y--)o--,s=a[o-1];for(var x=g+1;x<h;x++){var S={};mSe(d[x],S,r);var b=Wr("g","clip-g-"+u++,S,[]);(s?s.children:n).push(b),a[o++]=b,s=b}l=d;var w=Hz(f,r);w&&(s?s.children:n).push(w)}}},e.prototype.resize=function(t,r){var n=this._opts,i=this.root,a=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),i&&a&&(a.style.display="none",t=Hf(i,0,n),r=Hf(i,1,n),a.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,a){var o=a.style;o.width=t+"px",o.height=r+"px"}if(Mk(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",r))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=this.renderToString(),n="data:image/svg+xml;";return t?(r=Lpe(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e}();function qz(e){return function(){}}function TSe(e,t,r,n){var i;if(r&&r!=="none")if(i=Wr("rect","bg",{width:e,height:t,x:"0",y:"0"}),TG(r))X8({fill:r},i.attrs,"fill",n);else if(Mk(r))Z8({style:{fill:r},dirty:Mr,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",n);else{var a=Fv(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function ASe(e){e.registerPainter("svg",CSe)}function Xz(e,t,r){var n=yl.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var _C=function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||C1,typeof r=="string"?o=Xz(r,n,i):Ge(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(lG(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return 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 r=this.dpr;this.domBack=Xz("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new rt(0,0,0,0);function c(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var b=new rt(0,0,0,0);b.copy(S),o.push(b)}else{for(var w=!1,T=1/0,C=0,M=0;M<o.length;++M){var k=o[M];if(k.intersect(S)){var I=new rt(0,0,0,0);I.copy(k),I.union(S),o[M]=I,w=!0;break}else if(l){u.copy(S),u.union(k);var P=S.width*S.height,R=k.width*k.height,L=u.width*u.height,O=L-P-R;O<T&&(T=O,C=M)}}if(l&&(o[C].union(S),w=!0),!w){var b=new rt(0,0,0,0);b.copy(S),o.push(b)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var h=d.shouldBePainted(i,a,!0,!0),v=d.__isRendered&&(d.__dirty&xi||!h)?d.getPrevPaintRect():null;v&&c(v);var g=h&&(d.__dirty&xi||!d.__isRendered)?d.getPaintRect():null;g&&c(g)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],h=d&&d.shouldBePainted(i,a,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var y;do{y=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var x=f+1;x<o.length;)o[f].intersect(o[x])?(y=!0,o[f].union(o[x]),o.splice(x,1)):x++;f++}}while(y);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/f,l/f));var h=this.domBack;function v(g,y,x,S){if(o.clearRect(g,y,x,S),n&&n!=="transparent"){var b=void 0;if(Xx(n)){var w=n.global||n.__width===x&&n.__height===S;b=w&&n.__canvasGradient||iA(o,n,{x:0,y:0,width:x,height:S}),n.__canvasGradient=b,n.__width=x,n.__height=S}else Ghe(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,b=aA(o,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=b||n,o.fillRect(g,y,x,S),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,g,y,x,S),o.restore())}!i||u?v(0,0,s,l):i.length&&V(i,function(g){v(g.x*f,g.y*f,g.width*f,g.height*f)})},t}(oa),Zz=1e5,xu=314159,i0=.01,MSe=.001;function kSe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function ISe(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var PSe=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=oe({},n||{}),this.dpr=n.devicePixelRatio||C1,this._singleCanvas=a,this.root=t;var o=t.style;o&&(lG(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=t,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new _C(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[xu]=h,h.zlevel=xu,s.push(xu),this._domRoot=t}else{this._width=Hf(t,0,n),this._height=Hf(t,1,n);var u=this._domRoot=ISe(this._width,this._height);t.appendChild(u)}}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 t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Zz)),a||(a=n.ctx,a.save()),ju(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Zz)},e.prototype.paintOne=function(t,r){BW(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;y1(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(xu).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var c=!0,f=!1,d=function(g){var y=a[g],x=y.ctx,S=o&&y.createRepaintRects(t,r,h._width,h._height),b=n?y.__startIndex:y.__drawIndex,w=!n&&y.incremental&&Date.now,T=w&&Date.now(),C=y.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(y.__startIndex===y.__endIndex)y.clear(!1,C,S);else if(b===y.__startIndex){var M=t[b];(!M.incremental||!M.notClear||n)&&y.clear(!1,C,S)}b===-1&&(console.error("For some unknown reason. drawIndex is -1"),b=y.__startIndex);var k,I=function(O){var N={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(k=b;k<y.__endIndex;k++){var B=t[k];if(B.__inHover&&(f=!0),i._doPaintEl(B,y,o,O,N,k===y.__endIndex-1),w){var G=Date.now()-T;if(G>15)break}}N.prevElClipPaths&&x.restore()};if(S)if(S.length===0)k=y.__endIndex;else for(var P=h.dpr,R=0;R<S.length;++R){var L=S[R];x.save(),x.beginPath(),x.rect(L.x*P,L.y*P,L.width*P,L.height*P),x.clip(),I(L),x.restore()}else x.save(),I(),x.restore();y.__drawIndex=k,y.__drawIndex<y.__endIndex&&(c=!1)},h=this,v=0;v<a.length;v++)d(v);return yt.wxa&&V(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(ju(s,t,a,o),t.setPrevPaintRect(l))}else ju(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=xu);var n=this._layers[t];return n||(n=new _C("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?tt(n,this._layerConfig[t],!0):this._layerConfig[t-i0]&&tt(n,this._layerConfig[t-i0],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&kSe(r)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function r(f){a&&(a.__endIndex!==f&&(a.__dirty=!0),a.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+MSe,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?i0:0),this._needsManuallyCompositing),c.__builtin__||xk("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&xi&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,V(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?tt(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+i0){var o=this._layers[a];tt(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(ft(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=Hf(a,0,i),r=Hf(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(xu).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[xu].dom;var r=new _C("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,i,a):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];ju(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function DSe(e){e.registerPainter("canvas",PSe)}var RSe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return vs(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new qe,i=Er("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Er(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},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}(or);function bd(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=yd(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(yd(e,t,r[o]));return a.join(" ")}}function ej(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!ue(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var Fg=function(e){J(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=Er(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=ESe,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ss(this.childAt(0))},t.prototype.downplay=function(){ls(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):Et(d,h,s,n),Oa(d)}if(this._updateCommon(r,n,l,i,a),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,lr(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,v,g,y,x;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,h=a.blurScope,g=a.labelStatesModels,y=a.hoverScale,x=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var S=a&&a.itemModel?a.itemModel:r.getItemModel(n),b=S.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=S.getModel(["select","itemStyle"]).getItemStyle(),c=S.getModel(["blur","itemStyle"]).getItemStyle(),d=b.get("focus"),h=b.get("blurScope"),v=b.get("disabled"),g=Ur(S),y=b.getShallow("scale"),x=S.getShallow("cursor")}var w=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var T=Tc(r.getItemVisual(n,"symbolOffset"),i);T&&(s.x=T[0],s.y=T[1]),x&&s.attr("cursor",x);var C=r.getItemVisual(n,"style"),M=C.fill;if(s instanceof Jr){var k=s.style;s.useStyle(oe({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},C))}else s.__isEmptyBrush?s.useStyle(oe({},C)):s.useStyle(C),s.style.decal=null,s.setColor(M,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var I=r.getItemVisual(n,"liftZ"),P=this._z2;I!=null?P==null&&(this._z2=s.z2,s.z2+=I):P!=null&&(s.z2=P,this._z2=null);var R=o&&o.useNameLabel;fn(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:M,defaultOpacity:C.opacity});function L(B){return R?r.getName(B):bd(r,B)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var O=s.ensureState("emphasis");O.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var N=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;O.scaleX=this._sizeX*N,O.scaleY=this._sizeY*N,this.setSymbolScale(1),mr(this,d,h,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Ze(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Sl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Sl(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Wd(r.getItemVisual(n,"symbolSize"))},t}(qe);function ESe(e,t){this.parent.drift(e,t)}function wC(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function Kz(e){return e!=null&&!Ge(e)&&(e={isIgnore:e}),e||{}}function Qz(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Ur(t),cursorStyle:t.get("cursor")}}var Vg=function(){function e(t){this.group=new qe,this._SymbolCtor=t||Fg}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=Kz(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Qz(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var d=c(f);if(wC(t,d,f,r)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=a.getItemGraphicEl(d),v=c(f);if(!wC(t,v,f,r)){n.remove(h);return}var g=t.getItemVisual(f,"symbol")||"circle",y=h&&h.getSymbolType&&h.getSymbolType();if(!h||y&&y!==g)n.remove(h),h=new o(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var x={x:v[0],y:v[1]};s?h.attr(x):Et(h,x,i)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Qz(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=Kz(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(wC(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Pl(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},e}();function tj(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=LSe(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=de(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return _l(t,f[0])&&(d=!0,f[0]=h),_l(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function LSe(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Dt(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function rj(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function OSe(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function NSe(e,t,r,n,i,a,o,s){for(var l=OSe(e,t),u=[],c=[],f=[],d=[],h=[],v=[],g=[],y=tj(i,t,o),x=e.getLayout("points")||[],S=t.getLayout("points")||[],b=0;b<l.length;b++){var w=l[b],T=!0,C=void 0,M=void 0;switch(w.cmd){case"=":C=w.idx*2,M=w.idx1*2;var k=x[C],I=x[C+1],P=S[M],R=S[M+1];(isNaN(k)||isNaN(I))&&(k=P,I=R),u.push(k,I),c.push(P,R),f.push(r[C],r[C+1]),d.push(n[M],n[M+1]),g.push(t.getRawIndex(w.idx1));break;case"+":var L=w.idx,O=y.dataDimsForPoint,N=i.dataToPoint([t.get(O[0],L),t.get(O[1],L)]);M=L*2,u.push(N[0],N[1]),c.push(S[M],S[M+1]);var B=rj(y,i,t,L);f.push(B[0],B[1]),d.push(n[M],n[M+1]),g.push(t.getRawIndex(L));break;case"-":T=!1}T&&(h.push(w),v.push(v.length))}v.sort(function(ce,te){return g[ce]-g[te]});for(var G=u.length,q=uo(G),H=uo(G),X=uo(G),F=uo(G),Y=[],b=0;b<v.length;b++){var Z=v[b],j=b*2,re=Z*2;q[j]=u[re],q[j+1]=u[re+1],H[j]=c[re],H[j+1]=c[re+1],X[j]=f[re],X[j+1]=f[re+1],F[j]=d[re],F[j+1]=d[re+1],Y[b]=h[Z]}return{current:q,next:H,stackedOnCurrent:X,stackedOnNext:F,status:Y}}var js=Math.min,Us=Math.max;function tc(e,t){return isNaN(e)||isNaN(t)}function gA(e,t,r,n,i,a,o,s,l){for(var u,c,f,d,h,v,g=r,y=0;y<n;y++){var x=t[g*2],S=t[g*2+1];if(g>=i||g<0)break;if(tc(x,S)){if(l){g+=a;continue}break}if(g===r)e[a>0?"moveTo":"lineTo"](x,S),f=x,d=S;else{var b=x-u,w=S-c;if(b*b+w*w<.5){g+=a;continue}if(o>0){for(var T=g+a,C=t[T*2],M=t[T*2+1];C===x&&M===S&&y<n;)y++,T+=a,g+=a,C=t[T*2],M=t[T*2+1],x=t[g*2],S=t[g*2+1],b=x-u,w=S-c;var k=y+1;if(l)for(;tc(C,M)&&k<n;)k++,T+=a,C=t[T*2],M=t[T*2+1];var I=.5,P=0,R=0,L=void 0,O=void 0;if(k>=n||tc(C,M))h=x,v=S;else{P=C-u,R=M-c;var N=x-u,B=C-x,G=S-c,q=M-S,H=void 0,X=void 0;if(s==="x"){H=Math.abs(N),X=Math.abs(B);var F=P>0?1:-1;h=x-F*H*o,v=S,L=x+F*X*o,O=S}else if(s==="y"){H=Math.abs(G),X=Math.abs(q);var Y=R>0?1:-1;h=x,v=S-Y*H*o,L=x,O=S+Y*X*o}else H=Math.sqrt(N*N+G*G),X=Math.sqrt(B*B+q*q),I=X/(X+H),h=x-P*o*(1-I),v=S-R*o*(1-I),L=x+P*o*I,O=S+R*o*I,L=js(L,Us(C,x)),O=js(O,Us(M,S)),L=Us(L,js(C,x)),O=Us(O,js(M,S)),P=L-x,R=O-S,h=x-P*H/X,v=S-R*H/X,h=js(h,Us(u,x)),v=js(v,Us(c,S)),h=Us(h,js(u,x)),v=Us(v,js(c,S)),P=x-h,R=S-v,L=x+P*X/H,O=S+R*X/H}e.bezierCurveTo(f,d,h,v,x,S),f=L,d=O}else e.lineTo(x,S)}u=x,c=S,g+=a}return y}var nj=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),zSe=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new nj},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&tc(i[o*2-2],i[o*2-1]);o--);for(;a<o&&tc(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=gA(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Mo.CMD,s,l,u=n==="x",c=[],f=0;f<a.length;){var d=a[f++],h=void 0,v=void 0,g=void 0,y=void 0,x=void 0,S=void 0,b=void 0;switch(d){case o.M:s=a[f++],l=a[f++];break;case o.L:if(h=a[f++],v=a[f++],b=u?(r-s)/(h-s):(r-l)/(v-l),b<=1&&b>=0){var w=u?(v-l)*b+l:(h-s)*b+s;return u?[r,w]:[w,r]}s=h,l=v;break;case o.C:h=a[f++],v=a[f++],g=a[f++],y=a[f++],x=a[f++],S=a[f++];var T=u?S1(s,h,g,x,r,c):S1(l,v,y,S,r,c);if(T>0)for(var C=0;C<T;C++){var M=c[C];if(M<=1&&M>=0){var w=u?Gr(l,v,y,S,M):Gr(s,h,g,x,M);return u?[r,w]:[w,r]}}s=x,l=S;break}}},t}(vt),BSe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(nj),ij=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new BSe},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&tc(i[s*2-2],i[s*2-1]);s--);for(;o<s&&tc(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=gA(r,i,o,s,s,1,n.smooth,l,n.connectNulls);gA(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(vt);function aj(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new Ct({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var g=Be(i)?function(y){i(y,f)}:null;lr(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,g)}return f}function oj(e,t,r){var n=e.getArea(),i=br(n.r0,1),a=br(n.r,1),o=new Fn({shape:{cx:br(e.cx,1),cy:br(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,lr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function $g(e,t,r,n,i){if(e){if(e.type==="polar")return oj(e,t,r);if(e.type==="cartesian2d")return aj(e,t,r,n,i)}else return null;return null}function Mc(e,t){return e.type===t}function Jz(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function e3(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function t3(e,t){var r=e3(e),n=r[0],i=r[1],a=e3(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function r3(e){return Dt(e)?e:e?.5:0}function FSe(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=uo(n*2),a=0;a<n;a++){var o=rj(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Ys(e,t,r,n){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&f.push(e[s],e[s+1]);e=f}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],o.push(u[0],u[1]),r){case"end":l[a]=c[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var d=(u[a]+c[a])/2,h=[];l[a]=h[a]=d,l[1-a]=u[1-a],h[1-a]=c[1-a],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[a]=u[a],l[1-a]=c[1-a],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function VSe(e,t){var r=[],n=e.length,i,a;function o(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),g=Mpe(v,[c.color,f.color]);return{coord:d,color:g}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function $Se(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=de(a.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=VSe(u,i==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,g=d[0].coord-v,y=d[h-1].coord+v,x=y-g;if(x<.001)return"transparent";V(d,function(b){b.offset=(b.coord-g)/x}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var S=new Rg(0,0,0,0,d,!0);return S[i]=g,S[i+"2"]=y,S}}}function GSe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&HSe(a,t))){var o=t.mapDimension(a.dim),s={};return V(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function HSe(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Fg.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function WSe(e,t){return isNaN(e)||isNaN(t)}function jSe(e){for(var t=e.length/2;t>0&&WSe(e[t*2-2],e[t*2-1]);t--);return t-1}function n3(e,t){return[e[t*2],e[t*2+1]]}function USe(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+i],!(isNaN(o)||isNaN(e[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function sj(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Bn.length;t++)if(e.get([Bn[t],"endLabel","show"]))return!0;return!1}function CC(e,t,r,n){if(Mc(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=sj(n)?function(h,v){e._endLabelOnDuring(h,v,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=aj(t,r,n,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return oj(t,r,n)}function YSe(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var qSe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new qe,n=new Vg;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),f=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,v=this._symbolDraw,g=this._polyline,y=this._polygon,x=this._lineGroup,S=!n.ssr&&r.get("animation"),b=!c.isEmpty(),w=c.get("origin"),T=tj(o,l,w),C=b&&FSe(o,l,T),M=r.get("showSymbol"),k=r.get("connectNulls"),I=M&&!d&&GSe(r,l,o),P=this._data;P&&P.eachItemGraphicEl(function(te,pe){te.__temp&&(s.remove(te),P.setItemGraphicEl(pe,null))}),M||v.remove(),s.add(x);var R=d?!1:r.get("step"),L;o&&o.getArea&&r.get("clip",!0)&&(L=o.getArea(),L.width!=null?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var O=$Se(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&h.type===o.type&&R===this._step))M&&v.updateData(l,{isIgnore:I,clipShape:L,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),S&&this._initSymbolLabelAnimation(l,o,L),R&&(f=Ys(f,o,R,k),C&&(C=Ys(C,o,R,k))),g=this._newPolyline(f),b?y=this._newPolygon(f,C):y&&(x.remove(y),y=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,pc(O)),x.setClipPath(CC(this,o,!0,r));else{b&&!y?y=this._newPolygon(f,C):y&&!b&&(x.remove(y),y=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,pc(O));var N=x.getClipPath();if(N){var B=CC(this,o,!1,r);lr(N,{shape:B.shape},r)}else x.setClipPath(CC(this,o,!0,r));M&&v.updateData(l,{isIgnore:I,clipShape:L,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),(!Jz(this._stackedOnPoints,C)||!Jz(this._points,f))&&(S?this._doUpdateAnimation(l,C,o,i,R,w,k):(R&&(f=Ys(f,o,R,k),C&&(C=Ys(C,o,R,k))),g.setShape({points:f}),y&&y.setShape({points:f,stackedOnPoints:C})))}var G=r.getModel("emphasis"),q=G.get("focus"),H=G.get("blurScope"),X=G.get("disabled");if(g.useStyle(Ve(u.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),cn(g,r,"lineStyle"),g.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var F=g.getState("emphasis").style;F.lineWidth=+g.style.lineWidth+1}Ze(g).seriesIndex=r.seriesIndex,mr(g,q,H,X);var Y=r3(r.get("smooth")),Z=r.get("smoothMonotone");if(g.setShape({smooth:Y,smoothMonotone:Z,connectNulls:k}),y){var j=l.getCalculationInfo("stackedOnSeries"),re=0;y.useStyle(Ve(c.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(re=r3(j.get("smooth"))),y.setShape({smooth:Y,stackedOnSmooth:re,smoothMonotone:Z,connectNulls:k}),cn(y,r,"areaStyle"),Ze(y).seriesIndex=r.seriesIndex,mr(y,q,H,X)}var ce=function(te){a._changePolyState(te)};l.eachItemGraphicEl(function(te){te&&(te.onHoverStateChange=ce)}),this._polyline.onHoverStateChange=ce,this._data=l,this._coordSys=o,this._stackedOnPoints=C,this._points=f,this._step=R,this._valueOrigin=w,r.get("triggerLineEvent")&&(this.packEventData(r,g),y&&this.packEventData(r,y))},t.prototype.packEventData=function(r,n){Ze(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=fc(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new Fg(o,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Zt.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=fc(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Zt.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;M1(this._polyline,r),n&&M1(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new zSe({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new ij({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");Be(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Be(f)?f(null):f;r.eachItemGraphicEl(function(h,v){var g=h;if(g){var y=[h.x,h.y],x=void 0,S=void 0,b=void 0;if(i)if(o){var w=i,T=n.pointToCoord(y);a?(x=w.startAngle,S=w.endAngle,b=-T[1]/180*Math.PI):(x=w.r0,S=w.r,b=T[0])}else{var C=i;a?(x=C.x,S=C.x+C.width,b=h.x):(x=C.y+C.height,S=C.y,b=h.y)}var M=S===x?0:(b-x)/(S-x);l&&(M=1-M);var k=Be(f)?f(v):c*M+d,I=g.getSymbolPath(),P=I.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:k}),P&&P.animateFrom({style:{opacity:0}},{duration:300,delay:k}),I.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(sj(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new kt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=jSe(l);c>=0&&(fn(s,Ur(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?ej(o,h):bd(o,f)},enableTextSetter:!0},YSe(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,y=l.getBaseAxis(),x=y.isHorizontal(),S=y.inverse,b=n.shape,w=S?x?b.x:b.y+b.height:x?b.x+b.width:b.y,T=(x?g:0)*(S?-1:1),C=(x?0:-g)*(S?-1:1),M=x?"x":"y",k=USe(f,w,M),I=k.range,P=I[1]-I[0],R=void 0;if(P>=1){if(P>1&&!h){var L=n3(f,I[0]);u.attr({x:L[0]+T,y:L[1]+C}),o&&(R=d.getRawValue(I[0]))}else{var L=c.getPointOn(w,M);L&&u.attr({x:L[0]+T,y:L[1]+C});var O=d.getRawValue(I[0]),N=d.getRawValue(I[1]);o&&(R=UG(i,v,O,N,k.t))}a.lastFrameIndex=I[0]}else{var B=r===1||a.lastFrameIndex>0?I[0]:0,L=n3(f,B);o&&(R=d.getRawValue(B)),u.attr({x:L[0]+T,y:L[1]+C})}if(o){var G=zd(u);typeof G.setLabelText=="function"&&G.setLabelText(R)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=NSe(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,g=d.next,y=d.stackedOnNext;if(o&&(h=Ys(d.current,i,o,l),v=Ys(d.stackedOnCurrent,i,o,l),g=Ys(d.next,i,o,l),y=Ys(d.stackedOnNext,i,o,l)),t3(h,g)>3e3||c&&t3(v,y)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:y}));return}u.shape.__points=d.current,u.shape.points=h;var x={shape:{points:g}};d.current!==h&&(x.shape.__points=d.next),u.stopAnimation(),Et(u,x,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),Et(c,{shape:{stackedOnPoints:y}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var S=[],b=d.status,w=0;w<b.length;w++){var T=b[w].cmd;if(T==="="){var C=r.getItemGraphicEl(b[w].idx1);C&&S.push({el:C,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var M=u.shape.__points,k=0;k<S.length;k++){var I=S[k].el,P=S[k].ptIdx*2;I.x=M[P],I.y=M[P+1],I.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Zt);function Gg(e,t){return{seriesType:e,plan:Gd(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(i){var s=de(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");_l(n,s[0])&&(s[0]=u),_l(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var g=h.end-h.start,y=o&&uo(g*l),x=[],S=[],b=h.start,w=0;b<h.end;b++){var T=void 0;if(l===1){var C=c.get(f,b);T=i.dataToPoint(C,null,S)}else x[0]=c.get(f,b),x[1]=c.get(d,b),T=i.dataToPoint(x,null,S);o?(y[w++]=T[0],y[w++]=T[1]):v.setItemLayout(b,T.slice())}o&&v.setLayout("points",y)}}}}}}var XSe={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,r=-1/0,n=0;n<e.length;n++){var i=e[n],a=Math.abs(i);a>t&&(t=a,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},ZSe=function(e){return Math.round(e.length/2)};function lj(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var v=void 0;_e(a)?v=XSe[a]:Be(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,ZSe))}}}}}function KSe(e){e.registerChartView(qSe),e.registerSeriesModel(RSe),e.registerLayout(Gg("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,lj("line"))}var eg=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return vs(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)V(a.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),y=o[h],x=n[h]==="x1"||n[h]==="y1";if(x&&!g&&(y+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[x?1:0]);return}for(var S=void 0,b=void 0,w=1,T=0;T<v.length;T++){var C=v[T].coord,M=T===v.length-1?v[T-1].tickValue+w:v[T].tickValue;if(M===y){b=C;break}else if(M<y)S=C;else if(S!=null&&M>y){b=(C+S)/2;break}T===1&&(w=M-v[0].tickValue)}b==null&&(S?S&&(b=v[v.length-1].coord):b=v[0].coord),s[h]=d.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(or);or.registerClass(eg);var QSe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return vs(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Dl(eg.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(eg),JSe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Y1=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new JSe},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var g=Math.cos(c),y=Math.sin(c),x=Math.cos(f),S=Math.sin(f);v?(r.moveTo(g*o+i,y*o+a),r.arc(g*u+i,y*u+a,l,-Math.PI+c,c,!d)):r.moveTo(g*s+i,y*s+a),r.arc(i,a,s,c,f,!d),r.arc(x*u+i,S*u+a,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(i,a,o,f,c,d)},t}(vt);function ebe(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return T1(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,v=(d+h)/2,g=u.startAngle,y=u.endAngle,x=(g+y)/2,S=r?Math.abs(d-h)/2:0,b=Math.cos,w=Math.sin,T=c+d*b(g),C=f+d*w(g),M="left",k="top";switch(s){case"startArc":T=c+(h-l)*b(x),C=f+(h-l)*w(x),M="center",k="top";break;case"insideStartArc":T=c+(h+l)*b(x),C=f+(h+l)*w(x),M="center",k="bottom";break;case"startAngle":T=c+v*b(g)+a0(g,l+S,!1),C=f+v*w(g)+o0(g,l+S,!1),M="right",k="middle";break;case"insideStartAngle":T=c+v*b(g)+a0(g,-l+S,!1),C=f+v*w(g)+o0(g,-l+S,!1),M="left",k="middle";break;case"middle":T=c+v*b(x),C=f+v*w(x),M="center",k="middle";break;case"endArc":T=c+(d+l)*b(x),C=f+(d+l)*w(x),M="center",k="bottom";break;case"insideEndArc":T=c+(d-l)*b(x),C=f+(d-l)*w(x),M="center",k="top";break;case"endAngle":T=c+v*b(y)+a0(y,l+S,!0),C=f+v*w(y)+o0(y,l+S,!0),M="left",k="middle";break;case"insideEndAngle":T=c+v*b(y)+a0(y,-l+S,!0),C=f+v*w(y)+o0(y,-l+S,!0),M="right",k="middle";break;default:return T1(n,i,a)}return n=n||{},n.x=T,n.y=C,n.align=M,n.verticalAlign=k,n}}function tbe(e,t,r,n){if(Dt(n)){e.setTextConfig({rotation:n});return}else if(ue(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function a0(e,t,r){return t*Math.sin(e)*(r?-1:1)}function o0(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Uu(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;ue(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:de(n,function(a){return La(a,i)})}}var TC=Math.max,AC=Math.min;function rbe(e,t){var r=e.getArea&&e.getArea();if(Mc(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var nbe=function(e){J(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){Pl(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=ibe(r,u);h&&this._enableRealtimeSort(h,s,i);var v=r.get("clip",!0)||h,g=rbe(u,s);o.removeClipPath();var y=r.get("roundCap",!0),x=r.get("showBackground",!0),S=r.getModel("backgroundStyle"),b=S.get("borderRadius")||0,w=[],T=this._backgroundEls,C=a&&a.isInitSort,M=a&&a.type==="changeAxisOrder";function k(R){var L=s0[u.type](s,R),O=fbe(u,f,L);return O.useStyle(S.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",b):O.setShape("cornerRadius",b),w[R]=O,O}s.diff(l).add(function(R){var L=s.getItemModel(R),O=s0[u.type](s,R,L);if(x&&k(R),!(!s.hasValue(R)||!l3[u.type](O))){var N=!1;v&&(N=i3[u.type](g,O));var B=a3[u.type](r,s,R,O,f,d,c.model,!1,y);h&&(B.forceLabelAnimation=!0),u3(B,s,R,L,O,r,f,u.type==="polar"),C?B.attr({shape:O}):h?o3(h,d,B,O,R,f,!1,!1):lr(B,{shape:O},r,R),s.setItemGraphicEl(R,B),o.add(B),B.ignore=N}}).update(function(R,L){var O=s.getItemModel(R),N=s0[u.type](s,R,O);if(x){var B=void 0;T.length===0?B=k(L):(B=T[L],B.useStyle(S.getItemStyle()),u.type==="cartesian2d"?B.setShape("r",b):B.setShape("cornerRadius",b),w[R]=B);var G=s0[u.type](s,R),q=cj(f,G,u);Et(B,{shape:q},d,R)}var H=l.getItemGraphicEl(L);if(!s.hasValue(R)||!l3[u.type](N)){o.remove(H);return}var X=!1;if(v&&(X=i3[u.type](g,N),X&&o.remove(H)),H?Oa(H):H=a3[u.type](r,s,R,N,f,d,c.model,!!H,y),h&&(H.forceLabelAnimation=!0),M){var F=H.getTextContent();if(F){var Y=zd(F);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else u3(H,s,R,O,N,r,f,u.type==="polar");C?H.attr({shape:N}):h?o3(h,d,H,N,R,f,!0,M):Et(H,{shape:N},r,R,null),s.setItemGraphicEl(R,H),H.ignore=X,o.add(H)}).remove(function(R){var L=l.getItemGraphicEl(R);L&&Wv(L,r,R)}).execute();var I=this._backgroundGroup||(this._backgroundGroup=new qe);I.removeAll();for(var P=0;P<w.length;++P)I.add(w[P]);o.add(I),this._backgroundEls=w,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),f3(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),f3(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&$g(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:de(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Wv(a,r,Ze(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Zt),i3={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=TC(t.x,e.x),s=AC(t.x+t.width,i),l=TC(t.y,e.y),u=AC(t.y+t.height,a),c=s<o,f=u<l;return t.x=c&&o>i?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=AC(t.r,e.r),a=TC(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},a3={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Ct({shape:oe({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?Y1:Fn,c=new u({shape:n,z2:1});c.name="item";var f=uj(i);if(c.calculateTextPosition=ebe(f,{isRoundCap:u===Y1}),a){var d=c.shape,h=i?"r":"endAngle",v={};d[h]=i?n.r0:n.startAngle,v[h]=n[h],(s?Et:lr)(c,{shape:v},a)}return c}};function ibe(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function o3(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Et:lr)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?Et:lr)(r,{shape:u},c,i)}function s3(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var abe=["x","y","width","height"],obe=["cx","cy","r","startAngle","endAngle"],l3={cartesian2d:function(e){return!s3(e,abe)},polar:function(e){return!s3(e,obe)}},s0={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?lbe(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function sbe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function uj(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function u3(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=Uu(n.getModel("itemStyle"),c,!0);oe(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",v=Ur(n);fn(e,v,{labelFetcher:a,labelDataIndex:r,defaultText:bd(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=e.getTextContent();if(s&&g){var y=n.get(["label","position"]);e.textConfig.inside=y==="middle"?!0:null,tbe(e,y==="outside"?h:y,uj(o),n.get(["label","rotate"]))}IH(g,v,a.getRawValue(r),function(S){return ej(t,S)});var x=n.getModel(["emphasis"]);mr(e,x.get("focus"),x.get("blurScope"),x.get("disabled")),cn(e,n),sbe(i)&&(e.style.fill="none",e.style.stroke="none",V(e.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function lbe(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var ube=function(){function e(){}return e}(),c3=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new ube},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],r.rect(s[0],s[1],l[0],l[1])},t}(vt);function f3(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new c3({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new c3({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual("style")),Ze(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",d3),f.on("mousemove",d3)),r&&r.push(f)}var d3=aI(function(e){var t=this,r=cbe(t,e.offsetX,e.offsetY);Ze(t).dataIndex=r>=0?r:null},30,!1);function cbe(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[i]=a[d+2],s[n]=a[d+n],s[i]=a[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function cj(e,t,r){if(Mc(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function fbe(e,t,r){var n=e.type==="polar"?Fn:Ct;return new n({shape:cj(t,r,e),silent:!0,z2:0})}function dbe(e){e.registerChartView(nbe),e.registerSeriesModel(QSe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Je(v8,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,g8("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,lj("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var h3=Math.PI*2,l0=Math.PI/180;function fj(e,t){return Fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function dj(e,t){var r=fj(e,t),n=e.get("center"),i=e.get("radius");ue(i)||(i=[0,i]);var a=xe(r.width,t.getWidth()),o=xe(r.height,t.getHeight()),s=Math.min(a,o),l=xe(i[0],s/2),u=xe(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else ue(n)||(n=[n,n]),c=xe(n[0],a)+r.x,f=xe(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function hbe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=fj(n,r),s=dj(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*l0,h=n.get("endAngle"),v=n.get("padAngle")*l0;h=h==="auto"?d-h3:-h*l0;var g=n.get("minAngle")*l0,y=g+v,x=0;i.each(a,function(q){!isNaN(q)&&x++});var S=i.getSum(a),b=Math.PI/(S||x)*2,w=n.get("clockwise"),T=n.get("roseType"),C=n.get("stillShowZeroSum"),M=i.getDataExtent(a);M[0]=0;var k=w?1:-1,I=[d,h],P=k*v/2;Lk(I,!w),d=I[0],h=I[1];var R=hj(n);R.startAngle=d,R.endAngle=h,R.clockwise=w;var L=Math.abs(h-d),O=L,N=0,B=d;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(q,H){var X;if(isNaN(q)){i.setItemLayout(H,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:f,r:T?NaN:c});return}T!=="area"?X=S===0&&C?b:q*b:X=L/x,X<y?(X=y,O-=y):N+=q;var F=B+k*X,Y=0,Z=0;v>X?(Y=B+k*X/2,Z=Y):(Y=B+P,Z=F-P),i.setItemLayout(H,{angle:X,startAngle:Y,endAngle:Z,clockwise:w,cx:l,cy:u,r0:f,r:T?Vt(q,M,[f,c]):c}),B=F}),O<h3&&x)if(O<=.001){var G=L/x;i.each(a,function(q,H){if(!isNaN(q)){var X=i.getItemLayout(H);X.angle=G;var F=0,Y=0;G<v?(F=d+k*(H+1/2)*G,Y=F):(F=d+k*H*G+P,Y=d+k*(H+1)*G-P),X.startAngle=F,X.endAngle=Y}})}else b=O/N,B=d,i.each(a,function(q,H){if(!isNaN(q)){var X=i.getItemLayout(H),F=X.angle===y?y:q*b,Y=0,Z=0;F<v?(Y=B+k*F/2,Z=Y):(Y=B+P,Z=B+k*F-P),X.startAngle=Y,X.endAngle=Z,B+=k*F}})})}var hj=Tt();function Hg(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var pbe=Math.PI/180;function p3(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function c(g){for(var y=g.rB,x=y*y,S=0;S<g.list.length;S++){var b=g.list[S],w=Math.abs(b.label.y-r),T=n+b.len,C=T*T,M=Math.sqrt((1-Math.abs(w*w/x))*C),k=t+(M+b.len2)*i,I=k-b.label.x,P=b.targetTextWidth-I*i;pj(b,P,!0),b.label.x=k}}function f(g){for(var y={list:[],maxY:0},x={list:[],maxY:0},S=0;S<g.length;S++)if(g[S].labelAlignTo==="none"){var b=g[S],w=b.label.y>r?x:y,T=Math.abs(b.label.y-r);if(T>=w.maxY){var C=b.label.x-t-b.len2*i,M=n+b.len,k=Math.abs(C)<M?Math.sqrt(T*T/(1-C*C/M/M)):M;w.rB=k,w.maxY=T}w.list.push(b)}c(y),c(x)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}z8(e,l,l+o)&&f(e)}function vbe(e,t,r,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;MC(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!MC(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,g=v.linePoints,y=void 0;v.labelAlignTo==="edge"?h.x<t?y=g[2][0]-v.labelDistance-o-v.edgeDistance:y=o+i-v.edgeDistance-g[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?y=c-o-v.bleedMargin:y=o+i-f-v.bleedMargin:h.x<t?y=h.x-o-v.bleedMargin:y=o+i-h.x-v.bleedMargin,v.targetTextWidth=y,pj(v,y)}}p3(u,t,r,n,1,i,a,o,s,f),p3(l,t,r,n,-1,i,a,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!MC(v)&&v.linePoints){var h=v.label,g=v.linePoints,x=v.labelAlignTo==="edge",S=h.style.padding,b=S?S[1]+S[3]:0,w=h.style.backgroundColor?0:b,T=v.rect.width+w,C=g[1][0]-g[2][0];x?h.x<t?g[2][0]=o+v.edgeDistance+T+v.labelDistance:g[2][0]=o+i-v.edgeDistance-T-v.labelDistance:(h.x<t?g[2][0]=h.x+v.labelDistance:g[2][0]=h.x-v.labelDistance,g[1][0]=g[2][0]+C),g[1][1]=g[2][1]=h.y}}}function pj(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(t<c||r){var f=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,v=t<c?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var g=n.getBoundingRect();a.width=g.width;var y=(n.style.margin||0)+2.1;a.height=g.height+y,a.y-=(a.height-f)/2}}}function MC(e){return e.position==="center"}function gbe(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*pbe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(C){C.ignore=!0}function v(C){if(!C.ignore)return!0;for(var M in C.states)if(C.states[M].ignore===!1)return!0;return!1}t.each(function(C){var M=t.getItemGraphicEl(C),k=M.shape,I=M.getTextContent(),P=M.getTextGuideLine(),R=t.getItemModel(C),L=R.getModel("label"),O=L.get("position")||R.get(["emphasis","label","position"]),N=L.get("distanceToLabelLine"),B=L.get("alignTo"),G=xe(L.get("edgeDistance"),u),q=L.get("bleedMargin"),H=R.getModel("labelLine"),X=H.get("length");X=xe(X,u);var F=H.get("length2");if(F=xe(F,u),Math.abs(k.endAngle-k.startAngle)<o){V(I.states,h),I.ignore=!0,P&&(V(P.states,h),P.ignore=!0);return}if(v(I)){var Y=(k.startAngle+k.endAngle)/2,Z=Math.cos(Y),j=Math.sin(Y),re,ce,te,pe;n=k.cx,i=k.cy;var ae=O==="inside"||O==="inner";if(O==="center")re=k.cx,ce=k.cy,pe="center";else{var he=(ae?(k.r+k.r0)/2*Z:k.r*Z)+n,ve=(ae?(k.r+k.r0)/2*j:k.r*j)+i;if(re=he+Z*3,ce=ve+j*3,!ae){var fe=he+Z*(X+l-k.r),ge=ve+j*(X+l-k.r),De=fe+(Z<0?-1:1)*F,Ie=ge;B==="edge"?re=Z<0?c+G:c+u-G:re=De+(Z<0?-N:N),ce=Ie,te=[[he,ve],[fe,ge],[De,Ie]]}pe=ae?"center":B==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var $e=Math.PI,dt=0,ct=L.get("rotate");if(Dt(ct))dt=ct*($e/180);else if(O==="center")dt=0;else if(ct==="radial"||ct===!0){var bt=Z<0?-Y+$e:-Y;dt=bt}else if(ct==="tangential"&&O!=="outside"&&O!=="outer"){var At=Math.atan2(Z,j);At<0&&(At=$e*2+At);var _t=j>0;_t&&(At=$e+At),dt=At-$e}if(a=!!dt,I.x=re,I.y=ce,I.rotation=dt,I.setStyle({verticalAlign:"middle"}),ae){I.setStyle({align:pe});var $t=I.states.select;$t&&($t.x+=I.x,$t.y+=I.y)}else{var it=I.getBoundingRect().clone();it.applyTransform(I.getComputedTransform());var tr=(I.style.margin||0)+2.1;it.y-=tr/2,it.height+=tr,r.push({label:I,labelLine:P,position:O,len:X,len2:F,minTurnAngle:H.get("minTurnAngle"),maxSurfaceAngle:H.get("maxSurfaceAngle"),surfaceNormal:new et(Z,j),linePoints:te,textAlign:pe,labelDistance:N,labelAlignTo:B,edgeDistance:G,bleedMargin:q,rect:it,unconstrainedWidth:it.width,labelStyleWidth:I.style.width})}M.setTextConfig({inside:ae})}}),!a&&e.get("avoidLabelOverlap")&&vbe(r,n,i,l,u,d,c,f);for(var g=0;g<r.length;g++){var y=r[g],x=y.label,S=y.labelLine,b=isNaN(x.x)||isNaN(x.y);if(x){x.setStyle({align:y.textAlign}),b&&(V(x.states,h),x.ignore=!0);var w=x.states.select;w&&(w.x+=x.x,w.y+=x.y)}if(S){var T=y.linePoints;b||!T?(V(S.states,h),S.ignore=!0):(L8(T,y.minTurnAngle),Fxe(T,y.surfaceNormal,y.maxSurfaceAngle),S.setShape({points:T}),x.__hostTarget.textGuideLineConfig={anchor:new et(T[0][0],T[0][1])})}}}var mbe=function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new kt;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=oe(Uu(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(lr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,lr(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),lr(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,Et(o,{shape:{endAngle:c.endAngle}},s,n))}else Oa(o),Et(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),cn(o,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),g=Math.cos(h)*v,y=Math.sin(h)*v,x=l.getShallow("cursor");x&&o.attr("cursor",x),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=oe({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Uu(u.getModel("itemStyle"),c)),oe(o.ensureState("select"),{x:g,y,shape:Uu(l.getModel(["select","itemStyle"]),c)}),oe(o.ensureState("blur"),{shape:Uu(l.getModel(["blur","itemStyle"]),c)});var S=o.getTextGuideLine(),b=o.getTextContent();S&&oe(S.ensureState("select"),{x:g,y}),oe(b.ensureState("select"),{x:g,y}),mr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;fn(a,Ur(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Gn,this.setTextGuideLine(h)),xI(this,SI(o),{stroke:u,opacity:go(s.get(["lineStyle","opacity"]),c,1)})}},t}(Fn),ybe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=hj(r),h=new Fn({shape:oe(dj(r,i),d)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var g=new mbe(o,v,u);o.setItemGraphicEl(v,g),l.add(g)}).update(function(v,g){var y=s.getItemGraphicEl(g);y.updateData(o,v,u),y.off("click"),l.add(y),o.setItemGraphicEl(v,y)}).remove(function(v){var g=s.getItemGraphicEl(v);Wv(g,r,v)}).execute(),gbe(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(Zt);function Ud(e,t,r){t=ue(t)&&{coordDimensions:t}||oe({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=zg(n,t).dimensions,a=new On(i,e);return a.initData(n,r),a}var Wg=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),xbe=Tt(),Sbe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wg(Ae(this.getData,this),Ae(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Ud(this,{coordDimensions:["value"],encodeDefaulter:Je(Kk,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=xbe(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=uve(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){cc(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(or);function bbe(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Dt(o)&&!isNaN(o)&&o<0)})}}}function _be(e){e.registerChartView(ybe),e.registerSeriesModel(Sbe),OW("pie",e.registerAction),e.registerLayout(Je(hbe,"pie")),e.registerProcessor(Hg("pie")),e.registerProcessor(bbe("pie"))}var wbe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return vs(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(or),vj=4,Cbe=function(){function e(){}return e}(),Tbe=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new Cbe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<vj,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<i.length;){var d=i[f++],h=i[f++];isNaN(d)||isNaN(h)||c&&!c.contain(d,h)||(s.x=d-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var c=u*2,f=a[c]-s/2,d=a[c+1]-l/2;if(r>=f&&n>=d&&r<=f+s&&n<=d+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<i.length;){var h=i[d++],v=i[d++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(v,u),f=Math.max(v,f)}r=this._rect=new rt(l-o/2,u-s/2,c-l+o,f-u+s)}return r},t}(vt),Abe=function(){function e(){this.group=new qe}return e.prototype.updateData=function(t,r){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;r=new Float32Array(r.buffer,a,i)}n.setShape("points",r),n.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n){var i=this._newAdded[0],a=r.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new Tbe({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=n.clipShape||null,t.symbolProxy=Er(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<vj;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=Ze(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Mbe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Gg("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new Abe:new Vg,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Zt),kbe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return 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}(xt),mA=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Dr).models[0]},t.type="cartesian2dAxis",t}(xt);Lr(mA,Bg);var gj={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)"]}}},Ibe=tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},gj),MI=tt({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}}},gj),Pbe=tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},MI),Dbe=Ve({logBase:10},MI);const mj={category:Ibe,value:MI,time:Pbe,log:Dbe};var Rbe={value:1,category:1,time:1,log:1};function _d(e,t,r,n){V(Rbe,function(i,a){var o=tt(tt({},mj[a],!0),n,!0),s=function(l){J(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Uv(this),h=d?Vd(c):{},v=f.getTheme();tt(c,v.get(a+"Axis")),tt(c,this.getDefaultOption()),c.type=v3(c),d&&bl(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=cA.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",v3)}function v3(e){return e.type||(e.data?"category":"value")}var Ebe=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return de(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Wt(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),yA=["x","y"];function g3(e){return e.type==="interval"||e.type==="time"}var Lbe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=yA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!g3(r)||!g3(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=Rd([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new rt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return un(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return un(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new rt(a,o,s,l)},t}(Ebe),Obe=function(e){J(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Ba);function xA(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(g,v[1]),v[0])}a.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=y[s],a.labelOffset=o?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Qr(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var x=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-x:x,a.z2=1,a}function m3(e){return e.get("coordinateSystem")==="cartesian2d"}function y3(e){var t={xAxisModel:null,yAxisModel:null};return V(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Dr).models[0];t[n]=a}),t}var kC=Math.log;function yj(e,t,r){var n=cs.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=b8(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=kC(e.base);u=[kC(u[0])/d,kC(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=n.getInterval.call(e),g=u[0],y=u[1];if(c&&f)v=(y-g)/o;else if(c)for(y=u[0]+v*o;y<u[1]&&isFinite(y)&&isFinite(u[1]);)v=hC(v),y=u[0]+v*o;else if(f)for(g=u[1]-v*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)v=hC(v),g=u[1]-v*o;else{var x=e.getTicks().length-1;x>o&&(v=hC(v));var S=v*o;y=Math.ceil(u[1]/v)*v,g=br(y-S),g<0&&u[0]>=0?(g=0,y=br(S)):y>0&&u[1]<=0&&(y=0,g=-br(S))}var b=(i[0].value-a[0].value)/s,w=(i[o].value-a[o].value)/s;n.setExtent.call(e,g+v*b,y+v*w),n.setInterval.call(e,v),(b||w)&&n.setNiceExtent.call(e,g+v,y-v)}var Nbe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=yA,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=St(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],v=h.model,g=h.scale;fA(g)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(Sd(g,v),fA(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sd(s.scale,s.model)),V(c,function(y){yj(y.scale,y.model,s.scale)}))}}i(n.x),i(n.y);var a={};V(n.x,function(o){x3(n,"y",o,a)}),V(n.y,function(o){x3(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Fr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(V(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=gxe(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),V(this._coordsList,function(u){u.calcAffineTransform()});function l(){V(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),zbe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Ge(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Dr).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",Dr).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ft(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,V(s.x,function(c,f){V(s.y,function(d,h){var v="x"+f+"y"+h,g=new Lbe(v);g.master=i,g.model=t,i._coordsMap[v]=g,i._coordsList.push(g),g.addAxis(c),g.addAxis(d)})});function u(c){return function(f,d){if(IC(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new Obe(c,AS(f),[0,0],f.get("type"),h),g=v.type==="category";v.onBand=g&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=a,v.index=d,a._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,r){V(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(m3(i)){var a=y3(i),o=a.xAxisModel,s=a.yAxisModel;if(!IC(o,r)||!IC(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(i,a){V(H1(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return V(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);ft(r,a)<0&&r.push(a),ft(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(m3(i)){var a=y3(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=yA,e}();function IC(e,t){return e.getCoordSysModel()===t}function x3(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)S3(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&S3(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function S3(e){return e&&e.type!=="category"&&e.type!=="time"&&vxe(e)}function zbe(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var sl=Math.PI,Nn=function(){function e(t,r){this.group=new qe,this.opt=r,this.axisModel=t,Ve(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new qe({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!b3[t]},e.prototype.add=function(t){b3[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=NG(r-t),a,o;return Vv(i)?(o=n>0?"top":"bottom",a="center"):Vv(i-sl)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<sl?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),b3={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(un(s,s,o),un(l,l,o));var c=oe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Hr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});md(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);_e(d)&&(d=[d,d]),(_e(h)||Dt(h))&&(h=[h,h]);var v=Tc(t.get(["axisLine","symbolOffset"])||0,h),g=h[0],y=h[1];V([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(x,S){if(d[S]!=="none"&&d[S]!=null){var b=Er(d[S],-g/2,-y/2,g,y,c.stroke,!0),w=x.r+x.offset,T=u?l:s;b.attr({rotation:x.rotate,x:T[0]+w*Math.cos(e.rotation),y:T[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),r.add(b)}})}}},axisTickLabel:function(e,t,r,n){var i=Vbe(r,n,t,e),a=Gbe(r,n,t,e);if(Fbe(t,a,i),$be(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=O8(de(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));B8(o)}},axisName:function(e,t,r,n){var i=Qr(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,w3(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*sl/180);var v;w3(a)?d=Nn.innerTextLayout(e.rotation,h??e.rotation,o):(d=Bbe(e.rotation,a,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var g=s.getFont(),y=t.get("nameTruncate",!0)||{},x=y.ellipsis,S=Qr(e.nameTruncateMaxWidth,y.maxWidth,v),b=new kt({x:f[0],y:f[1],rotation:d.rotation,silent:Nn.isLabelSilent(t),style:ar(s,{text:i,font:g,overflow:"truncate",width:S,ellipsis:x,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(Nd({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var w=Nn.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Ze(b).eventData=w}n.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function Bbe(e,t,r,n){var i=NG(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Vv(i-sl/2)?(o=l?"bottom":"top",a="center"):Vv(i-sl*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<sl*1.5&&i>sl/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function Fbe(e,t,r){if(!_8(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(zi(a),zi(u)):_3(a,o)&&(n?(zi(o),zi(c)):(zi(a),zi(u))),i===!1?(zi(s),zi(f)):_3(l,s)&&(i?(zi(l),zi(d)):(zi(s),zi(f)))}}function zi(e){e&&(e.ignore=!0)}function _3(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=Kx([]);return wc(i,i,-e.rotation),r.applyTransform(Qo([],i,e.getLocalTransform())),n.applyTransform(Qo([],i,t.getLocalTransform())),r.intersect(n)}}function w3(e){return e==="middle"||e==="center"}function xj(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(un(o,o,t),un(s,s,t));var c=new Hr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});md(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,a.push(c)}return a}function Vbe(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),c=xj(u,t.transform,l,Ve(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function $be(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=Ve(s.getLineStyle(),Ve(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=xj(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function Gbe(e,t,r,n){var i=r.axis,a=Qr(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Qr(n.labelRotate,o.get("rotate"))||0)*sl/180,c=Nn.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],h=Nn.isLabelSilent(r),v=r.get("triggerEvent");return V(l,function(g,y){var x=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,S=g.formattedLabel,b=g.rawLabel,w=o;if(f&&f[x]){var T=f[x];Ge(T)&&T.textStyle&&(w=new Bt(T.textStyle,o,r.ecModel))}var C=w.getTextColor()||r.get(["axisLine","lineStyle","color"]),M=i.dataToCoord(x),k=w.getShallow("align",!0)||c.textAlign,I=Qe(w.getShallow("alignMinLabel",!0),k),P=Qe(w.getShallow("alignMaxLabel",!0),k),R=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,L=Qe(w.getShallow("verticalAlignMinLabel",!0),R),O=Qe(w.getShallow("verticalAlignMaxLabel",!0),R),N=new kt({x:M,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(g.level||0),style:ar(w,{text:S,align:y===0?I:y===l.length-1?P:k,verticalAlign:y===0?L:y===l.length-1?O:R,fill:Be(C)?C(i.type==="category"?b:i.type==="value"?x+"":x,y):C})});if(N.anid="label_"+x,v){var B=Nn.makeAxisEventDataBase(r);B.targetType="axisLabel",B.value=b,B.tickIndex=y,i.type==="category"&&(B.dataIndex=x),Ze(N).eventData=B}t.add(N),N.updateTransform(),d.push(N),e.add(N),N.decomposeTransform()}),d}}function Hbe(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Wbe(r,e,t),r.seriesInvolved&&Ube(r,e),r}function Wbe(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];V(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=tg(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(V(s.getAxes(),Je(g,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&V(v.baseAxes,Je(g,h?"cross":!0,d)),h&&V(v.otherAxes,Je(g,"cross",!1))}function g(y,x,S){var b=S.model.getModel("axisPointer",i),w=b.get("show");if(!(!w||w==="auto"&&!y&&!SA(b))){x==null&&(x=b.get("triggerTooltip")),b=y?jbe(S,f,i,t,y,x):b;var T=b.get("snap"),C=b.get("triggerEmphasis"),M=tg(S.model),k=x||T||S.type==="category",I=e.axesInfo[M]={key:M,axis:S,coordSys:s,axisPointerModel:b,triggerTooltip:x,triggerEmphasis:C,involveSeries:k,snap:T,useHandle:SA(b),seriesModels:[],linkGroup:null};u[M]=I,e.seriesInvolved=e.seriesInvolved||k;var P=Ybe(a,S);if(P!=null){var R=o[P]||(o[P]={axesInfo:{}});R.axesInfo[M]=I,R.mapper=a[P].mapper,I.linkGroup=R}}}})}function jbe(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};V(s,function(d){l[d]=We(o.get(d))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&Ve(u,f.textStyle)}}return e.model.getModel("axisPointer",new Bt(l,r,n))}function Ube(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||V(e.coordSysAxesInfo[tg(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function Ybe(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(PC(a[n+"AxisId"],r.id)||PC(a[n+"AxisIndex"],r.componentIndex)||PC(a[n+"AxisName"],r.name))return i}}function PC(e,t){return e==="all"||ue(e)&&ft(e,t)>=0||e===t}function qbe(e){var t=kI(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=SA(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function kI(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[tg(e)]}function Xbe(e){var t=kI(e);return t&&t.axisPointerModel}function SA(e){return!!e.get(["handle","show"])}function tg(e){return e.type+"||"+e.id}var C3={},kc=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&qbe(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=Xbe(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){C3[r]=n},t.getAxisPointerClass=function(r){return r&&C3[r]},t.type="axis",t}(dr),bA=Tt();function Sj(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,f=bA(e).splitAreaColors,d=Re(),h=0;if(f)for(var v=0;v<u.length;v++){var g=f.get(u[v].tickValue);if(g!=null){h=(g+(c-1)*v)%c;break}}var y=i.toGlobalCoord(u[0].coord),x=o.getAreaStyle();s=ue(s)?s:[s];for(var v=1;v<u.length;v++){var S=i.toGlobalCoord(u[v].coord),b=void 0,w=void 0,T=void 0,C=void 0;i.isHorizontal()?(b=y,w=l.y,T=S-b,C=l.height,y=b+T):(b=l.x,w=y,T=l.width,C=S-w,y=w+C);var M=u[v-1].tickValue;M!=null&&d.set(M,h),t.add(new Ct({anid:M!=null?"area_"+M:null,shape:{x:b,y:w,width:T,height:C},style:Ve({fill:s[h]},x),autoBatch:!0,silent:!0})),h=(h+1)%c}bA(e).splitAreaColors=d}}}function bj(e){bA(e).splitAreaColors=null}var Zbe=["axisLine","axisTickLabel","axisName"],Kbe=["splitArea","splitLine","minorSplitLine"],_j=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new qe,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=xA(s,r),u=new Nn(r,oe({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(fA(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));V(Zbe,u.add,u),this._axisGroup.add(u.getGroup()),V(Kbe,function(f){r.get([f,"show"])&&Qbe[f](this,this._axisGroup,r,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||Eg(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){bj(this)},t.type="cartesianAxis",t}(kc),Qbe={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=ue(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:a}),d=[],h=[],v=o.getLineStyle(),g=0;g<f.length;g++){var y=i.toGlobalCoord(f[g].coord);u?(d[0]=y,d[1]=l.y,h[0]=y,h[1]=l.y+l.height):(d[0]=l.x,d[1]=y,h[0]=l.x+l.width,h[1]=y);var x=c++%s.length,S=f[g].tickValue,b=new Hr({anid:S!=null?"line_"+f[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:Ve({stroke:s[x]},v),silent:!0});md(b.shape,v.lineWidth),t.add(b)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var g=i.toGlobalCoord(u[h][v].coord);l?(c[0]=g,c[1]=s.y,f[0]=g,f[1]=s.y+s.height):(c[0]=s.x,c[1]=g,f[0]=s.x+s.width,f[1]=g);var y=new Hr({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});md(y.shape,d.lineWidth),t.add(y)}},splitArea:function(e,t,r,n){Sj(e,t,r,n)}},wj=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(_j),Jbe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=wj.type,r}return t.type="yAxis",t}(_j),e_e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ct({shape:r.coordinateSystem.getRect(),style:Ve({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(dr),T3={offset:0};function Cj(e){e.registerComponentView(e_e),e.registerComponentModel(kbe),e.registerCoordinateSystem("cartesian2d",Nbe),_d(e,"x",mA,T3),_d(e,"y",mA,T3),e.registerComponentView(wj),e.registerComponentView(Jbe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function t_e(e){pt(Cj),e.registerSeriesModel(wbe),e.registerChartView(Mbe),e.registerLayout(Gg("scatter"))}function r_e(e){e.eachSeriesByType("radar",function(t){var r=t.getData(),n=[],i=t.coordinateSystem;if(i){var a=i.getIndicatorAxes();V(a,function(o,s){r.each(r.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var c=i.dataToPoint(l,s);n[u][s]=A3(c)?c:M3(i)})}),r.each(function(o){var s=Vhe(n[o],function(l){return A3(l)})||M3(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function A3(e){return!isNaN(e[0])&&!isNaN(e[1])}function M3(e){return[e.cx,e.cy]}function n_e(e){var t=e.polar;if(t){ue(t)||(t=[t]);var r=[];V(t,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],ue(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):r.push(n)}),e.polar=r}V(e.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var i_e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(d,h){var v=d.getItemVisual(h,"symbol")||"circle";if(v!=="none"){var g=Wd(d.getItemVisual(h,"symbolSize")),y=Er(v,-1,-1,2,2),x=d.getItemVisual(h,"symbolRotate")||0;return y.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:x*Math.PI/180||0}),y}}function c(d,h,v,g,y,x){v.removeAll();for(var S=0;S<h.length-1;S++){var b=u(g,y);b&&(b.__dimIdx=S,d[S]?(b.setPosition(d[S]),Cc[x?"initProps":"updateProps"](b,{x:h[S][0],y:h[S][1]},r,y)):b.setPosition(h[S]),v.add(b))}}function f(d){return de(d,function(h){return[a.cx,a.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var v=new Vn,g=new Gn,y={shape:{points:h}};v.shape.points=f(h),g.shape.points=f(h),lr(v,y,r,d),lr(g,y,r,d);var x=new qe,S=new qe;x.add(g),x.add(v),x.add(S),c(g.shape.points,h,S,s,d,!0),s.setItemGraphicEl(d,x)}}).update(function(d,h){var v=l.getItemGraphicEl(h),g=v.childAt(0),y=v.childAt(1),x=v.childAt(2),S={shape:{points:s.getItemLayout(d)}};S.shape.points&&(c(g.shape.points,S.shape.points,x,s,d,!1),Oa(y),Oa(g),Et(g,S,r),Et(y,S,r),s.setItemGraphicEl(d,v))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var v=s.getItemModel(h),g=d.childAt(0),y=d.childAt(1),x=d.childAt(2),S=s.getItemVisual(h,"style"),b=S.fill;o.add(d),g.useStyle(Ve(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),cn(g,v,"lineStyle"),cn(y,v,"areaStyle");var w=v.getModel("areaStyle"),T=w.isEmpty()&&w.parentModel.isEmpty();y.ignore=T,V(["emphasis","select","blur"],function(k){var I=v.getModel([k,"areaStyle"]),P=I.isEmpty()&&I.parentModel.isEmpty();y.ensureState(k).ignore=P&&T}),y.useStyle(Ve(w.getAreaStyle(),{fill:b,opacity:.7,decal:S.decal}));var C=v.getModel("emphasis"),M=C.getModel("itemStyle").getItemStyle();x.eachChild(function(k){if(k instanceof Jr){var I=k.style;k.useStyle(oe({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},S))}else k.useStyle(S),k.setColor(b),k.style.strokeNoScale=!0;var P=k.ensureState("emphasis");P.style=We(M);var R=s.getStore().get(s.getDimensionIndex(k.__dimIdx),h);(R==null||isNaN(R))&&(R=""),fn(k,Ur(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:k.__dimIdx,defaultText:R,inheritColor:b,defaultOpacity:S.opacity})}),mr(d,C.get("focus"),C.get("blurScope"),C.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Zt),a_e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wg(Ae(this.getData,this),Ae(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return Ud(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,c=wW(this,r);return Yr("section",{header:u,sortBlocks:!0,blocks:de(s,function(f){var d=a.get(a.mapDimension(f.dim),r);return Yr("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},t.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(de(i.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(or),mp=mj.value;function u0(e,t){return Ve({show:t},e)}var o_e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),h=de(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var g=l;v.color!=null&&(g=Ve({color:v.color},l));var y=tt(We(v),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:d},!1);if(_e(c)){var x=y.name;y.name=c.replace("{value}",x??"")}else Be(c)&&(y.name=c(y.name,y));var S=new Bt(y,null,this.ecModel);return Lr(S,Bg.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:tt({lineStyle:{color:"#bbb"}},mp.axisLine),axisLabel:u0(mp.axisLabel,!1),axisTick:u0(mp.axisTick,!1),splitLine:u0(mp.splitLine,!0),splitArea:u0(mp.splitArea,!0),indicator:[]},t}(xt),s_e=["axisLine","axisTickLabel","axisName"],l_e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=de(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Nn(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});V(a,function(o){V(s_e,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),v=ue(d)?d:[d],g=ue(h)?h:[h],y=[],x=[];function S(B,G,q){var H=q%G.length;return B[H]=B[H]||[],H}if(a==="circle")for(var b=i[0].getTicksCoords(),w=n.cx,T=n.cy,C=0;C<b.length;C++){if(c){var M=S(y,v,C);y[M].push(new ps({shape:{cx:w,cy:T,r:b[C].coord}}))}if(f&&C<b.length-1){var M=S(x,g,C);x[M].push(new Pg({shape:{cx:w,cy:T,r0:b[C].coord,r:b[C+1].coord}}))}}else for(var k,I=de(i,function(B,G){var q=B.getTicksCoords();return k=k==null?q.length-1:Math.min(q.length-1,k),de(q,function(H){return n.coordToPoint(H.coord,G)})}),P=[],C=0;C<=k;C++){for(var R=[],L=0;L<i.length;L++)R.push(I[L][C]);if(R[0]&&R.push(R[0].slice()),c){var M=S(y,v,C);y[M].push(new Gn({shape:{points:R}}))}if(f&&P){var M=S(x,g,C-1);x[M].push(new Vn({shape:{points:R.concat(P)}}))}P=R.slice().reverse()}var O=l.getLineStyle(),N=u.getAreaStyle();V(x,function(B,G){this.group.add(Zi(B,{style:Ve({stroke:"none",fill:g[G%g.length]},N),silent:!0}))},this),V(y,function(B,G){this.group.add(Zi(B,{style:Ve({fill:"none",stroke:v[G%v.length]},O),silent:!0}))},this)},t.type="radar",t}(dr),u_e=function(e){J(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return t}(Ba),c_e=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=de(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new u_e(o,new cs);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(a-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(i))]},e.prototype.resize=function(t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight(),o=Math.min(i,a)/2;this.cx=xe(n[0],i),this.cy=xe(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(_e(s)||Dt(s))&&(s=[0,s]),this.r0=xe(s[0],o),this.r=xe(s[1],o),V(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,i=this._model;V(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();V(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var a=i.get("splitNumber"),o=new cs;o.setExtent(0,a),o.setInterval(1),V(n,function(s,l){yj(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,r){var n=[];return t.eachComponent("radar",function(i){var a=new e(i,t,r);n.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},e.dimensions=[],e}();function f_e(e){e.registerCoordinateSystem("radar",c_e),e.registerComponentModel(o_e),e.registerComponentView(l_e),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function d_e(e){pt(f_e),e.registerChartView(i_e),e.registerSeriesModel(a_e),e.registerLayout(r_e),e.registerProcessor(Hg("radar")),e.registerPreprocessor(n_e)}var k3="\0_ec_interaction_mutex";function h_e(e,t,r){var n=II(e);n[t]=r}function p_e(e,t,r){var n=II(e),i=n[t];i===r&&(n[t]=null)}function I3(e,t){return!!II(e)[t]}function II(e){return e[k3]||(e[k3]={})}Do({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Mr);var jg=function(e){J(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var i=Ae(n._mousedownHandler,n),a=Ae(n._mousemoveHandler,n),o=Ae(n._mouseupHandler,n),s=Ae(n._mousewheelHandler,n),l=Ae(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=Ve(We(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",i),r.on("mousemove",a),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",i),r.off("mousemove",a),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!rN(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=r.offsetX,a=r.offsetY;this.pointerChecker&&this.pointerChecker(r,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!U0("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||I3(this._zr,"globalPan"))){var n=r.offsetX,i=r.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&as(r.event),Tj(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){rN(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=U0("zoomOnMouseWheel",r,this._opt),i=U0("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;DC(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),d=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);DC(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!I3(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;DC(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(oa);function DC(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(as(n.event),Tj(e,t,r,n,i))}function Tj(e,t,r,n,i){i.isAvailableBehavior=Ae(U0,null,r,n),e.trigger(t,i)}function U0(e,t,r){var n=r[e];return!e||n&&(!_e(n)||t.event[n+"Key"])}function PI(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function DI(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var v_e={axisPointer:1,tooltip:1,brush:1};function kS(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!v_e.hasOwnProperty(n.mainType)&&i&&i.model!==r}function Aj(e){if(_e(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var RC,q1={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},P3=St(q1),X1={"alignment-baseline":"textBaseline","stop-color":"stopColor"},D3=St(X1),g_e=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=Aj(t);this._defsUsePending=[];var i=new qe;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),gi(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;x_e(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=IS(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=kj(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new qe,i.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Ct({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=RC[s];if(c&&Pe(RC,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var h=R3[s];if(h&&Pe(R3,s)){var v=h.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=v)}}if(l&&l.isGroup)for(var y=t.firstChild;y;)y.nodeType===1?this._parseNode(y,l,n,u,a,o):y.nodeType===3&&o&&this._parseText(y,l),y=y.nextSibling},e.prototype._parseText=function(t,r){var n=new gd({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Bi(r,n),gi(t,n,this._defsUsePending,!1,!1),m_e(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){RC={g:function(t,r){var n=new qe;return Bi(r,n),gi(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Ct;return Bi(r,n),gi(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new ps;return Bi(r,n),gi(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new Hr;return Bi(r,n),gi(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new sS;return Bi(r,n),gi(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=O3(n));var a=new Vn({shape:{points:i||[]},silent:!0});return Bi(r,a),gi(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=O3(n));var a=new Gn({shape:{points:i||[]},silent:!0});return Bi(r,a),gi(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Jr;return Bi(r,n),gi(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new qe;return Bi(r,s),gi(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new qe;return Bi(r,s),gi(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=mH(n);return Bi(r,i),gi(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),R3={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new Rg(t,r,n,i);return E3(e,a),L3(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new bH(t,r,n);return E3(e,i),L3(e,i),i}};function E3(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function L3(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};Mj(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Bi(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ve(t.__inheritedStyle,e.__inheritedStyle))}function O3(e){for(var t=IS(e),r=[],n=0;n<t.length;n+=2){var i=parseFloat(t[n]),a=parseFloat(t[n+1]);r.push([i,a])}return r}function gi(e,t,r,n,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(__e(e,t),Mj(e,o,s),n||w_e(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=N3(a,"fill",o.fill,r)),o.stroke!=null&&(a.style.stroke=N3(a,"stroke",o.stroke,r)),V(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),V(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=de(IS(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function m_e(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="mathematical")&&(i="middle"),e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var y_e=/^url\(\s*#(.*?)\)/;function N3(e,t,r,n){var i=r&&r.match(y_e);if(i){var a=Ta(i[1]);n.push([e,t,a]);return}return r==="none"&&(r=null),r}function x_e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var S_e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IS(e){return e.match(S_e)||[]}var b_e=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,EC=Math.PI/180;function __e(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],i=null;r.replace(b_e,function(f,d,h){return n.push(d,h),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=IS(o);switch(i=i||wi(),s){case"translate":Co(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Tk(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":wc(i,i,-parseFloat(l[0])*EC,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*EC);Qo(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*EC);Qo(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var z3=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Mj(e,t,r){var n=e.getAttribute("style");if(n){z3.lastIndex=0;for(var i;(i=z3.exec(n))!=null;){var a=i[1],o=Pe(q1,a)?q1[a]:null;o&&(t[o]=i[2]);var s=Pe(X1,a)?X1[a]:null;s&&(r[s]=i[2])}}}function w_e(e,t,r){for(var n=0;n<P3.length;n++){var i=P3[n],a=e.getAttribute(i);a!=null&&(t[q1[i]]=a)}for(var n=0;n<D3.length;n++){var i=D3[n],a=e.getAttribute(i);a!=null&&(r[X1[i]]=a)}}function kj(e,t){var r=t.width/e.width,n=t.height/e.height,i=Math.min(r,n);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function C_e(e,t){var r=new g_e;return r.parse(e,t)}var T_e=Re(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),A_e=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=Re(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Aj(r)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=k_e(t.named),n=r.regions,i=r.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&C_e(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,zn(n!=null)}catch(y){throw new Error(`Invalid svg format
|
192
|
+
`+y.message)}var i=new qe;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(a!=null?(u=0,f=a):s&&(u=s.x,f=s.width),o!=null?(c=0,d=o):s&&(c=s.y,d=s.height),u==null||c==null){var h=n.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,d=h.height)}l=this._boundingRect=new rt(u,c,f,d)}if(s){var v=kj(s,l);n.scaleX=n.scaleY=v.scale,n.x=v.x,n.y=v.y}i.setClipPath(new Ct({shape:l.plain()}));var g=[];return V(r.named,function(y){T_e.get(y.svgNodeTagLower)!=null&&(g.push(y),M_e(y.el))}),{root:i,boundingRect:l,named:g}},e.prototype.useGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(t,n),n)},e.prototype.freeGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);n&&(r.removeKey(t),this._freedGraphics.push(n))},e}();function M_e(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function k_e(e){var t=[],r=Re();return V(e,function(n){if(n.namedFrom==null){var i=new _xe(n.name,n.el);t.push(i),r.set(n.name,i)}}),{regions:t,regionsMap:r}}var _A=[126,25],B3="南海诸岛",Au=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Su=0;Su<Au.length;Su++)for(var Sf=0;Sf<Au[Su].length;Sf++)Au[Su][Sf][0]/=10.5,Au[Su][Sf][1]/=-10.5/.75,Au[Su][Sf][0]+=_A[0],Au[Su][Sf][1]+=_A[1];function I_e(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===B3)return;t.push(new C8(B3,de(Au,function(n){return{type:"polygon",exterior:n}}),_A))}}var P_e={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function D_e(e,t){if(e==="china"){var r=P_e[t.name];if(r){var n=t.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),t.setCenter(n)}}}var R_e=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function E_e(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:R_e[0]})}var L_e="name",O_e=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=Re(),this._mapName=t,this._specialAreas=n,this._geoJSON=z_e(r)}return e.prototype.load=function(t,r){r=r||L_e;var n=this._parsedMap.get(r);if(!n){var i=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:i,boundingRect:N_e(i)})}var a=Re(),o=[];return V(n.regions,function(s){var l=s.name;t&&Pe(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new rt(0,0,0,0),regionsMap:a}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,i;try{i=n?Cxe(n,t):[]}catch(a){throw new Error(`Invalid geoJson format
|
193
|
+
`+a.message)}return I_e(r,i),V(i,function(a){var o=a.name;D_e(r,a),E_e(r,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function N_e(e){for(var t,r=0;r<e.length;r++){var n=e[r].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function z_e(e){return _e(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var yp=Re();const fs={registerMap:function(e,t,r){if(t.svg){var n=new A_e(e,t.svg);yp.set(e,n)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?r=t.specialAreas:i=t;var n=new O_e(e,i,r);yp.set(e,n)}},getGeoResource:function(e){return yp.get(e)},getMapForUser:function(e){var t=yp.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=yp.get(e);if(n)return n.load(t,r)}};var RI=["rect","circle","line","ellipse","polygon","polyline","path"],B_e=Re(RI),F_e=Re(RI.concat(["g"])),V_e=Re(RI.concat(["g"])),Ij=Tt();function c0(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function F3(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var Pj=function(){function e(t){var r=new qe;this.uid=Bd("ec_map_draw"),this._controller=new jg(t.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new qe),r.add(this._svgGroup=new qe)}return e.prototype.draw=function(t,r,n,i,a){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&r.eachComponent({mainType:"series",subType:"map"},function(x){!s&&x.getHostGeoModel()===t&&(s=x.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,h=f.roam,v=!u.childAt(0)||a;v?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):Et(c,h,t);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,y={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(y):l.resourceType==="geoSVG"&&this._buildSVG(y),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=Re(),n=Re(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,v){return v&&(h=v(h)),h&&[h[0]*a.scaleX+a.x,h[1]*a.scaleY+a.y]}function f(h){for(var v=[],g=!u&&l&&l.project,y=0;y<h.length;++y){var x=c(h[y],g);x&&v.push(x)}return v}function d(h){return{shape:{points:f(h)}}}i.removeAll(),V(t.geo.regions,function(h){var v=h.name,g=r.get(v),y=n.get(v)||{},x=y.dataIdx,S=y.regionModel;g||(g=r.set(v,new qe),i.add(g),x=s?s.indexOfName(v):null,S=t.isGeo?o.getRegionModel(v):s?s.getItemModel(x):null,n.set(v,{dataIdx:x,regionModel:S}));var b=[],w=[];V(h.geometries,function(M){if(M.type==="polygon"){var k=[M.exterior].concat(M.interiors||[]);u&&(k=j3(k,u)),V(k,function(P){b.push(new Vn(d(P)))})}else{var I=M.points;u&&(I=j3(I,u,!0)),V(I,function(P){w.push(new Gn(d(P)))})}});var T=c(h.getCenter(),l&&l.project);function C(M,k){if(M.length){var I=new $k({culling:!0,segmentIgnoreThreshold:1,shape:{paths:M}});g.add(I),V3(t,I,x,S),$3(t,I,v,S,o,x,T),k&&(F3(I),V(I.states,F3))}}C(b),C(w,!0)}),r.each(function(h,v){var g=n.get(v),y=g.dataIdx,x=g.regionModel;G3(t,h,v,x,o,y),H3(t,h,v,x,o),W3(t,h,v,x,o)},this)},e.prototype._buildSVG=function(t){var r=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(r)&&(this._freeSVG(),this._useSVG(r));var i=this._svgDispatcherMap=Re(),a=!1;V(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(B_e.get(c)!=null&&f instanceof na&&V3(t,f,d,h),f instanceof na&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(V_e.get(c)!=null&&$3(t,f,s,h,l,d,null),G3(t,f,s,h,l,d),H3(t,f,s,h,l),F_e.get(c)!=null)){var v=W3(t,f,s,h,l);v==="self"&&(a=!0);var g=i.get(s)||i.set(s,[]);g.push(f)}},this),this._enableBlurEntireSVG(a,t)},e.prototype._enableBlurEntireSVG=function(t,r){if(t&&r.isGeo){var n=r.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){hc(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,r){if(t==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(t);return a?[a]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var r=fs.getGeoResource(t);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var r=fs.getGeoResource(t);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,r,n){var i=t.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,PI(o,u.dx,u.dy),n.dispatchAction(oe(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,DI(o,u.scale,u.originX,u.originY),n.dispatchAction(oe(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,c,f){return i.containPoint([c,f])&&!kS(u,n,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=Ij(r).ignore)})},e.prototype._updateMapSelectHandler=function(t,r,n,i){var a=this;r.off("mousedown"),r.off("click"),t.get("selectedMode")&&(r.on("mousedown",function(){a._mouseDownFlag=!0}),r.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},e}();function V3(e,t,r,n){var i=n.getModel("itemStyle"),a=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=c0(i),u=c0(a),c=c0(s),f=c0(o),d=e.data;if(d){var h=d.getItemVisual(r,"style"),v=d.getItemVisual(r,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),v&&(l.decal=xd(v,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,hc(t)}function $3(e,t,r,n,i,a,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var f=l?r:a,d=void 0;(!s||a>=0)&&(d=i);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;fn(t,Ur(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var v=t.getTextContent();if(v&&(Ij(v).ignore=v.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function G3(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ze(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function H3(e,t,r,n,i){e.data||Nd({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function W3(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return mr(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Nge(t,i,r),o}function j3(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),V(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!r&&s.polygonEnd(),n}var $_e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!r.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===r.id){var s=this._mapDraw;s&&o.add(s.group)}else if(r.needsDrawMap){var s=this._mapDraw||new Pj(i);o.add(s.group),s.draw(r,n,i,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r,n,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(r,n,i){var a=r.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new ps({style:{fill:r.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Ld+1)});if(!f){var h=r.mainSeries.getData(),v=a.getName(l),g=h.indexOfName(v),y=a.getItemModel(l),x=y.getModel("label"),S=h.getItemGraphicEl(g);fn(d,Ur(y),{labelFetcher:{getFormattedLabel:function(b,w){return r.getFormattedLabel(g,w)}},defaultText:v}),d.disableLabelAnimation=!0,x.get("position")||d.setTextConfig({position:"bottom"}),S.onHoverStateChange=function(b){M1(d,b)}}o.add(d)}}})},t.type="map",t}(Zt),G_e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.needsDrawMap=!1,r.seriesGroup=[],r.getTooltipPosition=function(n){if(n!=null){var i=this.getData().getName(n),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},r}return t.prototype.getInitialData=function(r){for(var n=Ud(this,{coordDimensions:["value"],encodeDefaulter:Je(Kk,this)}),i=Re(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,!0)}var u=fs.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return V(u.regions,function(c){var f=c.name;i.get(f)||a.push(f)}),n.appendValues([],a),n},t.prototype.getHostGeoModel=function(){var r=this.option.geoIndex;return r!=null?this.ecModel.getComponent("geo",r):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},t.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData(),o=this.getRawValue(r),s=a.getName(r),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=a.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return Yr("section",{header:u.join(", "),noHeader:!u.length,blocks:[Yr("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",i=Er(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return i.setStyle(r.itemStyle),i.style.stroke="none",n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(or);function H_e(e,t){var r={};return V(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c<u;c++)s=Math.min(s,r[a][c]),l=Math.max(l,r[a][c]),o+=r[a][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function W_e(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getHostGeoModel(),i=n?"o"+n.id:"i"+r.getMapType();(t[i]=t[i]||[]).push(r)}),V(t,function(r,n){for(var i=H_e(de(r,function(o){return o.getData()}),r[0].get("mapValueCalculation")),a=0;a<r.length;a++)r[a].originalData=r[a].getData();for(var a=0;a<r.length;a++)r[a].seriesGroup=r,r[a].needsDrawMap=a===0&&!r[a].getHostGeoModel(),r[a].setData(i.cloneShallow()),r[a].mainSeries=r[0]})}function j_e(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||t[n])){var i={};V(r.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var h=i[f]||0,v=s.dataToPoint(d.getCenter());i[f]=h+1,l.setItemLayout(c,{point:v,offset:h})}})});var a=r.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),t[n]=!0}})}var U3=un,Ug=function(e){J(t,e);function t(r){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Xo,n._rawTransformable=new Xo,n.name=r,n}return t.prototype.setBoundingRect=function(r,n,i,a){return this._rect=new rt(r,n,i,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(r,n,i,a){this._transformTo(r,n,i,a),this._viewRect=new rt(r,n,i,a)},t.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new rt(r,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(r,n){r&&(this._center=[xe(r[0],n.getWidth()),xe(r[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,i=r.y+r.height/2;return[n,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=un([],a,r),i=un([],i,r),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),Ck(this.transform||(this.transform=[]),n.transform||wi()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Rd(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,i=new Xo;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},t.prototype.dataToPoint=function(r,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?U3(i,r,a):Dn(i,r)},t.prototype.pointToData=function(r){var n=this.invTransform;return n?U3([],r,n):[r[0],r[1]]},t.prototype.convertToPixel=function(r,n,i){var a=Y3(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=Y3(n);return a===this?a.pointToData(i):null},t.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},t.dimensions=["x","y"],t}(Xo);function Y3(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var U_e={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Dj=["lng","lat"],wA=function(e){J(t,e);function t(r,n,i){var a=e.call(this,r)||this;a.dimensions=Dj,a.type="geo",a._nameCoordMap=Re(),a.map=n;var o=i.projection,s=fs.load(n,i.nameMap,i.nameProperty),l=fs.getGeoResource(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,c=U_e[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var f;if(o)for(var d=0;d<u.length;d++){var h=u[d].getBoundingRect(o);f=f||h.clone(),f.union(h)}else f=s.boundingRect;return a.setBoundingRect(f.x,f.y,f.width,f.height),a.aspectScale=o?1:Qe(i.aspectScale,c.aspectScale),a._invertLongitute=o?!1:c.invertLongitute,a}return t.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new rt(r,n,i,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(r){return this._regionsMap.get(r)},t.prototype.getRegionByCoord=function(r){for(var n=this.regions,i=0;i<n.length;i++){var a=n[i];if(a.type==="geoJSON"&&a.contain(r))return n[i]}},t.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},t.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},t.prototype.dataToPoint=function(r,n,i){if(_e(r)&&(r=this.getGeoCoord(r)),r){var a=this.projection;return a&&(r=a.project(r)),r&&this.projectedToPoint(r,n,i)}},t.prototype.pointToData=function(r){var n=this.projection;return n&&(r=n.unproject(r)),r&&this.pointToProjected(r)},t.prototype.pointToProjected=function(r){return e.prototype.pointToData.call(this,r)},t.prototype.projectedToPoint=function(r,n,i){return e.prototype.dataToPoint.call(this,r,n,i)},t.prototype.convertToPixel=function(r,n,i){var a=q3(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=q3(n);return a===this?a.pointToData(i):null},t}(Ug);Lr(wA,Ug);function q3(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",Dr).models[0]||{}).coordinateSystem:null}function X3(e,t){var r=e.get("boundingCoords");if(r!=null){var n=r[0],i=r[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=n[0],s=n[1],l=i[0],u=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var c=function(C,M,k,I){for(var P=k-C,R=I-M,L=0;L<=100;L++){var O=L/100,N=a.project([C+P*O,M+R*O]);rl(n,n,N),nl(i,i,N)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1])}}var f=this.getBoundingRect(),d=e.get("layoutCenter"),h=e.get("layoutSize"),v=t.getWidth(),g=t.getHeight(),y=f.width/f.height*this.aspectScale,x=!1,S,b;d&&h&&(S=[xe(d[0],v),xe(d[1],g)],b=xe(h,Math.min(v,g)),!isNaN(S[0])&&!isNaN(S[1])&&!isNaN(b)&&(x=!0));var w;if(x)w={},y>1?(w.width=b,w.height=b/y):(w.height=b,w.width=b*y),w.y=S[1]-w.height/2,w.x=S[0]-w.width/2;else{var T=e.getBoxLayoutParams();T.aspect=y,w=Fr(T,{width:v,height:g})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Y_e(e,t){V(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var q_e=function(){function e(){this.dimensions=Dj}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new wA(l+s,l,oe({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=X3,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),V(a,function(o,s){var l=de(o,function(c){return c.get("nameMap")}),u=new wA(s,s,oe({nameMap:Sk(l)},i(o[0])));u.zoomLimit=Qr.apply(null,de(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=X3,u.resize(o[0],r),V(o,function(c){c.coordinateSystem=u,Y_e(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=Re(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=fs.load(r,n,i);return V(l.regions,function(u){var c=u.name;!o.get(c)&&a.push({name:c})}),a},e}(),Rj=new q_e,X_e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=fs.getGeoResource(r.map);if(a&&a.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(r,i),cc(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=Rj.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=wo(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new Bt(o,r,r.ecModel)),o.selected&&(i[s]=!0)),a},Re()),n.selectedMap||(n.selectedMap=i)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new Bt(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(r,n){var i=this.getRegionModel(r),a=n==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:r};if(Be(a))return o.status=n,a(o);if(_e(a))return a.replace("{a}",r??"")},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.select=function(r){var n=this.option,i=n.selectedMode;if(i){i!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[r]=!0}},t.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},t.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},t.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(xt);function Z3(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function EI(e,t,r,n){var i=e.getZoom(),a=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(Z3(e,s),n)),o!=null){if(r){var l=r.min||0,u=r.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),f=(t.originY-e.y)*(o-1);e.x-=c,e.y-=f,e.updateTransform(),e.setCenter(Z3(e,s),n),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var Z_e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.focusBlurEnabled=!0,r}return t.prototype.init=function(r,n){this._api=n},t.prototype.render=function(r,n,i,a){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Pj(i));var o=this._mapDraw;o.draw(r,n,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=r.get("silent"),this.group.add(o.group),this.updateSelectStatus(r,n,i)},t.prototype._handleRegionClick=function(r){var n;Hu(r.target,function(i){return(n=Ze(i).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(r,n,i){var a=this;this._mapDraw.group.traverse(function(o){var s=Ze(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(dr);function K_e(e,t,r){fs.registerMap(e,t,r)}function Ej(e){e.registerCoordinateSystem("geo",Rj),e.registerComponentModel(X_e),e.registerComponentView(Z_e),e.registerImpl("registerMap",K_e),e.registerImpl("getMap",function(r){return fs.getMapForUser(r)});function t(r,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[r](i.name);var u=l.coordinateSystem;V(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];V(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:i.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(r,n,i){var a=r.componentType||"series";n.eachComponent({mainType:a,query:r},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=EI(s,r,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&V(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function Q_e(e){pt(Ej),e.registerChartView($_e),e.registerSeriesModel(G_e),e.registerLayout(j_e),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,W_e),OW("map",e.registerAction)}function J_e(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[t],n,i;n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function ewe(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){nwe(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=iwe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function twe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function K3(e){return arguments.length?e:swe}function $p(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function rwe(e,t){return Fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function nwe(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function iwe(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=LC(s),a=OC(a),s&&a;){i=LC(i),o=OC(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(owe(awe(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!LC(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!OC(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function LC(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function OC(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function awe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function owe(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function swe(e,t){return e.parentNode===t.parentNode?1:2}var lwe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),uwe=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lwe},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=xe(n.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[c]=s[c],r.lineTo(h[0],h[1]),h[c]=l[c],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var v=1;v<a-1;v++){var g=i[v];r.moveTo(g[0],g[1]),h[c]=g[c],r.lineTo(h[0],h[1])}},t}(vt),cwe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new qe,r}return t.prototype.init=function(r,n){this._controller=new jg(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(r,n,i){var a=r.getData(),o=r.layoutInfo,s=this._mainGroup,l=r.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(r,i),this._updateController(r,n,i);var u=this._data;a.diff(u).add(function(c){Q3(a,c)&&J3(a,c,null,s,r)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!Q3(a,c)){d&&tB(u,f,d,s,r);return}J3(a,c,d,s,r)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&tB(u,c,f,s,r)}).execute(),this._nodeScaleRatio=r.get("nodeScaleRatio"),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:f})})}),this._data=a},t.prototype._updateViewCoordSys=function(r,n){var i=r.getData(),a=[];i.each(function(f){var d=i.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&a.push([+d.x,+d.y])});var o=[],s=[];iS(a,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=r.coordinateSystem=new Ug;c.zoomLimit=r.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(r.get("center"),n),c.setZoom(r.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!kS(u,i,r)}),o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){PI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){DI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(r),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),i=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(a,o){a.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(r){var n=r.coordinateSystem;if(n.type!=="view")return 1;var i=this._nodeScaleRatio,a=n.scaleX||1,o=n.getZoom(),s=(o-1)*i+1;return s/a},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Zt);function Q3(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function J3(e,t,r,n,i){var a=!r,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=e.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=e.getItemGraphicEl(f.dataIndex),h=f.getLayout(),v=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,g=o.getLayout();a?(r=new Fg(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=v.x,r.y=v.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=g.rawX,r.__radialRawY=g.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,Et(r,{x:g.x,y:g.y},i);var y=r.getSymbolPath();if(i.get("layout")==="radial"){var x=c.children[0],S=x.getLayout(),b=x.children.length,w=void 0,T=void 0;if(g.x===S.x&&o.isExpand===!0&&x.children.length){var C={x:(x.children[0].getLayout().x+x.children[b-1].getLayout().x)/2,y:(x.children[0].getLayout().y+x.children[b-1].getLayout().y)/2};w=Math.atan2(C.y-S.y,C.x-S.x),w<0&&(w=Math.PI*2+w),T=C.x<S.x,T&&(w=w-Math.PI)}else w=Math.atan2(g.y-S.y,g.x-S.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(T=g.x<S.x,T&&(w=w-Math.PI)):(T=g.x>S.x,T||(w=w-Math.PI));var M=T?"left":"right",k=s.getModel("label"),I=k.get("rotate"),P=I*(Math.PI/180),R=y.getTextContent();R&&(y.setTextConfig({position:k.get("position")||M,rotation:I==null?-w:P,origin:"center"}),R.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),O=L==="relative"?m1(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;O&&(Ze(r).focus=O),fwe(i,o,c,r,v,h,g,n),r.__edge&&(r.onHoverStateChange=function(N){if(N!=="blur"){var B=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);B&&B.hoverState===Ig||M1(r.__edge,N)}})}function fwe(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),g=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(g||(g=n.__edge=new Dg({shape:CA(c,f,d,i,i)})),Et(g,{shape:CA(c,f,d,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var y=t.children,x=[],S=0;S<y.length;S++){var b=y[S].getLayout();x.push([b.x,b.y])}g||(g=n.__edge=new uwe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),Et(g,{shape:{parentPoint:[o.x,o.y],childPoints:x}},e)}g&&!(u==="polyline"&&!t.isExpand)&&(g.useStyle(Ve({strokeNoScale:!0,fill:null},v)),cn(g,l,"lineStyle"),hc(g),s.add(g))}function eB(e,t,r,n,i){var a=t.tree.root,o=Lj(a,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),h=n.get("edgeShape"),v=n.get("layout"),g=n.get("orient"),y=n.get(["lineStyle","curveness"]);d&&(h==="curve"?Sl(d,{shape:CA(v,g,y,l,l),style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:i}):h==="polyline"&&n.get("layout")==="orthogonal"&&Sl(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:i}))}}function Lj(e,t){for(var r=t.parentNode===e?t:t.parentNode||t,n;n=r.getLayout(),n==null;)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function tB(e,t,r,n,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=Lj(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Sl(r,{x:s.x+1,y:s.y+1},i,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach(function(u){eB(u,e,n,i,l)}),eB(a,e,n,i,l)}function CA(e,t,r,n,i){var a,o,s,l,u,c,f,d;if(e==="radial"){u=n.rawX,f=n.rawY,c=i.rawX,d=i.rawY;var h=$p(u,f),v=$p(u,f+(d-f)*r),g=$p(c,d+(f-d)*r),y=$p(c,d);return{x1:h.x||0,y1:h.y||0,x2:y.x||0,y2:y.y||0,cpx1:v.x||0,cpy1:v.y||0,cpx2:g.x||0,cpy2:g.y||0}}else u=n.x,f=n.y,c=i.x,d=i.y,(t==="LR"||t==="RL")&&(a=u+(c-u)*r,o=f,s=c+(u-c)*r,l=d),(t==="TB"||t==="BT")&&(a=u,o=f+(d-f)*r,s=c,l=d+(f-d)*r);return{x1:u,y1:f,x2:c,y2:d,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var ea=Tt();function Oj(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,Nj(t,r,e),V(r,function(n){V(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,Je(dwe,e))})}),t.wrapMethod("cloneShallow",Je(pwe,e)),V(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,Je(hwe,e))}),zn(r[t.dataType]===t)}function dwe(e,t){if(mwe(this)){var r=oe({},ea(this).datas);r[this.dataType]=t,Nj(t,r,e)}else LI(t,this.dataType,ea(this).mainData,e);return t}function hwe(e,t){return e.struct&&e.struct.update(),t}function pwe(e,t){return V(ea(t).datas,function(r,n){r!==t&&LI(r.cloneShallow(),n,t,e)}),t}function vwe(e){var t=ea(this).mainData;return e==null||t==null?t:ea(t).datas[e]}function gwe(){var e=ea(this).mainData;return e==null?[{data:e}]:de(St(ea(e).datas),function(t){return{type:t,data:ea(e).datas[t]}})}function mwe(e){return ea(e).mainData===e}function Nj(e,t,r){ea(e).datas={},V(t,function(n,i){LI(n,i,e,r)})}function LI(e,t,r,n){ea(r).datas[t]=e,ea(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=vwe,e.getLinkedDataAll=gwe}var ywe=function(){function e(t,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=r}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,r,n){Be(t)&&(n=r,r=t,t=null),t=t||{},_e(t)&&(t={order:t});var i=t.order||"preorder",a=this[t.attr||"children"],o;i==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(t,r,n);i==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>r&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].getNodeById(t);if(a)return a}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].contains(t);if(a)return a}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),OI=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,i=r.length;n<i;n++)r[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var i=new e(r),a=[],o=1;s(t);function s(c,f){var d=c.value;o=Math.max(o,ue(d)?d.length:1),a.push(c);var h=new ywe(Br(c.name,""),i);f?xwe(h,f):i.root=h,i._nodes.push(h);var v=c.children;if(v)for(var g=0;g<v.length;g++)s(v[g],h)}i.root.updateDepthAndHeight(0);var l=zg(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new On(l,r);return u.initData(a),n&&n(u),Oj({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},e}();function xwe(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}function rg(e,t,r){if(e&&ft(t,e.type)>=0){var n=r.getData().tree.root,i=e.targetNode;if(_e(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function zj(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function NI(e,t){var r=zj(e);return ft(r,t)>=0}function PS(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var Swe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new Bt(i,this,this.ecModel),o=OI.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(d.parentModel=a),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Yr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=PS(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(or);function bwe(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;a=i.pop();)t(a,r)}function xp(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)r.push(i[a])}}function _we(e,t){e.eachSeriesByType("tree",function(r){wwe(r,t)})}function wwe(e,t){var r=rwe(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=K3(function(b,w){return(b.parentNode===w.parentNode?1:2)/b.depth})):(i=r.width,a=r.height,o=K3());var s=e.getData().tree.root,l=s.children[0];if(l){J_e(s),bwe(l,ewe,o),s.hierNode.modifier=-l.hierNode.prelim,xp(l,twe);var u=l,c=l,f=l;xp(l,function(b){var w=b.getLayout().x;w<u.getLayout().x&&(u=b),w>c.getLayout().x&&(c=b),b.depth>f.depth&&(f=b)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,v=0,g=0,y=0,x=0;if(n==="radial")v=i/(c.getLayout().x+d+h),g=a/(f.depth-1||1),xp(l,function(b){y=(b.getLayout().x+h)*v,x=(b.depth-1)*g;var w=$p(y,x);b.setLayout({x:w.x,y:w.y,rawX:y,rawY:x},!0)});else{var S=e.getOrient();S==="RL"||S==="LR"?(g=a/(c.getLayout().x+d+h),v=i/(f.depth-1||1),xp(l,function(b){x=(b.getLayout().x+h)*g,y=S==="LR"?(b.depth-1)*v:i-(b.depth-1)*v,b.setLayout({x:y,y:x},!0)})):(S==="TB"||S==="BT")&&(v=i/(c.getLayout().x+d+h),g=a/(f.depth-1||1),xp(l,function(b){y=(b.getLayout().x+h)*v,x=S==="TB"?(b.depth-1)*g:a-(b.depth-1)*g,b.setLayout({x:y,y:x},!0)}))}}}function Cwe(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");oe(s,o)})})}function Twe(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=EI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function Awe(e){e.registerChartView(cwe),e.registerSeriesModel(Swe),e.registerLayout(_we),e.registerVisual(Cwe),Twe(e)}var rB=["treemapZoomToNode","treemapRender","treemapMove"];function Mwe(e){for(var t=0;t<rB.length;t++)e.registerAction({type:rB[t],update:"updateView"},Mr);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=rg(r,s,a);if(l){var u=a.getViewRoot();u&&(r.direction=NI(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function Bj(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=K2(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var kwe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};Fj(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new Bt({itemStyle:o},this,n);a=r.levels=Iwe(a,n);var l=de(a||[],function(f){return new Bt(f,s,n)},this),u=OI.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var v=u.getNodeByDataIndex(h),g=v?l[v.depth]:null;return d.parentModel=g||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Yr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=PS(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},oe(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=Re(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){Bj(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(or);function Fj(e){var t=0;V(e.children,function(n){Fj(n);var i=n.value;ue(i)&&(i=i[0]),t+=i});var r=e.value;ue(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),ue(e.value)?e.value[0]=r:e.value=r}function Iwe(e,t){var r=Ut(t.get("color")),n=Ut(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;V(e,function(s){var l=new Bt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}var Pwe=8,nB=8,NC=5,Dwe=function(){function e(t){this.group=new qe,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),mS(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=Br(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+Pwe*2,r.emptyItemWidth);r.totalWidth+=s+nB,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=Bme(r.pos,r.box),d=r.totalWidth,h=r.renderList,v=i.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var y=h[g],x=y.node,S=y.width,b=y.text;d>f.width&&(d-=S-u,S=u,b=null);var w=new Vn({shape:{points:Rwe(l,0,S,c,g===h.length-1,g===0)},style:Ve(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new kt({style:ar(a,{text:b})}),textConfig:{position:"inside"},z2:Ld*1e4,onclick:Je(s,x)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=ar(o,{text:b}),w.ensureState("emphasis").style=v,mr(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),Ewe(w,t,x),l+=S+nB}},e.prototype.remove=function(){this.group.removeAll()},e}();function Rwe(e,t,r,n,i,a){var o=[[i?e:e-NC,t],[e+r,t],[e+r,t+n],[i?e:e-NC,t+n]];return!a&&o.splice(2,0,[e+r+NC,t+n/2]),!i&&o.push([e,t+n/2]),o}function Ewe(e,t,r){Ze(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&PS(r,t)}}var Lwe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function Owe(){return new Lwe}var TA=qe,iB=Ct,aB=3,oB="label",sB="upperLabel",Nwe=Ld*10,zwe=Ld*2,Bwe=Ld*3,Mu=dc([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),lB=function(e){var t=Mu(e);return t.stroke=t.fill=t.lineWidth=null,t},Z1=Tt(),Fwe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=Sp(),r}return t.prototype.render=function(r,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(ft(o,r)<0)){this.seriesModel=r,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=rg(a,s,r),u=a&&a.type,c=r.layoutInfo,f=!this._oldTree,d=this._storage,h=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,v=this._giveContainerGroup(c),g=r.get("animation"),y=this._doRender(v,r,h);g&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,y,r,h):y.renderFinally(),this._resetController(i),this._renderBreadcrumb(r,i,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new TA,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,i){var a=n.getData().tree,o=this._oldTree,s=Sp(),l=Sp(),u=this._storage,c=[];function f(S,b,w,T){return Vwe(n,l,u,i,s,c,S,b,w,T)}g(a.root?[a.root]:[],o&&o.root?[o.root]:[],r,a===o||!o,0);var d=y(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var h=this.seriesModel.layoutInfo,v=a.root.getLayout();v.width===h.width&&v.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:d,renderFinally:x};function g(S,b,w,T,C){T?(b=S,V(S,function(I,P){!I.isRemoved()&&k(P,P)})):new us(b,S,M,M).add(k).update(k).remove(Je(k,null)).execute();function M(I){return I.getId()}function k(I,P){var R=I!=null?S[I]:null,L=P!=null?b[P]:null,O=f(R,L,w,C);O&&g(R&&R.viewChildren||[],L&&L.viewChildren||[],O,T,C+1)}}function y(S){var b=Sp();return S&&V(S,function(w,T){var C=b[T];V(w,function(M){M&&(C.push(M),Z1(M).willDelete=!0)})}),b}function x(){V(d,function(S){V(S,function(b){b.parent&&b.parent.remove(b)})}),V(c,function(S){S.invisible=!0,S.dirty()})}},t.prototype._doAnimation=function(r,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(Be(o)?0:o)||0,u=(Be(s)?null:s)||"cubicOut",c=Owe();V(n.willDeleteEls,function(f,d){V(f,function(h,v){if(!h.invisible){var g=h.parent,y,x=Z1(g);if(a&&a.direction==="drillDown")y=g===a.rootNodeGroup?{shape:{x:0,y:0,width:x.nodeWidth,height:x.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var S=0,b=0;x.willDelete||(S=x.nodeWidth/2,b=x.nodeHeight/2),y=d==="nodeGroup"?{x:S,y:b,style:{opacity:0}}:{shape:{x:S,y:b,width:0,height:0},style:{opacity:0}}}y&&c.add(h,y,l,0,u)}})}),V(this._storage,function(f,d){V(f,function(h,v){var g=n.lastsForAnimation[d][v],y={};g&&(h instanceof qe?g.oldX!=null&&(y.x=h.x,y.y=h.y,h.x=g.oldX,h.y=g.oldY):(g.oldShape&&(y.shape=oe({},h.shape),h.setShape(g.oldShape)),g.fadein?(h.setStyle("opacity",0),y.style={opacity:1}):h.style.opacity!==1&&(y.style={opacity:1})),c.add(h,y,l,0,u))})},this),this._state="animating",c.finished(Ae(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),n||(n=this._controller=new jg(r.getZr()),n.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),n.on("pan",Ae(this._onPan,this)),n.on("zoom",Ae(this._onZoom,this)));var a=new rt(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(o,s,l){return a.contain(s,l)})},t.prototype._clearController=function(){var r=this._controller;this._controllerHost=null,r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>aB||Math.abs(r.dy)>aB)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new rt(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=a,u){var d=u.min||0,h=u.max||1/0;f=Math.max(Math.min(h,f),d)}var v=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;n-=g.x,i-=g.y;var y=wi();Co(y,y,[-n,-i]),Tk(y,y,[v,v]),Co(y,y,[n,i]),l.applyTransform(y),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&E1(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Dwe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(NI(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Sp(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(Zt);function Sp(){return{nodeGroup:[],background:[],content:[]}}function Vwe(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,v=c.height,g=c.borderWidth,y=c.invisible,x=o.getRawIndex(),S=s&&s.getRawIndex(),b=o.viewChildren,w=c.upperHeight,T=b&&b.length,C=d.getModel("itemStyle"),M=d.getModel(["emphasis","itemStyle"]),k=d.getModel(["blur","itemStyle"]),I=d.getModel(["select","itemStyle"]),P=C.get("borderRadius")||0,R=re("nodeGroup",TA);if(!R)return;if(l.add(R),R.x=c.x||0,R.y=c.y||0,R.markRedraw(),Z1(R).nodeWidth=h,Z1(R).nodeHeight=v,c.isAboveViewRoot)return R;var L=re("background",iB,u,zwe);L&&X(R,L,T&&c.upperLabelHeight);var O=d.getModel("emphasis"),N=O.get("focus"),B=O.get("blurScope"),G=O.get("disabled"),q=N==="ancestor"?o.getAncestorsIndices():N==="descendant"?o.getDescendantIndices():N;if(T)Hv(R)&&$u(R,!1),L&&($u(L,!G),f.setItemGraphicEl(o.dataIndex,L),H2(L,q,B));else{var H=re("content",iB,u,Bwe);H&&F(R,H),L.disableMorphing=!0,L&&Hv(L)&&$u(L,!1),$u(R,!G),f.setItemGraphicEl(o.dataIndex,R),H2(R,q,B)}return R;function X(pe,ae,he){var ve=Ze(ae);if(ve.dataIndex=o.dataIndex,ve.seriesIndex=e.seriesIndex,ae.setShape({x:0,y:0,width:h,height:v,r:P}),y)Y(ae);else{ae.invisible=!1;var fe=o.getVisual("style"),ge=fe.stroke,De=lB(C);De.fill=ge;var Ie=Mu(M);Ie.fill=M.get("borderColor");var $e=Mu(k);$e.fill=k.get("borderColor");var dt=Mu(I);if(dt.fill=I.get("borderColor"),he){var ct=h-2*g;Z(ae,ge,fe.opacity,{x:g,y:0,width:ct,height:w})}else ae.removeTextContent();ae.setStyle(De),ae.ensureState("emphasis").style=Ie,ae.ensureState("blur").style=$e,ae.ensureState("select").style=dt,hc(ae)}pe.add(ae)}function F(pe,ae){var he=Ze(ae);he.dataIndex=o.dataIndex,he.seriesIndex=e.seriesIndex;var ve=Math.max(h-2*g,0),fe=Math.max(v-2*g,0);if(ae.culling=!0,ae.setShape({x:g,y:g,width:ve,height:fe,r:P}),y)Y(ae);else{ae.invisible=!1;var ge=o.getVisual("style"),De=ge.fill,Ie=lB(C);Ie.fill=De,Ie.decal=ge.decal;var $e=Mu(M),dt=Mu(k),ct=Mu(I);Z(ae,De,ge.opacity,null),ae.setStyle(Ie),ae.ensureState("emphasis").style=$e,ae.ensureState("blur").style=dt,ae.ensureState("select").style=ct,hc(ae)}pe.add(ae)}function Y(pe){!pe.invisible&&a.push(pe)}function Z(pe,ae,he,ve){var fe=d.getModel(ve?sB:oB),ge=Br(d.get("name"),null),De=fe.getShallow("show");fn(pe,Ur(d,ve?sB:oB),{defaultText:De?ge:null,inheritColor:ae,defaultOpacity:he,labelFetcher:e,labelDataIndex:o.dataIndex});var Ie=pe.getTextContent();if(Ie){var $e=Ie.style,dt=_k($e.padding||0);ve&&(pe.setTextConfig({layoutRect:ve}),Ie.disableLabelLayout=!0),Ie.beforeUpdate=function(){var bt=Math.max((ve?ve.width:pe.shape.width)-dt[1]-dt[3],0),At=Math.max((ve?ve.height:pe.shape.height)-dt[0]-dt[2],0);($e.width!==bt||$e.height!==At)&&Ie.setStyle({width:bt,height:At})},$e.truncateMinChar=2,$e.lineOverflow="truncate",j($e,ve,c);var ct=Ie.getState("emphasis");j(ct?ct.style:null,ve,c)}}function j(pe,ae,he){var ve=pe?pe.text:null;if(!ae&&he.isLeafRoot&&ve!=null){var fe=e.get("drillDownIcon",!0);pe.text=fe?fe+" "+ve:ve}}function re(pe,ae,he,ve){var fe=S!=null&&r[pe][S],ge=i[pe];return fe?(r[pe][S]=null,ce(ge,fe)):y||(fe=new ae,fe instanceof na&&(fe.z2=$we(he,ve)),te(ge,fe)),t[pe][x]=fe}function ce(pe,ae){var he=pe[x]={};ae instanceof TA?(he.oldX=ae.x,he.oldY=ae.y):he.oldShape=oe({},ae.shape)}function te(pe,ae){var he=pe[x]={},ve=o.parentNode,fe=ae instanceof qe;if(ve&&(!n||n.direction==="drillDown")){var ge=0,De=0,Ie=i.background[ve.getRawIndex()];!n&&Ie&&Ie.oldShape&&(ge=Ie.oldShape.width,De=Ie.oldShape.height),fe?(he.oldX=0,he.oldY=De):he.oldShape={x:ge,y:De,width:0,height:0}}he.fadein=!fe}}function $we(e,t){return e*Nwe+t}var ng=V,Gwe=Ge,K1=-1,jr=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=We(t);this.type=n,this.mappingMethod=r,this._normalizeData=jwe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(zC(i),Hwe(i)):r==="category"?i.categories?Wwe(i):zC(i,!0):(zn(r!=="linear"||i.dataExtent),zC(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return Ae(this._normalizeData,this)},e.listVisualTypes=function(){return St(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Ge(t)?V(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=ue(t)?[]:Ge(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&ng(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(ue(t))t=t.slice();else if(Gwe(t)){var r=[];ng(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===t||_e(l)&&l===t+"")return o;n&&d(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(d0(f[1],t,c[1]))return o}else if(c[1]===1/0){if(d0(f[0],c[0],t))return o}else if(d0(f[0],c[0],t)&&d0(f[1],t,c[1]))return o;n&&d(c[0],o),n&&d(c[1],o)}}if(n)return t===1/0?r.length-1:t===-1/0?0:i;function d(h,v){var g=Math.abs(h-t);g<a&&(a=g,i=v)}},e.visualHandlers={color:{applyVisual:bp("color"),getColorMapper:function(){var t=this.option;return Ae(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),Gp.call(this,r)}:function(r,n,i){var a=!!i;return!n&&(r=this._normalizeData(r)),i=mw(r,t.parsedVisual,i),a?i:Jo(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Jo(mw(t,this.option.parsedVisual),"rgba")},category:Gp,piecewise:function(t,r){var n=MA.call(this,r);return n==null&&(n=Jo(mw(t,this.option.parsedVisual),"rgba")),n},fixed:ku}},colorHue:f0(function(t,r){return ov(t,r)}),colorSaturation:f0(function(t,r){return ov(t,null,r)}),colorLightness:f0(function(t,r){return ov(t,null,null,r)}),colorAlpha:f0(function(t,r){return b1(t,r)}),decal:{applyVisual:bp("decal"),_normalizedToVisual:{linear:null,category:Gp,piecewise:null,fixed:null}},opacity:{applyVisual:bp("opacity"),_normalizedToVisual:AA([0,1])},liftZ:{applyVisual:bp("liftZ"),_normalizedToVisual:{linear:ku,category:ku,piecewise:ku,fixed:ku}},symbol:{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:uB,category:Gp,piecewise:function(t,r){var n=MA.call(this,r);return n==null&&(n=uB.call(this,t)),n},fixed:ku}},symbolSize:{applyVisual:bp("symbolSize"),_normalizedToVisual:AA([0,1])}},e}();function Hwe(e){var t=e.pieceList;e.hasSpecialVisual=!1,V(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function Wwe(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(ng(t,function(o,s){r[o]=s}),!ue(n)){var i=[];Ge(n)?ng(n,function(o,s){var l=r[s];i[l??K1]=o}):i[K1]=n,n=Vj(e,i)}for(var a=t.length-1;a>=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function zC(e,t){var r=e.visual,n=[];Ge(r)?ng(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),Vj(e,n)}function f0(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:AA([0,1])}}function uB(e){var t=this.option.visual;return t[Math.round(Vt(e,[0,1],[0,t.length-1],!0))]||{}}function bp(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function Gp(e){var t=this.option.visual;return t[this.option.loop&&e!==K1?e%t.length:e]}function ku(){return this.option.visual[0]}function AA(e){return{linear:function(t){return Vt(t,e,this.option.visual,!0)},category:Gp,piecewise:function(t,r){var n=MA.call(this,r);return n==null&&(n=Vt(t,e,this.option.visual,!0)),n},fixed:ku}}function MA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=jr.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function Vj(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=de(t,function(r){var n=Ci(r);return n||[0,0,0,1]})),t}var jwe={linear:function(e){return Vt(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=jr.findPieceIndex(e,t,!0);if(r!=null)return Vt(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??K1},fixed:Mr};function d0(e,t,r){return e?t<=r:t<r}var Uwe="itemStyle",$j=Tt();const Ywe={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||Gj(r,{},e.getViewRoot().getAncestors(),e)}};function Gj(e,t,r,n){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(Uwe),l=qwe(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=cB(l),c=Xwe(f,d)),u.stroke=c;var h=e.viewChildren;if(!h||!h.length)d=cB(l),u.fill=d;else{var v=Zwe(e,i,a,s,l,h);V(h,function(g,y){if(g.depth>=r.length||g===r[g.depth]){var x=Kwe(i,l,g,y,v,n);Gj(g,x,r,n)}})}}}function qwe(e,t,r){var n=oe({},t),i=r.designatedVisualItemStyle;return V(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function cB(e){var t=BC(e,"color");if(t){var r=BC(e,"colorAlpha"),n=BC(e,"colorSaturation");return n&&(t=ov(t,null,null,n)),r&&(t=b1(t,r)),t}}function Xwe(e,t){return t!=null?ov(t,null,null,e):null}function BC(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function Zwe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=FC(t,"color")||i.color!=null&&i.color!=="none"&&(FC(t,"colorAlpha")||FC(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new jr(f);return $j(d).drColorMappingBy=c,d}}}function FC(e,t){var r=e.get(t);return ue(r)&&r.length?{name:t,range:r}:null}function Kwe(e,t,r,n,i,a){var o=oe({},t);if(i){var s=i.type,l=s==="color"&&$j(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var ig=Math.max,Q1=Math.min,fB=Qr,zI=V,Hj=["itemStyle","borderWidth"],Qwe=["itemStyle","gapWidth"],Jwe=["upperLabel","show"],eCe=["upperLabel","height"];const tCe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=Fr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=xe(fB(s.width,l[0]),i),c=xe(fB(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=rg(n,d,e),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,g=e.getViewRoot(),y=zj(g);if(f!=="treemapMove"){var x=f==="treemapZoomToNode"?sCe(e,h,g,u,c):v?[v.width,v.height]:[u,c],S=o.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var b={squareRatio:o.squareRatio,sort:S,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var w={x:0,y:0,width:x[0],height:x[1],area:x[0]*x[1]};g.setLayout(w),Wj(g,b,!1,0),w=g.getLayout(),zI(y,function(C,M){var k=(y[M+1]||g).getValue();C.setLayout(oe({dataExtent:[k,k],borderWidth:0,upperHeight:0},w))})}var T=e.getData().tree.root;T.setLayout(lCe(s,v,h),!0),e.setLayoutInfo(s),jj(T,new rt(-s.x,-s.y,i,a),y,g,0)}};function Wj(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(Hj),u=s.get(Qwe)/2,c=Uj(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=ig(i-2*d,0),a=ig(a-d-h,0);var v=i*a,g=rCe(e,s,v,t,r,n);if(g.length){var y={x:d,y:h,width:i,height:a},x=Q1(i,a),S=1/0,b=[];b.area=0;for(var w=0,T=g.length;w<T;){var C=g[w];b.push(C),b.area+=C.getLayout().area;var M=oCe(b,x,t.squareRatio);M<=S?(w++,S=M):(b.area-=b.pop().getLayout().area,dB(b,x,y,u,!1),x=Q1(y.width,y.height),b.length=b.area=0,S=1/0)}if(b.length&&dB(b,x,y,u,!0),!r){var k=s.get("childrenVisibleMin");k!=null&&v<k&&(r=!0)}for(var w=0,T=g.length;w<T;w++)Wj(g[w],t,r,n+1)}}}function rCe(e,t,r,n,i,a){var o=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return e.viewChildren=[];o=Wt(o,function(h){return!h.isRemoved()}),iCe(o,s);var u=aCe(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=nCe(t,r,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var d=o[c].getValue()/u.sum*r;o[c].setLayout({area:d})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function nCe(e,t,r,n,i){if(!n)return r;for(var a=e.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*t<a&&(s=l,r-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),r}function iCe(e,t){return t&&e.sort(function(r,n){var i=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return i===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:i}),e}function aCe(e,t,r){for(var n=0,i=0,a=t.length;i<a;i++)n+=t[i].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&r?(s=[t[t.length-1].getValue(),t[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],zI(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function oCe(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=e.area*e.area,u=t*t*r;return l?ig(u*n/l,l/(u*i)):1/0}function dB(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,d=e.length;f<d;f++){var h=e[f],v={},g=c?h.getLayout().area/c:0,y=v[l[o]]=ig(c-2*n,0),x=r[s[a]]+r[l[a]]-u,S=f===d-1||x<g?x:g,b=v[l[a]]=ig(S-2*n,0);v[s[o]]=r[s[o]]+Q1(n,y/2),v[s[a]]=u+Q1(n,b/2),u+=S,h.setLayout(v,!0)}r[s[o]]+=c,r[l[o]]-=c}function sCe(e,t,r,n,i){var a=(t||{}).node,o=[n,i];if(!a||a===r)return o;for(var s,l=n*i,u=l*e.option.zoomToNodeRatio;s=a.parentNode;){for(var c=0,f=s.children,d=0,h=f.length;d<h;d++)c+=f[d].getValue();var v=a.getValue();if(v===0)return o;u*=c/v;var g=s.getModel(),y=g.get(Hj),x=Math.max(y,Uj(g));u+=4*y*y+(3*y+x)*Math.pow(u,.5),u>AN&&(u=AN),a=s}u<l&&(u=l);var S=Math.pow(u/l,.5);return[n*S,i*S]}function lCe(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;var i=r.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function jj(e,t,r,n,i){var a=e.getLayout(),o=r[i],s=o&&o===e;if(!(o&&!s||i===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new rt(t.x-a.x,t.y-a.y,t.width,t.height);zI(e.viewChildren||[],function(u){jj(u,l,r,n,i+1)})}}function Uj(e){return e.get(Jwe)?e.get(eCe):0}function uCe(e){e.registerSeriesModel(kwe),e.registerChartView(Fwe),e.registerVisual(Ywe),e.registerLayout(tCe),Mwe(e)}function cCe(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){Dt(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function fCe(e){var t={};e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&n.setItemVisual(o,c[f],d)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){_e(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(o,"style");oe(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)i.setItemVisual(o,f[d],n.getItemVisual(l,f[d]))}})})}function h0(e){return e instanceof Array||(e=[e,e]),e}function dCe(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),i=h0(t.get("edgeSymbol")),a=h0(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=h0(s.getShallow("symbol",!0)),c=h0(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=n.ensureUniqueItemVisual(o,"style");switch(oe(d,f),d.stroke){case"source":{var h=l.node1.getVisual("style");d.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");d.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var kA="-->",DS=function(e){return e.get("autoCurveness")||null},Yj=function(e,t){var r=DS(e),n=20,i=[];if(Dt(r))n=r;else if(ue(r)){e.__curvenessList=r;return}t>n&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},ag=function(e,t,r){var n=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[r.uid,n,i].join(kA)},qj=function(e){var t=e.split(kA);return[t[0],t[2],t[1]].join(kA)},hCe=function(e,t){var r=ag(e.node1,e.node2,t);return t.__edgeMap[r]},pCe=function(e,t){var r=IA(ag(e.node1,e.node2,t),t),n=IA(ag(e.node2,e.node1,t),t);return r+n},IA=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function vCe(e){DS(e)&&(e.__curvenessList=[],e.__edgeMap={},Yj(e))}function gCe(e,t,r,n){if(DS(r)){var i=ag(e,t,r),a=r.__edgeMap,o=a[qj(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function BI(e,t,r,n){var i=DS(t),a=ue(i);if(!i)return null;var o=hCe(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=pCe(e,t);Yj(t,u),e.lineStyle=e.lineStyle||{};var c=ag(e.node1,e.node2,t),f=t.__curvenessList,d=a||u%2?0:1;if(o.isForward)return f[d+s];var h=qj(c),v=IA(h,t),g=f[s+v+d];return n?a?i&&i[0]===0?(v+d)%2?g:-g:((v%2?0:1)+d)%2?g:-g:(v+d)%2?g:-g:f[s+v+d]}function Xj(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),FI(r,e)}}function FI(e,t){e.eachEdge(function(r,n){var i=go(r.getModel().get(["lineStyle","curveness"]),-BI(r,t,n,!0),0),a=Ko(r.node1.getLayout()),o=Ko(r.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),r.setLayout(s)})}function mCe(e,t){e.eachSeriesByType("graph",function(r){var n=r.get("layout"),i=r.coordinateSystem;if(i&&i.type!=="view"){var a=r.getData(),o=[];V(i.dimensions,function(d){o=o.concat(a.mapDimensionsAll(d))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=a.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}FI(a.graph,r)}else(!n||n==="none")&&Xj(r)})}function Hp(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var r=e.option.nodeScaleRatio,n=t.scaleX,i=t.getZoom(),a=(i-1)*r+1;return a/n}function Wp(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var hB=Math.PI,VC=[];function VI(e,t,r,n){var i=e.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(r){var d=i.pointToData(n),h=d[0],v=d[1],g=[h-l,v-u];Dd(g,g),R0(g,g,c),r.setLayout([l+g[0],u+g[1]],!0);var y=e.get(["circular","rotateLabel"]);Zj(r,y,l,u)}yCe[t](e,s,o,c,l,u,f),s.eachEdge(function(x,S){var b=go(x.getModel().get(["lineStyle","curveness"]),BI(x,e,S),0),w=Ko(x.node1.getLayout()),T=Ko(x.node2.getLayout()),C,M=(w[0]+T[0])/2,k=(w[1]+T[1])/2;+b&&(b*=3,C=[l*b+M*(1-b),u*b+k*(1-b)]),x.setLayout([w,T,C])})}}}var yCe={value:function(e,t,r,n,i,a,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=d})},symbolSize:function(e,t,r,n,i,a,o){var s=0;VC.length=o;var l=Hp(e);t.eachNode(function(f){var d=Wp(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/n);isNaN(h)&&(h=hB/2),VC[f.dataIndex]=h,s+=h*2});var u=(2*hB-s)/o/2,c=0;t.eachNode(function(f){var d=u+VC[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+i,n*Math.sin(c)+a]),c+=d})}};function Zj(e,t,r,n){var i=e.getGraphicEl();if(i){var a=e.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var c=l[0]<r;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");oe(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function xCe(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&VI(t,"symbolSize")})}var bf=p2;function SCe(e,t,r){for(var n=e,i=t,a=r.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=r.gravity==null?.1:r.gravity,c=0;c<n.length;c++){var f=n[c];f.p||(f.p=_c(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Ko(f.p),f.edges=null}var d=r.friction==null?.6:r.friction,h=d,v,g;return{warmUp:function(){h=d*.8},setFixed:function(y){n[y].fixed=!0},setUnfixed:function(y){n[y].fixed=!1},beforeStep:function(y){v=y},afterStep:function(y){g=y},step:function(y){v&&v(n,i);for(var x=[],S=n.length,b=0;b<i.length;b++){var w=i[b];if(!w.ignoreForceLayout){var T=w.n1,C=w.n2;Fu(x,C.p,T.p);var M=v2(x)-w.d,k=C.w/(T.w+C.w);isNaN(k)&&(k=0),Dd(x,x),!T.fixed&&bf(T.p,T.p,x,k*M*h),!C.fixed&&bf(C.p,C.p,x,-(1-k)*M*h)}}for(var b=0;b<S;b++){var I=n[b];I.fixed||(Fu(x,l,I.p),bf(I.p,I.p,x,u*h))}for(var b=0;b<S;b++)for(var T=n[b],P=b+1;P<S;P++){var C=n[P];Fu(x,C.p,T.p);var M=v2(x);M===0&&(Yhe(x,Math.random()-.5,Math.random()-.5),M=1);var R=(T.rep+C.rep)/M/M;!T.fixed&&bf(T.pp,T.pp,x,R),!C.fixed&&bf(C.pp,C.pp,x,-R)}for(var L=[],b=0;b<S;b++){var I=n[b];I.fixed||(Fu(L,I.p,I.pp),bf(I.p,I.p,L,h),Dn(I.pp,I.p))}h=h*.992;var O=h<.01;g&&g(n,i,O),y&&y(O)}}}function bCe(e){e.eachSeriesByType("graph",function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},i=t.getGraph(),a=i.data,o=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?a.each(function(b){var w=a.getId(b);a.setItemLayout(b,n[w]||[NaN,NaN])}):!l||l==="none"?Xj(t):l==="circular"&&VI(t,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=ue(f)?f:[f,f],v=ue(d)?d:[d,d];v=[v[1],v[0]];var g=a.mapArray("value",function(b,w){var T=a.getItemLayout(w),C=Vt(b,u,h);return isNaN(C)&&(C=(h[0]+h[1])/2),{w:C,rep:C,fixed:a.getItemModel(w).get("fixed"),p:!T||isNaN(T[0])||isNaN(T[1])?null:T}}),y=o.mapArray("value",function(b,w){var T=i.getEdgeByIndex(w),C=Vt(b,c,v);isNaN(C)&&(C=(v[0]+v[1])/2);var M=T.getModel(),k=go(T.getModel().get(["lineStyle","curveness"]),-BI(T,t,w,!0),0);return{n1:g[T.node1.dataIndex],n2:g[T.node2.dataIndex],d:C,curveness:k,ignoreForceLayout:M.get("ignoreForceLayout")}}),x=r.getBoundingRect(),S=SCe(g,y,{rect:x,gravity:s.get("gravity"),friction:s.get("friction")});S.beforeStep(function(b,w){for(var T=0,C=b.length;T<C;T++)b[T].fixed&&Dn(b[T].p,i.getNodeByIndex(T).getLayout())}),S.afterStep(function(b,w,T){for(var C=0,M=b.length;C<M;C++)b[C].fixed||i.getNodeByIndex(C).setLayout(b[C].p),n[a.getId(C)]=b[C].p;for(var C=0,M=w.length;C<M;C++){var k=w[C],I=i.getEdgeByIndex(C),P=k.n1.p,R=k.n2.p,L=I.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Dn(L[0],P),Dn(L[1],R),+k.curveness&&(L[2]=[(P[0]+R[0])/2-(P[1]-R[1])*k.curveness,(P[1]+R[1])/2-(R[0]-P[0])*k.curveness]),I.setLayout(L)}}),t.forceLayout=S,t.preservedPoints=n,S.step()}else t.forceLayout=null})}function _Ce(e,t,r){var n=oe(e.getBoxLayoutParams(),{aspect:r});return Fr(n,{width:t.getWidth(),height:t.getHeight()})}function wCe(e,t){var r=[];return e.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(y){var x=a.getItemModel(y);return[+x.get("x"),+x.get("y")]}),s=[],l=[];iS(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=_Ce(n,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],h=c.width,v=c.height,g=n.coordinateSystem=new Ug;g.zoomLimit=n.get("scaleLimit"),g.setBoundingRect(s[0],s[1],f,d),g.setViewRect(c.x,c.y,h,v),g.setCenter(n.get("center"),t),g.setZoom(n.get("zoom")),r.push(g)}}),r}var pB=Hr.prototype,$C=Dg.prototype,Kj=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Kj);function GC(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var CCe=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Kj},t.prototype.buildPath=function(r,n){GC(n)?pB.buildPath.call(this,r,n):$C.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return GC(this.shape)?pB.pointAt.call(this,r):$C.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,i=GC(n)?[n.x2-n.x1,n.y2-n.y1]:$C.tangentAt.call(this,r);return Dd(i,i)},t}(vt),HC=["fromSymbol","toSymbol"];function vB(e){return"_"+e+"Type"}function gB(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Wd(i),u=Tc(o||0,l);return n+l+u+(a||"")+(s||"")}function mB(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Wd(i),u=Tc(o||0,l),c=Er(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=e,c}}function TCe(e){var t=new CCe({name:"line",subPixelOptimize:!0});return PA(t.shape,e),t}function PA(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var $I=function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;return a._createLine(r,n,i),a}return t.prototype._createLine=function(r,n,i){var a=r.hostModel,o=r.getItemLayout(n),s=TCe(o);s.shape.percent=0,lr(s,{shape:{percent:1}},a,n),this.add(s),V(HC,function(l){var u=mB(l,r,n);this.add(u),this[vB(l)]=gB(l,r,n)},this),this._updateCommonStl(r,n,i)},t.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};PA(l.shape,s),Et(o,l,a,n),V(HC,function(u){var c=gB(u,r,n),f=vB(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=mB(u,r,n);this.add(d)}this[f]=c},this),this._updateCommonStl(r,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,f=i&&i.emphasisDisabled,d=i&&i.focus,h=i&&i.blurScope;if(!i||r.hasItemOption){var v=r.getItemModel(n),g=v.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=g.get("disabled"),d=g.get("focus"),h=g.get("blurScope"),c=Ur(v)}var y=r.getItemVisual(n,"style"),x=y.stroke;o.useStyle(y),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,V(HC,function(C){var M=this.childOfName(C);if(M){M.setColor(x),M.style.opacity=y.opacity;for(var k=0;k<Bn.length;k++){var I=Bn[k],P=o.getState(I);if(P){var R=P.style||{},L=M.ensureState(I),O=L.style||(L.style={});R.stroke!=null&&(O[M.__isEmptyBrush?"stroke":"fill"]=R.stroke),R.opacity!=null&&(O.opacity=R.opacity)}}M.markRedraw()}},this);var S=a.getRawValue(n);fn(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(C,M){return a.getFormattedLabel(C,M,r.dataType)}},inheritColor:x||"#000",defaultOpacity:y.opacity,defaultText:(S==null?r.getName(n):isFinite(S)?br(S):S)+""});var b=this.getTextContent();if(b){var w=c.normal;b.__align=b.style.align,b.__verticalAlign=b.style.verticalAlign,b.__position=w.get("position")||"middle";var T=w.get("distance");ue(T)||(T=[T,T]),b.__labelDistance=T}this.setTextConfig({position:null,local:!0,inside:!1}),mr(this,d,h,f)},t.prototype.highlight=function(){ss(this)},t.prototype.downplay=function(){ls(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");PA(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),i=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=Fu([],f,c);Dd(d,d);function h(P,R){var L=P.__specifiedRotation;if(L==null){var O=l.tangentAt(R);P.attr("rotation",(R===1?-1:1)*Math.PI/2-Math.atan2(O[1],O[0]))}else P.attr("rotation",L)}if(n&&(n.setPosition(c),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(f),h(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var v=void 0,g=void 0,y=a.__labelDistance,x=y[0]*o,S=y[1]*o,b=u/2,w=l.tangentAt(b),T=[w[1],-w[0]],C=l.pointAt(b);T[1]>0&&(T[0]=-T[0],T[1]=-T[1]);var M=w[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var k=-Math.atan2(w[1],w[0]);f[0]<c[0]&&(k=Math.PI+k),a.rotation=k}var I=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":I=-S,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":I=S,g="top";break;default:I=0,g="middle"}switch(a.__position){case"end":a.x=d[0]*x+f[0],a.y=d[1]*S+f[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",g=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":a.x=-d[0]*x+c[0],a.y=-d[1]*S+c[1],v=d[0]>.8?"right":d[0]<-.8?"left":"center",g=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=x*M+c[0],a.y=c[1]+I,v=w[0]<0?"right":"left",a.originX=-x*M,a.originY=-I;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=C[0],a.y=C[1]+I,v="center",a.originY=-I;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-x*M+f[0],a.y=f[1]+I,v=w[0]>=0?"right":"left",a.originX=x*M,a.originY=-I;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||g,align:a.__align||v})}},t}(qe),GI=function(){function e(t){this.group=new qe,this._LineCtor=t||$I}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=yB(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=yB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!ACe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=r.getItemLayout(i);if(WC(a)){var o=new this._LineCtor(r,i,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){Pl(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var i=t.getItemLayout(r);if(WC(i)){var a=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,a),this.group.add(a)}},e.prototype._doUpdate=function(t,r,n,i,a){var o=t.getItemGraphicEl(n);if(!WC(r.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(r,i,a):o=new this._LineCtor(r,i,a),r.setItemGraphicEl(i,o),this.group.add(o)},e}();function ACe(e){return e.animators&&e.animators.length>0}function yB(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Ur(t)}}function xB(e){return isNaN(e[0])||isNaN(e[1])}function WC(e){return e&&!xB(e[0])&&!xB(e[1])}var jC=[],UC=[],YC=[],_f=Kr,qC=qu,SB=Math.abs;function bB(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){jC[0]=_f(n[0],i[0],a[0],c),jC[1]=_f(n[1],i[1],a[1],c);var f=SB(qC(jC,t)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;UC[0]=_f(n[0],i[0],a[0],s),UC[1]=_f(n[1],i[1],a[1],s),YC[0]=_f(n[0],i[0],a[0],h),YC[1]=_f(n[1],i[1],a[1],h);var f=qC(UC,t)-l;if(SB(f)<.01)break;var v=qC(YC,t)-l;u/=2,f<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function XC(e,t){var r=[],n=zv,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Ko(u[0]),Ko(u[1])],u[2]&&u.__original.push(Ko(u[2])));var d=u.__original;if(u[2]!=null){if(Dn(i[0],d[0]),Dn(i[1],d[2]),Dn(i[2],d[1]),c&&c!=="none"){var h=Wp(s.node1),v=bB(i,d[0],h*t);n(i[0][0],i[1][0],i[2][0],v,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],v,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var h=Wp(s.node2),v=bB(i,d[1],h*t);n(i[0][0],i[1][0],i[2][0],v,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],v,r),i[1][1]=r[1],i[2][1]=r[2]}Dn(u[0],i[0]),Dn(u[1],i[2]),Dn(u[2],i[1])}else{if(Dn(a[0],d[0]),Dn(a[1],d[1]),Fu(o,a[1],a[0]),Dd(o,o),c&&c!=="none"){var h=Wp(s.node1);p2(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=Wp(s.node2);p2(a[1],a[1],o,-h*t)}Dn(u[0],a[0]),Dn(u[1],a[1])}})}function _B(e){return e.type==="view"}var MCe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new Vg,a=new GI,o=this.group;this._controller=new jg(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(_B(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Et(u,c,r)}XC(r.getGraph(),Hp(r));var f=r.getData();s.updateData(f);var d=r.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var h=r.forceLayout,v=r.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var g=r.get("layout");f.graph.eachNode(function(b){var w=b.dataIndex,T=b.getGraphicEl(),C=b.getModel();if(T){T.off("drag").off("dragend");var M=C.get("draggable");M&&T.on("drag",function(I){switch(g){case"force":h.warmUp(),!a._layouting&&a._startForceLayoutIteration(h,v),h.setFixed(w),f.setItemLayout(w,[T.x,T.y]);break;case"circular":f.setItemLayout(w,[T.x,T.y]),b.setLayout({fixed:!0},!0),VI(r,"symbolSize",b,[I.offsetX,I.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(w,[T.x,T.y]),FI(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),T.setDraggable(M,!!C.get("cursor"));var k=C.get(["emphasis","focus"]);k==="adjacency"&&(Ze(T).focus=b.getAdjacentDataIndices())}}),f.graph.eachEdge(function(b){var w=b.getGraphicEl(),T=b.getModel().get(["emphasis","focus"]);w&&T==="adjacency"&&(Ze(w).focus={edge:[b.dataIndex],node:[b.node1.dataIndex,b.node2.dataIndex]})});var y=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),x=f.getLayout("cx"),S=f.getLayout("cy");f.graph.eachNode(function(b){Zj(b,y,x,S)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!kS(u,i,r)}),!_B(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){PI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){DI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),XC(r.getGraph(),Hp(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=Hp(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){XC(r.getGraph(),Hp(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Zt);function wf(e){return"_EC_"+e}var kCe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[wf(t)]){var i=new Iu(t,r);return i.hostGraph=this,this.nodes.push(i),n[wf(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[wf(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(Dt(t)&&(t=this.nodes[t]),Dt(r)&&(r=this.nodes[r]),t instanceof Iu||(t=i[wf(t)]),r instanceof Iu||(r=i[wf(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new Qj(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof Iu&&(t=t.id),r instanceof Iu&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof Iu||(r=this._nodesMap[wf(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(t.call(i,f,l))return;s.push(f),f.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)n[t.getRawIndex(a)].dataIndex=a;r.filterSelf(function(s){var l=i[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=r.count();a<o;a++)i[r.getRawIndex(a)].dataIndex=a},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,i=0;i<r.length;i++)t.addNode(r[i].id,r[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),Iu=function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=r??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=Re(),r=Re(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,r.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,r.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:r.keys()}},e}(),Qj=function(){function e(t,r,n){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=n??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=Re(),r=Re();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,r.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,r.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:r.keys()}},e}();function Jj(e,t){return{getValue:function(r){var n=this[e][t];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Lr(Iu,Jj("hostGraph","data"));Lr(Qj,Jj("hostGraph","edgeData"));function e9(e,t,r,n,i){for(var a=new kCe(n),o=0;o<e.length;o++)a.addNode(Qr(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],f=c.source,d=c.target;a.addEdge(f,d,u)&&(l.push(c),s.push(Qr(Br(c.id,null),f+" > "+d)),u++)}var h=r.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=vs(e,r);else{var g=Og.get(h),y=g?g.dimensions||[]:[];ft(y,"value")<0&&y.concat(["value"]);var x=zg(e,{coordDimensions:y,encodeDefine:r.getEncode()}).dimensions;v=new On(x,r),v.initData(e)}var S=new On(["value"],r);return S.initData(l,s),i&&i(v,S),Oj({mainData:v,struct:a,structAttr:"graph",datas:{node:v,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var ICe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Wg(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),cc(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){vCe(this);var s=e9(a,i,this,!0,l);return V(s.edges,function(u){gCe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var g=o._categoriesModels,y=v.getShallow("category"),x=g[y];return x&&(x.parentModel=v.parentModel,v.parentModel=x),v});var f=Bt.prototype.getModel;function d(v,g){var y=f.call(this,v,g);return y.resolveParentPath=h,y}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=d,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var g=v.slice();return v[0]==="label"?g[0]="edgeLabel":v[1]==="label"&&(g[1]="edgeLabel"),g}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Yr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=TW({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=de(this.option.categories||[],function(i){return i.value!=null?i:oe({value:0},i)}),n=new On(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(or),PCe={type:"graphRoam",event:"graphRoam",update:"none"};function DCe(e){e.registerChartView(MCe),e.registerSeriesModel(ICe),e.registerProcessor(cCe),e.registerVisual(fCe),e.registerVisual(dCe),e.registerLayout(mCe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,xCe),e.registerLayout(bCe),e.registerCoordinateSystem("graphView",{dimensions:Ug.dimensions,create:wCe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Mr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Mr),e.registerAction(PCe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=EI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var RCe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),ECe=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new RCe},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}(vt);function LCe(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=xe(r[0],t.getWidth()),s=xe(r[1],t.getHeight()),l=xe(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function p0(e,t){var r=e==null?"":e+"";return t&&(_e(t)?r=t.replace("{value}",r):Be(t)&&(r=t(e))),r}var OCe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=LCe(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),d=f.get("roundCap"),h=d?Y1:Fn,v=f.get("show"),g=f.getModel("lineStyle"),y=g.get("width"),x=[u,c];Lk(x,!l),u=x[0],c=x[1];for(var S=c-u,b=u,w=[],T=0;v&&T<a.length;T++){var C=Math.min(Math.max(a[T][0],0),1);c=u+S*C;var M=new h({shape:{startAngle:b,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-y,r:o.r},silent:!0});M.setStyle({fill:a[T][1]}),M.setStyle(g.getLineStyle(["color","width"])),w.push(M),b=c}w.reverse(),V(w,function(I){return s.add(I)});var k=function(I){if(I<=0)return a[0][1];var P;for(P=0;P<a.length;P++)if(a[P][0]>=I&&(P===0?0:a[P-1][0])<I)return a[P][1];return a[P-1][1]};this._renderTicks(r,n,i,k,o,u,c,l,y),this._renderTitleAndDetail(r,n,i,k,o),this._renderAnchor(r,o),this._renderPointer(r,n,i,k,o,u,c,l,y)},t.prototype._renderTicks=function(r,n,i,a,o,s,l,u,c){for(var f=this.group,d=o.cx,h=o.cy,v=o.r,g=+r.get("min"),y=+r.get("max"),x=r.getModel("splitLine"),S=r.getModel("axisTick"),b=r.getModel("axisLabel"),w=r.get("splitNumber"),T=S.get("splitNumber"),C=xe(x.get("length"),v),M=xe(S.get("length"),v),k=s,I=(l-s)/w,P=I/T,R=x.getModel("lineStyle").getLineStyle(),L=S.getModel("lineStyle").getLineStyle(),O=x.get("distance"),N,B,G=0;G<=w;G++){if(N=Math.cos(k),B=Math.sin(k),x.get("show")){var q=O?O+c:c,H=new Hr({shape:{x1:N*(v-q)+d,y1:B*(v-q)+h,x2:N*(v-C-q)+d,y2:B*(v-C-q)+h},style:R,silent:!0});R.stroke==="auto"&&H.setStyle({stroke:a(G/w)}),f.add(H)}if(b.get("show")){var q=b.get("distance")+O,X=p0(br(G/w*(y-g)+g),b.get("formatter")),F=a(G/w),Y=N*(v-C-q)+d,Z=B*(v-C-q)+h,j=b.get("rotate"),re=0;j==="radial"?(re=-k+2*Math.PI,re>Math.PI/2&&(re+=Math.PI)):j==="tangential"?re=-k-Math.PI/2:Dt(j)&&(re=j*Math.PI/180),re===0?f.add(new kt({style:ar(b,{text:X,x:Y,y:Z,verticalAlign:B<-.8?"top":B>.8?"bottom":"middle",align:N<-.4?"left":N>.4?"right":"center"},{inheritColor:F}),silent:!0})):f.add(new kt({style:ar(b,{text:X,x:Y,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:Y,originY:Z,rotation:re}))}if(S.get("show")&&G!==w){var q=S.get("distance");q=q?q+c:c;for(var ce=0;ce<=T;ce++){N=Math.cos(k),B=Math.sin(k);var te=new Hr({shape:{x1:N*(v-q)+d,y1:B*(v-q)+h,x2:N*(v-M-q)+d,y2:B*(v-M-q)+h},silent:!0,style:L});L.stroke==="auto"&&te.setStyle({stroke:a((G+ce/T)/w)}),f.add(te),k+=P}k-=P}else k+=I}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,v=[],g=r.get(["pointer","show"]),y=r.getModel("progress"),x=y.get("show"),S=r.getData(),b=S.mapDimension("value"),w=+r.get("min"),T=+r.get("max"),C=[w,T],M=[s,l];function k(P,R){var L=S.getItemModel(P),O=L.getModel("pointer"),N=xe(O.get("width"),o.r),B=xe(O.get("length"),o.r),G=r.get(["pointer","icon"]),q=O.get("offsetCenter"),H=xe(q[0],o.r),X=xe(q[1],o.r),F=O.get("keepAspect"),Y;return G?Y=Er(G,H-N/2,X-B,N,B,null,F):Y=new ECe({shape:{angle:-Math.PI/2,width:N,r:B,x:H,y:X}}),Y.rotation=-(R+Math.PI/2),Y.x=o.cx,Y.y=o.cy,Y}function I(P,R){var L=y.get("roundCap"),O=L?Y1:Fn,N=y.get("overlap"),B=N?y.get("width"):c/S.count(),G=N?o.r-B:o.r-(P+1)*B,q=N?o.r:o.r-P*B,H=new O({shape:{startAngle:s,endAngle:R,cx:o.cx,cy:o.cy,clockwise:u,r0:G,r:q}});return N&&(H.z2=T-S.get(b,P)%T),H}(x||g)&&(S.diff(d).add(function(P){var R=S.get(b,P);if(g){var L=k(P,s);lr(L,{rotation:-((isNaN(+R)?M[0]:Vt(R,C,M,!0))+Math.PI/2)},r),f.add(L),S.setItemGraphicEl(P,L)}if(x){var O=I(P,s),N=y.get("clip");lr(O,{shape:{endAngle:Vt(R,C,M,N)}},r),f.add(O),V2(r.seriesIndex,S.dataType,P,O),v[P]=O}}).update(function(P,R){var L=S.get(b,P);if(g){var O=d.getItemGraphicEl(R),N=O?O.rotation:s,B=k(P,N);B.rotation=N,Et(B,{rotation:-((isNaN(+L)?M[0]:Vt(L,C,M,!0))+Math.PI/2)},r),f.add(B),S.setItemGraphicEl(P,B)}if(x){var G=h[R],q=G?G.shape.endAngle:s,H=I(P,q),X=y.get("clip");Et(H,{shape:{endAngle:Vt(L,C,M,X)}},r),f.add(H),V2(r.seriesIndex,S.dataType,P,H),v[P]=H}}).execute(),S.each(function(P){var R=S.getItemModel(P),L=R.getModel("emphasis"),O=L.get("focus"),N=L.get("blurScope"),B=L.get("disabled");if(g){var G=S.getItemGraphicEl(P),q=S.getItemVisual(P,"style"),H=q.fill;if(G instanceof Jr){var X=G.style;G.useStyle(oe({image:X.image,x:X.x,y:X.y,width:X.width,height:X.height},q))}else G.useStyle(q),G.type!=="pointer"&&G.setColor(H);G.setStyle(R.getModel(["pointer","itemStyle"]).getItemStyle()),G.style.fill==="auto"&&G.setStyle("fill",a(Vt(S.get(b,P),C,[0,1],!0))),G.z2EmphasisLift=0,cn(G,R),mr(G,O,N,B)}if(x){var F=v[P];F.useStyle(S.getItemVisual(P,"style")),F.setStyle(R.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,cn(F,R),mr(F,O,N,B)}}),this._progressEls=v)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=Er(s,n.cx-o/2+xe(l[0],n.r),n.cy-o/2+xe(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),d=new qe,h=[],v=[],g=r.isAnimationEnabled(),y=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(x){h[x]=new kt({silent:!0}),v[x]=new kt({silent:!0})}).update(function(x,S){h[x]=s._titleEls[S],v[x]=s._detailEls[S]}).execute(),l.each(function(x){var S=l.getItemModel(x),b=l.get(u,x),w=new qe,T=a(Vt(b,[c,f],[0,1],!0)),C=S.getModel("title");if(C.get("show")){var M=C.get("offsetCenter"),k=o.cx+xe(M[0],o.r),I=o.cy+xe(M[1],o.r),P=h[x];P.attr({z2:y?0:2,style:ar(C,{x:k,y:I,text:l.getName(x),align:"center",verticalAlign:"middle"},{inheritColor:T})}),w.add(P)}var R=S.getModel("detail");if(R.get("show")){var L=R.get("offsetCenter"),O=o.cx+xe(L[0],o.r),N=o.cy+xe(L[1],o.r),B=xe(R.get("width"),o.r),G=xe(R.get("height"),o.r),q=r.get(["progress","show"])?l.getItemVisual(x,"style").fill:T,P=v[x],H=R.get("formatter");P.attr({z2:y?0:2,style:ar(R,{x:O,y:N,text:p0(b,H),width:isNaN(B)?null:B,height:isNaN(G)?null:G,align:"center",verticalAlign:"middle"},{inheritColor:q})}),IH(P,{normal:R},b,function(F){return p0(F,H)}),g&&PH(P,x,l,r,{getFormattedLabel:function(F,Y,Z,j,re,ce){return p0(ce?ce.interpolatedValue:b,H)}}),w.add(P)}d.add(w)}),this.group.add(d),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(Zt),NCe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return Ud(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(or);function zCe(e){e.registerChartView(OCe),e.registerSeriesModel(NCe)}var BCe=["itemStyle","opacity"],FCe=function(e){J(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new Gn,s=new kt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(BCe);c=c??1,i||Oa(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,lr(a,{style:{opacity:c}},o,n)):Et(a,{style:{opacity:c},shape:{points:l.points}},o,n),cn(a,s),this._updateLabel(r,n),mr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),d=f.fill;fn(o,Ur(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;a.setShape({points:h}),i.textGuideLineConfig={anchor:h?new et(h[0][0],h[0][1]):null},Et(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),xI(i,SI(l),{stroke:d})},t}(Vn),VCe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new FCe(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Wv(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Zt),$Ce=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wg(Ae(this.getData,this),Ae(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return Ud(this,{coordDimensions:["value"],encodeDefaulter:Je(Kk,this)})},t.prototype._defaultLabelLine=function(r){cc(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(or);function GCe(e,t){return Fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function HCe(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();o<s;o++)i[o]=o;return Be(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function WCe(e){var t=e.hostModel,r=t.get("orient");e.each(function(n){var i=e.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,h,v;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),v=[[d,h],[d,h]];else{var g=void 0,y=void 0,x=void 0,S=void 0,b=s.get("length");o==="left"?(g=(u[3][0]+u[0][0])/2,y=(u[3][1]+u[0][1])/2,x=g-b,d=x-5,f="right"):o==="right"?(g=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,x=g+b,d=x+5,f="left"):o==="top"?(g=(u[3][0]+u[0][0])/2,y=(u[3][1]+u[0][1])/2,S=y-b,h=S-5,f="center"):o==="bottom"?(g=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,S=y+b,h=S+5,f="center"):o==="rightTop"?(g=r==="horizontal"?u[3][0]:u[1][0],y=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(S=y-b,h=S-5,f="center"):(x=g+b,d=x+5,f="top")):o==="rightBottom"?(g=u[2][0],y=u[2][1],r==="horizontal"?(S=y+b,h=S+5,f="center"):(x=g+b,d=x+5,f="bottom")):o==="leftTop"?(g=u[0][0],y=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(S=y-b,h=S-5,f="center"):(x=g-b,d=x-5,f="right")):o==="leftBottom"?(g=r==="horizontal"?u[1][0]:u[3][0],y=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(S=y+b,h=S+5,f="center"):(x=g-b,d=x-5,f="right")):(g=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,r==="horizontal"?(S=y+b,h=S+5,f="center"):(x=g+b,d=x+5,f="left")),r==="horizontal"?(x=g,d=x):(S=y,h=S),v=[[g,y],[x,S]]}l.label={linePoints:v,x:d,y:h,verticalAlign:"middle",textAlign:f,inside:c}})}function jCe(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=GCe(r,t),s=r.get("orient"),l=o.width,u=o.height,c=HCe(n,a),f=o.x,d=o.y,h=s==="horizontal"?[xe(r.get("minSize"),u),xe(r.get("maxSize"),u)]:[xe(r.get("minSize"),l),xe(r.get("maxSize"),l)],v=n.getDataExtent(i),g=r.get("min"),y=r.get("max");g==null&&(g=Math.min(v[0],0)),y==null&&(y=v[1]);var x=r.get("funnelAlign"),S=r.get("gap"),b=s==="horizontal"?l:u,w=(b-S*(n.count()-1))/n.count(),T=function(N,B){if(s==="horizontal"){var G=n.get(i,N)||0,q=Vt(G,[g,y],h,!0),H=void 0;switch(x){case"top":H=d;break;case"center":H=d+(u-q)/2;break;case"bottom":H=d+(u-q);break}return[[B,H],[B,H+q]]}var X=n.get(i,N)||0,F=Vt(X,[g,y],h,!0),Y;switch(x){case"left":Y=f;break;case"center":Y=f+(l-F)/2;break;case"right":Y=f+l-F;break}return[[Y,B],[Y+F,B]]};a==="ascending"&&(w=-w,S=-S,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var C=0;C<c.length;C++){var M=c[C],k=c[C+1],I=n.getItemModel(M);if(s==="horizontal"){var P=I.get(["itemStyle","width"]);P==null?P=w:(P=xe(P,l),a==="ascending"&&(P=-P));var R=T(M,f),L=T(k,f+P);f+=P+S,n.setItemLayout(M,{points:R.concat(L.slice().reverse())})}else{var O=I.get(["itemStyle","height"]);O==null?O=w:(O=xe(O,u),a==="ascending"&&(O=-O));var R=T(M,d),L=T(k,d+O);d+=O+S,n.setItemLayout(M,{points:R.concat(L.slice().reverse())})}}WCe(n)})}function UCe(e){e.registerChartView(VCe),e.registerSeriesModel($Ce),e.registerLayout(jCe),e.registerProcessor(Hg("funnel"))}var YCe=.3,qCe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new qe,r._initialized=!1,r}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(r,n,i,a){this._progressiveEls=null;var o=this._dataGroup,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.dimensions,f=CB(r);s.diff(l).add(d).update(h).remove(v).execute();function d(y){var x=wB(s,o,y,c,u);ZC(x,s,y,f)}function h(y,x){var S=l.getItemGraphicEl(x),b=t9(s,y,c,u);s.setItemGraphicEl(y,S),Et(S,{shape:{points:b}},r,y),Oa(S),ZC(S,s,y,f)}function v(y){var x=l.getItemGraphicEl(y);o.remove(x)}if(!this._initialized){this._initialized=!0;var g=XCe(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(g)}this._data=s},t.prototype.incrementalPrepareRender=function(r,n,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(r,n,i){for(var a=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=CB(n),u=this._progressiveEls=[],c=r.start;c<r.end;c++){var f=wB(a,this._dataGroup,c,s,o);f.incremental=!0,ZC(f,a,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Zt);function XCe(e,t,r){var n=e.model,i=e.getRect(),a=new Ct({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=n.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),lr(a,{shape:{width:i.width,height:i.height}},t,r),a}function t9(e,t,r,n){for(var i=[],a=0;a<r.length;a++){var o=r[a],s=e.get(e.mapDimension(o),t);ZCe(s,n.getAxis(o).type)||i.push(n.dataToPoint(s,o))}return i}function wB(e,t,r,n,i){var a=t9(e,r,n,i),o=new Gn({shape:{points:a},z2:10});return t.add(o),e.setItemGraphicEl(r,o),o}function CB(e){var t=e.get("smooth",!0);return t===!0&&(t=YCe),t=os(t),Nv(t)&&(t=0),{smooth:t}}function ZC(e,t,r,n){e.useStyle(t.getItemVisual(r,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var i=t.getItemModel(r),a=i.getModel("emphasis");cn(e,i,"lineStyle"),mr(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function ZCe(e,t){return t==="category"?e==null:e==null||isNaN(e)}var KCe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.getInitialData=function(r,n){return vs(null,this,{useEncodeDefaulter:Ae(QCe,null,this)})},t.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,i=this.getData(),a=[];return n.eachActiveState(i,function(o,s){r===o&&a.push(i.getRawIndex(s))}),a},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(or);function QCe(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var r={};return V(t.dimensions,function(n){var i=JCe(n);r[n]=i}),r}}function JCe(e){return+e.replace("dim","")}var eTe=["lineStyle","opacity"],tTe={seriesType:"parallel",reset:function(e,t){var r=e.coordinateSystem,n={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(i,a){r.eachActiveState(a,function(o,s){var l=n[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(eTe,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};function rTe(e){nTe(e),iTe(e)}function nTe(e){if(!e.parallel){var t=!1;V(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function iTe(e){var t=Ut(e.parallelAxis);V(t,function(r){if(Ge(r)){var n=r.parallelIndex||0,i=Ut(e.parallel)[n];i&&i.parallelAxisDefault&&tt(r,i.parallelAxisDefault,!1)}})}var aTe=5,oTe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this._model=r,this._api=i,this._handlers||(this._handlers={},V(sTe,function(a,o){i.getZr().on(o,this._handlers[o]=Ae(a,this))},this)),Hd(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){qv(this,"_throttledDispatchExpand"),V(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(oe({type:"parallelAxisExpand"},r))},t.type="parallel",t}(dr),sTe={mousedown:function(e){KC(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(KC(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>aTe)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!KC(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function KC(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var lTe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&tt(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){V(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=Wt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);V(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(xt),uTe=function(e){J(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Ba);function Ic(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=Cf(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Cf(s,[0,o]),i=a=Cf(s,[i,a]),n=0}t[0]=Cf(t[0],r),t[1]=Cf(t[1],r);var l=QC(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=Cf(t[n],c);var f;return f=QC(t,n),i!=null&&(f.sign!==l.sign||f.span<i)&&(t[1-n]=t[n]+l.sign*i),f=QC(t,n),a!=null&&f.span>a&&(t[1-n]=t[n]+f.sign*a),t}function QC(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function Cf(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var JC=V,r9=Math.min,n9=Math.max,TB=Math.floor,cTe=Math.ceil,AB=br,fTe=Math.PI,dTe=function(){function e(t,r,n){this.type="parallel",this._axesMap=Re(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;JC(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new uTe(o,AS(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();JC(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Sd(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=Fr(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=v0(t.get("axisExpandWidth"),l),f=v0(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),v;if(h)v=v0(h[1]-h[0],l),h[1]=h[0]+v;else{v=v0(c*(f-1),l);var g=t.get("axisExpandCenter")||TB(u/2);h=[c*g-v/2],h[1]=h[0]+v}var y=(s-v)/(u-f);y<3&&(y=0);var x=[TB(AB(h[0]/c,1))+1,cTe(AB(h[1]/c,1))-1],S=y/c*h[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:y,axisExpandWindow:h,axisCount:u,winInnerIndices:x,axisExpandWindow0Pos:S}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),JC(n,function(o,s){var l=(i.axisExpandable?pTe:hTe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:fTe/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=wi();wc(h,h,d),Co(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];V(o,function(y){s.push(t.mapDimension(y)),l.push(a.get(y).model)});for(var u=this.hasAxisBrushed(),c=n;c<i;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=t.getValues(s,c),h=0,v=o.length;h<v;h++){var g=l[h].getActiveState(d[h]);if(g==="inactive"){f="inactive";break}}}r(f,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,i=0,a=t.length;i<a;i++)r.get(t[i]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return ka([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return We(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,i=r.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",c=r.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<a*f[0]?(u="jump",l=s-a*f[2]):d&&c&&s>a*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?Ic(l,i,o,"all"):u="none";else{var h=i[1]-i[0],v=o[1]*s/h;i=[n9(0,v-h/2)],i[1]=r9(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function v0(e,t){return r9(n9(e,t[0]),t[1])}function hTe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function pTe(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e<o[0]?(s=e*a,c=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(i-1-e)*a,c=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function vTe(e,t){var r=[];return e.eachComponent("parallel",function(n,i){var a=new dTe(n,e,t);a.name="parallel_"+i,a.resize(n,t),n.coordinateSystem=a,a.model=n,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",Dr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}var gTe={create:vTe},DA=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return dc([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=We(r);if(n)for(var i=n.length-1;i>=0;i--)Qi(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=r&&r<=n[a][1])return"active";return"inactive"},t}(xt);Lr(DA,Bg);var vc=!0,og=Math.min,wd=Math.max,mTe=Math.pow,yTe=1e4,xTe=6,STe=6,MB="globalPan",bTe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},_Te={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},kB={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},wTe=0,HI=function(e){J(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new qe,n._uid="brushController_"+wTe++,V(PTe,function(i,a){this._handlers[a]=Ae(i,this)},n),n}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||h_e(n,MB,this._uid),V(this._handlers,function(i,a){n.on(a,i)}),this._brushType=r.brushType,this._brushOption=tt(We(kB),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;p_e(r,MB,this._uid),V(this._handlers,function(n,i){r.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};V(r,function(i){n[i.panelId]=We(i)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=de(r,function(d){return tt(We(kB),d,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new us(i,r,u,l).add(c).update(c).remove(f).execute(),this;function l(d,h){return(d.id!=null?d.id:n+h)+"-"+d.brushType}function u(d,h){return l(d.__brushOption,h)}function c(d,h){var v=r[d];if(h!=null&&i[h]===s)a[d]=i[h];else{var g=a[d]=h!=null?(i[h].__brushOption=v,i[h]):a9(o,i9(o,v));WI(o,g)}}function f(d){i[d]!==s&&o.group.remove(i[d])}},t.prototype.unmount=function(){return this.enableBrush(!1),RA(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(oa);function i9(e,t){var r=RS[t.brushType].createCover(e,t);return r.__brushOption=t,s9(r,t),e.group.add(r),r}function a9(e,t){var r=jI(t);return r.endCreating&&(r.endCreating(e,t),s9(t,t.__brushOption)),t}function o9(e,t){var r=t.__brushOption;jI(t).updateCoverShape(e,t,r.range,r)}function s9(e,t){var r=t.z;r==null&&(r=yTe),e.traverse(function(n){n.z=r,n.z2=r})}function WI(e,t){jI(t).updateCommon(e,t),o9(e,t)}function jI(e){return RS[e.__brushOption.brushType]}function UI(e,t,r){var n=e._panels;if(!n)return vc;var i,a=e._transform;return V(n,function(o){o.isTargetByCursor(t,r,a)&&(i=o)}),i}function l9(e,t){var r=e._panels;if(!r)return vc;var n=t.__brushOption.panelId;return n!=null?r[n]:vc}function RA(e){var t=e._covers,r=t.length;return V(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function gc(e,t){var r=de(e._covers,function(n){var i=n.__brushOption,a=We(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function CTe(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],i=r[0]-n[0],a=r[1]-n[1],o=mTe(i*i+a*a,.5);return o>xTe}function u9(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function c9(e,t,r,n){var i=new qe;return i.add(new Ct({name:"main",style:YI(r),silent:!0,draggable:!0,cursor:"move",drift:Je(IB,e,t,i,["n","s","w","e"]),ondragend:Je(gc,t,{isEnd:!0})})),V(n,function(a){i.add(new Ct({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Je(IB,e,t,i,a),ondragend:Je(gc,t,{isEnd:!0})}))}),i}function f9(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=wd(i,STe),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],d=c-a+i/2,h=f-a+i/2,v=c-o,g=f-s,y=v+i,x=g+i;jo(e,t,"main",o,s,v,g),n.transformable&&(jo(e,t,"w",l,u,a,x),jo(e,t,"e",d,u,a,x),jo(e,t,"n",l,u,y,a),jo(e,t,"s",l,h,y,a),jo(e,t,"nw",l,u,a,a),jo(e,t,"ne",d,u,a,a),jo(e,t,"sw",l,h,a,a),jo(e,t,"se",d,h,a,a))}function EA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(YI(r)),i.attr({silent:!n,cursor:n?"move":"default"}),V([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?LA(e,a[0]):ATe(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?_Te[s]+"-resize":null})})}function jo(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(kTe(qI(e,t,[[n,i],[n+a,i+o]])))}function YI(e){return Ve({strokeNoScale:!0},e.brushStyle)}function d9(e,t,r,n){var i=[og(e,r),og(t,n)],a=[wd(e,r),wd(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function TTe(e){return Ju(e.group)}function LA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=cS(r[t],TTe(e));return n[i]}function ATe(e,t){var r=[LA(e,t[0]),LA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function IB(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=h9(t,i,a);V(n,function(u){var c=bTe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(d9(s[0][0],s[1][0],s[0][1],s[1][1])),WI(t,r),gc(t,{isEnd:!1})}function MTe(e,t,r,n){var i=t.__brushOption.range,a=h9(e,r,n);V(i,function(o){o[0]+=a[0],o[1]+=a[1]}),WI(e,t),gc(e,{isEnd:!1})}function h9(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function qI(e,t,r){var n=l9(e,t);return n&&n!==vc?n.clipPath(r,e._transform):We(r)}function kTe(e){var t=og(e[0][0],e[1][0]),r=og(e[0][1],e[1][1]),n=wd(e[0][0],e[1][0]),i=wd(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function ITe(e,t,r){if(!(!e._brushType||DTe(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=UI(e,t,r);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===vc||s.panelId===a.panelId)&&RS[s.brushType].contain(i[o],r[0],r[1]))return}a&&n.setCursorStyle("crosshair")}}function OA(e){var t=e.event;t.preventDefault&&t.preventDefault()}function NA(e,t,r){return e.childOfName("main").contain(t,r)}function p9(e,t,r,n){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),CTe(e)||i){if(a&&!i){o.brushMode==="single"&&RA(e);var l=We(o);l.brushType=PB(l.brushType,a),l.panelId=a===vc?null:a.panelId,i=e._creatingCover=i9(e,l),e._covers.push(i)}if(i){var u=RS[PB(e._brushType,a)],c=i.__brushOption;c.range=u.getCreatingRange(qI(e,i,e._track)),n&&(a9(e,i),u.updateCommon(e,i)),o9(e,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&UI(e,t,r)&&RA(e)&&(s={isEnd:n,removeOnClick:!0});return s}function PB(e,t){return e==="auto"?t.defaultBrushType:e}var PTe={mousedown:function(e){if(this._dragging)DB(this,e);else if(!e.target||!e.target.draggable){OA(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=UI(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(ITe(this,e,n),this._dragging){OA(e);var i=p9(this,e,n,!1);i&&gc(this,i)}},mouseup:function(e){DB(this,e)}};function DB(e,t){if(e._dragging){OA(t);var r=t.offsetX,n=t.offsetY,i=e.group.transformCoordToLocal(r,n),a=p9(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&gc(e,a)}}function DTe(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var RS={lineX:RB(0),lineY:RB(1),rect:{createCover:function(e,t){function r(n){return n}return c9({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=u9(e);return d9(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){f9(e,t,r,n)},updateCommon:EA,contain:NA},polygon:{createCover:function(e,t){var r=new qe;return r.add(new Gn({name:"main",style:YI(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Vn({name:"main",draggable:!0,drift:Je(MTe,e,t),ondragend:Je(gc,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:qI(e,t,r)})},updateCommon:EA,contain:NA}};function RB(e){return{createCover:function(t,r){return c9({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=u9(t),n=og(r[0][e],r[1][e]),i=wd(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=l9(t,r);if(o!==vc&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),f9(t,r,l,i)},updateCommon:EA,contain:NA}}function v9(e){return e=XI(e),function(t){return AH(t,e)}}function g9(e,t){return e=XI(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function m9(e,t,r){var n=XI(e);return function(i,a){return n.contain(a[0],a[1])&&!kS(i,t,r)}}function XI(e){return rt.create(e)}var RTe=["axisLine","axisTickLabel","axisName"],ETe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new HI(n.getZr())).on("brush",Ae(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!LTe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new qe,this.group.add(this._axisGroup),!!r.get("show")){var s=NTe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=oe({strokeContainThreshold:c},d),v=new Nn(r,h);V(RTe,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,r,s,c,i),Eg(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=rt.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:v9(f),isTargetByCursor:m9(f,s,a),getLinearBrushOtherExtent:g9(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(OTe(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=de(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(dr);function LTe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function OTe(e){var t=e.axis;return de(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function NTe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var zTe={type:"axisAreaSelect",event:"axisAreaSelected"};function BTe(e){e.registerAction(zTe,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var FTe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function y9(e){e.registerComponentView(oTe),e.registerComponentModel(lTe),e.registerCoordinateSystem("parallel",gTe),e.registerPreprocessor(rTe),e.registerComponentModel(DA),e.registerComponentView(ETe),_d(e,"parallel",DA,FTe),BTe(e)}function VTe(e){pt(y9),e.registerChartView(qCe),e.registerSeriesModel(KCe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,tTe)}var $Te=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),GTe=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $Te},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){ss(this)},t.prototype.downplay=function(){ls(this)},t}(vt),HTe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),d=r.getData("edge"),h=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var g=new GTe,y=Ze(g);y.dataIndex=v.dataIndex,y.seriesIndex=r.seriesIndex,y.dataType="edge";var x=v.getModel(),S=x.getModel("lineStyle"),b=S.get("curveness"),w=v.node1.getLayout(),T=v.node1.getModel(),C=T.get("localX"),M=T.get("localY"),k=v.node2.getLayout(),I=v.node2.getModel(),P=I.get("localX"),R=I.get("localY"),L=v.getLayout(),O,N,B,G,q,H,X,F;g.shape.extent=Math.max(1,L.dy),g.shape.orient=h,h==="vertical"?(O=(C!=null?C*u:w.x)+L.sy,N=(M!=null?M*c:w.y)+w.dy,B=(P!=null?P*u:k.x)+L.ty,G=R!=null?R*c:k.y,q=O,H=N*(1-b)+G*b,X=B,F=N*b+G*(1-b)):(O=(C!=null?C*u:w.x)+w.dx,N=(M!=null?M*c:w.y)+L.sy,B=P!=null?P*u:k.x,G=(R!=null?R*c:k.y)+L.ty,q=O*(1-b)+B*b,H=N,X=O*b+B*(1-b),F=G),g.setShape({x1:O,y1:N,x2:B,y2:G,cpx1:q,cpy1:H,cpx2:X,cpy2:F}),g.useStyle(S.getItemStyle()),EB(g.style,h,v);var Y=""+x.get("value"),Z=Ur(x,"edgeLabel");fn(g,Z,{labelFetcher:{getFormattedLabel:function(ce,te,pe,ae,he,ve){return r.getFormattedLabel(ce,te,"edge",ae,go(he,Z.normal&&Z.normal.get("formatter"),Y),ve)}},labelDataIndex:v.dataIndex,defaultText:Y}),g.setTextConfig({position:"inside"});var j=x.getModel("emphasis");cn(g,x,"lineStyle",function(ce){var te=ce.getItemStyle();return EB(te,h,v),te}),s.add(g),d.setItemGraphicEl(v.dataIndex,g);var re=j.get("focus");mr(g,re==="adjacency"?v.getAdjacentDataIndices():re==="trajectory"?v.getTrajectoryDataIndices():re,j.get("blurScope"),j.get("disabled"))}),o.eachNode(function(v){var g=v.getLayout(),y=v.getModel(),x=y.get("localX"),S=y.get("localY"),b=y.getModel("emphasis"),w=y.get(["itemStyle","borderRadius"])||0,T=new Ct({shape:{x:x!=null?x*u:g.x,y:S!=null?S*c:g.y,width:g.dx,height:g.dy,r:w},style:y.getModel("itemStyle").getItemStyle(),z2:10});fn(T,Ur(y),{labelFetcher:{getFormattedLabel:function(M,k){return r.getFormattedLabel(M,k,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),T.disableLabelAnimation=!0,T.setStyle("fill",v.getVisual("color")),T.setStyle("decal",v.getVisual("style").decal),cn(T,y),s.add(T),f.setItemGraphicEl(v.dataIndex,T),Ze(T).dataType="node";var C=b.get("focus");mr(T,C==="adjacency"?v.getAdjacentDataIndices():C==="trajectory"?v.getTrajectoryDataIndices():C,b.get("blurScope"),b.get("disabled"))}),f.eachItemGraphicEl(function(v,g){var y=f.getItemModel(g);y.get("draggable")&&(v.drift=function(x,S){a._focusAdjacencyDisabled=!0,this.shape.x+=x,this.shape.y+=S,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},v.ondragend=function(){a._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(WTe(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Zt);function EB(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");_e(n)&&_e(i)&&(e.fill=new Rg(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function WTe(e,t,r){var n=new Ct({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return lr(n,{shape:{width:e.width+20}},t,r),n}var jTe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Bt(o[l],this,n));if(a&&i){var u=e9(a,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,v){var g=h.parentModel,y=g.getData().getItemLayout(v);if(y){var x=y.depth,S=g.levelModels[x];S&&(h.parentModel=S)}return h}),d.wrapMethod("getItemModel",function(h,v){var g=h.parentModel,y=g.getGraph().getEdgeByIndex(v),x=y.node1.getLayout();if(x){var S=x.depth,b=g.levelModels[S];b&&(h.parentModel=b)}return h})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(h){return isNaN(h)||h==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Yr("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,d=this.getDataParams(r,i).data.name;return Yr("nameValue",{name:d!=null?d+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(or);function UTe(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=YTe(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;XTe(u);var f=Wt(u,function(g){return g.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),v=r.get("nodeAlign");qTe(u,c,n,i,o,s,d,h,v)})}function YTe(e,t){return Fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function qTe(e,t,r,n,i,a,o,s,l){ZTe(e,t,r,i,a,s,l),e2e(e,t,a,i,n,o,s),u2e(e,s)}function XTe(e){V(e,function(t){var r=pl(t.outEdges,J1),n=pl(t.inEdges,J1),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function ZTe(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<t.length;d++)s[d]=1;for(var d=0;d<e.length;d++)l[d]=e[d].inEdges.length,l[d]===0&&u.push(e[d]);for(var h=-1;u.length;){for(var v=0;v<u.length;v++){var g=u[v],y=g.hostGraph.data.getRawDataItem(g.dataIndex),x=y.depth!=null&&y.depth>=0;x&&y.depth>h&&(h=y.depth),g.setLayout({depth:x?y.depth:f},!0),a==="vertical"?g.setLayout({dy:r},!0):g.setLayout({dx:r},!0);for(var S=0;S<g.outEdges.length;S++){var b=g.outEdges[S],w=t.indexOf(b);s[w]=0;var T=b.node2,C=e.indexOf(T);--l[C]===0&&c.indexOf(T)<0&&c.push(T)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var M=h>f-1?h:f-1;o&&o!=="left"&&KTe(e,o,a,M);var k=a==="vertical"?(i-r)/M:(n-r)/M;JTe(e,k,a)}function x9(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function KTe(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}a=i,i=[],++o}V(e,function(f){x9(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&QTe(e,n)}function QTe(e,t){V(e,function(r){!x9(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function JTe(e,t,r){V(e,function(n){var i=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:i},!0):n.setLayout({x:i},!0)})}function e2e(e,t,r,n,i,a,o){var s=t2e(e,o);r2e(s,t,r,n,i,o),eT(s,i,r,n,o);for(var l=1;a>0;a--)l*=.99,n2e(s,l,o),eT(s,i,r,n,o),l2e(s,l,o),eT(s,i,r,n,o)}function t2e(e,t){var r=[],n=t==="vertical"?"y":"x",i=N2(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),V(i.keys,function(a){r.push(i.buckets.get(a))}),r}function r2e(e,t,r,n,i,a){var o=1/0;V(e,function(s){var l=s.length,u=0;V(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c<o&&(o=c)}),V(e,function(s){V(s,function(l,u){var c=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),V(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function eT(e,t,r,n,i){var a=i==="vertical"?"x":"y";V(e,function(o){o.sort(function(g,y){return g.getLayout()[a]-y.getLayout()[a]});for(var s,l,u,c=0,f=o.length,d=i==="vertical"?"dx":"dy",h=0;h<f;h++)l=o[h],u=c-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[d]+t;var v=i==="vertical"?n:r;if(u=c-t-v,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[a]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function n2e(e,t,r){V(e.slice().reverse(),function(n){V(n,function(i){if(i.outEdges.length){var a=pl(i.outEdges,i2e,r)/pl(i.outEdges,J1);if(isNaN(a)){var o=i.outEdges.length;a=o?pl(i.outEdges,a2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-wl(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-wl(i,r))*t;i.setLayout({y:l},!0)}}})})}function i2e(e,t){return wl(e.node2,t)*e.getValue()}function a2e(e,t){return wl(e.node2,t)}function o2e(e,t){return wl(e.node1,t)*e.getValue()}function s2e(e,t){return wl(e.node1,t)}function wl(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function J1(e){return e.getValue()}function pl(e,t,r){for(var n=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],r);isNaN(o)||(n+=o)}return n}function l2e(e,t,r){V(e,function(n){V(n,function(i){if(i.inEdges.length){var a=pl(i.inEdges,o2e,r)/pl(i.inEdges,J1);if(isNaN(a)){var o=i.inEdges.length;a=o?pl(i.inEdges,s2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-wl(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-wl(i,r))*t;i.setLayout({y:l},!0)}}})})}function u2e(e,t){var r=t==="vertical"?"x":"y";V(e,function(n){n.outEdges.sort(function(i,a){return i.node2.getLayout()[r]-a.node2.getLayout()[r]}),n.inEdges.sort(function(i,a){return i.node1.getLayout()[r]-a.node1.getLayout()[r]})}),V(e,function(n){var i=0,a=0;V(n.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),V(n.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}function c2e(e){e.eachSeriesByType("sankey",function(t){var r=t.getGraph(),n=r.nodes,i=r.edges;if(n.length){var a=1/0,o=-1/0;V(n,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),V(n,function(s){var l=new jr({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&V(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function f2e(e){e.registerChartView(HTe),e.registerSeriesModel(jTe),e.registerLayout(UTe),e.registerVisual(c2e),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var S9=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[i,a],v=h[c].get("type"),g=h[1-c].get("type"),y=t.data;if(y&&l){var x=[];V(y,function(w,T){var C;ue(w)?(C=w.slice(),w.unshift(T)):ue(w.value)?(C=oe({},w),C.value=C.value.slice(),w.value.unshift(T)):C=w,x.push(C)}),t.data=x}var S=this.defaultValueDimensions,b=[{name:f,type:G1(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:G1(g),dimsDef:S.slice()}];return Ud(this,{coordDimensions:b,dimensionsCount:S.length+1,encodeDefaulter:Je(QH,b,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),b9=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(or);Lr(b9,S9,!0);var d2e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=LB(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var d=a.getItemLayout(u);f?(Oa(f),_9(d,f,a,u)):f=LB(d,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(Zt),h2e=function(){function e(){}return e}(),p2e=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new h2e},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();a<i.length;a++)r.moveTo(i[a][0],i[a][1]),a++,r.lineTo(i[a][0],i[a][1])},t}(vt);function LB(e,t,r,n,i){var a=e.ends,o=new p2e({shape:{points:i?v2e(a,n,e):a}});return _9(e,o,t,r,i),o}function _9(e,t,r,n,i){var a=r.hostModel,o=Cc[i?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},a,n),t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");cn(t,s),mr(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function v2e(e,t,r){return de(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}var mv=V;function g2e(e){var t=m2e(e);mv(t,function(r){var n=r.seriesModels;n.length&&(y2e(r),mv(n,function(i,a){x2e(i,r.boxOffsetList[a],r.boxWidthList[a])}))})}function m2e(e){var t=[],r=[];return e.eachSeriesByType("boxplot",function(n){var i=n.getBaseAxis(),a=ft(r,i);a<0&&(a=r.length,r[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(n)}),t}function y2e(e){var t=e.axis,r=e.seriesModels,n=r.length,i=e.boxWidthList=[],a=e.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;mv(r,function(v){l=Math.max(l,v.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}mv(r,function(v){var g=v.get("boxWidth");ue(g)||(g=[g,g]),o.push([xe(g[0],s)||0,xe(g[1],s)||0])});var c=s*.8-2,f=c/n*.3,d=(c-f*(n-1))/n,h=d/2-c/2;mv(r,function(v,g){a.push(h),h+=f+d,i.push(Math.min(Math.max(d,o[g][0]),o[g][1]))})}function x2e(e,t,r){var n=e.coordinateSystem,i=e.getData(),a=r/2,o=e.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<i.count();f++){var d=i.get(u,f),h=b(d,c[2],f),v=b(d,c[0],f),g=b(d,c[1],f),y=b(d,c[3],f),x=b(d,c[4],f),S=[];w(S,g,!1),w(S,y,!0),S.push(v,g,x,y),T(S,v),T(S,x),T(S,h),i.setItemLayout(f,{initBaseline:h[s],ends:S})}function b(C,M,k){var I=i.get(M,k),P=[];P[o]=C,P[s]=I;var R;return isNaN(C)||isNaN(I)?R=[NaN,NaN]:(R=n.dataToPoint(P),R[o]+=t),R}function w(C,M,k){var I=M.slice(),P=M.slice();I[o]+=a,P[o]-=a,k?C.push(I,P):C.push(P,I)}function T(C,M){var k=M.slice(),I=M.slice();k[o]-=a,I[o]+=a,C.push(k,I)}}function S2e(e,t){t=t||{};for(var r=[],n=[],i=t.boundIQR,a=i==="none"||i===0,o=0;o<e.length;o++){var s=Qi(e[o].slice()),l=Iw(s,.25),u=Iw(s,.5),c=Iw(s,.75),f=s[0],d=s[s.length-1],h=(i??1.5)*(c-l),v=a?f:Math.max(f,l-h),g=a?d:Math.min(d,c+h),y=t.itemNameFormatter,x=Be(y)?y({value:o}):_e(y)?y.replace("{value}",o+""):o+"";r.push([x,v,l,u,c,g]);for(var S=0;S<s.length;S++){var b=s[S];if(b<v||b>g){var w=[x,b];n.push(w)}}}return{boxData:r,outliers:n}}var b2e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Cn){var n="";Nt(n)}var i=S2e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function _2e(e){e.registerSeriesModel(b9),e.registerChartView(d2e),e.registerLayout(g2e),e.registerTransform(b2e)}var w2e=["color","borderColor"],C2e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Pl(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&OB(u,f))return;var d=tT(f,c,!0);lr(d,{shape:{points:f.ends}},r,c),rT(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(d);return}var h=n.getItemLayout(c);if(s&&OB(u,h)){a.remove(d);return}d?(Et(d,{shape:{points:h.ends}},r,c),Oa(d)):d=tT(h),rT(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),NB(r,this.group);var n=r.get("clip",!0)?$g(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=tT(s);rT(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){NB(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Zt),T2e=function(){function e(){}return e}(),A2e=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new T2e},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}(vt);function tT(e,t,r){var n=e.ends;return new A2e({shape:{points:r?M2e(n,e):n},z2:100})}function OB(e,t){for(var r=!0,n=0;n<t.ends.length;n++)if(e.contain(t.ends[n][0],t.ends[n][1])){r=!1;break}return r}function rT(e,t,r,n){var i=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,cn(e,i)}function M2e(e,t){return de(e,function(r){return r=r.slice(),r[1]=t.initBaseline,r})}var k2e=function(){function e(){}return e}(),nT=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new k2e},t.prototype.buildPath=function(r,n){for(var i=n.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];r.moveTo(o,i[a++]),r.lineTo(o,i[a++])}else a+=3},t}(vt);function NB(e,t,r,n){var i=e.getData(),a=i.getLayout("largePoints"),o=new nT({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new nT({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new nT({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(l),iT(1,o,e),iT(-1,s,e),iT(0,l,e),n&&(o.incremental=!0,s.incremental=!0),r&&r.push(o,s)}function iT(e,t,r,n){var i=r.get(["itemStyle",e>0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(w2e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var w9=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(or);Lr(w9,S9,!0);function I2e(e){!e||!ue(e.series)||V(e.series,function(t){Ge(t)&&t.type==="k"&&(t.type="candlestick")})}var P2e=["itemStyle","borderColor"],D2e=["itemStyle","borderColor0"],R2e=["itemStyle","borderColorDoji"],E2e=["itemStyle","color"],L2e=["itemStyle","color0"],O2e={seriesType:"candlestick",plan:Gd(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?E2e:L2e)}function n(a,o){return o.get(a===0?R2e:a>0?P2e:D2e)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");oe(f,c)}}}}}},N2e={seriesType:"candlestick",plan:Gd(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=z2e(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=de(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],d=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?v:h};function h(g,y){for(var x,S=y.getStore();(x=g.next())!=null;){var b=S.get(s,x),w=S.get(u,x),T=S.get(c,x),C=S.get(f,x),M=S.get(d,x),k=Math.min(w,T),I=Math.max(w,T),P=q(k,b),R=q(I,b),L=q(C,b),O=q(M,b),N=[];H(N,R,0),H(N,P,1),N.push(F(O),F(R),F(L),F(P));var B=y.getItemModel(x),G=!!B.get(["itemStyle","borderColorDoji"]);y.setItemLayout(x,{sign:zB(S,x,w,T,c,G),initBaseline:w>T?R[a]:P[a],ends:N,brushRect:X(C,M,b)})}function q(Y,Z){var j=[];return j[i]=Z,j[a]=Y,isNaN(Z)||isNaN(Y)?[NaN,NaN]:t.dataToPoint(j)}function H(Y,Z,j){var re=Z.slice(),ce=Z.slice();re[i]=$0(re[i]+n/2,1,!1),ce[i]=$0(ce[i]-n/2,1,!0),j?Y.push(re,ce):Y.push(ce,re)}function X(Y,Z,j){var re=q(Y,j),ce=q(Z,j);return re[i]-=n/2,ce[i]-=n/2,{x:re[0],y:re[1],width:n,height:ce[1]-re[1]}}function F(Y){return Y[i]=$0(Y[i],1),Y}}function v(g,y){for(var x=uo(g.count*4),S=0,b,w=[],T=[],C,M=y.getStore(),k=!!e.get(["itemStyle","borderColorDoji"]);(C=g.next())!=null;){var I=M.get(s,C),P=M.get(u,C),R=M.get(c,C),L=M.get(f,C),O=M.get(d,C);if(isNaN(I)||isNaN(L)||isNaN(O)){x[S++]=NaN,S+=3;continue}x[S++]=zB(M,C,P,R,c,k),w[i]=I,w[a]=L,b=t.dataToPoint(w,null,T),x[S++]=b?b[0]:NaN,x[S++]=b?b[1]:NaN,w[a]=O,b=t.dataToPoint(w,null,T),x[S++]=b?b[1]:NaN}y.setLayout("largePoints",x)}}};function zB(e,t,r,n,i,a){var o;return r>n?o=-1:r<n?o=1:o=a?0:t>0?e.get(i,t-1)<=n?1:-1:1,o}function z2e(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=xe(Qe(e.get("barMaxWidth"),i),i),o=xe(Qe(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?xe(s,i):Math.max(Math.min(i/2,a),o)}function B2e(e){e.registerChartView(C2e),e.registerSeriesModel(w9),e.registerPreprocessor(I2e),e.registerVisual(O2e),e.registerLayout(N2e)}function BB(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var F2e=function(e){J(t,e);function t(r,n){var i=e.call(this)||this,a=new Fg(r,n),o=new qe;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s<a;s++){var l=Er(n,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*r.period+r.effectOffset;l.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(r.period,{opacity:0}).delay(u).start(),o.add(l)}BB(o,r)},t.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,i=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],o=0;o<a.length;o++){var s=a[o];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}BB(i,r)},t.prototype.highlight=function(){ss(this)},t.prototype.downplay=function(){ls(this)},t.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},t.prototype.updateData=function(r,n){var i=this,a=r.hostModel;this.childAt(0).updateData(r,n);var o=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=Wd(r.getItemVisual(n,"symbolSize")),c=r.getItemVisual(n,"style"),f=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(y){y.setStyle("fill",f)});var h=Tc(r.getItemVisual(n,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var v=r.getItemVisual(n,"symbolRotate");o.rotation=(v||0)*Math.PI/180||0;var g={};g.showEffectOn=a.get("showEffectOn"),g.rippleScale=s.get(["rippleEffect","scale"]),g.brushType=s.get(["rippleEffect","brushType"]),g.period=s.get(["rippleEffect","period"])*1e3,g.effectOffset=n/r.count(),g.z=a.getShallow("z")||0,g.zlevel=a.getShallow("zlevel")||0,g.symbolType=l,g.color=f,g.rippleEffectColor=s.get(["rippleEffect","color"]),g.rippleNumber=s.get(["rippleEffect","number"]),g.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(y){y==="emphasis"?g.showEffectOn!=="render"&&i.startEffectAnimation(g):y==="normal"&&g.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=g,mr(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(qe),V2e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._symbolDraw=new Vg(F2e)},t.prototype.render=function(r,n,i){var a=r.getData(),o=this._symbolDraw;o.updateData(a,{clipShape:this._getClipShape(r)}),this.group.add(o.group)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,i=n&&n.getArea&&n.getArea();return r.get("clip",!0)?i:null},t.prototype.updateTransform=function(r,n,i){var a=r.getData();this.group.dirty();var o=Gg("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=upe(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Zt),$2e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return vs(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(or);function G2e(e){e.registerChartView(V2e),e.registerSeriesModel($2e),e.registerLayout(Gg("effectScatter"))}var C9=function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;return a.add(a.createLine(r,n,i)),a._updateEffectSymbol(r,n),a}return t.prototype.createLine=function(r,n,i){return new $I(r,n,i)},t.prototype._updateEffectSymbol=function(r,n){var i=r.getItemModel(n),a=i.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");ue(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=a.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Er(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(a.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(r,a,n))},t.prototype._updateEffectAnimation=function(r,n,i){var a=this.childAt(1);if(a){var o=r.getItemLayout(i),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),f=Qr(n.get("delay"),function(h){return h/r.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),c>0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var d=void 0;Be(f)?d=f(i):d=f,a.__t>0&&(d=-s*a.__t),this._animateSymbol(a,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return tl(r.__p1,r.__cp1)+tl(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=Kr,c=b2;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),d=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=tl(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):r.__lastT===1?r.scaleY=2*tl(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},t.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var i=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,i,n)},t}(qe),T9=function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;return a._createPolyline(r,n,i),a}return t.prototype._createPolyline=function(r,n,i){var a=r.getItemLayout(n),o=new Gn({shape:{points:a}});this.add(o),this._updateCommonStl(r,n,i)},t.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};Et(o,s,a,n),this._updateCommonStl(r,n,i)},t.prototype._updateCommonStl=function(r,n,i){var a=this.childAt(0),o=r.getItemModel(n),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,c=i&&i.emphasisDisabled;if(!i||r.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}a.useStyle(r.getItemVisual(n,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var d=a.ensureState("emphasis");d.style=s,mr(this,l,u,c)},t.prototype.updateLayout=function(r,n){var i=this.childAt(0);i.setShape("points",r.getItemLayout(n))},t}(qe),H2e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return t.prototype.createLine=function(r,n,i){return new T9(r,n,i)},t.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var i=[0],a=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];a+=tl(s,l),i.push(a)}if(a===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=a;this._offsets=i,this._length=a},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(r){var n=r.__t<1?r.__t:2-r.__t,i=this._points,a=this._offsets,o=i.length;if(a){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(a[l]>n);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],d=i[l+1];r.x=f[0]*(1-c)+c*d[0],r.y=f[1]*(1-c)+c*d[1];var h=r.__t<1?d[0]-f[0]:f[0]-d[0],v=r.__t<1?d[1]-f[1]:f[1]-d[1];r.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(C9),W2e=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),j2e=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new W2e},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){r.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)r.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],c=i[o++],f=i[o++],d=i[o++];if(r.moveTo(u,c),a>0){var h=(u+f)/2-(c-d)*a,v=(c+d)/2-(f-u)*a;r.quadraticCurveTo(h,v,f,d)}else r.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<a.length;){var c=a[u++];if(c>0)for(var f=a[u++],d=a[u++],h=1;h<c;h++){var v=a[u++],g=a[u++];if(Qs(f,d,v,g,s,r,n))return l}l++}else for(var l=0,u=0;u<a.length;){var f=a[u++],d=a[u++],v=a[u++],g=a[u++];if(o>0){var y=(f+v)/2-(d-g)*o,x=(d+g)/2-(v-f)*o;if(QG(f,d,y,x,v,g,s,r,n))return l}else if(Qs(f,d,v,g,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],f=i[u++];a=Math.min(c,a),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}r=this._rect=new rt(a,o,s,l)}return r},t}(vt),U2e=function(){function e(){this.group=new qe}return e.prototype.updateData=function(t){this._clear();var r=this._create();r.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(r,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,r){var n=this._newAdded[0],i=r.getLayout("linesPoints"),a=n&&n.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,r),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new j2e({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,r,n){var i=r.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=r.getVisual("style");a&&a.stroke&&t.setStyle("stroke",a.stroke),t.setStyle("fill",null);var o=Ze(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),A9={seriesType:"lines",plan:Gd(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c<i.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=i.start;c<i.end;c++){var h=e.getLineCoords(c,o);r&&(s[f++]=h);for(var v=0;v<h;v++)d=t.dataToPoint(o[v],!1,d),s[f++]=d[0],s[f++]=d[1]}a.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var g=a.getItemModel(c),h=e.getLineCoords(c,o),y=[];if(r)for(var x=0;x<h;x++)y.push(t.dataToPoint(o[x]));else{y[0]=t.dataToPoint(o[0]),y[1]=t.dataToPoint(o[1]);var S=g.get(["lineStyle","curveness"]);+S&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*S,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*S])}a.setItemLayout(c,y)}}}}}},Y2e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r),s=r.get("zlevel"),l=r.get(["effect","trailLength"]),u=i.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&$g(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=A9.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new U2e:new GI(o?a?H2e:T9:a?C9:$I),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(Zt),q2e=typeof Uint32Array>"u"?Array:Uint32Array,X2e=typeof Float64Array>"u"?Array:Float64Array;function FB(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=de(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),Sk([i,r[0],r[1]])}))}var Z2e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],FB(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(FB(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=m1(this._flatCoords,n.flatCoords),this._flatCoordsOffset=m1(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o<a;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[i+o*2],n[o][1]=this._flatCoords[i+o*2+1];return a}else{for(var s=this._getCoordsFromItemModel(r),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Dt(r[0])){for(var i=r.length,a=new q2e(i),o=new X2e(i),s=0,l=0,u=0,c=0;c<i;){u++;var f=r[c++];a[l++]=s+n,a[l++]=f;for(var d=0;d<f;d++){var h=r[c++],v=r[c++];o[s++]=h,o[s++]=v}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},t.prototype.getInitialData=function(r,n){var i=new On(["value"],this);return i.hasItemOption=!1,i.initData(r.data,[],function(a,o,s,l){if(a instanceof Array)return NaN;i.hasItemOption=!0;var u=a.value;if(u!=null)return u instanceof Array?u[l]:u}),i},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=a.getItemModel(r),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Yr("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(or);function g0(e){return e instanceof Array||(e=[e,e]),e}var K2e={seriesType:"lines",reset:function(e){var t=g0(e.get("symbol")),r=g0(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=g0(s.getShallow("symbol",!0)),u=g0(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};function Q2e(e){e.registerChartView(Y2e),e.registerSeriesModel(Z2e),e.registerLayout(A9),e.registerVisual(K2e)}var J2e=256,eAe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=yl.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=r,f.height=n;for(var v=0;v<h;++v){var g=t[v],y=g[0],x=g[1],S=g[2],b=i(S);d.globalAlpha=b,d.drawImage(s,y-c,x-c)}if(!f.width||!f.height)return f;for(var w=d.getImageData(0,0,f.width,f.height),T=w.data,C=0,M=T.length,k=this.minOpacity,I=this.maxOpacity,P=I-k;C<M;){var b=T[C+3]/256,R=Math.floor(b*(J2e-1))*4;if(b>0){var L=o(b)?l:u;b>0&&(b=b*P+k),T[C++]=L[R],T[C++]=L[R+1],T[C++]=L[R+2],T[C++]=L[R+3]*b*256}else C+=4}return d.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=yl.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();function tAe(e,t,r){var n=e[1]-e[0];t=de(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&r[s]}}function rAe(e,t){var r=e[1]-e[0];return t=[(t[0]-e[0])/r,(t[1]-e[0])/r],function(n){return n>=t[0]&&n<=t[1]}}function VB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var nAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):VB(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(VB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Pl(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Mc(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),v=s.getAxis("y");u=h.getBandWidth()+.5,c=v.getBandWidth()+.5,f=h.scale.getExtent(),d=v.scale.getExtent()}for(var g=this.group,y=r.getData(),x=r.getModel(["emphasis","itemStyle"]).getItemStyle(),S=r.getModel(["blur","itemStyle"]).getItemStyle(),b=r.getModel(["select","itemStyle"]).getItemStyle(),w=r.get(["itemStyle","borderRadius"]),T=Ur(r),C=r.getModel("emphasis"),M=C.get("focus"),k=C.get("blurScope"),I=C.get("disabled"),P=l?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],R=i;R<a;R++){var L=void 0,O=y.getItemVisual(R,"style");if(l){var N=y.get(P[0],R),B=y.get(P[1],R);if(isNaN(y.get(P[2],R))||isNaN(N)||isNaN(B)||N<f[0]||N>f[1]||B<d[0]||B>d[1])continue;var G=s.dataToPoint([N,B]);L=new Ct({shape:{x:G[0]-u/2,y:G[1]-c/2,width:u,height:c},style:O})}else{if(isNaN(y.get(P[1],R)))continue;L=new Ct({z2:1,shape:s.dataToRect([y.get(P[0],R)]).contentShape,style:O})}if(y.hasItemOption){var q=y.getItemModel(R),H=q.getModel("emphasis");x=H.getModel("itemStyle").getItemStyle(),S=q.getModel(["blur","itemStyle"]).getItemStyle(),b=q.getModel(["select","itemStyle"]).getItemStyle(),w=q.get(["itemStyle","borderRadius"]),M=H.get("focus"),k=H.get("blurScope"),I=H.get("disabled"),T=Ur(q)}L.shape.r=w;var X=r.getRawValue(R),F="-";X&&X[2]!=null&&(F=X[2]+""),fn(L,T,{labelFetcher:r,labelDataIndex:R,defaultOpacity:O.opacity,defaultText:F}),L.ensureState("emphasis").style=x,L.ensureState("blur").style=S,L.ensureState("select").style=b,mr(L,M,k,I),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),g.add(L),y.setItemGraphicEl(R,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new eAe;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),v=Math.min(c.width+c.x,a.getWidth()),g=Math.min(c.height+c.y,a.getHeight()),y=v-d,x=g-h,S=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],b=l.mapArray(S,function(M,k,I){var P=r.dataToPoint([M,k]);return P[0]-=d,P[1]-=h,P.push(I),P}),w=i.getExtent(),T=i.type==="visualMap.continuous"?rAe(w,i.option.range):tAe(w,i.getPieceList(),i.option.selected);u.update(b,y,x,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},T);var C=new Jr({style:{width:y,height:x,x:d,y:h,image:u.canvas},silent:!0});this.group.add(C)},t.type="heatmap",t}(Zt),iAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return vs(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Og.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(or);function aAe(e){e.registerChartView(nAe),e.registerSeriesModel(iAe)}var oAe=["itemStyle","borderWidth"],$B=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],aT=new ps,sAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:$B[+c],categoryDim:$B[1-+c]};o.diff(s).add(function(v){if(o.hasValue(v)){var g=HB(o,v),y=GB(o,v,g,d),x=WB(o,d,y);o.setItemGraphicEl(v,x),a.add(x),UB(x,d,y)}}).update(function(v,g){var y=s.getItemGraphicEl(g);if(!o.hasValue(v)){a.remove(y);return}var x=HB(o,v),S=GB(o,v,x,d),b=R9(o,S);y&&b!==y.__pictorialShapeStr&&(a.remove(y),o.setItemGraphicEl(v,null),y=null),y?pAe(y,d,S):y=WB(o,d,S,!0),o.setItemGraphicEl(v,y),y.__pictorialSymbolMeta=S,a.add(y),UB(y,d,S)}).remove(function(v){var g=s.getItemGraphicEl(v);g&&jB(s,v,g.__pictorialSymbolMeta.animationModel,g)}).execute();var h=r.get("clip",!0)?$g(r.coordinateSystem,!1,r):null;return h?a.setClipPath(h):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){jB(a,Ze(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Zt);function GB(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};lAe(r,a,i,n,d),uAe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),cAe(r,d.symbolScale,u,n,d);var h=d.symbolSize,v=Tc(r.get("symbolOffset"),h);return fAe(r,h,i,a,o,v,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function lAe(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(ue(o)){var f=[oT(s,o[0])-l,oT(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=oT(s,o)-l:t?c=n.coordSysExtent[a.index][u]-l:c=r[a.wh];i.boundingLength=c,t&&(i.repeatCutLength=r[a.wh]),i.pxSign=c>0?1:-1}function oT(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function uAe(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),h=e.getItemVisual(t,"symbolSize"),v;ue(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=xe(v[f.index],d),v[c.index]=xe(v[c.index],n?d:Math.abs(a)),u.symbolSize=v;var g=u.symbolScale=[v[0]/s,v[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function cAe(e,t,r,n,i){var a=e.get(oAe)||0;a&&(aT.attr({scaleX:t[0],scaleY:t[1],rotation:r}),aT.updateTransform(),a/=aT.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function fAe(e,t,r,n,i,a,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,v=f.pxSign,g=Math.max(t[h.index]+s,0),y=g;if(n){var x=Math.abs(l),S=Qr(e.get("symbolMargin"),"15%")+"",b=!1;S.lastIndexOf("!")===S.length-1&&(b=!0,S=S.slice(0,S.length-1));var w=xe(S,t[h.index]),T=Math.max(g+w*2,0),C=b?0:w*2,M=BG(n),k=M?n:YB((x+C)/T),I=x-k*g;w=I/2/(b?k:Math.max(k-1,1)),T=g+w*2,C=b?0:w*2,!M&&n!=="fixed"&&(k=u?YB((Math.abs(u)+C)/T):0),y=k*T-C,f.repeatTimes=k,f.symbolMargin=w}var P=v*(y/2),R=f.pathPosition=[];R[d.index]=r[d.wh]/2,R[h.index]=o==="start"?P:o==="end"?l-P:l/2,a&&(R[0]+=a[0],R[1]+=a[1]);var L=f.bundlePosition=[];L[d.index]=r[d.xy],L[h.index]=r[h.xy];var O=f.barRectShape=oe({},r);O[h.wh]=v*Math.max(Math.abs(r[h.wh]),Math.abs(R[h.index]+P)),O[d.wh]=r[d.wh];var N=f.clipShape={};N[d.xy]=-r[d.xy],N[d.wh]=c.ecSize[d.wh],N[h.xy]=0,N[h.wh]=r[h.wh]}function M9(e){var t=e.symbolPatternSize,r=Er(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function k9(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(ZI(e,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u?rd(g,null,v(c),r,n):rd(g,null,{scaleX:0,scaleY:0},r,n,function(){i.remove(g)}),c++});c<u;c++){var d=M9(r);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var h=v(c);rd(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},r,n)}function v(g){var y=s.slice(),x=r.pxSign,S=g;return(r.symbolRepeatDirection==="start"?x>0:x<0)&&(S=u-1-g),y[l.index]=f*(S-u/2+.5)+s[l.index],{x:y[0],y:y[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function I9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?rd(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=M9(r),i.add(a),rd(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function P9(e,t,r){var n=oe({},t.barRectShape),i=e.__pictorialBarRect;i?rd(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Ct({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function D9(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=oe({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)Et(i,{shape:a},s,l);else{a[o.wh]=0,i=new Ct({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],Cc[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function HB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=dAe,r.isAnimationEnabled=hAe,r}function dAe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function hAe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function WB(e,t,r,n){var i=new qe,a=new qe;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?k9(i,t,r):I9(i,t,r),P9(i,r,n),D9(i,t,r,n),i.__pictorialShapeStr=R9(e,r),i.__pictorialSymbolMeta=r,i}function pAe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;Et(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?k9(e,t,r,!0):I9(e,t,r,!0),P9(e,r,!0),D9(e,t,r,!0)}function jB(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];ZI(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),V(a,function(o){Sl(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function R9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function ZI(e,t,r){V(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function rd(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&Cc[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function UB(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),d=a.get("scale");ZI(e,function(g){if(g instanceof Jr){var y=g.style;g.useStyle(oe({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},r.style))}else g.useStyle(r.style);var x=g.ensureState("emphasis");x.style=o,d&&(x.scaleX=g.scaleX*1.1,x.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],v=e.__pictorialBarRect;v.ignoreClip=!0,fn(v,Ur(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:bd(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),mr(e,c,f,a.get("disabled"))}function YB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var vAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Dl(eg.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(eg);function gAe(e){e.registerChartView(sAe),e.registerSeriesModel(vAe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Je(v8,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,g8("pictorialBar"))}var mAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(y){return y.name}var h=new us(this._layersSeries||[],l,d,d),v=[];h.add(Ae(g,this,"add")).update(Ae(g,this,"update")).remove(Ae(g,this,"remove")).execute();function g(y,x,S){var b=o._layers;if(y==="remove"){s.remove(b[x]);return}for(var w=[],T=[],C,M=l[x].indices,k=0;k<M.length;k++){var I=a.getItemLayout(M[k]),P=I.x,R=I.y0,L=I.y;w.push(P,R),T.push(P,R+L),C=a.getItemVisual(M[k],"style")}var O,N=a.getItemLayout(M[0]),B=r.getModel("label"),G=B.get("margin"),q=r.getModel("emphasis");if(y==="add"){var H=v[x]=new qe;O=new ij({shape:{points:w,stackedOnPoints:T,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),H.add(O),s.add(H),r.isAnimationEnabled()&&O.setClipPath(yAe(O.getBoundingRect(),r,function(){O.removeClipPath()}))}else{var H=b[S];O=H.childAt(0),s.add(H),v[x]=H,Et(O,{shape:{points:w,stackedOnPoints:T}},r),Oa(O)}fn(O,Ur(r),{labelDataIndex:M[k-1],defaultText:a.getName(M[k-1]),inheritColor:C.fill},{normal:{verticalAlign:"middle"}}),O.setTextConfig({position:null,local:!0});var X=O.getTextContent();X&&(X.x=N.x-G,X.y=N.y0+N.y/2),O.useStyle(C),a.setItemGraphicEl(x,O),cn(O,r),mr(O,q.get("focus"),q.get("blurScope"),q.get("disabled"))}this._layersSeries=l,this._layers=v},t.type="themeRiver",t}(Zt);function yAe(e,t,r){var n=new Ct({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return lr(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}var sT=2,xAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wg(Ae(this.getData,this),Ae(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,i={},a=N2(r,function(d){return i.hasOwnProperty(d[0]+"")||(i[d[0]+""]=-1),d[2]}),o=[];a.buckets.each(function(d,h){o.push({name:h,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";i[f]=l}for(var f in i)i.hasOwnProperty(f)&&i[f]!==l&&(i[f]=l,r[n]=[f,0,u],n++)}return r},t.prototype.getInitialData=function(r,n){for(var i=this.getReferringComponents("singleAxis",Dr).models[0],a=i.get("type"),o=Wt(r.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Re(),c=0,f=0;f<s.length;++f)l.push(s[f][sT]),u.get(s[f][sT])||(u.set(s[f][sT],c),c++);var d=zg(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:G1(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new On(d,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),i=[],a=0;a<n;++a)i[a]=a;var o=r.mapDimension("single"),s=N2(i,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return r.get(o,f)-r.get(o,d)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(r,n,i){ue(r)||(r=r?[r]:[]);for(var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,h=o[c].indices.length,v=0;v<h;++v){var g=a.get(r[0],o[c].indices[v]),y=Math.abs(g-n);y<=f&&(u=g,f=y,d=o[c].indices[v])}s.push(d)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=a.getName(r),s=a.get(a.mapDimension("value"),r);return Yr("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(or);function SAe(e,t){e.eachSeriesByType("themeRiver",function(r){var n=r.getData(),i=r.coordinateSystem,a={},o=i.getRect();a.rect=o;var s=r.get("boundaryGap"),l=i.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=xe(s[0],o.height),s[1]=xe(s[1],o.height);var u=o.height-s[0]-s[1];qB(n,r,u)}else{s[0]=xe(s[0],o.width),s[1]=xe(s[1],o.width);var c=o.width-s[0]-s[1];qB(n,r,c)}n.setLayout("layoutInfo",a)})}function qB(e,t,r){if(e.count())for(var n=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension("single"),o=e.mapDimension("value"),s=de(i,function(y){return de(y.indices,function(x){var S=n.dataToPoint(e.get(a,x));return S[1]=e.get(o,x),S})}),l=bAe(s),u=l.y0,c=r/l.max,f=i.length,d=i[0].indices.length,h,v=0;v<d;++v){h=u[v]*c,e.setItemLayout(i[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:h,y:s[0][v][1]*c});for(var g=1;g<f;++g)h+=s[g-1][v][1]*c,e.setItemLayout(i[g].indices[v],{layerIndex:g,x:s[g][v][0],y0:h,y:s[g][v][1]*c})}}function bAe(e){for(var t=e.length,r=e[0].length,n=[],i=[],a=0,o=0;o<r;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>a&&(a=s),n.push(s)}for(var u=0;u<r;++u)i[u]=(a-n[u])/2;a=0;for(var c=0;c<r;++c){var f=n[c]+i[c];f>a&&(a=f)}return{y0:i,max:a}}function _Ae(e){e.registerChartView(mAe),e.registerSeriesModel(xAe),e.registerLayout(SAe),e.registerProcessor(Hg("themeRiver"))}var wAe=2,CAe=4,XB=function(e){J(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=wAe,o.textConfig={inside:!0},Ze(o).seriesIndex=n.seriesIndex;var s=new kt({z2:CAe,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;Ze(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=oe({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=xd(h,o));var v=Uu(l.getModel("itemStyle"),f,!0);oe(f,v),V(Bn,function(S){var b=s.ensureState(S),w=l.getModel([S,"itemStyle"]);b.style=w.getItemStyle();var T=Uu(w,f);T&&(b.shape=T)}),r?(s.setShape(f),s.shape.r=c.r0,lr(s,{shape:{r:c.r}},i,n.dataIndex)):(Et(s,{shape:f},i),Oa(s)),s.useStyle(d),this._updateLabel(i);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var y=u.get("focus"),x=y==="ancestor"?n.getAncestorsIndices():y==="descendant"?n.getDescendantIndices():y;mr(this,x,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,v=a.get("minAngle")/180*Math.PI,g=a.get("show")&&!(v!=null&&Math.abs(s)<v);d.ignore=!g,V(Gv,function(x){var S=x==="normal"?i.getModel("label"):i.getModel([x,"label"]),b=x==="normal",w=b?d:d.ensureState(x),T=r.getFormattedLabel(h,x);b&&(T=T||n.node.name),w.style=ar(S,{},null,x!=="normal",!0),T&&(w.style.text=T);var C=S.get("show");C!=null&&!b&&(w.ignore=!C);var M=y(S,"position"),k=b?f:f.states[x],I=k.style.fill;k.textConfig={outsideFill:S.get("color")==="inherit"?I:null,inside:M!=="outside"};var P,R=y(S,"distance")||0,L=y(S,"align"),O=y(S,"rotate"),N=Math.PI*.5,B=Math.PI*1.5,G=bi(O==="tangential"?Math.PI/2-l:l),q=G>N&&!Vv(G-N)&&G<B;M==="outside"?(P=o.r+R,L=q?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?P=0:P=(o.r+o.r0)/2,L="center"):L==="left"?(P=o.r0+R,L=q?"right":"left"):L==="right"&&(P=o.r-R,L=q?"left":"right"),w.style.align=L,w.style.verticalAlign=y(S,"verticalAlign")||"middle",w.x=P*u+o.cx,w.y=P*c+o.cy;var H=0;O==="radial"?H=bi(-l)+(q?Math.PI:0):O==="tangential"?H=bi(Math.PI/2-l)+(q?Math.PI:0):Dt(O)&&(H=O*Math.PI/180),w.rotation=bi(H)});function y(x,S){var b=x.get(S);return b??a.get(S)}d.dirtyStyle()},t}(Fn),zA="sunburstRootToNode",ZB="sunburstHighlight",TAe="sunburstUnhighlight";function AAe(e){e.registerAction({type:zA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=rg(t,[zA],i);if(o){var s=i.getViewRoot();s&&(t.direction=NI(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:ZB,update:"none"},function(t,r,n){t=oe({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=rg(t,[ZB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(oe(t,{type:"highlight"}))}),e.registerAction({type:TAe,update:"updateView"},function(t,r,n){t=oe({},t),n.dispatchAction(oe(t,{type:"downplay"}))})}var MAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),d=[];u.eachNode(function(S){d.push(S)});var h=this._oldChildren||[];v(d,h),x(l,u),this._initEvents(),this._oldChildren=d;function v(S,b){if(S.length===0&&b.length===0)return;new us(b,S,w,w).add(T).update(T).remove(Je(T,null)).execute();function w(C){return C.getId()}function T(C,M){var k=C==null?null:S[C],I=M==null?null:b[M];g(k,I)}}function g(S,b){if(!f&&S&&!S.getValue()&&(S=null),S!==l&&b!==l){if(b&&b.piece)S?(b.piece.updateData(!1,S,r,n,i),s.setItemGraphicEl(S.dataIndex,b.piece)):y(b);else if(S){var w=new XB(S,r,n,i);c.add(w),s.setItemGraphicEl(S.dataIndex,w)}}}function y(S){S&&S.piece&&(c.remove(S.piece),S.piece=null)}function x(S,b){b.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,r,n,i):(o.virtualPiece=new XB(S,r,n,i),c.add(o.virtualPiece)),b.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(b.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";E1(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:zA,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(Zt),kAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};E9(i);var a=this._levelModels=de(r.levels||[],function(l){return new Bt(l,this,n)},this),o=OI.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=a[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=PS(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){Bj(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(or);function E9(e){var t=0;V(e.children,function(n){E9(n);var i=n.value;ue(i)&&(i=i[0]),t+=i});var r=e.value;ue(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),ue(e.value)?e.value[0]=r:e.value=r}var KB=Math.PI/180;function IAe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");ue(a)||(a=[0,a]),ue(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=xe(i[0],o),c=xe(i[1],s),f=xe(a[0],l/2),d=xe(a[1],l/2),h=-n.get("startAngle")*KB,v=n.get("minAngle")*KB,g=n.getData().tree.root,y=n.getViewRoot(),x=y.depth,S=n.get("sort");S!=null&&L9(y,S);var b=0;V(y.children,function(G){!isNaN(G.getValue())&&b++});var w=y.getValue(),T=Math.PI/(w||b)*2,C=y.depth>0,M=y.height-(C?-1:1),k=(d-f)/(M||1),I=n.get("clockwise"),P=n.get("stillShowZeroSum"),R=I?1:-1,L=function(G,q){if(G){var H=q;if(G!==g){var X=G.getValue(),F=w===0&&P?T:X*T;F<v&&(F=v),H=q+R*F;var Y=G.depth-x-(C?-1:1),Z=f+k*Y,j=f+k*(Y+1),re=n.getLevelModel(G);if(re){var ce=re.get("r0",!0),te=re.get("r",!0),pe=re.get("radius",!0);pe!=null&&(ce=pe[0],te=pe[1]),ce!=null&&(Z=xe(ce,l/2)),te!=null&&(j=xe(te,l/2))}G.setLayout({angle:F,startAngle:q,endAngle:H,clockwise:I,cx:u,cy:c,r0:Z,r:j})}if(G.children&&G.children.length){var ae=0;V(G.children,function(he){ae+=L(he,q+ae)})}return H-q}};if(C){var O=f,N=f+k,B=Math.PI*2;g.setLayout({angle:B,startAngle:h,endAngle:h+B,clockwise:I,cx:u,cy:c,r0:O,r:N})}L(y,h)})}function L9(e,t){var r=e.children||[];e.children=PAe(r,t),r.length&&V(e.children,function(n){L9(n,t)})}function PAe(e,t){if(Be(t)){var r=de(e,function(i,a){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:a}});return r.sort(function(i,a){return t(i.params,a.params)}),de(r,function(i){return e[i.index]})}else{var n=t==="asc";return e.sort(function(i,a){var o=(i.getValue()-a.getValue())*(n?1:-1);return o===0?(i.dataIndex-a.dataIndex)*(n?-1:1):o})}}function DAe(e){var t={};function r(n,i,a){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&_e(s)&&(s=C2(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");oe(u,l)})})}function RAe(e){e.registerChartView(MAe),e.registerSeriesModel(kAe),e.registerLayout(Je(IAe,"sunburst")),e.registerProcessor(Je(Hg,"sunburst")),e.registerVisual(DAe),AAe(e)}var QB={color:"fill",borderColor:"stroke"},EAe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},es=Tt(),LAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return vs(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=es(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(or);function OAe(e,t){return t=t||[0,0],de(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function NAe(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Ae(OAe,e)}}}function zAe(e,t){return t=t||[0,0],de([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function BAe(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:Ae(zAe,e)}}}function FAe(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function VAe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Ae(FAe,e)}}}function $Ae(e,t){return t=t||[0,0],de(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function GAe(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:Ae($Ae,e)}}}function HAe(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function O9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Pe(e,"text")))}function N9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},Pe(n,"text")&&(o.text=n.text),Pe(n,"rich")&&(o.rich=n.rich),Pe(n,"textFill")&&(o.fill=n.textFill),Pe(n,"textStroke")&&(o.stroke=n.textStroke),Pe(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Pe(n,"fontSize")&&(o.fontSize=n.fontSize),Pe(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Pe(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Pe(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),Pe(n,"textPosition")&&(i.position=n.textPosition),Pe(n,"textOffset")&&(i.offset=n.textOffset),Pe(n,"textRotation")&&(i.rotation=n.textRotation),Pe(n,"textDistance")&&(i.distance=n.textDistance)}return JB(o,e),V(o.rich,function(l){JB(l,l)}),{textConfig:i,textContent:a}}function JB(e,t){t&&(t.font=t.textFont||t.font,Pe(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Pe(t,"textAlign")&&(e.align=t.textAlign),Pe(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Pe(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Pe(t,"textWidth")&&(e.width=t.textWidth),Pe(t,"textHeight")&&(e.height=t.textHeight),Pe(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Pe(t,"textPadding")&&(e.padding=t.textPadding),Pe(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Pe(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Pe(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Pe(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Pe(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Pe(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Pe(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function e4(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";t4(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,V(t.rich,function(s){t4(s,s)}),n}function t4(e,t){t&&(Pe(t,"fill")&&(e.textFill=t.fill),Pe(t,"stroke")&&(e.textStroke=t.fill),Pe(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Pe(t,"font")&&(e.font=t.font),Pe(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Pe(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Pe(t,"fontSize")&&(e.fontSize=t.fontSize),Pe(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Pe(t,"align")&&(e.textAlign=t.align),Pe(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Pe(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Pe(t,"width")&&(e.textWidth=t.width),Pe(t,"height")&&(e.textHeight=t.height),Pe(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Pe(t,"padding")&&(e.textPadding=t.padding),Pe(t,"borderColor")&&(e.textBorderColor=t.borderColor),Pe(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Pe(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Pe(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Pe(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Pe(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Pe(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Pe(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Pe(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Pe(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Pe(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var z9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},r4=St(z9);wo(To,function(e,t){return e[t]=1,e},{});To.join(", ");var ex=["","style","shape","extra"],Cd=Tt();function KI(e,t,r,n,i){var a=e+"Animation",o=Od(e,n,i)||{},s=Cd(t).userDuring;return o.duration>0&&(o.during=s?Ae(qAe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),oe(o,r[a]),o}function Y0(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Cd(e),u=t.style;l.userDuring=t.during;var c={},f={};if(ZAe(e,t,f),i4("shape",t,f),i4("extra",t,f),!a&&s&&(XAe(e,t,c),n4("shape",e,t,c),n4("extra",e,t,c),KAe(e,t,u,c)),f.style=u,WAe(e,f,o),UAe(e,t),s)if(a){var d={};V(ex,function(v){var g=v?t[v]:t;g&&g.enterFrom&&(v&&(d[v]=d[v]||{}),oe(v?d[v]:d,g.enterFrom))});var h=KI("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else jAe(e,t,i||0,r,c);B9(e,t),u?e.dirty():e.markRedraw()}function B9(e,t){for(var r=Cd(e).leaveToProps,n=0;n<ex.length;n++){var i=ex[n],a=i?t[i]:t;a&&a.leaveTo&&(r||(r=Cd(e).leaveToProps={}),i&&(r[i]=r[i]||{}),oe(i?r[i]:r,a.leaveTo))}}function ES(e,t,r,n){if(e){var i=e.parent,a=Cd(e).leaveToProps;if(a){var o=KI("update",e,t,r,0);o.done=function(){i.remove(e)},e.animateTo(a,o)}else i.remove(e)}}function rc(e){return e==="all"}function WAe(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function jAe(e,t,r,n,i){if(i){var a=KI("update",e,t,n,r);a.duration>0&&e.animateFrom(i,a)}}function UAe(e,t){Pe(t,"silent")&&(e.silent=t.silent),Pe(t,"ignore")&&(e.ignore=t.ignore),e instanceof na&&Pe(t,"invisible")&&(e.invisible=t.invisible),e instanceof vt&&Pe(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Ka={},YAe={setTransform:function(e,t){return Ka.el[e]=t,this},getTransform:function(e){return Ka.el[e]},setShape:function(e,t){var r=Ka.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=Ka.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=Ka.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=Ka.el.style;if(t)return t[e]},setExtra:function(e,t){var r=Ka.el.extra||(Ka.el.extra={});return r[e]=t,this},getExtra:function(e){var t=Ka.el.extra;if(t)return t[e]}};function qAe(){var e=this,t=e.el;if(t){var r=Cd(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}Ka.el=t,n(YAe)}}function n4(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),rc(l))oe(o,a);else for(var u=Ut(l),c=0;c<u.length;c++){var f=u[c],d=a[f];o[f]=d}else if(rc(s)||ft(s,e)>=0){!o&&(o=n[e]={});for(var h=St(a),c=0;c<h.length;c++){var f=h[c],d=a[f];QAe(i[f],d)&&(o[f]=d)}}}}}function i4(e,t,r){var n=t[e];if(n)for(var i=r[e]={},a=St(n),o=0;o<a.length;o++){var s=a[o];i[s]=sv(n[s])}}function XAe(e,t,r){for(var n=t.transition,i=rc(n)?To:Ut(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];r[o]=s}}}function ZAe(e,t,r){for(var n=0;n<r4.length;n++){var i=r4[n],a=z9[i],o=t[i];o&&(r[a[0]]=o[0],r[a[1]]=o[1])}for(var n=0;n<To.length;n++){var s=To[n];t[s]!=null&&(r[s]=t[s])}}function KAe(e,t,r,n){if(r){var i=e.style,a;if(i){var o=r.transition,s=t.transition;if(o&&!rc(o)){var l=Ut(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=i[c];a[c]=f}}else if(e.getAnimationStyleProps&&(rc(s)||rc(o)||ft(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var v=St(r),u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=i[c];a[c]=f}}}}}}}function QAe(e,t){return wn(e)?e!==t:e!=null&&isFinite(e)}var F9=Tt(),JAe=["percent","easing","shape","style","extra"];function V9(e){e.stopAnimation("keyframe"),e.attr(F9(e))}function tx(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(ue(t)){V(t,function(s){tx(e,s,r)});return}var n=t.keyframes,i=t.duration;if(r&&i==null){var a=Od("enter",r,0);i=a&&a.duration}if(!(!n||!i)){var o=F9(e);V(ex,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,c){return u.percent-c.percent}),V(n,function(u){var c=e.animators,f=s?u[s]:u;if(f){var d=St(f);if(s||(d=Wt(d,function(g){return ft(JAe,g)<0})),!!d.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<c.length;h++)c[h]!==l&&c[h].targetName===l.targetName&&c[h].stopTracks(d);s&&(o[s]=o[s]||{});var v=s?o[s]:o;V(d,function(g){v[g]=((s?e[s]:e)||{})[g]}),l.whenWithKeys(i*u.percent,f,d,u.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var ts="emphasis",ll="normal",QI="blur",JI="select",Cl=[ll,ts,QI,JI],lT={normal:["itemStyle"],emphasis:[ts,"itemStyle"],blur:[QI,"itemStyle"],select:[JI,"itemStyle"]},uT={normal:["label"],emphasis:[ts,"label"],blur:[QI,"label"],select:[JI,"label"]},eMe=["x","y"],tMe="e\0\0",Fi={normal:{},emphasis:{},blur:{},select:{}},rMe={cartesian2d:NAe,geo:BAe,single:VAe,polar:GAe,calendar:HAe};function BA(e){return e instanceof vt}function FA(e){return e instanceof na}function nMe(e,t){t.copyTransform(e),FA(t)&&FA(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,BA(t)&&BA(e)&&t.setShape(e.shape))}var iMe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=a4(r,s,n,i);o||l.removeAll(),s.diff(o).add(function(f){cT(i,null,f,u(f,a),r,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&ES(d,es(d).option,r)}).update(function(f,d){var h=o.getItemGraphicEl(d);cT(i,h,f,u(f,a),r,l,s)}).execute();var c=r.get("clip",!0)?$g(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,i,a,o){var s=n.getData(),l=a4(n,s,i,a),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=r.start;f<r.end;f++){var d=cT(null,null,f,l(f,o),n,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(r){Pl(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,i,a){var o=n.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t}(Zt);function eP(e){var t=e.type,r;if(t==="path"){var n=e.shape,i=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=H9(n);r=uS(a,null,i,n.layout||"center"),es(r).customPathData=a}else if(t==="image")r=new Jr({}),es(r).customImagePath=e.style.image;else if(t==="text")r=new kt({});else if(t==="group")r=new qe;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Hk(t);if(!o){var s="";Nt(s)}r=new o}return es(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function tP(e,t,r,n,i,a,o){V9(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=eMe);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;Pe(u,"textFill")&&(u.fill=u.textFill),Pe(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=BA(t)?l.decal:null;e&&f&&(f.dirty=!0,c=xd(f,e)),l.__decalPattern=c}if(FA(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Y0(t,n,a,{dataIndex:r,isInit:o,clearStyle:!0}),tx(t,n.keyframeAnimation,a)}function $9(e,t,r,n,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(n===!1){var l=a.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),hc(a)}}function aMe(e,t,r){if(!e.isGroup){var n=e,i=r.currentZ,a=r.currentZLevel;n.z=i,n.zlevel=a;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Cl.length;s++)oMe(n,t,Cl[s])}}function oMe(e,t,r){var n=r===ll,i=n?t:rx(t,r),a=i?i.z2:null,o;a!=null&&(o=n?e:e.ensureState(r),o.z2=a||0)}function a4(e,t,r,n){var i=e.get("renderItem"),a=e.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):rMe[a.type](a));for(var s=Ve({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:w,style:C,ordinalRawValue:T,styleEmphasis:M,visual:P,barLayout:R,currentSeriesIndices:L,font:O},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:sMe(e.getData())},u,c,f={},d={},h={},v={},g=0;g<Cl.length;g++){var y=Cl[g];h[y]=e.getModel(lT[y]),v[y]=e.getModel(uT[y])}function x(N){return N===u?c||(c=t.getItemModel(N)):t.getItemModel(N)}function S(N,B){return t.hasItemOption?N===u?f[B]||(f[B]=x(N).getModel(lT[B])):x(N).getModel(lT[B]):h[B]}function b(N,B){return t.hasItemOption?N===u?d[B]||(d[B]=x(N).getModel(uT[B])):x(N).getModel(uT[B]):v[B]}return function(N,B){return u=N,c=null,f={},d={},i&&i(Ve({dataIndexInside:N,dataIndex:t.getRawIndex(N),actionType:B?B.type:null},l),s)};function w(N,B){return B==null&&(B=u),t.getStore().get(t.getDimensionIndex(N||0),B)}function T(N,B){B==null&&(B=u),N=N||0;var G=t.getDimensionInfo(N);if(!G){var q=t.getDimensionIndex(N);return q>=0?t.getStore().get(q,B):void 0}var H=t.get(G.name,B),X=G&&G.ordinalMeta;return X?X.categories[H]:H}function C(N,B){B==null&&(B=u);var G=t.getItemVisual(B,"style"),q=G&&G.fill,H=G&&G.opacity,X=S(B,ll).getItemStyle();q!=null&&(X.fill=q),H!=null&&(X.opacity=H);var F={inheritColor:_e(q)?q:"#000"},Y=b(B,ll),Z=ar(Y,null,F,!1,!0);Z.text=Y.getShallow("show")?Qe(e.getFormattedLabel(B,ll),bd(t,B)):null;var j=D1(Y,F,!1);return I(N,X),X=e4(X,Z,j),N&&k(X,N),X.legacy=!0,X}function M(N,B){B==null&&(B=u);var G=S(B,ts).getItemStyle(),q=b(B,ts),H=ar(q,null,null,!0,!0);H.text=q.getShallow("show")?go(e.getFormattedLabel(B,ts),e.getFormattedLabel(B,ll),bd(t,B)):null;var X=D1(q,null,!0);return I(N,G),G=e4(G,H,X),N&&k(G,N),G.legacy=!0,G}function k(N,B){for(var G in B)Pe(B,G)&&(N[G]=B[G])}function I(N,B){N&&(N.textFill&&(B.textFill=N.textFill),N.textPosition&&(B.textPosition=N.textPosition))}function P(N,B){if(B==null&&(B=u),Pe(QB,N)){var G=t.getItemVisual(B,"style");return G?G[QB[N]]:null}if(Pe(EAe,N))return t.getItemVisual(B,N)}function R(N){if(a.type==="cartesian2d"){var B=a.getBaseAxis();return Z1e(Ve({axis:B},N))}}function L(){return r.getCurrentSeriesIndices()}function O(N){return Wk(N,r)}}function sMe(e){var t={};return V(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function cT(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=rP(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&mr(s,n.focus,n.blurScope,n.emphasisDisabled),s}function rP(e,t,r,n,i,a){var o=-1,s=t;t&&G9(t,n,i)&&(o=ft(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=eP(n),s&&nMe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Fi.normal.cfg=Fi.normal.conOpt=Fi.emphasis.cfg=Fi.emphasis.conOpt=Fi.blur.cfg=Fi.blur.conOpt=Fi.select.cfg=Fi.select.conOpt=null,Fi.isLegacy=!1,uMe(u,r,n,i,l,Fi),lMe(u,r,n,i,l),tP(e,u,r,n,Fi,i,l),Pe(n,"info")&&(es(u).info=n.info);for(var c=0;c<Cl.length;c++){var f=Cl[c];if(f!==ll){var d=rx(n,f),h=nP(n,d,f);$9(f,u,d,h,Fi)}}return aMe(u,n,i),n.type==="group"&&cMe(e,u,r,n,i),o>=0?a.replaceAt(u,o):a.add(u),u}function G9(e,t,r){var n=es(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&pMe(a)&&H9(a)!==n.customPathData||i==="image"&&Pe(o,"image")&&o.image!==n.customImagePath}function lMe(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&G9(o,a,n)&&(o=null),o||(o=eP(a),e.setClipPath(o)),tP(null,o,t,a,null,n,i)}}function uMe(e,t,r,n,i,a){if(!e.isGroup){o4(r,null,a),o4(r,ts,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=eP(o),e.setTextContent(c)),tP(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d<Cl.length;d++){var h=Cl[d];if(h!==ll){var v=a[h].conOpt;$9(h,c,v,nP(o,v,h),null)}}f?c.dirty():c.markRedraw()}}}}function o4(e,t,r){var n=t?rx(e,t):e,i=t?nP(e,n,ts):e.style,a=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?rx(s,t):s:null;if(i&&(r.isLegacy||O9(i,a,!!o,!!l))){r.isLegacy=!0;var u=N9(i,a,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var f=t?r[t]:r.normal;f.cfg=o,f.conOpt=l}function rx(e,t){return t?e?e[t]:null:e}function nP(e,t,r){var n=t&&t.style;return n==null&&r===ts&&e&&(n=e.styleEmphasis),n}function cMe(e,t,r,n,i){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){dMe({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:r,seriesModel:i,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var f=a[c],d=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),rP(e,d,r,f,i,t)):d.ignore=!0}for(var h=t.childCount()-1;h>=c;h--){var v=t.childAt(h);fMe(t,v,i)}}}function fMe(e,t,r){t&&ES(t,es(e).option,r)}function dMe(e){new us(e.oldChildren,e.newChildren,s4,s4,e).add(l4).update(l4).remove(hMe).execute()}function s4(e,t){var r=e&&e.name;return r??tMe+t}function l4(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;rP(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function hMe(e){var t=this.context,r=t.oldChildren[e];r&&ES(r,es(r).option,t.seriesModel)}function H9(e){return e&&(e.pathData||e.d)}function pMe(e){return e&&(Pe(e,"pathData")||Pe(e,"d"))}function vMe(e){e.registerChartView(iMe),e.registerSeriesModel(LAe)}var Ou=Tt(),u4=We,fT=Ae,iP=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new qe,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Je(c4,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}d4(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=kI(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Ou(t).pointerEl=new Cc[a.type](u4(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ou(t).labelEl=new kt(u4(r.label));t.add(a),f4(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ou(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Ou(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),f4(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Lg(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){as(u.event)},onmousedown:fT(this._onHandleDragMove,this,0,0),drift:fT(this._onHandleDragMove,this),ondragend:fT(this._onHandleDragEnd,this)}),n.add(i)),d4(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ue(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Hd(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){c4(this._axisPointerModel,!r&&this._moveAnimation,this._handle,dT(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(dT(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(dT(i)),Ou(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),qv(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function c4(e,t,r,n){W9(Ou(r).lastProp,n)||(Ou(r).lastProp=n,t?Et(r,n,e):(r.stopAnimation(),r.attr(n)))}function W9(e,t){if(Ge(e)&&Ge(t)){var r=!0;return V(t,function(n,i){r=r&&W9(e[i],n)}),!!r}else return e===t}function f4(e,t){e[t.get(["label","show"])?"show":"hide"]()}function dT(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function d4(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function aP(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function j9(e,t,r,n,i){var a=r.get("value"),o=U9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Fd(s.get("padding")||0),u=s.getFont(),c=Mg(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var g=i.verticalAlign;g==="bottom"&&(f[1]-=h),g==="middle"&&(f[1]-=h/2),gMe(f,d,h,n);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:ar(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function gMe(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function U9(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:mI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};V(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),_e(o)?a=o.replace("{value}",a):Be(o)&&(a=o(s))}return a}function oP(e,t,r){var n=wi();return wc(n,n,r.rotation),Co(n,n,r.position),ka([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function Y9(e,t,r,n,i,a){var o=Nn.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),j9(t,n,i,a,{position:oP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function sP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function q9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function h4(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var mMe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=p4(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=aP(a),h=yMe[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=xA(l.model,i);Y9(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=xA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=oP(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=p4(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(iP);function p4(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var yMe={line:function(e,t,r){var n=sP([t,r[0]],[t,r[1]],v4(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:q9([t-n/2,r[0]],[n,i],v4(e))}}};function v4(e){return e.dim==="x"?0:1}var xMe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#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}(xt),Zo=Tt(),SMe=V;function X9(e,t,r){if(!yt.node){var n=t.getZr();Zo(n).records||(Zo(n).records={}),bMe(n,t);var i=Zo(n).records[e]||(Zo(n).records[e]={});i.handler=r}}function bMe(e,t){if(Zo(e).initialized)return;Zo(e).initialized=!0,r("click",Je(g4,"click")),r("mousemove",Je(g4,"mousemove")),r("globalout",wMe);function r(n,i){e.on(n,function(a){var o=CMe(t);SMe(Zo(e).records,function(s){s&&i(s,a,o.dispatchAction)}),_Me(o.pendings,t)})}}function _Me(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function wMe(e,t,r){e.handler("leave",null,r)}function g4(e,t,r,n){t.handler(e,r,n)}function CMe(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function VA(e,t){if(!yt.node){var r=t.getZr(),n=(Zo(r).records||{})[e];n&&(Zo(r).records[e]=null)}}var TMe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";X9("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){VA("axisPointer",n)},t.prototype.dispose=function(r,n){VA("axisPointer",n)},t.type="axisPointer",t}(dr);function Z9(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=fc(a,e);if(o==null||o<0||ue(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,v=a.mapDimension(d),g=[];g[h]=a.get(v,o),g[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(de(l.dimensions,function(x){return a.mapDimension(x)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),r=[y.x+y.width/2,y.y+y.height/2]}return{point:r,el:s}}var m4=Tt();function AMe(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Ae(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){q0(i)&&(i=Z9({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=q0(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||q0(i),d={},h={},v={list:[],map:{}},g={showPointer:Je(kMe,h),showTooltip:Je(IMe,v)};V(s.coordSysMap,function(x,S){var b=l||x.containPoint(i);V(s.coordSysAxesInfo[S],function(w,T){var C=w.axis,M=EMe(u,w);if(!f&&b&&(!u||M)){var k=M&&M.value;k==null&&!l&&(k=C.pointToData(i)),k!=null&&y4(w,k,g,!1,d)}})});var y={};return V(c,function(x,S){var b=x.linkGroup;b&&!h[S]&&V(b.axesInfo,function(w,T){var C=h[T];if(w!==x&&C){var M=C.value;b.mapper&&(M=x.axis.scale.parse(b.mapper(M,x4(w),x4(x)))),y[x.key]=M}})}),V(y,function(x,S){y4(c[S],x,g,!0,d)}),PMe(h,c,d),DMe(v,i,e,o),RMe(c,o,r),d}}function y4(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=MMe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&oe(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function MMe(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return V(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,g=Math.abs(v);g<=o&&((g<o||v>=0&&s<0)&&(o=g,s=v,i=f,a.length=0),V(d,function(y){a.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:a,snapToValue:i}}function kMe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function IMe(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=tg(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:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function PMe(e,t,r){var n=r.axesInfo=[];V(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function DMe(e,t,r,n){if(q0(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function RMe(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=m4(n)[i]||{},o=m4(n)[i]={};V(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&V(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];V(a,function(u,c){!o[c]&&l.push(u)}),V(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function EMe(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function x4(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function q0(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Yg(e){kc.registerAxisPointerClass("CartesianAxisPointer",mMe),e.registerComponentModel(xMe),e.registerComponentView(TMe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!ue(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=Hbe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},AMe)}function LMe(e){pt(Cj),pt(Yg)}var OMe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),d=a.get("type");if(d&&d!=="none"){var h=aP(a),v=zMe[d](s,l,f,c);v.style=h,r.graphicKey=v.type,r.pointer=v}var g=a.get(["label","margin"]),y=NMe(n,i,a,l,g);j9(r,i,a,o,y)},t}(iP);function NMe(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var d=wi();wc(d,d,s),Co(d,d,[n.cx,n.cy]),u=ka([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,v=Nn.innerTextLayout(s,h*Math.PI/180,-1);c=v.textAlign,f=v.textVerticalAlign}else{var g=l[1];u=n.coordToPoint([g+i,o]);var y=n.cx,x=n.cy;c=Math.abs(u[0]-y)/g<.3?"center":u[0]>y?"left":"right",f=Math.abs(u[1]-x)/g<.3?"middle":u[1]>x?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var zMe={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:sP(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:h4(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:h4(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}},BMe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(xt),lP=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Dr).models[0]},t.type="polarAxis",t}(xt);Lr(lP,Bg);var FMe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(lP),VMe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(lP),uP=function(e){J(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(Ba);uP.prototype.dataToRadius=Ba.prototype.dataToCoord;uP.prototype.radiusToData=Ba.prototype.coordToData;var $Me=Tt(),cP=function(e){J(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=Mg(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),v=$Me(r.model),g=v.lastAutoInterval,y=v.lastTickCount;return g!=null&&y!=null&&Math.abs(g-h)<=1&&Math.abs(y-o)<=1&&g>h?h=g:(v.lastTickCount=o,v.lastAutoInterval=h),h},t}(Ba);cP.prototype.dataToAngle=Ba.prototype.dataToCoord;cP.prototype.angleToData=Ba.prototype.coordToData;var K9=["radius","angle"],GMe=function(){function e(t){this.dimensions=K9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new uP,this._angleAxis=new cP,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,r,n){var i=S4(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=S4(r);return i===this?this.pointToData(n):null},e}();function S4(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function HMe(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=xe(n[0],i),e.cy=xe(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:ue(l)||(l=[0,l]);var u=[xe(l[0],s),xe(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function WMe(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();V(H1(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),V(H1(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Sd(n.scale,n.model),Sd(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function jMe(e){return e.mainType==="angleAxis"}function b4(e,t){var r;if(e.type=t.get("type"),e.scale=AS(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),jMe(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(r=t.get("endAngle"))!==null&&r!==void 0?r:n+(e.inverse?-360:360);e.setExtent(n,i)}t.axis=e,e.model=t}var UMe={dimensions:K9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new GMe(i+"");a.update=WMe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");b4(o,l),b4(s,u),HMe(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",Dr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}},YMe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function m0(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function y0(e){var t=e.getRadiusAxis();return t.inverse?0:1}function _4(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var qMe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=de(i.getViewLabels(),function(c){c=We(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});_4(u),_4(s),V(YMe,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&XMe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(kc),XMe={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=y0(r),f=c?0:1,d,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?d=new Cc[h]({shape:{cx:r.cx,cy:r.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):d=new Pg({shape:{cx:r.cx,cy:r.cy,r:a[c],r0:a[f]},style:o.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,e.add(d)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[y0(r)],u=de(n,function(c){return new Hr({shape:m0(r,[l,l+s],c.coord)})});e.add(Zi(u,{style:Ve(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[y0(r)],c=[],f=0;f<i.length;f++)for(var d=0;d<i[f].length;d++)c.push(new Hr({shape:m0(r,[u,u+l],i[f][d].coord)}));e.add(Zi(c,{style:Ve(s.getModel("lineStyle").getLineStyle(),Ve(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");V(o,function(f,d){var h=l,v=f.tickValue,g=a[y0(r)],y=r.coordToPoint([g+u,f.coord]),x=r.cx,S=r.cy,b=Math.abs(y[0]-x)/g<.3?"center":y[0]>x?"left":"right",w=Math.abs(y[1]-S)/g<.3?"middle":y[1]>S?"top":"bottom";if(s&&s[v]){var T=s[v];Ge(T)&&T.textStyle&&(h=new Bt(T.textStyle,l,l.ecModel))}var C=new kt({silent:Nn.isLabelSilent(t),style:ar(h,{x:y[0],y:y[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:b,verticalAlign:w})});if(e.add(C),c){var M=Nn.makeAxisEventDataBase(t);M.targetType="axisLabel",M.value=f.rawLabel,Ze(C).eventData=M}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<n.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Hr({shape:m0(r,a,n[f].coord)}))}for(var f=0;f<c.length;f++)e.add(Zi(c[f],{style:Ve({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new Hr({shape:m0(r,a,i[u][c].coord)}));e.add(Zi(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,i,a){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-n[0].coord*f,h=Math.min(a[0],a[1]),v=Math.max(a[0],a[1]),g=t.get("clockwise"),y=1,x=n.length;y<=x;y++){var S=y===x?n[0].coord:n[y].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new Fn({shape:{cx:r.cx,cy:r.cy,r0:h,r:v,startAngle:d,endAngle:-S*f,clockwise:g},silent:!0})),d=-S*f}for(var y=0;y<c.length;y++)e.add(Zi(c[y],{style:Ve({fill:l[y%l.length]},s.getAreaStyle()),silent:!0}))}}},ZMe=["axisLine","axisTickLabel","axisName"],KMe=["splitLine","splitArea","minorSplitLine"],QMe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=this._axisGroup,a=this._axisGroup=new qe;this.group.add(a);var o=r.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],d=o.getExtent(),h=eke(s,r,f),v=new Nn(r,h);V(ZMe,v.add,v),a.add(v.getGroup()),Eg(i,a,r),V(KMe,function(g){r.get([g,"show"])&&!o.scale.isBlank()&&JMe[g](this.group,r,s,f,d,u,c)},this)}},t.type="radiusAxis",t}(kc),JMe={splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=r.getAngleAxis(),f=Math.PI/180,d=c.getExtent(),h=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var v=[],g=0;g<a.length;g++){var y=u++%l.length;v[y]=v[y]||[],v[y].push(new Cc[h]({shape:{cx:r.cx,cy:r.cy,r:Math.max(a[g].coord,0),startAngle:-d[0]*f,endAngle:-d[1]*f,clockwise:c.inverse}}))}for(var g=0;g<v.length;g++)e.add(Zi(v[g],{style:Ve({stroke:l[g%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,i,a,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new ps({shape:{cx:r.cx,cy:r.cy,r:o[c][f].coord}}));e.add(Zi(u,{style:Ve({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,i,a){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=a[0].coord,d=1;d<a.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Fn({shape:{cx:r.cx,cy:r.cy,r0:f,r:a[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=a[d].coord}for(var d=0;d<c.length;d++)e.add(Zi(c[d],{style:Ve({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function eke(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function Q9(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function J9(e,t){return t.dim+e.model.componentIndex}function tke(e,t,r){var n={},i=rke(Wt(t.getSeriesByType(e),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=J9(s,l),c=Q9(a),f=i[u][c],d=f.offset,h=f.width,v=s.getOtherAxis(l),g=a.coordinateSystem.cx,y=a.coordinateSystem.cy,x=a.get("barMinHeight")||0,S=a.get("barMinAngle")||0;n[c]=n[c]||[];for(var b=o.mapDimension(v.dim),w=o.mapDimension(l.dim),T=_l(o,b),C=l.dim!=="radius"||!a.get("roundCap",!0),M=v.model,k=M.get("startValue"),I=v.dataToCoord(k||0),P=0,R=o.count();P<R;P++){var L=o.get(b,P),O=o.get(w,P),N=L>=0?"p":"n",B=I;T&&(n[c][O]||(n[c][O]={p:I,n:I}),B=n[c][O][N]);var G=void 0,q=void 0,H=void 0,X=void 0;if(v.dim==="radius"){var F=v.dataToCoord(L)-I,Y=l.dataToCoord(O);Math.abs(F)<x&&(F=(F<0?-1:1)*x),G=B,q=B+F,H=Y-d,X=H-h,T&&(n[c][O][N]=q)}else{var Z=v.dataToCoord(L,C)-I,j=l.dataToCoord(O);Math.abs(Z)<S&&(Z=(Z<0?-1:1)*S),G=j+d,q=G+h,H=B,X=B+Z,T&&(n[c][O][N]=X)}o.setItemLayout(P,{cx:g,cy:y,r0:G,r:q,startAngle:-H*Math.PI/180,endAngle:-X*Math.PI/180,clockwise:H>=X})}}})}function rke(e){var t={};V(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=J9(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var h=Q9(n);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var v=xe(n.get("barWidth"),c),g=xe(n.get("barMaxWidth"),c),y=n.get("barGap"),x=n.get("barCategoryGap");v&&!d[h].width&&(v=Math.min(f.remainedWidth,v),d[h].width=v,f.remainedWidth-=v),g&&(d[h].maxWidth=g),y!=null&&(f.gap=y),x!=null&&(f.categoryGap=x)});var r={};return V(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=xe(n.categoryGap,o),l=xe(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),V(a,function(g,y){var x=g.maxWidth;x&&x<f&&(x=Math.min(x,u),g.width&&(x=Math.min(x,g.width)),u-=x,g.width=x,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,h;V(a,function(g,y){g.width||(g.width=f),h=g,d+=g.width*(1+l)}),h&&(d-=h.width*l);var v=-d/2;V(a,function(g,y){r[i][y]=r[i][y]||{offset:v,width:g.width},v+=g.width*(1+l)})}),r}var nke={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},ike={splitNumber:5},ake=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(dr);function oke(e){pt(Yg),kc.registerAxisPointerClass("PolarAxisPointer",OMe),e.registerCoordinateSystem("polar",UMe),e.registerComponentModel(BMe),e.registerComponentView(ake),_d(e,"angle",FMe,nke),_d(e,"radius",VMe,ike),e.registerComponentView(qMe),e.registerComponentView(QMe),e.registerLayout(Je(tke,"bar"))}function $A(e,t){t=t||{};var r=e.coordinateSystem,n=e.axis,i={},a=n.position,o=n.orient,s=r.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=f[a],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Qr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=t.rotate;return d==null&&(d=e.get(["axisLabel","rotate"])),i.labelRotation=a==="top"?-d:d,i.z2=1,i}var ske=["axisLine","axisTickLabel","axisName"],lke=["splitArea","splitLine"],uke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="SingleAxisPointer",r}return t.prototype.render=function(r,n,i,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new qe;var l=$A(r),u=new Nn(r,l);V(ske,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),V(lke,function(c){r.get([c,"show"])&&cke[c](this,this.group,this._axisGroup,r)},this),Eg(s,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)},t.prototype.remove=function(){bj(this)},t.type="singleAxis",t}(kc),cke={splitLine:function(e,t,r,n){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),c=i.isHorizontal(),f=[],d=0,h=i.getTicksCoords({tickModel:a}),v=[],g=[],y=0;y<h.length;++y){var x=i.toGlobalCoord(h[y].coord);c?(v[0]=x,v[1]=u.y,g[0]=x,g[1]=u.y+u.height):(v[0]=u.x,v[1]=x,g[0]=u.x+u.width,g[1]=x);var S=new Hr({shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},silent:!0});md(S.shape,l);var b=d++%s.length;f[b]=f[b]||[],f[b].push(S)}for(var w=o.getLineStyle(["color"]),y=0;y<f.length;++y)t.add(Zi(f[y],{style:Ve({stroke:s[y%s.length]},w),silent:!0}))}},splitArea:function(e,t,r,n){Sj(e,r,n,n)}},X0=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(xt);Lr(X0,Bg.prototype);var fke=function(e){J(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},t}(Ba),e7=["single"],dke=function(){function e(t,r,n){this.type="single",this.dimension="single",this.dimensions=e7,this.axisPointerEnabled=!0,this.model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=this.dimension,a=new fke(i,AS(t),[0,0],t.get("type"),t.get("position")),o=a.type==="category";a.onBand=o&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},e.prototype.update=function(t,r){t.eachSeries(function(n){if(n.coordinateSystem===this){var i=n.getData();V(i.mapDimensionsAll(this.dimension),function(a){this._axis.scale.unionExtentFromData(i,a)},this),Sd(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,r){this._rect=Fr({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,r=this._axis,n=r.isHorizontal(),i=n?[0,t.width]:[0,t.height],a=r.inverse?1:0;r.setExtent(i[a],i[1-a]),this._updateAxisTransform(r,n?t.x:t.y)},e.prototype._updateAxisTransform=function(t,r){var n=t.getExtent(),i=n[0]+n[1],a=t.isHorizontal();t.toGlobalCoord=a?function(o){return o+r}:function(o){return i-o+r},t.toLocalCoord=a?function(o){return o-r}:function(o){return i-o+r}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var r=this.getRect(),n=this.getAxis(),i=n.orient;return i==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=w4(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=w4(r);return i===this?this.pointToData(n):null},e}();function w4(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function hke(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new dke(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",Dr).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var pke={create:hke,dimensions:e7},C4=["x","y"],vke=["width","height"],gke=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=hT(l,1-nx(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=aP(a),h=mke[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=$A(i);Y9(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=$A(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=oP(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=nx(o),u=hT(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=hT(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(iP),mke={line:function(e,t,r){var n=sP([t,r[0]],[t,r[1]],nx(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:q9([t-n/2,r[0]],[n,i],nx(e))}}};function nx(e){return e.isHorizontal()?0:1}function hT(e,t){var r=e.getRect();return[r[C4[t]],r[C4[t]]+r[vke[t]]]}var yke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(dr);function xke(e){pt(Yg),kc.registerAxisPointerClass("SingleAxisPointer",gke),e.registerComponentView(yke),e.registerComponentView(uke),e.registerComponentModel(X0),_d(e,"single",X0,X0.defaultOption),e.registerCoordinateSystem("single",pke)}var Ske=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=Vd(r);e.prototype.init.apply(this,arguments),T4(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),T4(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(xt);function T4(e,t){var r=e.cellSize,n;ue(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=de([0,1],function(a){return Fme(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});bl(e,t,{type:"box",ignoreSize:i})}var bke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Ct({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){v(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}v(s.getNextNDay(n.end.time,1).formatedDate);function v(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var y=o._getLinePointsOfOneWeek(r,g,i);o._tlpoints.push(y[0]),o._blpoints.push(y[y.length-1]),u&&o._drawSplitline(y,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new Gn({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return _e(r)&&r?Nme(r,n):Be(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=i==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var g=o.get("formatter"),y={start:n.start.y,end:n.end.y,nameMap:v},x=this._formatterLabel(g,y),S=new kt({z2:30,style:ar(o,{text:x})});S.attr(this._yearTextPositionControl(S,h[l],i,l,s)),a.add(S)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||_e(s))&&(s&&(n=q2(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=c==="center",g=0;g<f[d].length-1;g++){var y=f[d][g].slice(),x=this._firstDayOfMonth[g];if(v){var S=this._firstDayPoints[g];y[h]=(S[h]+f[0][g+1][h])/2}var b=o.get("formatter"),w=s[+x.m-1],T={yyyy:x.y,yy:(x.y+"").slice(2),MM:x.m,M:+x.m,nameMap:w},C=this._formatterLabel(b,T),M=new kt({z2:30,style:oe(ar(o,{text:C}),this._monthTextPositionControl(y,v,i,u,l))});a.add(M)}}},t.prototype._weekTextPositionControl=function(r,n,i,a,o){var s="center",l="middle",u=r[0],c=r[1],f=i==="start";return n==="horizontal"?(u=u+a+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+a+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(r,n,i,a,o){var s=r.getModel("dayLabel");if(s.get("show")){var l=r.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||_e(c)){c&&(n=q2(c)||n);var h=n.get(["time","dayOfWeekShort"]);c=h||de(n.get(["time","dayOfWeekAbbr"]),function(T){return T[0]})}var v=l.getNextNDay(i.end.time,7-i.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];f=xe(f,Math.min(g[1],g[0])),u==="start"&&(v=l.getNextNDay(i.start.time,-(7+i.fweek)).time,f=-f);for(var y=0;y<7;y++){var x=l.getNextNDay(v,y),S=l.dataToRect([x.time],!1).center,b=y;b=Math.abs((y+d)%7);var w=new kt({z2:30,style:oe(ar(s,{text:c[b]}),this._weekTextPositionControl(S,a,u,f,g))});o.add(w)}}},t.type="calendar",t}(dr),pT=864e5,_ke=function(){function e(t,r,n){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=Ao(t);var r=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,a=t.getDate(),o=a<10?"0"+a:""+a,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:i,d:o,day:s,time:t.getTime(),formatedDate:r+"-"+i+"-"+o,date:t}},e.prototype.getNextNDay=function(t,r){return r=r||0,r===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+r),this.getDateInfo(t))},e.prototype.update=function(t,r){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];V([0,1],function(f){c(a,f)&&(o[i[f]]=a[f]*s[f])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=Fr(o,l);V([0,1],function(f){c(a,f)||(a[f]=u[i[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=a[0],this._sh=a[1]},e.prototype.dataToPoint=function(t,r){ue(t)&&(t=t[0]),r==null&&(r=!0);var n=this.getDateInfo(t),i=this._rangeInfo,a=n.formatedDate;if(r&&!(n.time>=i.start.time&&n.time<i.end.time+pT))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var r=this.pointToDate(t);return r&&r.time},e.prototype.dataToRect=function(t,r){var n=this.dataToPoint(t,r);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var r=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,i):this._getDateByWeeksAndDay(r,n-1,i)},e.prototype.convertToPixel=function(t,r,n){var i=A4(r);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=A4(r);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),r;if(ue(t)&&t.length===1&&(t=t[0]),ue(t))r=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(r=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);r=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(r=[n,n])}if(!r)return t;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/pT)-Math.floor(r[0].time/pT)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&r<i.fweek||t===i.weeks&&r>i.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function A4(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function wke(e){e.registerComponentModel(Ske),e.registerComponentView(bke),e.registerCoordinateSystem("calendar",_ke)}function Cke(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function M4(e,t){var r;return V(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function Tke(e,t,r){var n=oe({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(tt(i,n,!0),bl(i,n,{ignoreSize:!0}),YH(r,i),x0(r,i),x0(r,i,"shape"),x0(r,i,"style"),x0(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var t7=["transition","enterFrom","leaveTo"],Ake=t7.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function x0(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?t7:Ake,i=0;i<n.length;i++){var a=n[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function Mke(e,t){if(e&&(e.hv=t.hv=[M4(t,["left","right"]),M4(t,["top","bottom"])],e.type==="group")){var r=e,n=t;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var kke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=i},t.prototype.optionUpdated=function(r,n){var i=this.option,a=(n?i:r).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=HG(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];V(l,function(c,f){var d=c.newOption;d&&(u.push(d),Cke(c,d),Tke(o,f,d),Mke(o[f],d))},this),i.elements=Wt(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(r,n,i){V(r,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(xt),k4={path:null,compoundPath:null,group:qe,image:Jr,text:kt},Wi=Tt(),Ike=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._elMap=Re()},t.prototype.render=function(r,n,i){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,i)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=r.get("z"),s=r.get("zlevel");V(n,function(l){var u=Br(l.id,null),c=u!=null?i.get(u):null,f=Br(l.parentId,null),d=f!=null?i.get(f):a,h=l.type,v=l.style;h==="text"&&v&&l.hv&&l.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var g=l.textContent,y=l.textConfig;if(v&&O9(v,h,!!y,!!g)){var x=N9(v,h,!0);!y&&x.textConfig&&(y=l.textConfig=x.textConfig),!g&&x.textContent&&(g=x.textContent)}var S=Pke(l),b=l.$action||"merge",w=b==="merge",T=b==="replace";if(w){var C=!c,M=c;C?M=I4(u,d,l.type,i):(M&&(Wi(M).isNew=!1),V9(M)),M&&(Y0(M,S,r,{isInit:C}),P4(M,l,o,s))}else if(T){Z0(c,l,i,r);var k=I4(u,d,l.type,i);k&&(Y0(k,S,r,{isInit:!0}),P4(k,l,o,s))}else b==="remove"&&(B9(c,l),Z0(c,l,i,r));var I=i.get(u);if(I&&g)if(w){var P=I.getTextContent();P?P.attr(g):I.setTextContent(new kt(g))}else T&&I.setTextContent(new kt(g));if(I){var R=l.clipPath;if(R){var L=R.type,O=void 0,C=!1;if(w){var N=I.getClipPath();C=!N||Wi(N).type!==L,O=C?GA(L):N}else T&&(C=!0,O=GA(L));I.setClipPath(O),Y0(O,R,r,{isInit:C}),tx(O,R.keyframeAnimation,r)}var B=Wi(I);I.setTextConfig(y),B.option=l,Dke(I,r,l),Nd({el:I,componentModel:r,itemName:I.name,itemTooltipOption:l.tooltip}),tx(I,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var i=r.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<i.length;c++){var f=i[c],d=Br(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var v=h.parent,g=v===a,y=Wi(h),x=Wi(v);y.width=xe(y.option.width,g?s:x.width)||0,y.height=xe(y.option.height,g?l:x.height)||0}}for(var c=i.length-1;c>=0;c--){var f=i[c],d=Br(f.id,null),h=d!=null?o.get(d):null;if(h){var v=h.parent,x=Wi(v),S=v===a?{width:s,height:l}:{width:x.width,height:x.height},b={},w=mS(h,f,S,null,{hv:f.hv,boundingMode:f.bounding},b);if(!Wi(h).isNew&&w){for(var T=f.transition,C={},M=0;M<u.length;M++){var k=u[M],I=b[k];T&&(rc(T)||ft(T,k)>=0)?C[k]=I:h[k]=I}Et(h,C,r,0)}else h.attr(b)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){Z0(i,Wi(i).option,n,r._lastGraphicModel)}),this._elMap=Re()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(dr);function GA(e){var t=Pe(k4,e)?k4[e]:Hk(e),r=new t({});return Wi(r).type=e,r}function I4(e,t,r,n){var i=GA(r);return t.add(i),n.set(e,i),Wi(i).id=e,Wi(i).isNew=!0,i}function Z0(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){Z0(a,t,r,n)}),ES(e,t,n),r.removeKey(Wi(e).id))}function P4(e,t,r,n){e.isGroup||V([["cursor",na.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];Pe(t,a)?e[a]=Qe(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),V(St(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=Be(a)?a:null}}),Pe(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function Pke(e){return e=oe({},e),V(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(UH),function(t){delete e[t]}),e}function Dke(e,t,r){var n=Ze(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ze(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function Rke(e){e.registerComponentModel(kke),e.registerComponentView(Ike),e.registerPreprocessor(function(t){var r=t.graphic;ue(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var D4=["x","y","radius","angle","single"],Eke=["cartesian2d","polar","singleAxis"];function Lke(e){var t=e.get("coordinateSystem");return ft(Eke,t)>=0}function ul(e){return e+"Axis"}function Oke(e,t){var r=Re(),n=[],i=Re();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var v=r.get(d);v&&v[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function r7(e){var t=e.ecModel,r={infoList:[],infoMap:Re()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(ul(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var vT=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),sg=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=R4(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=R4(r);tt(this.option,r,!0),tt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;V([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=Re(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return V(D4,function(i){var a=this.getReferringComponents(ul(i),Tve);if(a.specified){n=!0;var o=new vT;V(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new vT;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",Dr).models[0];h&&V(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",Dr).models[0]&&d.add(v.componentIndex)})}}}a&&V(D4,function(u){if(a){var c=i.findComponents({mainType:ul(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new vT;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");V([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(ul(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){V(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(ul(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;V([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;V(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},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}(xt);function R4(e){var t={};return V(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var Nke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(sg),fP=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.dataZoomModel=r,this.ecModel=n,this.api=i},t.type="dataZoom",t}(dr),zke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(fP),Of=V,E4=Qi,Bke=function(){function e(t,r,n,i){this._dimName=t,this._axisIndex=r,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(Lke(r)){var n=ul(this._dimName),i=r.getReferringComponents(n,Dr).models[0];i&&this._axisIndex===i.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return We(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Of(["start","end"],function(d,h){var v=t[d],g=t[d+"Value"];a[h]==="percent"?(v==null&&(v=o[h]),g=i.parse(Vt(v,o,r))):(u=!0,g=g==null?r[h]:i.parse(g),v=Vt(g,r,o)),l[h]=g==null||isNaN(g)?r[h]:g,s[h]=v==null||isNaN(v)?o[h]:v}),E4(l),E4(s);var c=this._minMaxSpan;u?f(l,s,r,o,!1):f(s,l,o,r,!0);function f(d,h,v,g,y){var x=y?"Span":"ValueSpan";Ic(0,d,v,"all",c["min"+x],c["max"+x]);for(var S=0;S<2;S++)h[S]=Vt(d[S],v,g,!0),y&&(h[S]=i.parse(h[S]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=Fke(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;Of(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(a==="weakFilter"){var f=u.getStore(),d=de(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,g,y,x=0;x<c.length;x++){var S=f.get(d[x],h),b=!isNaN(S),w=S<o[0],T=S>o[1];if(b&&!w&&!T)return!0;b&&(y=!0),w&&(v=!0),T&&(g=!0)}return y&&v&&g})}else Of(c,function(h){if(a==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});Of(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Of(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Vt(n[0]+o,n,[0,100],!0):a!=null&&(o=Vt(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=OG(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function Fke(e,t,r){var n=[1/0,-1/0];Of(r,function(o){yxe(n,o.getData(),t)});var i=e.getAxisModel(),a=S8(i.axis.scale,i,n).calculate();return[a.min,a.max]}var Vke={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(ul(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Bke(i,a,s,e),r.push(o.__dzAxisProxy))});var n=Re();return V(r,function(i){V(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function $ke(e){e.registerAction("dataZoom",function(t,r){var n=Oke(r,t);V(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var L4=!1;function dP(e){L4||(L4=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Vke),$ke(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Gke(e){e.registerComponentModel(Nke),e.registerComponentView(zke),dP(e)}var Xi=function(){function e(){}return e}(),n7={};function Nf(e,t){n7[e]=t}function i7(e){return n7[e]}var Hke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;V(this.option.feature,function(n,i){var a=i7(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),tt(n,a.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}(xt);function Wke(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=Fr(n,a,i);ec(t.get("orient"),e,t.get("itemGap"),o.width,o.height),mS(e,n,a,i)}function a7(e,t){var r=Fd(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ct({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var jke=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];V(u,function(v,g){f.push(g)}),new us(this._featureNames||[],f).add(d).update(d).remove(Je(d,null)).execute(),this._featureNames=f;function d(v,g){var y=f[v],x=f[g],S=u[y],b=new Bt(S,r,r.ecModel),w;if(a&&a.newTitle!=null&&a.featureName===y&&(S.title=a.newTitle),y&&!x){if(Uke(y))w={onclick:b.option.onclick,featureName:y};else{var T=i7(y);if(!T)return;w=new T}c[y]=w}else if(w=c[x],!w)return;w.uid=Bd("toolbox-feature"),w.model=b,w.ecModel=n,w.api=i;var C=w instanceof Xi;if(!y&&x){C&&w.dispose&&w.dispose(n,i);return}if(!b.get("show")||C&&w.unusable){C&&w.remove&&w.remove(n,i);return}h(b,w,y),b.setIconStatus=function(M,k){var I=this.option,P=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[M]=k,P[M]&&(k==="emphasis"?ss:ls)(P[M])},w instanceof Xi&&w.render&&w.render(b,n,i,a)}function h(v,g,y){var x=v.getModel("iconStyle"),S=v.getModel(["emphasis","iconStyle"]),b=g instanceof Xi&&g.getIcons?g.getIcons():v.get("icon"),w=v.get("title")||{},T,C;_e(b)?(T={},T[y]=b):T=b,_e(w)?(C={},C[y]=w):C=w;var M=v.iconPaths={};V(T,function(k,I){var P=Lg(k,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle());var R=P.ensureState("emphasis");R.style=S.getItemStyle();var L=new kt({style:{text:C[I],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:Wk({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},n)},ignore:!0});P.setTextContent(L),Nd({el:P,componentModel:r,itemName:I,formatterParamsExtra:{title:C[I]}}),P.__title=C[I],P.on("mouseover",function(){var O=S.getItemStyle(),N=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:S.get("textFill")||O.fill||O.stroke||"#000",backgroundColor:S.get("textBackgroundColor")}),P.setTextConfig({position:S.get("textPosition")||N}),L.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",I])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(v.get(["iconStatus",I])==="emphasis"?ss:ls)(P),o.add(P),P.on("click",Ae(g.onclick,g,n,i,I)),M[I]=P})}Wke(o,r,i),o.add(a7(o.getBoundingRect(),r)),l||o.eachChild(function(v){var g=v.__title,y=v.ensureState("emphasis"),x=y.textConfig||(y.textConfig={}),S=v.getTextContent(),b=S&&S.ensureState("emphasis");if(b&&!Be(b)&&g){var w=b.style||(b.style={}),T=Mg(g,kt.makeFont(w)),C=v.x+o.x,M=v.y+o.y+s,k=!1;M+T.height>i.getHeight()&&(x.position="top",k=!0);var I=k?-5-T.height:s+10;C+T.width/2>i.getWidth()?(x.position=["100%",I],w.align="right"):C-T.width/2<0&&(x.position=[0,I],w.align="left")}})},t.prototype.updateView=function(r,n,i,a){V(this._features,function(o){o instanceof Xi&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){V(this._features,function(i){i instanceof Xi&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){V(this._features,function(i){i instanceof Xi&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(dr);function Uke(e){return e.indexOf("my")===0}var Yke=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=yt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,v=o?decodeURIComponent(d[1]):d[1];h&&(v=window.atob(v));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var y=v.length,x=new Uint8Array(y);y--;)x[y]=v.charCodeAt(y);var S=new Blob([x]);window.navigator.msSaveOrOpenBlob(S,g)}else{var b=document.createElement("iframe");document.body.appendChild(b);var w=b.contentWindow,T=w.document;T.open("image/svg+xml","replace"),T.write(v),T.close(),w.focus(),T.execCommand("SaveAs",!0,g),document.body.removeChild(b)}}else{var C=i.get("lang"),M='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(C&&C[0]||"")+'" /></body>',k=window.open();k.document.write(M),k.document.title=a}},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Xi),O4="__ec_magicType_stack__",qke=[["line","bar"],["stack"]],Xke=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return V(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(N4[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,v=N4[i](d,h,f,a);v&&(Ve(v,f.option),s.series.push(v));var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(i==="line"||i==="bar")){var y=g.getAxesByScale("ordinal")[0];if(y){var x=y.dim,S=x+"Axis",b=f.getReferringComponents(S,Dr).models[0],w=b.componentIndex;s[S]=s[S]||[];for(var T=0;T<=w;T++)s[S][w]=s[S][w]||{};s[S][w].boundaryGap=i==="bar"}}};V(qke,function(f){ft(f,i)>=0&&V(f,function(d){a.setIconStatus(d,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=tt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Xi),N4={line:function(e,t,r,n){if(e==="bar")return tt({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return tt({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===O4;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),tt({id:t,stack:i?"":O4},n.get(["option","stack"])||{},!0)}};Do({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var LS=new Array(60).join("-"),Td=" ";function Zke(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function Kke(e){var t=[];return V(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(de(r.series,function(h){return h.name})),l=[i.model.getCategories()];V(r.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(g){return g}))});for(var u=[s.join(Td)],c=0;c<l[0].length;c++){for(var f=[],d=0;d<l.length;d++)f.push(l[d][c]);u.push(f.join(Td))}t.push(u.join(`
|
194
|
+
`))}),t.join(`
|
195
|
+
|
196
|
+
`+LS+`
|
197
|
+
|
198
|
+
`)}function Qke(e){return de(e,function(t){var r=t.getRawData(),n=[t.name],i=[];return r.each(r.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=r.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+Td:"")+i.join(Td))}),n.join(`
|
199
|
+
`)}).join(`
|
200
|
+
|
201
|
+
`+LS+`
|
202
|
+
|
203
|
+
`)}function Jke(e){var t=Zke(e);return{value:Wt([Kke(t.seriesGroupByCategoryAxis),Qke(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
|
204
|
+
|
205
|
+
`+LS+`
|
206
|
+
|
207
|
+
`),meta:t.meta}}function ix(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function eIe(e){var t=e.slice(0,e.indexOf(`
|
208
|
+
`));if(t.indexOf(Td)>=0)return!0}var HA=new RegExp("["+Td+"]+","g");function tIe(e){for(var t=e.split(/\n+/g),r=ix(t.shift()).split(HA),n=[],i=de(r,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=ix(t[a]).split(HA);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function rIe(e){for(var t=e.split(/\n+/g),r=ix(t.shift()),n=[],i=0;i<t.length;i++){var a=ix(t[i]);if(a){var o=a.split(HA),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:r,data:n}}function nIe(e,t){var r=e.split(new RegExp(`
|
209
|
+
*`+LS+`
|
210
|
+
*`,"g")),n={series:[]};return V(r,function(i,a){if(eIe(i)){var o=tIe(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=rIe(i);n.series.push(o)}}),n}var iIe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=a.get("optionToContent"),d=a.get("contentToOption"),h=Jke(r);if(Be(f)){var v=f(n.getOption());_e(v)?u.innerHTML=v:vd(v)&&u.appendChild(v)}else{c.readOnly=a.get("readOnly");var g=c.style;g.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",g.color=a.get("textColor"),g.borderColor=a.get("textareaBorderColor"),g.backgroundColor=a.get("textareaColor"),c.value=h.value,u.appendChild(c)}var y=h.meta,x=document.createElement("div");x.style.cssText="position:absolute;bottom:5px;left:0;right:0";var S="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",b=document.createElement("div"),w=document.createElement("div");S+=";background-color:"+a.get("buttonColor"),S+=";color:"+a.get("buttonTextColor");var T=this;function C(){i.removeChild(o),T._dom=null}S2(b,"click",C),S2(w,"click",function(){if(d==null&&f!=null||d!=null&&f==null){C();return}var M;try{Be(d)?M=d(u,n.getOption()):M=nIe(c.value,y)}catch(k){throw C(),new Error("Data view format error "+k)}M&&n.dispatchAction({type:"changeDataView",newOption:M}),C()}),b.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=b.style.cssText=S,!a.get("readOnly")&&x.appendChild(w),x.appendChild(b),o.appendChild(s),o.appendChild(u),o.appendChild(x),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(Xi);function aIe(e,t){return de(e,function(r,n){var i=t&&t[n];if(Ge(i)&&!ue(i)){var a=Ge(r)&&!ue(r);a||(r={value:r});var o=i.name!=null&&r.name==null;return r=Ve(r,i),o&&delete r.name,r}else return r})}Do({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];V(e.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)r.push(oe({type:"scatter"},n));else{var a=i.get("data");r.push({name:n.name,data:aIe(n.data,a)})}}),t.mergeOption(Ve({series:r},e.newOption))});var o7=V,s7=Tt();function oIe(e,t){var r=hP(e);o7(t,function(n,i){for(var a=r.length-1;a>=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function sIe(e){var t=hP(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return o7(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function lIe(e){s7(e).snapshots=null}function uIe(e){return hP(e).length}function hP(e){var t=s7(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var cIe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){lIe(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Xi);Do({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var fIe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],pP=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=z4(r,t);V(dIe,function(o,s){(!n||!n.include||ft(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=gT[n.brushType](0,a,i);n.__rangeOffset={offset:$4[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){V(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&V(a.coordSyses,function(o){var s=gT[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){V(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=gT[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?$4[n.brushType](a.values,o.offset,hIe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return de(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:v9(i),isTargetByCursor:m9(i,t,n.coordSysModel),getLinearBrushOtherExtent:g9(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&ft(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=z4(r,t),a=0;a<n.length;a++){var o=n[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<B4.length;l++)if(B4[l](i,o))return o}return!0},e}();function WA(e){return e[0]>e[1]&&e.reverse(),e}function z4(e,t){return uv(e,t,{includeMainTypes:fIe})}var dIe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=Re(),o={},s={};!r&&!n&&!i||(V(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),V(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),V(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];V(u.getCartesians(),function(f,d){(ft(r,f.getAxis("x").model)>=0||ft(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:F4.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){V(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:F4.geo})})}},B4=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],F4={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Ju(e)),t}},gT={lineX:Je(V4,0),lineY:Je(V4,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[WA([i[0],a[0]]),WA([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=de(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function V4(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=WA(de([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var $4={lineX:Je(G4,0),lineY:Je(G4,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return de(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function G4(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function hIe(e,t){var r=H4(e),n=H4(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function H4(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var jA=V,pIe=Sve("toolbox-dataZoom_"),vIe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new HI(i.getZr()),this._brushController.on("brush",Ae(this._onBrush,this)).mount()),yIe(r,n,this,a,i),mIe(r,n)},t.prototype.onclick=function(r,n,i){gIe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new pP(vP(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),oIe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),h=d.model,v=l(u,h,a),g=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=Ic(0,f.slice(),d.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),v&&(i[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(u,c.componentIndex);v&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(r){var n=[];jA(r,function(i,a){n.push(We(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Xi),gIe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(sIe(this.ecModel))}};function vP(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function mIe(e,t){e.setIconStatus("back",uIe(t)>1?"emphasis":"normal")}function yIe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new pP(vP(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}jme("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=vP(n),o=uv(e,a);jA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),jA(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:pIe+u+f};d[c]=f,i.push(d)}return i});function xIe(e){e.registerComponentModel(Hke),e.registerComponentView(jke),Nf("saveAsImage",Yke),Nf("magicType",Xke),Nf("dataView",iIe),Nf("dataZoom",vIe),Nf("restore",cIe),pt(Gke)}var SIe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return 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}(xt);function l7(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function u7(e){if(yt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var c7=u7(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),bIe=u7(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function f7(e,t){if(!e)return t;t=WH(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function _Ie(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var wIe=f7(bIe,"transition"),gP=f7(c7,"transform"),CIe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(yt.transform3dSupported?"will-change:transform;":"");function TIe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function AIe(e,t,r){if(!_e(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=pc(t);var a=TIe(r),o=Math.max(Math.round(i)*1.5,6),s="",l=gP+":",u;ft(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function MIe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=yt.transformSupported?","+gP+n:",left"+n+",top"+n),wIe+":"+i}function W4(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!yt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=yt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+gP+":"+o+";":[["top",0],["left",0],[c7,o]]}function kIe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),V(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function IIe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=CW(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(MIe(i,r)),a&&n.push("background-color:"+a),V(["width","color","radius"],function(h){var v="border-"+h,g=WH(v),y=e.get(g);y!=null&&n.push(v+":"+y+(h==="color"?"":"px"))}),n.push(kIe(c)),f!=null&&n.push("padding:"+Fd(f).join("px ")+"px"),n.join(";")+";"}function j4(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Qhe(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var PIe=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,yt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(_e(a)?document.querySelector(a):vd(a)?a:Be(a)&&a(t.getDom()));j4(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();$i(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=_Ie(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=CIe+IIe(t,!this._firstShow,this._longHide)+W4(a[0],a[1],!0)+("border-color:"+pc(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(_e(a)&&n.get("trigger")==="item"&&!l7(n)&&(s=AIe(n,i,a)),_e(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ue(t)||(t=[t]);for(var l=0;l<t.length;l++)vd(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(j4(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=W4(n[0],n[1]);V(a,function(o){i[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",yt.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Ae(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}(),DIe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Y4(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;Ge(t)&&Nt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new kt({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:CW(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),V(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),V(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=U4(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;Y4(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Zs(a.borderWidth||0),s=U4(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Ae(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Zs(e){return Math.max(0,e)}function U4(e){var t=Zs(e.shadowBlur||0),r=Zs(e.shadowOffsetX||0),n=Zs(e.shadowOffsetY||0);return{left:Zs(t-r),right:Zs(t+r),top:Zs(t-n),bottom:Zs(t+n)}}function Y4(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var RIe=new Ct({shape:{x:-1,y:-1,width:2,height:2}}),EIe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(yt.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=Mve(i.get("renderMode"));this._tooltipContent=a==="richText"?new DIe(n):new PIe(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(yt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Hd(this,"_updatePosition",50,"fixRate"):qv(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");X9("itemTooltip",this._api,Ae(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||yt.node||!i.getDom())){var o=q4(a,i);this._ticket="";var s=a.dataByCoordSys,l=zIe(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=RIe;c.x=a.x,c.y=a.y,c.update(),Ze(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=Z9(a,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(q4(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=_p([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=Ze(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Hu(i,function(c){if(Ze(c).dataIndex!=null)return l=c,!0;if(Ze(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Ae(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=_p([n.tooltipOption],a),l=this._renderMode,u=[],c=Yr("section",{blocks:[],noHeader:!0}),f=[],d=new tC;V(r,function(S){V(S.dataByAxis,function(b){var w=i.getComponent(b.axisDim+"Axis",b.axisIndex),T=b.value;if(!(!w||T==null)){var C=U9(T,w.axis,i,b.seriesDataIndices,b.valueLabelOpt),M=Yr("section",{header:C,noHeader:!Ta(C),sortBlocks:!0,blocks:[]});c.blocks.push(M),V(b.seriesDataIndices,function(k){var I=i.getSeriesByIndex(k.seriesIndex),P=k.dataIndexInside,R=I.getDataParams(P);if(!(R.dataIndex<0)){R.axisDim=b.axisDim,R.axisIndex=b.axisIndex,R.axisType=b.axisType,R.axisId=b.axisId,R.axisValue=mI(w.axis,{value:T}),R.axisValueLabel=C,R.marker=d.makeTooltipMarker("item",pc(R.color),l);var L=O5(I.formatTooltip(P,!0,null)),O=L.frag;if(O){var N=_p([I],a).get("valueFormatter");M.blocks.push(N?oe({valueFormatter:N},O):O)}L.text&&f.push(L.text),u.push(R)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,v=s.get("order"),g=$5(c,d,l,v,i.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var y=l==="richText"?`
|
211
|
+
|
212
|
+
`:"<br/>",x=f.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,x,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Ze(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,v=r.positionDefault,g=_p([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),y=g.get("trigger");if(!(y!=null&&y!=="item")){var x=u.getDataParams(c,f),S=new tC;x.marker=S.makeTooltipMarker("item",pc(x.color),h);var b=O5(u.formatTooltip(c,!1,f)),w=g.get("order"),T=g.get("valueFormatter"),C=b.frag,M=C?$5(T?oe({valueFormatter:T},C):C,S,h,w,a.get("useUTC"),g.get("textStyle")):b.text,k="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,M,x,k,r.offsetX,r.offsetY,r.position,r.target,S)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Ze(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(_e(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=We(l),l.content=Jn(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var h=r.positionDefault,v=_p(f,this._tooltipModel,h?{position:h}:null),g=v.get("content"),y=Math.random()+"",x=new tC;this._showOrMove(v,function(){var S=We(v.get("formatterParams")||{});this._showTooltipContent(v,g,S,y,r.offsetX,r.offsetY,r.position,n,x)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),g=v.color;if(d)if(_e(d)){var y=r.ecModel.get("useUTC"),x=ue(i)?i[0]:i,S=x&&x.axisType&&x.axisType.indexOf("time")>=0;h=d,S&&(h=dS(x.axisValue,h,y)),h=jH(h,i,!0)}else if(Be(d)){var b=Ae(function(w,T){w===this._ticket&&(f.setContent(T,c,r,g,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,b)}else h=d;f.setContent(h,c,r,g,l),f.show(r,g),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||ue(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ue(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Be(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),ue(n))i=xe(n[0],u),a=xe(n[1],c);else if(Ge(n)){var g=n;g.width=f[0],g.height=f[1];var y=Fr(g,{width:u,height:c});i=y.x,a=y.y,d=null,h=null}else if(_e(n)&&l){var x=NIe(n,v,f,r.get("borderWidth"));i=x[0],a=x[1]}else{var x=LIe(i,a,o,u,c,d?null:20,h?null:20);i=x[0],a=x[1]}if(d&&(i-=X4(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=X4(h)?f[1]/2:h==="bottom"?f[1]:0),l7(r)){var x=OIe(i,a,o,u,c);i=x[0],a=x[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&V(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&V(u,function(d,h){var v=f[h]||{},g=d.seriesDataIndices||[],y=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&g.length===y.length,o&&V(g,function(x,S){var b=y[S];o=o&&x.seriesIndex===b.seriesIndex&&x.dataIndex===b.dataIndex}),a&&V(d.seriesDataIndices,function(x){var S=x.seriesIndex,b=n[S],w=a[S];b&&w&&w.data!==b.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){yt.node||!n.getDom()||(qv(this,"_updatePosition"),this._tooltipContent.dispose(),VA("itemTooltip",n))},t.type="tooltip",t}(dr);function _p(e,t,r){var n=t.ecModel,i;r?(i=new Bt(r,n,n),i=new Bt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Bt&&(o=o.get("tooltip",!0)),_e(o)&&(o={formatter:o}),o&&(i=new Bt(o,i,n)))}return i}function q4(e,t){return e.dispatchAction||Ae(t.dispatchAction,t)}function LIe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function OIe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function NIe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+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-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function X4(e){return e==="center"||e==="middle"}function zIe(e,t,r){var n=Dk(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=kg(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Ze(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function BIe(e){pt(Yg),e.registerComponentModel(SIe),e.registerComponentView(EIe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Mr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Mr)}var FIe=["rect","polygon","keep","clear"];function VIe(e,t){var r=Ut(e?e.brush:[]);if(r.length){var n=[];V(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;ue(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),$Ie(s),t&&!s.length&&s.push.apply(s,FIe)}}function $Ie(e){var t={};V(e,function(r){t[r]=1}),e.length=0,V(t,function(r,n){e.push(n)})}var Z4=V;function K4(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function UA(e,t,r){var n={};return Z4(t,function(a){var o=n[a]=i();Z4(e[a],function(s,l){if(jr.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new jr(u),l==="opacity"&&(u=We(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new jr(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function d7(e,t,r){var n;V(r,function(i){t.hasOwnProperty(i)&&K4(t[i])&&(n=!0)}),n&&V(r,function(i){t.hasOwnProperty(i)&&K4(t[i])?e[i]=We(t[i]):delete e[i]})}function GIe(e,t,r,n,i,a){var o={};V(e,function(f){var d=jr.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return oI(r,s,f)}function u(f,d){LW(r,s,f,d)}r.each(c);function c(f,d){s=f;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=n.call(i,f),g=t[v],y=o[v],x=0,S=y.length;x<S;x++){var b=y[x];g[b]&&g[b].applyVisual(f,l,u)}}}function HIe(e,t,r,n){var i={};return V(e,function(a){var o=jr.prepareVisualTypes(t[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(T){return oI(s,f,T)}function c(T,C){LW(s,f,T,C)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var v=n!=null?d.get(l,f):f,g=r(v),y=t[g],x=i[g],S=0,b=x.length;S<b;S++){var w=x[S];y[w]&&y[w].applyVisual(v,u,c)}}}}}function WIe(e){var t=e.brushType,r={point:function(n){return Q4[t].point(n,r,e)},rect:function(n){return Q4[t].rect(n,r,e)}};return r}var Q4={lineX:J4(0),lineY:J4(1),rect:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return e&&r.boundingRect.intersect(e)}},polygon:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])&&Eu(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,l=n[0];if(Eu(n,i,a)||Eu(n,i+o,a)||Eu(n,i,a+s)||Eu(n,i+o,a+s)||rt.create(e).contain(l[0],l[1])||zp(i,a,i+o,a,n)||zp(i,a,i,a+s,n)||zp(i+o,a,i+o,a+s,n)||zp(i,a+s,i+o,a+s,n))return!0}}};function J4(e){var t=["x","y"],r=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[e];return wp(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),wp(s[0],o)||wp(s[1],o)||wp(o[0],s)||wp(o[1],s)}}}}function wp(e,t){return t[0]<=e&&e<=t[1]}var eF=["inBrush","outOfBrush"],mT="__ecBrushSelect",YA="__ecInBrushSelectEvent";function h7(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new pP(t.option,e);r.setInputRanges(t.areas,e)})}function jIe(e,t,r){var n=[],i,a;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),h7(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:We(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],v=!1;s||(i=u.throttleType,a=u.throttleDelay);var g=de(o.areas,function(T){var C=XIe[T.brushType],M=Ve({boundingRect:C?C(T):void 0},T);return M.selectors=WIe(M),M}),y=UA(o.option,eF,function(T){T.mappingMethod="fixed"});ue(c)&&V(c,function(T){f[T]=1});function x(T){return c==="all"||!!f[T]}function S(T){return!!T.length}e.eachSeries(function(T,C){var M=h[C]=[];T.subType==="parallel"?b(T,C):w(T,C,M)});function b(T,C){var M=T.coordinateSystem;v=v||M.hasAxisBrushed(),x(C)&&M.eachActiveState(T.getData(),function(k,I){k==="active"&&(d[I]=1)})}function w(T,C,M){if(!(!T.brushSelector||qIe(o,C))&&(V(g,function(I){o.brushTargetManager.controlSeries(I,T,e)&&M.push(I),v=v||S(M)}),x(C)&&S(M))){var k=T.getData();k.each(function(I){tF(T,M,k,I)&&(d[I]=1)})}}e.eachSeries(function(T,C){var M={seriesId:T.id,seriesIndex:C,seriesName:T.name,dataIndex:[]};l.selected.push(M);var k=h[C],I=T.getData(),P=x(C)?function(R){return d[R]?(M.dataIndex.push(I.getRawIndex(R)),"inBrush"):"outOfBrush"}:function(R){return tF(T,k,I,R)?(M.dataIndex.push(I.getRawIndex(R)),"inBrush"):"outOfBrush"};(x(C)?v:S(k))&&GIe(eF,y,I,P)})}),UIe(t,i,a,n,r)}function UIe(e,t,r,n,i){if(i){var a=e.getZr();if(!a[YA]){a[mT]||(a[mT]=YIe);var o=Hd(a,mT,r,t);o(e,n)}}}function YIe(e,t){if(!e.isDisposed()){var r=e.getZr();r[YA]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[YA]=!1}}function tF(e,t,r,n){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(n,r,o.selectors,o))return!0}}function qIe(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(ue(r)?ft(r,t)<0:t!==r)}var XIe={rect:function(e){return rF(e.range)},polygon:function(e){for(var t,r=e.range,n=0,i=r.length;n<i;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=r[n];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&rF(t)}};function rF(e){return new rt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var ZIe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new HI(n.getZr())).on("brush",Ae(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){h7(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:We(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:We(i),$from:n})},t.type="brush",t}(dr),KIe="#ddd",QIe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&d7(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:KIe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=de(r,function(n){return nF(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=nF(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(xt);function nF(e,t){return tt({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Bt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var JIe=["rect","polygon","lineX","lineY","keep","clear"],ePe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,V(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return V(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:JIe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(Xi);function tPe(e){e.registerComponentView(ZIe),e.registerComponentModel(QIe),e.registerPreprocessor(VIe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,jIe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Mr),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Mr),Nf("brush",ePe)}var rPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return 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}(xt),nPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Qe(r.get("textBaseline"),r.get("textVerticalAlign")),c=new kt({style:ar(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new kt({style:ar(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),g=r.get("sublink"),y=r.get("triggerEvent",!0);c.silent=!v&&!y,h.silent=!g&&!y,v&&c.on("click",function(){E1(v,"_"+r.get("target"))}),g&&h.on("click",function(){E1(g,"_"+r.get("subtarget"))}),Ze(c).eventData=Ze(h).eventData=y?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var x=a.getBoundingRect(),S=r.getBoxLayoutParams();S.width=x.width,S.height=x.height;var b=Fr(S,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),a.x=b.x,a.y=b.y,a.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),h.setStyle(w),x=a.getBoundingRect();var T=b.margin,C=r.getItemStyle(["color","opacity"]);C.fill=r.get("backgroundColor");var M=new Ct({shape:{x:x.x-T[3],y:x.y-T[0],width:x.width+T[1]+T[3],height:x.height+T[0]+T[2],r:r.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});a.add(M)}},t.type="title",t}(dr);function iPe(e){e.registerComponentModel(rPe),e.registerComponentView(nPe)}var iF=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],V(n,function(u,c){var f=Br(Ed(u),""),d;Ge(u)?(d=We(u),d.value=c):d=c,o.push(d),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new On([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(xt),p7=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Dl(iF.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(iF);Lr(p7,xS.prototype);var aPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(dr),oPe=function(e){J(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Ba),yT=Math.PI,aF=Tt(),sPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Yr("nameValue",{noName:!0,value:c})},V(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=uPe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":_e(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:yT/2},f=a==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),h=d.get("show",!0),v=h?d.get("itemSize"):0,g=h?d.get("itemGap"):0,y=v+g,x=r.get(["label","rotate"])||0;x=x*yT/180;var S,b,w,T=d.get("position",!0),C=h&&d.get("showPlayBtn",!0),M=h&&d.get("showPrevBtn",!0),k=h&&d.get("showNextBtn",!0),I=0,P=f;T==="left"||T==="bottom"?(C&&(S=[0,0],I+=y),M&&(b=[I,0],I+=y),k&&(w=[P-v,0],P-=y)):(C&&(S=[P-v,0],P-=y),M&&(b=[0,0],I+=y),k&&(w=[P-v,0],P-=y));var R=[I,P];return r.get("inverse")&&R.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:x,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:S,prevBtnPosition:b,nextBtnPosition:w,axisExtent:R,controlSize:v,controlGap:g}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=wi(),l=o.x,u=o.y+o.height;Co(s,s,[-l,-u]),wc(s,s,-yT/2),Co(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=S(o),f=S(i.getBoundingRect()),d=S(a.getBoundingRect()),h=[i.x,i.y],v=[a.x,a.y];v[0]=h[0]=c[0][0];var g=r.labelPosOpt;if(g==null||_e(g)){var y=g==="+"?0:1;b(h,f,c,1,y),b(v,d,c,1,1-y)}else{var y=g>=0?0:1;b(h,f,c,1,y),v[1]=h[1]+g}i.setPosition(h),a.setPosition(v),i.rotation=a.rotation=r.rotation,x(i),x(a);function x(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function S(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function b(w,T,C,M,k){w[M]+=C[M][k]-T[M][k]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=lPe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new oPe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new qe;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Hr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:oe({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Hr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ve({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],V(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:Ae(o._changeTimeline,o,u.value)},y=oF(f,d,n,g);y.ensureState("emphasis").style=h.getItemStyle(),y.ensureState("progress").style=v.getItemStyle(),Qu(y);var x=Ze(y);f.get("tooltip")?(x.dataIndex=u.value,x.dataModel=a):x.dataIndex=x.dataModel=null,o._tickSymbols.push(y)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],V(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),v=d.getModel(["emphasis","label"]),g=d.getModel(["progress","label"]),y=i.dataToCoord(c.tickValue),x=new kt({x:y,y:0,rotation:r.labelRotation-r.rotation,onclick:Ae(o._changeTimeline,o,f),silent:!1,style:ar(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});x.ensureState("emphasis").style=ar(v),x.ensureState("progress").style=ar(g),n.add(x),Qu(x),aF(x).dataIndex=f,o._tickLabels.push(x)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);d(r.nextBtnPosition,"next",Ae(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",Ae(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",Ae(this._handlePlayClick,this,!c),!0);function d(h,v,g,y){if(h){var x=La(Qe(a.get(["controlStyle",v+"BtnSize"]),o),o),S=[0,-x/2,x,x],b=cPe(a,v+"Icon",S,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:y?-s:0,rectHover:!0,style:l,onclick:g});b.ensureState("emphasis").style=u,n.add(b),Qu(b)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Ae(u._handlePointerDrag,u),f.ondragend=Ae(u._handlePointerDragend,u),sF(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){sF(f,u._progressLine,s,i,a)}};this._currentPointer=oF(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=Qi(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return ka(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-r);c<i&&(i=c,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<r);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",aF(i[a]).dataIndex<=r)},t.type="timeline.slider",t}(aPe);function lPe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new TS({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new vI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new cs}}function uPe(e,t){return Fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function cPe(e,t,r,n){var i=n.style,a=Lg(e.get(["controlStyle",t]),n||{},new rt(r[0],r[1],r[2],r[3]));return i&&a.setStyle(i),a}function oF(e,t,r,n,i,a){var o=t.get("color");if(i)i.setColor(o),r.add(i),a&&a.onUpdate(i);else{var s=e.get("symbol");i=Er(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),r.add(i),a&&a.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),n=tt({rectHover:!0,z2:100},n,!0);var u=Wd(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Tc(e.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=e.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function sF(e,t,r,n,i,a){if(!e.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",r));if(a||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function fPe(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var i=r.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Ve({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function dPe(e){var t=e&&e.timeline;ue(t)||(t=t?[t]:[]),V(t,function(r){r&&hPe(r)})}function hPe(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),lF(e),Nu(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});Nu(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!Nu(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}V(e.data||[],function(i){Ge(i)&&!ue(i)&&(!Nu(i,"value")&&Nu(i,"name")&&(i.value=i.name),lF(i))})}function lF(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};V(n,function(o,s){!a[s]&&!Nu(i,s)&&(i[s]=o)}),r.label&&!Nu(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function Nu(e,t){return e.hasOwnProperty(t)}function pPe(e){e.registerComponentModel(p7),e.registerComponentView(sPe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),fPe(e),e.registerPreprocessor(dPe)}function mP(e,t){if(!e)return!1;for(var r=ue(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function S0(e){cc(e,"label",["show"])}var b0=Tt(),ds=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._mergeOption(r,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(yt.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=b0(s)[o];if(!l||!l.data){b0(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&S0(l),V(l.data,function(c){c instanceof Array?(S0(c[0]),S0(c[1])):S0(c)}),u=this.createMarkerModelFromSeries(l,this,n),oe(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),b0(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Yr("section",{header:this.name,blocks:[Yr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.prototype.getDataParams=function(r,n){var i=xS.prototype.getDataParams.call(this,r,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},t.getMarkerModelFromSeries=function(r,n){return b0(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(xt);Lr(ds,xS.prototype);var vPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(ds);function qA(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function gPe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function _0(e,t,r,n,i,a){var o=[],s=_l(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=yP(t,l,e),c=t.indicesOfNearest(l,u)[0];o[i]=t.get(r,c),o[a]=t.get(l,c);var f=t.get(n,c),d=so(t.get(n,c));return d=Math.min(d,20),d>=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var xT={min:Je(_0,"min"),max:Je(_0,"max"),average:Je(_0,"average"),median:Je(_0,"median")};function lg(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!gPe(t)&&!ue(t.coord)&&ue(i)){var a=v7(t,r,n,e);if(t=We(t),t.type&&xT[t.type]&&a.baseAxis&&a.valueAxis){var o=ft(i,a.baseAxis.dim),s=ft(i,a.valueAxis.dim),l=xT[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!ue(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)xT[u[c]]&&(u[c]=yP(r,r.mapDimension(i[c]),u[c]));return t}}function v7(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(mPe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function mPe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function ug(e,t){return e&&e.containData&&t.coord&&!qA(t)?e.containData(t.coord):!0}function yPe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!qA(t)&&!qA(r)?e.containZone(t.coord,r.coord):!0}function g7(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return hl(o,t[a])}:function(r,n,i,a){return hl(r.value,t[a])}}function yP(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var ST=Tt(),xP=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=Re()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){ST(s).keep=!1}),n.eachSeries(function(s){var l=ds.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!ST(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){ST(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;V(r,function(a){var o=ds.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?lH(l):Bk(l))})}})},t.type="marker",t}(dr);function uF(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=xe(a.get("x"),r.getWidth()),l=xe(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var xPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=ds.getMarkerModelFromSeries(a,"markPoint");o&&(uF(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Vg),f=SPe(o,r,n);n.setData(f),uF(n.getData(),r,a),f.each(function(d){var h=f.getItemModel(d),v=h.getShallow("symbol"),g=h.getShallow("symbolSize"),y=h.getShallow("symbolRotate"),x=h.getShallow("symbolOffset"),S=h.getShallow("symbolKeepAspect");if(Be(v)||Be(g)||Be(y)||Be(x)){var b=n.getRawValue(d),w=n.getDataParams(d);Be(v)&&(v=v(b,w)),Be(g)&&(g=g(b,w)),Be(y)&&(y=y(b,w)),Be(x)&&(x=x(b,w))}var T=h.getModel("itemStyle").getItemStyle(),C=Ng(l,"color");T.fill||(T.fill=C),f.setItemVisual(d,{symbol:v,symbolSize:g,symbolRotate:y,symbolOffset:x,symbolKeepAspect:S,style:T})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){Ze(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(xP);function SPe(e,t,r){var n;e?n=de(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return oe(oe({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new On(n,r),a=de(r.get("data"),Je(lg,t));e&&(a=Wt(a,Je(ug,e)));var o=g7(!!e,n);return i.initData(a,null,o),i}function bPe(e){e.registerComponentModel(vPe),e.registerComponentView(xPe),e.registerPreprocessor(function(t){mP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var _Pe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ds),w0=Tt(),wPe=function(e,t,r,n){var i=e.getData(),a;if(ue(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Qr(n.yAxis,n.xAxis);else{var u=v7(n,i,t,e);s=u.valueAxis;var c=u8(i,u.valueDataDim);l=yP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=We(n),v={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,v.coord[d]=1/0;var g=r.get("precision");g>=0&&Dt(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[f]=v.coord[f]=l,a=[h,v,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var y=[lg(e,a[0]),lg(e,a[1]),oe({},a[2])];return y[2].type=y[2].type||null,tt(y[2],y[0]),tt(y[2],y[1]),y};function ax(e){return!isNaN(e)&&!isFinite(e)}function cF(e,t,r,n){var i=1-e,a=n.dimensions[e];return ax(t[i])&&ax(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function CPe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(cF(1,r,n,e)||cF(0,r,n,e)))return!0}return ug(e,t[0])&&ug(e,t[1])}function bT(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=xe(o.get("x"),i.getWidth()),u=xe(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=a.dataToPoint([f,d])}if(Mc(a,"cartesian2d")){var h=a.getAxis("x"),v=a.getAxis("y"),c=a.dimensions;ax(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):ax(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var TPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=ds.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=w0(o).from,u=w0(o).to;l.each(function(c){bT(l,c,!0,a,i),bT(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new GI);this.group.add(c.group);var f=APe(o,r,n),d=f.from,h=f.to,v=f.line;w0(n).from=d,w0(n).to=h,n.setData(v);var g=n.get("symbol"),y=n.get("symbolSize"),x=n.get("symbolRotate"),S=n.get("symbolOffset");ue(g)||(g=[g,g]),ue(y)||(y=[y,y]),ue(x)||(x=[x,x]),ue(S)||(S=[S,S]),f.from.each(function(w){b(d,w,!0),b(h,w,!1)}),v.each(function(w){var T=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[d.getItemLayout(w),h.getItemLayout(w)]),T.stroke==null&&(T.stroke=d.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(w,"symbolOffset"),fromSymbolRotate:d.getItemVisual(w,"symbolRotate"),fromSymbolSize:d.getItemVisual(w,"symbolSize"),fromSymbol:d.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:T})}),c.updateData(v),f.line.eachItemGraphicEl(function(w){Ze(w).dataModel=n,w.traverse(function(T){Ze(T).dataModel=n})});function b(w,T,C){var M=w.getItemModel(T);bT(w,T,C,r,a);var k=M.getModel("itemStyle").getItemStyle();k.fill==null&&(k.fill=Ng(l,"color")),w.setItemVisual(T,{symbolKeepAspect:M.get("symbolKeepAspect"),symbolOffset:Qe(M.get("symbolOffset",!0),S[C?0:1]),symbolRotate:Qe(M.get("symbolRotate",!0),x[C?0:1]),symbolSize:Qe(M.get("symbolSize"),y[C?0:1]),symbol:Qe(M.get("symbol",!0),g[C?0:1]),style:k})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(xP);function APe(e,t,r){var n;e?n=de(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return oe(oe({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new On(n,r),a=new On(n,r),o=new On([],r),s=de(r.get("data"),Je(wPe,t,e,r));e&&(s=Wt(s,Je(CPe,e)));var l=g7(!!e,n);return i.initData(de(s,function(u){return u[0]}),null,l),a.initData(de(s,function(u){return u[1]}),null,l),o.initData(de(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function MPe(e){e.registerComponentModel(_Pe),e.registerComponentView(TPe),e.registerPreprocessor(function(t){mP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var kPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ds),C0=Tt(),IPe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=lg(e,i),s=lg(e,a),l=o.coord,u=s.coord;l[0]=Qr(l[0],-1/0),l[1]=Qr(l[1],-1/0),u[0]=Qr(u[0],1/0),u[1]=Qr(u[1],1/0);var c=Sk([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function ox(e){return!isNaN(e)&&!isFinite(e)}function fF(e,t,r,n){var i=1-e;return ox(t[i])&&ox(r[i])}function PPe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return Mc(e,"cartesian2d")?r&&n&&(fF(1,r,n)||fF(0,r,n))?!0:yPe(e,i,a):ug(e,i)||ug(e,a)}function dF(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=xe(o.get(r[0]),i.getWidth()),u=xe(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=a.clampData(c),h=a.clampData(f),v=[];r[0]==="x0"?v[0]=d[0]>h[0]?f[0]:c[0]:v[0]=d[0]>h[0]?c[0]:f[0],r[1]==="y0"?v[1]=d[1]>h[1]?f[1]:c[1]:v[1]=d[1]>h[1]?c[1]:f[1],s=n.getMarkerPosition(v,r,!0)}else{var g=e.get(r[0],t),y=e.get(r[1],t),x=[g,y];a.clampData&&a.clampData(x,x),s=a.dataToPoint(x,!0)}if(Mc(a,"cartesian2d")){var S=a.getAxis("x"),b=a.getAxis("y"),g=e.get(r[0],t),y=e.get(r[1],t);ox(g)?s[0]=S.toGlobalCoord(S.getExtent()[r[0]==="x0"?0:1]):ox(y)&&(s[1]=b.toGlobalCoord(b.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var hF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],DPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=ds.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=de(hF,function(f){return dF(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new qe});this.group.add(c.group),this.markKeep(c);var f=RPe(o,r,n);n.setData(f),f.each(function(d){var h=de(hF,function(k){return dF(f,d,k,r,a)}),v=o.getAxis("x").scale,g=o.getAxis("y").scale,y=v.getExtent(),x=g.getExtent(),S=[v.parse(f.get("x0",d)),v.parse(f.get("x1",d))],b=[g.parse(f.get("y0",d)),g.parse(f.get("y1",d))];Qi(S),Qi(b);var w=!(y[0]>S[1]||y[1]<S[0]||x[0]>b[1]||x[1]<b[0]),T=!w;f.setItemLayout(d,{points:h,allClipped:T});var C=f.getItemModel(d).getModel("itemStyle").getItemStyle(),M=Ng(l,"color");C.fill||(C.fill=M,_e(C.fill)&&(C.fill=b1(C.fill,.4))),C.stroke||(C.stroke=M),f.setItemVisual(d,"style",C)}),f.diff(C0(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var v=new Vn({shape:{points:h.points}});f.setItemGraphicEl(d,v),c.group.add(v)}}).update(function(d,h){var v=C0(c).data.getItemGraphicEl(h),g=f.getItemLayout(d);g.allClipped?v&&c.group.remove(v):(v?Et(v,{shape:{points:g.points}},n,d):v=new Vn({shape:{points:g.points}}),f.setItemGraphicEl(d,v),c.group.add(v))}).remove(function(d){var h=C0(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var v=f.getItemModel(h),g=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),fn(d,Ur(v),{labelFetcher:n,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:_e(g.fill)?b1(g.fill,1):"#000"}),cn(d,v),mr(d,null,null,v.get(["emphasis","disabled"])),Ze(d).dataModel=n}),C0(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(xP);function RPe(e,t,r){var n,i,a=["x0","y0","x1","y1"];if(e){var o=de(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return oe(oe({},f),{name:u,ordinalMeta:null})});i=de(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new On(i,r)}else i=[{name:"value",type:"float"}],n=new On(i,r);var s=de(r.get("data"),Je(IPe,t,e,r));e&&(s=Wt(s,Je(PPe,e)));var l=e?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return hl(h,i[d])}:function(u,c,f,d){return hl(u.value,i[d])};return n.initData(s,null,l),n.hasItemOption=!0,n}function EPe(e){e.registerComponentModel(kPe),e.registerComponentView(DPe),e.registerPreprocessor(function(t){mP(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var LPe=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},XA=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),ue(n)&&V(n,function(a,o){_e(a)&&(a={type:a}),n[o]=tt(a,LPe(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&Pk(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Re(),s=de(a,function(l){return(_e(l)||Dt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Bt(l,this,this.ecModel))},this);this._data=Wt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;V(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;V(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;V(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ft(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",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}(xt),Tf=Je,ZA=V,T0=qe,m7=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new T0),this.group.add(this._selectorGroup=new T0),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=Fr(c,f,d),v=this.layoutInner(r,o,h,a,l,u),g=Fr(Ve({width:v.width,height:v.height},c),f,d);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=a7(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=Re(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),ZA(n.getData(),function(h,v){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
213
|
+
`)){var y=new T0;y.newline=!0,u.add(y);return}var x=i.getSeriesByName(g)[0];if(!c.get(g))if(x){var S=x.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),T=S.getVisual("style"),C=this._createItem(x,g,v,h,n,r,b,T,w,f,a);C.on("click",Tf(pF,g,null,a,d)).on("mouseover",Tf(KA,x.name,null,a,d)).on("mouseout",Tf(QA,x.name,null,a,d)),i.ssr&&C.eachChild(function(M){var k=Ze(M);k.seriesIndex=x.seriesIndex,k.dataIndex=v,k.ssrType="legend"}),c.set(g,!0)}else i.eachRawSeries(function(M){if(!c.get(g)&&M.legendVisualProvider){var k=M.legendVisualProvider;if(!k.containName(g))return;var I=k.indexOfName(g),P=k.getItemVisual(I,"style"),R=k.getItemVisual(I,"legendIcon"),L=Ci(P.fill);L&&L[3]===0&&(L[3]=.2,P=oe(oe({},P),{fill:Jo(L,"rgba")}));var O=this._createItem(M,g,v,h,n,r,{},P,R,f,a);O.on("click",Tf(pF,null,g,a,d)).on("mouseover",Tf(KA,null,g,a,d)).on("mouseout",Tf(QA,null,g,a,d)),i.ssr&&O.eachChild(function(N){var B=Ze(N);B.seriesIndex=M.seriesIndex,B.dataIndex=v,B.ssrType="legend"}),c.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();ZA(r,function(u){var c=u.type,f=new kt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);fn(f,{normal:d,emphasis:h},{defaultText:u.title}),Qu(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var h=r.visualDrawType,v=o.get("itemWidth"),g=o.get("itemHeight"),y=o.isSelected(n),x=a.get("symbolRotate"),S=a.get("symbolKeepAspect"),b=a.get("icon");c=b||c||"roundRect";var w=OPe(c,a,l,u,h,y,d),T=new T0,C=a.getModel("textStyle");if(Be(r.getLegendIcon)&&(!b||b==="inherit"))T.add(r.getLegendIcon({itemWidth:v,itemHeight:g,icon:c,iconRotate:x,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}));else{var M=b==="inherit"&&r.getData().getVisual("symbol")?x==="inherit"?r.getData().getVisual("symbolRotate"):x:0;T.add(NPe({itemWidth:v,itemHeight:g,icon:c,iconRotate:M,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}))}var k=s==="left"?v+5:-5,I=s,P=o.get("formatter"),R=n;_e(P)&&P?R=P.replace("{name}",n??""):Be(P)&&(R=P(n));var L=y?C.getTextColor():a.get("inactiveColor");T.add(new kt({style:ar(C,{text:R,x:k,y:g/2,fill:L,align:I,verticalAlign:"middle"},{inheritColor:L})}));var O=new Ct({shape:T.getBoundingRect(),style:{fill:"transparent"}}),N=a.getModel("tooltip");return N.get("show")&&Nd({el:O,componentModel:o,itemName:n,itemTooltipOption:N.option}),T.add(O),T.eachChild(function(B){B.silent=!0}),O.silent=!f,this.getContentGroup().add(T),Qu(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ec(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){ec("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),g=r.getOrient().index,y=g===0?"width":"height",x=g===0?"height":"width",S=g===0?"y":"x";s==="end"?h[g]+=c[y]+v:f[g]+=d[y]+v,h[1-g]+=c[x]/2-d[x]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[y]=c[y]+v+d[y],b[x]=Math.max(c[x],d[x]),b[S]=Math.min(0,d[S]+h[1-g]),b}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(dr);function OPe(e,t,r,n,i,a,o){function s(y,x){y.lineWidth==="auto"&&(y.lineWidth=x.lineWidth>0?2:0),ZA(y,function(S,b){y[b]==="inherit"&&(y[b]=x[b])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:xd(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function NPe(e){var t=e.icon||"roundRect",r=Er(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function pF(e,t,r,n){QA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),KA(e,t,r,n)}function y7(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function KA(e,t,r,n){y7(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function QA(e,t,r,n){y7(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function zPe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Cp(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();V(s,function(l){var u=l.get("name");if(!(u===`
|
214
|
+
`||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function BPe(e){e.registerAction("legendToggleSelect","legendselectchanged",Je(Cp,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Je(Cp,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Je(Cp,"inverseSelect")),e.registerAction("legendSelect","legendselected",Je(Cp,"select")),e.registerAction("legendUnSelect","legendunselected",Je(Cp,"unSelect"))}function x7(e){e.registerComponentModel(XA),e.registerComponentView(m7),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,zPe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),BPe(e)}var FPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=Vd(r);e.prototype.init.call(this,r,n,i),vF(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),vF(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Dl(XA.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}(XA);function vF(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,bl(t,r,{type:"box",ignoreSize:!!i})}var gF=qe,_T=["width","height"],wT=["x","y"],VPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new gF),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new gF)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=ue(f)?f:[f,f];v("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new kt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(g,y){var x=g+"DataIndex",S=Lg(n.get("pageIcons",!0)[n.getOrient().name][y],{onclick:Ae(u._pageGo,u,x,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});S.name=g,c.add(S)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=_T[u],f=wT[u],d=_T[1-u],h=wT[1-u];o&&ec("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),y=[-g.x,-g.y],x=We(i);o&&(x[c]=i[c]-g[c]-v);var S=this._layoutContentAndController(r,a,x,u,c,d,h,f);if(o){if(s==="end")y[u]+=S[c]+v;else{var b=g[c]+v;y[u]-=b,S[f]-=b}S[c]+=g[c]+v,y[1-u]+=S[h]+S[d]/2-g[d]/2,S[d]=Math.max(S[d],g[d]),S[h]=Math.min(S[h],g[h]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return S},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;ec(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),ec("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),g=this._showController=h[o]>i[o],y=[-h.x,-h.y];n||(y[a]=c[u]);var x=[0,0],S=[-v.x,-v.y],b=Qe(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var w=r.get("pageButtonPosition",!0);w==="end"?S[a]+=i[o]-v[o]:x[a]+=v[o]+b}S[1-a]+=h[s]/2-v[s]/2,c.setPosition(y),f.setPosition(x),d.setPosition(S);var T={x:0,y:0};if(T[o]=g?i[o]:h[o],T[s]=Math.max(h[s],v[s]),T[l]=Math.min(0,v[l]+S[1-a]),f.__rectSize=i[o],g){var C={x:0,y:0};C[o]=Math.max(i[o]-v[o]-b,0),C[s]=T[s],f.setClipPath(new Ct({shape:C})),f.__rectSize=C[o]}else d.eachChild(function(k){k.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(r);return M.pageIndex!=null&&Et(c,{x:M.contentPosition[0],y:M.contentPosition[1]},g?r:null),this._updatePageInfoView(r,M),T},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;V(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",_e(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=_T[o],l=wT[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var g=w(f);v.contentPosition[o]=-g.s;for(var y=u+1,x=g,S=g,b=null;y<=d;++y)b=w(c[y]),(!b&&S.e>x.s+a||b&&!T(b,x.s))&&(S.i>x.i?x=S:x=b,x&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=x.i),++v.pageCount)),S=b;for(var y=u-1,x=g,S=g,b=null;y>=-1;--y)b=w(c[y]),(!b||!T(S,b.s))&&x.i<S.i&&(S=x,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=x.i),++v.pageCount,++v.pageIndex),x=b;return v;function w(C){if(C){var M=C.getBoundingRect(),k=M[l]+C[l];return{s:k,e:k+M[s],i:C.__legendDataIndex}}}function T(C,M){return C.e>=M&&C.s<=M+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(m7);function $Pe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function GPe(e){pt(x7),e.registerComponentModel(FPe),e.registerComponentView(VPe),$Pe(e)}function HPe(e){pt(x7),pt(GPe)}var WPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Dl(sg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(sg),SP=Tt();function jPe(e,t,r){SP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function UPe(e,t){for(var r=SP(e).coordSysRecordMap,n=r.keys(),i=0;i<n.length;i++){var a=n[i],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||S7(r,o))}}}function S7(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function YPe(e,t){var r={model:t,containsPoint:Je(XPe,t),dispatchAction:Je(qPe,e),dataZoomInfoMap:null,controller:null},n=r.controller=new jg(e.getZr());return V(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function qPe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function XPe(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function ZPe(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function KPe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=SP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=Re());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=r7(a);V(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,YPe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Re());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){S7(i,a);return}var c=ZPe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),Hd(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var QPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),jPe(i,r,{pan:Ae(CT.pan,this),zoom:Ae(CT.zoom,this),scrollMove:Ae(CT.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){UPe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(fP),CT={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=TT[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ic(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:mF(function(e,t,r,n,i,a){var o=TT[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:mF(function(e,t,r,n,i,a){var o=TT[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function mF(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(Ic(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var TT={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function b7(e){dP(e),e.registerComponentModel(WPe),e.registerComponentView(QPe),KPe(e)}var JPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Dl(sg.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}(sg),Tp=Ct,yF=7,eDe=1,AT=30,tDe=7,Ap="horizontal",xF="vertical",rDe=5,nDe=["line","bar","candlestick","scatter"],iDe={easing:"cubicOut",duration:100,delay:0},aDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=Ae(this._onBrush,this),this._onBrushEnd=Ae(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),Hd(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){qv(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new qe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?tDe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Ap?{right:s.width-o.x-o.width,top:s.height-AT-yF-a,width:o.width,height:AT}:{right:yF,top:o.y,width:AT,height:o.height},u=Vd(r.option);V(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Fr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===xF&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Ap&&!o?{scaleY:l?1:-1,scaleX:1}:i===Ap&&o?{scaleY:l?1:-1,scaleX:-1}:i===xF&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Tp({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Tp({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Ae(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],v=[0,n[0]],g=[[n[0],0],[0,0]],y=[],x=v[1]/(o.count()-1),S=0,b=Math.round(o.count()/n[0]),w;o.each([l],function(I,P){if(b>0&&P%b){S+=x;return}var R=I==null||isNaN(I)||I==="",L=R?0:Vt(I,f,h,!0);R&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&w&&(g.push([S,0]),y.push([S,0])),g.push([S,L]),y.push([S,L]),S+=x,w=R}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var T=this.dataZoomModel;function C(I){var P=T.getModel(I?"selectedDataBackground":"dataBackground"),R=new qe,L=new Vn({shape:{points:u},segmentIgnoreThreshold:1,style:P.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),O=new Gn({shape:{points:c},segmentIgnoreThreshold:1,style:P.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return R.add(L),R.add(O),R}for(var M=0;M<3;M++){var k=C(M===1);this._displayables.sliderGroup.add(k),this._displayables.dataShadowSegs.push(k)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();V(l,function(u){if(!i&&!(n!==!0&&ft(nDe,u.get("type"))<0)){var c=a.getComponent(ul(o),s).axis,f=oDe(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Tp({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Tp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:eDe,fill:"rgba(0,0,0,0)"}})),V([0,1],function(b){var w=l.get("handleIcon");!N1[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var T=Er(w,-1,0,2,2,null,!0);T.attr({cursor:SF(this._orient),draggable:!0,drift:Ae(this._onDragMove,this,b),ondragend:Ae(this._onDragEnd,this),onmouseover:Ae(this._showDataInfo,this,!0),onmouseout:Ae(this._showDataInfo,this,!1),z2:5});var C=T.getBoundingRect(),M=l.get("handleSize");this._handleHeight=xe(M,this._size[1]),this._handleWidth=C.width/C.height*this._handleHeight,T.setStyle(l.getModel("handleStyle").getItemStyle()),T.style.strokeNoScale=!0,T.rectHover=!0,T.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Qu(T);var k=l.get("handleColor");k!=null&&(T.style.fill=k),o.add(i[b]=T);var I=l.getModel("textStyle");r.add(a[b]=new kt({silent:!0,invisible:!0,style:ar(I,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:I.getTextColor(),font:I.getFont()}),z2:10}))},this);var h=d;if(f){var v=xe(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new Ct({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),y=v*.8,x=n.moveHandleIcon=Er(l.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);x.silent=!0,x.y=s[1]+v/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(s[1]/2,Math.max(v,10));h=n.moveZone=new Ct({invisible:!0,shape:{y:s[1]-S,height:v+S}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(x),o.add(h)}h.attr({draggable:!0,cursor:SF(this._orient),drift:Ae(this._onDragMove,this,"all"),ondragstart:Ae(this._showDataInfo,this,!0),ondragend:Ae(this._onDragEnd,this),onmouseover:Ae(this._showDataInfo,this,!0),onmouseout:Ae(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Vt(r[0],[0,100],n,!0),Vt(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ic(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?Vt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Vt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Qi([Vt(a[0],o,l,!0),Vt(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=Qi(i.slice()),o=this._size;V([0,1],function(h){var v=n.handles[h],g=this._handleHeight;v.attr({scaleX:g/2,scaleY:g/2,x:i[h]+(h?-1:1),y:o[1]/2-g/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new Ct,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Qi(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var g=Ju(i.handles[v].parent,this.group),y=cS(v===0?"right":"left",g),x=this._handleWidth/2+rDe,S=ka([d[v]+(v===0?-x:x),this._size[1]/2],g);a[v].setStyle({x:S[0],y:S[1],verticalAlign:o===Ap?"middle":y,align:o===Ap?y:"center",text:s[v]})}},t.prototype._formatLabel=function(r,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return Be(a)?a(r,s):_e(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!r),i[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,i,a){this._dragging=!0,as(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ka([n,i],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new et(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Qi([Vt(i.x,o,s,!0),Vt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(as(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Tp({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?iDe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=r7(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(fP);function oDe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function SF(e){return e==="vertical"?"ns-resize":"ew-resize"}function _7(e){e.registerComponentModel(JPe),e.registerComponentView(aDe),dP(e)}function sDe(e){pt(b7),pt(_7)}var w7={get:function(e,t,r){var n=We((lDe[e]||{})[t]);return r&&ue(n)?n[n.length-1]:n}},lDe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},bF=jr.mapVisual,uDe=jr.eachVisual,cDe=ue,_F=V,fDe=Qi,dDe=Vt,sx=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&d7(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=Ae(r,this),this.controllerVisuals=UA(this.option.controller,n,r),this.targetVisuals=UA(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Ut(r),n},t.prototype.eachTargetSeries=function(r,n){V(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],ue(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(_e(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Be(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=fDe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});tt(a,i),tt(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){cDe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var v=f[d],g=f[h];v&&!g&&(g=f[h]={},_F(v,function(y,x){if(jr.isValidType(x)){var S=w7.get(x,"inactive",s);S!=null&&(g[x]=S,x==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),g=this.getItemSymbol(),y=g||"roundRect";_F(this.stateList,function(x){var S=this.itemSize,b=f[x];b||(b=f[x]={color:s?v:[v]}),b.symbol==null&&(b.symbol=d&&We(d)||(s?y:[y])),b.symbolSize==null&&(b.symbolSize=h&&We(h)||(s?S[0]:[S[0],S[0]])),b.symbol=bF(b.symbol,function(C){return C==="none"?y:C});var w=b.symbolSize;if(w!=null){var T=-1/0;uDe(w,function(C){C>T&&(T=C)}),b.symbolSize=bF(w,function(C){return dDe(C,[0,T],[0,S[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(xt),wF=[20,140],hDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=wF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=wF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):ue(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),V(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=Qi((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=r)&&(n[1]>=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=CF(this,"outOfRange",this.getExtent()),i=CF(this,"inRange",this.option.range.slice()),a=[];function o(h,v){a.push({value:h,color:r(h,v)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var d=a.length;return{stops:a,outerColors:[d?a[0].color:"transparent",d?a[d-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Dl(sx.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(sx);function CF(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,i=(r[1]-r[0])/n,a=r[0],o=[],s=0;s<=n&&a<r[1];s++)o.push(a),a+=i;return o.push(r[1]),o}var C7=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,i,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,i,a)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,i=Fd(n.get("padding")||0),a=r.getBoundingRect();r.add(new Ct({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,v){s[h]=v}var f=o.controllerVisuals[a||o.getValueState(r)],d=jr.prepareVisualTypes(f);return V(d,function(h){var v=f[h];i.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=f.__alphaForOpacity),jr.dependsOn(h,n)&&v&&v.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api;mS(r,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(r,n,i,a){},t.type="visualMap",t}(dr),TF=[["left","right","width"],["top","bottom","height"]];function T7(e,t,r){var n=e.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=TF[o],l=[0,null,10],u={},c=0;c<3;c++)u[TF[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],d=Fr(u,a,n.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<a[f[1]]*.5?0:1]}function K0(e,t){return V(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Qa=Vt,pDe=V,AF=Math.min,MT=Math.max,vDe=12,gDe=6,mDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.init=function(r,n){e.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=Ae(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Ae(this._hideIndicator,this)},t.prototype.doRender=function(r,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var i=r.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new kt({style:ar(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:a})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=T7(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new qe;u.add(c),c.add(i.outOfRange=MF()),c.add(i.inRange=MF(null,s?IF(this._orient):null,Ae(this._dragHandle,this,"all",!1),Ae(this._dragHandle,this,"all",!0))),c.setClipPath(new Ct({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),d=MT(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,d,o),this._createHandle(n,u,1,a,d,o)),this._createIndicator(n,u,a,d,o),r.add(u)},t.prototype._createHandle=function(r,n,i,a,o,s){var l=Ae(this._dragHandle,this,i,!1),u=Ae(this._dragHandle,this,i,!0),c=La(r.get("handleSize"),a[0]),f=Er(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=IF(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(x){as(x.event)}}),f.x=a[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),$u(f,!0),n.add(f);var h=this.visualMapModel.textStyleModel,v=new kt({cursor:d,draggable:!0,drift:l,onmousemove:function(x){as(x.event)},ondragend:u,style:ar(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var g=[c,0],y=this._shapes;y.handleThumbs[i]=f,y.handleLabelPoints[i]=g,y.handleLabels[i]=v},t.prototype._createIndicator=function(r,n,i,a,o){var s=La(r.get("indicatorSize"),i[0]),l=Er(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof Jr){var c=l.style;l.useStyle(oe({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,d=new kt({silent:!0,invisible:!0,style:ar(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?a/2:gDe)+i[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=d,v.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():kF(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),i=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[Qa(n[0],i,a,!0),Qa(n[1],i,a,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Ic(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[Qa(a[0],o,s,!0),Qa(a[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Rg(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var i=100,a=[],o=(r[1]-r[0])/i;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=r[0]+o*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new qe(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();pDe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=Qa(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var v=ka(i.handleLabelPoints[c],Ju(f,this.group));s[c].setStyle({x:v[0],y:v[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),v=this.getControllerVisual(r,"symbolSize"),g=Qa(r,s,u,!0),y=l[0]-v/2,x={x:f.x,y:f.y};f.y=g,f.x=y;var S=ka(c.indicatorLabelPoint,Ju(f,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),T=this._orient,C=T==="horizontal";b.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:C?w:"middle",align:C?"center":w});var M={x:y,y:g,style:{fill:h}},k={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var I={duration:100,easing:"cubicInOut",additive:!0};f.x=x.x,f.y=x.y,f.animateTo(M,I),b.animateTo(k,I)}else f.attr(M),b.attr(k);this._firstShowIndicator=!1;var P=this._shapes.handleLabels;if(P)for(var R=0;R<P.length;R++)this.api.enterBlur(P[R])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var i=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);a[1]=AF(MT(0,a[1]),i[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();r=AF(MT(o[0],r),o[1]);var l=yDe(i,s,o),u=[r-l,r+l],c=Qa(r,o,s,!0),f=[Qa(u[0],o,s,!0),Qa(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(n||kF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var v=wve(d,h);this._dispatchHighDown("downplay",K0(v[0],i)),this._dispatchHighDown("highlight",K0(v[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Hu(r.target,function(l){var u=Ze(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",K0(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,i,a){var o=Ju(n,a?null:this.group);return ue(r)?ka(r,o,i):cS(r,o,i)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(C7);function MF(e,t,r,n){return new Vn({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(i){as(i.event)},ondragend:n})}function yDe(e,t,r){var n=vDe/2,i=e.get("hoverLinkDataSize");return i&&(n=Qa(i,t,r,!0)/2),n}function kF(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function IF(e){return e==="vertical"?"ns-resize":"ew-resize"}var xDe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},SDe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},bDe=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var i=e.pipelineContext;!n.isTargetSeries(e)||i&&i.large||r.push(HIe(n.stateList,n.targetVisuals,Ae(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(e)){var a=i.getVisualMeta(Ae(_De,null,e,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function _De(e,t,r,n){for(var i=t.targetVisuals[n],a=jr.prepareVisualTypes(i),o={color:Ng(e.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,d)}return o.color;function f(h){return o[h]}function d(h,v){o[h]=v}}var PF=V;function wDe(e){var t=e&&e.visualMap;ue(t)||(t=t?[t]:[]),PF(t,function(r){if(r){Af(r,"splitList")&&!Af(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&ue(n)&&PF(n,function(i){Ge(i)&&(Af(i,"start")&&!Af(i,"min")&&(i.min=i.start),Af(i,"end")&&!Af(i,"max")&&(i.max=i.end))})}})}function Af(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var DF=!1;function A7(e){DF||(DF=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(xDe,SDe),V(bDe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(wDe))}function M7(e){e.registerComponentModel(hDe),e.registerComponentView(mDe),A7(e)}var CDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],TDe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=We(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=de(this._pieceList,function(l){return l=We(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=jr.listVisualTypes(),a=this.isCategory();V(r.pieces,function(s){V(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),V(n,function(s,l){var u=!1;V(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&V(this.stateList,function(c){(r[c]||(r[c]={}))[l]=w7.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,V(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;V(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=We(r)},t.prototype.getValueState=function(r){var n=jr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=jr.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=r(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return V(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Dl(sx.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(sx),TDe={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),MN(e),V(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;V(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),RF(t,e)},pieces:function(e){var t=this.option;V(t.pieces,function(r,n){Ge(r)||(r={value:r});var i={text:"",index:n};if(r.label!=null&&(i.text=r.label),r.hasOwnProperty("value")){var a=i.value=r.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=r[d[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=jr.retrieveVisuals(r),e.push(i)},this),RF(t,e),MN(e),V(e,function(r){var n=r.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function RF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var ADe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=Qr(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),V(c.viewPieceList,function(h){var v=h.piece,g=new qe;g.onclick=Ae(this._onItemClick,this,v),this._enableHoverLink(g,h.indexInModelPieceList);var y=n.getRepresentValue(v);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]]),d){var x=this.visualMapModel.getValueState(y);g.add(new kt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:x==="outOfRange"?.5:1}}))}r.add(g)},this),f&&this._renderEndsText(r,f[1],u,d,l),ec(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:K0(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return T7(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new qe,l=this.visualMapModel.textStyleModel;s.add(new kt({style:ar(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=de(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(Er(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=We(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,V(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(C7);function k7(e){e.registerComponentModel(CDe),e.registerComponentView(ADe),A7(e)}function MDe(e){pt(M7),pt(k7)}var kDe={label:{enabled:!0},decal:{show:!1}},EF=Tt(),IDe={};function PDe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=We(kDe);tt(n.label,e.getLocaleModel().get("aria"),!1),tt(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=Re();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),EF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Be(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var S=K2(d.ecModel,d.name,IDe,e.getSeriesCount()),b=h.getVisual("decal");h.setVisual("decal",w(b,S))}else{var v=d.getRawData(),g={},y=EF(d).scope;h.each(function(T){var C=h.getRawIndex(T);g[C]=T});var x=v.count();v.each(function(T){var C=g[T],M=v.getName(T)||T+"",k=K2(d.ecModel,M,y,x),I=h.getItemVisual(C,"decal");h.setItemVisual(C,"decal",w(I,k))})}function w(T,C){var M=T?oe(oe({},C),T):C;return M.dirty=!0,M}})}}function a(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=Ve(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=e.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,g=Math.min(d,v),y;if(!(d<1)){var x=s();if(x){var S=f.get(["general","withTitle"]);y=o(S,{title:x})}else y=f.get(["general","withoutTitle"]);var b=[],w=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);y+=o(w,{seriesCount:d}),e.eachSeries(function(k,I){if(I<g){var P=void 0,R=k.get("name"),L=R?"withName":"withoutName";P=d>1?f.get(["series","multiple",L]):f.get(["series","single",L]),P=o(P,{seriesId:k.seriesIndex,seriesName:k.get("name"),seriesType:l(k.subType)});var O=k.getData();if(O.count()>h){var N=f.get(["data","partialData"]);P+=o(N,{displayCnt:h})}else P+=f.get(["data","allData"]);for(var B=f.get(["data","separator","middle"]),G=f.get(["data","separator","end"]),q=[],H=0;H<O.count();H++)if(H<h){var X=O.getName(H),F=O.getValues(H),Y=f.get(["data",X?"withName":"withoutName"]);q.push(o(Y,{name:X,value:F.join(B)}))}P+=q.join(B)+G,b.push(P)}});var T=f.getModel(["series","multiple","separator"]),C=T.get("middle"),M=T.get("end");y+=b.join(C)+M,u.setAttribute("aria-label",y)}}}}function o(u,c){if(!_e(u))return u;var f=u;return V(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=e.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function DDe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},V(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function RDe(e){e.registerPreprocessor(DDe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,PDe)}var LF={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},EDe=function(){function e(t){var r=this._condVal=_e(t)?new RegExp(t):Hhe(t)?t:null;if(r==null){var n="";Nt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return _e(r)?this._condVal.test(t):Dt(r)?this._condVal.test(t+""):!1},e}(),LDe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),ODe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),NDe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),zDe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),BDe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},e}();function bP(e,t){if(e===!0||e===!1){var r=new LDe;return r.value=e,r}var n="";return I7(e)||Nt(n),e.and?OF("and",e,t):e.or?OF("or",e,t):e.not?FDe(e,t):VDe(e,t)}function OF(e,t,r){var n=t[e],i="";ue(n)||Nt(i),n.length||Nt(i);var a=e==="and"?new ODe:new NDe;return a.children=de(n,function(o){return bP(o,r)}),a.children.length||Nt(i),a}function FDe(e,t){var r=e.not,n="";I7(r)||Nt(n);var i=new zDe;return i.child=bP(r,t),i.child||Nt(n),i}function VDe(e,t){for(var r="",n=t.prepareGetValue(e),i=[],a=St(e),o=e.parser,s=o?fW(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=Pe(LF,u)?LF[u]:u,f=e[u],d=s?s(f):f,h=Aye(c,d)||c==="reg"&&new EDe(d);h||Nt(r),i.push(h)}}i.length||Nt(r);var v=new BDe;return v.valueGetterParam=n,v.valueParser=s,v.getValue=t.getValue,v.subCondList=i,v}function I7(e){return Ge(e)&&!wn(e)}var $De=function(){function e(t,r){this._cond=bP(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function GDe(e,t){return new $De(e,t)}var HDe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=GDe(e.config,{valueGetterAttrMap:Re({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Pe(s,"dimension")||Nt(l);var c=t.getDimensionInfo(u);return c||Nt(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)r=t.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},WDe={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",i=Ut(r);i.length||Nt(n);var a=[];V(i,function(c){var f=c.dimension,d=c.order,h=c.parser,v=c.incomparable;if(f==null&&Nt(n),d!=="asc"&&d!=="desc"&&Nt(n),v&&v!=="min"&&v!=="max"){var g="";Nt(g)}if(d!=="asc"&&d!=="desc"){var y="";Nt(y)}var x=t.getDimensionInfo(f);x||Nt(n);var S=h?fW(h):null;h&&!S&&Nt(n),a.push({dimIdx:x.index,parser:S,comparator:new hW(d,v)})});var o=t.sourceFormat;o!==Cn&&o!==la&&Nt(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<a.length;d++){var h=a[d],v=t.retrieveValueFromItem(c,h.dimIdx),g=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(v=h.parser(v),g=h.parser(g));var y=h.comparator.evaluate(v,g);if(y!==0)return y}return 0}),{data:s}}};function jDe(e){e.registerTransform(HDe),e.registerTransform(WDe)}var UDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new mW(this),F5(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),F5(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:mo},t}(xt),YDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(dr);function qDe(e){e.registerComponentModel(UDe),e.registerComponentView(YDe)}var Za=Mo.CMD;function Wf(e,t){return Math.abs(e-t)<1e-5}function JA(e){var t=e.data,r=e.len(),n=[],i,a=0,o=0,s=0,l=0;function u(O,N){i&&i.length>2&&n.push(i),i=[O,N]}function c(O,N,B,G){Wf(O,B)&&Wf(N,G)||i.push(O,N,B,G,B,G)}function f(O,N,B,G,q,H){var X=Math.abs(N-O),F=Math.tan(X/4)*4/3,Y=N<O?-1:1,Z=Math.cos(O),j=Math.sin(O),re=Math.cos(N),ce=Math.sin(N),te=Z*q+B,pe=j*H+G,ae=re*q+B,he=ce*H+G,ve=q*F*Y,fe=H*F*Y;i.push(te-ve*j,pe+fe*Z,ae+ve*ce,he-fe*re,ae,he)}for(var d,h,v,g,y=0;y<r;){var x=t[y++],S=y===1;switch(S&&(a=t[y],o=t[y+1],s=a,l=o,(x===Za.L||x===Za.C||x===Za.Q)&&(i=[s,l])),x){case Za.M:a=s=t[y++],o=l=t[y++],u(s,l);break;case Za.L:d=t[y++],h=t[y++],c(a,o,d,h),a=d,o=h;break;case Za.C:i.push(t[y++],t[y++],t[y++],t[y++],a=t[y++],o=t[y++]);break;case Za.Q:d=t[y++],h=t[y++],v=t[y++],g=t[y++],i.push(a+2/3*(d-a),o+2/3*(h-o),v+2/3*(d-v),g+2/3*(h-g),v,g),a=v,o=g;break;case Za.A:var b=t[y++],w=t[y++],T=t[y++],C=t[y++],M=t[y++],k=t[y++]+M;y+=1;var I=!t[y++];d=Math.cos(M)*T+b,h=Math.sin(M)*C+w,S?(s=d,l=h,u(s,l)):c(a,o,d,h),a=Math.cos(k)*T+b,o=Math.sin(k)*C+w;for(var P=(I?-1:1)*Math.PI/2,R=M;I?R>k:R<k;R+=P){var L=I?Math.max(R+P,k):Math.min(R+P,k);f(R,L,b,w,T,C)}break;case Za.R:s=a=t[y++],l=o=t[y++],d=s+t[y++],h=l+t[y++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case Za.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function eM(e,t,r,n,i,a,o,s,l,u){if(Wf(e,r)&&Wf(t,n)&&Wf(i,o)&&Wf(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,v=Math.sqrt(d*d+h*h);d/=v,h/=v;var g=r-e,y=n-t,x=i-o,S=a-s,b=g*g+y*y,w=x*x+S*S;if(b<f&&w<f){l.push(o,s);return}var T=d*g+h*y,C=-d*x-h*S,M=b-T*T,k=w-C*C;if(M<f&&T>=0&&k<f&&C>=0){l.push(o,s);return}var I=[],P=[];xl(e,r,i,o,.5,I),xl(t,n,a,s,.5,P),eM(I[0],P[0],I[1],P[1],I[2],P[2],I[3],P[3],l,u),eM(I[4],P[4],I[5],P[5],I[6],P[6],I[7],P[7],l,u)}function XDe(e,t){var r=JA(e),n=[];t=t||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],d=a[u++],h=a[u++],v=a[u++],g=a[u++];eM(s,l,c,f,d,h,v,g,o,t),s=v,l=g}n.push(o)}return n}function P7(e,t,r){var n=e[t],i=e[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function NF(e,t,r){for(var n=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),f=P7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var v=(c?u:s)/f[h],g=0;g<f[h];g++){var y={};c?(y.startAngle=a+d*h,y.endAngle=a+d*(h+1),y.r0=n+v*g,y.r=n+v*(g+1)):(y.startAngle=a+v*g,y.endAngle=a+v*(g+1),y.r0=n+d*h,y.r=n+d*(h+1)),y.clockwise=e.clockwise,y.cx=e.cx,y.cy=e.cy,r.push(y)}}function ZDe(e,t,r){for(var n=e.width,i=e.height,a=n>i,o=P7([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,d=0;d<o.length;d++)for(var h=e[l]/o[d],v=0;v<o[d];v++){var g={};g[u]=d*f,g[c]=v*h,g[s]=f,g[l]=h,g.x+=e.x,g.y+=e.y,r.push(g)}}function zF(e,t,r,n){return e*n-r*t}function KDe(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=zF(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-i,v=t-a,g=zF(h,v,c,f)/d;return g<0||g>1?null:new et(g*l+e,g*u+t)}function QDe(e,t,r){var n=new et;et.sub(n,r,t),n.normalize();var i=new et;et.sub(i,e,t);var a=i.dot(n);return a}function Mf(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function JDe(e,t,r){for(var n=e.length,i=[],a=0;a<n;a++){var o=e[a],s=e[(a+1)%n],l=KDe(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&i.push({projPt:QDe(l,t,r),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(y,x){return y.projPt-x.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],v=[d],g=[h],a=u.idx+1;a<=c.idx;a++)Mf(v,e[a].slice());Mf(v,h),Mf(v,d);for(var a=c.idx+1;a<=u.idx+n;a++)Mf(g,e[a%n].slice());return Mf(g,d),Mf(g,h),[{points:v},{points:g}]}function BF(e){var t=e.points,r=[],n=[];iS(t,r,n);var i=new rt(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new et,c=new et;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),JDe(t,u,c)}function lx(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);lx(e,a[0],i,n),lx(e,a[1],r-i,n)}return n}function eRe(e,t){for(var r=[],n=0;n<t;n++)r.push(Vk(e));return r}function tRe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function rRe(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function nRe(e,t){var r=[],n=e.shape,i;switch(e.type){case"rect":ZDe(n,t,r),i=Ct;break;case"sector":NF(n,t,r),i=Fn;break;case"circle":NF({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),i=Fn;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=de(XDe(e.getUpdatedPathProxy(),o),function(x){return rRe(x)}),l=s.length;if(l===0)lx(BF,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=de(s,function(x){var S=[],b=[];iS(x,S,b);var w=(b[1]-S[1])*(b[0]-S[0]);return c+=w,{poly:x,area:w}});f.sort(function(x,S){return S.area-x.area});for(var d=t,u=0;u<l;u++){var h=f[u];if(d<=0)break;var v=u===l-1?d:Math.ceil(h.area/c*t);v<0||(lx(BF,{points:h.poly},v,r),d-=v)}}i=Vn;break}if(!i)return eRe(e,t);for(var g=[],u=0;u<r.length;u++){var y=new i;y.setShape(r[u]),tRe(e,y),g.push(y)}return g}function iRe(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var i=[],a=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,h=2;h<s;){var v=o[h-2],g=o[h-1],y=o[h++],x=o[h++],S=o[h++],b=o[h++],w=o[h++],T=o[h++];if(d<=0){f.push(y,x,S,b,w,T);continue}for(var C=Math.min(d,c-1)+1,M=1;M<=C;M++){var k=M/C;xl(v,y,S,w,k,i),xl(g,x,b,T,k,a),v=i[3],g=a[3],f.push(i[1],a[1],i[2],a[2],v,g),y=i[5],x=a[5],S=i[6],b=a[6]}d-=C-1}return o===e?[f,t]:[e,f]}function FF(e,t){for(var r=e.length,n=e[r-2],i=e[r-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function aRe(e,t){for(var r,n,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(r=iRe(l,u),c=r[0],f=r[1],n=c,i=f):(f=FF(i||l,l),c=l):(c=FF(n||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function VF(e){for(var t=0,r=0,n=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],c=e[a+1],f=s*c-u*l;t+=f,r+=(s+u)*f,n+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function oRe(e,t,r,n){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var h=d===0?c:(c+d-2)%l+2,v=e[h]-r[0],g=e[h+1]-r[1],y=t[d]-n[0],x=t[d+1]-n[1],S=y-v,b=x-g;f+=S*S+b*b}f<a&&(a=f,o=u)}return o}function sRe(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function lRe(e,t,r,n){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],l=t[o],u=VF(s),c=VF(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],d=[],h=0,v=1/0,g=[],y=s.length;a&&(s=sRe(s));for(var x=oRe(s,l,u,c)*6,S=y-2,b=0;b<S;b+=2){var w=(x+b)%S+2;f[b+2]=s[w]-u[0],f[b+3]=s[w+1]-u[1]}f[0]=s[x]-u[0],f[1]=s[x+1]-u[1];for(var T=n/r,C=-n/2;C<=n/2;C+=T){for(var M=Math.sin(C),k=Math.cos(C),I=0,b=0;b<s.length;b+=2){var P=f[b],R=f[b+1],L=l[b]-c[0],O=l[b+1]-c[1],N=L*k-O*M,B=L*M+O*k;g[b]=N,g[b+1]=B;var G=N-P,q=B-R;I+=G*G+q*q}if(I<v){v=I,h=C;for(var H=0;H<g.length;H++)d[H]=g[H]}}i.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return i}function ux(e){return e.__isCombineMorphing}var D7="__mOriginal_";function cx(e,t,r){var n=D7+t,i=e[n]||e[t];e[n]||(e[n]=e[t]);var a=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function yv(e,t){var r=D7+t;e[r]&&(e[t]=e[r],e[r]=null)}function $F(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function R7(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=aRe(JA(r),JA(n)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&$F(a,s),l&&$F(o,l),cx(t,"updateTransform",{replace:u}),t.transform=null;var c=lRe(a,o,10,Math.PI),f=[];cx(t,"buildPath",{replace:function(d){for(var h=t.__morphT,v=1-h,g=[],y=0;y<c.length;y++){var x=c[y],S=x.from,b=x.to,w=x.rotation*h,T=x.fromCp,C=x.toCp,M=Math.sin(w),k=Math.cos(w);E0(g,T,C,h);for(var I=0;I<S.length;I+=2){var P=S[I],R=S[I+1],L=b[I],O=b[I+1],N=P*v+L*h,B=R*v+O*h;f[I]=N*k-B*M+g[0],f[I+1]=N*M+B*k+g[1]}var G=f[0],q=f[1];d.moveTo(G,q);for(var I=2;I<S.length;){var L=f[I++],O=f[I++],H=f[I++],X=f[I++],F=f[I++],Y=f[I++];G===L&&q===O&&H===F&&X===Y?d.lineTo(F,Y):d.bezierCurveTo(L,O,H,X,F,Y),G=F,q=Y}}}})}function _P(e,t,r){if(!e||!t)return t;var n=r.done,i=r.during;R7(e,t),t.__morphT=0;function a(){yv(t,"buildPath"),yv(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Ve({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),t}function uRe(e,t,r,n,i,a){var o=16;e=i===r?0:Math.round(32767*(e-r)/(i-r)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function fx(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=de(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=de(a,function(s,l){return{cp:s,z:uRe(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function E7(e){return nRe(e.path,e.count)}function tM(){return{fromIndividuals:[],toIndividuals:[],count:0}}function cRe(e,t,r){var n=[];function i(T){for(var C=0;C<T.length;C++){var M=T[C];ux(M)?i(M.childrenRef()):M instanceof vt&&n.push(M)}}i(e);var a=n.length;if(!a)return tM();var o=r.dividePath||E7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),tM();n=fx(n),s=fx(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Xo,d=0;d<a;d++){var h=n[d],v=s[d];v.parent=t,v.copyTransform(f),c||R7(h,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function g(T){for(var C=0;C<s.length;C++)s[C].addSelfToZr(T)}cx(t,"addSelfToZr",{after:function(T){g(T)}}),cx(t,"removeSelfFromZr",{after:function(T){for(var C=0;C<s.length;C++)s[C].removeSelfFromZr(T)}});function y(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,yv(t,"addSelfToZr"),yv(t,"removeSelfFromZr")}var x=s.length;if(c)for(var S=x,b=function(){S--,S===0&&(y(),l&&l())},d=0;d<x;d++){var w=c?Ve({delay:(r.delay||0)+c(d,x,n[d],s[d]),done:b},r):r;_P(n[d],s[d],w)}else t.__morphT=0,t.animateTo({__morphT:1},Ve({during:function(T){for(var C=0;C<x;C++){var M=s[C];M.__morphT=t.__morphT,M.dirtyShape()}u&&u(T)},done:function(){y();for(var T=0;T<e.length;T++)yv(e[T],"updateTransform");l&&l()}},r));return t.__zr&&g(t.__zr),{fromIndividuals:n,toIndividuals:s,count:x}}function fRe(e,t,r){var n=t.length,i=[],a=r.dividePath||E7;function o(h){for(var v=0;v<h.length;v++){var g=h[v];ux(g)?o(g.childrenRef()):g instanceof vt&&i.push(g)}}if(ux(e)){o(e.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(Vk(i[l++%s]));i.length=n}else{i=a({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),tM()}i=fx(i),t=fx(t);for(var f=r.individualDelay,u=0;u<n;u++){var d=f?Ve({delay:(r.delay||0)+f(u,n,i[u],t[u])},r):r;_P(i[u],t[u],d)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function GF(e){return ue(e[0])}function HF(e,t){for(var r=[],n=e.length,i=0;i<n;i++)r.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var dRe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var i=Vk(e.path);i.setStyle("opacity",r),t.push(i)}return t},split:null};function kT(e,t,r,n,i,a){if(!e.length||!t.length)return;var o=Od("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;GF(e)&&(u=e,c=t),GF(t)&&(u=t,c=e);function f(x,S,b,w,T){var C=x.many,M=x.one;if(C.length===1&&!T){var k=S?C[0]:M,I=S?M:C[0];if(ux(k))f({many:[k],one:I},!0,b,w,!0);else{var P=s?Ve({delay:s(b,w)},l):l;_P(k,I,P),a(k,I,k,I,P)}}else for(var R=Ve({dividePath:dRe[r],individualDelay:s&&function(q,H,X,F){return s(q+b,w)}},l),L=S?cRe(C,M,R):fRe(M,C,R),O=L.fromIndividuals,N=L.toIndividuals,B=O.length,G=0;G<B;G++){var P=s?Ve({delay:s(G,B)},l):l;a(O[G],N[G],S?C[G]:x.one,S?x.one:C[G],P)}}for(var d=u?u===e:e.length>t.length,h=u?HF(c,u):HF(d?t:e,[d?e:t]),v=0,g=0;g<h.length;g++)v+=h[g].many.length;for(var y=0,g=0;g<h.length;g++)f(h[g],d,y,v),y+=h[g].many.length}function Pu(e){if(!e)return[];if(ue(e)){for(var t=[],r=0;r<e.length;r++)t.push(Pu(e[r]));return t}var n=[];return e.traverse(function(i){i instanceof vt&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var L7=1e4,hRe=0,WF=1,jF=2,pRe=Tt();function vRe(e,t){for(var r=e.dimensions,n=0;n<r.length;n++){var i=e.getDimensionInfo(r[n]);if(i&&i.otherDims[t]===0)return r[n]}}function gRe(e,t,r){var n=e.getDimensionInfo(r),i=n&&n.ordinalMeta;if(n){var a=e.get(n.name,t);return i&&i.categories[a]||a+""}}function UF(e,t,r,n){var i=n?"itemChildGroupId":"itemGroupId",a=vRe(e,i);if(a){var o=gRe(e,t,a);return o}var s=e.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||e.getId(t)}function YF(e){var t=[];return V(e,function(r){var n=r.data,i=r.dataGroupId;if(!(n.count()>L7))for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:UF(n,o,i,!1),childGroupId:UF(n,o,i,!0),divide:r.divide,dataIndex:o})}),t}function IT(e,t,r){e.traverse(function(n){n instanceof vt&&lr(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function PT(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function kf(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function mRe(e,t,r){var n=Od("update",r,t);n&&e.traverse(function(i){if(i instanceof na){var a=ume(i);a&&i.animateFrom({style:a},n)}})}function yRe(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var i=e[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function O7(e,t,r){var n=YF(e),i=YF(t);function a(b,w,T,C,M){(T||b)&&w.animateFrom({style:T&&T!==b?oe(oe({},T.style),b.style):b.style},M)}var o=!1,s=hRe,l=Re(),u=Re();n.forEach(function(b){b.groupId&&l.set(b.groupId,!0),b.childGroupId&&u.set(b.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=WF;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=jF;break}}function h(b,w){return function(T){var C=T.data,M=T.dataIndex;return w?C.getId(M):b?s===WF?T.childGroupId:T.groupId:s===jF?T.childGroupId:T.groupId}}var v=yRe(n,i),g={};if(!v)for(var c=0;c<i.length;c++){var y=i[c],x=y.data.getItemGraphicEl(y.dataIndex);x&&(g[x.id]=!0)}function S(b,w){var T=n[w],C=i[b],M=C.data.hostModel,k=T.data.getItemGraphicEl(T.dataIndex),I=C.data.getItemGraphicEl(C.dataIndex);if(k===I){I&&mRe(I,C.dataIndex,M);return}k&&g[k.id]||I&&(kf(I),k?(kf(k),PT(k),o=!0,kT(Pu(k),Pu(I),C.divide,M,b,a)):IT(I,M,b))}new us(n,i,h(!0,v),h(!1,v),null,"multiple").update(S).updateManyToOne(function(b,w){var T=i[b],C=T.data,M=C.hostModel,k=C.getItemGraphicEl(T.dataIndex),I=Wt(de(w,function(P){return n[P].data.getItemGraphicEl(n[P].dataIndex)}),function(P){return P&&P!==k&&!g[P.id]});k&&(kf(k),I.length?(V(I,function(P){kf(P),PT(P)}),o=!0,kT(Pu(I),Pu(k),T.divide,M,b,a)):IT(k,M,T.dataIndex))}).updateOneToMany(function(b,w){var T=n[w],C=T.data.getItemGraphicEl(T.dataIndex);if(!(C&&g[C.id])){var M=Wt(de(b,function(I){return i[I].data.getItemGraphicEl(i[I].dataIndex)}),function(I){return I&&I!==C}),k=i[b[0]].data.hostModel;M.length&&(V(M,function(I){return kf(I)}),C?(kf(C),PT(C),o=!0,kT(Pu(C),Pu(M),T.divide,k,b[0],a)):V(M,function(I){return IT(I,k,b[0])}))}}).updateManyToMany(function(b,w){new us(w,b,function(T){return n[T].data.getId(n[T].dataIndex)},function(T){return i[T].data.getId(i[T].dataIndex)}).update(function(T,C){S(b[T],w[C])}).execute()}).execute(),o&&V(t,function(b){var w=b.data,T=w.hostModel,C=T&&r.getViewOfSeriesModel(T),M=Od("update",T,0);C&&T.isAnimationEnabled()&&M&&M.duration>0&&C.group.traverse(function(k){k instanceof vt&&!k.animators.length&&k.animateFrom({style:{opacity:0}},M)})})}function qF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function XF(e){return ue(e)?e.sort().join(","):e}function Js(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function xRe(e,t){var r=Re(),n=Re(),i=Re();return V(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=qF(a),c=XF(u);n.set(c,{dataGroupId:s,data:l}),ue(u)&&V(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),V(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=qF(a),u=XF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Js(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Js(s),data:s}]});else if(ue(l)){var f=[];V(l,function(v){var g=n.get(v);g.data&&f.push({dataGroupId:g.dataGroupId,divide:Js(g.data),data:g.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Js(s)}]})}else{var d=i.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:Js(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Js(s)})}}}}),r}function ZF(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function SRe(e,t,r,n){var i=[],a=[];V(Ut(e.from),function(o){var s=ZF(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Js(t.oldData[s]),groupIdDim:o.dimension})}),V(Ut(e.to),function(o){var s=ZF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Js(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&O7(i,a,n)}function bRe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){V(Ut(n.seriesTransition),function(i){V(Ut(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][W0]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var i=pRe(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)V(Ut(a),function(h){SRe(h,i,n,r)});else{var o=xRe(i,n);V(o.keys(),function(h){var v=o.get(h);O7(v.oldSeries,v.newSeries,r)})}V(n.updatedSeries,function(h){h[W0]&&(h[W0]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<L7&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}pt([DSe]);pt([ASe]);pt([KSe,dbe,_be,t_e,d_e,Q_e,Awe,uCe,DCe,zCe,UCe,VTe,f2e,_2e,B2e,G2e,Q2e,aAe,gAe,_Ae,RAe,vMe]);pt(LMe);pt(oke);pt(Ej);pt(xke);pt(y9);pt(wke);pt(Rke);pt(xIe);pt(BIe);pt(Yg);pt(tPe);pt(iPe);pt(pPe);pt(bPe);pt(MPe);pt(EPe);pt(HPe);pt(sDe);pt(b7);pt(_7);pt(MDe);pt(M7);pt(k7);pt(RDe);pt(jDe);pt(qDe);pt(bRe);pt(Uxe);const KF={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},_Re=e=>!isNaN(new Date(e).getTime()),wRe=e=>e&&_Re(e)?new Date(e).toLocaleString():"",N7=({charts:e,lines:t,scatterplot:r})=>t.map(({key:n,name:i})=>({symbolSize:4,type:r?"scatter":"line",name:i,data:e[n]})),QF={type:"value",boundaryGap:[0,"5%"]},CRe=({splitAxis:e,yAxisLabels:t})=>e&&(!t||Array.isArray(t))?Array(2).fill(QF).map((r,n)=>({...r,...t?{name:t[n]}:{}})):{...QF,...t?{name:t}:{}},TRe=e=>new Date(e).toLocaleTimeString(),ARe=({chartValueFormatter:e,value:t})=>e?e(t):Array.isArray(t)?t[1]:t,MRe=({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s})=>({title:{text:t},tooltip:{trigger:"axis",formatter:l=>Array.isArray(l)&&l.length>0&&l.some(u=>!!u.value)?l.reduce((u,{axisValue:c,color:f,seriesName:d,value:h},v)=>`
|
215
|
+
${v===0?wRe(c):""}
|
216
|
+
${u}
|
217
|
+
<br>
|
218
|
+
<span style="color:${f};">
|
219
|
+
${d}: ${ARe({chartValueFormatter:i,value:h})}
|
220
|
+
</span>
|
221
|
+
`,""):"No data",borderWidth:0},xAxis:{type:"time",min:(e.time||[new Date().toISOString()])[0],startValue:(e.time||[])[0],axisLabel:{formatter:TRe}},grid:{left:60,right:40},yAxis:CRe({splitAxis:a,yAxisLabels:o}),series:N7({charts:e,lines:r,scatterplot:s}),color:n,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"}}}}}}),kRe=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`,padding:[0,0,8,0]},data:(e.markers||[]).map(t=>({xAxis:t}))}),IRe=e=>t=>{const{batch:r}=t;if(!r)return;const[{start:n,startValue:i,end:a}]=r,o=n>0&&a<=100||i>0;e.setOption({dataZoom:[{type:"slider",show:o}]})};function PRe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s,shouldReplaceMergeLines:l=!1}){const[u,c]=$.useState(null),f=Ii(({theme:{isDarkMode:h}})=>h),d=$.useRef(null);return $.useEffect(()=>{if(!d.current)return;const h=p1e(d.current);h.setOption(MRe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,scatterplot:s})),h.on("datazoom",IRe(h));const v=()=>h.resize();return window.addEventListener("resize",v),h.group="swarmCharts",v1e("swarmCharts"),c(h),()=>{g1e(h),window.removeEventListener("resize",v)}},[d]),$.useEffect(()=>{const h=r.every(({key:v})=>!!e[v]);u&&h&&u.setOption({series:r.map(({key:v,yAxisIndex:g,...y},x)=>({...y,data:e[v],...a?{yAxisIndex:g||x}:{},...x===0?{markLine:kRe(e)}:{}}))})},[e,u,r]),$.useEffect(()=>{if(u){const{textColor:h,axisColor:v,backgroundColor:g,splitLine:y}=f?KF.DARK:KF.LIGHT;u.setOption({backgroundColor:g,textStyle:{color:h},title:{textStyle:{color:h}},legend:{icon:"circle",inactiveColor:h,textStyle:{color:h}},tooltip:{backgroundColor:g,textStyle:{color:h}},xAxis:{axisLine:{lineStyle:{color:v}}},yAxis:{axisLine:{lineStyle:{color:v}},splitLine:{lineStyle:{color:y}}}})}},[u,f]),$.useEffect(()=>{u&&u.setOption({series:N7({charts:e,lines:r,scatterplot:s})},l?{replaceMerge:["series"]}:void 0)},[r]),z.jsx("div",{ref:d,style:{width:"100%",height:"300px"}})}function DRe(){const{data:e,refetch:t}=kde(),r=qo(nv.setUi),n=Ii(({swarm:a})=>a.state),i=n===bn.SPAWNING||n==bn.RUNNING;$.useEffect(()=>{e&&r({ratios:e})},[e]),Ov(t,5e3,{shouldRunInterval:i,immediate:!0})}const JF=2e3;function RRe(){const e=qo(pk.setSwarm),t=qo(nv.setUi),r=qo(nv.updateCharts),n=qo(nv.updateChartMarkers),i=Ii(({swarm:d})=>d),a=$.useRef(i.state),[o,s]=$.useState(!1),{data:l,refetch:u}=Mde(),c=i.state===bn.SPAWNING||i.state==bn.RUNNING,f=()=>{if(!l)return;const{currentResponseTimePercentiles:d,extendedStats:h,stats:v,errors:g,totalRps:y,totalFailPerSec:x,failRatio:S,workers:b,userCount:w,totalAvgResponseTime:T}=l,C=new Date().toISOString();o&&(s(!1),n(C));const M=Rp(y,2),k=Rp(x,2),I=Rp(S*100),R={...Object.entries(d).reduce((L,[O,N])=>({...L,[O]:[C,N||0]}),{}),currentRps:[C,M],currentFailPerSec:[C,k],totalAvgResponseTime:[C,Rp(T,2)],userCount:[C,w],time:C};t({extendedStats:h,stats:v,errors:g,totalRps:M,failRatio:I,workers:b,userCount:w}),r(R)};$.useEffect(()=>{l&&e({state:l.state})},[l&&l.state]),Ov(f,JF,{shouldRunInterval:!!l&&c}),Ov(u,JF,{shouldRunInterval:c}),$.useEffect(()=>{i.state===bn.RUNNING&&a.current===bn.STOPPED&&s(!0),a.current=i.state},[i.state,a])}function ERe(){const{data:e,refetch:t}=Ide(),r=qo(nv.setUi),n=Ii(({swarm:a})=>a.state),i=n===bn.SPAWNING||n==bn.RUNNING;$.useEffect(()=>{e&&r({exceptions:e.exceptions})},[e]),Ov(t,5e3,{shouldRunInterval:i,immediate:!0})}function LRe(){return ERe(),z.jsx(vhe,{})}const ORe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function NRe({errors:e}){return z.jsx(Tg,{rows:e,structure:ORe})}const zRe=({ui:{errors:e}})=>({errors:e}),BRe=ki(zRe)(NRe),FRe=e=>e.includes("CRITICAL")?Ks[900]:e.includes("ERROR")?Ks[700]:e.includes("WARNING")?HX[900]:e.includes("DEBUG")?_u[700]:"text.primary";function z7({log:e}){return z.jsx(zt,{color:FRe(e),fontFamily:"monospace",variant:"body2",children:e})}function VRe({workerId:e,logs:t}){const[r,n]=$.useState(!1);$.useEffect(()=>{t.slice(localStorage[e]).some(Y6)&&n(!0)},[t]);const i=$.useCallback(()=>{n(!1),localStorage[e]=t.length},[]);return z.jsxs(OM,{children:[z.jsxs(zM,{expandIcon:z.jsx(ck,{}),onClick:i,children:[r&&z.jsx(J6,{color:"secondary","data-testid":"worker-notification"}),e]}),z.jsx(NM,{children:z.jsx(Al,{elevation:3,sx:{p:2},children:t.map((a,o)=>z.jsx(z7,{log:a},`worker-${e}-log-${o}`))})})]})}function $Re(){const{master:e,workers:t}=Ii(({logViewer:r})=>r);return z.jsxs(ir,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[z.jsxs(ir,{children:[z.jsx(zt,{sx:{mb:2},variant:"h5",children:"Master Logs"}),z.jsx(Al,{elevation:3,sx:{p:2,fontFamily:"monospace"},children:e.map((r,n)=>z.jsx(z7,{log:r},`master-log-${n}`))})]}),!z6(t)&&z.jsxs(ir,{children:[z.jsx(zt,{sx:{mb:2},variant:"h5",children:"Worker Logs"}),Object.entries(t).map(([r,n],i)=>z.jsx(VRe,{logs:n,workerId:r},`worker-log-${i}`))]})]})}function GRe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Ii(({theme:{isDarkMode:n}})=>n);return z.jsxs(N$,{sx:{display:"flex",flexDirection:"column"},children:[z.jsx(nf,{children:z.jsx(an,{href:"./stats/requests/csv",children:"Download requests CSV"})}),t&&z.jsx(nf,{children:z.jsx(an,{href:"./stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),z.jsx(nf,{children:z.jsx(an,{href:"./stats/failures/csv",children:"Download failures CSV"})}),z.jsx(nf,{children:z.jsx(an,{href:"./exceptions/csv",children:"Download exceptions CSV"})}),z.jsx(nf,{children:z.jsx(an,{href:`./stats/report?theme=${r?po.DARK:po.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>z.jsx(nf,{children:z.jsx(an,{href:n,children:i})},`extended-csv-${a}`))]})}const HRe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),WRe=ki(HRe)(GRe);var Mp={},eV;function jRe(){if(eV)return Mp;eV=1;var e=Sc();Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.default=void 0;var t=e(bc()),r=Tl(),n=(0,t.default)((0,r.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");return Mp.default=n,Mp}var URe=jRe();const YRe=ia(URe);function qRe({structure:e,selectedColumns:t,addColumn:r,removeColumn:n}){const[i,a]=$.useState(null);return z.jsxs(R$,{direction:"row",justifyContent:"end",my:2,spacing:1,children:[z.jsx(bo,{onClick:o=>a(o.currentTarget),variant:"outlined",children:z.jsx(YRe,{})}),z.jsx(V$,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>a(null),open:!!i,children:z.jsx(L$,{sx:{p:2},children:e.map(({key:o,title:s})=>z.jsx(E$,{control:z.jsx(Fae,{checked:t.includes(o),onChange:()=>{t.includes(o)?n(o):r(o)}}),label:s},o))})})]})}function XRe(e){const[t,r]=$.useState(e.map(o=>o.key));return{selectedColumns:t,addColumn:o=>{r([...t,o])},removeColumn:o=>{r(t.filter(s=>s!==o))},filteredStructure:(o=>o.filter(s=>t.includes(s.key)))(e)}}const ZRe=vo.percentilesToStatistics?vo.percentilesToStatistics.map(e=>({title:`${e*100}%ile (ms)`,key:`responseTimePercentile${e}`})):[],KRe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...ZRe,{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 QRe({stats:e,tableStructure:t=KRe}){const{selectedColumns:r,addColumn:n,removeColumn:i,filteredStructure:a}=XRe(t);return z.jsxs(z.Fragment,{children:[z.jsx(qRe,{addColumn:n,removeColumn:i,selectedColumns:r,structure:t}),z.jsx(Tg,{hasTotalRow:!0,rows:e,structure:a})]})}const JRe=({ui:{stats:e}})=>({stats:e}),eEe=ki(JRe)(QRe),tEe=vo.percentilesToChart?vo.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],rEe=["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"],nEe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:tEe,colors:rEe},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function iEe({charts:e}){return z.jsx("div",{children:nEe.map((t,r)=>z.jsx(PRe,{...t,charts:e},`swarm-chart-${r}`))})}const aEe=({ui:{charts:e}})=>({charts:e}),oEe=ki(aEe)(iEe);function sEe(e){return(e*100).toFixed(1)+"%"}function rM({classRatio:e}){return z.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>z.jsxs("li",{children:[`${sEe(r)} ${t}`,n&&z.jsx(rM,{classRatio:n})]},`nested-ratio-${t}`))})}function lEe({ratios:{perClass:e,total:t}}){return!e&&!t?null:z.jsxs("div",{children:[e&&z.jsxs(z.Fragment,{children:[z.jsx("h3",{children:"Ratio Per Class"}),z.jsx(rM,{classRatio:e})]}),t&&z.jsxs(z.Fragment,{children:[z.jsx("h3",{children:"Total Ratio"}),z.jsx(rM,{classRatio:t})]})]})}const uEe=({ui:{ratios:e}})=>({ratios:e}),cEe=ki(uEe)(lEe);function fEe(){return DRe(),z.jsx(cEe,{})}const dEe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:GX}];function hEe({workers:e=[]}){return z.jsx(Tg,{defaultSortKey:"id",rows:e,structure:dEe})}const pEe=({ui:{workers:e}})=>({workers:e}),vEe=ki(pEe)(hEe),qs={stats:{component:eEe,key:"stats",title:"Statistics"},charts:{component:oEe,key:"charts",title:"Charts"},failures:{component:BRe,key:"failures",title:"Failures"},exceptions:{component:LRe,key:"exceptions",title:"Exceptions"},ratios:{component:fEe,key:"ratios",title:"Current Ratio"},reports:{component:WRe,key:"reports",title:"Download Data"},logs:{component:$Re,key:q6,title:"Logs"},workers:{component:vEe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}},gEe=[qs.stats,qs.charts,qs.failures,qs.exceptions,qs.ratios,qs.reports,qs.logs,qs.workers];function mEe({hasNotification:e,title:t}){return z.jsxs(ir,{sx:{display:"flex",alignItems:"center"},children:[e&&z.jsx(J6,{color:"secondary"}),z.jsx("span",{children:t})]})}function yEe({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[a,o]=$.useState(e),s=(l,u)=>{const c=i[u].key;t[c]&&r({[c]:!1}),She({tab:c}),n({query:{tab:c}}),o(u)};return $.useEffect(()=>{o(e)},[e]),z.jsxs(bg,{maxWidth:"xl",children:[z.jsx(ir,{sx:{mb:2},children:z.jsx(Woe,{onChange:s,value:a,children:i.map(({key:l,title:u},c)=>z.jsx(Wae,{label:z.jsx(mEe,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=fhe},u)=>a===u&&z.jsx(l,{},`tabpabel-${u}`))]})}const xEe=(e,{tabs:t,extendedTabs:r})=>{const{notification:n,swarm:{extendedTabs:i},url:{query:a}}=e,s=(t||[...gEe,...r||i||[]]).filter(({shouldDisplayTab:u})=>!u||u&&u(e)),l=a&&a.tab?s.findIndex(({key:u})=>u===a.tab):0;return{notification:n,tabs:s,currentTabIndexFromQuery:l>-1?l:0}},SEe={setNotification:Z6.setNotification,setUrl:whe.setUrl},bEe=ki(xEe,SEe)(yEe);function _Ee({swarmState:e,tabs:t,extendedTabs:r}){RRe(),nhe();const n=N6();return z.jsxs(c$,{theme:n,children:[z.jsx(P$,{}),z.jsx(Xde,{children:e===bn.READY?z.jsx(vk,{}):z.jsx(bEe,{extendedTabs:r,tabs:t})})]})}const wEe=({swarm:{state:e}})=>({swarmState:e}),CEe=ki(wEe)(_Ee);function TEe(){if(ME){const e=yV({reducer:hx({theme:L6})});return z.jsx(TE,{store:e,children:z.jsx(yfe,{...ME})})}else return z.jsx(TE,{store:Ahe,children:z.jsx(CEe,{})})}function AEe({error:e}){return z.jsxs("div",{role:"alert",children:[z.jsx("p",{children:"Something went wrong"}),e.message&&z.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",z.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})}const MEe=zY.createRoot(document.getElementById("root"));MEe.render(z.jsx(FY,{fallbackRender:AEe,children:z.jsx(TEe,{})}));
|