locust 2.37.14.dev5__py3-none-any.whl → 2.37.14.dev8__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.
@@ -0,0 +1,266 @@
1
+ var gB=Object.defineProperty;var mB=(e,t,r)=>t in e?gB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ws=(e,t,r)=>mB(e,typeof t!="symbol"?t+"":t,r);function yB(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 o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{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 o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();function Lb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W0={exports:{}},vf={},H0={exports:{}},xt={};/**
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 C2;function xB(){if(C2)return xt;C2=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"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;function h(W){return W===null||typeof W!="object"?null:(W=p&&W[p]||W["@@iterator"],typeof W=="function"?W:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,x={};function y(W,q,te){this.props=W,this.context=q,this.refs=x,this.updater=te||v}y.prototype.isReactComponent={},y.prototype.setState=function(W,q){if(typeof W!="object"&&typeof W!="function"&&W!=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,W,q,"setState")},y.prototype.forceUpdate=function(W){this.updater.enqueueForceUpdate(this,W,"forceUpdate")};function S(){}S.prototype=y.prototype;function w(W,q,te){this.props=W,this.context=q,this.refs=x,this.updater=te||v}var b=w.prototype=new S;b.constructor=w,g(b,y.prototype),b.isPureReactComponent=!0;var C=Array.isArray,T=Object.prototype.hasOwnProperty,M={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function I(W,q,te){var le,ne={},Q=null,ce=null;if(q!=null)for(le in q.ref!==void 0&&(ce=q.ref),q.key!==void 0&&(Q=""+q.key),q)T.call(q,le)&&!E.hasOwnProperty(le)&&(ne[le]=q[le]);var me=arguments.length-2;if(me===1)ne.children=te;else if(1<me){for(var de=Array(me),fe=0;fe<me;fe++)de[fe]=arguments[fe+2];ne.children=de}if(W&&W.defaultProps)for(le in me=W.defaultProps,me)ne[le]===void 0&&(ne[le]=me[le]);return{$$typeof:e,type:W,key:Q,ref:ce,props:ne,_owner:M.current}}function D(W,q){return{$$typeof:e,type:W.type,key:q,ref:W.ref,props:W.props,_owner:W._owner}}function k(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function O(W){var q={"=":"=0",":":"=2"};return"$"+W.replace(/[=:]/g,function(te){return q[te]})}var N=/\/+/g;function $(W,q){return typeof W=="object"&&W!==null&&W.key!=null?O(""+W.key):q.toString(36)}function z(W,q,te,le,ne){var Q=typeof W;(Q==="undefined"||Q==="boolean")&&(W=null);var ce=!1;if(W===null)ce=!0;else switch(Q){case"string":case"number":ce=!0;break;case"object":switch(W.$$typeof){case e:case t:ce=!0}}if(ce)return ce=W,ne=ne(ce),W=le===""?"."+$(ce,0):le,C(ne)?(te="",W!=null&&(te=W.replace(N,"$&/")+"/"),z(ne,q,te,"",function(fe){return fe})):ne!=null&&(k(ne)&&(ne=D(ne,te+(!ne.key||ce&&ce.key===ne.key?"":(""+ne.key).replace(N,"$&/")+"/")+W)),q.push(ne)),1;if(ce=0,le=le===""?".":le+":",C(W))for(var me=0;me<W.length;me++){Q=W[me];var de=le+$(Q,me);ce+=z(Q,q,te,de,ne)}else if(de=h(W),typeof de=="function")for(W=de.call(W),me=0;!(Q=W.next()).done;)Q=Q.value,de=le+$(Q,me++),ce+=z(Q,q,te,de,ne);else if(Q==="object")throw q=String(W),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return ce}function F(W,q,te){if(W==null)return W;var le=[],ne=0;return z(W,le,"","",function(Q){return q.call(te,Q,ne++)}),le}function j(W){if(W._status===-1){var q=W._result;q=q(),q.then(function(te){(W._status===0||W._status===-1)&&(W._status=1,W._result=te)},function(te){(W._status===0||W._status===-1)&&(W._status=2,W._result=te)}),W._status===-1&&(W._status=0,W._result=q)}if(W._status===1)return W._result.default;throw W._result}var K={current:null},V={transition:null},H={ReactCurrentDispatcher:K,ReactCurrentBatchConfig:V,ReactCurrentOwner:M};function Y(){throw Error("act(...) is not supported in production builds of React.")}return xt.Children={map:F,forEach:function(W,q,te){F(W,function(){q.apply(this,arguments)},te)},count:function(W){var q=0;return F(W,function(){q++}),q},toArray:function(W){return F(W,function(q){return q})||[]},only:function(W){if(!k(W))throw Error("React.Children.only expected to receive a single React element child.");return W}},xt.Component=y,xt.Fragment=r,xt.Profiler=i,xt.PureComponent=w,xt.StrictMode=n,xt.Suspense=l,xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,xt.act=Y,xt.cloneElement=function(W,q,te){if(W==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+W+".");var le=g({},W.props),ne=W.key,Q=W.ref,ce=W._owner;if(q!=null){if(q.ref!==void 0&&(Q=q.ref,ce=M.current),q.key!==void 0&&(ne=""+q.key),W.type&&W.type.defaultProps)var me=W.type.defaultProps;for(de in q)T.call(q,de)&&!E.hasOwnProperty(de)&&(le[de]=q[de]===void 0&&me!==void 0?me[de]:q[de])}var de=arguments.length-2;if(de===1)le.children=te;else if(1<de){me=Array(de);for(var fe=0;fe<de;fe++)me[fe]=arguments[fe+2];le.children=me}return{$$typeof:e,type:W.type,key:ne,ref:Q,props:le,_owner:ce}},xt.createContext=function(W){return W={$$typeof:a,_currentValue:W,_currentValue2:W,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},W.Provider={$$typeof:o,_context:W},W.Consumer=W},xt.createElement=I,xt.createFactory=function(W){var q=I.bind(null,W);return q.type=W,q},xt.createRef=function(){return{current:null}},xt.forwardRef=function(W){return{$$typeof:s,render:W}},xt.isValidElement=k,xt.lazy=function(W){return{$$typeof:d,_payload:{_status:-1,_result:W},_init:j}},xt.memo=function(W,q){return{$$typeof:c,type:W,compare:q===void 0?null:q}},xt.startTransition=function(W){var q=V.transition;V.transition={};try{W()}finally{V.transition=q}},xt.unstable_act=Y,xt.useCallback=function(W,q){return K.current.useCallback(W,q)},xt.useContext=function(W){return K.current.useContext(W)},xt.useDebugValue=function(){},xt.useDeferredValue=function(W){return K.current.useDeferredValue(W)},xt.useEffect=function(W,q){return K.current.useEffect(W,q)},xt.useId=function(){return K.current.useId()},xt.useImperativeHandle=function(W,q,te){return K.current.useImperativeHandle(W,q,te)},xt.useInsertionEffect=function(W,q){return K.current.useInsertionEffect(W,q)},xt.useLayoutEffect=function(W,q){return K.current.useLayoutEffect(W,q)},xt.useMemo=function(W,q){return K.current.useMemo(W,q)},xt.useReducer=function(W,q,te){return K.current.useReducer(W,q,te)},xt.useRef=function(W){return K.current.useRef(W)},xt.useState=function(W){return K.current.useState(W)},xt.useSyncExternalStore=function(W,q,te){return K.current.useSyncExternalStore(W,q,te)},xt.useTransition=function(){return K.current.useTransition()},xt.version="18.3.1",xt}var T2;function Qg(){return T2||(T2=1,H0.exports=xB()),H0.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 M2;function SB(){if(M2)return vf;M2=1;var e=Qg(),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,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var d,p={},h=null,v=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(v=l.ref);for(d in l)n.call(l,d)&&!o.hasOwnProperty(d)&&(p[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)p[d]===void 0&&(p[d]=l[d]);return{$$typeof:t,type:s,key:h,ref:v,props:p,_owner:i.current}}return vf.Fragment=r,vf.jsx=a,vf.jsxs=a,vf}var k2;function bB(){return k2||(k2=1,W0.exports=SB()),W0.exports}var P=bB(),$h={},V0={exports:{}},Dn={},U0={exports:{}},G0={};/**
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 R2;function wB(){return R2||(R2=1,function(e){function t(V,H){var Y=V.length;V.push(H);e:for(;0<Y;){var W=Y-1>>>1,q=V[W];if(0<i(q,H))V[W]=H,V[Y]=q,Y=W;else break e}}function r(V){return V.length===0?null:V[0]}function n(V){if(V.length===0)return null;var H=V[0],Y=V.pop();if(Y!==H){V[0]=Y;e:for(var W=0,q=V.length,te=q>>>1;W<te;){var le=2*(W+1)-1,ne=V[le],Q=le+1,ce=V[Q];if(0>i(ne,Y))Q<q&&0>i(ce,ne)?(V[W]=ce,V[Q]=Y,W=Q):(V[W]=ne,V[le]=Y,W=le);else if(Q<q&&0>i(ce,Y))V[W]=ce,V[Q]=Y,W=Q;else break e}}return H}function i(V,H){var Y=V.sortIndex-H.sortIndex;return Y!==0?Y:V.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,p=null,h=3,v=!1,g=!1,x=!1,y=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,w=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(V){for(var H=r(c);H!==null;){if(H.callback===null)n(c);else if(H.startTime<=V)n(c),H.sortIndex=H.expirationTime,t(l,H);else break;H=r(c)}}function C(V){if(x=!1,b(V),!g)if(r(l)!==null)g=!0,j(T);else{var H=r(c);H!==null&&K(C,H.startTime-V)}}function T(V,H){g=!1,x&&(x=!1,S(I),I=-1),v=!0;var Y=h;try{for(b(H),p=r(l);p!==null&&(!(p.expirationTime>H)||V&&!O());){var W=p.callback;if(typeof W=="function"){p.callback=null,h=p.priorityLevel;var q=W(p.expirationTime<=H);H=e.unstable_now(),typeof q=="function"?p.callback=q:p===r(l)&&n(l),b(H)}else n(l);p=r(l)}if(p!==null)var te=!0;else{var le=r(c);le!==null&&K(C,le.startTime-H),te=!1}return te}finally{p=null,h=Y,v=!1}}var M=!1,E=null,I=-1,D=5,k=-1;function O(){return!(e.unstable_now()-k<D)}function N(){if(E!==null){var V=e.unstable_now();k=V;var H=!0;try{H=E(!0,V)}finally{H?$():(M=!1,E=null)}}else M=!1}var $;if(typeof w=="function")$=function(){w(N)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,F=z.port2;z.port1.onmessage=N,$=function(){F.postMessage(null)}}else $=function(){y(N,0)};function j(V){E=V,M||(M=!0,$())}function K(V,H){I=y(function(){V(e.unstable_now())},H)}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(V){V.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,j(T))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(V){switch(h){case 1:case 2:case 3:var H=3;break;default:H=h}var Y=h;h=H;try{return V()}finally{h=Y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,H){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Y=h;h=V;try{return H()}finally{h=Y}},e.unstable_scheduleCallback=function(V,H,Y){var W=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?W+Y:W):Y=W,V){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=Y+q,V={id:d++,callback:H,priorityLevel:V,startTime:Y,expirationTime:q,sortIndex:-1},Y>W?(V.sortIndex=Y,t(c,V),r(l)===null&&V===r(c)&&(x?(S(I),I=-1):x=!0,K(C,Y-W))):(V.sortIndex=q,t(l,V),g||v||(g=!0,j(T))),V},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(V){var H=h;return function(){var Y=h;h=H;try{return V.apply(this,arguments)}finally{h=Y}}}}(G0)),G0}var P2;function _B(){return P2||(P2=1,U0.exports=wB()),U0.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 E2;function CB(){if(E2)return Dn;E2=1;var e=Qg(),t=_B();function r(u){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+u,m=1;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m]);return"Minified React error #"+u+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function o(u,f){a(u,f),a(u+"Capture",f)}function a(u,f){for(i[u]=f,u=0;u<f.length;u++)n.add(f[u])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,c=/^[: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]*$/,d={},p={};function h(u){return l.call(p,u)?!0:l.call(d,u)?!1:c.test(u)?p[u]=!0:(d[u]=!0,!1)}function v(u,f,m,_){if(m!==null&&m.type===0)return!1;switch(typeof f){case"function":case"symbol":return!0;case"boolean":return _?!1:m!==null?!m.acceptsBooleans:(u=u.toLowerCase().slice(0,5),u!=="data-"&&u!=="aria-");default:return!1}}function g(u,f,m,_){if(f===null||typeof f>"u"||v(u,f,m,_))return!0;if(_)return!1;if(m!==null)switch(m.type){case 3:return!f;case 4:return f===!1;case 5:return isNaN(f);case 6:return isNaN(f)||1>f}return!1}function x(u,f,m,_,R,A,B){this.acceptsBooleans=f===2||f===3||f===4,this.attributeName=_,this.attributeNamespace=R,this.mustUseProperty=m,this.propertyName=u,this.type=f,this.sanitizeURL=A,this.removeEmptyString=B}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(u){y[u]=new x(u,0,!1,u,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(u){var f=u[0];y[f]=new x(f,1,!1,u[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(u){y[u]=new x(u,2,!1,u.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(u){y[u]=new x(u,2,!1,u,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(u){y[u]=new x(u,3,!1,u.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(u){y[u]=new x(u,3,!0,u,null,!1,!1)}),["capture","download"].forEach(function(u){y[u]=new x(u,4,!1,u,null,!1,!1)}),["cols","rows","size","span"].forEach(function(u){y[u]=new x(u,6,!1,u,null,!1,!1)}),["rowSpan","start"].forEach(function(u){y[u]=new x(u,5,!1,u.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function w(u){return u[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(u){var f=u.replace(S,w);y[f]=new x(f,1,!1,u,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(u){var f=u.replace(S,w);y[f]=new x(f,1,!1,u,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(u){var f=u.replace(S,w);y[f]=new x(f,1,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(u){y[u]=new x(u,1,!1,u.toLowerCase(),null,!1,!1)}),y.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(u){y[u]=new x(u,1,!1,u.toLowerCase(),null,!0,!0)});function b(u,f,m,_){var R=y.hasOwnProperty(f)?y[f]:null;(R!==null?R.type!==0:_||!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(g(f,m,R,_)&&(m=null),_||R===null?h(f)&&(m===null?u.removeAttribute(f):u.setAttribute(f,""+m)):R.mustUseProperty?u[R.propertyName]=m===null?R.type===3?!1:"":m:(f=R.attributeName,_=R.attributeNamespace,m===null?u.removeAttribute(f):(R=R.type,m=R===3||R===4&&m===!0?"":""+m,_?u.setAttributeNS(_,f,m):u.setAttribute(f,m))))}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),M=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),V=Symbol.iterator;function H(u){return u===null||typeof u!="object"?null:(u=V&&u[V]||u["@@iterator"],typeof u=="function"?u:null)}var Y=Object.assign,W;function q(u){if(W===void 0)try{throw Error()}catch(m){var f=m.stack.trim().match(/\n( *(at )?)/);W=f&&f[1]||""}return`
34
+ `+W+u}var te=!1;function le(u,f){if(!u||te)return"";te=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(f)if(f=function(){throw Error()},Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(re){var _=re}Reflect.construct(u,[],f)}else{try{f.call()}catch(re){_=re}u.call(f.prototype)}else{try{throw Error()}catch(re){_=re}u()}}catch(re){if(re&&_&&typeof re.stack=="string"){for(var R=re.stack.split(`
35
+ `),A=_.stack.split(`
36
+ `),B=R.length-1,G=A.length-1;1<=B&&0<=G&&R[B]!==A[G];)G--;for(;1<=B&&0<=G;B--,G--)if(R[B]!==A[G]){if(B!==1||G!==1)do if(B--,G--,0>G||R[B]!==A[G]){var X=`
37
+ `+R[B].replace(" at new "," at ");return u.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",u.displayName)),X}while(1<=B&&0<=G);break}}}finally{te=!1,Error.prepareStackTrace=m}return(u=u?u.displayName||u.name:"")?q(u):""}function ne(u){switch(u.tag){case 5:return q(u.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return u=le(u.type,!1),u;case 11:return u=le(u.type.render,!1),u;case 1:return u=le(u.type,!0),u;default:return""}}function Q(u){if(u==null)return null;if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case E:return"Fragment";case M:return"Portal";case D:return"Profiler";case I:return"StrictMode";case $:return"Suspense";case z:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case O:return(u.displayName||"Context")+".Consumer";case k:return(u._context.displayName||"Context")+".Provider";case N:var f=u.render;return u=u.displayName,u||(u=f.displayName||f.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case F:return f=u.displayName||null,f!==null?f:Q(u.type)||"Memo";case j:f=u._payload,u=u._init;try{return Q(u(f))}catch{}}return null}function ce(u){var f=u.type;switch(u.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return u=f.render,u=u.displayName||u.name||"",f.displayName||(u!==""?"ForwardRef("+u+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Q(f);case 8:return f===I?"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 f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f}return null}function me(u){switch(typeof u){case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function de(u){var f=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function fe(u){var f=de(u)?"checked":"value",m=Object.getOwnPropertyDescriptor(u.constructor.prototype,f),_=""+u[f];if(!u.hasOwnProperty(f)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var R=m.get,A=m.set;return Object.defineProperty(u,f,{configurable:!0,get:function(){return R.call(this)},set:function(B){_=""+B,A.call(this,B)}}),Object.defineProperty(u,f,{enumerable:m.enumerable}),{getValue:function(){return _},setValue:function(B){_=""+B},stopTracking:function(){u._valueTracker=null,delete u[f]}}}}function ge(u){u._valueTracker||(u._valueTracker=fe(u))}function pe(u){if(!u)return!1;var f=u._valueTracker;if(!f)return!0;var m=f.getValue(),_="";return u&&(_=de(u)?u.checked?"true":"false":u.value),u=_,u!==m?(f.setValue(u),!0):!1}function Ne(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}function ke(u,f){var m=f.checked;return Y({},f,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:m??u._wrapperState.initialChecked})}function it(u,f){var m=f.defaultValue==null?"":f.defaultValue,_=f.checked!=null?f.checked:f.defaultChecked;m=me(f.value!=null?f.value:m),u._wrapperState={initialChecked:_,initialValue:m,controlled:f.type==="checkbox"||f.type==="radio"?f.checked!=null:f.value!=null}}function rt(u,f){f=f.checked,f!=null&&b(u,"checked",f,!1)}function dt(u,f){rt(u,f);var m=me(f.value),_=f.type;if(m!=null)_==="number"?(m===0&&u.value===""||u.value!=m)&&(u.value=""+m):u.value!==""+m&&(u.value=""+m);else if(_==="submit"||_==="reset"){u.removeAttribute("value");return}f.hasOwnProperty("value")?at(u,f.type,m):f.hasOwnProperty("defaultValue")&&at(u,f.type,me(f.defaultValue)),f.checked==null&&f.defaultChecked!=null&&(u.defaultChecked=!!f.defaultChecked)}function we(u,f,m){if(f.hasOwnProperty("value")||f.hasOwnProperty("defaultValue")){var _=f.type;if(!(_!=="submit"&&_!=="reset"||f.value!==void 0&&f.value!==null))return;f=""+u._wrapperState.initialValue,m||f===u.value||(u.value=f),u.defaultValue=f}m=u.name,m!==""&&(u.name=""),u.defaultChecked=!!u._wrapperState.initialChecked,m!==""&&(u.name=m)}function at(u,f,m){(f!=="number"||Ne(u.ownerDocument)!==u)&&(m==null?u.defaultValue=""+u._wrapperState.initialValue:u.defaultValue!==""+m&&(u.defaultValue=""+m))}var Ee=Array.isArray;function Ye(u,f,m,_){if(u=u.options,f){f={};for(var R=0;R<m.length;R++)f["$"+m[R]]=!0;for(m=0;m<u.length;m++)R=f.hasOwnProperty("$"+u[m].value),u[m].selected!==R&&(u[m].selected=R),R&&_&&(u[m].defaultSelected=!0)}else{for(m=""+me(m),f=null,R=0;R<u.length;R++){if(u[R].value===m){u[R].selected=!0,_&&(u[R].defaultSelected=!0);return}f!==null||u[R].disabled||(f=u[R])}f!==null&&(f.selected=!0)}}function Ce(u,f){if(f.dangerouslySetInnerHTML!=null)throw Error(r(91));return Y({},f,{value:void 0,defaultValue:void 0,children:""+u._wrapperState.initialValue})}function Xt(u,f){var m=f.value;if(m==null){if(m=f.children,f=f.defaultValue,m!=null){if(f!=null)throw Error(r(92));if(Ee(m)){if(1<m.length)throw Error(r(93));m=m[0]}f=m}f==null&&(f=""),m=f}u._wrapperState={initialValue:me(m)}}function mt(u,f){var m=me(f.value),_=me(f.defaultValue);m!=null&&(m=""+m,m!==u.value&&(u.value=m),f.defaultValue==null&&u.defaultValue!==m&&(u.defaultValue=m)),_!=null&&(u.defaultValue=""+_)}function Wt(u){var f=u.textContent;f===u._wrapperState.initialValue&&f!==""&&f!==null&&(u.value=f)}function Jt(u){switch(u){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 ar(u,f){return u==null||u==="http://www.w3.org/1999/xhtml"?Jt(f):u==="http://www.w3.org/2000/svg"&&f==="foreignObject"?"http://www.w3.org/1999/xhtml":u}var Lt,tr=function(u){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(f,m,_,R){MSApp.execUnsafeLocalFunction(function(){return u(f,m,_,R)})}:u}(function(u,f){if(u.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in u)u.innerHTML=f;else{for(Lt=Lt||document.createElement("div"),Lt.innerHTML="<svg>"+f.valueOf().toString()+"</svg>",f=Lt.firstChild;u.firstChild;)u.removeChild(u.firstChild);for(;f.firstChild;)u.appendChild(f.firstChild)}});function Je(u,f){if(f){var m=u.firstChild;if(m&&m===u.lastChild&&m.nodeType===3){m.nodeValue=f;return}}u.textContent=f}var xe={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},wt=["Webkit","ms","Moz","O"];Object.keys(xe).forEach(function(u){wt.forEach(function(f){f=f+u.charAt(0).toUpperCase()+u.substring(1),xe[f]=xe[u]})});function Rt(u,f,m){return f==null||typeof f=="boolean"||f===""?"":m||typeof f!="number"||f===0||xe.hasOwnProperty(u)&&xe[u]?(""+f).trim():f+"px"}function ut(u,f){u=u.style;for(var m in f)if(f.hasOwnProperty(m)){var _=m.indexOf("--")===0,R=Rt(m,f[m],_);m==="float"&&(m="cssFloat"),_?u.setProperty(m,R):u[m]=R}}var Be=Y({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 st(u,f){if(f){if(Be[u]&&(f.children!=null||f.dangerouslySetInnerHTML!=null))throw Error(r(137,u));if(f.dangerouslySetInnerHTML!=null){if(f.children!=null)throw Error(r(60));if(typeof f.dangerouslySetInnerHTML!="object"||!("__html"in f.dangerouslySetInnerHTML))throw Error(r(61))}if(f.style!=null&&typeof f.style!="object")throw Error(r(62))}}function _t(u,f){if(u.indexOf("-")===-1)return typeof f.is=="string";switch(u){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 gr=null;function Nr(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var Hi=null,rr=null,Rr=null;function en(u){if(u=Jc(u)){if(typeof Hi!="function")throw Error(r(280));var f=u.stateNode;f&&(f=Jp(f),Hi(u.stateNode,u.type,f))}}function qn(u){rr?Rr?Rr.push(u):Rr=[u]:rr=u}function Ur(){if(rr){var u=rr,f=Rr;if(Rr=rr=null,en(u),f)for(u=0;u<f.length;u++)en(f[u])}}function Vi(u,f){return u(f)}function et(){}var nr=!1;function Me(u,f,m){if(nr)return u(f,m);nr=!0;try{return Vi(u,f,m)}finally{nr=!1,(rr!==null||Rr!==null)&&(et(),Ur())}}function Ae(u,f){var m=u.stateNode;if(m===null)return null;var _=Jp(m);if(_===null)return null;m=_[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(_=!_.disabled)||(u=u.type,_=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!_;break e;default:u=!1}if(u)return null;if(m&&typeof m!="function")throw Error(r(231,f,typeof m));return m}var ct=!1;if(s)try{var pt={};Object.defineProperty(pt,"passive",{get:function(){ct=!0}}),window.addEventListener("test",pt,pt),window.removeEventListener("test",pt,pt)}catch{ct=!1}function zt(u,f,m,_,R,A,B,G,X){var re=Array.prototype.slice.call(arguments,3);try{f.apply(m,re)}catch(ve){this.onError(ve)}}var Pr=!1,tn=null,mn=!1,Go=null,pi={onError:function(u){Pr=!0,tn=u}};function Er(u,f,m,_,R,A,B,G,X){Pr=!1,tn=null,zt.apply(pi,arguments)}function Ar(u,f,m,_,R,A,B,G,X){if(Er.apply(this,arguments),Pr){if(Pr){var re=tn;Pr=!1,tn=null}else throw Error(r(198));mn||(mn=!0,Go=re)}}function rn(u){var f=u,m=u;if(u.alternate)for(;f.return;)f=f.return;else{u=f;do f=u,(f.flags&4098)!==0&&(m=f.return),u=f.return;while(u)}return f.tag===3?m:null}function Ca(u){if(u.tag===13){var f=u.memoizedState;if(f===null&&(u=u.alternate,u!==null&&(f=u.memoizedState)),f!==null)return f.dehydrated}return null}function Rs(u){if(rn(u)!==u)throw Error(r(188))}function ae(u){var f=u.alternate;if(!f){if(f=rn(u),f===null)throw Error(r(188));return f!==u?null:u}for(var m=u,_=f;;){var R=m.return;if(R===null)break;var A=R.alternate;if(A===null){if(_=R.return,_!==null){m=_;continue}break}if(R.child===A.child){for(A=R.child;A;){if(A===m)return Rs(R),u;if(A===_)return Rs(R),f;A=A.sibling}throw Error(r(188))}if(m.return!==_.return)m=R,_=A;else{for(var B=!1,G=R.child;G;){if(G===m){B=!0,m=R,_=A;break}if(G===_){B=!0,_=R,m=A;break}G=G.sibling}if(!B){for(G=A.child;G;){if(G===m){B=!0,m=A,_=R;break}if(G===_){B=!0,_=A,m=R;break}G=G.sibling}if(!B)throw Error(r(189))}}if(m.alternate!==_)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?u:f}function ie(u){return u=ae(u),u!==null?Re(u):null}function Re(u){if(u.tag===5||u.tag===6)return u;for(u=u.child;u!==null;){var f=Re(u);if(f!==null)return f;u=u.sibling}return null}var vt=t.unstable_scheduleCallback,qe=t.unstable_cancelCallback,sr=t.unstable_shouldYield,mr=t.unstable_requestPaint,Pt=t.unstable_now,Ic=t.unstable_getCurrentPriorityLevel,Dc=t.unstable_ImmediatePriority,Lc=t.unstable_UserBlockingPriority,Yo=t.unstable_NormalPriority,Kl=t.unstable_LowPriority,Mt=t.unstable_IdlePriority,Xn=null,Br=null;function Ps(u){if(Br&&typeof Br.onCommitFiberRoot=="function")try{Br.onCommitFiberRoot(Xn,u,void 0,(u.current.flags&128)===128)}catch{}}var Ui=Math.clz32?Math.clz32:LN,IN=Math.log,DN=Math.LN2;function LN(u){return u>>>=0,u===0?32:31-(IN(u)/DN|0)|0}var Op=64,Np=4194304;function Oc(u){switch(u&-u){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 u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function Bp(u,f){var m=u.pendingLanes;if(m===0)return 0;var _=0,R=u.suspendedLanes,A=u.pingedLanes,B=m&268435455;if(B!==0){var G=B&~R;G!==0?_=Oc(G):(A&=B,A!==0&&(_=Oc(A)))}else B=m&~R,B!==0?_=Oc(B):A!==0&&(_=Oc(A));if(_===0)return 0;if(f!==0&&f!==_&&(f&R)===0&&(R=_&-_,A=f&-f,R>=A||R===16&&(A&4194240)!==0))return f;if((_&4)!==0&&(_|=m&16),f=u.entangledLanes,f!==0)for(u=u.entanglements,f&=_;0<f;)m=31-Ui(f),R=1<<m,_|=u[m],f&=~R;return _}function ON(u,f){switch(u){case 1:case 2:case 4:return f+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 f+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 NN(u,f){for(var m=u.suspendedLanes,_=u.pingedLanes,R=u.expirationTimes,A=u.pendingLanes;0<A;){var B=31-Ui(A),G=1<<B,X=R[B];X===-1?((G&m)===0||(G&_)!==0)&&(R[B]=ON(G,f)):X<=f&&(u.expiredLanes|=G),A&=~G}}function uy(u){return u=u.pendingLanes&-1073741825,u!==0?u:u&1073741824?1073741824:0}function tC(){var u=Op;return Op<<=1,(Op&4194240)===0&&(Op=64),u}function cy(u){for(var f=[],m=0;31>m;m++)f.push(u);return f}function Nc(u,f,m){u.pendingLanes|=f,f!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,f=31-Ui(f),u[f]=m}function BN(u,f){var m=u.pendingLanes&~f;u.pendingLanes=f,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=f,u.mutableReadLanes&=f,u.entangledLanes&=f,f=u.entanglements;var _=u.eventTimes;for(u=u.expirationTimes;0<m;){var R=31-Ui(m),A=1<<R;f[R]=0,_[R]=-1,u[R]=-1,m&=~A}}function fy(u,f){var m=u.entangledLanes|=f;for(u=u.entanglements;m;){var _=31-Ui(m),R=1<<_;R&f|u[_]&f&&(u[_]|=f),m&=~R}}var Ht=0;function rC(u){return u&=-u,1<u?4<u?(u&268435455)!==0?16:536870912:4:1}var nC,dy,iC,oC,aC,py=!1,$p=[],Ta=null,Ma=null,ka=null,Bc=new Map,$c=new Map,Ra=[],$N="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 sC(u,f){switch(u){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":Ma=null;break;case"mouseover":case"mouseout":ka=null;break;case"pointerover":case"pointerout":Bc.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":$c.delete(f.pointerId)}}function zc(u,f,m,_,R,A){return u===null||u.nativeEvent!==A?(u={blockedOn:f,domEventName:m,eventSystemFlags:_,nativeEvent:A,targetContainers:[R]},f!==null&&(f=Jc(f),f!==null&&dy(f)),u):(u.eventSystemFlags|=_,f=u.targetContainers,R!==null&&f.indexOf(R)===-1&&f.push(R),u)}function zN(u,f,m,_,R){switch(f){case"focusin":return Ta=zc(Ta,u,f,m,_,R),!0;case"dragenter":return Ma=zc(Ma,u,f,m,_,R),!0;case"mouseover":return ka=zc(ka,u,f,m,_,R),!0;case"pointerover":var A=R.pointerId;return Bc.set(A,zc(Bc.get(A)||null,u,f,m,_,R)),!0;case"gotpointercapture":return A=R.pointerId,$c.set(A,zc($c.get(A)||null,u,f,m,_,R)),!0}return!1}function lC(u){var f=Es(u.target);if(f!==null){var m=rn(f);if(m!==null){if(f=m.tag,f===13){if(f=Ca(m),f!==null){u.blockedOn=f,aC(u.priority,function(){iC(m)});return}}else if(f===3&&m.stateNode.current.memoizedState.isDehydrated){u.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}u.blockedOn=null}function zp(u){if(u.blockedOn!==null)return!1;for(var f=u.targetContainers;0<f.length;){var m=vy(u.domEventName,u.eventSystemFlags,f[0],u.nativeEvent);if(m===null){m=u.nativeEvent;var _=new m.constructor(m.type,m);gr=_,m.target.dispatchEvent(_),gr=null}else return f=Jc(m),f!==null&&dy(f),u.blockedOn=m,!1;f.shift()}return!0}function uC(u,f,m){zp(u)&&m.delete(f)}function FN(){py=!1,Ta!==null&&zp(Ta)&&(Ta=null),Ma!==null&&zp(Ma)&&(Ma=null),ka!==null&&zp(ka)&&(ka=null),Bc.forEach(uC),$c.forEach(uC)}function Fc(u,f){u.blockedOn===f&&(u.blockedOn=null,py||(py=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,FN)))}function jc(u){function f(R){return Fc(R,u)}if(0<$p.length){Fc($p[0],u);for(var m=1;m<$p.length;m++){var _=$p[m];_.blockedOn===u&&(_.blockedOn=null)}}for(Ta!==null&&Fc(Ta,u),Ma!==null&&Fc(Ma,u),ka!==null&&Fc(ka,u),Bc.forEach(f),$c.forEach(f),m=0;m<Ra.length;m++)_=Ra[m],_.blockedOn===u&&(_.blockedOn=null);for(;0<Ra.length&&(m=Ra[0],m.blockedOn===null);)lC(m),m.blockedOn===null&&Ra.shift()}var Zl=C.ReactCurrentBatchConfig,Fp=!0;function jN(u,f,m,_){var R=Ht,A=Zl.transition;Zl.transition=null;try{Ht=1,hy(u,f,m,_)}finally{Ht=R,Zl.transition=A}}function WN(u,f,m,_){var R=Ht,A=Zl.transition;Zl.transition=null;try{Ht=4,hy(u,f,m,_)}finally{Ht=R,Zl.transition=A}}function hy(u,f,m,_){if(Fp){var R=vy(u,f,m,_);if(R===null)Iy(u,f,_,jp,m),sC(u,_);else if(zN(R,u,f,m,_))_.stopPropagation();else if(sC(u,_),f&4&&-1<$N.indexOf(u)){for(;R!==null;){var A=Jc(R);if(A!==null&&nC(A),A=vy(u,f,m,_),A===null&&Iy(u,f,_,jp,m),A===R)break;R=A}R!==null&&_.stopPropagation()}else Iy(u,f,_,null,m)}}var jp=null;function vy(u,f,m,_){if(jp=null,u=Nr(_),u=Es(u),u!==null)if(f=rn(u),f===null)u=null;else if(m=f.tag,m===13){if(u=Ca(f),u!==null)return u;u=null}else if(m===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;u=null}else f!==u&&(u=null);return jp=u,null}function cC(u){switch(u){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(Ic()){case Dc:return 1;case Lc:return 4;case Yo:case Kl:return 16;case Mt:return 536870912;default:return 16}default:return 16}}var Pa=null,gy=null,Wp=null;function fC(){if(Wp)return Wp;var u,f=gy,m=f.length,_,R="value"in Pa?Pa.value:Pa.textContent,A=R.length;for(u=0;u<m&&f[u]===R[u];u++);var B=m-u;for(_=1;_<=B&&f[m-_]===R[A-_];_++);return Wp=R.slice(u,1<_?1-_:void 0)}function Hp(u){var f=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&f===13&&(u=13)):u=f,u===10&&(u=13),32<=u||u===13?u:0}function Vp(){return!0}function dC(){return!1}function Kn(u){function f(m,_,R,A,B){this._reactName=m,this._targetInst=R,this.type=_,this.nativeEvent=A,this.target=B,this.currentTarget=null;for(var G in u)u.hasOwnProperty(G)&&(m=u[G],this[G]=m?m(A):A[G]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?Vp:dC,this.isPropagationStopped=dC,this}return Y(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Vp)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Vp)},persist:function(){},isPersistent:Vp}),f}var Ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},my=Kn(Ql),Wc=Y({},Ql,{view:0,detail:0}),HN=Kn(Wc),yy,xy,Hc,Up=Y({},Wc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:by,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==Hc&&(Hc&&u.type==="mousemove"?(yy=u.screenX-Hc.screenX,xy=u.screenY-Hc.screenY):xy=yy=0,Hc=u),yy)},movementY:function(u){return"movementY"in u?u.movementY:xy}}),pC=Kn(Up),VN=Y({},Up,{dataTransfer:0}),UN=Kn(VN),GN=Y({},Wc,{relatedTarget:0}),Sy=Kn(GN),YN=Y({},Ql,{animationName:0,elapsedTime:0,pseudoElement:0}),qN=Kn(YN),XN=Y({},Ql,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),KN=Kn(XN),ZN=Y({},Ql,{data:0}),hC=Kn(ZN),QN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JN={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"},e4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t4(u){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(u):(u=e4[u])?!!f[u]:!1}function by(){return t4}var r4=Y({},Wc,{key:function(u){if(u.key){var f=QN[u.key]||u.key;if(f!=="Unidentified")return f}return u.type==="keypress"?(u=Hp(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?JN[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:by,charCode:function(u){return u.type==="keypress"?Hp(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?Hp(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),n4=Kn(r4),i4=Y({},Up,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vC=Kn(i4),o4=Y({},Wc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:by}),a4=Kn(o4),s4=Y({},Ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),l4=Kn(s4),u4=Y({},Up,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),c4=Kn(u4),f4=[9,13,27,32],wy=s&&"CompositionEvent"in window,Vc=null;s&&"documentMode"in document&&(Vc=document.documentMode);var d4=s&&"TextEvent"in window&&!Vc,gC=s&&(!wy||Vc&&8<Vc&&11>=Vc),mC=" ",yC=!1;function xC(u,f){switch(u){case"keyup":return f4.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function SC(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Jl=!1;function p4(u,f){switch(u){case"compositionend":return SC(f);case"keypress":return f.which!==32?null:(yC=!0,mC);case"textInput":return u=f.data,u===mC&&yC?null:u;default:return null}}function h4(u,f){if(Jl)return u==="compositionend"||!wy&&xC(u,f)?(u=fC(),Wp=gy=Pa=null,Jl=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return gC&&f.locale!=="ko"?null:f.data;default:return null}}var v4={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 bC(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f==="input"?!!v4[u.type]:f==="textarea"}function wC(u,f,m,_){qn(_),f=Kp(f,"onChange"),0<f.length&&(m=new my("onChange","change",null,m,_),u.push({event:m,listeners:f}))}var Uc=null,Gc=null;function g4(u){FC(u,0)}function Gp(u){var f=iu(u);if(pe(f))return u}function m4(u,f){if(u==="change")return f}var _C=!1;if(s){var _y;if(s){var Cy="oninput"in document;if(!Cy){var CC=document.createElement("div");CC.setAttribute("oninput","return;"),Cy=typeof CC.oninput=="function"}_y=Cy}else _y=!1;_C=_y&&(!document.documentMode||9<document.documentMode)}function TC(){Uc&&(Uc.detachEvent("onpropertychange",MC),Gc=Uc=null)}function MC(u){if(u.propertyName==="value"&&Gp(Gc)){var f=[];wC(f,Gc,u,Nr(u)),Me(g4,f)}}function y4(u,f,m){u==="focusin"?(TC(),Uc=f,Gc=m,Uc.attachEvent("onpropertychange",MC)):u==="focusout"&&TC()}function x4(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return Gp(Gc)}function S4(u,f){if(u==="click")return Gp(f)}function b4(u,f){if(u==="input"||u==="change")return Gp(f)}function w4(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var Gi=typeof Object.is=="function"?Object.is:w4;function Yc(u,f){if(Gi(u,f))return!0;if(typeof u!="object"||u===null||typeof f!="object"||f===null)return!1;var m=Object.keys(u),_=Object.keys(f);if(m.length!==_.length)return!1;for(_=0;_<m.length;_++){var R=m[_];if(!l.call(f,R)||!Gi(u[R],f[R]))return!1}return!0}function kC(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function RC(u,f){var m=kC(u);u=0;for(var _;m;){if(m.nodeType===3){if(_=u+m.textContent.length,u<=f&&_>=f)return{node:m,offset:f-u};u=_}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=kC(m)}}function PC(u,f){return u&&f?u===f?!0:u&&u.nodeType===3?!1:f&&f.nodeType===3?PC(u,f.parentNode):"contains"in u?u.contains(f):u.compareDocumentPosition?!!(u.compareDocumentPosition(f)&16):!1:!1}function EC(){for(var u=window,f=Ne();f instanceof u.HTMLIFrameElement;){try{var m=typeof f.contentWindow.location.href=="string"}catch{m=!1}if(m)u=f.contentWindow;else break;f=Ne(u.document)}return f}function Ty(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f&&(f==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||f==="textarea"||u.contentEditable==="true")}function _4(u){var f=EC(),m=u.focusedElem,_=u.selectionRange;if(f!==m&&m&&m.ownerDocument&&PC(m.ownerDocument.documentElement,m)){if(_!==null&&Ty(m)){if(f=_.start,u=_.end,u===void 0&&(u=f),"selectionStart"in m)m.selectionStart=f,m.selectionEnd=Math.min(u,m.value.length);else if(u=(f=m.ownerDocument||document)&&f.defaultView||window,u.getSelection){u=u.getSelection();var R=m.textContent.length,A=Math.min(_.start,R);_=_.end===void 0?A:Math.min(_.end,R),!u.extend&&A>_&&(R=_,_=A,A=R),R=RC(m,A);var B=RC(m,_);R&&B&&(u.rangeCount!==1||u.anchorNode!==R.node||u.anchorOffset!==R.offset||u.focusNode!==B.node||u.focusOffset!==B.offset)&&(f=f.createRange(),f.setStart(R.node,R.offset),u.removeAllRanges(),A>_?(u.addRange(f),u.extend(B.node,B.offset)):(f.setEnd(B.node,B.offset),u.addRange(f)))}}for(f=[],u=m;u=u.parentNode;)u.nodeType===1&&f.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<f.length;m++)u=f[m],u.element.scrollLeft=u.left,u.element.scrollTop=u.top}}var C4=s&&"documentMode"in document&&11>=document.documentMode,eu=null,My=null,qc=null,ky=!1;function AC(u,f,m){var _=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;ky||eu==null||eu!==Ne(_)||(_=eu,"selectionStart"in _&&Ty(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),qc&&Yc(qc,_)||(qc=_,_=Kp(My,"onSelect"),0<_.length&&(f=new my("onSelect","select",null,f,m),u.push({event:f,listeners:_}),f.target=eu)))}function Yp(u,f){var m={};return m[u.toLowerCase()]=f.toLowerCase(),m["Webkit"+u]="webkit"+f,m["Moz"+u]="moz"+f,m}var tu={animationend:Yp("Animation","AnimationEnd"),animationiteration:Yp("Animation","AnimationIteration"),animationstart:Yp("Animation","AnimationStart"),transitionend:Yp("Transition","TransitionEnd")},Ry={},IC={};s&&(IC=document.createElement("div").style,"AnimationEvent"in window||(delete tu.animationend.animation,delete tu.animationiteration.animation,delete tu.animationstart.animation),"TransitionEvent"in window||delete tu.transitionend.transition);function qp(u){if(Ry[u])return Ry[u];if(!tu[u])return u;var f=tu[u],m;for(m in f)if(f.hasOwnProperty(m)&&m in IC)return Ry[u]=f[m];return u}var DC=qp("animationend"),LC=qp("animationiteration"),OC=qp("animationstart"),NC=qp("transitionend"),BC=new Map,$C="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 Ea(u,f){BC.set(u,f),o(f,[u])}for(var Py=0;Py<$C.length;Py++){var Ey=$C[Py],T4=Ey.toLowerCase(),M4=Ey[0].toUpperCase()+Ey.slice(1);Ea(T4,"on"+M4)}Ea(DC,"onAnimationEnd"),Ea(LC,"onAnimationIteration"),Ea(OC,"onAnimationStart"),Ea("dblclick","onDoubleClick"),Ea("focusin","onFocus"),Ea("focusout","onBlur"),Ea(NC,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),k4=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xc));function zC(u,f,m){var _=u.type||"unknown-event";u.currentTarget=m,Ar(_,f,void 0,u),u.currentTarget=null}function FC(u,f){f=(f&4)!==0;for(var m=0;m<u.length;m++){var _=u[m],R=_.event;_=_.listeners;e:{var A=void 0;if(f)for(var B=_.length-1;0<=B;B--){var G=_[B],X=G.instance,re=G.currentTarget;if(G=G.listener,X!==A&&R.isPropagationStopped())break e;zC(R,G,re),A=X}else for(B=0;B<_.length;B++){if(G=_[B],X=G.instance,re=G.currentTarget,G=G.listener,X!==A&&R.isPropagationStopped())break e;zC(R,G,re),A=X}}}if(mn)throw u=Go,mn=!1,Go=null,u}function ir(u,f){var m=f[$y];m===void 0&&(m=f[$y]=new Set);var _=u+"__bubble";m.has(_)||(jC(f,u,2,!1),m.add(_))}function Ay(u,f,m){var _=0;f&&(_|=4),jC(m,u,_,f)}var Xp="_reactListening"+Math.random().toString(36).slice(2);function Kc(u){if(!u[Xp]){u[Xp]=!0,n.forEach(function(m){m!=="selectionchange"&&(k4.has(m)||Ay(m,!1,u),Ay(m,!0,u))});var f=u.nodeType===9?u:u.ownerDocument;f===null||f[Xp]||(f[Xp]=!0,Ay("selectionchange",!1,f))}}function jC(u,f,m,_){switch(cC(f)){case 1:var R=jN;break;case 4:R=WN;break;default:R=hy}m=R.bind(null,f,m,u),R=void 0,!ct||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(R=!0),_?R!==void 0?u.addEventListener(f,m,{capture:!0,passive:R}):u.addEventListener(f,m,!0):R!==void 0?u.addEventListener(f,m,{passive:R}):u.addEventListener(f,m,!1)}function Iy(u,f,m,_,R){var A=_;if((f&1)===0&&(f&2)===0&&_!==null)e:for(;;){if(_===null)return;var B=_.tag;if(B===3||B===4){var G=_.stateNode.containerInfo;if(G===R||G.nodeType===8&&G.parentNode===R)break;if(B===4)for(B=_.return;B!==null;){var X=B.tag;if((X===3||X===4)&&(X=B.stateNode.containerInfo,X===R||X.nodeType===8&&X.parentNode===R))return;B=B.return}for(;G!==null;){if(B=Es(G),B===null)return;if(X=B.tag,X===5||X===6){_=A=B;continue e}G=G.parentNode}}_=_.return}Me(function(){var re=A,ve=Nr(m),ye=[];e:{var he=BC.get(u);if(he!==void 0){var Pe=my,Le=u;switch(u){case"keypress":if(Hp(m)===0)break e;case"keydown":case"keyup":Pe=n4;break;case"focusin":Le="focus",Pe=Sy;break;case"focusout":Le="blur",Pe=Sy;break;case"beforeblur":case"afterblur":Pe=Sy;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Pe=pC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Pe=UN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Pe=a4;break;case DC:case LC:case OC:Pe=qN;break;case NC:Pe=l4;break;case"scroll":Pe=HN;break;case"wheel":Pe=c4;break;case"copy":case"cut":case"paste":Pe=KN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Pe=vC}var $e=(f&4)!==0,wr=!$e&&u==="scroll",J=$e?he!==null?he+"Capture":null:he;$e=[];for(var Z=re,ee;Z!==null;){ee=Z;var be=ee.stateNode;if(ee.tag===5&&be!==null&&(ee=be,J!==null&&(be=Ae(Z,J),be!=null&&$e.push(Zc(Z,be,ee)))),wr)break;Z=Z.return}0<$e.length&&(he=new Pe(he,Le,null,m,ve),ye.push({event:he,listeners:$e}))}}if((f&7)===0){e:{if(he=u==="mouseover"||u==="pointerover",Pe=u==="mouseout"||u==="pointerout",he&&m!==gr&&(Le=m.relatedTarget||m.fromElement)&&(Es(Le)||Le[qo]))break e;if((Pe||he)&&(he=ve.window===ve?ve:(he=ve.ownerDocument)?he.defaultView||he.parentWindow:window,Pe?(Le=m.relatedTarget||m.toElement,Pe=re,Le=Le?Es(Le):null,Le!==null&&(wr=rn(Le),Le!==wr||Le.tag!==5&&Le.tag!==6)&&(Le=null)):(Pe=null,Le=re),Pe!==Le)){if($e=pC,be="onMouseLeave",J="onMouseEnter",Z="mouse",(u==="pointerout"||u==="pointerover")&&($e=vC,be="onPointerLeave",J="onPointerEnter",Z="pointer"),wr=Pe==null?he:iu(Pe),ee=Le==null?he:iu(Le),he=new $e(be,Z+"leave",Pe,m,ve),he.target=wr,he.relatedTarget=ee,be=null,Es(ve)===re&&($e=new $e(J,Z+"enter",Le,m,ve),$e.target=ee,$e.relatedTarget=wr,be=$e),wr=be,Pe&&Le)t:{for($e=Pe,J=Le,Z=0,ee=$e;ee;ee=ru(ee))Z++;for(ee=0,be=J;be;be=ru(be))ee++;for(;0<Z-ee;)$e=ru($e),Z--;for(;0<ee-Z;)J=ru(J),ee--;for(;Z--;){if($e===J||J!==null&&$e===J.alternate)break t;$e=ru($e),J=ru(J)}$e=null}else $e=null;Pe!==null&&WC(ye,he,Pe,$e,!1),Le!==null&&wr!==null&&WC(ye,wr,Le,$e,!0)}}e:{if(he=re?iu(re):window,Pe=he.nodeName&&he.nodeName.toLowerCase(),Pe==="select"||Pe==="input"&&he.type==="file")var Ve=m4;else if(bC(he))if(_C)Ve=b4;else{Ve=x4;var Ke=y4}else(Pe=he.nodeName)&&Pe.toLowerCase()==="input"&&(he.type==="checkbox"||he.type==="radio")&&(Ve=S4);if(Ve&&(Ve=Ve(u,re))){wC(ye,Ve,m,ve);break e}Ke&&Ke(u,he,re),u==="focusout"&&(Ke=he._wrapperState)&&Ke.controlled&&he.type==="number"&&at(he,"number",he.value)}switch(Ke=re?iu(re):window,u){case"focusin":(bC(Ke)||Ke.contentEditable==="true")&&(eu=Ke,My=re,qc=null);break;case"focusout":qc=My=eu=null;break;case"mousedown":ky=!0;break;case"contextmenu":case"mouseup":case"dragend":ky=!1,AC(ye,m,ve);break;case"selectionchange":if(C4)break;case"keydown":case"keyup":AC(ye,m,ve)}var Ze;if(wy)e:{switch(u){case"compositionstart":var nt="onCompositionStart";break e;case"compositionend":nt="onCompositionEnd";break e;case"compositionupdate":nt="onCompositionUpdate";break e}nt=void 0}else Jl?xC(u,m)&&(nt="onCompositionEnd"):u==="keydown"&&m.keyCode===229&&(nt="onCompositionStart");nt&&(gC&&m.locale!=="ko"&&(Jl||nt!=="onCompositionStart"?nt==="onCompositionEnd"&&Jl&&(Ze=fC()):(Pa=ve,gy="value"in Pa?Pa.value:Pa.textContent,Jl=!0)),Ke=Kp(re,nt),0<Ke.length&&(nt=new hC(nt,u,null,m,ve),ye.push({event:nt,listeners:Ke}),Ze?nt.data=Ze:(Ze=SC(m),Ze!==null&&(nt.data=Ze)))),(Ze=d4?p4(u,m):h4(u,m))&&(re=Kp(re,"onBeforeInput"),0<re.length&&(ve=new hC("onBeforeInput","beforeinput",null,m,ve),ye.push({event:ve,listeners:re}),ve.data=Ze))}FC(ye,f)})}function Zc(u,f,m){return{instance:u,listener:f,currentTarget:m}}function Kp(u,f){for(var m=f+"Capture",_=[];u!==null;){var R=u,A=R.stateNode;R.tag===5&&A!==null&&(R=A,A=Ae(u,m),A!=null&&_.unshift(Zc(u,A,R)),A=Ae(u,f),A!=null&&_.push(Zc(u,A,R))),u=u.return}return _}function ru(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5);return u||null}function WC(u,f,m,_,R){for(var A=f._reactName,B=[];m!==null&&m!==_;){var G=m,X=G.alternate,re=G.stateNode;if(X!==null&&X===_)break;G.tag===5&&re!==null&&(G=re,R?(X=Ae(m,A),X!=null&&B.unshift(Zc(m,X,G))):R||(X=Ae(m,A),X!=null&&B.push(Zc(m,X,G)))),m=m.return}B.length!==0&&u.push({event:f,listeners:B})}var R4=/\r\n?/g,P4=/\u0000|\uFFFD/g;function HC(u){return(typeof u=="string"?u:""+u).replace(R4,`
38
+ `).replace(P4,"")}function Zp(u,f,m){if(f=HC(f),HC(u)!==f&&m)throw Error(r(425))}function Qp(){}var Dy=null,Ly=null;function Oy(u,f){return u==="textarea"||u==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var Ny=typeof setTimeout=="function"?setTimeout:void 0,E4=typeof clearTimeout=="function"?clearTimeout:void 0,VC=typeof Promise=="function"?Promise:void 0,A4=typeof queueMicrotask=="function"?queueMicrotask:typeof VC<"u"?function(u){return VC.resolve(null).then(u).catch(I4)}:Ny;function I4(u){setTimeout(function(){throw u})}function By(u,f){var m=f,_=0;do{var R=m.nextSibling;if(u.removeChild(m),R&&R.nodeType===8)if(m=R.data,m==="/$"){if(_===0){u.removeChild(R),jc(f);return}_--}else m!=="$"&&m!=="$?"&&m!=="$!"||_++;m=R}while(m);jc(f)}function Aa(u){for(;u!=null;u=u.nextSibling){var f=u.nodeType;if(f===1||f===3)break;if(f===8){if(f=u.data,f==="$"||f==="$!"||f==="$?")break;if(f==="/$")return null}}return u}function UC(u){u=u.previousSibling;for(var f=0;u;){if(u.nodeType===8){var m=u.data;if(m==="$"||m==="$!"||m==="$?"){if(f===0)return u;f--}else m==="/$"&&f++}u=u.previousSibling}return null}var nu=Math.random().toString(36).slice(2),fo="__reactFiber$"+nu,Qc="__reactProps$"+nu,qo="__reactContainer$"+nu,$y="__reactEvents$"+nu,D4="__reactListeners$"+nu,L4="__reactHandles$"+nu;function Es(u){var f=u[fo];if(f)return f;for(var m=u.parentNode;m;){if(f=m[qo]||m[fo]){if(m=f.alternate,f.child!==null||m!==null&&m.child!==null)for(u=UC(u);u!==null;){if(m=u[fo])return m;u=UC(u)}return f}u=m,m=u.parentNode}return null}function Jc(u){return u=u[fo]||u[qo],!u||u.tag!==5&&u.tag!==6&&u.tag!==13&&u.tag!==3?null:u}function iu(u){if(u.tag===5||u.tag===6)return u.stateNode;throw Error(r(33))}function Jp(u){return u[Qc]||null}var zy=[],ou=-1;function Ia(u){return{current:u}}function or(u){0>ou||(u.current=zy[ou],zy[ou]=null,ou--)}function er(u,f){ou++,zy[ou]=u.current,u.current=f}var Da={},nn=Ia(Da),Rn=Ia(!1),As=Da;function au(u,f){var m=u.type.contextTypes;if(!m)return Da;var _=u.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===f)return _.__reactInternalMemoizedMaskedChildContext;var R={},A;for(A in m)R[A]=f[A];return _&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=f,u.__reactInternalMemoizedMaskedChildContext=R),R}function Pn(u){return u=u.childContextTypes,u!=null}function eh(){or(Rn),or(nn)}function GC(u,f,m){if(nn.current!==Da)throw Error(r(168));er(nn,f),er(Rn,m)}function YC(u,f,m){var _=u.stateNode;if(f=f.childContextTypes,typeof _.getChildContext!="function")return m;_=_.getChildContext();for(var R in _)if(!(R in f))throw Error(r(108,ce(u)||"Unknown",R));return Y({},m,_)}function th(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||Da,As=nn.current,er(nn,u),er(Rn,Rn.current),!0}function qC(u,f,m){var _=u.stateNode;if(!_)throw Error(r(169));m?(u=YC(u,f,As),_.__reactInternalMemoizedMergedChildContext=u,or(Rn),or(nn),er(nn,u)):or(Rn),er(Rn,m)}var Xo=null,rh=!1,Fy=!1;function XC(u){Xo===null?Xo=[u]:Xo.push(u)}function O4(u){rh=!0,XC(u)}function La(){if(!Fy&&Xo!==null){Fy=!0;var u=0,f=Ht;try{var m=Xo;for(Ht=1;u<m.length;u++){var _=m[u];do _=_(!0);while(_!==null)}Xo=null,rh=!1}catch(R){throw Xo!==null&&(Xo=Xo.slice(u+1)),vt(Dc,La),R}finally{Ht=f,Fy=!1}}return null}var su=[],lu=0,nh=null,ih=0,hi=[],vi=0,Is=null,Ko=1,Zo="";function Ds(u,f){su[lu++]=ih,su[lu++]=nh,nh=u,ih=f}function KC(u,f,m){hi[vi++]=Ko,hi[vi++]=Zo,hi[vi++]=Is,Is=u;var _=Ko;u=Zo;var R=32-Ui(_)-1;_&=~(1<<R),m+=1;var A=32-Ui(f)+R;if(30<A){var B=R-R%5;A=(_&(1<<B)-1).toString(32),_>>=B,R-=B,Ko=1<<32-Ui(f)+R|m<<R|_,Zo=A+u}else Ko=1<<A|m<<R|_,Zo=u}function jy(u){u.return!==null&&(Ds(u,1),KC(u,1,0))}function Wy(u){for(;u===nh;)nh=su[--lu],su[lu]=null,ih=su[--lu],su[lu]=null;for(;u===Is;)Is=hi[--vi],hi[vi]=null,Zo=hi[--vi],hi[vi]=null,Ko=hi[--vi],hi[vi]=null}var Zn=null,Qn=null,lr=!1,Yi=null;function ZC(u,f){var m=xi(5,null,null,0);m.elementType="DELETED",m.stateNode=f,m.return=u,f=u.deletions,f===null?(u.deletions=[m],u.flags|=16):f.push(m)}function QC(u,f){switch(u.tag){case 5:var m=u.type;return f=f.nodeType!==1||m.toLowerCase()!==f.nodeName.toLowerCase()?null:f,f!==null?(u.stateNode=f,Zn=u,Qn=Aa(f.firstChild),!0):!1;case 6:return f=u.pendingProps===""||f.nodeType!==3?null:f,f!==null?(u.stateNode=f,Zn=u,Qn=null,!0):!1;case 13:return f=f.nodeType!==8?null:f,f!==null?(m=Is!==null?{id:Ko,overflow:Zo}:null,u.memoizedState={dehydrated:f,treeContext:m,retryLane:1073741824},m=xi(18,null,null,0),m.stateNode=f,m.return=u,u.child=m,Zn=u,Qn=null,!0):!1;default:return!1}}function Hy(u){return(u.mode&1)!==0&&(u.flags&128)===0}function Vy(u){if(lr){var f=Qn;if(f){var m=f;if(!QC(u,f)){if(Hy(u))throw Error(r(418));f=Aa(m.nextSibling);var _=Zn;f&&QC(u,f)?ZC(_,m):(u.flags=u.flags&-4097|2,lr=!1,Zn=u)}}else{if(Hy(u))throw Error(r(418));u.flags=u.flags&-4097|2,lr=!1,Zn=u}}}function JC(u){for(u=u.return;u!==null&&u.tag!==5&&u.tag!==3&&u.tag!==13;)u=u.return;Zn=u}function oh(u){if(u!==Zn)return!1;if(!lr)return JC(u),lr=!0,!1;var f;if((f=u.tag!==3)&&!(f=u.tag!==5)&&(f=u.type,f=f!=="head"&&f!=="body"&&!Oy(u.type,u.memoizedProps)),f&&(f=Qn)){if(Hy(u))throw eT(),Error(r(418));for(;f;)ZC(u,f),f=Aa(f.nextSibling)}if(JC(u),u.tag===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));e:{for(u=u.nextSibling,f=0;u;){if(u.nodeType===8){var m=u.data;if(m==="/$"){if(f===0){Qn=Aa(u.nextSibling);break e}f--}else m!=="$"&&m!=="$!"&&m!=="$?"||f++}u=u.nextSibling}Qn=null}}else Qn=Zn?Aa(u.stateNode.nextSibling):null;return!0}function eT(){for(var u=Qn;u;)u=Aa(u.nextSibling)}function uu(){Qn=Zn=null,lr=!1}function Uy(u){Yi===null?Yi=[u]:Yi.push(u)}var N4=C.ReactCurrentBatchConfig;function ef(u,f,m){if(u=m.ref,u!==null&&typeof u!="function"&&typeof u!="object"){if(m._owner){if(m=m._owner,m){if(m.tag!==1)throw Error(r(309));var _=m.stateNode}if(!_)throw Error(r(147,u));var R=_,A=""+u;return f!==null&&f.ref!==null&&typeof f.ref=="function"&&f.ref._stringRef===A?f.ref:(f=function(B){var G=R.refs;B===null?delete G[A]:G[A]=B},f._stringRef=A,f)}if(typeof u!="string")throw Error(r(284));if(!m._owner)throw Error(r(290,u))}return u}function ah(u,f){throw u=Object.prototype.toString.call(f),Error(r(31,u==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":u))}function tT(u){var f=u._init;return f(u._payload)}function rT(u){function f(J,Z){if(u){var ee=J.deletions;ee===null?(J.deletions=[Z],J.flags|=16):ee.push(Z)}}function m(J,Z){if(!u)return null;for(;Z!==null;)f(J,Z),Z=Z.sibling;return null}function _(J,Z){for(J=new Map;Z!==null;)Z.key!==null?J.set(Z.key,Z):J.set(Z.index,Z),Z=Z.sibling;return J}function R(J,Z){return J=Wa(J,Z),J.index=0,J.sibling=null,J}function A(J,Z,ee){return J.index=ee,u?(ee=J.alternate,ee!==null?(ee=ee.index,ee<Z?(J.flags|=2,Z):ee):(J.flags|=2,Z)):(J.flags|=1048576,Z)}function B(J){return u&&J.alternate===null&&(J.flags|=2),J}function G(J,Z,ee,be){return Z===null||Z.tag!==6?(Z=N0(ee,J.mode,be),Z.return=J,Z):(Z=R(Z,ee),Z.return=J,Z)}function X(J,Z,ee,be){var Ve=ee.type;return Ve===E?ve(J,Z,ee.props.children,be,ee.key):Z!==null&&(Z.elementType===Ve||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===j&&tT(Ve)===Z.type)?(be=R(Z,ee.props),be.ref=ef(J,Z,ee),be.return=J,be):(be=Eh(ee.type,ee.key,ee.props,null,J.mode,be),be.ref=ef(J,Z,ee),be.return=J,be)}function re(J,Z,ee,be){return Z===null||Z.tag!==4||Z.stateNode.containerInfo!==ee.containerInfo||Z.stateNode.implementation!==ee.implementation?(Z=B0(ee,J.mode,be),Z.return=J,Z):(Z=R(Z,ee.children||[]),Z.return=J,Z)}function ve(J,Z,ee,be,Ve){return Z===null||Z.tag!==7?(Z=js(ee,J.mode,be,Ve),Z.return=J,Z):(Z=R(Z,ee),Z.return=J,Z)}function ye(J,Z,ee){if(typeof Z=="string"&&Z!==""||typeof Z=="number")return Z=N0(""+Z,J.mode,ee),Z.return=J,Z;if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case T:return ee=Eh(Z.type,Z.key,Z.props,null,J.mode,ee),ee.ref=ef(J,null,Z),ee.return=J,ee;case M:return Z=B0(Z,J.mode,ee),Z.return=J,Z;case j:var be=Z._init;return ye(J,be(Z._payload),ee)}if(Ee(Z)||H(Z))return Z=js(Z,J.mode,ee,null),Z.return=J,Z;ah(J,Z)}return null}function he(J,Z,ee,be){var Ve=Z!==null?Z.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number")return Ve!==null?null:G(J,Z,""+ee,be);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case T:return ee.key===Ve?X(J,Z,ee,be):null;case M:return ee.key===Ve?re(J,Z,ee,be):null;case j:return Ve=ee._init,he(J,Z,Ve(ee._payload),be)}if(Ee(ee)||H(ee))return Ve!==null?null:ve(J,Z,ee,be,null);ah(J,ee)}return null}function Pe(J,Z,ee,be,Ve){if(typeof be=="string"&&be!==""||typeof be=="number")return J=J.get(ee)||null,G(Z,J,""+be,Ve);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case T:return J=J.get(be.key===null?ee:be.key)||null,X(Z,J,be,Ve);case M:return J=J.get(be.key===null?ee:be.key)||null,re(Z,J,be,Ve);case j:var Ke=be._init;return Pe(J,Z,ee,Ke(be._payload),Ve)}if(Ee(be)||H(be))return J=J.get(ee)||null,ve(Z,J,be,Ve,null);ah(Z,be)}return null}function Le(J,Z,ee,be){for(var Ve=null,Ke=null,Ze=Z,nt=Z=0,Hr=null;Ze!==null&&nt<ee.length;nt++){Ze.index>nt?(Hr=Ze,Ze=null):Hr=Ze.sibling;var Dt=he(J,Ze,ee[nt],be);if(Dt===null){Ze===null&&(Ze=Hr);break}u&&Ze&&Dt.alternate===null&&f(J,Ze),Z=A(Dt,Z,nt),Ke===null?Ve=Dt:Ke.sibling=Dt,Ke=Dt,Ze=Hr}if(nt===ee.length)return m(J,Ze),lr&&Ds(J,nt),Ve;if(Ze===null){for(;nt<ee.length;nt++)Ze=ye(J,ee[nt],be),Ze!==null&&(Z=A(Ze,Z,nt),Ke===null?Ve=Ze:Ke.sibling=Ze,Ke=Ze);return lr&&Ds(J,nt),Ve}for(Ze=_(J,Ze);nt<ee.length;nt++)Hr=Pe(Ze,J,nt,ee[nt],be),Hr!==null&&(u&&Hr.alternate!==null&&Ze.delete(Hr.key===null?nt:Hr.key),Z=A(Hr,Z,nt),Ke===null?Ve=Hr:Ke.sibling=Hr,Ke=Hr);return u&&Ze.forEach(function(Ha){return f(J,Ha)}),lr&&Ds(J,nt),Ve}function $e(J,Z,ee,be){var Ve=H(ee);if(typeof Ve!="function")throw Error(r(150));if(ee=Ve.call(ee),ee==null)throw Error(r(151));for(var Ke=Ve=null,Ze=Z,nt=Z=0,Hr=null,Dt=ee.next();Ze!==null&&!Dt.done;nt++,Dt=ee.next()){Ze.index>nt?(Hr=Ze,Ze=null):Hr=Ze.sibling;var Ha=he(J,Ze,Dt.value,be);if(Ha===null){Ze===null&&(Ze=Hr);break}u&&Ze&&Ha.alternate===null&&f(J,Ze),Z=A(Ha,Z,nt),Ke===null?Ve=Ha:Ke.sibling=Ha,Ke=Ha,Ze=Hr}if(Dt.done)return m(J,Ze),lr&&Ds(J,nt),Ve;if(Ze===null){for(;!Dt.done;nt++,Dt=ee.next())Dt=ye(J,Dt.value,be),Dt!==null&&(Z=A(Dt,Z,nt),Ke===null?Ve=Dt:Ke.sibling=Dt,Ke=Dt);return lr&&Ds(J,nt),Ve}for(Ze=_(J,Ze);!Dt.done;nt++,Dt=ee.next())Dt=Pe(Ze,J,nt,Dt.value,be),Dt!==null&&(u&&Dt.alternate!==null&&Ze.delete(Dt.key===null?nt:Dt.key),Z=A(Dt,Z,nt),Ke===null?Ve=Dt:Ke.sibling=Dt,Ke=Dt);return u&&Ze.forEach(function(vB){return f(J,vB)}),lr&&Ds(J,nt),Ve}function wr(J,Z,ee,be){if(typeof ee=="object"&&ee!==null&&ee.type===E&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case T:e:{for(var Ve=ee.key,Ke=Z;Ke!==null;){if(Ke.key===Ve){if(Ve=ee.type,Ve===E){if(Ke.tag===7){m(J,Ke.sibling),Z=R(Ke,ee.props.children),Z.return=J,J=Z;break e}}else if(Ke.elementType===Ve||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===j&&tT(Ve)===Ke.type){m(J,Ke.sibling),Z=R(Ke,ee.props),Z.ref=ef(J,Ke,ee),Z.return=J,J=Z;break e}m(J,Ke);break}else f(J,Ke);Ke=Ke.sibling}ee.type===E?(Z=js(ee.props.children,J.mode,be,ee.key),Z.return=J,J=Z):(be=Eh(ee.type,ee.key,ee.props,null,J.mode,be),be.ref=ef(J,Z,ee),be.return=J,J=be)}return B(J);case M:e:{for(Ke=ee.key;Z!==null;){if(Z.key===Ke)if(Z.tag===4&&Z.stateNode.containerInfo===ee.containerInfo&&Z.stateNode.implementation===ee.implementation){m(J,Z.sibling),Z=R(Z,ee.children||[]),Z.return=J,J=Z;break e}else{m(J,Z);break}else f(J,Z);Z=Z.sibling}Z=B0(ee,J.mode,be),Z.return=J,J=Z}return B(J);case j:return Ke=ee._init,wr(J,Z,Ke(ee._payload),be)}if(Ee(ee))return Le(J,Z,ee,be);if(H(ee))return $e(J,Z,ee,be);ah(J,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"?(ee=""+ee,Z!==null&&Z.tag===6?(m(J,Z.sibling),Z=R(Z,ee),Z.return=J,J=Z):(m(J,Z),Z=N0(ee,J.mode,be),Z.return=J,J=Z),B(J)):m(J,Z)}return wr}var cu=rT(!0),nT=rT(!1),sh=Ia(null),lh=null,fu=null,Gy=null;function Yy(){Gy=fu=lh=null}function qy(u){var f=sh.current;or(sh),u._currentValue=f}function Xy(u,f,m){for(;u!==null;){var _=u.alternate;if((u.childLanes&f)!==f?(u.childLanes|=f,_!==null&&(_.childLanes|=f)):_!==null&&(_.childLanes&f)!==f&&(_.childLanes|=f),u===m)break;u=u.return}}function du(u,f){lh=u,Gy=fu=null,u=u.dependencies,u!==null&&u.firstContext!==null&&((u.lanes&f)!==0&&(En=!0),u.firstContext=null)}function gi(u){var f=u._currentValue;if(Gy!==u)if(u={context:u,memoizedValue:f,next:null},fu===null){if(lh===null)throw Error(r(308));fu=u,lh.dependencies={lanes:0,firstContext:u}}else fu=fu.next=u;return f}var Ls=null;function Ky(u){Ls===null?Ls=[u]:Ls.push(u)}function iT(u,f,m,_){var R=f.interleaved;return R===null?(m.next=m,Ky(f)):(m.next=R.next,R.next=m),f.interleaved=m,Qo(u,_)}function Qo(u,f){u.lanes|=f;var m=u.alternate;for(m!==null&&(m.lanes|=f),m=u,u=u.return;u!==null;)u.childLanes|=f,m=u.alternate,m!==null&&(m.childLanes|=f),m=u,u=u.return;return m.tag===3?m.stateNode:null}var Oa=!1;function Zy(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oT(u,f){u=u.updateQueue,f.updateQueue===u&&(f.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function Jo(u,f){return{eventTime:u,lane:f,tag:0,payload:null,callback:null,next:null}}function Na(u,f,m){var _=u.updateQueue;if(_===null)return null;if(_=_.shared,(It&2)!==0){var R=_.pending;return R===null?f.next=f:(f.next=R.next,R.next=f),_.pending=f,Qo(u,m)}return R=_.interleaved,R===null?(f.next=f,Ky(_)):(f.next=R.next,R.next=f),_.interleaved=f,Qo(u,m)}function uh(u,f,m){if(f=f.updateQueue,f!==null&&(f=f.shared,(m&4194240)!==0)){var _=f.lanes;_&=u.pendingLanes,m|=_,f.lanes=m,fy(u,m)}}function aT(u,f){var m=u.updateQueue,_=u.alternate;if(_!==null&&(_=_.updateQueue,m===_)){var R=null,A=null;if(m=m.firstBaseUpdate,m!==null){do{var B={eventTime:m.eventTime,lane:m.lane,tag:m.tag,payload:m.payload,callback:m.callback,next:null};A===null?R=A=B:A=A.next=B,m=m.next}while(m!==null);A===null?R=A=f:A=A.next=f}else R=A=f;m={baseState:_.baseState,firstBaseUpdate:R,lastBaseUpdate:A,shared:_.shared,effects:_.effects},u.updateQueue=m;return}u=m.lastBaseUpdate,u===null?m.firstBaseUpdate=f:u.next=f,m.lastBaseUpdate=f}function ch(u,f,m,_){var R=u.updateQueue;Oa=!1;var A=R.firstBaseUpdate,B=R.lastBaseUpdate,G=R.shared.pending;if(G!==null){R.shared.pending=null;var X=G,re=X.next;X.next=null,B===null?A=re:B.next=re,B=X;var ve=u.alternate;ve!==null&&(ve=ve.updateQueue,G=ve.lastBaseUpdate,G!==B&&(G===null?ve.firstBaseUpdate=re:G.next=re,ve.lastBaseUpdate=X))}if(A!==null){var ye=R.baseState;B=0,ve=re=X=null,G=A;do{var he=G.lane,Pe=G.eventTime;if((_&he)===he){ve!==null&&(ve=ve.next={eventTime:Pe,lane:0,tag:G.tag,payload:G.payload,callback:G.callback,next:null});e:{var Le=u,$e=G;switch(he=f,Pe=m,$e.tag){case 1:if(Le=$e.payload,typeof Le=="function"){ye=Le.call(Pe,ye,he);break e}ye=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=$e.payload,he=typeof Le=="function"?Le.call(Pe,ye,he):Le,he==null)break e;ye=Y({},ye,he);break e;case 2:Oa=!0}}G.callback!==null&&G.lane!==0&&(u.flags|=64,he=R.effects,he===null?R.effects=[G]:he.push(G))}else Pe={eventTime:Pe,lane:he,tag:G.tag,payload:G.payload,callback:G.callback,next:null},ve===null?(re=ve=Pe,X=ye):ve=ve.next=Pe,B|=he;if(G=G.next,G===null){if(G=R.shared.pending,G===null)break;he=G,G=he.next,he.next=null,R.lastBaseUpdate=he,R.shared.pending=null}}while(!0);if(ve===null&&(X=ye),R.baseState=X,R.firstBaseUpdate=re,R.lastBaseUpdate=ve,f=R.shared.interleaved,f!==null){R=f;do B|=R.lane,R=R.next;while(R!==f)}else A===null&&(R.shared.lanes=0);Bs|=B,u.lanes=B,u.memoizedState=ye}}function sT(u,f,m){if(u=f.effects,f.effects=null,u!==null)for(f=0;f<u.length;f++){var _=u[f],R=_.callback;if(R!==null){if(_.callback=null,_=m,typeof R!="function")throw Error(r(191,R));R.call(_)}}}var tf={},po=Ia(tf),rf=Ia(tf),nf=Ia(tf);function Os(u){if(u===tf)throw Error(r(174));return u}function Qy(u,f){switch(er(nf,f),er(rf,u),er(po,tf),u=f.nodeType,u){case 9:case 11:f=(f=f.documentElement)?f.namespaceURI:ar(null,"");break;default:u=u===8?f.parentNode:f,f=u.namespaceURI||null,u=u.tagName,f=ar(f,u)}or(po),er(po,f)}function pu(){or(po),or(rf),or(nf)}function lT(u){Os(nf.current);var f=Os(po.current),m=ar(f,u.type);f!==m&&(er(rf,u),er(po,m))}function Jy(u){rf.current===u&&(or(po),or(rf))}var pr=Ia(0);function fh(u){for(var f=u;f!==null;){if(f.tag===13){var m=f.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||m.data==="$!"))return f}else if(f.tag===19&&f.memoizedProps.revealOrder!==void 0){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var e0=[];function t0(){for(var u=0;u<e0.length;u++)e0[u]._workInProgressVersionPrimary=null;e0.length=0}var dh=C.ReactCurrentDispatcher,r0=C.ReactCurrentBatchConfig,Ns=0,hr=null,$r=null,jr=null,ph=!1,of=!1,af=0,B4=0;function on(){throw Error(r(321))}function n0(u,f){if(f===null)return!1;for(var m=0;m<f.length&&m<u.length;m++)if(!Gi(u[m],f[m]))return!1;return!0}function i0(u,f,m,_,R,A){if(Ns=A,hr=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,dh.current=u===null||u.memoizedState===null?j4:W4,u=m(_,R),of){A=0;do{if(of=!1,af=0,25<=A)throw Error(r(301));A+=1,jr=$r=null,f.updateQueue=null,dh.current=H4,u=m(_,R)}while(of)}if(dh.current=gh,f=$r!==null&&$r.next!==null,Ns=0,jr=$r=hr=null,ph=!1,f)throw Error(r(300));return u}function o0(){var u=af!==0;return af=0,u}function ho(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jr===null?hr.memoizedState=jr=u:jr=jr.next=u,jr}function mi(){if($r===null){var u=hr.alternate;u=u!==null?u.memoizedState:null}else u=$r.next;var f=jr===null?hr.memoizedState:jr.next;if(f!==null)jr=f,$r=u;else{if(u===null)throw Error(r(310));$r=u,u={memoizedState:$r.memoizedState,baseState:$r.baseState,baseQueue:$r.baseQueue,queue:$r.queue,next:null},jr===null?hr.memoizedState=jr=u:jr=jr.next=u}return jr}function sf(u,f){return typeof f=="function"?f(u):f}function a0(u){var f=mi(),m=f.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=u;var _=$r,R=_.baseQueue,A=m.pending;if(A!==null){if(R!==null){var B=R.next;R.next=A.next,A.next=B}_.baseQueue=R=A,m.pending=null}if(R!==null){A=R.next,_=_.baseState;var G=B=null,X=null,re=A;do{var ve=re.lane;if((Ns&ve)===ve)X!==null&&(X=X.next={lane:0,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null}),_=re.hasEagerState?re.eagerState:u(_,re.action);else{var ye={lane:ve,action:re.action,hasEagerState:re.hasEagerState,eagerState:re.eagerState,next:null};X===null?(G=X=ye,B=_):X=X.next=ye,hr.lanes|=ve,Bs|=ve}re=re.next}while(re!==null&&re!==A);X===null?B=_:X.next=G,Gi(_,f.memoizedState)||(En=!0),f.memoizedState=_,f.baseState=B,f.baseQueue=X,m.lastRenderedState=_}if(u=m.interleaved,u!==null){R=u;do A=R.lane,hr.lanes|=A,Bs|=A,R=R.next;while(R!==u)}else R===null&&(m.lanes=0);return[f.memoizedState,m.dispatch]}function s0(u){var f=mi(),m=f.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=u;var _=m.dispatch,R=m.pending,A=f.memoizedState;if(R!==null){m.pending=null;var B=R=R.next;do A=u(A,B.action),B=B.next;while(B!==R);Gi(A,f.memoizedState)||(En=!0),f.memoizedState=A,f.baseQueue===null&&(f.baseState=A),m.lastRenderedState=A}return[A,_]}function uT(){}function cT(u,f){var m=hr,_=mi(),R=f(),A=!Gi(_.memoizedState,R);if(A&&(_.memoizedState=R,En=!0),_=_.queue,l0(pT.bind(null,m,_,u),[u]),_.getSnapshot!==f||A||jr!==null&&jr.memoizedState.tag&1){if(m.flags|=2048,lf(9,dT.bind(null,m,_,R,f),void 0,null),Wr===null)throw Error(r(349));(Ns&30)!==0||fT(m,f,R)}return R}function fT(u,f,m){u.flags|=16384,u={getSnapshot:f,value:m},f=hr.updateQueue,f===null?(f={lastEffect:null,stores:null},hr.updateQueue=f,f.stores=[u]):(m=f.stores,m===null?f.stores=[u]:m.push(u))}function dT(u,f,m,_){f.value=m,f.getSnapshot=_,hT(f)&&vT(u)}function pT(u,f,m){return m(function(){hT(f)&&vT(u)})}function hT(u){var f=u.getSnapshot;u=u.value;try{var m=f();return!Gi(u,m)}catch{return!0}}function vT(u){var f=Qo(u,1);f!==null&&Zi(f,u,1,-1)}function gT(u){var f=ho();return typeof u=="function"&&(u=u()),f.memoizedState=f.baseState=u,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sf,lastRenderedState:u},f.queue=u,u=u.dispatch=F4.bind(null,hr,u),[f.memoizedState,u]}function lf(u,f,m,_){return u={tag:u,create:f,destroy:m,deps:_,next:null},f=hr.updateQueue,f===null?(f={lastEffect:null,stores:null},hr.updateQueue=f,f.lastEffect=u.next=u):(m=f.lastEffect,m===null?f.lastEffect=u.next=u:(_=m.next,m.next=u,u.next=_,f.lastEffect=u)),u}function mT(){return mi().memoizedState}function hh(u,f,m,_){var R=ho();hr.flags|=u,R.memoizedState=lf(1|f,m,void 0,_===void 0?null:_)}function vh(u,f,m,_){var R=mi();_=_===void 0?null:_;var A=void 0;if($r!==null){var B=$r.memoizedState;if(A=B.destroy,_!==null&&n0(_,B.deps)){R.memoizedState=lf(f,m,A,_);return}}hr.flags|=u,R.memoizedState=lf(1|f,m,A,_)}function yT(u,f){return hh(8390656,8,u,f)}function l0(u,f){return vh(2048,8,u,f)}function xT(u,f){return vh(4,2,u,f)}function ST(u,f){return vh(4,4,u,f)}function bT(u,f){if(typeof f=="function")return u=u(),f(u),function(){f(null)};if(f!=null)return u=u(),f.current=u,function(){f.current=null}}function wT(u,f,m){return m=m!=null?m.concat([u]):null,vh(4,4,bT.bind(null,f,u),m)}function u0(){}function _T(u,f){var m=mi();f=f===void 0?null:f;var _=m.memoizedState;return _!==null&&f!==null&&n0(f,_[1])?_[0]:(m.memoizedState=[u,f],u)}function CT(u,f){var m=mi();f=f===void 0?null:f;var _=m.memoizedState;return _!==null&&f!==null&&n0(f,_[1])?_[0]:(u=u(),m.memoizedState=[u,f],u)}function TT(u,f,m){return(Ns&21)===0?(u.baseState&&(u.baseState=!1,En=!0),u.memoizedState=m):(Gi(m,f)||(m=tC(),hr.lanes|=m,Bs|=m,u.baseState=!0),f)}function $4(u,f){var m=Ht;Ht=m!==0&&4>m?m:4,u(!0);var _=r0.transition;r0.transition={};try{u(!1),f()}finally{Ht=m,r0.transition=_}}function MT(){return mi().memoizedState}function z4(u,f,m){var _=Fa(u);if(m={lane:_,action:m,hasEagerState:!1,eagerState:null,next:null},kT(u))RT(f,m);else if(m=iT(u,f,m,_),m!==null){var R=xn();Zi(m,u,_,R),PT(m,f,_)}}function F4(u,f,m){var _=Fa(u),R={lane:_,action:m,hasEagerState:!1,eagerState:null,next:null};if(kT(u))RT(f,R);else{var A=u.alternate;if(u.lanes===0&&(A===null||A.lanes===0)&&(A=f.lastRenderedReducer,A!==null))try{var B=f.lastRenderedState,G=A(B,m);if(R.hasEagerState=!0,R.eagerState=G,Gi(G,B)){var X=f.interleaved;X===null?(R.next=R,Ky(f)):(R.next=X.next,X.next=R),f.interleaved=R;return}}catch{}finally{}m=iT(u,f,R,_),m!==null&&(R=xn(),Zi(m,u,_,R),PT(m,f,_))}}function kT(u){var f=u.alternate;return u===hr||f!==null&&f===hr}function RT(u,f){of=ph=!0;var m=u.pending;m===null?f.next=f:(f.next=m.next,m.next=f),u.pending=f}function PT(u,f,m){if((m&4194240)!==0){var _=f.lanes;_&=u.pendingLanes,m|=_,f.lanes=m,fy(u,m)}}var gh={readContext:gi,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useInsertionEffect:on,useLayoutEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useMutableSource:on,useSyncExternalStore:on,useId:on,unstable_isNewReconciler:!1},j4={readContext:gi,useCallback:function(u,f){return ho().memoizedState=[u,f===void 0?null:f],u},useContext:gi,useEffect:yT,useImperativeHandle:function(u,f,m){return m=m!=null?m.concat([u]):null,hh(4194308,4,bT.bind(null,f,u),m)},useLayoutEffect:function(u,f){return hh(4194308,4,u,f)},useInsertionEffect:function(u,f){return hh(4,2,u,f)},useMemo:function(u,f){var m=ho();return f=f===void 0?null:f,u=u(),m.memoizedState=[u,f],u},useReducer:function(u,f,m){var _=ho();return f=m!==void 0?m(f):f,_.memoizedState=_.baseState=f,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:f},_.queue=u,u=u.dispatch=z4.bind(null,hr,u),[_.memoizedState,u]},useRef:function(u){var f=ho();return u={current:u},f.memoizedState=u},useState:gT,useDebugValue:u0,useDeferredValue:function(u){return ho().memoizedState=u},useTransition:function(){var u=gT(!1),f=u[0];return u=$4.bind(null,u[1]),ho().memoizedState=u,[f,u]},useMutableSource:function(){},useSyncExternalStore:function(u,f,m){var _=hr,R=ho();if(lr){if(m===void 0)throw Error(r(407));m=m()}else{if(m=f(),Wr===null)throw Error(r(349));(Ns&30)!==0||fT(_,f,m)}R.memoizedState=m;var A={value:m,getSnapshot:f};return R.queue=A,yT(pT.bind(null,_,A,u),[u]),_.flags|=2048,lf(9,dT.bind(null,_,A,m,f),void 0,null),m},useId:function(){var u=ho(),f=Wr.identifierPrefix;if(lr){var m=Zo,_=Ko;m=(_&~(1<<32-Ui(_)-1)).toString(32)+m,f=":"+f+"R"+m,m=af++,0<m&&(f+="H"+m.toString(32)),f+=":"}else m=B4++,f=":"+f+"r"+m.toString(32)+":";return u.memoizedState=f},unstable_isNewReconciler:!1},W4={readContext:gi,useCallback:_T,useContext:gi,useEffect:l0,useImperativeHandle:wT,useInsertionEffect:xT,useLayoutEffect:ST,useMemo:CT,useReducer:a0,useRef:mT,useState:function(){return a0(sf)},useDebugValue:u0,useDeferredValue:function(u){var f=mi();return TT(f,$r.memoizedState,u)},useTransition:function(){var u=a0(sf)[0],f=mi().memoizedState;return[u,f]},useMutableSource:uT,useSyncExternalStore:cT,useId:MT,unstable_isNewReconciler:!1},H4={readContext:gi,useCallback:_T,useContext:gi,useEffect:l0,useImperativeHandle:wT,useInsertionEffect:xT,useLayoutEffect:ST,useMemo:CT,useReducer:s0,useRef:mT,useState:function(){return s0(sf)},useDebugValue:u0,useDeferredValue:function(u){var f=mi();return $r===null?f.memoizedState=u:TT(f,$r.memoizedState,u)},useTransition:function(){var u=s0(sf)[0],f=mi().memoizedState;return[u,f]},useMutableSource:uT,useSyncExternalStore:cT,useId:MT,unstable_isNewReconciler:!1};function qi(u,f){if(u&&u.defaultProps){f=Y({},f),u=u.defaultProps;for(var m in u)f[m]===void 0&&(f[m]=u[m]);return f}return f}function c0(u,f,m,_){f=u.memoizedState,m=m(_,f),m=m==null?f:Y({},f,m),u.memoizedState=m,u.lanes===0&&(u.updateQueue.baseState=m)}var mh={isMounted:function(u){return(u=u._reactInternals)?rn(u)===u:!1},enqueueSetState:function(u,f,m){u=u._reactInternals;var _=xn(),R=Fa(u),A=Jo(_,R);A.payload=f,m!=null&&(A.callback=m),f=Na(u,A,R),f!==null&&(Zi(f,u,R,_),uh(f,u,R))},enqueueReplaceState:function(u,f,m){u=u._reactInternals;var _=xn(),R=Fa(u),A=Jo(_,R);A.tag=1,A.payload=f,m!=null&&(A.callback=m),f=Na(u,A,R),f!==null&&(Zi(f,u,R,_),uh(f,u,R))},enqueueForceUpdate:function(u,f){u=u._reactInternals;var m=xn(),_=Fa(u),R=Jo(m,_);R.tag=2,f!=null&&(R.callback=f),f=Na(u,R,_),f!==null&&(Zi(f,u,_,m),uh(f,u,_))}};function ET(u,f,m,_,R,A,B){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(_,A,B):f.prototype&&f.prototype.isPureReactComponent?!Yc(m,_)||!Yc(R,A):!0}function AT(u,f,m){var _=!1,R=Da,A=f.contextType;return typeof A=="object"&&A!==null?A=gi(A):(R=Pn(f)?As:nn.current,_=f.contextTypes,A=(_=_!=null)?au(u,R):Da),f=new f(m,A),u.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=mh,u.stateNode=f,f._reactInternals=u,_&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=R,u.__reactInternalMemoizedMaskedChildContext=A),f}function IT(u,f,m,_){u=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(m,_),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(m,_),f.state!==u&&mh.enqueueReplaceState(f,f.state,null)}function f0(u,f,m,_){var R=u.stateNode;R.props=m,R.state=u.memoizedState,R.refs={},Zy(u);var A=f.contextType;typeof A=="object"&&A!==null?R.context=gi(A):(A=Pn(f)?As:nn.current,R.context=au(u,A)),R.state=u.memoizedState,A=f.getDerivedStateFromProps,typeof A=="function"&&(c0(u,f,A,m),R.state=u.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof R.getSnapshotBeforeUpdate=="function"||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(f=R.state,typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount(),f!==R.state&&mh.enqueueReplaceState(R,R.state,null),ch(u,m,R,_),R.state=u.memoizedState),typeof R.componentDidMount=="function"&&(u.flags|=4194308)}function hu(u,f){try{var m="",_=f;do m+=ne(_),_=_.return;while(_);var R=m}catch(A){R=`
39
+ Error generating stack: `+A.message+`
40
+ `+A.stack}return{value:u,source:f,stack:R,digest:null}}function d0(u,f,m){return{value:u,source:null,stack:m??null,digest:f??null}}function p0(u,f){try{console.error(f.value)}catch(m){setTimeout(function(){throw m})}}var V4=typeof WeakMap=="function"?WeakMap:Map;function DT(u,f,m){m=Jo(-1,m),m.tag=3,m.payload={element:null};var _=f.value;return m.callback=function(){Ch||(Ch=!0,R0=_),p0(u,f)},m}function LT(u,f,m){m=Jo(-1,m),m.tag=3;var _=u.type.getDerivedStateFromError;if(typeof _=="function"){var R=f.value;m.payload=function(){return _(R)},m.callback=function(){p0(u,f)}}var A=u.stateNode;return A!==null&&typeof A.componentDidCatch=="function"&&(m.callback=function(){p0(u,f),typeof _!="function"&&($a===null?$a=new Set([this]):$a.add(this));var B=f.stack;this.componentDidCatch(f.value,{componentStack:B!==null?B:""})}),m}function OT(u,f,m){var _=u.pingCache;if(_===null){_=u.pingCache=new V4;var R=new Set;_.set(f,R)}else R=_.get(f),R===void 0&&(R=new Set,_.set(f,R));R.has(m)||(R.add(m),u=iB.bind(null,u,f,m),f.then(u,u))}function NT(u){do{var f;if((f=u.tag===13)&&(f=u.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return u;u=u.return}while(u!==null);return null}function BT(u,f,m,_,R){return(u.mode&1)===0?(u===f?u.flags|=65536:(u.flags|=128,m.flags|=131072,m.flags&=-52805,m.tag===1&&(m.alternate===null?m.tag=17:(f=Jo(-1,1),f.tag=2,Na(m,f,1))),m.lanes|=1),u):(u.flags|=65536,u.lanes=R,u)}var U4=C.ReactCurrentOwner,En=!1;function yn(u,f,m,_){f.child=u===null?nT(f,null,m,_):cu(f,u.child,m,_)}function $T(u,f,m,_,R){m=m.render;var A=f.ref;return du(f,R),_=i0(u,f,m,_,A,R),m=o0(),u!==null&&!En?(f.updateQueue=u.updateQueue,f.flags&=-2053,u.lanes&=~R,ea(u,f,R)):(lr&&m&&jy(f),f.flags|=1,yn(u,f,_,R),f.child)}function zT(u,f,m,_,R){if(u===null){var A=m.type;return typeof A=="function"&&!O0(A)&&A.defaultProps===void 0&&m.compare===null&&m.defaultProps===void 0?(f.tag=15,f.type=A,FT(u,f,A,_,R)):(u=Eh(m.type,null,_,f,f.mode,R),u.ref=f.ref,u.return=f,f.child=u)}if(A=u.child,(u.lanes&R)===0){var B=A.memoizedProps;if(m=m.compare,m=m!==null?m:Yc,m(B,_)&&u.ref===f.ref)return ea(u,f,R)}return f.flags|=1,u=Wa(A,_),u.ref=f.ref,u.return=f,f.child=u}function FT(u,f,m,_,R){if(u!==null){var A=u.memoizedProps;if(Yc(A,_)&&u.ref===f.ref)if(En=!1,f.pendingProps=_=A,(u.lanes&R)!==0)(u.flags&131072)!==0&&(En=!0);else return f.lanes=u.lanes,ea(u,f,R)}return h0(u,f,m,_,R)}function jT(u,f,m){var _=f.pendingProps,R=_.children,A=u!==null?u.memoizedState:null;if(_.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},er(gu,Jn),Jn|=m;else{if((m&1073741824)===0)return u=A!==null?A.baseLanes|m:m,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:u,cachePool:null,transitions:null},f.updateQueue=null,er(gu,Jn),Jn|=u,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=A!==null?A.baseLanes:m,er(gu,Jn),Jn|=_}else A!==null?(_=A.baseLanes|m,f.memoizedState=null):_=m,er(gu,Jn),Jn|=_;return yn(u,f,R,m),f.child}function WT(u,f){var m=f.ref;(u===null&&m!==null||u!==null&&u.ref!==m)&&(f.flags|=512,f.flags|=2097152)}function h0(u,f,m,_,R){var A=Pn(m)?As:nn.current;return A=au(f,A),du(f,R),m=i0(u,f,m,_,A,R),_=o0(),u!==null&&!En?(f.updateQueue=u.updateQueue,f.flags&=-2053,u.lanes&=~R,ea(u,f,R)):(lr&&_&&jy(f),f.flags|=1,yn(u,f,m,R),f.child)}function HT(u,f,m,_,R){if(Pn(m)){var A=!0;th(f)}else A=!1;if(du(f,R),f.stateNode===null)xh(u,f),AT(f,m,_),f0(f,m,_,R),_=!0;else if(u===null){var B=f.stateNode,G=f.memoizedProps;B.props=G;var X=B.context,re=m.contextType;typeof re=="object"&&re!==null?re=gi(re):(re=Pn(m)?As:nn.current,re=au(f,re));var ve=m.getDerivedStateFromProps,ye=typeof ve=="function"||typeof B.getSnapshotBeforeUpdate=="function";ye||typeof B.UNSAFE_componentWillReceiveProps!="function"&&typeof B.componentWillReceiveProps!="function"||(G!==_||X!==re)&&IT(f,B,_,re),Oa=!1;var he=f.memoizedState;B.state=he,ch(f,_,B,R),X=f.memoizedState,G!==_||he!==X||Rn.current||Oa?(typeof ve=="function"&&(c0(f,m,ve,_),X=f.memoizedState),(G=Oa||ET(f,m,G,_,he,X,re))?(ye||typeof B.UNSAFE_componentWillMount!="function"&&typeof B.componentWillMount!="function"||(typeof B.componentWillMount=="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount=="function"&&B.UNSAFE_componentWillMount()),typeof B.componentDidMount=="function"&&(f.flags|=4194308)):(typeof B.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=_,f.memoizedState=X),B.props=_,B.state=X,B.context=re,_=G):(typeof B.componentDidMount=="function"&&(f.flags|=4194308),_=!1)}else{B=f.stateNode,oT(u,f),G=f.memoizedProps,re=f.type===f.elementType?G:qi(f.type,G),B.props=re,ye=f.pendingProps,he=B.context,X=m.contextType,typeof X=="object"&&X!==null?X=gi(X):(X=Pn(m)?As:nn.current,X=au(f,X));var Pe=m.getDerivedStateFromProps;(ve=typeof Pe=="function"||typeof B.getSnapshotBeforeUpdate=="function")||typeof B.UNSAFE_componentWillReceiveProps!="function"&&typeof B.componentWillReceiveProps!="function"||(G!==ye||he!==X)&&IT(f,B,_,X),Oa=!1,he=f.memoizedState,B.state=he,ch(f,_,B,R);var Le=f.memoizedState;G!==ye||he!==Le||Rn.current||Oa?(typeof Pe=="function"&&(c0(f,m,Pe,_),Le=f.memoizedState),(re=Oa||ET(f,m,re,_,he,Le,X)||!1)?(ve||typeof B.UNSAFE_componentWillUpdate!="function"&&typeof B.componentWillUpdate!="function"||(typeof B.componentWillUpdate=="function"&&B.componentWillUpdate(_,Le,X),typeof B.UNSAFE_componentWillUpdate=="function"&&B.UNSAFE_componentWillUpdate(_,Le,X)),typeof B.componentDidUpdate=="function"&&(f.flags|=4),typeof B.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof B.componentDidUpdate!="function"||G===u.memoizedProps&&he===u.memoizedState||(f.flags|=4),typeof B.getSnapshotBeforeUpdate!="function"||G===u.memoizedProps&&he===u.memoizedState||(f.flags|=1024),f.memoizedProps=_,f.memoizedState=Le),B.props=_,B.state=Le,B.context=X,_=re):(typeof B.componentDidUpdate!="function"||G===u.memoizedProps&&he===u.memoizedState||(f.flags|=4),typeof B.getSnapshotBeforeUpdate!="function"||G===u.memoizedProps&&he===u.memoizedState||(f.flags|=1024),_=!1)}return v0(u,f,m,_,A,R)}function v0(u,f,m,_,R,A){WT(u,f);var B=(f.flags&128)!==0;if(!_&&!B)return R&&qC(f,m,!1),ea(u,f,A);_=f.stateNode,U4.current=f;var G=B&&typeof m.getDerivedStateFromError!="function"?null:_.render();return f.flags|=1,u!==null&&B?(f.child=cu(f,u.child,null,A),f.child=cu(f,null,G,A)):yn(u,f,G,A),f.memoizedState=_.state,R&&qC(f,m,!0),f.child}function VT(u){var f=u.stateNode;f.pendingContext?GC(u,f.pendingContext,f.pendingContext!==f.context):f.context&&GC(u,f.context,!1),Qy(u,f.containerInfo)}function UT(u,f,m,_,R){return uu(),Uy(R),f.flags|=256,yn(u,f,m,_),f.child}var g0={dehydrated:null,treeContext:null,retryLane:0};function m0(u){return{baseLanes:u,cachePool:null,transitions:null}}function GT(u,f,m){var _=f.pendingProps,R=pr.current,A=!1,B=(f.flags&128)!==0,G;if((G=B)||(G=u!==null&&u.memoizedState===null?!1:(R&2)!==0),G?(A=!0,f.flags&=-129):(u===null||u.memoizedState!==null)&&(R|=1),er(pr,R&1),u===null)return Vy(f),u=f.memoizedState,u!==null&&(u=u.dehydrated,u!==null)?((f.mode&1)===0?f.lanes=1:u.data==="$!"?f.lanes=8:f.lanes=1073741824,null):(B=_.children,u=_.fallback,A?(_=f.mode,A=f.child,B={mode:"hidden",children:B},(_&1)===0&&A!==null?(A.childLanes=0,A.pendingProps=B):A=Ah(B,_,0,null),u=js(u,_,m,null),A.return=f,u.return=f,A.sibling=u,f.child=A,f.child.memoizedState=m0(m),f.memoizedState=g0,u):y0(f,B));if(R=u.memoizedState,R!==null&&(G=R.dehydrated,G!==null))return G4(u,f,B,_,G,R,m);if(A){A=_.fallback,B=f.mode,R=u.child,G=R.sibling;var X={mode:"hidden",children:_.children};return(B&1)===0&&f.child!==R?(_=f.child,_.childLanes=0,_.pendingProps=X,f.deletions=null):(_=Wa(R,X),_.subtreeFlags=R.subtreeFlags&14680064),G!==null?A=Wa(G,A):(A=js(A,B,m,null),A.flags|=2),A.return=f,_.return=f,_.sibling=A,f.child=_,_=A,A=f.child,B=u.child.memoizedState,B=B===null?m0(m):{baseLanes:B.baseLanes|m,cachePool:null,transitions:B.transitions},A.memoizedState=B,A.childLanes=u.childLanes&~m,f.memoizedState=g0,_}return A=u.child,u=A.sibling,_=Wa(A,{mode:"visible",children:_.children}),(f.mode&1)===0&&(_.lanes=m),_.return=f,_.sibling=null,u!==null&&(m=f.deletions,m===null?(f.deletions=[u],f.flags|=16):m.push(u)),f.child=_,f.memoizedState=null,_}function y0(u,f){return f=Ah({mode:"visible",children:f},u.mode,0,null),f.return=u,u.child=f}function yh(u,f,m,_){return _!==null&&Uy(_),cu(f,u.child,null,m),u=y0(f,f.pendingProps.children),u.flags|=2,f.memoizedState=null,u}function G4(u,f,m,_,R,A,B){if(m)return f.flags&256?(f.flags&=-257,_=d0(Error(r(422))),yh(u,f,B,_)):f.memoizedState!==null?(f.child=u.child,f.flags|=128,null):(A=_.fallback,R=f.mode,_=Ah({mode:"visible",children:_.children},R,0,null),A=js(A,R,B,null),A.flags|=2,_.return=f,A.return=f,_.sibling=A,f.child=_,(f.mode&1)!==0&&cu(f,u.child,null,B),f.child.memoizedState=m0(B),f.memoizedState=g0,A);if((f.mode&1)===0)return yh(u,f,B,null);if(R.data==="$!"){if(_=R.nextSibling&&R.nextSibling.dataset,_)var G=_.dgst;return _=G,A=Error(r(419)),_=d0(A,_,void 0),yh(u,f,B,_)}if(G=(B&u.childLanes)!==0,En||G){if(_=Wr,_!==null){switch(B&-B){case 4:R=2;break;case 16:R=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:R=32;break;case 536870912:R=268435456;break;default:R=0}R=(R&(_.suspendedLanes|B))!==0?0:R,R!==0&&R!==A.retryLane&&(A.retryLane=R,Qo(u,R),Zi(_,u,R,-1))}return L0(),_=d0(Error(r(421))),yh(u,f,B,_)}return R.data==="$?"?(f.flags|=128,f.child=u.child,f=oB.bind(null,u),R._reactRetry=f,null):(u=A.treeContext,Qn=Aa(R.nextSibling),Zn=f,lr=!0,Yi=null,u!==null&&(hi[vi++]=Ko,hi[vi++]=Zo,hi[vi++]=Is,Ko=u.id,Zo=u.overflow,Is=f),f=y0(f,_.children),f.flags|=4096,f)}function YT(u,f,m){u.lanes|=f;var _=u.alternate;_!==null&&(_.lanes|=f),Xy(u.return,f,m)}function x0(u,f,m,_,R){var A=u.memoizedState;A===null?u.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:_,tail:m,tailMode:R}:(A.isBackwards=f,A.rendering=null,A.renderingStartTime=0,A.last=_,A.tail=m,A.tailMode=R)}function qT(u,f,m){var _=f.pendingProps,R=_.revealOrder,A=_.tail;if(yn(u,f,_.children,m),_=pr.current,(_&2)!==0)_=_&1|2,f.flags|=128;else{if(u!==null&&(u.flags&128)!==0)e:for(u=f.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&YT(u,m,f);else if(u.tag===19)YT(u,m,f);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===f)break e;for(;u.sibling===null;){if(u.return===null||u.return===f)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}_&=1}if(er(pr,_),(f.mode&1)===0)f.memoizedState=null;else switch(R){case"forwards":for(m=f.child,R=null;m!==null;)u=m.alternate,u!==null&&fh(u)===null&&(R=m),m=m.sibling;m=R,m===null?(R=f.child,f.child=null):(R=m.sibling,m.sibling=null),x0(f,!1,R,m,A);break;case"backwards":for(m=null,R=f.child,f.child=null;R!==null;){if(u=R.alternate,u!==null&&fh(u)===null){f.child=R;break}u=R.sibling,R.sibling=m,m=R,R=u}x0(f,!0,m,null,A);break;case"together":x0(f,!1,null,null,void 0);break;default:f.memoizedState=null}return f.child}function xh(u,f){(f.mode&1)===0&&u!==null&&(u.alternate=null,f.alternate=null,f.flags|=2)}function ea(u,f,m){if(u!==null&&(f.dependencies=u.dependencies),Bs|=f.lanes,(m&f.childLanes)===0)return null;if(u!==null&&f.child!==u.child)throw Error(r(153));if(f.child!==null){for(u=f.child,m=Wa(u,u.pendingProps),f.child=m,m.return=f;u.sibling!==null;)u=u.sibling,m=m.sibling=Wa(u,u.pendingProps),m.return=f;m.sibling=null}return f.child}function Y4(u,f,m){switch(f.tag){case 3:VT(f),uu();break;case 5:lT(f);break;case 1:Pn(f.type)&&th(f);break;case 4:Qy(f,f.stateNode.containerInfo);break;case 10:var _=f.type._context,R=f.memoizedProps.value;er(sh,_._currentValue),_._currentValue=R;break;case 13:if(_=f.memoizedState,_!==null)return _.dehydrated!==null?(er(pr,pr.current&1),f.flags|=128,null):(m&f.child.childLanes)!==0?GT(u,f,m):(er(pr,pr.current&1),u=ea(u,f,m),u!==null?u.sibling:null);er(pr,pr.current&1);break;case 19:if(_=(m&f.childLanes)!==0,(u.flags&128)!==0){if(_)return qT(u,f,m);f.flags|=128}if(R=f.memoizedState,R!==null&&(R.rendering=null,R.tail=null,R.lastEffect=null),er(pr,pr.current),_)break;return null;case 22:case 23:return f.lanes=0,jT(u,f,m)}return ea(u,f,m)}var XT,S0,KT,ZT;XT=function(u,f){for(var m=f.child;m!==null;){if(m.tag===5||m.tag===6)u.appendChild(m.stateNode);else if(m.tag!==4&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===f)break;for(;m.sibling===null;){if(m.return===null||m.return===f)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},S0=function(){},KT=function(u,f,m,_){var R=u.memoizedProps;if(R!==_){u=f.stateNode,Os(po.current);var A=null;switch(m){case"input":R=ke(u,R),_=ke(u,_),A=[];break;case"select":R=Y({},R,{value:void 0}),_=Y({},_,{value:void 0}),A=[];break;case"textarea":R=Ce(u,R),_=Ce(u,_),A=[];break;default:typeof R.onClick!="function"&&typeof _.onClick=="function"&&(u.onclick=Qp)}st(m,_);var B;m=null;for(re in R)if(!_.hasOwnProperty(re)&&R.hasOwnProperty(re)&&R[re]!=null)if(re==="style"){var G=R[re];for(B in G)G.hasOwnProperty(B)&&(m||(m={}),m[B]="")}else re!=="dangerouslySetInnerHTML"&&re!=="children"&&re!=="suppressContentEditableWarning"&&re!=="suppressHydrationWarning"&&re!=="autoFocus"&&(i.hasOwnProperty(re)?A||(A=[]):(A=A||[]).push(re,null));for(re in _){var X=_[re];if(G=R!=null?R[re]:void 0,_.hasOwnProperty(re)&&X!==G&&(X!=null||G!=null))if(re==="style")if(G){for(B in G)!G.hasOwnProperty(B)||X&&X.hasOwnProperty(B)||(m||(m={}),m[B]="");for(B in X)X.hasOwnProperty(B)&&G[B]!==X[B]&&(m||(m={}),m[B]=X[B])}else m||(A||(A=[]),A.push(re,m)),m=X;else re==="dangerouslySetInnerHTML"?(X=X?X.__html:void 0,G=G?G.__html:void 0,X!=null&&G!==X&&(A=A||[]).push(re,X)):re==="children"?typeof X!="string"&&typeof X!="number"||(A=A||[]).push(re,""+X):re!=="suppressContentEditableWarning"&&re!=="suppressHydrationWarning"&&(i.hasOwnProperty(re)?(X!=null&&re==="onScroll"&&ir("scroll",u),A||G===X||(A=[])):(A=A||[]).push(re,X))}m&&(A=A||[]).push("style",m);var re=A;(f.updateQueue=re)&&(f.flags|=4)}},ZT=function(u,f,m,_){m!==_&&(f.flags|=4)};function uf(u,f){if(!lr)switch(u.tailMode){case"hidden":f=u.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?u.tail=null:m.sibling=null;break;case"collapsed":m=u.tail;for(var _=null;m!==null;)m.alternate!==null&&(_=m),m=m.sibling;_===null?f||u.tail===null?u.tail=null:u.tail.sibling=null:_.sibling=null}}function an(u){var f=u.alternate!==null&&u.alternate.child===u.child,m=0,_=0;if(f)for(var R=u.child;R!==null;)m|=R.lanes|R.childLanes,_|=R.subtreeFlags&14680064,_|=R.flags&14680064,R.return=u,R=R.sibling;else for(R=u.child;R!==null;)m|=R.lanes|R.childLanes,_|=R.subtreeFlags,_|=R.flags,R.return=u,R=R.sibling;return u.subtreeFlags|=_,u.childLanes=m,f}function q4(u,f,m){var _=f.pendingProps;switch(Wy(f),f.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return an(f),null;case 1:return Pn(f.type)&&eh(),an(f),null;case 3:return _=f.stateNode,pu(),or(Rn),or(nn),t0(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(u===null||u.child===null)&&(oh(f)?f.flags|=4:u===null||u.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,Yi!==null&&(A0(Yi),Yi=null))),S0(u,f),an(f),null;case 5:Jy(f);var R=Os(nf.current);if(m=f.type,u!==null&&f.stateNode!=null)KT(u,f,m,_,R),u.ref!==f.ref&&(f.flags|=512,f.flags|=2097152);else{if(!_){if(f.stateNode===null)throw Error(r(166));return an(f),null}if(u=Os(po.current),oh(f)){_=f.stateNode,m=f.type;var A=f.memoizedProps;switch(_[fo]=f,_[Qc]=A,u=(f.mode&1)!==0,m){case"dialog":ir("cancel",_),ir("close",_);break;case"iframe":case"object":case"embed":ir("load",_);break;case"video":case"audio":for(R=0;R<Xc.length;R++)ir(Xc[R],_);break;case"source":ir("error",_);break;case"img":case"image":case"link":ir("error",_),ir("load",_);break;case"details":ir("toggle",_);break;case"input":it(_,A),ir("invalid",_);break;case"select":_._wrapperState={wasMultiple:!!A.multiple},ir("invalid",_);break;case"textarea":Xt(_,A),ir("invalid",_)}st(m,A),R=null;for(var B in A)if(A.hasOwnProperty(B)){var G=A[B];B==="children"?typeof G=="string"?_.textContent!==G&&(A.suppressHydrationWarning!==!0&&Zp(_.textContent,G,u),R=["children",G]):typeof G=="number"&&_.textContent!==""+G&&(A.suppressHydrationWarning!==!0&&Zp(_.textContent,G,u),R=["children",""+G]):i.hasOwnProperty(B)&&G!=null&&B==="onScroll"&&ir("scroll",_)}switch(m){case"input":ge(_),we(_,A,!0);break;case"textarea":ge(_),Wt(_);break;case"select":case"option":break;default:typeof A.onClick=="function"&&(_.onclick=Qp)}_=R,f.updateQueue=_,_!==null&&(f.flags|=4)}else{B=R.nodeType===9?R:R.ownerDocument,u==="http://www.w3.org/1999/xhtml"&&(u=Jt(m)),u==="http://www.w3.org/1999/xhtml"?m==="script"?(u=B.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild)):typeof _.is=="string"?u=B.createElement(m,{is:_.is}):(u=B.createElement(m),m==="select"&&(B=u,_.multiple?B.multiple=!0:_.size&&(B.size=_.size))):u=B.createElementNS(u,m),u[fo]=f,u[Qc]=_,XT(u,f,!1,!1),f.stateNode=u;e:{switch(B=_t(m,_),m){case"dialog":ir("cancel",u),ir("close",u),R=_;break;case"iframe":case"object":case"embed":ir("load",u),R=_;break;case"video":case"audio":for(R=0;R<Xc.length;R++)ir(Xc[R],u);R=_;break;case"source":ir("error",u),R=_;break;case"img":case"image":case"link":ir("error",u),ir("load",u),R=_;break;case"details":ir("toggle",u),R=_;break;case"input":it(u,_),R=ke(u,_),ir("invalid",u);break;case"option":R=_;break;case"select":u._wrapperState={wasMultiple:!!_.multiple},R=Y({},_,{value:void 0}),ir("invalid",u);break;case"textarea":Xt(u,_),R=Ce(u,_),ir("invalid",u);break;default:R=_}st(m,R),G=R;for(A in G)if(G.hasOwnProperty(A)){var X=G[A];A==="style"?ut(u,X):A==="dangerouslySetInnerHTML"?(X=X?X.__html:void 0,X!=null&&tr(u,X)):A==="children"?typeof X=="string"?(m!=="textarea"||X!=="")&&Je(u,X):typeof X=="number"&&Je(u,""+X):A!=="suppressContentEditableWarning"&&A!=="suppressHydrationWarning"&&A!=="autoFocus"&&(i.hasOwnProperty(A)?X!=null&&A==="onScroll"&&ir("scroll",u):X!=null&&b(u,A,X,B))}switch(m){case"input":ge(u),we(u,_,!1);break;case"textarea":ge(u),Wt(u);break;case"option":_.value!=null&&u.setAttribute("value",""+me(_.value));break;case"select":u.multiple=!!_.multiple,A=_.value,A!=null?Ye(u,!!_.multiple,A,!1):_.defaultValue!=null&&Ye(u,!!_.multiple,_.defaultValue,!0);break;default:typeof R.onClick=="function"&&(u.onclick=Qp)}switch(m){case"button":case"input":case"select":case"textarea":_=!!_.autoFocus;break e;case"img":_=!0;break e;default:_=!1}}_&&(f.flags|=4)}f.ref!==null&&(f.flags|=512,f.flags|=2097152)}return an(f),null;case 6:if(u&&f.stateNode!=null)ZT(u,f,u.memoizedProps,_);else{if(typeof _!="string"&&f.stateNode===null)throw Error(r(166));if(m=Os(nf.current),Os(po.current),oh(f)){if(_=f.stateNode,m=f.memoizedProps,_[fo]=f,(A=_.nodeValue!==m)&&(u=Zn,u!==null))switch(u.tag){case 3:Zp(_.nodeValue,m,(u.mode&1)!==0);break;case 5:u.memoizedProps.suppressHydrationWarning!==!0&&Zp(_.nodeValue,m,(u.mode&1)!==0)}A&&(f.flags|=4)}else _=(m.nodeType===9?m:m.ownerDocument).createTextNode(_),_[fo]=f,f.stateNode=_}return an(f),null;case 13:if(or(pr),_=f.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(lr&&Qn!==null&&(f.mode&1)!==0&&(f.flags&128)===0)eT(),uu(),f.flags|=98560,A=!1;else if(A=oh(f),_!==null&&_.dehydrated!==null){if(u===null){if(!A)throw Error(r(318));if(A=f.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(r(317));A[fo]=f}else uu(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;an(f),A=!1}else Yi!==null&&(A0(Yi),Yi=null),A=!0;if(!A)return f.flags&65536?f:null}return(f.flags&128)!==0?(f.lanes=m,f):(_=_!==null,_!==(u!==null&&u.memoizedState!==null)&&_&&(f.child.flags|=8192,(f.mode&1)!==0&&(u===null||(pr.current&1)!==0?zr===0&&(zr=3):L0())),f.updateQueue!==null&&(f.flags|=4),an(f),null);case 4:return pu(),S0(u,f),u===null&&Kc(f.stateNode.containerInfo),an(f),null;case 10:return qy(f.type._context),an(f),null;case 17:return Pn(f.type)&&eh(),an(f),null;case 19:if(or(pr),A=f.memoizedState,A===null)return an(f),null;if(_=(f.flags&128)!==0,B=A.rendering,B===null)if(_)uf(A,!1);else{if(zr!==0||u!==null&&(u.flags&128)!==0)for(u=f.child;u!==null;){if(B=fh(u),B!==null){for(f.flags|=128,uf(A,!1),_=B.updateQueue,_!==null&&(f.updateQueue=_,f.flags|=4),f.subtreeFlags=0,_=m,m=f.child;m!==null;)A=m,u=_,A.flags&=14680066,B=A.alternate,B===null?(A.childLanes=0,A.lanes=u,A.child=null,A.subtreeFlags=0,A.memoizedProps=null,A.memoizedState=null,A.updateQueue=null,A.dependencies=null,A.stateNode=null):(A.childLanes=B.childLanes,A.lanes=B.lanes,A.child=B.child,A.subtreeFlags=0,A.deletions=null,A.memoizedProps=B.memoizedProps,A.memoizedState=B.memoizedState,A.updateQueue=B.updateQueue,A.type=B.type,u=B.dependencies,A.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),m=m.sibling;return er(pr,pr.current&1|2),f.child}u=u.sibling}A.tail!==null&&Pt()>mu&&(f.flags|=128,_=!0,uf(A,!1),f.lanes=4194304)}else{if(!_)if(u=fh(B),u!==null){if(f.flags|=128,_=!0,m=u.updateQueue,m!==null&&(f.updateQueue=m,f.flags|=4),uf(A,!0),A.tail===null&&A.tailMode==="hidden"&&!B.alternate&&!lr)return an(f),null}else 2*Pt()-A.renderingStartTime>mu&&m!==1073741824&&(f.flags|=128,_=!0,uf(A,!1),f.lanes=4194304);A.isBackwards?(B.sibling=f.child,f.child=B):(m=A.last,m!==null?m.sibling=B:f.child=B,A.last=B)}return A.tail!==null?(f=A.tail,A.rendering=f,A.tail=f.sibling,A.renderingStartTime=Pt(),f.sibling=null,m=pr.current,er(pr,_?m&1|2:m&1),f):(an(f),null);case 22:case 23:return D0(),_=f.memoizedState!==null,u!==null&&u.memoizedState!==null!==_&&(f.flags|=8192),_&&(f.mode&1)!==0?(Jn&1073741824)!==0&&(an(f),f.subtreeFlags&6&&(f.flags|=8192)):an(f),null;case 24:return null;case 25:return null}throw Error(r(156,f.tag))}function X4(u,f){switch(Wy(f),f.tag){case 1:return Pn(f.type)&&eh(),u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 3:return pu(),or(Rn),or(nn),t0(),u=f.flags,(u&65536)!==0&&(u&128)===0?(f.flags=u&-65537|128,f):null;case 5:return Jy(f),null;case 13:if(or(pr),u=f.memoizedState,u!==null&&u.dehydrated!==null){if(f.alternate===null)throw Error(r(340));uu()}return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 19:return or(pr),null;case 4:return pu(),null;case 10:return qy(f.type._context),null;case 22:case 23:return D0(),null;case 24:return null;default:return null}}var Sh=!1,sn=!1,K4=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function vu(u,f){var m=u.ref;if(m!==null)if(typeof m=="function")try{m(null)}catch(_){yr(u,f,_)}else m.current=null}function b0(u,f,m){try{m()}catch(_){yr(u,f,_)}}var QT=!1;function Z4(u,f){if(Dy=Fp,u=EC(),Ty(u)){if("selectionStart"in u)var m={start:u.selectionStart,end:u.selectionEnd};else e:{m=(m=u.ownerDocument)&&m.defaultView||window;var _=m.getSelection&&m.getSelection();if(_&&_.rangeCount!==0){m=_.anchorNode;var R=_.anchorOffset,A=_.focusNode;_=_.focusOffset;try{m.nodeType,A.nodeType}catch{m=null;break e}var B=0,G=-1,X=-1,re=0,ve=0,ye=u,he=null;t:for(;;){for(var Pe;ye!==m||R!==0&&ye.nodeType!==3||(G=B+R),ye!==A||_!==0&&ye.nodeType!==3||(X=B+_),ye.nodeType===3&&(B+=ye.nodeValue.length),(Pe=ye.firstChild)!==null;)he=ye,ye=Pe;for(;;){if(ye===u)break t;if(he===m&&++re===R&&(G=B),he===A&&++ve===_&&(X=B),(Pe=ye.nextSibling)!==null)break;ye=he,he=ye.parentNode}ye=Pe}m=G===-1||X===-1?null:{start:G,end:X}}else m=null}m=m||{start:0,end:0}}else m=null;for(Ly={focusedElem:u,selectionRange:m},Fp=!1,Ie=f;Ie!==null;)if(f=Ie,u=f.child,(f.subtreeFlags&1028)!==0&&u!==null)u.return=f,Ie=u;else for(;Ie!==null;){f=Ie;try{var Le=f.alternate;if((f.flags&1024)!==0)switch(f.tag){case 0:case 11:case 15:break;case 1:if(Le!==null){var $e=Le.memoizedProps,wr=Le.memoizedState,J=f.stateNode,Z=J.getSnapshotBeforeUpdate(f.elementType===f.type?$e:qi(f.type,$e),wr);J.__reactInternalSnapshotBeforeUpdate=Z}break;case 3:var ee=f.stateNode.containerInfo;ee.nodeType===1?ee.textContent="":ee.nodeType===9&&ee.documentElement&&ee.removeChild(ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(be){yr(f,f.return,be)}if(u=f.sibling,u!==null){u.return=f.return,Ie=u;break}Ie=f.return}return Le=QT,QT=!1,Le}function cf(u,f,m){var _=f.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var R=_=_.next;do{if((R.tag&u)===u){var A=R.destroy;R.destroy=void 0,A!==void 0&&b0(f,m,A)}R=R.next}while(R!==_)}}function bh(u,f){if(f=f.updateQueue,f=f!==null?f.lastEffect:null,f!==null){var m=f=f.next;do{if((m.tag&u)===u){var _=m.create;m.destroy=_()}m=m.next}while(m!==f)}}function w0(u){var f=u.ref;if(f!==null){var m=u.stateNode;switch(u.tag){case 5:u=m;break;default:u=m}typeof f=="function"?f(u):f.current=u}}function JT(u){var f=u.alternate;f!==null&&(u.alternate=null,JT(f)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(f=u.stateNode,f!==null&&(delete f[fo],delete f[Qc],delete f[$y],delete f[D4],delete f[L4])),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function e2(u){return u.tag===5||u.tag===3||u.tag===4}function t2(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||e2(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function _0(u,f,m){var _=u.tag;if(_===5||_===6)u=u.stateNode,f?m.nodeType===8?m.parentNode.insertBefore(u,f):m.insertBefore(u,f):(m.nodeType===8?(f=m.parentNode,f.insertBefore(u,m)):(f=m,f.appendChild(u)),m=m._reactRootContainer,m!=null||f.onclick!==null||(f.onclick=Qp));else if(_!==4&&(u=u.child,u!==null))for(_0(u,f,m),u=u.sibling;u!==null;)_0(u,f,m),u=u.sibling}function C0(u,f,m){var _=u.tag;if(_===5||_===6)u=u.stateNode,f?m.insertBefore(u,f):m.appendChild(u);else if(_!==4&&(u=u.child,u!==null))for(C0(u,f,m),u=u.sibling;u!==null;)C0(u,f,m),u=u.sibling}var Gr=null,Xi=!1;function Ba(u,f,m){for(m=m.child;m!==null;)r2(u,f,m),m=m.sibling}function r2(u,f,m){if(Br&&typeof Br.onCommitFiberUnmount=="function")try{Br.onCommitFiberUnmount(Xn,m)}catch{}switch(m.tag){case 5:sn||vu(m,f);case 6:var _=Gr,R=Xi;Gr=null,Ba(u,f,m),Gr=_,Xi=R,Gr!==null&&(Xi?(u=Gr,m=m.stateNode,u.nodeType===8?u.parentNode.removeChild(m):u.removeChild(m)):Gr.removeChild(m.stateNode));break;case 18:Gr!==null&&(Xi?(u=Gr,m=m.stateNode,u.nodeType===8?By(u.parentNode,m):u.nodeType===1&&By(u,m),jc(u)):By(Gr,m.stateNode));break;case 4:_=Gr,R=Xi,Gr=m.stateNode.containerInfo,Xi=!0,Ba(u,f,m),Gr=_,Xi=R;break;case 0:case 11:case 14:case 15:if(!sn&&(_=m.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){R=_=_.next;do{var A=R,B=A.destroy;A=A.tag,B!==void 0&&((A&2)!==0||(A&4)!==0)&&b0(m,f,B),R=R.next}while(R!==_)}Ba(u,f,m);break;case 1:if(!sn&&(vu(m,f),_=m.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=m.memoizedProps,_.state=m.memoizedState,_.componentWillUnmount()}catch(G){yr(m,f,G)}Ba(u,f,m);break;case 21:Ba(u,f,m);break;case 22:m.mode&1?(sn=(_=sn)||m.memoizedState!==null,Ba(u,f,m),sn=_):Ba(u,f,m);break;default:Ba(u,f,m)}}function n2(u){var f=u.updateQueue;if(f!==null){u.updateQueue=null;var m=u.stateNode;m===null&&(m=u.stateNode=new K4),f.forEach(function(_){var R=aB.bind(null,u,_);m.has(_)||(m.add(_),_.then(R,R))})}}function Ki(u,f){var m=f.deletions;if(m!==null)for(var _=0;_<m.length;_++){var R=m[_];try{var A=u,B=f,G=B;e:for(;G!==null;){switch(G.tag){case 5:Gr=G.stateNode,Xi=!1;break e;case 3:Gr=G.stateNode.containerInfo,Xi=!0;break e;case 4:Gr=G.stateNode.containerInfo,Xi=!0;break e}G=G.return}if(Gr===null)throw Error(r(160));r2(A,B,R),Gr=null,Xi=!1;var X=R.alternate;X!==null&&(X.return=null),R.return=null}catch(re){yr(R,f,re)}}if(f.subtreeFlags&12854)for(f=f.child;f!==null;)i2(f,u),f=f.sibling}function i2(u,f){var m=u.alternate,_=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:if(Ki(f,u),vo(u),_&4){try{cf(3,u,u.return),bh(3,u)}catch($e){yr(u,u.return,$e)}try{cf(5,u,u.return)}catch($e){yr(u,u.return,$e)}}break;case 1:Ki(f,u),vo(u),_&512&&m!==null&&vu(m,m.return);break;case 5:if(Ki(f,u),vo(u),_&512&&m!==null&&vu(m,m.return),u.flags&32){var R=u.stateNode;try{Je(R,"")}catch($e){yr(u,u.return,$e)}}if(_&4&&(R=u.stateNode,R!=null)){var A=u.memoizedProps,B=m!==null?m.memoizedProps:A,G=u.type,X=u.updateQueue;if(u.updateQueue=null,X!==null)try{G==="input"&&A.type==="radio"&&A.name!=null&&rt(R,A),_t(G,B);var re=_t(G,A);for(B=0;B<X.length;B+=2){var ve=X[B],ye=X[B+1];ve==="style"?ut(R,ye):ve==="dangerouslySetInnerHTML"?tr(R,ye):ve==="children"?Je(R,ye):b(R,ve,ye,re)}switch(G){case"input":dt(R,A);break;case"textarea":mt(R,A);break;case"select":var he=R._wrapperState.wasMultiple;R._wrapperState.wasMultiple=!!A.multiple;var Pe=A.value;Pe!=null?Ye(R,!!A.multiple,Pe,!1):he!==!!A.multiple&&(A.defaultValue!=null?Ye(R,!!A.multiple,A.defaultValue,!0):Ye(R,!!A.multiple,A.multiple?[]:"",!1))}R[Qc]=A}catch($e){yr(u,u.return,$e)}}break;case 6:if(Ki(f,u),vo(u),_&4){if(u.stateNode===null)throw Error(r(162));R=u.stateNode,A=u.memoizedProps;try{R.nodeValue=A}catch($e){yr(u,u.return,$e)}}break;case 3:if(Ki(f,u),vo(u),_&4&&m!==null&&m.memoizedState.isDehydrated)try{jc(f.containerInfo)}catch($e){yr(u,u.return,$e)}break;case 4:Ki(f,u),vo(u);break;case 13:Ki(f,u),vo(u),R=u.child,R.flags&8192&&(A=R.memoizedState!==null,R.stateNode.isHidden=A,!A||R.alternate!==null&&R.alternate.memoizedState!==null||(k0=Pt())),_&4&&n2(u);break;case 22:if(ve=m!==null&&m.memoizedState!==null,u.mode&1?(sn=(re=sn)||ve,Ki(f,u),sn=re):Ki(f,u),vo(u),_&8192){if(re=u.memoizedState!==null,(u.stateNode.isHidden=re)&&!ve&&(u.mode&1)!==0)for(Ie=u,ve=u.child;ve!==null;){for(ye=Ie=ve;Ie!==null;){switch(he=Ie,Pe=he.child,he.tag){case 0:case 11:case 14:case 15:cf(4,he,he.return);break;case 1:vu(he,he.return);var Le=he.stateNode;if(typeof Le.componentWillUnmount=="function"){_=he,m=he.return;try{f=_,Le.props=f.memoizedProps,Le.state=f.memoizedState,Le.componentWillUnmount()}catch($e){yr(_,m,$e)}}break;case 5:vu(he,he.return);break;case 22:if(he.memoizedState!==null){s2(ye);continue}}Pe!==null?(Pe.return=he,Ie=Pe):s2(ye)}ve=ve.sibling}e:for(ve=null,ye=u;;){if(ye.tag===5){if(ve===null){ve=ye;try{R=ye.stateNode,re?(A=R.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none"):(G=ye.stateNode,X=ye.memoizedProps.style,B=X!=null&&X.hasOwnProperty("display")?X.display:null,G.style.display=Rt("display",B))}catch($e){yr(u,u.return,$e)}}}else if(ye.tag===6){if(ve===null)try{ye.stateNode.nodeValue=re?"":ye.memoizedProps}catch($e){yr(u,u.return,$e)}}else if((ye.tag!==22&&ye.tag!==23||ye.memoizedState===null||ye===u)&&ye.child!==null){ye.child.return=ye,ye=ye.child;continue}if(ye===u)break e;for(;ye.sibling===null;){if(ye.return===null||ye.return===u)break e;ve===ye&&(ve=null),ye=ye.return}ve===ye&&(ve=null),ye.sibling.return=ye.return,ye=ye.sibling}}break;case 19:Ki(f,u),vo(u),_&4&&n2(u);break;case 21:break;default:Ki(f,u),vo(u)}}function vo(u){var f=u.flags;if(f&2){try{e:{for(var m=u.return;m!==null;){if(e2(m)){var _=m;break e}m=m.return}throw Error(r(160))}switch(_.tag){case 5:var R=_.stateNode;_.flags&32&&(Je(R,""),_.flags&=-33);var A=t2(u);C0(u,A,R);break;case 3:case 4:var B=_.stateNode.containerInfo,G=t2(u);_0(u,G,B);break;default:throw Error(r(161))}}catch(X){yr(u,u.return,X)}u.flags&=-3}f&4096&&(u.flags&=-4097)}function Q4(u,f,m){Ie=u,o2(u)}function o2(u,f,m){for(var _=(u.mode&1)!==0;Ie!==null;){var R=Ie,A=R.child;if(R.tag===22&&_){var B=R.memoizedState!==null||Sh;if(!B){var G=R.alternate,X=G!==null&&G.memoizedState!==null||sn;G=Sh;var re=sn;if(Sh=B,(sn=X)&&!re)for(Ie=R;Ie!==null;)B=Ie,X=B.child,B.tag===22&&B.memoizedState!==null?l2(R):X!==null?(X.return=B,Ie=X):l2(R);for(;A!==null;)Ie=A,o2(A),A=A.sibling;Ie=R,Sh=G,sn=re}a2(u)}else(R.subtreeFlags&8772)!==0&&A!==null?(A.return=R,Ie=A):a2(u)}}function a2(u){for(;Ie!==null;){var f=Ie;if((f.flags&8772)!==0){var m=f.alternate;try{if((f.flags&8772)!==0)switch(f.tag){case 0:case 11:case 15:sn||bh(5,f);break;case 1:var _=f.stateNode;if(f.flags&4&&!sn)if(m===null)_.componentDidMount();else{var R=f.elementType===f.type?m.memoizedProps:qi(f.type,m.memoizedProps);_.componentDidUpdate(R,m.memoizedState,_.__reactInternalSnapshotBeforeUpdate)}var A=f.updateQueue;A!==null&&sT(f,A,_);break;case 3:var B=f.updateQueue;if(B!==null){if(m=null,f.child!==null)switch(f.child.tag){case 5:m=f.child.stateNode;break;case 1:m=f.child.stateNode}sT(f,B,m)}break;case 5:var G=f.stateNode;if(m===null&&f.flags&4){m=G;var X=f.memoizedProps;switch(f.type){case"button":case"input":case"select":case"textarea":X.autoFocus&&m.focus();break;case"img":X.src&&(m.src=X.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(f.memoizedState===null){var re=f.alternate;if(re!==null){var ve=re.memoizedState;if(ve!==null){var ye=ve.dehydrated;ye!==null&&jc(ye)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}sn||f.flags&512&&w0(f)}catch(he){yr(f,f.return,he)}}if(f===u){Ie=null;break}if(m=f.sibling,m!==null){m.return=f.return,Ie=m;break}Ie=f.return}}function s2(u){for(;Ie!==null;){var f=Ie;if(f===u){Ie=null;break}var m=f.sibling;if(m!==null){m.return=f.return,Ie=m;break}Ie=f.return}}function l2(u){for(;Ie!==null;){var f=Ie;try{switch(f.tag){case 0:case 11:case 15:var m=f.return;try{bh(4,f)}catch(X){yr(f,m,X)}break;case 1:var _=f.stateNode;if(typeof _.componentDidMount=="function"){var R=f.return;try{_.componentDidMount()}catch(X){yr(f,R,X)}}var A=f.return;try{w0(f)}catch(X){yr(f,A,X)}break;case 5:var B=f.return;try{w0(f)}catch(X){yr(f,B,X)}}}catch(X){yr(f,f.return,X)}if(f===u){Ie=null;break}var G=f.sibling;if(G!==null){G.return=f.return,Ie=G;break}Ie=f.return}}var J4=Math.ceil,wh=C.ReactCurrentDispatcher,T0=C.ReactCurrentOwner,yi=C.ReactCurrentBatchConfig,It=0,Wr=null,Ir=null,Yr=0,Jn=0,gu=Ia(0),zr=0,ff=null,Bs=0,_h=0,M0=0,df=null,An=null,k0=0,mu=1/0,ta=null,Ch=!1,R0=null,$a=null,Th=!1,za=null,Mh=0,pf=0,P0=null,kh=-1,Rh=0;function xn(){return(It&6)!==0?Pt():kh!==-1?kh:kh=Pt()}function Fa(u){return(u.mode&1)===0?1:(It&2)!==0&&Yr!==0?Yr&-Yr:N4.transition!==null?(Rh===0&&(Rh=tC()),Rh):(u=Ht,u!==0||(u=window.event,u=u===void 0?16:cC(u.type)),u)}function Zi(u,f,m,_){if(50<pf)throw pf=0,P0=null,Error(r(185));Nc(u,m,_),((It&2)===0||u!==Wr)&&(u===Wr&&((It&2)===0&&(_h|=m),zr===4&&ja(u,Yr)),In(u,_),m===1&&It===0&&(f.mode&1)===0&&(mu=Pt()+500,rh&&La()))}function In(u,f){var m=u.callbackNode;NN(u,f);var _=Bp(u,u===Wr?Yr:0);if(_===0)m!==null&&qe(m),u.callbackNode=null,u.callbackPriority=0;else if(f=_&-_,u.callbackPriority!==f){if(m!=null&&qe(m),f===1)u.tag===0?O4(c2.bind(null,u)):XC(c2.bind(null,u)),A4(function(){(It&6)===0&&La()}),m=null;else{switch(rC(_)){case 1:m=Dc;break;case 4:m=Lc;break;case 16:m=Yo;break;case 536870912:m=Mt;break;default:m=Yo}m=y2(m,u2.bind(null,u))}u.callbackPriority=f,u.callbackNode=m}}function u2(u,f){if(kh=-1,Rh=0,(It&6)!==0)throw Error(r(327));var m=u.callbackNode;if(yu()&&u.callbackNode!==m)return null;var _=Bp(u,u===Wr?Yr:0);if(_===0)return null;if((_&30)!==0||(_&u.expiredLanes)!==0||f)f=Ph(u,_);else{f=_;var R=It;It|=2;var A=d2();(Wr!==u||Yr!==f)&&(ta=null,mu=Pt()+500,zs(u,f));do try{rB();break}catch(G){f2(u,G)}while(!0);Yy(),wh.current=A,It=R,Ir!==null?f=0:(Wr=null,Yr=0,f=zr)}if(f!==0){if(f===2&&(R=uy(u),R!==0&&(_=R,f=E0(u,R))),f===1)throw m=ff,zs(u,0),ja(u,_),In(u,Pt()),m;if(f===6)ja(u,_);else{if(R=u.current.alternate,(_&30)===0&&!eB(R)&&(f=Ph(u,_),f===2&&(A=uy(u),A!==0&&(_=A,f=E0(u,A))),f===1))throw m=ff,zs(u,0),ja(u,_),In(u,Pt()),m;switch(u.finishedWork=R,u.finishedLanes=_,f){case 0:case 1:throw Error(r(345));case 2:Fs(u,An,ta);break;case 3:if(ja(u,_),(_&130023424)===_&&(f=k0+500-Pt(),10<f)){if(Bp(u,0)!==0)break;if(R=u.suspendedLanes,(R&_)!==_){xn(),u.pingedLanes|=u.suspendedLanes&R;break}u.timeoutHandle=Ny(Fs.bind(null,u,An,ta),f);break}Fs(u,An,ta);break;case 4:if(ja(u,_),(_&4194240)===_)break;for(f=u.eventTimes,R=-1;0<_;){var B=31-Ui(_);A=1<<B,B=f[B],B>R&&(R=B),_&=~A}if(_=R,_=Pt()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*J4(_/1960))-_,10<_){u.timeoutHandle=Ny(Fs.bind(null,u,An,ta),_);break}Fs(u,An,ta);break;case 5:Fs(u,An,ta);break;default:throw Error(r(329))}}}return In(u,Pt()),u.callbackNode===m?u2.bind(null,u):null}function E0(u,f){var m=df;return u.current.memoizedState.isDehydrated&&(zs(u,f).flags|=256),u=Ph(u,f),u!==2&&(f=An,An=m,f!==null&&A0(f)),u}function A0(u){An===null?An=u:An.push.apply(An,u)}function eB(u){for(var f=u;;){if(f.flags&16384){var m=f.updateQueue;if(m!==null&&(m=m.stores,m!==null))for(var _=0;_<m.length;_++){var R=m[_],A=R.getSnapshot;R=R.value;try{if(!Gi(A(),R))return!1}catch{return!1}}}if(m=f.child,f.subtreeFlags&16384&&m!==null)m.return=f,f=m;else{if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function ja(u,f){for(f&=~M0,f&=~_h,u.suspendedLanes|=f,u.pingedLanes&=~f,u=u.expirationTimes;0<f;){var m=31-Ui(f),_=1<<m;u[m]=-1,f&=~_}}function c2(u){if((It&6)!==0)throw Error(r(327));yu();var f=Bp(u,0);if((f&1)===0)return In(u,Pt()),null;var m=Ph(u,f);if(u.tag!==0&&m===2){var _=uy(u);_!==0&&(f=_,m=E0(u,_))}if(m===1)throw m=ff,zs(u,0),ja(u,f),In(u,Pt()),m;if(m===6)throw Error(r(345));return u.finishedWork=u.current.alternate,u.finishedLanes=f,Fs(u,An,ta),In(u,Pt()),null}function I0(u,f){var m=It;It|=1;try{return u(f)}finally{It=m,It===0&&(mu=Pt()+500,rh&&La())}}function $s(u){za!==null&&za.tag===0&&(It&6)===0&&yu();var f=It;It|=1;var m=yi.transition,_=Ht;try{if(yi.transition=null,Ht=1,u)return u()}finally{Ht=_,yi.transition=m,It=f,(It&6)===0&&La()}}function D0(){Jn=gu.current,or(gu)}function zs(u,f){u.finishedWork=null,u.finishedLanes=0;var m=u.timeoutHandle;if(m!==-1&&(u.timeoutHandle=-1,E4(m)),Ir!==null)for(m=Ir.return;m!==null;){var _=m;switch(Wy(_),_.tag){case 1:_=_.type.childContextTypes,_!=null&&eh();break;case 3:pu(),or(Rn),or(nn),t0();break;case 5:Jy(_);break;case 4:pu();break;case 13:or(pr);break;case 19:or(pr);break;case 10:qy(_.type._context);break;case 22:case 23:D0()}m=m.return}if(Wr=u,Ir=u=Wa(u.current,null),Yr=Jn=f,zr=0,ff=null,M0=_h=Bs=0,An=df=null,Ls!==null){for(f=0;f<Ls.length;f++)if(m=Ls[f],_=m.interleaved,_!==null){m.interleaved=null;var R=_.next,A=m.pending;if(A!==null){var B=A.next;A.next=R,_.next=B}m.pending=_}Ls=null}return u}function f2(u,f){do{var m=Ir;try{if(Yy(),dh.current=gh,ph){for(var _=hr.memoizedState;_!==null;){var R=_.queue;R!==null&&(R.pending=null),_=_.next}ph=!1}if(Ns=0,jr=$r=hr=null,of=!1,af=0,T0.current=null,m===null||m.return===null){zr=1,ff=f,Ir=null;break}e:{var A=u,B=m.return,G=m,X=f;if(f=Yr,G.flags|=32768,X!==null&&typeof X=="object"&&typeof X.then=="function"){var re=X,ve=G,ye=ve.tag;if((ve.mode&1)===0&&(ye===0||ye===11||ye===15)){var he=ve.alternate;he?(ve.updateQueue=he.updateQueue,ve.memoizedState=he.memoizedState,ve.lanes=he.lanes):(ve.updateQueue=null,ve.memoizedState=null)}var Pe=NT(B);if(Pe!==null){Pe.flags&=-257,BT(Pe,B,G,A,f),Pe.mode&1&&OT(A,re,f),f=Pe,X=re;var Le=f.updateQueue;if(Le===null){var $e=new Set;$e.add(X),f.updateQueue=$e}else Le.add(X);break e}else{if((f&1)===0){OT(A,re,f),L0();break e}X=Error(r(426))}}else if(lr&&G.mode&1){var wr=NT(B);if(wr!==null){(wr.flags&65536)===0&&(wr.flags|=256),BT(wr,B,G,A,f),Uy(hu(X,G));break e}}A=X=hu(X,G),zr!==4&&(zr=2),df===null?df=[A]:df.push(A),A=B;do{switch(A.tag){case 3:A.flags|=65536,f&=-f,A.lanes|=f;var J=DT(A,X,f);aT(A,J);break e;case 1:G=X;var Z=A.type,ee=A.stateNode;if((A.flags&128)===0&&(typeof Z.getDerivedStateFromError=="function"||ee!==null&&typeof ee.componentDidCatch=="function"&&($a===null||!$a.has(ee)))){A.flags|=65536,f&=-f,A.lanes|=f;var be=LT(A,G,f);aT(A,be);break e}}A=A.return}while(A!==null)}h2(m)}catch(Ve){f=Ve,Ir===m&&m!==null&&(Ir=m=m.return);continue}break}while(!0)}function d2(){var u=wh.current;return wh.current=gh,u===null?gh:u}function L0(){(zr===0||zr===3||zr===2)&&(zr=4),Wr===null||(Bs&268435455)===0&&(_h&268435455)===0||ja(Wr,Yr)}function Ph(u,f){var m=It;It|=2;var _=d2();(Wr!==u||Yr!==f)&&(ta=null,zs(u,f));do try{tB();break}catch(R){f2(u,R)}while(!0);if(Yy(),It=m,wh.current=_,Ir!==null)throw Error(r(261));return Wr=null,Yr=0,zr}function tB(){for(;Ir!==null;)p2(Ir)}function rB(){for(;Ir!==null&&!sr();)p2(Ir)}function p2(u){var f=m2(u.alternate,u,Jn);u.memoizedProps=u.pendingProps,f===null?h2(u):Ir=f,T0.current=null}function h2(u){var f=u;do{var m=f.alternate;if(u=f.return,(f.flags&32768)===0){if(m=q4(m,f,Jn),m!==null){Ir=m;return}}else{if(m=X4(m,f),m!==null){m.flags&=32767,Ir=m;return}if(u!==null)u.flags|=32768,u.subtreeFlags=0,u.deletions=null;else{zr=6,Ir=null;return}}if(f=f.sibling,f!==null){Ir=f;return}Ir=f=u}while(f!==null);zr===0&&(zr=5)}function Fs(u,f,m){var _=Ht,R=yi.transition;try{yi.transition=null,Ht=1,nB(u,f,m,_)}finally{yi.transition=R,Ht=_}return null}function nB(u,f,m,_){do yu();while(za!==null);if((It&6)!==0)throw Error(r(327));m=u.finishedWork;var R=u.finishedLanes;if(m===null)return null;if(u.finishedWork=null,u.finishedLanes=0,m===u.current)throw Error(r(177));u.callbackNode=null,u.callbackPriority=0;var A=m.lanes|m.childLanes;if(BN(u,A),u===Wr&&(Ir=Wr=null,Yr=0),(m.subtreeFlags&2064)===0&&(m.flags&2064)===0||Th||(Th=!0,y2(Yo,function(){return yu(),null})),A=(m.flags&15990)!==0,(m.subtreeFlags&15990)!==0||A){A=yi.transition,yi.transition=null;var B=Ht;Ht=1;var G=It;It|=4,T0.current=null,Z4(u,m),i2(m,u),_4(Ly),Fp=!!Dy,Ly=Dy=null,u.current=m,Q4(m),mr(),It=G,Ht=B,yi.transition=A}else u.current=m;if(Th&&(Th=!1,za=u,Mh=R),A=u.pendingLanes,A===0&&($a=null),Ps(m.stateNode),In(u,Pt()),f!==null)for(_=u.onRecoverableError,m=0;m<f.length;m++)R=f[m],_(R.value,{componentStack:R.stack,digest:R.digest});if(Ch)throw Ch=!1,u=R0,R0=null,u;return(Mh&1)!==0&&u.tag!==0&&yu(),A=u.pendingLanes,(A&1)!==0?u===P0?pf++:(pf=0,P0=u):pf=0,La(),null}function yu(){if(za!==null){var u=rC(Mh),f=yi.transition,m=Ht;try{if(yi.transition=null,Ht=16>u?16:u,za===null)var _=!1;else{if(u=za,za=null,Mh=0,(It&6)!==0)throw Error(r(331));var R=It;for(It|=4,Ie=u.current;Ie!==null;){var A=Ie,B=A.child;if((Ie.flags&16)!==0){var G=A.deletions;if(G!==null){for(var X=0;X<G.length;X++){var re=G[X];for(Ie=re;Ie!==null;){var ve=Ie;switch(ve.tag){case 0:case 11:case 15:cf(8,ve,A)}var ye=ve.child;if(ye!==null)ye.return=ve,Ie=ye;else for(;Ie!==null;){ve=Ie;var he=ve.sibling,Pe=ve.return;if(JT(ve),ve===re){Ie=null;break}if(he!==null){he.return=Pe,Ie=he;break}Ie=Pe}}}var Le=A.alternate;if(Le!==null){var $e=Le.child;if($e!==null){Le.child=null;do{var wr=$e.sibling;$e.sibling=null,$e=wr}while($e!==null)}}Ie=A}}if((A.subtreeFlags&2064)!==0&&B!==null)B.return=A,Ie=B;else e:for(;Ie!==null;){if(A=Ie,(A.flags&2048)!==0)switch(A.tag){case 0:case 11:case 15:cf(9,A,A.return)}var J=A.sibling;if(J!==null){J.return=A.return,Ie=J;break e}Ie=A.return}}var Z=u.current;for(Ie=Z;Ie!==null;){B=Ie;var ee=B.child;if((B.subtreeFlags&2064)!==0&&ee!==null)ee.return=B,Ie=ee;else e:for(B=Z;Ie!==null;){if(G=Ie,(G.flags&2048)!==0)try{switch(G.tag){case 0:case 11:case 15:bh(9,G)}}catch(Ve){yr(G,G.return,Ve)}if(G===B){Ie=null;break e}var be=G.sibling;if(be!==null){be.return=G.return,Ie=be;break e}Ie=G.return}}if(It=R,La(),Br&&typeof Br.onPostCommitFiberRoot=="function")try{Br.onPostCommitFiberRoot(Xn,u)}catch{}_=!0}return _}finally{Ht=m,yi.transition=f}}return!1}function v2(u,f,m){f=hu(m,f),f=DT(u,f,1),u=Na(u,f,1),f=xn(),u!==null&&(Nc(u,1,f),In(u,f))}function yr(u,f,m){if(u.tag===3)v2(u,u,m);else for(;f!==null;){if(f.tag===3){v2(f,u,m);break}else if(f.tag===1){var _=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&($a===null||!$a.has(_))){u=hu(m,u),u=LT(f,u,1),f=Na(f,u,1),u=xn(),f!==null&&(Nc(f,1,u),In(f,u));break}}f=f.return}}function iB(u,f,m){var _=u.pingCache;_!==null&&_.delete(f),f=xn(),u.pingedLanes|=u.suspendedLanes&m,Wr===u&&(Yr&m)===m&&(zr===4||zr===3&&(Yr&130023424)===Yr&&500>Pt()-k0?zs(u,0):M0|=m),In(u,f)}function g2(u,f){f===0&&((u.mode&1)===0?f=1:(f=Np,Np<<=1,(Np&130023424)===0&&(Np=4194304)));var m=xn();u=Qo(u,f),u!==null&&(Nc(u,f,m),In(u,m))}function oB(u){var f=u.memoizedState,m=0;f!==null&&(m=f.retryLane),g2(u,m)}function aB(u,f){var m=0;switch(u.tag){case 13:var _=u.stateNode,R=u.memoizedState;R!==null&&(m=R.retryLane);break;case 19:_=u.stateNode;break;default:throw Error(r(314))}_!==null&&_.delete(f),g2(u,m)}var m2;m2=function(u,f,m){if(u!==null)if(u.memoizedProps!==f.pendingProps||Rn.current)En=!0;else{if((u.lanes&m)===0&&(f.flags&128)===0)return En=!1,Y4(u,f,m);En=(u.flags&131072)!==0}else En=!1,lr&&(f.flags&1048576)!==0&&KC(f,ih,f.index);switch(f.lanes=0,f.tag){case 2:var _=f.type;xh(u,f),u=f.pendingProps;var R=au(f,nn.current);du(f,m),R=i0(null,f,_,u,R,m);var A=o0();return f.flags|=1,typeof R=="object"&&R!==null&&typeof R.render=="function"&&R.$$typeof===void 0?(f.tag=1,f.memoizedState=null,f.updateQueue=null,Pn(_)?(A=!0,th(f)):A=!1,f.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,Zy(f),R.updater=mh,f.stateNode=R,R._reactInternals=f,f0(f,_,u,m),f=v0(null,f,_,!0,A,m)):(f.tag=0,lr&&A&&jy(f),yn(null,f,R,m),f=f.child),f;case 16:_=f.elementType;e:{switch(xh(u,f),u=f.pendingProps,R=_._init,_=R(_._payload),f.type=_,R=f.tag=lB(_),u=qi(_,u),R){case 0:f=h0(null,f,_,u,m);break e;case 1:f=HT(null,f,_,u,m);break e;case 11:f=$T(null,f,_,u,m);break e;case 14:f=zT(null,f,_,qi(_.type,u),m);break e}throw Error(r(306,_,""))}return f;case 0:return _=f.type,R=f.pendingProps,R=f.elementType===_?R:qi(_,R),h0(u,f,_,R,m);case 1:return _=f.type,R=f.pendingProps,R=f.elementType===_?R:qi(_,R),HT(u,f,_,R,m);case 3:e:{if(VT(f),u===null)throw Error(r(387));_=f.pendingProps,A=f.memoizedState,R=A.element,oT(u,f),ch(f,_,null,m);var B=f.memoizedState;if(_=B.element,A.isDehydrated)if(A={element:_,isDehydrated:!1,cache:B.cache,pendingSuspenseBoundaries:B.pendingSuspenseBoundaries,transitions:B.transitions},f.updateQueue.baseState=A,f.memoizedState=A,f.flags&256){R=hu(Error(r(423)),f),f=UT(u,f,_,m,R);break e}else if(_!==R){R=hu(Error(r(424)),f),f=UT(u,f,_,m,R);break e}else for(Qn=Aa(f.stateNode.containerInfo.firstChild),Zn=f,lr=!0,Yi=null,m=nT(f,null,_,m),f.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(uu(),_===R){f=ea(u,f,m);break e}yn(u,f,_,m)}f=f.child}return f;case 5:return lT(f),u===null&&Vy(f),_=f.type,R=f.pendingProps,A=u!==null?u.memoizedProps:null,B=R.children,Oy(_,R)?B=null:A!==null&&Oy(_,A)&&(f.flags|=32),WT(u,f),yn(u,f,B,m),f.child;case 6:return u===null&&Vy(f),null;case 13:return GT(u,f,m);case 4:return Qy(f,f.stateNode.containerInfo),_=f.pendingProps,u===null?f.child=cu(f,null,_,m):yn(u,f,_,m),f.child;case 11:return _=f.type,R=f.pendingProps,R=f.elementType===_?R:qi(_,R),$T(u,f,_,R,m);case 7:return yn(u,f,f.pendingProps,m),f.child;case 8:return yn(u,f,f.pendingProps.children,m),f.child;case 12:return yn(u,f,f.pendingProps.children,m),f.child;case 10:e:{if(_=f.type._context,R=f.pendingProps,A=f.memoizedProps,B=R.value,er(sh,_._currentValue),_._currentValue=B,A!==null)if(Gi(A.value,B)){if(A.children===R.children&&!Rn.current){f=ea(u,f,m);break e}}else for(A=f.child,A!==null&&(A.return=f);A!==null;){var G=A.dependencies;if(G!==null){B=A.child;for(var X=G.firstContext;X!==null;){if(X.context===_){if(A.tag===1){X=Jo(-1,m&-m),X.tag=2;var re=A.updateQueue;if(re!==null){re=re.shared;var ve=re.pending;ve===null?X.next=X:(X.next=ve.next,ve.next=X),re.pending=X}}A.lanes|=m,X=A.alternate,X!==null&&(X.lanes|=m),Xy(A.return,m,f),G.lanes|=m;break}X=X.next}}else if(A.tag===10)B=A.type===f.type?null:A.child;else if(A.tag===18){if(B=A.return,B===null)throw Error(r(341));B.lanes|=m,G=B.alternate,G!==null&&(G.lanes|=m),Xy(B,m,f),B=A.sibling}else B=A.child;if(B!==null)B.return=A;else for(B=A;B!==null;){if(B===f){B=null;break}if(A=B.sibling,A!==null){A.return=B.return,B=A;break}B=B.return}A=B}yn(u,f,R.children,m),f=f.child}return f;case 9:return R=f.type,_=f.pendingProps.children,du(f,m),R=gi(R),_=_(R),f.flags|=1,yn(u,f,_,m),f.child;case 14:return _=f.type,R=qi(_,f.pendingProps),R=qi(_.type,R),zT(u,f,_,R,m);case 15:return FT(u,f,f.type,f.pendingProps,m);case 17:return _=f.type,R=f.pendingProps,R=f.elementType===_?R:qi(_,R),xh(u,f),f.tag=1,Pn(_)?(u=!0,th(f)):u=!1,du(f,m),AT(f,_,R),f0(f,_,R,m),v0(null,f,_,!0,u,m);case 19:return qT(u,f,m);case 22:return jT(u,f,m)}throw Error(r(156,f.tag))};function y2(u,f){return vt(u,f)}function sB(u,f,m,_){this.tag=u,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xi(u,f,m,_){return new sB(u,f,m,_)}function O0(u){return u=u.prototype,!(!u||!u.isReactComponent)}function lB(u){if(typeof u=="function")return O0(u)?1:0;if(u!=null){if(u=u.$$typeof,u===N)return 11;if(u===F)return 14}return 2}function Wa(u,f){var m=u.alternate;return m===null?(m=xi(u.tag,f,u.key,u.mode),m.elementType=u.elementType,m.type=u.type,m.stateNode=u.stateNode,m.alternate=u,u.alternate=m):(m.pendingProps=f,m.type=u.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=u.flags&14680064,m.childLanes=u.childLanes,m.lanes=u.lanes,m.child=u.child,m.memoizedProps=u.memoizedProps,m.memoizedState=u.memoizedState,m.updateQueue=u.updateQueue,f=u.dependencies,m.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},m.sibling=u.sibling,m.index=u.index,m.ref=u.ref,m}function Eh(u,f,m,_,R,A){var B=2;if(_=u,typeof u=="function")O0(u)&&(B=1);else if(typeof u=="string")B=5;else e:switch(u){case E:return js(m.children,R,A,f);case I:B=8,R|=8;break;case D:return u=xi(12,m,f,R|2),u.elementType=D,u.lanes=A,u;case $:return u=xi(13,m,f,R),u.elementType=$,u.lanes=A,u;case z:return u=xi(19,m,f,R),u.elementType=z,u.lanes=A,u;case K:return Ah(m,R,A,f);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case k:B=10;break e;case O:B=9;break e;case N:B=11;break e;case F:B=14;break e;case j:B=16,_=null;break e}throw Error(r(130,u==null?u:typeof u,""))}return f=xi(B,m,f,R),f.elementType=u,f.type=_,f.lanes=A,f}function js(u,f,m,_){return u=xi(7,u,_,f),u.lanes=m,u}function Ah(u,f,m,_){return u=xi(22,u,_,f),u.elementType=K,u.lanes=m,u.stateNode={isHidden:!1},u}function N0(u,f,m){return u=xi(6,u,null,f),u.lanes=m,u}function B0(u,f,m){return f=xi(4,u.children!==null?u.children:[],u.key,f),f.lanes=m,f.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},f}function uB(u,f,m,_,R){this.tag=f,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cy(0),this.expirationTimes=cy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cy(0),this.identifierPrefix=_,this.onRecoverableError=R,this.mutableSourceEagerHydrationData=null}function $0(u,f,m,_,R,A,B,G,X){return u=new uB(u,f,m,G,X),f===1?(f=1,A===!0&&(f|=8)):f=0,A=xi(3,null,null,f),u.current=A,A.stateNode=u,A.memoizedState={element:_,isDehydrated:m,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zy(A),u}function cB(u,f,m){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M,key:_==null?null:""+_,children:u,containerInfo:f,implementation:m}}function x2(u){if(!u)return Da;u=u._reactInternals;e:{if(rn(u)!==u||u.tag!==1)throw Error(r(170));var f=u;do{switch(f.tag){case 3:f=f.stateNode.context;break e;case 1:if(Pn(f.type)){f=f.stateNode.__reactInternalMemoizedMergedChildContext;break e}}f=f.return}while(f!==null);throw Error(r(171))}if(u.tag===1){var m=u.type;if(Pn(m))return YC(u,m,f)}return f}function S2(u,f,m,_,R,A,B,G,X){return u=$0(m,_,!0,u,R,A,B,G,X),u.context=x2(null),m=u.current,_=xn(),R=Fa(m),A=Jo(_,R),A.callback=f??null,Na(m,A,R),u.current.lanes=R,Nc(u,R,_),In(u,_),u}function Ih(u,f,m,_){var R=f.current,A=xn(),B=Fa(R);return m=x2(m),f.context===null?f.context=m:f.pendingContext=m,f=Jo(A,B),f.payload={element:u},_=_===void 0?null:_,_!==null&&(f.callback=_),u=Na(R,f,B),u!==null&&(Zi(u,R,B,A),uh(u,R,B)),B}function Dh(u){if(u=u.current,!u.child)return null;switch(u.child.tag){case 5:return u.child.stateNode;default:return u.child.stateNode}}function b2(u,f){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var m=u.retryLane;u.retryLane=m!==0&&m<f?m:f}}function z0(u,f){b2(u,f),(u=u.alternate)&&b2(u,f)}function fB(){return null}var w2=typeof reportError=="function"?reportError:function(u){console.error(u)};function F0(u){this._internalRoot=u}Lh.prototype.render=F0.prototype.render=function(u){var f=this._internalRoot;if(f===null)throw Error(r(409));Ih(u,f,null,null)},Lh.prototype.unmount=F0.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var f=u.containerInfo;$s(function(){Ih(null,u,null,null)}),f[qo]=null}};function Lh(u){this._internalRoot=u}Lh.prototype.unstable_scheduleHydration=function(u){if(u){var f=oC();u={blockedOn:null,target:u,priority:f};for(var m=0;m<Ra.length&&f!==0&&f<Ra[m].priority;m++);Ra.splice(m,0,u),m===0&&lC(u)}};function j0(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function Oh(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11&&(u.nodeType!==8||u.nodeValue!==" react-mount-point-unstable "))}function _2(){}function dB(u,f,m,_,R){if(R){if(typeof _=="function"){var A=_;_=function(){var re=Dh(B);A.call(re)}}var B=S2(f,_,u,0,null,!1,!1,"",_2);return u._reactRootContainer=B,u[qo]=B.current,Kc(u.nodeType===8?u.parentNode:u),$s(),B}for(;R=u.lastChild;)u.removeChild(R);if(typeof _=="function"){var G=_;_=function(){var re=Dh(X);G.call(re)}}var X=$0(u,0,!1,null,null,!1,!1,"",_2);return u._reactRootContainer=X,u[qo]=X.current,Kc(u.nodeType===8?u.parentNode:u),$s(function(){Ih(f,X,m,_)}),X}function Nh(u,f,m,_,R){var A=m._reactRootContainer;if(A){var B=A;if(typeof R=="function"){var G=R;R=function(){var X=Dh(B);G.call(X)}}Ih(f,B,u,R)}else B=dB(m,f,u,R,_);return Dh(B)}nC=function(u){switch(u.tag){case 3:var f=u.stateNode;if(f.current.memoizedState.isDehydrated){var m=Oc(f.pendingLanes);m!==0&&(fy(f,m|1),In(f,Pt()),(It&6)===0&&(mu=Pt()+500,La()))}break;case 13:$s(function(){var _=Qo(u,1);if(_!==null){var R=xn();Zi(_,u,1,R)}}),z0(u,1)}},dy=function(u){if(u.tag===13){var f=Qo(u,134217728);if(f!==null){var m=xn();Zi(f,u,134217728,m)}z0(u,134217728)}},iC=function(u){if(u.tag===13){var f=Fa(u),m=Qo(u,f);if(m!==null){var _=xn();Zi(m,u,f,_)}z0(u,f)}},oC=function(){return Ht},aC=function(u,f){var m=Ht;try{return Ht=u,f()}finally{Ht=m}},Hi=function(u,f,m){switch(f){case"input":if(dt(u,m),f=m.name,m.type==="radio"&&f!=null){for(m=u;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll("input[name="+JSON.stringify(""+f)+'][type="radio"]'),f=0;f<m.length;f++){var _=m[f];if(_!==u&&_.form===u.form){var R=Jp(_);if(!R)throw Error(r(90));pe(_),dt(_,R)}}}break;case"textarea":mt(u,m);break;case"select":f=m.value,f!=null&&Ye(u,!!m.multiple,f,!1)}},Vi=I0,et=$s;var pB={usingClientEntryPoint:!1,Events:[Jc,iu,Jp,qn,Ur,I0]},hf={findFiberByHostInstance:Es,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hB={bundleType:hf.bundleType,version:hf.version,rendererPackageName:hf.rendererPackageName,rendererConfig:hf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(u){return u=ie(u),u===null?null:u.stateNode},findFiberByHostInstance:hf.findFiberByHostInstance||fB,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 Bh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bh.isDisabled&&Bh.supportsFiber)try{Xn=Bh.inject(hB),Br=Bh}catch{}}return Dn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pB,Dn.createPortal=function(u,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!j0(f))throw Error(r(200));return cB(u,f,null,m)},Dn.createRoot=function(u,f){if(!j0(u))throw Error(r(299));var m=!1,_="",R=w2;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(_=f.identifierPrefix),f.onRecoverableError!==void 0&&(R=f.onRecoverableError)),f=$0(u,1,!1,null,null,m,!1,_,R),u[qo]=f.current,Kc(u.nodeType===8?u.parentNode:u),new F0(f)},Dn.findDOMNode=function(u){if(u==null)return null;if(u.nodeType===1)return u;var f=u._reactInternals;if(f===void 0)throw typeof u.render=="function"?Error(r(188)):(u=Object.keys(u).join(","),Error(r(268,u)));return u=ie(f),u=u===null?null:u.stateNode,u},Dn.flushSync=function(u){return $s(u)},Dn.hydrate=function(u,f,m){if(!Oh(f))throw Error(r(200));return Nh(null,u,f,!0,m)},Dn.hydrateRoot=function(u,f,m){if(!j0(u))throw Error(r(405));var _=m!=null&&m.hydratedSources||null,R=!1,A="",B=w2;if(m!=null&&(m.unstable_strictMode===!0&&(R=!0),m.identifierPrefix!==void 0&&(A=m.identifierPrefix),m.onRecoverableError!==void 0&&(B=m.onRecoverableError)),f=S2(f,null,u,1,m??null,R,!1,A,B),u[qo]=f.current,Kc(u),_)for(u=0;u<_.length;u++)m=_[u],R=m._getVersion,R=R(m._source),f.mutableSourceEagerHydrationData==null?f.mutableSourceEagerHydrationData=[m,R]:f.mutableSourceEagerHydrationData.push(m,R);return new Lh(f)},Dn.render=function(u,f,m){if(!Oh(f))throw Error(r(200));return Nh(null,u,f,!1,m)},Dn.unmountComponentAtNode=function(u){if(!Oh(u))throw Error(r(40));return u._reactRootContainer?($s(function(){Nh(null,null,u,!1,function(){u._reactRootContainer=null,u[qo]=null})}),!0):!1},Dn.unstable_batchedUpdates=I0,Dn.unstable_renderSubtreeIntoContainer=function(u,f,m,_){if(!Oh(m))throw Error(r(200));if(u==null||u._reactInternals===void 0)throw Error(r(38));return Nh(u,f,m,!1,_)},Dn.version="18.3.1-next-f1338f8080-20240426",Dn}var A2;function KA(){if(A2)return V0.exports;A2=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(),V0.exports=CB(),V0.exports}var I2;function TB(){if(I2)return $h;I2=1;var e=KA();return $h.createRoot=e.createRoot,$h.hydrateRoot=e.hydrateRoot,$h}var MB=TB();const kB=Lb(MB);var L=Qg();const io=Lb(L),Pd=yB({__proto__:null,default:io},[L]),RB=L.createContext(null),Y0={didCatch:!1,error:null};class PB extends L.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Y0}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:o,reason:"imperative-api"}),this.setState(Y0)}}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&&EB(t.resetKeys,i)){var o,a;(o=(a=this.props).onReset)===null||o===void 0||o.call(a,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(Y0)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:o,error:a}=this.state;let s=t;if(o){const l={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(l);else if(n)s=L.createElement(n,l);else if(i===null||L.isValidElement(i))s=i;else throw a}return L.createElement(RB.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function EB(){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 qr(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 AB=typeof Symbol=="function"&&Symbol.observable||"@@observable",D2=AB,q0=()=>Math.random().toString(36).substring(7).split("").join("."),IB={INIT:`@@redux/INIT${q0()}`,REPLACE:`@@redux/REPLACE${q0()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${q0()}`},cg=IB;function No(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 ZA(e,t,r){if(typeof e!="function")throw new Error(qr(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(qr(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(qr(1));return r(ZA)(e,t)}let n=e,i=t,o=new Map,a=o,s=0,l=!1;function c(){a===o&&(a=new Map,o.forEach((y,S)=>{a.set(S,y)}))}function d(){if(l)throw new Error(qr(3));return i}function p(y){if(typeof y!="function")throw new Error(qr(4));if(l)throw new Error(qr(5));let S=!0;c();const w=s++;return a.set(w,y),function(){if(S){if(l)throw new Error(qr(6));S=!1,c(),a.delete(w),o=null}}}function h(y){if(!No(y))throw new Error(qr(7));if(typeof y.type>"u")throw new Error(qr(8));if(typeof y.type!="string")throw new Error(qr(17));if(l)throw new Error(qr(9));try{l=!0,i=n(i,y)}finally{l=!1}return(o=a).forEach(w=>{w()}),y}function v(y){if(typeof y!="function")throw new Error(qr(10));n=y,h({type:cg.REPLACE})}function g(){const y=p;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(qr(11));function w(){const C=S;C.next&&C.next(d())}return w(),{unsubscribe:y(w)}},[D2](){return this}}}return h({type:cg.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:v,[D2]:g}}function DB(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:cg.INIT})>"u")throw new Error(qr(12));if(typeof r(void 0,{type:cg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(qr(13))})}function Jg(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}const n=Object.keys(r);let i;try{DB(r)}catch(o){i=o}return function(a={},s){if(i)throw i;let l=!1;const c={};for(let d=0;d<n.length;d++){const p=n[d],h=r[p],v=a[p],g=h(v,s);if(typeof g>"u")throw s&&s.type,new Error(qr(14));c[p]=g,l=l||g!==v}return l=l||n.length!==Object.keys(a).length,l?c:a}}function fg(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function LB(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error(qr(15))};const a={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},s=e.map(l=>l(a));return o=fg(...s)(i.dispatch),{...i,dispatch:o}}}function QA(e){return No(e)&&"type"in e&&typeof e.type=="string"}var Ob=Symbol.for("immer-nothing"),ld=Symbol.for("immer-draftable"),jn=Symbol.for("immer-state");function Qr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ll=Object.getPrototypeOf;function oo(e){return!!e&&!!e[jn]}function ao(e){var t;return e?JA(e)||Array.isArray(e)||!!e[ld]||!!((t=e.constructor)!=null&&t[ld])||sp(e)||lp(e):!1}var OB=Object.prototype.constructor.toString();function JA(e){if(!e||typeof e!="object")return!1;const t=Ll(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)===OB}function NB(e){return oo(e)||Qr(15,e),e[jn].base_}function Ed(e,t){Ol(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Ol(e){const t=e[jn];return t?t.type_:Array.isArray(e)?1:sp(e)?2:lp(e)?3:0}function Ad(e,t){return Ol(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function X0(e,t){return Ol(e)===2?e.get(t):e[t]}function eI(e,t,r){const n=Ol(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function BB(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function sp(e){return e instanceof Map}function lp(e){return e instanceof Set}function dl(e){return e.copy_||e.base_}function zx(e,t){if(sp(e))return new Map(e);if(lp(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=JA(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[jn];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const a=i[o],s=n[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Ll(e),n)}else{const n=Ll(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function Nb(e,t=!1){return em(e)||oo(e)||!ao(e)||(Ol(e)>1&&(e.set=e.add=e.clear=e.delete=$B),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>Nb(n,!0))),e}function $B(){Qr(2)}function em(e){return Object.isFrozen(e)}var Fx={};function Nl(e){const t=Fx[e];return t||Qr(0,e),t}function zB(e,t){Fx[e]||(Fx[e]=t)}var Id;function tI(){return Id}function FB(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function L2(e,t){t&&(Nl("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function jx(e){Wx(e),e.drafts_.forEach(jB),e.drafts_=null}function Wx(e){e===Id&&(Id=e.parent_)}function O2(e){return Id=FB(Id,e)}function jB(e){const t=e[jn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function N2(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[jn].modified_&&(jx(t),Qr(4)),ao(e)&&(e=dg(t,e),t.parent_||pg(t,e)),t.patches_&&Nl("Patches").generateReplacementPatches_(r[jn].base_,e,t.patches_,t.inversePatches_)):e=dg(t,r,[]),jx(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ob?e:void 0}function dg(e,t,r){if(em(t))return t;const n=t[jn];if(!n)return Ed(t,(i,o)=>B2(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return pg(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let o=i,a=!1;n.type_===3&&(o=new Set(i),i.clear(),a=!0),Ed(o,(s,l)=>B2(e,n,i,s,l,r,a)),pg(e,i,!1),r&&e.patches_&&Nl("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function B2(e,t,r,n,i,o,a){if(oo(i)){const s=o&&t&&t.type_!==3&&!Ad(t.assigned_,n)?o.concat(n):void 0,l=dg(e,i,s);if(eI(r,n,l),oo(l))e.canAutoFreeze_=!1;else return}else a&&r.add(i);if(ao(i)&&!em(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;dg(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&pg(e,i)}}function pg(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Nb(t,r)}function WB(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:tI(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=Bb;r&&(i=[n],o=Dd);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.draft_=s,n.revoke_=a,s}var Bb={get(e,t){if(t===jn)return e;const r=dl(e);if(!Ad(r,t))return HB(e,r,t);const n=r[t];return e.finalized_||!ao(n)?n:n===K0(e.base_,t)?(Z0(e),e.copy_[t]=Vx(n,e)):n},has(e,t){return t in dl(e)},ownKeys(e){return Reflect.ownKeys(dl(e))},set(e,t,r){const n=rI(dl(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=K0(dl(e),t),o=i==null?void 0:i[jn];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(BB(r,i)&&(r!==void 0||Ad(e.base_,t)))return!0;Z0(e),Hx(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 K0(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Z0(e),Hx(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=dl(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Qr(11)},getPrototypeOf(e){return Ll(e.base_)},setPrototypeOf(){Qr(12)}},Dd={};Ed(Bb,(e,t)=>{Dd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Dd.deleteProperty=function(e,t){return Dd.set.call(this,e,t,void 0)};Dd.set=function(e,t,r){return Bb.set.call(this,e[0],t,r,e[0])};function K0(e,t){const r=e[jn];return(r?dl(r):e)[t]}function HB(e,t,r){var i;const n=rI(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function rI(e,t){if(!(t in e))return;let r=Ll(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Ll(r)}}function Hx(e){e.modified_||(e.modified_=!0,e.parent_&&Hx(e.parent_))}function Z0(e){e.copy_||(e.copy_=zx(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var VB=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const a=this;return function(l=o,...c){return a.produce(l,d=>r.call(this,d,...c))}}typeof r!="function"&&Qr(6),n!==void 0&&typeof n!="function"&&Qr(7);let i;if(ao(t)){const o=O2(this),a=Vx(t,void 0);let s=!0;try{i=r(a),s=!1}finally{s?jx(o):Wx(o)}return L2(o,n),N2(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Ob&&(i=void 0),this.autoFreeze_&&Nb(i,!0),n){const o=[],a=[];Nl("Patches").generateReplacementPatches_(t,i,o,a),n(o,a)}return i}else Qr(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,i;return[this.produce(t,r,(a,s)=>{n=a,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){ao(e)||Qr(8),oo(e)&&(e=nI(e));const t=O2(this),r=Vx(e,void 0);return r[jn].isManual_=!0,Wx(t),r}finishDraft(e,t){const r=e&&e[jn];(!r||!r.isManual_)&&Qr(9);const{scope_:n}=r;return L2(n,t),N2(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=Nl("Patches").applyPatches_;return oo(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Vx(e,t){const r=sp(e)?Nl("MapSet").proxyMap_(e,t):lp(e)?Nl("MapSet").proxySet_(e,t):WB(e,t);return(t?t.scope_:tI()).drafts_.push(r),r}function nI(e){return oo(e)||Qr(10,e),iI(e)}function iI(e){if(!ao(e)||em(e))return e;const t=e[jn];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=zx(e,t.scope_.immer_.useStrictShallowCopy_)}else r=zx(e,!0);return Ed(r,(n,i)=>{eI(r,n,iI(i))}),t&&(t.finalized_=!1),r}function UB(){const t="replace",r="add",n="remove";function i(h,v,g,x){switch(h.type_){case 0:case 2:return a(h,v,g,x);case 1:return o(h,v,g,x);case 3:return s(h,v,g,x)}}function o(h,v,g,x){let{base_:y,assigned_:S}=h,w=h.copy_;w.length<y.length&&([y,w]=[w,y],[g,x]=[x,g]);for(let b=0;b<y.length;b++)if(S[b]&&w[b]!==y[b]){const C=v.concat([b]);g.push({op:t,path:C,value:p(w[b])}),x.push({op:t,path:C,value:p(y[b])})}for(let b=y.length;b<w.length;b++){const C=v.concat([b]);g.push({op:r,path:C,value:p(w[b])})}for(let b=w.length-1;y.length<=b;--b){const C=v.concat([b]);x.push({op:n,path:C})}}function a(h,v,g,x){const{base_:y,copy_:S}=h;Ed(h.assigned_,(w,b)=>{const C=X0(y,w),T=X0(S,w),M=b?Ad(y,w)?t:r:n;if(C===T&&M===t)return;const E=v.concat(w);g.push(M===n?{op:M,path:E}:{op:M,path:E,value:T}),x.push(M===r?{op:n,path:E}:M===n?{op:r,path:E,value:p(C)}:{op:t,path:E,value:p(C)})})}function s(h,v,g,x){let{base_:y,copy_:S}=h,w=0;y.forEach(b=>{if(!S.has(b)){const C=v.concat([w]);g.push({op:n,path:C,value:b}),x.unshift({op:r,path:C,value:b})}w++}),w=0,S.forEach(b=>{if(!y.has(b)){const C=v.concat([w]);g.push({op:r,path:C,value:b}),x.unshift({op:n,path:C,value:b})}w++})}function l(h,v,g,x){g.push({op:t,path:[],value:v===Ob?void 0:v}),x.push({op:t,path:[],value:h})}function c(h,v){return v.forEach(g=>{const{path:x,op:y}=g;let S=h;for(let T=0;T<x.length-1;T++){const M=Ol(S);let E=x[T];typeof E!="string"&&typeof E!="number"&&(E=""+E),(M===0||M===1)&&(E==="__proto__"||E==="constructor")&&Qr(19),typeof S=="function"&&E==="prototype"&&Qr(19),S=X0(S,E),typeof S!="object"&&Qr(18,x.join("/"))}const w=Ol(S),b=d(g.value),C=x[x.length-1];switch(y){case t:switch(w){case 2:return S.set(C,b);case 3:Qr(16);default:return S[C]=b}case r:switch(w){case 1:return C==="-"?S.push(b):S.splice(C,0,b);case 2:return S.set(C,b);case 3:return S.add(b);default:return S[C]=b}case n:switch(w){case 1:return S.splice(C,1);case 2:return S.delete(C);case 3:return S.delete(g.value);default:return delete S[C]}default:Qr(17,y)}}),h}function d(h){if(!ao(h))return h;if(Array.isArray(h))return h.map(d);if(sp(h))return new Map(Array.from(h.entries()).map(([g,x])=>[g,d(x)]));if(lp(h))return new Set(Array.from(h).map(d));const v=Object.create(Ll(h));for(const g in h)v[g]=d(h[g]);return Ad(h,ld)&&(v[ld]=h[ld]),v}function p(h){return oo(h)?d(h):h}zB("Patches",{applyPatches_:c,generatePatches_:i,generateReplacementPatches_:l})}var si=new VB,up=si.produce,oI=si.produceWithPatches.bind(si);si.setAutoFreeze.bind(si);si.setUseStrictShallowCopy.bind(si);var $2=si.applyPatches.bind(si);si.createDraft.bind(si);si.finishDraft.bind(si);function GB(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function YB(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function qB(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 z2=e=>Array.isArray(e)?e:[e];function XB(e){const t=Array.isArray(e[0])?e[0]:e;return qB(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function KB(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var ZB=class{constructor(e){this.value=e}deref(){return this.value}},QB=typeof WeakRef<"u"?WeakRef:ZB,JB=0,F2=1;function zh(){return{s:JB,v:void 0,o:null,p:null}}function Ld(e,t={}){let r=zh();const{resultEqualityCheck:n}=t;let i,o=0;function a(){var p;let s=r;const{length:l}=arguments;for(let h=0,v=l;h<v;h++){const g=arguments[h];if(typeof g=="function"||typeof g=="object"&&g!==null){let x=s.o;x===null&&(s.o=x=new WeakMap);const y=x.get(g);y===void 0?(s=zh(),x.set(g,s)):s=y}else{let x=s.p;x===null&&(s.p=x=new Map);const y=x.get(g);y===void 0?(s=zh(),x.set(g,s)):s=y}}const c=s;let d;if(s.s===F2)d=s.v;else if(d=e.apply(null,arguments),o++,n){const h=((p=i==null?void 0:i.deref)==null?void 0:p.call(i))??i;h!=null&&n(h,d)&&(d=h,o!==0&&o--),i=typeof d=="object"&&d!==null||typeof d=="function"?new QB(d):d}return c.s=F2,c.v=d,d}return a.clearCache=()=>{r=zh(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function aI(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let o=0,a=0,s,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),GB(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const d={...r,...l},{memoize:p,memoizeOptions:h=[],argsMemoize:v=Ld,argsMemoizeOptions:g=[]}=d,x=z2(h),y=z2(g),S=XB(i),w=p(function(){return o++,c.apply(null,arguments)},...x),b=v(function(){a++;const T=KB(S,arguments);return s=w.apply(null,T),s},...y);return Object.assign(b,{resultFunc:c,memoizedResultFunc:w,dependencies:S,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var $b=aI(Ld),e$=Object.assign((e,t=$b)=>{YB(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(o=>e[o]);return t(n,(...o)=>o.reduce((a,s,l)=>(a[r[l]]=s,a),{}))},{withTypes:()=>e$});function sI(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var t$=sI(),r$=sI,n$=(...e)=>{const t=aI(...e),r=Object.assign((...n)=>{const i=t(...n),o=(a,...s)=>i(oo(a)?nI(a):a,...s);return Object.assign(o,i),o},{withTypes:()=>r});return r};n$(Ld);var i$=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fg:fg.apply(null,arguments)},o$=e=>e&&typeof e.match=="function";function Cn(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(gn(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=>QA(n)&&n.type===e,r}var lI=class qf extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,qf.prototype)}static get[Symbol.species](){return qf}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new qf(...t[0].concat(this)):new qf(...t.concat(this))}};function j2(e){return ao(e)?up(e,()=>{}):e}function W2(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(gn(10));const n=r.insert(t,e);return e.set(t,n),n}function a$(e){return typeof e=="boolean"}var s$=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new lI;return r&&(a$(r)?a.push(t$):a.push(r$(r.extraArgument))),a},Wu="RTK_autoBatch",gf=()=>e=>({payload:e,meta:{[Wu]:!0}}),uI=e=>t=>{setTimeout(t,e)},l$=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:uI(10),u$=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?l$:e.type==="callback"?e.queueNotification:uI(e.timeout),c=()=>{a=!1,o&&(o=!1,s.forEach(d=>d()))};return Object.assign({},n,{subscribe(d){const p=()=>i&&d(),h=n.subscribe(p);return s.add(d),()=>{h(),s.delete(d)}},dispatch(d){var p;try{return i=!((p=d==null?void 0:d.meta)!=null&&p[Wu]),o=!i,o&&(a||(a=!0,l(c))),n.dispatch(d)}finally{i=!0}}})},c$=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new lI(e);return n&&i.push(u$(typeof n=="object"?n:void 0)),i};function cI(e){const t=s$(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof r=="function")s=r;else if(No(r))s=Jg(r);else throw new Error(gn(1));let l;typeof n=="function"?l=n(t):l=t();let c=fg;i&&(c=i$({trace:!1,...typeof i=="object"&&i}));const d=LB(...l),p=c$(d);let h=typeof a=="function"?a(p):p();const v=c(...h);return ZA(s,o,v)}function fI(e){const t={},r=[];let n;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(gn(28));if(s in t)throw new Error(gn(29));return t[s]=a,i},addMatcher(o,a){return r.push({matcher:o,reducer:a}),i},addDefaultCase(o){return n=o,i}};return e(i),[t,r,n]}function f$(e){return typeof e=="function"}function d$(e,t){let[r,n,i]=fI(t),o;if(f$(e))o=()=>j2(e());else{const s=j2(e);o=()=>s}function a(s=o(),l){let c=[r[l.type],...n.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[i]),c.reduce((d,p)=>{if(p)if(oo(d)){const v=p(d,l);return v===void 0?d:v}else{if(ao(d))return up(d,h=>p(h,l));{const h=p(d,l);if(h===void 0){if(d===null)return d;throw new Error(gn(9))}return h}}return d},s)}return a.getInitialState=o,a}var p$="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zb=(e=21)=>{let t="",r=e;for(;r--;)t+=p$[Math.random()*64|0];return t},dI=(e,t)=>o$(e)?e.match(t):e(t);function ha(...e){return t=>e.some(r=>dI(r,t))}function ud(...e){return t=>e.every(r=>dI(r,t))}function tm(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 cp(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Fb(...e){return e.length===0?t=>tm(t,["pending"]):cp(e)?ha(...e.map(t=>t.pending)):Fb()(e[0])}function sc(...e){return e.length===0?t=>tm(t,["rejected"]):cp(e)?ha(...e.map(t=>t.rejected)):sc()(e[0])}function rm(...e){const t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?ud(sc(...e),t):cp(e)?ud(sc(...e),t):rm()(e[0])}function vs(...e){return e.length===0?t=>tm(t,["fulfilled"]):cp(e)?ha(...e.map(t=>t.fulfilled)):vs()(e[0])}function Ux(...e){return e.length===0?t=>tm(t,["pending","fulfilled","rejected"]):cp(e)?ha(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):Ux()(e[0])}var h$=["name","message","stack","code"],Q0=class{constructor(e,t){Ws(this,"_type");this.payload=e,this.meta=t}},H2=class{constructor(e,t){Ws(this,"_type");this.payload=e,this.meta=t}},v$=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of h$)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},V2=(()=>{function e(t,r,n){const i=Cn(t+"/fulfilled",(l,c,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),o=Cn(t+"/pending",(l,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:l,requestStatus:"pending"}})),a=Cn(t+"/rejected",(l,c,d,p,h)=>({payload:p,error:(n&&n.serializeError||v$)(l||"Rejected"),meta:{...h||{},arg:d,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(c,d,p)=>{const h=n!=null&&n.idGenerator?n.idGenerator(l):zb(),v=new AbortController;let g,x;function y(w){x=w,v.abort()}const S=async function(){var C,T;let w;try{let M=(C=n==null?void 0:n.condition)==null?void 0:C.call(n,l,{getState:d,extra:p});if(m$(M)&&(M=await M),M===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const E=new Promise((I,D)=>{g=()=>{D({name:"AbortError",message:x||"Aborted"})},v.signal.addEventListener("abort",g)});c(o(h,l,(T=n==null?void 0:n.getPendingMeta)==null?void 0:T.call(n,{requestId:h,arg:l},{getState:d,extra:p}))),w=await Promise.race([E,Promise.resolve(r(l,{dispatch:c,getState:d,extra:p,requestId:h,signal:v.signal,abort:y,rejectWithValue:(I,D)=>new Q0(I,D),fulfillWithValue:(I,D)=>new H2(I,D)})).then(I=>{if(I instanceof Q0)throw I;return I instanceof H2?i(I.payload,h,l,I.meta):i(I,h,l)})])}catch(M){w=M instanceof Q0?a(null,h,l,M.payload,M.meta):a(M,h,l)}finally{g&&v.signal.removeEventListener("abort",g)}return n&&!n.dispatchConditionRejection&&a.match(w)&&w.meta.condition||c(w),w}();return Object.assign(S,{abort:y,requestId:h,arg:l,unwrap(){return S.then(g$)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:ha(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function g$(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function m$(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var y$=Symbol.for("rtk-slice-createasyncthunk");function x$(e,t){return`${e}/${t}`}function S$({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[y$];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(gn(11));const s=(typeof i.reducers=="function"?i.reducers(w$()):i.reducers)||{},l=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(b,C){const T=typeof b=="string"?b:b.type;if(!T)throw new Error(gn(12));if(T in c.sliceCaseReducersByType)throw new Error(gn(13));return c.sliceCaseReducersByType[T]=C,d},addMatcher(b,C){return c.sliceMatchers.push({matcher:b,reducer:C}),d},exposeAction(b,C){return c.actionCreators[b]=C,d},exposeCaseReducer(b,C){return c.sliceCaseReducersByName[b]=C,d}};l.forEach(b=>{const C=s[b],T={reducerName:b,type:x$(o,b),createNotation:typeof i.reducers=="function"};C$(C)?M$(T,C,d,t):_$(T,C,d)});function p(){const[b={},C=[],T=void 0]=typeof i.extraReducers=="function"?fI(i.extraReducers):[i.extraReducers],M={...b,...c.sliceCaseReducersByType};return d$(i.initialState,E=>{for(let I in M)E.addCase(I,M[I]);for(let I of c.sliceMatchers)E.addMatcher(I.matcher,I.reducer);for(let I of C)E.addMatcher(I.matcher,I.reducer);T&&E.addDefaultCase(T)})}const h=b=>b,v=new Map;let g;function x(b,C){return g||(g=p()),g(b,C)}function y(){return g||(g=p()),g.getInitialState()}function S(b,C=!1){function T(E){let I=E[b];return typeof I>"u"&&C&&(I=y()),I}function M(E=h){const I=W2(v,C,{insert:()=>new WeakMap});return W2(I,E,{insert:()=>{const D={};for(const[k,O]of Object.entries(i.selectors??{}))D[k]=b$(O,E,y,C);return D}})}return{reducerPath:b,getSelectors:M,get selectors(){return M(T)},selectSlice:T}}const w={name:o,reducer:x,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:y,...S(a),injectInto(b,{reducerPath:C,...T}={}){const M=C??a;return b.inject({reducerPath:M,reducer:x},T),{...w,...S(M,!0)}}};return w}}function b$(e,t,r,n){function i(o,...a){let s=t(o);return typeof s>"u"&&n&&(s=r()),e(s,...a)}return i.unwrapped=e,i}var Pi=S$();function w$(){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 _$({type:e,reducerName:t,createNotation:r},n,i){let o,a;if("reducer"in n){if(r&&!T$(n))throw new Error(gn(17));o=n.reducer,a=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?Cn(e,a):Cn(e))}function C$(e){return e._reducerDefinitionType==="asyncThunk"}function T$(e){return e._reducerDefinitionType==="reducerWithPrepare"}function M$({type:e,reducerName:t},r,n,i){if(!i)throw new Error(gn(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:c,options:d}=r,p=i(e,o,d);n.exposeAction(t,p),a&&n.addCase(p.fulfilled,a),s&&n.addCase(p.pending,s),l&&n.addCase(p.rejected,l),c&&n.addMatcher(p.settled,c),n.exposeCaseReducer(t,{fulfilled:a||Fh,pending:s||Fh,rejected:l||Fh,settled:c||Fh})}function Fh(){}var k$=(e,t)=>{if(typeof e!="function")throw new Error(gn(32))},jb="listenerMiddleware",R$=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:o}=e;if(t)i=Cn(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(gn(21));return k$(o),{predicate:i,type:t,effect:o}},P$=Object.assign(e=>{const{type:t,predicate:r,effect:n}=R$(e);return{id:zb(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(gn(22))}}},{withTypes:()=>P$}),E$=Object.assign(Cn(`${jb}/add`),{withTypes:()=>E$});Cn(`${jb}/removeAll`);var A$=Object.assign(Cn(`${jb}/remove`),{withTypes:()=>A$});function gn(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 J0={exports:{}},e1={};/**
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 U2;function I$(){if(U2)return e1;U2=1;var e=Qg();function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,s=e.useDebugValue;return e1.useSyncExternalStoreWithSelector=function(l,c,d,p,h){var v=i(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=a(function(){function y(T){if(!S){if(S=!0,w=T,T=p(T),h!==void 0&&g.hasValue){var M=g.value;if(h(M,T))return b=M}return b=T}if(M=b,r(w,T))return M;var E=p(T);return h!==void 0&&h(M,E)?M:(w=T,b=E)}var S=!1,w,b,C=d===void 0?null:d;return[function(){return y(c())},C===null?void 0:function(){return y(C())}]},[c,d,p,h]);var x=n(l,v[0],v[1]);return o(function(){g.hasValue=!0,g.value=x},[x]),s(x),x},e1}var G2;function D$(){return G2||(G2=1,J0.exports=I$()),J0.exports}var L$=D$(),Et="default"in Pd?io:Pd,Y2=Symbol.for("react-redux-context"),q2=typeof globalThis<"u"?globalThis:{};function O$(){if(!Et.createContext)return{};const e=q2[Y2]??(q2[Y2]=new Map);let t=e.get(Et.createContext);return t||(t=Et.createContext(null),e.set(Et.createContext,t)),t}var va=O$(),pI=()=>{throw new Error("uSES not initialized!")};function Wb(e=va){return function(){return Et.useContext(e)}}var hI=Wb(),vI=pI,N$=e=>{vI=e},B$=(e,t)=>e===t;function $$(e=va){const t=e===va?hI:Wb(e),r=(n,i={})=>{const{equalityFn:o=B$,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:c,stabilityCheck:d,identityFunctionCheck:p}=t();Et.useRef(!0);const h=Et.useCallback({[n.name](g){return n(g)}}[n.name],[n,d,a.stabilityCheck]),v=vI(l.addNestedSub,s.getState,c||s.getState,h,o);return Et.useDebugValue(v),v};return Object.assign(r,{withTypes:()=>r}),r}var gI=$$(),z$=Symbol.for("react.element"),F$=Symbol.for("react.portal"),j$=Symbol.for("react.fragment"),W$=Symbol.for("react.strict_mode"),H$=Symbol.for("react.profiler"),V$=Symbol.for("react.provider"),U$=Symbol.for("react.context"),G$=Symbol.for("react.server_context"),mI=Symbol.for("react.forward_ref"),Y$=Symbol.for("react.suspense"),q$=Symbol.for("react.suspense_list"),Hb=Symbol.for("react.memo"),X$=Symbol.for("react.lazy"),K$=mI,Z$=Hb;function Q$(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case z$:{const r=e.type;switch(r){case j$:case H$:case W$:case Y$:case q$:return r;default:{const n=r&&r.$$typeof;switch(n){case G$:case U$:case mI:case X$:case Hb:case V$:return n;default:return t}}}}case F$:return t}}}function J$(e){return Q$(e)===Hb}function ez(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,l,c,d,p,h;function v(w,b){return l=w,c=b,d=e(l,c),p=t(n,c),h=r(d,p,c),s=!0,h}function g(){return d=e(l,c),t.dependsOnOwnProps&&(p=t(n,c)),h=r(d,p,c),h}function x(){return e.dependsOnOwnProps&&(d=e(l,c)),t.dependsOnOwnProps&&(p=t(n,c)),h=r(d,p,c),h}function y(){const w=e(l,c),b=!a(w,d);return d=w,b&&(h=r(d,p,c)),h}function S(w,b){const C=!o(b,c),T=!i(w,l,b,c);return l=w,c=b,C&&T?g():C?x():T?y():h}return function(b,C){return s?S(b,C):v(b,C)}}function tz(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const o=t(e,i),a=r(e,i),s=n(e,i);return ez(o,a,s,e,i)}function rz(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...o)=>t(i(...o)))}return r}function Gx(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function X2(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function yI(e,t){return function(n,{displayName:i}){const o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=e,o.dependsOnOwnProps=X2(e);let c=o(s,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=X2(c),c=o(s,l)),c},o}}function Vb(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function nz(e){return e&&typeof e=="object"?Gx(t=>rz(e,t)):e?typeof e=="function"?yI(e):Vb(e,"mapDispatchToProps"):Gx(t=>({dispatch:t}))}function iz(e){return e?typeof e=="function"?yI(e):Vb(e,"mapStateToProps"):Gx(()=>({}))}function oz(e,t,r){return{...r,...e,...t}}function az(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let o=!1,a;return function(l,c,d){const p=e(l,c,d);return o?i(p,a)||(a=p):(o=!0,a=p),a}}}function sz(e){return e?typeof e=="function"?az(e):Vb(e,"mergeProps"):()=>oz}function xI(e){e()}function lz(){let e=null,t=null;return{clear(){e=null,t=null},notify(){xI(()=>{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 K2={notify(){},get:()=>[]};function SI(e,t){let r,n=K2,i=0,o=!1;function a(x){d();const y=n.subscribe(x);let S=!1;return()=>{S||(S=!0,y(),p())}}function s(){n.notify()}function l(){g.onStateChange&&g.onStateChange()}function c(){return o}function d(){i++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=lz())}function p(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=K2)}function h(){o||(o=!0,d())}function v(){o&&(o=!1,p())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:h,tryUnsubscribe:v,getListeners:()=>n};return g}var uz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cz=typeof navigator<"u"&&navigator.product==="ReactNative",hg=uz||cz?Et.useLayoutEffect:Et.useEffect;function Z2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function us(e,t){if(Z2(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])||!Z2(e[r[i]],t[r[i]]))return!1;return!0}var fz={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},dz={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},pz={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hz={[K$]:pz,[Z$]:bI};function Q2(e){return J$(e)?bI:hz[e.$$typeof]||fz}var vz=Object.defineProperty,gz=Object.getOwnPropertyNames,J2=Object.getOwnPropertySymbols,mz=Object.getOwnPropertyDescriptor,yz=Object.getPrototypeOf,eM=Object.prototype;function Yx(e,t){if(typeof t!="string"){if(eM){const o=yz(t);o&&o!==eM&&Yx(e,o)}let r=gz(t);J2&&(r=r.concat(J2(t)));const n=Q2(e),i=Q2(t);for(let o=0;o<r.length;++o){const a=r[o];if(!dz[a]&&!(i&&i[a])&&!(n&&n[a])){const s=mz(t,a);try{vz(e,a,s)}catch{}}}}return e}var wI=pI,xz=e=>{wI=e},Sz=[null,null];function bz(e,t,r){hg(()=>e(...t),r)}function wz(e,t,r,n,i,o){e.current=n,r.current=!1,i.current&&(i.current=null,o())}function _z(e,t,r,n,i,o,a,s,l,c,d){if(!e)return()=>{};let p=!1,h=null;const v=()=>{if(p||!s.current)return;const x=t.getState();let y,S;try{y=n(x,i.current)}catch(w){S=w,h=w}S||(h=null),y===o.current?a.current||c():(o.current=y,l.current=y,a.current=!0,d())};return r.onStateChange=v,r.trySubscribe(),v(),()=>{if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}function Cz(e,t){return e===t}function Tz(e,t,r,{pure:n,areStatesEqual:i=Cz,areOwnPropsEqual:o=us,areStatePropsEqual:a=us,areMergedPropsEqual:s=us,forwardRef:l=!1,context:c=va}={}){const d=c,p=iz(e),h=nz(t),v=sz(r),g=!!e;return y=>{const S=y.displayName||y.name||"Component",w=`Connect(${S})`,b={shouldHandleStateChanges:g,displayName:w,wrappedComponentName:S,WrappedComponent:y,initMapStateToProps:p,initMapDispatchToProps:h,initMergeProps:v,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function C(E){const[I,D,k]=Et.useMemo(()=>{const{reactReduxForwardedRef:pe,...Ne}=E;return[E.context,pe,Ne]},[E]),O=Et.useMemo(()=>{let pe=d;return I!=null&&I.Consumer,pe},[I,d]),N=Et.useContext(O),$=!!E.store&&!!E.store.getState&&!!E.store.dispatch,z=!!N&&!!N.store,F=$?E.store:N.store,j=z?N.getServerState:F.getState,K=Et.useMemo(()=>tz(F.dispatch,b),[F]),[V,H]=Et.useMemo(()=>{if(!g)return Sz;const pe=SI(F,$?void 0:N.subscription),Ne=pe.notifyNestedSubs.bind(pe);return[pe,Ne]},[F,$,N]),Y=Et.useMemo(()=>$?N:{...N,subscription:V},[$,N,V]),W=Et.useRef(void 0),q=Et.useRef(k),te=Et.useRef(void 0),le=Et.useRef(!1),ne=Et.useRef(!1),Q=Et.useRef(void 0);hg(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const ce=Et.useMemo(()=>()=>te.current&&k===q.current?te.current:K(F.getState(),k),[F,k]),me=Et.useMemo(()=>Ne=>V?_z(g,F,V,K,q,W,le,ne,te,H,Ne):()=>{},[V]);bz(wz,[q,W,le,k,te,H]);let de;try{de=wI(me,ce,j?()=>K(j(),k):ce)}catch(pe){throw Q.current&&(pe.message+=`
49
+ The error may be correlated with this previous error:
50
+ ${Q.current.stack}
51
+
52
+ `),pe}hg(()=>{Q.current=void 0,te.current=void 0,W.current=de});const fe=Et.useMemo(()=>Et.createElement(y,{...de,ref:D}),[D,y,de]);return Et.useMemo(()=>g?Et.createElement(O.Provider,{value:Y},fe):fe,[O,fe,Y])}const M=Et.memo(C);if(M.WrappedComponent=y,M.displayName=C.displayName=w,l){const I=Et.forwardRef(function(k,O){return Et.createElement(M,{...k,reactReduxForwardedRef:O})});return I.displayName=w,I.WrappedComponent=y,Yx(I,y)}return Yx(M,y)}}var di=Tz;function Mz({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=Et.useMemo(()=>{const c=SI(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,n,i,o]),s=Et.useMemo(()=>e.getState(),[e]);hg(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const l=t||va;return Et.createElement(l.Provider,{value:a},r)}var tM=Mz;function _I(e=va){const t=e===va?hI:Wb(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var CI=_I();function kz(e=va){const t=e===va?CI:_I(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var TI=kz(),Rz=xI;N$(L$.useSyncExternalStoreWithSelector);xz(L.useSyncExternalStore);function MI(e,t,r){return t&&(Array.isArray(t)?t.map(n=>MI(e,n,r)):typeof t=="object"?Ub(t,r):t)}const Ub=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:MI(e,i,t)}),{}),kI=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),Pz=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),yl=e=>Ub(e,kI),rM=e=>Ub(e,Pz),qx=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),Ez=e=>Object.fromEntries(new URLSearchParams(e).entries()),Az=(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"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(n))+" "+i[o]},nM=!!window.authArgs&&yl(window.authArgs),Od={black:"#000",white:"#fff"},ns={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828",900:"#b71c1c"},xu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},pl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Su={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},hl={50:"#e8f5e9",300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Iz={900:"#ff6f00"},mf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Xx={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 ga(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const Ro="$$material";function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vg.apply(null,arguments)}function Dz(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 Lz(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 Oz=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),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(Lz(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Dz(i);try{o.insertRule(n,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),cn="-ms-",gg="-moz-",Ot="-webkit-",RI="comm",Gb="rule",Yb="decl",Nz="@import",PI="@keyframes",Bz="@layer",$z=Math.abs,nm=String.fromCharCode,zz=Object.assign;function Fz(e,t){return Xr(e,0)^45?(((t<<2^Xr(e,0))<<2^Xr(e,1))<<2^Xr(e,2))<<2^Xr(e,3):0}function EI(e){return e.trim()}function jz(e,t){return(e=t.exec(e))?e[0]:e}function Nt(e,t,r){return e.replace(t,r)}function Kx(e,t){return e.indexOf(t)}function Xr(e,t){return e.charCodeAt(t)|0}function Nd(e,t,r){return e.slice(t,r)}function bo(e){return e.length}function qb(e){return e.length}function jh(e,t){return t.push(e),e}function Wz(e,t){return e.map(t).join("")}var im=1,lc=1,AI=0,Wn=0,Dr=0,_c="";function om(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:im,column:lc,length:a,return:""}}function yf(e,t){return zz(om("",null,null,"",null,null,0),e,{length:-e.length},t)}function Hz(){return Dr}function Vz(){return Dr=Wn>0?Xr(_c,--Wn):0,lc--,Dr===10&&(lc=1,im--),Dr}function oi(){return Dr=Wn<AI?Xr(_c,Wn++):0,lc++,Dr===10&&(lc=1,im++),Dr}function Po(){return Xr(_c,Wn)}function Wv(){return Wn}function fp(e,t){return Nd(_c,e,t)}function Bd(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 II(e){return im=lc=1,AI=bo(_c=e),Wn=0,[]}function DI(e){return _c="",e}function Hv(e){return EI(fp(Wn-1,Zx(e===91?e+2:e===40?e+1:e)))}function Uz(e){for(;(Dr=Po())&&Dr<33;)oi();return Bd(e)>2||Bd(Dr)>3?"":" "}function Gz(e,t){for(;--t&&oi()&&!(Dr<48||Dr>102||Dr>57&&Dr<65||Dr>70&&Dr<97););return fp(e,Wv()+(t<6&&Po()==32&&oi()==32))}function Zx(e){for(;oi();)switch(Dr){case e:return Wn;case 34:case 39:e!==34&&e!==39&&Zx(Dr);break;case 40:e===41&&Zx(e);break;case 92:oi();break}return Wn}function Yz(e,t){for(;oi()&&e+Dr!==57;)if(e+Dr===84&&Po()===47)break;return"/*"+fp(t,Wn-1)+"*"+nm(e===47?e:oi())}function qz(e){for(;!Bd(Po());)oi();return fp(e,Wn)}function Xz(e){return DI(Vv("",null,null,null,[""],e=II(e),0,[0],e))}function Vv(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,p=a,h=0,v=0,g=0,x=1,y=1,S=1,w=0,b="",C=i,T=o,M=n,E=b;y;)switch(g=w,w=oi()){case 40:if(g!=108&&Xr(E,p-1)==58){Kx(E+=Nt(Hv(w),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:E+=Hv(w);break;case 9:case 10:case 13:case 32:E+=Uz(g);break;case 92:E+=Gz(Wv()-1,7);continue;case 47:switch(Po()){case 42:case 47:jh(Kz(Yz(oi(),Wv()),t,r),l);break;default:E+="/"}break;case 123*x:s[c++]=bo(E)*S;case 125*x:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+d:S==-1&&(E=Nt(E,/\f/g,"")),v>0&&bo(E)-p&&jh(v>32?oM(E+";",n,r,p-1):oM(Nt(E," ","")+";",n,r,p-2),l);break;case 59:E+=";";default:if(jh(M=iM(E,t,r,c,d,i,s,b,C=[],T=[],p),o),w===123)if(d===0)Vv(E,t,M,M,C,o,p,s,T);else switch(h===99&&Xr(E,3)===110?100:h){case 100:case 108:case 109:case 115:Vv(e,M,M,n&&jh(iM(e,M,M,0,0,i,s,b,i,C=[],p),T),i,T,p,s,n?C:T);break;default:Vv(E,M,M,M,[""],T,0,s,T)}}c=d=v=0,x=S=1,b=E="",p=a;break;case 58:p=1+bo(E),v=g;default:if(x<1){if(w==123)--x;else if(w==125&&x++==0&&Vz()==125)continue}switch(E+=nm(w),w*x){case 38:S=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(bo(E)-1)*S,S=1;break;case 64:Po()===45&&(E+=Hv(oi())),h=Po(),d=p=bo(b=E+=qz(Wv())),w++;break;case 45:g===45&&bo(E)==2&&(x=0)}}return o}function iM(e,t,r,n,i,o,a,s,l,c,d){for(var p=i-1,h=i===0?o:[""],v=qb(h),g=0,x=0,y=0;g<n;++g)for(var S=0,w=Nd(e,p+1,p=$z(x=a[g])),b=e;S<v;++S)(b=EI(x>0?h[S]+" "+w:Nt(w,/&\f/g,h[S])))&&(l[y++]=b);return om(e,t,r,i===0?Gb:s,l,c,d)}function Kz(e,t,r){return om(e,t,r,RI,nm(Hz()),Nd(e,2,-2),0)}function oM(e,t,r,n){return om(e,t,r,Yb,Nd(e,0,n),Nd(e,n+1,-1),n)}function Xu(e,t){for(var r="",n=qb(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Zz(e,t,r,n){switch(e.type){case Bz:if(e.children.length)break;case Nz:case Yb:return e.return=e.return||e.value;case RI:return"";case PI:return e.return=e.value+"{"+Xu(e.children,n)+"}";case Gb:e.value=e.props.join(",")}return bo(r=Xu(e.children,n))?e.return=e.value+"{"+r+"}":""}function Qz(e){var t=qb(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function Jz(e){return function(t){t.root||(t=t.return)&&e(t)}}function LI(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var eF=function(t,r,n){for(var i=0,o=0;i=o,o=Po(),i===38&&o===12&&(r[n]=1),!Bd(o);)oi();return fp(t,Wn)},tF=function(t,r){var n=-1,i=44;do switch(Bd(i)){case 0:i===38&&Po()===12&&(r[n]=1),t[n]+=eF(Wn-1,r,n);break;case 2:t[n]+=Hv(i);break;case 4:if(i===44){t[++n]=Po()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=nm(i)}while(i=oi());return t},rF=function(t,r){return DI(tF(II(t),r))},aM=new WeakMap,nF=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&&!aM.get(n))&&!i){aM.set(t,!0);for(var o=[],a=rF(r,o),s=n.props,l=0,c=0;l<a.length;l++)for(var d=0;d<s.length;d++,c++)t.props[c]=o[l]?a[l].replace(/&\f/g,s[d]):s[d]+" "+a[l]}}},iF=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function OI(e,t){switch(Fz(e,t)){case 5103:return Ot+"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 Ot+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ot+e+gg+e+cn+e+e;case 6828:case 4268:return Ot+e+cn+e+e;case 6165:return Ot+e+cn+"flex-"+e+e;case 5187:return Ot+e+Nt(e,/(\w+).+(:[^]+)/,Ot+"box-$1$2"+cn+"flex-$1$2")+e;case 5443:return Ot+e+cn+"flex-item-"+Nt(e,/flex-|-self/,"")+e;case 4675:return Ot+e+cn+"flex-line-pack"+Nt(e,/align-content|flex-|-self/,"")+e;case 5548:return Ot+e+cn+Nt(e,"shrink","negative")+e;case 5292:return Ot+e+cn+Nt(e,"basis","preferred-size")+e;case 6060:return Ot+"box-"+Nt(e,"-grow","")+Ot+e+cn+Nt(e,"grow","positive")+e;case 4554:return Ot+Nt(e,/([^-])(transform)/g,"$1"+Ot+"$2")+e;case 6187:return Nt(Nt(Nt(e,/(zoom-|grab)/,Ot+"$1"),/(image-set)/,Ot+"$1"),e,"")+e;case 5495:case 3959:return Nt(e,/(image-set\([^]*)/,Ot+"$1$`$1");case 4968:return Nt(Nt(e,/(.+:)(flex-)?(.*)/,Ot+"box-pack:$3"+cn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ot+e+e;case 4095:case 3583:case 4068:case 2532:return Nt(e,/(.+)-inline(.+)/,Ot+"$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(bo(e)-1-t>6)switch(Xr(e,t+1)){case 109:if(Xr(e,t+4)!==45)break;case 102:return Nt(e,/(.+:)(.+)-([^]+)/,"$1"+Ot+"$2-$3$1"+gg+(Xr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kx(e,"stretch")?OI(Nt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Xr(e,t+1)!==115)break;case 6444:switch(Xr(e,bo(e)-3-(~Kx(e,"!important")&&10))){case 107:return Nt(e,":",":"+Ot)+e;case 101:return Nt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ot+(Xr(e,14)===45?"inline-":"")+"box$3$1"+Ot+"$2$3$1"+cn+"$2box$3")+e}break;case 5936:switch(Xr(e,t+11)){case 114:return Ot+e+cn+Nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ot+e+cn+Nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ot+e+cn+Nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ot+e+cn+e+e}return e}var oF=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Yb:t.return=OI(t.value,t.length);break;case PI:return Xu([yf(t,{value:Nt(t.value,"@","@"+Ot)})],i);case Gb:if(t.length)return Wz(t.props,function(o){switch(jz(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xu([yf(t,{props:[Nt(o,/:(read-\w+)/,":"+gg+"$1")]})],i);case"::placeholder":return Xu([yf(t,{props:[Nt(o,/:(plac\w+)/,":"+Ot+"input-$1")]}),yf(t,{props:[Nt(o,/:(plac\w+)/,":"+gg+"$1")]}),yf(t,{props:[Nt(o,/:(plac\w+)/,cn+"input-$1")]})],i)}return""})}},aF=[oF],sF=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(x){var y=x.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var i=t.stylisPlugins||aF,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var y=x.getAttribute("data-emotion").split(" "),S=1;S<y.length;S++)o[y[S]]=!0;s.push(x)});var l,c=[nF,iF];{var d,p=[Zz,Jz(function(x){d.insert(x)})],h=Qz(c.concat(i,p)),v=function(y){return Xu(Xz(y),h)};l=function(y,S,w,b){d=w,v(y?y+"{"+S.styles+"}":S.styles),b&&(g.inserted[S.name]=!0)}}var g={key:r,sheet:new Oz({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(s),g},t1={exports:{}},Ft={};/** @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 sM;function lF(){if(sM)return Ft;sM=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,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(T){if(typeof T=="object"&&T!==null){var M=T.$$typeof;switch(M){case t:switch(T=T.type,T){case l:case c:case n:case o:case i:case p:return T;default:switch(T=T&&T.$$typeof,T){case s:case d:case g:case v:case a:return T;default:return M}}case r:return M}}}function C(T){return b(T)===c}return Ft.AsyncMode=l,Ft.ConcurrentMode=c,Ft.ContextConsumer=s,Ft.ContextProvider=a,Ft.Element=t,Ft.ForwardRef=d,Ft.Fragment=n,Ft.Lazy=g,Ft.Memo=v,Ft.Portal=r,Ft.Profiler=o,Ft.StrictMode=i,Ft.Suspense=p,Ft.isAsyncMode=function(T){return C(T)||b(T)===l},Ft.isConcurrentMode=C,Ft.isContextConsumer=function(T){return b(T)===s},Ft.isContextProvider=function(T){return b(T)===a},Ft.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Ft.isForwardRef=function(T){return b(T)===d},Ft.isFragment=function(T){return b(T)===n},Ft.isLazy=function(T){return b(T)===g},Ft.isMemo=function(T){return b(T)===v},Ft.isPortal=function(T){return b(T)===r},Ft.isProfiler=function(T){return b(T)===o},Ft.isStrictMode=function(T){return b(T)===i},Ft.isSuspense=function(T){return b(T)===p},Ft.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===n||T===c||T===o||T===i||T===p||T===h||typeof T=="object"&&T!==null&&(T.$$typeof===g||T.$$typeof===v||T.$$typeof===a||T.$$typeof===s||T.$$typeof===d||T.$$typeof===y||T.$$typeof===S||T.$$typeof===w||T.$$typeof===x)},Ft.typeOf=b,Ft}var lM;function uF(){return lM||(lM=1,t1.exports=lF()),t1.exports}var r1,uM;function cF(){if(uM)return r1;uM=1;var e=uF(),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},o={};o[e.ForwardRef]=n,o[e.Memo]=i;function a(g){return e.isMemo(g)?i:o[g.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;function v(g,x,y){if(typeof x!="string"){if(h){var S=p(x);S&&S!==h&&v(g,S,y)}var w=l(x);c&&(w=w.concat(c(x)));for(var b=a(g),C=a(x),T=0;T<w.length;++T){var M=w[T];if(!r[M]&&!(y&&y[M])&&!(C&&C[M])&&!(b&&b[M])){var E=d(x,M);try{s(g,M,E)}catch{}}}}return g}return r1=v,r1}cF();var fF=!0;function NI(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var Xb=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||fF===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},Kb=function(t,r,n){Xb(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function dF(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 pF={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hF=/[A-Z]|^ms/g,vF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,BI=function(t){return t.charCodeAt(1)===45},cM=function(t){return t!=null&&typeof t!="boolean"},n1=LI(function(e){return BI(e)?e:e.replace(hF,"-$&").toLowerCase()}),fM=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(vF,function(n,i,o){return wo={name:i,styles:o,next:wo},i})}return pF[t]!==1&&!BI(t)&&typeof r=="number"&&r!==0?r+"px":r};function $d(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return wo={name:i.name,styles:i.styles,next:wo},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)wo={name:a.name,styles:a.styles,next:wo},a=a.next;var s=o.styles+";";return s}return gF(e,t,r)}case"function":{if(e!==void 0){var l=wo,c=r(e);return wo=l,$d(e,t,c)}break}}var d=r;if(t==null)return d;var p=t[d];return p!==void 0?p:d}function gF(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=$d(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":cM(s)&&(n+=n1(o)+":"+fM(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)cM(a[l])&&(n+=n1(o)+":"+fM(o,a[l])+";");else{var c=$d(e,t,a);switch(o){case"animation":case"animationName":{n+=n1(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}var dM=/label:\s*([^\s;{]+)\s*(;|$)/g,wo;function dp(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";wo=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=$d(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=$d(r,t,e[s]),n){var l=o;i+=l[s]}dM.lastIndex=0;for(var c="",d;(d=dM.exec(i))!==null;)c+="-"+d[1];var p=dF(i)+c;return{name:p,styles:i,next:wo}}var mF=function(t){return t()},$I=Pd.useInsertionEffect?Pd.useInsertionEffect:!1,zI=$I||mF,pM=$I||L.useLayoutEffect,FI=L.createContext(typeof HTMLElement<"u"?sF({key:"css"}):null);FI.Provider;var Zb=function(t){return L.forwardRef(function(r,n){var i=L.useContext(FI);return t(r,i,n)})},pp=L.createContext({}),Qb={}.hasOwnProperty,Qx="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yF=function(t,r){var n={};for(var i in r)Qb.call(r,i)&&(n[i]=r[i]);return n[Qx]=t,n},xF=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Xb(r,n,i),zI(function(){return Kb(r,n,i)}),null},SF=Zb(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[Qx],o=[n],a="";typeof e.className=="string"?a=NI(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=dp(o,void 0,L.useContext(pp));a+=t.key+"-"+s.name;var l={};for(var c in e)Qb.call(e,c)&&c!=="css"&&c!==Qx&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),L.createElement(L.Fragment,null,L.createElement(xF,{cache:t,serialized:s,isStringTag:typeof i=="string"}),L.createElement(i,l))}),bF=SF,hM=function(t,r){var n=arguments;if(r==null||!Qb.call(r,"css"))return L.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=bF,o[1]=yF(t,r);for(var a=2;a<i;a++)o[a]=n[a];return L.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(hM||(hM={}));var wF=Zb(function(e,t){var r=e.styles,n=dp([r],void 0,L.useContext(pp)),i=L.useRef();return pM(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),pM(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Kb(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function Jb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return dp(t)}function hp(){var e=Jb.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var _F=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,CF=LI(function(e){return _F.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),TF=CF,MF=function(t){return t!=="theme"},vM=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?TF:MF},gM=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},kF=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Xb(r,n,i),zI(function(){return Kb(r,n,i)}),null},RF=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,a;r!==void 0&&(o=r.label,a=r.target);var s=gM(t,r,n),l=s||vM(i),c=!l("as");return function(){var d=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&p.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{var h=d[0];p.push(h[0]);for(var v=d.length,g=1;g<v;g++)p.push(d[g],h[g])}var x=Zb(function(y,S,w){var b=c&&y.as||i,C="",T=[],M=y;if(y.theme==null){M={};for(var E in y)M[E]=y[E];M.theme=L.useContext(pp)}typeof y.className=="string"?C=NI(S.registered,T,y.className):y.className!=null&&(C=y.className+" ");var I=dp(p.concat(T),S.registered,M);C+=S.key+"-"+I.name,a!==void 0&&(C+=" "+a);var D=c&&s===void 0?vM(b):l,k={};for(var O in y)c&&O==="as"||D(O)&&(k[O]=y[O]);return k.className=C,w&&(k.ref=w),L.createElement(L.Fragment,null,L.createElement(kF,{cache:S,serialized:I,isStringTag:typeof b=="string"}),L.createElement(b,k))});return x.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=i,x.__emotion_styles=p,x.__emotion_forwardProp=s,Object.defineProperty(x,"toString",{value:function(){return"."+a}}),x.withComponent=function(y,S){var w=e(y,vg({},r,S,{shouldForwardProp:gM(x,S,!0)}));return w.apply(void 0,p)},x}},PF=["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"],Jx=RF.bind(null);PF.forEach(function(e){Jx[e]=Jx(e)});function EF(e){return e==null||Object.keys(e).length===0}function jI(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(EF(i)?r:i):t;return P.jsx(wF,{styles:n})}function WI(e,t){return Jx(e,t)}function AF(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const mM=[];function yM(e){return mM[0]=e,dp(mM)}var i1={exports:{}},Yt={};/**
60
+ * @license React
61
+ * react-is.production.js
62
+ *
63
+ * Copyright (c) Meta Platforms, Inc. and 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 xM;function IF(){if(xM)return Yt;xM=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function g(x){if(typeof x=="object"&&x!==null){var y=x.$$typeof;switch(y){case e:switch(x=x.type,x){case r:case i:case n:case l:case c:case h:return x;default:switch(x=x&&x.$$typeof,x){case a:case s:case p:case d:return x;case o:return x;default:return y}}case t:return y}}}return Yt.ContextConsumer=o,Yt.ContextProvider=a,Yt.Element=e,Yt.ForwardRef=s,Yt.Fragment=r,Yt.Lazy=p,Yt.Memo=d,Yt.Portal=t,Yt.Profiler=i,Yt.StrictMode=n,Yt.Suspense=l,Yt.SuspenseList=c,Yt.isContextConsumer=function(x){return g(x)===o},Yt.isContextProvider=function(x){return g(x)===a},Yt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Yt.isForwardRef=function(x){return g(x)===s},Yt.isFragment=function(x){return g(x)===r},Yt.isLazy=function(x){return g(x)===p},Yt.isMemo=function(x){return g(x)===d},Yt.isPortal=function(x){return g(x)===t},Yt.isProfiler=function(x){return g(x)===i},Yt.isStrictMode=function(x){return g(x)===n},Yt.isSuspense=function(x){return g(x)===l},Yt.isSuspenseList=function(x){return g(x)===c},Yt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===i||x===n||x===l||x===c||typeof x=="object"&&x!==null&&(x.$$typeof===p||x.$$typeof===d||x.$$typeof===a||x.$$typeof===o||x.$$typeof===s||x.$$typeof===v||x.getModuleId!==void 0)},Yt.typeOf=g,Yt}var SM;function DF(){return SM||(SM=1,i1.exports=IF()),i1.exports}var HI=DF();function _o(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 VI(e){if(L.isValidElement(e)||HI.isValidElementType(e)||!_o(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=VI(e[r])}),t}function Vr(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return _o(e)&&_o(t)&&Object.keys(t).forEach(i=>{L.isValidElement(t[i])||HI.isValidElementType(t[i])?n[i]=t[i]:_o(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&_o(e[i])?n[i]=Vr(e[i],t[i],r):r.clone?n[i]=_o(t[i])?VI(t[i]):t[i]:n[i]=t[i]}),n}const LF=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)=>({...r,[n.key]:n.val}),{})};function OF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,o=LF(t),a=Object.keys(o);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function c(h,v){const g=a.indexOf(v);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:v)-n/100}${r})`}function d(h){return a.indexOf(h)+1<a.length?c(h,a[a.indexOf(h)+1]):s(h)}function p(h){const v=a.indexOf(h);return v===0?s(a[1]):v===a.length-1?l(a[v]):c(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:o,up:s,down:l,between:c,only:d,not:p,unit:r,...i}}function NF(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{var a,s;const o=/min-width:\s*([0-9.]+)/;return+(((a=n.match(o))==null?void 0:a[1])||0)-+(((s=i.match(o))==null?void 0:s[1])||0)});return r.length?r.reduce((n,i)=>{const o=t[i];return delete n[i],n[i]=o,n},{...t}):t}function BF(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function $F(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,i]=r,o=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(o)}function zF(e){const t=(o,a)=>o.replace("@media",a?`@container ${a}`:"@container");function r(o,a){o.up=(...s)=>t(e.breakpoints.up(...s),a),o.down=(...s)=>t(e.breakpoints.down(...s),a),o.between=(...s)=>t(e.breakpoints.between(...s),a),o.only=(...s)=>t(e.breakpoints.only(...s),a),o.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},i=o=>(r(n,o),n);return r(i),{...e,containerQueries:i}}const FF={borderRadius:4};function cd(e,t){return t?Vr(e,t,{clone:!1}):e}const am={xs:0,sm:600,md:900,lg:1200,xl:1536},bM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${am[e]}px)`},jF={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:am[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function so(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||bM;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const o=n.breakpoints||bM;return Object.keys(t).reduce((a,s)=>{if(BF(o.keys,s)){const l=$F(n.containerQueries?n:jF,s);l&&(a[l]=r(t[s],s))}else if(Object.keys(o.values||am).includes(s)){const l=o.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function UI(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{}))||{}}function GI(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function WF(e,...t){const r=UI(e),n=[r,...t].reduce((i,o)=>Vr(i,o),{});return GI(Object.keys(r),n)}function HF(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,o)=>{o<e.length&&(r[i]=!0)}):n.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function o1({values:e,breakpoints:t,base:r}){const n=r||HF(e,t),i=Object.keys(n);if(i.length===0)return e;let o;return i.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[o],o=s):a[s]=e,a),{})}function ue(e){if(typeof e!="string")throw new Error(ga(7));return e.charAt(0).toUpperCase()+e.slice(1)}function os(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function mg(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=os(e,r)||n,t&&(i=t(i,n,e)),i}function kr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=os(l,n)||{};return so(a,s,p=>{let h=mg(c,i,p);return p===h&&typeof p=="string"&&(h=mg(c,i,`${t}${p==="default"?"":ue(p)}`,p)),r===!1?h:{[r]:h}})};return o.propTypes={},o.filterProps=[t],o}function VF(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const UF={m:"margin",p:"padding"},GF={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},YF=VF(e=>{if(e.length>2)if(wM[e])e=wM[e];else return[e];const[t,r]=e.split(""),n=UF[t],i=GF[r]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),ew=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],tw=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ew,...tw];function vp(e,t,r,n){const i=os(e,t,!0)??r;return typeof i=="number"||typeof i=="string"?o=>typeof o=="string"?o:typeof i=="string"?i.startsWith("var(")&&o===0?0:i.startsWith("var(")&&o===1?i:`calc(${o} * ${i})`:i*o:Array.isArray(i)?o=>{if(typeof o=="string")return o;const a=Math.abs(o),s=i[a];return o>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof i=="function"?i:()=>{}}function sm(e){return vp(e,"spacing",8)}function Bl(e,t){return typeof t=="string"||t==null?t:e(t)}function qF(e,t){return r=>e.reduce((n,i)=>(n[i]=Bl(t,r),n),{})}function XF(e,t,r,n){if(!t.includes(r))return null;const i=YF(r),o=qF(i,n),a=e[r];return so(e,a,o)}function YI(e,t){const r=sm(e.theme);return Object.keys(e).map(n=>XF(e,t,n,r)).reduce(cd,{})}function xr(e){return YI(e,ew)}xr.propTypes={};xr.filterProps=ew;function Sr(e){return YI(e,tw)}Sr.propTypes={};Sr.filterProps=tw;function qI(e=8,t=sm({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function lm(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),r=n=>Object.keys(n).reduce((i,o)=>t[o]?cd(i,t[o](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Ei(e){return typeof e!="number"?e:`${e}px solid`}function zi(e,t){return kr({prop:e,themeKey:"borders",transform:t})}const KF=zi("border",Ei),ZF=zi("borderTop",Ei),QF=zi("borderRight",Ei),JF=zi("borderBottom",Ei),e6=zi("borderLeft",Ei),t6=zi("borderColor"),r6=zi("borderTopColor"),n6=zi("borderRightColor"),i6=zi("borderBottomColor"),o6=zi("borderLeftColor"),a6=zi("outline",Ei),s6=zi("outlineColor"),um=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vp(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Bl(t,n)});return so(e,e.borderRadius,r)}return null};um.propTypes={};um.filterProps=["borderRadius"];lm(KF,ZF,QF,JF,e6,t6,r6,n6,i6,o6,um,a6,s6);const cm=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vp(e.theme,"spacing",8),r=n=>({gap:Bl(t,n)});return so(e,e.gap,r)}return null};cm.propTypes={};cm.filterProps=["gap"];const fm=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vp(e.theme,"spacing",8),r=n=>({columnGap:Bl(t,n)});return so(e,e.columnGap,r)}return null};fm.propTypes={};fm.filterProps=["columnGap"];const dm=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vp(e.theme,"spacing",8),r=n=>({rowGap:Bl(t,n)});return so(e,e.rowGap,r)}return null};dm.propTypes={};dm.filterProps=["rowGap"];const l6=kr({prop:"gridColumn"}),u6=kr({prop:"gridRow"}),c6=kr({prop:"gridAutoFlow"}),f6=kr({prop:"gridAutoColumns"}),d6=kr({prop:"gridAutoRows"}),p6=kr({prop:"gridTemplateColumns"}),h6=kr({prop:"gridTemplateRows"}),v6=kr({prop:"gridTemplateAreas"}),g6=kr({prop:"gridArea"});lm(cm,fm,dm,l6,u6,c6,f6,d6,p6,h6,v6,g6);function Ku(e,t){return t==="grey"?t:e}const m6=kr({prop:"color",themeKey:"palette",transform:Ku}),y6=kr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ku}),x6=kr({prop:"backgroundColor",themeKey:"palette",transform:Ku});lm(m6,y6,x6);function ii(e){return e<=1&&e!==0?`${e*100}%`:e}const S6=kr({prop:"width",transform:ii}),rw=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,o,a,s,l;const n=((a=(o=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:o.values)==null?void 0:a[r])||am[r];return n?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ii(r)}};return so(e,e.maxWidth,t)}return null};rw.filterProps=["maxWidth"];const b6=kr({prop:"minWidth",transform:ii}),w6=kr({prop:"height",transform:ii}),_6=kr({prop:"maxHeight",transform:ii}),C6=kr({prop:"minHeight",transform:ii});kr({prop:"size",cssProperty:"width",transform:ii});kr({prop:"size",cssProperty:"height",transform:ii});const T6=kr({prop:"boxSizing"});lm(S6,rw,b6,w6,_6,C6,T6);const gp={border:{themeKey:"borders",transform:Ei},borderTop:{themeKey:"borders",transform:Ei},borderRight:{themeKey:"borders",transform:Ei},borderBottom:{themeKey:"borders",transform:Ei},borderLeft:{themeKey:"borders",transform:Ei},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ei},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:um},color:{themeKey:"palette",transform:Ku},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ku},backgroundColor:{themeKey:"palette",transform:Ku},p:{style:Sr},pt:{style:Sr},pr:{style:Sr},pb:{style:Sr},pl:{style:Sr},px:{style:Sr},py:{style:Sr},padding:{style:Sr},paddingTop:{style:Sr},paddingRight:{style:Sr},paddingBottom:{style:Sr},paddingLeft:{style:Sr},paddingX:{style:Sr},paddingY:{style:Sr},paddingInline:{style:Sr},paddingInlineStart:{style:Sr},paddingInlineEnd:{style:Sr},paddingBlock:{style:Sr},paddingBlockStart:{style:Sr},paddingBlockEnd:{style:Sr},m:{style:xr},mt:{style:xr},mr:{style:xr},mb:{style:xr},ml:{style:xr},mx:{style:xr},my:{style:xr},margin:{style:xr},marginTop:{style:xr},marginRight:{style:xr},marginBottom:{style:xr},marginLeft:{style:xr},marginX:{style:xr},marginY:{style:xr},marginInline:{style:xr},marginInlineStart:{style:xr},marginInlineEnd:{style:xr},marginBlock:{style:xr},marginBlockStart:{style:xr},marginBlockEnd:{style:xr},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:cm},rowGap:{style:dm},columnGap:{style:fm},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ii},maxWidth:{style:rw},minWidth:{transform:ii},height:{transform:ii},maxHeight:{transform:ii},minHeight:{transform:ii},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function M6(...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 k6(e,t){return typeof e=="function"?e(t):e}function R6(){function e(r,n,i,o){const a={[r]:n,theme:i},s=o[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:d,style:p}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const h=os(i,c)||{};return p?p(a):so(a,n,g=>{let x=mg(h,d,g);return g===x&&typeof g=="string"&&(x=mg(h,d,`${r}${g==="default"?"":ue(g)}`,g)),l===!1?x:{[l]:x}})}function t(r){const{sx:n,theme:i={}}=r||{};if(!n)return null;const o=i.unstable_sxConfig??gp;function a(s){let l=s;if(typeof s=="function")l=s(i);else if(typeof s!="object")return s;if(!l)return null;const c=UI(i.breakpoints),d=Object.keys(c);let p=c;return Object.keys(l).forEach(h=>{const v=k6(l[h],i);if(v!=null)if(typeof v=="object")if(o[h])p=cd(p,e(h,v,i,o));else{const g=so({theme:i},v,x=>({[h]:x}));M6(g,v)?p[h]=t({sx:v,theme:i}):p=cd(p,g)}else p=cd(p,e(h,v,i,o))}),NF(i,GI(d,p))}return Array.isArray(n)?n.map(a):a(n)}return t}const gs=R6();gs.filterProps=["sx"];function P6(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function mp(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={},...a}=e,s=OF(r),l=qI(i);let c=Vr({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...FF,...o}},a);return c=zF(c),c.applyStyles=P6,c=t.reduce((d,p)=>Vr(d,p),c),c.unstable_sxConfig={...gp,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(p){return gs({sx:p,theme:this})},c}function E6(e){return Object.keys(e).length===0}function XI(e=null){const t=L.useContext(pp);return!t||E6(t)?e:t}const A6=mp();function pm(e=A6){return XI(e)}function I6({styles:e,themeId:t,defaultTheme:r={}}){const n=pm(r),i=typeof e=="function"?e(t&&n[t]||n):e;return P.jsx(jI,{styles:i})}const D6=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??gp;return Object.keys(e).forEach(i=>{r[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function nw(e){const{sx:t,...r}=e,{systemProps:n,otherProps:i}=D6(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return _o(s)?{...n,...s}:n}:o={...n,...t},{...i,sx:o}}const _M=e=>e,L6=()=>{let e=_M;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_M}}},KI=L6();function ZI(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=ZI(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Se(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=ZI(e))&&(n&&(n+=" "),n+=t);return n}function O6(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:i}=e,o=WI("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(gs);return L.forwardRef(function(l,c){const d=pm(r),{className:p,component:h="div",...v}=nw(l);return P.jsx(o,{as:h,ref:c,className:Se(p,i?i(n):n),theme:t&&d[t]||d,...v})})}const N6={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 ze(e,t,r="Mui"){const n=N6[t];return n?`${r}-${n}`:`${KI.generate(e)}-${t}`}function Fe(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=ze(e,i,r)}),n}function QI(e){const{variants:t,...r}=e,n={variants:t,style:yM(r),isProcessed:!0};return n.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=yM(i.style))}),n}const B6=mp();function a1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function $6(e){return e?(t,r)=>r[e]:null}function z6(e,t,r){e.theme=j6(e.theme)?r:e.theme[t]||e.theme}function Uv(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>Uv(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:i,...o}=r;n=o}return JI(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function JI(e,t,r=[]){var i;let n;e:for(let o=0;o<t.length;o+=1){const a=t[o];if(typeof a.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(n))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&((i=e.ownerState)==null?void 0:i[s])!==a.props[s])continue e;typeof a.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(a.style(n))):r.push(a.style)}return r}function eD(e={}){const{themeId:t,defaultTheme:r=B6,rootShouldForwardProp:n=a1,slotShouldForwardProp:i=a1}=e;function o(s){z6(s,t,r)}return(s,l={})=>{AF(s,T=>T.filter(M=>M!==gs));const{name:c,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:v=$6(H6(d)),...g}=l,x=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,y=h||!1;let S=a1;d==="Root"||d==="root"?S=n:d?S=i:W6(s)&&(S=void 0);const w=WI(s,{shouldForwardProp:S,label:F6(),...g}),b=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(E){return Uv(E,T)};if(_o(T)){const M=QI(T);return M.variants?function(I){return Uv(I,M)}:M.style}return T},C=(...T)=>{const M=[],E=T.map(b),I=[];if(M.push(o),c&&v&&I.push(function(N){var j,K;const z=(K=(j=N.theme.components)==null?void 0:j[c])==null?void 0:K.styleOverrides;if(!z)return null;const F={};for(const V in z)F[V]=Uv(N,z[V]);return v(N,F)}),c&&!x&&I.push(function(N){var F,j;const $=N.theme,z=(j=(F=$==null?void 0:$.components)==null?void 0:F[c])==null?void 0:j.variants;return z?JI(N,z):null}),y||I.push(gs),Array.isArray(E[0])){const O=E.shift(),N=new Array(M.length).fill(""),$=new Array(I.length).fill("");let z;z=[...N,...O,...$],z.raw=[...N,...O.raw,...$],M.unshift(z)}const D=[...M,...E,...I],k=w(...D);return s.muiName&&(k.muiName=s.muiName),k};return w.withConfig&&(C.withConfig=w.withConfig),C}}function F6(e,t){return void 0}function j6(e){for(const t in e)return!1;return!0}function W6(e){return typeof e=="string"&&e.charCodeAt(0)>96}function H6(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const tD=eD();function zd(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const i=n;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const o=e[i],a=t[i];if(!a)r[i]=o||{};else if(!o)r[i]=a;else{r[i]={...a};for(const s in o)if(Object.prototype.hasOwnProperty.call(o,s)){const l=s;r[i][l]=zd(o[l],a[l])}}}else r[i]===void 0&&(r[i]=e[i])}return r}function V6(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:zd(t.components[r].defaultProps,n)}function rD({props:e,name:t,defaultTheme:r,themeId:n}){let i=pm(r);return n&&(i=i[n]||i),V6({theme:i,name:t,props:e})}const lo=typeof window<"u"?L.useLayoutEffect:L.useEffect;function U6(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function iw(e,t=0,r=1){return U6(e,t,r)}function G6(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 ms(e){if(e.type)return e;if(e.charAt(0)==="#")return ms(G6(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(ga(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"].includes(i))throw new Error(ga(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:i}}const Y6=e=>{const t=ms(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Xf=(e,t)=>{try{return Y6(e)}catch{return e}};function hm(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((i,o)=>o<3?parseInt(i,10):i):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function nD(e){e=ms(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),a=(c,d=(c+r/30)%12)=>i-o*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),hm({type:s,values:l})}function eS(e){e=ms(e);let t=e.type==="hsl"||e.type==="hsla"?ms(nD(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 q6(e,t){const r=eS(e),n=eS(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function bt(e,t){return e=ms(e),t=iw(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hm(e)}function Wh(e,t,r){try{return bt(e,t)}catch{return e}}function $l(e,t){if(e=ms(e),t=iw(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return hm(e)}function Kt(e,t,r){try{return $l(e,t)}catch{return e}}function zl(e,t){if(e=ms(e),t=iw(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return hm(e)}function Zt(e,t,r){try{return zl(e,t)}catch{return e}}function X6(e,t=.15){return eS(e)>.5?$l(e,t):zl(e,t)}function Hh(e,t,r){try{return X6(e,t)}catch{return e}}const iD=L.createContext(null);function ow(){return L.useContext(iD)}const K6=typeof Symbol=="function"&&Symbol.for,Z6=K6?Symbol.for("mui.nested"):"__THEME_NESTED__";function Q6(e,t){return typeof t=="function"?t(e):{...e,...t}}function J6(e){const{children:t,theme:r}=e,n=ow(),i=L.useMemo(()=>{const o=n===null?{...r}:Q6(n,r);return o!=null&&(o[Z6]=n!==null),o},[r,n]);return P.jsx(iD.Provider,{value:i,children:t})}const oD=L.createContext();function ej({value:e,...t}){return P.jsx(oD.Provider,{value:e??!0,...t})}const Cc=()=>L.useContext(oD)??!1,aD=L.createContext(void 0);function tj({value:e,children:t}){return P.jsx(aD.Provider,{value:e,children:t})}function rj(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?zd(i.defaultProps,n):!i.styleOverrides&&!i.variants?zd(i,n):n}function nj({props:e,name:t}){const r=L.useContext(aD);return rj({props:e,name:t,theme:{components:r}})}const CM={};function TM(e,t,r,n=!1){return L.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const o=r(i),a=e?{...t,[e]:o}:o;return n?()=>a:a}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,n])}function sD(e){const{children:t,theme:r,themeId:n}=e,i=XI(CM),o=ow()||CM,a=TM(n,i,r),s=TM(n,o,r,!0),l=(n?a[n]:a).direction==="rtl";return P.jsx(J6,{theme:s,children:P.jsx(pp.Provider,{value:a,children:P.jsx(ej,{value:l,children:P.jsx(tj,{value:n?a[n].components:a.components,children:t})})})})}const MM={theme:void 0};function ij(e){let t,r;return function(i){let o=t;return(o===void 0||i.theme!==r)&&(MM.theme=i.theme,o=QI(e(MM)),t=o,r=i.theme),o}}const aw="mode",sw="color-scheme",oj="data-color-scheme";function aj(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:i=aw,colorSchemeStorageKey:o=sw,attribute:a=oj,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",d=a;if(a==="class"&&(d=".%s"),a==="data"&&(d="[data-%s]"),d.startsWith(".")){const h=d.substring(1);c+=`${s}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark));
68
+ ${s}.classList.add('${h}'.replace('%s', colorScheme));`}const p=d.match(/\[([^\]]+)\]/);if(p){const[h,v]=p[1].split("=");v||(c+=`${s}.removeAttribute('${h}'.replace('%s', light));
69
+ ${s}.removeAttribute('${h}'.replace('%s', dark));`),c+=`
70
+ ${s}.setAttribute('${h}'.replace('%s', colorScheme), ${v?`${v}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${d}', colorScheme);`;return P.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() {
71
+ try {
72
+ let colorScheme = '';
73
+ const mode = localStorage.getItem('${i}') || '${t}';
74
+ const dark = localStorage.getItem('${o}-dark') || '${n}';
75
+ const light = localStorage.getItem('${o}-light') || '${r}';
76
+ if (mode === 'system') {
77
+ // handle system mode
78
+ const mql = window.matchMedia('(prefers-color-scheme: dark)');
79
+ if (mql.matches) {
80
+ colorScheme = dark
81
+ } else {
82
+ colorScheme = light
83
+ }
84
+ }
85
+ if (mode === 'light') {
86
+ colorScheme = light;
87
+ }
88
+ if (mode === 'dark') {
89
+ colorScheme = dark;
90
+ }
91
+ if (colorScheme) {
92
+ ${c}
93
+ }
94
+ } catch(e){}})();`}},"mui-color-scheme-init")}function sj(){}const lj=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(r){if(typeof window>"u")return;if(!t)return r;let n;try{n=t.localStorage.getItem(e)}catch{}return n||r},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return sj;const n=i=>{const o=i.newValue;i.key===e&&r(o)};return t.addEventListener("storage",n),()=>{t.removeEventListener("storage",n)}}});function s1(){}function kM(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function lD(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function uj(e){return lD(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function cj(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:i=[],modeStorageKey:o=aw,colorSchemeStorageKey:a=sw,storageWindow:s=typeof window>"u"?void 0:window,storageManager:l=lj,noSsr:c=!1}=e,d=i.join(","),p=i.length>1,h=L.useMemo(()=>l==null?void 0:l({key:o,storageWindow:s}),[l,o,s]),v=L.useMemo(()=>l==null?void 0:l({key:`${a}-light`,storageWindow:s}),[l,a,s]),g=L.useMemo(()=>l==null?void 0:l({key:`${a}-dark`,storageWindow:s}),[l,a,s]),[x,y]=L.useState(()=>{const I=(h==null?void 0:h.get(t))||t,D=(v==null?void 0:v.get(r))||r,k=(g==null?void 0:g.get(n))||n;return{mode:I,systemMode:kM(I),lightColorScheme:D,darkColorScheme:k}}),[S,w]=L.useState(c||!p);L.useEffect(()=>{w(!0)},[]);const b=uj(x),C=L.useCallback(I=>{y(D=>{if(I===D.mode)return D;const k=I??t;return h==null||h.set(k),{...D,mode:k,systemMode:kM(k)}})},[h,t]),T=L.useCallback(I=>{I?typeof I=="string"?I&&!d.includes(I)?console.error(`\`${I}\` does not exist in \`theme.colorSchemes\`.`):y(D=>{const k={...D};return lD(D,O=>{O==="light"&&(v==null||v.set(I),k.lightColorScheme=I),O==="dark"&&(g==null||g.set(I),k.darkColorScheme=I)}),k}):y(D=>{const k={...D},O=I.light===null?r:I.light,N=I.dark===null?n:I.dark;return O&&(d.includes(O)?(k.lightColorScheme=O,v==null||v.set(O)):console.error(`\`${O}\` does not exist in \`theme.colorSchemes\`.`)),N&&(d.includes(N)?(k.darkColorScheme=N,g==null||g.set(N)):console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`)),k}):y(D=>(v==null||v.set(r),g==null||g.set(n),{...D,lightColorScheme:r,darkColorScheme:n}))},[d,v,g,r,n]),M=L.useCallback(I=>{x.mode==="system"&&y(D=>{const k=I!=null&&I.matches?"dark":"light";return D.systemMode===k?D:{...D,systemMode:k}})},[x.mode]),E=L.useRef(M);return E.current=M,L.useEffect(()=>{if(typeof window.matchMedia!="function"||!p)return;const I=(...k)=>E.current(...k),D=window.matchMedia("(prefers-color-scheme: dark)");return D.addListener(I),I(D),()=>{D.removeListener(I)}},[p]),L.useEffect(()=>{if(p){const I=(h==null?void 0:h.subscribe(O=>{(!O||["light","dark","system"].includes(O))&&C(O||t)}))||s1,D=(v==null?void 0:v.subscribe(O=>{(!O||d.match(O))&&T({light:O})}))||s1,k=(g==null?void 0:g.subscribe(O=>{(!O||d.match(O))&&T({dark:O})}))||s1;return()=>{I(),D(),k()}}},[T,C,d,t,s,p,h,v,g]),{...x,mode:S?x.mode:void 0,systemMode:S?x.systemMode:void 0,colorScheme:S?b:void 0,setMode:C,setColorScheme:T}}const fj="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function dj(e){const{themeId:t,theme:r={},modeStorageKey:n=aw,colorSchemeStorageKey:i=sw,disableTransitionOnChange:o=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=L.createContext(void 0),d=()=>L.useContext(c)||l,p={},h={};function v(S){var Jt,ar,Lt,tr;const{children:w,theme:b,modeStorageKey:C=n,colorSchemeStorageKey:T=i,disableTransitionOnChange:M=o,storageManager:E,storageWindow:I=typeof window>"u"?void 0:window,documentNode:D=typeof document>"u"?void 0:document,colorSchemeNode:k=typeof document>"u"?void 0:document.documentElement,disableNestedContext:O=!1,disableStyleSheetGeneration:N=!1,defaultMode:$="system",forceThemeRerender:z=!1,noSsr:F}=S,j=L.useRef(!1),K=ow(),V=L.useContext(c),H=!!V&&!O,Y=L.useMemo(()=>b||(typeof r=="function"?r():r),[b]),W=Y[t],q=W||Y,{colorSchemes:te=p,components:le=h,cssVarPrefix:ne}=q,Q=Object.keys(te).filter(Je=>!!te[Je]).join(","),ce=L.useMemo(()=>Q.split(","),[Q]),me=typeof a=="string"?a:a.light,de=typeof a=="string"?a:a.dark,fe=te[me]&&te[de]?$:((ar=(Jt=te[q.defaultColorScheme])==null?void 0:Jt.palette)==null?void 0:ar.mode)||((Lt=q.palette)==null?void 0:Lt.mode),{mode:ge,setMode:pe,systemMode:Ne,lightColorScheme:ke,darkColorScheme:it,colorScheme:rt,setColorScheme:dt}=cj({supportedColorSchemes:ce,defaultLightColorScheme:me,defaultDarkColorScheme:de,modeStorageKey:C,colorSchemeStorageKey:T,defaultMode:fe,storageManager:E,storageWindow:I,noSsr:F});let we=ge,at=rt;H&&(we=V.mode,at=V.colorScheme);let Ee=at||q.defaultColorScheme;q.vars&&!z&&(Ee=q.defaultColorScheme);const Ye=L.useMemo(()=>{var wt;const Je=((wt=q.generateThemeVars)==null?void 0:wt.call(q))||q.vars,xe={...q,components:le,colorSchemes:te,cssVarPrefix:ne,vars:Je};if(typeof xe.generateSpacing=="function"&&(xe.spacing=xe.generateSpacing()),Ee){const Rt=te[Ee];Rt&&typeof Rt=="object"&&Object.keys(Rt).forEach(ut=>{Rt[ut]&&typeof Rt[ut]=="object"?xe[ut]={...xe[ut],...Rt[ut]}:xe[ut]=Rt[ut]})}return s?s(xe):xe},[q,Ee,le,te,ne]),Ce=q.colorSchemeSelector;lo(()=>{if(at&&k&&Ce&&Ce!=="media"){const Je=Ce;let xe=Ce;if(Je==="class"&&(xe=".%s"),Je==="data"&&(xe="[data-%s]"),Je!=null&&Je.startsWith("data-")&&!Je.includes("%s")&&(xe=`[${Je}="%s"]`),xe.startsWith("."))k.classList.remove(...ce.map(wt=>xe.substring(1).replace("%s",wt))),k.classList.add(xe.substring(1).replace("%s",at));else{const wt=xe.replace("%s",at).match(/\[([^\]]+)\]/);if(wt){const[Rt,ut]=wt[1].split("=");ut||ce.forEach(Be=>{k.removeAttribute(Rt.replace(at,Be))}),k.setAttribute(Rt,ut?ut.replace(/"|'/g,""):"")}else k.setAttribute(xe,at)}}},[at,Ce,k,ce]),L.useEffect(()=>{let Je;if(M&&j.current&&D){const xe=D.createElement("style");xe.appendChild(D.createTextNode(fj)),D.head.appendChild(xe),window.getComputedStyle(D.body),Je=setTimeout(()=>{D.head.removeChild(xe)},1)}return()=>{clearTimeout(Je)}},[at,M,D]),L.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const Xt=L.useMemo(()=>({allColorSchemes:ce,colorScheme:at,darkColorScheme:it,lightColorScheme:ke,mode:we,setColorScheme:dt,setMode:pe,systemMode:Ne}),[ce,at,it,ke,we,dt,pe,Ne,Ye.colorSchemeSelector]);let mt=!0;(N||q.cssVariables===!1||H&&(K==null?void 0:K.cssVarPrefix)===ne)&&(mt=!1);const Wt=P.jsxs(L.Fragment,{children:[P.jsx(sD,{themeId:W?t:void 0,theme:Ye,children:w}),mt&&P.jsx(jI,{styles:((tr=Ye.generateStyleSheets)==null?void 0:tr.call(Ye))||[]})]});return H?Wt:P.jsx(c.Provider,{value:Xt,children:Wt})}const g=typeof a=="string"?a:a.light,x=typeof a=="string"?a:a.dark;return{CssVarsProvider:v,useColorScheme:d,getInitColorSchemeScript:S=>aj({colorSchemeStorageKey:i,defaultLightColorScheme:g,defaultDarkColorScheme:x,modeStorageKey:n,...S})}}function pj(e=""){function t(...n){if(!n.length)return"";const i=n[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${e?`${e}-`:""}${n}${t(...i)})`}const RM=(e,t,r,n=[])=>{let i=e;t.forEach((o,a)=>{a===t.length-1?Array.isArray(i)?i[Number(o)]=r:i&&typeof i=="object"&&(i[o]=r):i&&typeof i=="object"&&(i[o]||(i[o]=n.includes(o)?[]:{}),i=i[o])})},hj=(e,t,r)=>{function n(i,o=[],a=[]){Object.entries(i).forEach(([s,l])=>{(!r||r&&!r([...o,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...o,s],Array.isArray(l)?[...a,s]:a):t([...o,s],l,a))})}n(e)},vj=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function l1(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},o={},a={};return hj(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const d=`--${r?`${r}-`:""}${s.join("-")}`,p=vj(s,l);Object.assign(i,{[d]:p}),RM(o,s,`var(${d})`,c),RM(a,s,`var(${d}, ${p})`,c)}},s=>s[0]==="vars"),{css:i,vars:o,varsWithDefaults:a}}function gj(e,t={}){const{getSelector:r=y,disableCssColorScheme:n,colorSchemeSelector:i}=t,{colorSchemes:o={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:d,varsWithDefaults:p}=l1(l,t);let h=p;const v={},{[s]:g,...x}=o;if(Object.entries(x||{}).forEach(([b,C])=>{const{vars:T,css:M,varsWithDefaults:E}=l1(C,t);h=Vr(h,E),v[b]={css:M,vars:T}}),g){const{css:b,vars:C,varsWithDefaults:T}=l1(g,t);h=Vr(h,T),v[s]={css:b,vars:C}}function y(b,C){var M,E;let T=i;if(i==="class"&&(T=".%s"),i==="data"&&(T="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(T=`[${i}="%s"]`),b){if(T==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${((E=(M=o[b])==null?void 0:M.palette)==null?void 0:E.mode)||b})`]:{":root":C}};if(T)return e.defaultColorScheme===b?`:root, ${T.replace("%s",String(b))}`:T.replace("%s",String(b))}return":root"}return{vars:h,generateThemeVars:()=>{let b={...c};return Object.entries(v).forEach(([,{vars:C}])=>{b=Vr(b,C)}),b},generateStyleSheets:()=>{var I,D;const b=[],C=e.defaultColorScheme||"light";function T(k,O){Object.keys(O).length&&b.push(typeof k=="string"?{[k]:{...O}}:k)}T(r(void 0,{...d}),d);const{[C]:M,...E}=v;if(M){const{css:k}=M,O=(D=(I=o[C])==null?void 0:I.palette)==null?void 0:D.mode,N=!n&&O?{colorScheme:O,...k}:{...k};T(r(C,{...N}),N)}return Object.entries(E).forEach(([k,{css:O}])=>{var z,F;const N=(F=(z=o[k])==null?void 0:z.palette)==null?void 0:F.mode,$=!n&&N?{colorScheme:N,...O}:{...O};T(r(k,{...$}),$)}),b}}}function mj(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function je(e,t,r=void 0){const n={};for(const i in e){const o=e[i];let a="",s=!0;for(let l=0;l<o.length;l+=1){const c=o[l];c&&(a+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(a+=" "+r[c]))}n[i]=a}return n}const yj=mp(),xj=tD("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${ue(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),Sj=e=>rD({props:e,name:"MuiContainer",defaultTheme:yj}),bj=(e,t)=>{const r=l=>ze(t,l),{classes:n,fixed:i,disableGutters:o,maxWidth:a}=e,s={root:["root",a&&`maxWidth${ue(String(a))}`,i&&"fixed",o&&"disableGutters"]};return je(s,r,n)};function wj(e={}){const{createStyledComponent:t=xj,useThemeProps:r=Sj,componentName:n="MuiContainer"}=e,i=t(({theme:a,ownerState:s})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const d=c,p=a.breakpoints.values[d];return p!==0&&(l[a.breakpoints.up(d)]={maxWidth:`${p}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>({...s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}}));return L.forwardRef(function(s,l){const c=r(s),{className:d,component:p="div",disableGutters:h=!1,fixed:v=!1,maxWidth:g="lg",classes:x,...y}=c,S={...c,component:p,disableGutters:h,fixed:v,maxWidth:g},w=bj(S,n);return P.jsx(i,{as:p,ownerState:S,className:Se(w.root,d),ref:l,...y})})}function Gv(e,t){var r,n,i;return L.isValidElement(e)&&t.indexOf(e.type.muiName??((i=(n=(r=e.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:i.muiName))!==-1}const _j=mp(),Cj=tD("div",{name:"MuiStack",slot:"Root"});function Tj(e){return rD({props:e,name:"MuiStack",defaultTheme:_j})}function Mj(e,t){const r=L.Children.toArray(e).filter(Boolean);return r.reduce((n,i,o)=>(n.push(i),o<r.length-1&&n.push(L.cloneElement(t,{key:`separator-${o}`})),n),[])}const kj=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Rj=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...so({theme:t},o1({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n}))};if(e.spacing){const n=sm(t),i=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),o=o1({values:e.direction,base:i}),a=o1({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,c,d)=>{if(!o[l]){const h=c>0?o[d[c-1]]:"column";o[l]=h}}),r=Vr(r,so({theme:t},a,(l,c)=>e.useFlexGap?{gap:Bl(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${kj(c?o[c]:e.direction)}`]:Bl(n,l)}}))}return r=WF(t.breakpoints,r),r};function Pj(e={}){const{createStyledComponent:t=Cj,useThemeProps:r=Tj,componentName:n="MuiStack"}=e,i=()=>je({root:["root"]},l=>ze(n,l),{}),o=t(Rj);return L.forwardRef(function(l,c){const d=r(l),p=nw(d),{component:h="div",direction:v="column",spacing:g=0,divider:x,children:y,className:S,useFlexGap:w=!1,...b}=p,C={direction:v,spacing:g,useFlexGap:w},T=i();return P.jsx(o,{as:h,ownerState:C,ref:c,className:Se(T.root,S),...b,children:x?Mj(y,x):y})})}function uD(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Od.white,default:Od.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}}}const Ej=uD();function cD(){return{text:{primary:Od.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:Od.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}}}const PM=cD();function EM(e,t,r,n){const i=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=zl(e.main,i):t==="dark"&&(e.dark=$l(e.main,o)))}function Aj(e="light"){return e==="dark"?{main:pl[200],light:pl[50],dark:pl[400]}:{main:pl[700],light:pl[400],dark:pl[800]}}function Ij(e="light"){return e==="dark"?{main:xu[200],light:xu[50],dark:xu[400]}:{main:xu[500],light:xu[300],dark:xu[700]}}function Dj(e="light"){return e==="dark"?{main:ns[500],light:ns[300],dark:ns[700]}:{main:ns[700],light:ns[400],dark:ns[800]}}function Lj(e="light"){return e==="dark"?{main:Su[400],light:Su[300],dark:Su[700]}:{main:Su[700],light:Su[500],dark:Su[900]}}function Oj(e="light"){return e==="dark"?{main:hl[400],light:hl[300],dark:hl[700]}:{main:hl[800],light:hl[500],dark:hl[900]}}function Nj(e="light"){return e==="dark"?{main:mf[400],light:mf[300],dark:mf[700]}:{main:"#ed6c02",light:mf[500],dark:mf[900]}}function lw(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...i}=e,o=e.primary||Aj(t),a=e.secondary||Ij(t),s=e.error||Dj(t),l=e.info||Lj(t),c=e.success||Oj(t),d=e.warning||Nj(t);function p(x){return q6(x,PM.text.primary)>=r?PM.text.primary:Ej.text.primary}const h=({color:x,name:y,mainShade:S=500,lightShade:w=300,darkShade:b=700})=>{if(x={...x},!x.main&&x[S]&&(x.main=x[S]),!x.hasOwnProperty("main"))throw new Error(ga(11,y?` (${y})`:"",S));if(typeof x.main!="string")throw new Error(ga(12,y?` (${y})`:"",JSON.stringify(x.main)));return EM(x,"light",w,n),EM(x,"dark",b,n),x.contrastText||(x.contrastText=p(x.main)),x};let v;return t==="light"?v=uD():t==="dark"&&(v=cD()),Vr({common:{...Od},mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:Xx,contrastThreshold:r,getContrastText:p,augmentColor:h,tonalOffset:n,...v},i)}function Bj(e){const t={};return Object.entries(e).forEach(n=>{const[i,o]=n;typeof o=="object"&&(t[i]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function $j(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function zj(e){return Math.round(e*1e5)/1e5}const AM={textTransform:"uppercase"},IM='"Roboto", "Helvetica", "Arial", sans-serif';function fD(e,t){const{fontFamily:r=IM,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:d,...p}=typeof t=="function"?t(e):t,h=n/14,v=d||(y=>`${y/l*h}rem`),g=(y,S,w,b,C)=>({fontFamily:r,fontWeight:y,fontSize:v(S),lineHeight:w,...r===IM?{letterSpacing:`${zj(b/S)}em`}:{},...C,...c}),x={h1:g(i,96,1.167,-1.5),h2:g(i,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(a,20,1.6,.15),subtitle1:g(o,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(o,16,1.5,.15),body2:g(o,14,1.43,.15),button:g(a,14,1.75,.4,AM),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,AM),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Vr({htmlFontSize:l,pxToRem:v,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,...x},p,{clone:!1})}const Fj=.2,jj=.14,Wj=.12;function ur(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Fj})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${jj})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Wj})`].join(",")}const Hj=["none",ur(0,2,1,-1,0,1,1,0,0,1,3,0),ur(0,3,1,-2,0,2,2,0,0,1,5,0),ur(0,3,3,-2,0,3,4,0,0,1,8,0),ur(0,2,4,-1,0,4,5,0,0,1,10,0),ur(0,3,5,-1,0,5,8,0,0,1,14,0),ur(0,3,5,-1,0,6,10,0,0,1,18,0),ur(0,4,5,-2,0,7,10,1,0,2,16,1),ur(0,5,5,-3,0,8,10,1,0,3,14,2),ur(0,5,6,-3,0,9,12,1,0,3,16,2),ur(0,6,6,-3,0,10,14,1,0,4,18,3),ur(0,6,7,-4,0,11,15,1,0,4,20,3),ur(0,7,8,-4,0,12,17,2,0,5,22,4),ur(0,7,8,-4,0,13,19,2,0,5,24,4),ur(0,7,9,-4,0,14,21,2,0,5,26,4),ur(0,8,9,-5,0,15,22,2,0,6,28,5),ur(0,8,10,-5,0,16,24,2,0,6,30,5),ur(0,8,11,-5,0,17,26,2,0,6,32,5),ur(0,9,11,-5,0,18,28,2,0,7,34,6),ur(0,9,12,-6,0,19,29,2,0,7,36,6),ur(0,10,13,-6,0,20,31,3,0,8,38,7),ur(0,10,13,-6,0,21,33,3,0,8,40,7),ur(0,10,14,-6,0,22,35,3,0,8,42,7),ur(0,11,14,-7,0,23,36,3,0,9,44,8),ur(0,11,15,-7,0,24,38,3,0,9,46,8)],Vj={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)"},dD={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function DM(e){return`${Math.round(e)}ms`}function Uj(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Gj(e){const t={...Vj,...e.easing},r={...dD,...e.duration};return{getAutoHeightDuration:Uj,create:(i=["all"],o={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0,...c}=o;return(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof a=="string"?a:DM(a)} ${s} ${typeof l=="string"?l:DM(l)}`).join(",")},...e,easing:t,duration:r}}const Yj={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function qj(e){return _o(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function pD(e={}){const t={...e};function r(n){const i=Object.entries(n);for(let o=0;o<i.length;o++){const[a,s]=i[o];!qj(s)||a.startsWith("unstable_")?delete n[a]:_o(s)&&(n[a]={...s},r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
95
+
96
+ const theme = ${JSON.stringify(t,null,2)};
97
+
98
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
99
+ theme.transitions = createTransitions(theme.transitions || {});
100
+
101
+ export default theme;`}function tS(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:o={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(ga(20));const d=lw(o),p=mp(e);let h=Vr(p,{mixins:$j(p.breakpoints,n),palette:d,shadows:Hj.slice(),typography:fD(d,s),transitions:Gj(a),zIndex:{...Yj}});return h=Vr(h,c),h=t.reduce((v,g)=>Vr(v,g),h),h.unstable_sxConfig={...gp,...c==null?void 0:c.unstable_sxConfig},h.unstable_sx=function(g){return gs({sx:g,theme:this})},h.toRuntimeSource=pD,h}function rS(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Xj=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=rS(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function hD(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function vD(e){return e==="dark"?Xj:[]}function Kj(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...i}=e,o=lw(t);return{palette:o,opacity:{...hD(o.mode),...r},overlays:n||vD(o.mode),...i}}function Zj(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Qj=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Jj=e=>(t,r)=>{const n=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if(i==="class"&&(o=".%s"),i==="data"&&(o="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Qj(e.cssVarPrefix).forEach(s=>{a[s]=r[s],delete r[s]}),o==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:a}}:o?{[o.replace("%s",t)]:a,[`${n}, ${o.replace("%s",t)}`]:r}:{[n]:{...r,...a}}}if(o&&o!=="media")return`${n}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(o)return o.replace("%s",String(t))}return n};function e8(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function oe(e,t,r){!e[t]&&r&&(e[t]=r)}function Kf(e){return typeof e!="string"||!e.startsWith("hsl")?e:nD(e)}function ra(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Xf(Kf(e[t])))}function t8(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const go=e=>{try{return e()}catch{}},r8=(e="mui")=>pj(e);function u1(e,t,r,n){if(!t)return;t=t===!0?{}:t;const i=n==="dark"?"dark":"light";if(!r){e[n]=Kj({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:o,...a}=tS({...r,palette:{mode:i,...t==null?void 0:t.palette}});return e[n]={...t,palette:o,opacity:{...hD(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||vD(i)},a}function n8(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:a=Zj,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,d=Object.keys(r)[0],p=n||(r.light&&d!=="light"?"light":d),h=r8(o),{[p]:v,light:g,dark:x,...y}=r,S={...y};let w=v;if((p==="dark"&&!("dark"in r)||p==="light"&&!("light"in r))&&(w=!0),!w)throw new Error(ga(21,p));const b=u1(S,w,c,p);g&&!S.light&&u1(S,g,void 0,"light"),x&&!S.dark&&u1(S,x,void 0,"dark");let C={defaultColorScheme:p,...b,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:S,font:{...Bj(b.typography),...b.font},spacing:t8(c.spacing)};Object.keys(C.colorSchemes).forEach(D=>{const k=C.colorSchemes[D].palette,O=N=>{const $=N.split("-"),z=$[1],F=$[2];return h(N,k[z][F])};if(k.mode==="light"&&(oe(k.common,"background","#fff"),oe(k.common,"onBackground","#000")),k.mode==="dark"&&(oe(k.common,"background","#000"),oe(k.common,"onBackground","#fff")),e8(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){oe(k.Alert,"errorColor",Kt(k.error.light,.6)),oe(k.Alert,"infoColor",Kt(k.info.light,.6)),oe(k.Alert,"successColor",Kt(k.success.light,.6)),oe(k.Alert,"warningColor",Kt(k.warning.light,.6)),oe(k.Alert,"errorFilledBg",O("palette-error-main")),oe(k.Alert,"infoFilledBg",O("palette-info-main")),oe(k.Alert,"successFilledBg",O("palette-success-main")),oe(k.Alert,"warningFilledBg",O("palette-warning-main")),oe(k.Alert,"errorFilledColor",go(()=>k.getContrastText(k.error.main))),oe(k.Alert,"infoFilledColor",go(()=>k.getContrastText(k.info.main))),oe(k.Alert,"successFilledColor",go(()=>k.getContrastText(k.success.main))),oe(k.Alert,"warningFilledColor",go(()=>k.getContrastText(k.warning.main))),oe(k.Alert,"errorStandardBg",Zt(k.error.light,.9)),oe(k.Alert,"infoStandardBg",Zt(k.info.light,.9)),oe(k.Alert,"successStandardBg",Zt(k.success.light,.9)),oe(k.Alert,"warningStandardBg",Zt(k.warning.light,.9)),oe(k.Alert,"errorIconColor",O("palette-error-main")),oe(k.Alert,"infoIconColor",O("palette-info-main")),oe(k.Alert,"successIconColor",O("palette-success-main")),oe(k.Alert,"warningIconColor",O("palette-warning-main")),oe(k.AppBar,"defaultBg",O("palette-grey-100")),oe(k.Avatar,"defaultBg",O("palette-grey-400")),oe(k.Button,"inheritContainedBg",O("palette-grey-300")),oe(k.Button,"inheritContainedHoverBg",O("palette-grey-A100")),oe(k.Chip,"defaultBorder",O("palette-grey-400")),oe(k.Chip,"defaultAvatarColor",O("palette-grey-700")),oe(k.Chip,"defaultIconColor",O("palette-grey-700")),oe(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(k.LinearProgress,"primaryBg",Zt(k.primary.main,.62)),oe(k.LinearProgress,"secondaryBg",Zt(k.secondary.main,.62)),oe(k.LinearProgress,"errorBg",Zt(k.error.main,.62)),oe(k.LinearProgress,"infoBg",Zt(k.info.main,.62)),oe(k.LinearProgress,"successBg",Zt(k.success.main,.62)),oe(k.LinearProgress,"warningBg",Zt(k.warning.main,.62)),oe(k.Skeleton,"bg",`rgba(${O("palette-text-primaryChannel")} / 0.11)`),oe(k.Slider,"primaryTrack",Zt(k.primary.main,.62)),oe(k.Slider,"secondaryTrack",Zt(k.secondary.main,.62)),oe(k.Slider,"errorTrack",Zt(k.error.main,.62)),oe(k.Slider,"infoTrack",Zt(k.info.main,.62)),oe(k.Slider,"successTrack",Zt(k.success.main,.62)),oe(k.Slider,"warningTrack",Zt(k.warning.main,.62));const N=Hh(k.background.default,.8);oe(k.SnackbarContent,"bg",N),oe(k.SnackbarContent,"color",go(()=>k.getContrastText(N))),oe(k.SpeedDialAction,"fabHoverBg",Hh(k.background.paper,.15)),oe(k.StepConnector,"border",O("palette-grey-400")),oe(k.StepContent,"border",O("palette-grey-400")),oe(k.Switch,"defaultColor",O("palette-common-white")),oe(k.Switch,"defaultDisabledColor",O("palette-grey-100")),oe(k.Switch,"primaryDisabledColor",Zt(k.primary.main,.62)),oe(k.Switch,"secondaryDisabledColor",Zt(k.secondary.main,.62)),oe(k.Switch,"errorDisabledColor",Zt(k.error.main,.62)),oe(k.Switch,"infoDisabledColor",Zt(k.info.main,.62)),oe(k.Switch,"successDisabledColor",Zt(k.success.main,.62)),oe(k.Switch,"warningDisabledColor",Zt(k.warning.main,.62)),oe(k.TableCell,"border",Zt(Wh(k.divider,1),.88)),oe(k.Tooltip,"bg",Wh(k.grey[700],.92))}if(k.mode==="dark"){oe(k.Alert,"errorColor",Zt(k.error.light,.6)),oe(k.Alert,"infoColor",Zt(k.info.light,.6)),oe(k.Alert,"successColor",Zt(k.success.light,.6)),oe(k.Alert,"warningColor",Zt(k.warning.light,.6)),oe(k.Alert,"errorFilledBg",O("palette-error-dark")),oe(k.Alert,"infoFilledBg",O("palette-info-dark")),oe(k.Alert,"successFilledBg",O("palette-success-dark")),oe(k.Alert,"warningFilledBg",O("palette-warning-dark")),oe(k.Alert,"errorFilledColor",go(()=>k.getContrastText(k.error.dark))),oe(k.Alert,"infoFilledColor",go(()=>k.getContrastText(k.info.dark))),oe(k.Alert,"successFilledColor",go(()=>k.getContrastText(k.success.dark))),oe(k.Alert,"warningFilledColor",go(()=>k.getContrastText(k.warning.dark))),oe(k.Alert,"errorStandardBg",Kt(k.error.light,.9)),oe(k.Alert,"infoStandardBg",Kt(k.info.light,.9)),oe(k.Alert,"successStandardBg",Kt(k.success.light,.9)),oe(k.Alert,"warningStandardBg",Kt(k.warning.light,.9)),oe(k.Alert,"errorIconColor",O("palette-error-main")),oe(k.Alert,"infoIconColor",O("palette-info-main")),oe(k.Alert,"successIconColor",O("palette-success-main")),oe(k.Alert,"warningIconColor",O("palette-warning-main")),oe(k.AppBar,"defaultBg",O("palette-grey-900")),oe(k.AppBar,"darkBg",O("palette-background-paper")),oe(k.AppBar,"darkColor",O("palette-text-primary")),oe(k.Avatar,"defaultBg",O("palette-grey-600")),oe(k.Button,"inheritContainedBg",O("palette-grey-800")),oe(k.Button,"inheritContainedHoverBg",O("palette-grey-700")),oe(k.Chip,"defaultBorder",O("palette-grey-700")),oe(k.Chip,"defaultAvatarColor",O("palette-grey-300")),oe(k.Chip,"defaultIconColor",O("palette-grey-300")),oe(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(k.LinearProgress,"primaryBg",Kt(k.primary.main,.5)),oe(k.LinearProgress,"secondaryBg",Kt(k.secondary.main,.5)),oe(k.LinearProgress,"errorBg",Kt(k.error.main,.5)),oe(k.LinearProgress,"infoBg",Kt(k.info.main,.5)),oe(k.LinearProgress,"successBg",Kt(k.success.main,.5)),oe(k.LinearProgress,"warningBg",Kt(k.warning.main,.5)),oe(k.Skeleton,"bg",`rgba(${O("palette-text-primaryChannel")} / 0.13)`),oe(k.Slider,"primaryTrack",Kt(k.primary.main,.5)),oe(k.Slider,"secondaryTrack",Kt(k.secondary.main,.5)),oe(k.Slider,"errorTrack",Kt(k.error.main,.5)),oe(k.Slider,"infoTrack",Kt(k.info.main,.5)),oe(k.Slider,"successTrack",Kt(k.success.main,.5)),oe(k.Slider,"warningTrack",Kt(k.warning.main,.5));const N=Hh(k.background.default,.98);oe(k.SnackbarContent,"bg",N),oe(k.SnackbarContent,"color",go(()=>k.getContrastText(N))),oe(k.SpeedDialAction,"fabHoverBg",Hh(k.background.paper,.15)),oe(k.StepConnector,"border",O("palette-grey-600")),oe(k.StepContent,"border",O("palette-grey-600")),oe(k.Switch,"defaultColor",O("palette-grey-300")),oe(k.Switch,"defaultDisabledColor",O("palette-grey-600")),oe(k.Switch,"primaryDisabledColor",Kt(k.primary.main,.55)),oe(k.Switch,"secondaryDisabledColor",Kt(k.secondary.main,.55)),oe(k.Switch,"errorDisabledColor",Kt(k.error.main,.55)),oe(k.Switch,"infoDisabledColor",Kt(k.info.main,.55)),oe(k.Switch,"successDisabledColor",Kt(k.success.main,.55)),oe(k.Switch,"warningDisabledColor",Kt(k.warning.main,.55)),oe(k.TableCell,"border",Kt(Wh(k.divider,1),.68)),oe(k.Tooltip,"bg",Wh(k.grey[700],.92))}ra(k.background,"default"),ra(k.background,"paper"),ra(k.common,"background"),ra(k.common,"onBackground"),ra(k,"divider"),Object.keys(k).forEach(N=>{const $=k[N];N!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&oe(k[N],"mainChannel",Xf(Kf($.main))),$.light&&oe(k[N],"lightChannel",Xf(Kf($.light))),$.dark&&oe(k[N],"darkChannel",Xf(Kf($.dark))),$.contrastText&&oe(k[N],"contrastTextChannel",Xf(Kf($.contrastText))),N==="text"&&(ra(k[N],"primary"),ra(k[N],"secondary")),N==="action"&&($.active&&ra(k[N],"active"),$.selected&&ra(k[N],"selected")))})}),C=t.reduce((D,k)=>Vr(D,k),C);const T={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:Jj(C)},{vars:M,generateThemeVars:E,generateStyleSheets:I}=gj(C,T);return C.vars=M,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([D,k])=>{C[D]=k}),C.generateThemeVars=E,C.generateStyleSheets=I,C.generateSpacing=function(){return qI(c.spacing,sm(this))},C.getColorSchemeSelector=mj(s),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=a,C.unstable_sxConfig={...gp,...c==null?void 0:c.unstable_sxConfig},C.unstable_sx=function(k){return gs({sx:k,theme:this})},C.toRuntimeSource=pD,C}function LM(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:lw({...r===!0?{}:r.palette,mode:t})})}function vm(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:o=r==null?void 0:r.mode,...a}=e,s=o||"light",l=i==null?void 0:i[s],c={...i,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return tS(e,...t);let d=r;"palette"in e||c[s]&&(c[s]!==!0?d=c[s].palette:s==="dark"&&(d={mode:"dark"}));const p=tS({...e,palette:d},...t);return p.defaultColorScheme=s,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light={...c.light!==!0&&c.light,palette:p.palette},LM(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},LM(p,"light",c.light)),p}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),n8({...a,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const uw=vm();function Fo(){const e=pm(uw);return e[Ro]||e}function gD(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Yn=e=>gD(e)&&e!=="classes",se=eD({themeId:Ro,defaultTheme:uw,rootShouldForwardProp:Yn});function i8({theme:e,...t}){const r=Ro in e?e[Ro]:void 0;return P.jsx(sD,{...t,themeId:r?Ro:void 0,theme:r||e})}const Vh={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:o8}=dj({themeId:Ro,theme:()=>vm({cssVariables:!0}),colorSchemeStorageKey:Vh.colorSchemeStorageKey,modeStorageKey:Vh.modeStorageKey,defaultColorScheme:{light:Vh.defaultLightColorScheme,dark:Vh.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:fD(e.palette,e.typography)};return t.unstable_sx=function(n){return gs({sx:n,theme:this})},t}}),a8=o8;function mD({theme:e,...t}){const r=L.useMemo(()=>{if(typeof e=="function")return e;const n=Ro in e?e[Ro]:e;return"colorSchemes"in n?null:"vars"in n?e:{...e,vars:null}},[e]);return r?P.jsx(i8,{theme:r,...t}):P.jsx(a8,{theme:e,...t})}function OM(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function s8(e){return P.jsx(I6,{...e,defaultTheme:uw,themeId:Ro})}function cw(e){return function(r){return P.jsx(s8,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function l8(){return nw}const Oe=ij;function He(e){return nj(e)}function u8(e){return ze("MuiSvgIcon",e)}Fe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const c8=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${ue(t)}`,`fontSize${ue(r)}`]};return je(i,u8,n)},f8=se("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ue(r.color)}`],t[`fontSize${ue(r.fontSize)}`]]}})(Oe(({theme:e})=>{var t,r,n,i,o,a,s,l,c,d,p,h,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:x=>!x.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,x])=>x&&x.main).map(([x])=>{var y,S;return{props:{color:x},style:{color:(S=(y=(e.vars??e).palette)==null?void 0:y[x])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(h=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(g=(v=(e.vars??e).palette)==null?void 0:v.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),nS=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...v}=n,g=L.isValidElement(i)&&i.type==="svg",x={...n,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},y={};d||(y.viewBox=h);const S=c8(x);return P.jsxs(f8,{as:s,className:Se(S.root,o),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...y,...v,...g&&i.props,ownerState:x,children:[g?i.props.children:i,p?P.jsx("title",{children:p}):null]})});nS.muiName="SvgIcon";function Gt(e,t){function r(n,i){return P.jsx(nS,{"data-testid":void 0,ref:i,...n,children:e})}return r.muiName=nS.muiName,L.memo(L.forwardRef(r))}function yp(e,t=166){let r;function n(...i){const o=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Hn(e){return e&&e.ownerDocument||document}function li(e){return Hn(e).defaultView||window}function iS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let NM=0;function d8(e){const[t,r]=L.useState(e),n=e||t;return L.useEffect(()=>{t==null&&(NM+=1,r(`mui-${NM}`))},[t]),n}const p8={...Pd},BM=p8.useId;function Tc(e){if(BM!==void 0){const t=BM();return e??t}return d8(e)}function cs(e){const{controlled:t,default:r,name:n,state:i="value"}=e,{current:o}=L.useRef(t!==void 0),[a,s]=L.useState(r),l=o?t:a,c=L.useCallback(d=>{o||s(d)},[]);return[l,c]}function vn(e){const t=L.useRef(e);return lo(()=>{t.current=e}),L.useRef((...r)=>(0,t.current)(...r)).current}function Tr(...e){const t=L.useRef(void 0),r=L.useCallback(n=>{const i=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const a=o,s=a(n);return typeof s=="function"?s:()=>{a(null)}}return o.current=n,()=>{o.current=null}});return()=>{i.forEach(o=>o==null?void 0:o())}},e);return L.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function h8(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function fw(e,t){if(!e)return t;function r(a,s){const l={};return Object.keys(s).forEach(c=>{h8(c,s[c])&&typeof a[c]=="function"&&(l[c]=(...d)=>{a[c](...d),s[c](...d)})}),l}if(typeof e=="function"||typeof t=="function")return a=>{const s=typeof t=="function"?t(a):t,l=typeof e=="function"?e({...a,...s}):e,c=Se(a==null?void 0:a.className,s==null?void 0:s.className,l==null?void 0:l.className),d=r(l,s);return{...s,...l,...d,...!!c&&{className:c},...(s==null?void 0:s.style)&&(l==null?void 0:l.style)&&{style:{...s.style,...l.style}},...(s==null?void 0:s.sx)&&(l==null?void 0:l.sx)&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const n=t,i=r(e,n),o=Se(n==null?void 0:n.className,e==null?void 0:e.className);return{...t,...e,...i,...!!o&&{className:o},...(n==null?void 0:n.style)&&(e==null?void 0:e.style)&&{style:{...n.style,...e.style}},...(n==null?void 0:n.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function yD(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function oS(e,t){return oS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},oS(e,t)}function xD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,oS(e,t)}var SD=KA();const Uh=Lb(SD),$M={disabled:!1},yg=io.createContext(null);var v8=function(t){return t.scrollTop},Zf="unmounted",vl="exited",gl="entering",zu="entered",aS="exiting",Fi=function(e){xD(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var a=i,s=a&&!a.isMounting?n.enter:n.appear,l;return o.appearStatus=null,n.in?s?(l=vl,o.appearStatus=gl):l=zu:n.unmountOnExit||n.mountOnEnter?l=Zf:l=vl,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Zf?{status:vl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==gl&&a!==zu&&(o=gl):(a===gl||a===zu)&&(o=aS)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},r.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===gl){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Uh.findDOMNode(this);a&&v8(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vl&&this.setState({status:Zf})},r.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Uh.findDOMNode(this),s],c=l[0],d=l[1],p=this.getTimeouts(),h=s?p.appear:p.enter;if(!i&&!a||$M.disabled){this.safeSetState({status:zu},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:gl},function(){o.props.onEntering(c,d),o.onTransitionEnd(h,function(){o.safeSetState({status:zu},function(){o.props.onEntered(c,d)})})})},r.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Uh.findDOMNode(this);if(!o||$M.disabled){this.safeSetState({status:vl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:aS},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:vl},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},r.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Uh.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Zf)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=yD(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return io.createElement(yg.Provider,{value:null},typeof a=="function"?a(i,s):io.cloneElement(io.Children.only(a),s))},t}(io.Component);Fi.contextType=yg;Fi.propTypes={};function bu(){}Fi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bu,onEntering:bu,onEntered:bu,onExit:bu,onExiting:bu,onExited:bu};Fi.UNMOUNTED=Zf;Fi.EXITED=vl;Fi.ENTERING=gl;Fi.ENTERED=zu;Fi.EXITING=aS;function g8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dw(e,t){var r=function(o){return t&&L.isValidElement(o)?t(o):o},n=Object.create(null);return e&&L.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function m8(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),i=[];for(var o in e)o in t?i.length&&(n[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(n[l])for(a=0;a<n[l].length;a++){var c=n[l][a];s[n[l][a]]=r(c)}s[l]=r(l)}for(a=0;a<i.length;a++)s[i[a]]=r(i[a]);return s}function wl(e,t,r){return r[t]!=null?r[t]:e.props[t]}function y8(e,t){return dw(e.children,function(r){return L.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:wl(r,"appear",e),enter:wl(r,"enter",e),exit:wl(r,"exit",e)})})}function x8(e,t,r){var n=dw(e.children),i=m8(t,n);return Object.keys(i).forEach(function(o){var a=i[o];if(L.isValidElement(a)){var s=o in t,l=o in n,c=t[o],d=L.isValidElement(c)&&!c.props.in;l&&(!s||d)?i[o]=L.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:wl(a,"exit",e),enter:wl(a,"enter",e)}):!l&&s&&!d?i[o]=L.cloneElement(a,{in:!1}):l&&s&&L.isValidElement(c)&&(i[o]=L.cloneElement(a,{onExited:r.bind(null,a),in:c.props.in,exit:wl(a,"exit",e),enter:wl(a,"enter",e)}))}}),i}var S8=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},b8={component:"div",childFactory:function(t){return t}},pw=function(e){xD(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var a=o.handleExited.bind(g8(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}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,o){var a=o.children,s=o.handleExited,l=o.firstRender;return{children:l?y8(i,s):x8(i,a,s),firstRender:!1}},r.handleExited=function(i,o){var a=dw(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var l=vg({},s.children);return delete l[i.key],{children:l}}))},r.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=yD(i,["component","childFactory"]),l=this.state.contextValue,c=S8(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?io.createElement(yg.Provider,{value:l},c):io.createElement(yg.Provider,{value:l},io.createElement(o,s,c))},t}(io.Component);pw.propTypes={};pw.defaultProps=b8;const zM={};function bD(e,t){const r=L.useRef(zM);return r.current===zM&&(r.current=e(t)),r}const w8=[];function _8(e){L.useEffect(e,w8)}class gm{constructor(){Ws(this,"currentId",null);Ws(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Ws(this,"disposeEffect",()=>this.clear)}static create(){return new gm}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function _l(){const e=bD(gm.create).current;return _8(e.disposeEffect),e}const hw=e=>e.scrollTop;function ys(e,t){const{timeout:r,easing:n,style:i={}}=e;return{duration:i.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:i.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:i.transitionDelay}}function C8(e){return ze("MuiCollapse",e)}Fe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const T8=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return je(n,C8,r)},M8=se("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]}})(Oe(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),k8=se("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),R8=se("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),sS=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:a,collapsedSize:s="0px",component:l,easing:c,in:d,onEnter:p,onEntered:h,onEntering:v,onExit:g,onExited:x,onExiting:y,orientation:S="vertical",style:w,timeout:b=dD.standard,TransitionComponent:C=Fi,...T}=n,M={...n,orientation:S,collapsedSize:s},E=T8(M),I=Fo(),D=_l(),k=L.useRef(null),O=L.useRef(),N=typeof s=="number"?`${s}px`:s,$=S==="horizontal",z=$?"width":"height",F=L.useRef(null),j=Tr(r,F),K=Q=>ce=>{if(Q){const me=F.current;ce===void 0?Q(me):Q(me,ce)}},V=()=>k.current?k.current[$?"clientWidth":"clientHeight"]:0,H=K((Q,ce)=>{k.current&&$&&(k.current.style.position="absolute"),Q.style[z]=N,p&&p(Q,ce)}),Y=K((Q,ce)=>{const me=V();k.current&&$&&(k.current.style.position="");const{duration:de,easing:fe}=ys({style:w,timeout:b,easing:c},{mode:"enter"});if(b==="auto"){const ge=I.transitions.getAutoHeightDuration(me);Q.style.transitionDuration=`${ge}ms`,O.current=ge}else Q.style.transitionDuration=typeof de=="string"?de:`${de}ms`;Q.style[z]=`${me}px`,Q.style.transitionTimingFunction=fe,v&&v(Q,ce)}),W=K((Q,ce)=>{Q.style[z]="auto",h&&h(Q,ce)}),q=K(Q=>{Q.style[z]=`${V()}px`,g&&g(Q)}),te=K(x),le=K(Q=>{const ce=V(),{duration:me,easing:de}=ys({style:w,timeout:b,easing:c},{mode:"exit"});if(b==="auto"){const fe=I.transitions.getAutoHeightDuration(ce);Q.style.transitionDuration=`${fe}ms`,O.current=fe}else Q.style.transitionDuration=typeof me=="string"?me:`${me}ms`;Q.style[z]=N,Q.style.transitionTimingFunction=de,y&&y(Q)}),ne=Q=>{b==="auto"&&D.start(O.current||0,Q),i&&i(F.current,Q)};return P.jsx(C,{in:d,onEnter:H,onEntered:W,onEntering:Y,onExit:q,onExited:te,onExiting:le,addEndListener:ne,nodeRef:F,timeout:b==="auto"?null:b,...T,children:(Q,{ownerState:ce,...me})=>P.jsx(M8,{as:l,className:Se(E.root,a,{entered:E.entered,exited:!d&&N==="0px"&&E.hidden}[Q]),style:{[$?"minWidth":"minHeight"]:N,...w},ref:j,ownerState:{...M,state:Q},...me,children:P.jsx(k8,{ownerState:{...M,state:Q},className:E.wrapper,ref:k,children:P.jsx(R8,{ownerState:{...M,state:Q},className:E.wrapperInner,children:o})})})})});sS&&(sS.muiSupportAuto=!0);function P8(e){return ze("MuiPaper",e)}Fe("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 E8=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return je(o,P8,i)},A8=se("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}`]]}})(Oe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),ji=L.forwardRef(function(t,r){var v;const n=He({props:t,name:"MuiPaper"}),i=Fo(),{className:o,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...d}=n,p={...n,component:a,elevation:s,square:l,variant:c},h=E8(p);return P.jsx(A8,{as:a,ownerState:p,className:Se(h.root,o),ref:r,...d,style:{...c==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[s],...i.vars&&{"--Paper-overlay":(v=i.vars.overlays)==null?void 0:v[s]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${bt("#fff",rS(s))}, ${bt("#fff",rS(s))})`}},...d.style}})}),wD=L.createContext({});function I8(e){return typeof e=="string"}function _D(e,t,r){return e===void 0||I8(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function CD(e,t,r){return typeof e=="function"?e(t,r):e}function TD(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 FM(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 MD(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:o}=e;if(!t){const v=Se(r==null?void 0:r.className,o,i==null?void 0:i.className,n==null?void 0:n.className),g={...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},x={...r,...i,...n};return v.length>0&&(x.className=v),Object.keys(g).length>0&&(x.style=g),{props:x,internalRef:void 0}}const a=TD({...i,...n}),s=FM(n),l=FM(i),c=t(a),d=Se(c==null?void 0:c.className,r==null?void 0:r.className,o,i==null?void 0:i.className,n==null?void 0:n.className),p={...c==null?void 0:c.style,...r==null?void 0:r.style,...i==null?void 0:i.style,...n==null?void 0:n.style},h={...c,...r,...l,...s};return d.length>0&&(h.className=d),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:c.ref}}function Ue(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:o,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...h}=o,v=d[e]||n,g=CD(p[e],i),{props:{component:x,...y},internalRef:S}=MD({className:r,...l,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),w=Tr(S,g==null?void 0:g.ref,t.ref),b=e==="root"?x||c:x,C=_D(v,{...e==="root"&&!c&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...b&&!s&&{as:b},...b&&s&&{component:b},ref:w},i);return[v,C]}function D8(e){return ze("MuiAccordion",e)}const Gh=Fe("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),L8=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:o}=e;return je({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!o&&"gutters"],heading:["heading"],region:["region"]},D8,t)},O8=se(ji,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Gh.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(Oe(({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"}},[`&.${Gh.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${Gh.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),Oe(({theme:e})=>({variants:[{props:t=>!t.square,style:{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}}}},{props:t=>!t.disableGutters,style:{[`&.${Gh.expanded}`]:{margin:"16px 0"}}}]}))),N8=se("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),vw=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiAccordion"}),{children:i,className:o,defaultExpanded:a=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:d,square:p=!1,slots:h={},slotProps:v={},TransitionComponent:g,TransitionProps:x,...y}=n,[S,w]=cs({controlled:c,default:a,name:"Accordion",state:"expanded"}),b=L.useCallback(V=>{w(!S),d&&d(V,!S)},[S,d,w]),[C,...T]=L.Children.toArray(i),M=L.useMemo(()=>({expanded:S,disabled:s,disableGutters:l,toggle:b}),[S,s,l,b]),E={...n,square:p,disabled:s,disableGutters:l,expanded:S},I=L8(E),D={transition:g,...h},k={transition:x,...v},O={slots:D,slotProps:k},[N,$]=Ue("root",{elementType:O8,externalForwardedProps:{...O,...y},className:Se(I.root,o),shouldForwardComponentProp:!0,ownerState:E,ref:r,additionalProps:{square:p}}),[z,F]=Ue("heading",{elementType:N8,externalForwardedProps:O,className:I.heading,ownerState:E}),[j,K]=Ue("transition",{elementType:sS,externalForwardedProps:O,ownerState:E});return P.jsxs(N,{...$,children:[P.jsx(z,{...F,children:P.jsx(wD.Provider,{value:M,children:C})}),P.jsx(j,{in:S,timeout:"auto",...K,children:P.jsx("div",{"aria-labelledby":C.props.id,id:C.props["aria-controls"],role:"region",className:I.region,children:T})})]})});function B8(e){return ze("MuiAccordionDetails",e)}Fe("MuiAccordionDetails",["root"]);const $8=e=>{const{classes:t}=e;return je({root:["root"]},B8,t)},z8=se("div",{name:"MuiAccordionDetails",slot:"Root"})(Oe(({theme:e})=>({padding:e.spacing(1,2,2)}))),gw=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiAccordionDetails"}),{className:i,...o}=n,a=n,s=$8(a);return P.jsx(z8,{className:Se(s.root,i),ref:r,ownerState:a,...o})});function uc(e){try{return e.matches(":focus-visible")}catch{}return!1}class xg{constructor(){Ws(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new xg}static use(){const t=bD(xg.create).current,[r,n]=L.useState(!1);return t.shouldMount=r,t.setShouldMount=n,L.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=j8(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function F8(){return xg.use()}function j8(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function W8(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[d,p]=L.useState(!1),h=Se(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},g=Se(r.child,d&&r.childLeaving,n&&r.childPulsate);return!s&&!d&&p(!0),L.useEffect(()=>{if(!s&&l!=null){const x=setTimeout(l,c);return()=>{clearTimeout(x)}}},[l,s,c]),P.jsx("span",{className:h,style:v,children:P.jsx("span",{className:g})})}const Ri=Fe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),lS=550,H8=80,V8=hp`
102
+ 0% {
103
+ transform: scale(0);
104
+ opacity: 0.1;
105
+ }
106
+
107
+ 100% {
108
+ transform: scale(1);
109
+ opacity: 0.3;
110
+ }
111
+ `,U8=hp`
112
+ 0% {
113
+ opacity: 1;
114
+ }
115
+
116
+ 100% {
117
+ opacity: 0;
118
+ }
119
+ `,G8=hp`
120
+ 0% {
121
+ transform: scale(1);
122
+ }
123
+
124
+ 50% {
125
+ transform: scale(0.92);
126
+ }
127
+
128
+ 100% {
129
+ transform: scale(1);
130
+ }
131
+ `,Y8=se("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),q8=se(W8,{name:"MuiTouchRipple",slot:"Ripple"})`
132
+ opacity: 0;
133
+ position: absolute;
134
+
135
+ &.${Ri.rippleVisible} {
136
+ opacity: 0.3;
137
+ transform: scale(1);
138
+ animation-name: ${V8};
139
+ animation-duration: ${lS}ms;
140
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
141
+ }
142
+
143
+ &.${Ri.ripplePulsate} {
144
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
145
+ }
146
+
147
+ & .${Ri.child} {
148
+ opacity: 1;
149
+ display: block;
150
+ width: 100%;
151
+ height: 100%;
152
+ border-radius: 50%;
153
+ background-color: currentColor;
154
+ }
155
+
156
+ & .${Ri.childLeaving} {
157
+ opacity: 0;
158
+ animation-name: ${U8};
159
+ animation-duration: ${lS}ms;
160
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
161
+ }
162
+
163
+ & .${Ri.childPulsate} {
164
+ position: absolute;
165
+ /* @noflip */
166
+ left: 0px;
167
+ top: 0;
168
+ animation-name: ${G8};
169
+ animation-duration: 2500ms;
170
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
171
+ animation-iteration-count: infinite;
172
+ animation-delay: 200ms;
173
+ }
174
+ `,X8=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a,...s}=n,[l,c]=L.useState([]),d=L.useRef(0),p=L.useRef(null);L.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const h=L.useRef(!1),v=_l(),g=L.useRef(null),x=L.useRef(null),y=L.useCallback(C=>{const{pulsate:T,rippleX:M,rippleY:E,rippleSize:I,cb:D}=C;c(k=>[...k,P.jsx(q8,{classes:{ripple:Se(o.ripple,Ri.ripple),rippleVisible:Se(o.rippleVisible,Ri.rippleVisible),ripplePulsate:Se(o.ripplePulsate,Ri.ripplePulsate),child:Se(o.child,Ri.child),childLeaving:Se(o.childLeaving,Ri.childLeaving),childPulsate:Se(o.childPulsate,Ri.childPulsate)},timeout:lS,pulsate:T,rippleX:M,rippleY:E,rippleSize:I},d.current)]),d.current+=1,p.current=D},[o]),S=L.useCallback((C={},T={},M=()=>{})=>{const{pulsate:E=!1,center:I=i||T.pulsate,fakeElement:D=!1}=T;if((C==null?void 0:C.type)==="mousedown"&&h.current){h.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(h.current=!0);const k=D?null:x.current,O=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,$,z;if(I||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)N=Math.round(O.width/2),$=Math.round(O.height/2);else{const{clientX:F,clientY:j}=C.touches&&C.touches.length>0?C.touches[0]:C;N=Math.round(F-O.left),$=Math.round(j-O.top)}if(I)z=Math.sqrt((2*O.width**2+O.height**2)/3),z%2===0&&(z+=1);else{const F=Math.max(Math.abs((k?k.clientWidth:0)-N),N)*2+2,j=Math.max(Math.abs((k?k.clientHeight:0)-$),$)*2+2;z=Math.sqrt(F**2+j**2)}C!=null&&C.touches?g.current===null&&(g.current=()=>{y({pulsate:E,rippleX:N,rippleY:$,rippleSize:z,cb:M})},v.start(H8,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:E,rippleX:N,rippleY:$,rippleSize:z,cb:M})},[i,y,v]),w=L.useCallback(()=>{S({},{pulsate:!0})},[S]),b=L.useCallback((C,T)=>{if(v.clear(),(C==null?void 0:C.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{b(C,T)});return}g.current=null,c(M=>M.length>0?M.slice(1):M),p.current=T},[v]);return L.useImperativeHandle(r,()=>({pulsate:w,start:S,stop:b}),[w,S,b]),P.jsx(Y8,{className:Se(Ri.root,o.root,a),ref:x,...s,children:P.jsx(pw,{component:null,exit:!0,children:l})})});function K8(e){return ze("MuiButtonBase",e)}const Z8=Fe("MuiButtonBase",["root","disabled","focusVisible"]),Q8=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,a=je({root:["root",t&&"disabled",r&&"focusVisible"]},K8,i);return r&&n&&(a.root+=` ${n}`),a},J8=se("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Z8.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xs=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:v,LinkComponent:g="a",onBlur:x,onClick:y,onContextMenu:S,onDragLeave:w,onFocus:b,onFocusVisible:C,onKeyDown:T,onKeyUp:M,onMouseDown:E,onMouseLeave:I,onMouseUp:D,onTouchEnd:k,onTouchMove:O,onTouchStart:N,tabIndex:$=0,TouchRippleProps:z,touchRippleRef:F,type:j,...K}=n,V=L.useRef(null),H=F8(),Y=Tr(H.ref,F),[W,q]=L.useState(!1);c&&W&&q(!1),L.useImperativeHandle(i,()=>({focusVisible:()=>{q(!0),V.current.focus()}}),[]);const te=H.shouldMount&&!d&&!c;L.useEffect(()=>{W&&h&&!d&&H.pulsate()},[d,h,W,H]);const le=na(H,"start",E,p),ne=na(H,"stop",S,p),Q=na(H,"stop",w,p),ce=na(H,"stop",D,p),me=na(H,"stop",Ce=>{W&&Ce.preventDefault(),I&&I(Ce)},p),de=na(H,"start",N,p),fe=na(H,"stop",k,p),ge=na(H,"stop",O,p),pe=na(H,"stop",Ce=>{uc(Ce.target)||q(!1),x&&x(Ce)},!1),Ne=vn(Ce=>{V.current||(V.current=Ce.currentTarget),uc(Ce.target)&&(q(!0),C&&C(Ce)),b&&b(Ce)}),ke=()=>{const Ce=V.current;return l&&l!=="button"&&!(Ce.tagName==="A"&&Ce.href)},it=vn(Ce=>{h&&!Ce.repeat&&W&&Ce.key===" "&&H.stop(Ce,()=>{H.start(Ce)}),Ce.target===Ce.currentTarget&&ke()&&Ce.key===" "&&Ce.preventDefault(),T&&T(Ce),Ce.target===Ce.currentTarget&&ke()&&Ce.key==="Enter"&&!c&&(Ce.preventDefault(),y&&y(Ce))}),rt=vn(Ce=>{h&&Ce.key===" "&&W&&!Ce.defaultPrevented&&H.stop(Ce,()=>{H.pulsate(Ce)}),M&&M(Ce),y&&Ce.target===Ce.currentTarget&&ke()&&Ce.key===" "&&!Ce.defaultPrevented&&y(Ce)});let dt=l;dt==="button"&&(K.href||K.to)&&(dt=g);const we={};dt==="button"?(we.type=j===void 0?"button":j,we.disabled=c):(!K.href&&!K.to&&(we.role="button"),c&&(we["aria-disabled"]=c));const at=Tr(r,V),Ee={...n,centerRipple:o,component:l,disabled:c,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:$,focusVisible:W},Ye=Q8(Ee);return P.jsxs(J8,{as:dt,className:Se(Ye.root,s),ownerState:Ee,onBlur:pe,onClick:y,onContextMenu:ne,onFocus:Ne,onKeyDown:it,onKeyUp:rt,onMouseDown:le,onMouseLeave:me,onMouseUp:ce,onDragLeave:Q,onTouchEnd:fe,onTouchMove:ge,onTouchStart:de,ref:at,tabIndex:c?-1:$,type:j,...we,...K,children:[a,te?P.jsx(X8,{ref:Y,center:o,...z}):null]})});function na(e,t,r,n=!1){return vn(i=>(r&&r(i),n||e[t](i),!0))}function e9(e){return ze("MuiAccordionSummary",e)}const Hu=Fe("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),t9=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return je({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},e9,t)},r9=se(xs,{name:"MuiAccordionSummary",slot:"Root"})(Oe(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${Hu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Hu.disabled})`]:{cursor:"pointer"},variants:[{props:r=>!r.disableGutters,style:{[`&.${Hu.expanded}`]:{minHeight:64}}}]}})),n9=se("span",{name:"MuiAccordionSummary",slot:"Content"})(Oe(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Hu.expanded}`]:{margin:"20px 0"}}}]}))),i9=se("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(Oe(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Hu.expanded}`]:{transform:"rotate(180deg)"}}))),mw=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiAccordionSummary"}),{children:i,className:o,expandIcon:a,focusVisibleClassName:s,onClick:l,slots:c,slotProps:d,...p}=n,{disabled:h=!1,disableGutters:v,expanded:g,toggle:x}=L.useContext(wD),y=k=>{x&&x(k),l&&l(k)},S={...n,expanded:g,disabled:h,disableGutters:v},w=t9(S),b={slots:c,slotProps:d},[C,T]=Ue("root",{ref:r,shouldForwardComponentProp:!0,className:Se(w.root,o),elementType:r9,externalForwardedProps:{...b,...p},ownerState:S,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:h,"aria-expanded":g,focusVisibleClassName:Se(w.focusVisible,s)},getSlotProps:k=>({...k,onClick:O=>{var N;(N=k.onClick)==null||N.call(k,O),y(O)}})}),[M,E]=Ue("content",{className:w.content,elementType:n9,externalForwardedProps:b,ownerState:S}),[I,D]=Ue("expandIconWrapper",{className:w.expandIconWrapper,elementType:i9,externalForwardedProps:b,ownerState:S});return P.jsxs(C,{...T,children:[P.jsx(M,{...E,children:i}),a&&P.jsx(I,{...D,children:a})]})});function o9(e){return typeof e.main=="string"}function a9(e,t=[]){if(!o9(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Cr(e=[]){return([,t])=>t&&a9(t,e)}function s9(e){return ze("MuiAlert",e)}const jM=Fe("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function l9(e){return ze("MuiCircularProgress",e)}Fe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Va=44,uS=hp`
175
+ 0% {
176
+ transform: rotate(0deg);
177
+ }
178
+
179
+ 100% {
180
+ transform: rotate(360deg);
181
+ }
182
+ `,cS=hp`
183
+ 0% {
184
+ stroke-dasharray: 1px, 200px;
185
+ stroke-dashoffset: 0;
186
+ }
187
+
188
+ 50% {
189
+ stroke-dasharray: 100px, 200px;
190
+ stroke-dashoffset: -15px;
191
+ }
192
+
193
+ 100% {
194
+ stroke-dasharray: 1px, 200px;
195
+ stroke-dashoffset: -126px;
196
+ }
197
+ `,u9=typeof uS!="string"?Jb`
198
+ animation: ${uS} 1.4s linear infinite;
199
+ `:null,c9=typeof cS!="string"?Jb`
200
+ animation: ${cS} 1.4s ease-in-out infinite;
201
+ `:null,f9=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,o={root:["root",r,`color${ue(n)}`],svg:["svg"],circle:["circle",`circle${ue(r)}`,i&&"circleDisableShrink"]};return je(o,l9,t)},d9=se("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ue(r.color)}`]]}})(Oe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:u9||{animation:`${uS} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),p9=se("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),h9=se("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ue(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Oe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:c9||{animation:`${cS} 1.4s ease-in-out infinite`}}]}))),kD=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:d=0,variant:p="indeterminate",...h}=n,v={...n,color:o,disableShrink:a,size:s,thickness:c,value:d,variant:p},g=f9(v),x={},y={},S={};if(p==="determinate"){const w=2*Math.PI*((Va-c)/2);x.strokeDasharray=w.toFixed(3),S["aria-valuenow"]=Math.round(d),x.strokeDashoffset=`${((100-d)/100*w).toFixed(3)}px`,y.transform="rotate(-90deg)"}return P.jsx(d9,{className:Se(g.root,i),style:{width:s,height:s,...y,...l},ownerState:v,ref:r,role:"progressbar",...S,...h,children:P.jsx(p9,{className:g.svg,ownerState:v,viewBox:`${Va/2} ${Va/2} ${Va} ${Va}`,children:P.jsx(h9,{className:g.circle,style:x,ownerState:v,cx:Va,cy:Va,r:(Va-c)/2,fill:"none",strokeWidth:c})})})});function v9(e){return ze("MuiIconButton",e)}const WM=Fe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),g9=e=>{const{classes:t,disabled:r,color:n,edge:i,size:o,loading:a}=e,s={root:["root",a&&"loading",r&&"disabled",n!=="default"&&`color${ue(n)}`,i&&`edge${ue(i)}`,`size${ue(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return je(s,v9,t)},m9=se(xs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${ue(r.color)}`],r.edge&&t[`edge${ue(r.edge)}`],t[`size${ue(r.size)}`]]}})(Oe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Oe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${WM.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${WM.loading}`]:{color:"transparent"}}))),y9=se("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),ba=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium",id:p,loading:h=null,loadingIndicator:v,...g}=n,x=Tc(p),y=v??P.jsx(kD,{"aria-labelledby":x,color:"inherit",size:16}),S={...n,edge:i,color:s,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:y,size:d},w=g9(S);return P.jsxs(m9,{id:h?x:p,className:Se(w.root,a),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:r,...g,ownerState:S,children:[typeof h=="boolean"&&P.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:P.jsx(y9,{className:w.loadingIndicator,ownerState:S,children:h&&y})}),o]})}),x9=Gt(P.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"})),S9=Gt(P.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),b9=Gt(P.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"})),w9=Gt(P.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"})),RD=Gt(P.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"})),_9=e=>{const{variant:t,color:r,severity:n,classes:i}=e,o={root:["root",`color${ue(r||n)}`,`${t}${ue(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return je(o,s9,i)},C9=se(ji,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ue(r.color||r.severity)}`]]}})(Oe(({theme:e})=>{const t=e.palette.mode==="light"?$l:zl,r=e.palette.mode==="light"?zl:$l;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Cr(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${jM.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(Cr(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${jM.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(Cr(["dark"])).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${n}FilledColor`],backgroundColor:e.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[n].dark:e.palette[n].main,color:e.palette.getContrastText(e.palette[n].main)}}}))]}})),T9=se("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),M9=se("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),k9=se("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),HM={success:P.jsx(x9,{fontSize:"inherit"}),warning:P.jsx(S9,{fontSize:"inherit"}),error:P.jsx(b9,{fontSize:"inherit"}),info:P.jsx(w9,{fontSize:"inherit"})},ua=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiAlert"}),{action:i,children:o,className:a,closeText:s="Close",color:l,components:c={},componentsProps:d={},icon:p,iconMapping:h=HM,onClose:v,role:g="alert",severity:x="success",slotProps:y={},slots:S={},variant:w="standard",...b}=n,C={...n,color:l,severity:x,variant:w,colorSeverity:l||x},T=_9(C),M={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...S},slotProps:{...d,...y}},[E,I]=Ue("root",{ref:r,shouldForwardComponentProp:!0,className:Se(T.root,a),elementType:C9,externalForwardedProps:{...M,...b},ownerState:C,additionalProps:{role:g,elevation:0}}),[D,k]=Ue("icon",{className:T.icon,elementType:T9,externalForwardedProps:M,ownerState:C}),[O,N]=Ue("message",{className:T.message,elementType:M9,externalForwardedProps:M,ownerState:C}),[$,z]=Ue("action",{className:T.action,elementType:k9,externalForwardedProps:M,ownerState:C}),[F,j]=Ue("closeButton",{elementType:ba,externalForwardedProps:M,ownerState:C}),[K,V]=Ue("closeIcon",{elementType:RD,externalForwardedProps:M,ownerState:C});return P.jsxs(E,{...I,children:[p!==!1?P.jsx(D,{...k,children:p||h[x]||HM[x]}):null,P.jsx(O,{...N,children:o}),i!=null?P.jsx($,{...z,children:i}):null,i==null&&v?P.jsx($,{...z,children:P.jsx(F,{size:"small","aria-label":s,title:s,color:"inherit",onClick:v,...j,children:P.jsx(K,{fontSize:"small",...V})})}):null]})});function R9(e){return ze("MuiTypography",e)}const VM=Fe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),P9={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},E9=l8(),A9=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${ue(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return je(s,R9,a)},I9=se("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${ue(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Oe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(Cr()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${ue(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),UM={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Xe=L.forwardRef(function(t,r){const{color:n,...i}=He({props:t,name:"MuiTypography"}),o=!P9[n],a=E9({...i,...o&&{color:n}}),{align:s="inherit",className:l,component:c,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:v="body1",variantMapping:g=UM,...x}=a,y={...a,align:s,color:n,className:l,component:c,gutterBottom:d,noWrap:p,paragraph:h,variant:v,variantMapping:g},S=c||(h?"p":g[v]||UM[v])||"span",w=A9(y);return P.jsx(I9,{as:S,ref:r,className:Se(w.root,l),...x,ownerState:y,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...x.style}})});function D9(e){return ze("MuiAppBar",e)}Fe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const L9=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${ue(t)}`,`position${ue(r)}`]};return je(i,D9,n)},GM=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,O9=se(ji,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ue(r.position)}`],t[`color${ue(r.color)}`]]}})(Oe(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Cr(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?GM(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?GM(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),N9=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed",...l}=n,c={...n,color:o,position:s,enableColorOnDark:a},d=L9(c);return P.jsx(O9,{square:!0,component:"header",ownerState:c,elevation:4,className:Se(d.root,i,s==="fixed"&&"mui-fixed"),ref:r,...l})}),B9=e=>{const t=L.useRef({});return L.useEffect(()=>{t.current=e}),t.current};function YM(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function $9(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let d=a?l.trim():l;r&&(d=d.toLowerCase()),t&&(d=YM(d));const p=d?s.filter(h=>{let v=(o||c)(h);return r&&(v=v.toLowerCase()),t&&(v=YM(v)),i==="start"?v.startsWith(d):v.includes(d)}):s;return typeof n=="number"?p.slice(0,n):p}}const z9=$9(),F9=5,j9=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},W9=[];function qM(e,t,r,n){if(t||e==null||n)return"";const i=r(e);return typeof i=="string"?i:""}function H9(e){const{unstable_isActiveElementInListbox:t=j9,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:d=e.multiple?W9:null,disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:v,disabledItemsFocusable:g=!1,disableListWrap:x=!1,filterOptions:y=z9,filterSelectedOptions:S=!1,freeSolo:w=!1,getOptionDisabled:b,getOptionKey:C,getOptionLabel:T=ae=>ae.label??ae,groupBy:M,handleHomeEndKeys:E=!e.freeSolo,id:I,includeInputInList:D=!1,inputValue:k,isOptionEqualToValue:O=(ae,ie)=>ae===ie,multiple:N=!1,onChange:$,onClose:z,onHighlightChange:F,onInputChange:j,onOpen:K,open:V,openOnFocus:H=!1,options:Y,readOnly:W=!1,renderValue:q,selectOnFocus:te=!e.freeSolo,value:le}=e,ne=Tc(I);let Q=T;Q=ae=>{const ie=T(ae);return typeof ie!="string"?String(ie):ie};const ce=L.useRef(!1),me=L.useRef(!0),de=L.useRef(null),fe=L.useRef(null),[ge,pe]=L.useState(null),[Ne,ke]=L.useState(-1),it=i?0:-1,rt=L.useRef(it),dt=L.useRef(qM(d??le,N,Q)).current,[we,at]=cs({controlled:le,default:d,name:c}),[Ee,Ye]=cs({controlled:k,default:dt,name:c,state:"inputValue"}),[Ce,Xt]=L.useState(!1),mt=L.useCallback((ae,ie,Re)=>{if(!(N?we.length<ie.length:ie!==null)&&!s)return;const qe=qM(ie,N,Q,q);Ee!==qe&&(Ye(qe),j&&j(ae,qe,Re))},[Q,Ee,N,j,Ye,s,we,q]),[Wt,Jt]=cs({controlled:V,default:!1,name:c,state:"open"}),[ar,Lt]=L.useState(!0),tr=!N&&we!=null&&Ee===Q(we),Je=Wt&&!W,xe=Je?y(Y.filter(ae=>!(S&&(N?we:[we]).some(ie=>ie!==null&&O(ae,ie)))),{inputValue:tr&&ar?"":Ee,getOptionLabel:Q}):[],wt=B9({filteredOptions:xe,value:we,inputValue:Ee});L.useEffect(()=>{const ae=we!==wt.value;Ce&&!ae||w&&!ae||mt(null,we,"reset")},[we,mt,Ce,wt.value,w]);const Rt=Wt&&xe.length>0&&!W,ut=vn(ae=>{if(ae===-1)de.current.focus();else{const ie=q?"data-item-index":"data-tag-index";ge.querySelector(`[${ie}="${ae}"]`).focus()}});L.useEffect(()=>{N&&Ne>we.length-1&&(ke(-1),ut(-1))},[we,N,Ne,ut]);function Be(ae,ie){if(!fe.current||ae<0||ae>=xe.length)return-1;let Re=ae;for(;;){const vt=fe.current.querySelector(`[data-option-index="${Re}"]`),qe=g?!1:!vt||vt.disabled||vt.getAttribute("aria-disabled")==="true";if(vt&&vt.hasAttribute("tabindex")&&!qe)return Re;if(ie==="next"?Re=(Re+1)%xe.length:Re=(Re-1+xe.length)%xe.length,Re===ae)return-1}}const st=vn(({event:ae,index:ie,reason:Re})=>{if(rt.current=ie,ie===-1?de.current.removeAttribute("aria-activedescendant"):de.current.setAttribute("aria-activedescendant",`${ne}-option-${ie}`),F&&["mouse","keyboard","touch"].includes(Re)&&F(ae,ie===-1?null:xe[ie],Re),!fe.current)return;const vt=fe.current.querySelector(`[role="option"].${r}-focused`);vt&&(vt.classList.remove(`${r}-focused`),vt.classList.remove(`${r}-focusVisible`));let qe=fe.current;if(fe.current.getAttribute("role")!=="listbox"&&(qe=fe.current.parentElement.querySelector('[role="listbox"]')),!qe)return;if(ie===-1){qe.scrollTop=0;return}const sr=fe.current.querySelector(`[data-option-index="${ie}"]`);if(sr&&(sr.classList.add(`${r}-focused`),Re==="keyboard"&&sr.classList.add(`${r}-focusVisible`),qe.scrollHeight>qe.clientHeight&&Re!=="mouse"&&Re!=="touch")){const mr=sr,Pt=qe.clientHeight+qe.scrollTop,Ic=mr.offsetTop+mr.offsetHeight;Ic>Pt?qe.scrollTop=Ic-qe.clientHeight:mr.offsetTop-mr.offsetHeight*(M?1.3:0)<qe.scrollTop&&(qe.scrollTop=mr.offsetTop-mr.offsetHeight*(M?1.3:0))}}),_t=vn(({event:ae,diff:ie,direction:Re="next",reason:vt})=>{if(!Je)return;const sr=Be((()=>{const mr=xe.length-1;if(ie==="reset")return it;if(ie==="start")return 0;if(ie==="end")return mr;const Pt=rt.current+ie;return Pt<0?Pt===-1&&D?-1:x&&rt.current!==-1||Math.abs(ie)>1?0:mr:Pt>mr?Pt===mr+1&&D?-1:x||Math.abs(ie)>1?mr:0:Pt})(),Re);if(st({index:sr,reason:vt,event:ae}),n&&ie!=="reset")if(sr===-1)de.current.value=Ee;else{const mr=Q(xe[sr]);de.current.value=mr,mr.toLowerCase().indexOf(Ee.toLowerCase())===0&&Ee.length>0&&de.current.setSelectionRange(Ee.length,mr.length)}}),gr=()=>{const ae=(ie,Re)=>{const vt=ie?Q(ie):"",qe=Re?Q(Re):"";return vt===qe};if(rt.current!==-1&&wt.filteredOptions&&wt.filteredOptions.length!==xe.length&&wt.inputValue===Ee&&(N?we.length===wt.value.length&&wt.value.every((ie,Re)=>Q(we[Re])===Q(ie)):ae(wt.value,we))){const ie=wt.filteredOptions[rt.current];if(ie)return xe.findIndex(Re=>Q(Re)===Q(ie))}return-1},Nr=L.useCallback(()=>{if(!Je)return;const ae=gr();if(ae!==-1){rt.current=ae;return}const ie=N?we[0]:we;if(xe.length===0||ie==null){_t({diff:"reset"});return}if(fe.current){if(ie!=null){const Re=xe[rt.current];if(N&&Re&&we.findIndex(qe=>O(Re,qe))!==-1)return;const vt=xe.findIndex(qe=>O(qe,ie));vt===-1?_t({diff:"reset"}):st({index:vt});return}if(rt.current>=xe.length-1){st({index:xe.length-1});return}st({index:rt.current})}},[xe.length,N?!1:we,S,_t,st,Je,Ee,N]),Hi=vn(ae=>{iS(fe,ae),ae&&Nr()});L.useEffect(()=>{Nr()},[Nr]);const rr=ae=>{Wt||(Jt(!0),Lt(!0),K&&K(ae))},Rr=(ae,ie)=>{Wt&&(Jt(!1),z&&z(ae,ie))},en=(ae,ie,Re,vt)=>{if(N){if(we.length===ie.length&&we.every((qe,sr)=>qe===ie[sr]))return}else if(we===ie)return;$&&$(ae,ie,Re,vt),at(ie)},qn=L.useRef(!1),Ur=(ae,ie,Re="selectOption",vt="options")=>{let qe=Re,sr=ie;if(N){sr=Array.isArray(we)?we.slice():[];const mr=sr.findIndex(Pt=>O(ie,Pt));mr===-1?sr.push(ie):vt!=="freeSolo"&&(sr.splice(mr,1),qe="removeOption")}mt(ae,sr,qe),en(ae,sr,qe,{option:ie}),!h&&(!ae||!ae.ctrlKey&&!ae.metaKey)&&Rr(ae,qe),(a===!0||a==="touch"&&qn.current||a==="mouse"&&!qn.current)&&de.current.blur()};function Vi(ae,ie){if(ae===-1)return-1;let Re=ae;for(;;){if(ie==="next"&&Re===we.length||ie==="previous"&&Re===-1)return-1;const vt=q?"data-item-index":"data-tag-index",qe=ge.querySelector(`[${vt}="${Re}"]`);if(!qe||!qe.hasAttribute("tabindex")||qe.disabled||qe.getAttribute("aria-disabled")==="true")Re+=ie==="next"?1:-1;else return Re}}const et=(ae,ie)=>{if(!N)return;Ee===""&&Rr(ae,"toggleInput");let Re=Ne;Ne===-1?Ee===""&&ie==="previous"&&(Re=we.length-1):(Re+=ie==="next"?1:-1,Re<0&&(Re=0),Re===we.length&&(Re=-1)),Re=Vi(Re,ie),ke(Re),ut(Re)},nr=ae=>{ce.current=!0,Ye(""),j&&j(ae,"","clear"),en(ae,N?[]:null,"clear")},Me=ae=>ie=>{if(ae.onKeyDown&&ae.onKeyDown(ie),!ie.defaultMuiPrevented&&(Ne!==-1&&!["ArrowLeft","ArrowRight"].includes(ie.key)&&(ke(-1),ut(-1)),ie.which!==229))switch(ie.key){case"Home":Je&&E&&(ie.preventDefault(),_t({diff:"start",direction:"next",reason:"keyboard",event:ie}));break;case"End":Je&&E&&(ie.preventDefault(),_t({diff:"end",direction:"previous",reason:"keyboard",event:ie}));break;case"PageUp":ie.preventDefault(),_t({diff:-5,direction:"previous",reason:"keyboard",event:ie}),rr(ie);break;case"PageDown":ie.preventDefault(),_t({diff:F9,direction:"next",reason:"keyboard",event:ie}),rr(ie);break;case"ArrowDown":ie.preventDefault(),_t({diff:1,direction:"next",reason:"keyboard",event:ie}),rr(ie);break;case"ArrowUp":ie.preventDefault(),_t({diff:-1,direction:"previous",reason:"keyboard",event:ie}),rr(ie);break;case"ArrowLeft":!N&&q?ut(0):et(ie,"previous");break;case"ArrowRight":!N&&q?ut(-1):et(ie,"next");break;case"Enter":if(rt.current!==-1&&Je){const Re=xe[rt.current],vt=b?b(Re):!1;if(ie.preventDefault(),vt)return;Ur(ie,Re,"selectOption"),n&&de.current.setSelectionRange(de.current.value.length,de.current.value.length)}else w&&Ee!==""&&tr===!1&&(N&&ie.preventDefault(),Ur(ie,Ee,"createOption","freeSolo"));break;case"Escape":Je?(ie.preventDefault(),ie.stopPropagation(),Rr(ie,"escape")):l&&(Ee!==""||N&&we.length>0||q)&&(ie.preventDefault(),ie.stopPropagation(),nr(ie));break;case"Backspace":if(N&&!W&&Ee===""&&we.length>0){const Re=Ne===-1?we.length-1:Ne,vt=we.slice();vt.splice(Re,1),en(ie,vt,"removeOption",{option:we[Re]})}!N&&q&&!W&&(at(null),ut(-1));break;case"Delete":if(N&&!W&&Ee===""&&we.length>0&&Ne!==-1){const Re=Ne,vt=we.slice();vt.splice(Re,1),en(ie,vt,"removeOption",{option:we[Re]})}!N&&q&&!W&&(at(null),ut(-1));break}},Ae=ae=>{Xt(!0),H&&!ce.current&&rr(ae)},ct=ae=>{if(t(fe)){de.current.focus();return}Xt(!1),me.current=!0,ce.current=!1,o&&rt.current!==-1&&Je?Ur(ae,xe[rt.current],"blur"):o&&w&&Ee!==""?Ur(ae,Ee,"blur","freeSolo"):s&&mt(ae,we,"blur"),Rr(ae,"blur")},pt=ae=>{const ie=ae.target.value;Ee!==ie&&(Ye(ie),Lt(!1),j&&j(ae,ie,"input")),ie===""?!p&&!N&&en(ae,null,"clear"):rr(ae)},zt=ae=>{const ie=Number(ae.currentTarget.getAttribute("data-option-index"));rt.current!==ie&&st({event:ae,index:ie,reason:"mouse"})},Pr=ae=>{st({event:ae,index:Number(ae.currentTarget.getAttribute("data-option-index")),reason:"touch"}),qn.current=!0},tn=ae=>{const ie=Number(ae.currentTarget.getAttribute("data-option-index"));Ur(ae,xe[ie],"selectOption"),qn.current=!1},mn=ae=>ie=>{const Re=we.slice();Re.splice(ae,1),en(ie,Re,"removeOption",{option:we[ae]})},Go=ae=>{en(ae,null,"removeOption",{option:we})},pi=ae=>{Wt?Rr(ae,"toggleInput"):rr(ae)},Er=ae=>{ae.currentTarget.contains(ae.target)&&ae.target.getAttribute("id")!==ne&&ae.preventDefault()},Ar=ae=>{ae.currentTarget.contains(ae.target)&&(de.current.focus(),te&&me.current&&de.current.selectionEnd-de.current.selectionStart===0&&de.current.select(),me.current=!1)},rn=ae=>{!v&&(Ee===""||!Wt)&&pi(ae)};let Ca=w&&Ee.length>0;Ca=Ca||(N?we.length>0:we!==null);let Rs=xe;return M&&(Rs=xe.reduce((ae,ie,Re)=>{const vt=M(ie);return ae.length>0&&ae[ae.length-1].group===vt?ae[ae.length-1].options.push(ie):ae.push({key:Re,index:Re,group:vt,options:[ie]}),ae},[])),v&&Ce&&ct(),{getRootProps:(ae={})=>({...ae,onKeyDown:Me(ae),onMouseDown:Er,onClick:Ar}),getInputLabelProps:()=>({id:`${ne}-label`,htmlFor:ne}),getInputProps:()=>({id:ne,value:Ee,onBlur:ct,onFocus:Ae,onChange:pt,onMouseDown:rn,"aria-activedescendant":Je?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Rt?`${ne}-listbox`:void 0,"aria-expanded":Rt,autoComplete:"off",ref:de,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:nr}),getItemProps:({index:ae=0}={})=>({...N&&{key:ae},...q?{"data-item-index":ae}:{"data-tag-index":ae},tabIndex:-1,...!W&&{onDelete:N?mn(ae):Go}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:pi}),getTagProps:({index:ae})=>({key:ae,"data-tag-index":ae,tabIndex:-1,...!W&&{onDelete:mn(ae)}}),getListboxProps:()=>({role:"listbox",id:`${ne}-listbox`,"aria-labelledby":`${ne}-label`,ref:Hi,onMouseDown:ae=>{ae.preventDefault()}}),getOptionProps:({index:ae,option:ie})=>{const Re=(N?we:[we]).some(qe=>qe!=null&&O(ie,qe)),vt=b?b(ie):!1;return{key:(C==null?void 0:C(ie))??Q(ie),tabIndex:-1,role:"option",id:`${ne}-option-${ae}`,onMouseMove:zt,onClick:tn,onTouchStart:Pr,"data-option-index":ae,"aria-disabled":vt,"aria-selected":Re}},id:ne,inputValue:Ee,value:we,dirty:Ca,expanded:Je&&ge,popupOpen:Je,focused:Ce||Ne!==-1,anchorEl:ge,setAnchorEl:pe,focusedItem:Ne,focusedTag:Ne,groupedOptions:Rs}}var zn="top",Bi="bottom",$i="right",Fn="left",yw="auto",xp=[zn,Bi,$i,Fn],cc="start",Fd="end",V9="clippingParents",PD="viewport",xf="popper",U9="reference",XM=xp.reduce(function(e,t){return e.concat([t+"-"+cc,t+"-"+Fd])},[]),ED=[].concat(xp,[yw]).reduce(function(e,t){return e.concat([t,t+"-"+cc,t+"-"+Fd])},[]),G9="beforeRead",Y9="read",q9="afterRead",X9="beforeMain",K9="main",Z9="afterMain",Q9="beforeWrite",J9="write",e7="afterWrite",t7=[G9,Y9,q9,X9,K9,Z9,Q9,J9,e7];function Bo(e){return e?(e.nodeName||"").toLowerCase():null}function ui(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fl(e){var t=ui(e).Element;return e instanceof t||e instanceof Element}function Oi(e){var t=ui(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xw(e){if(typeof ShadowRoot>"u")return!1;var t=ui(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function r7(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!Oi(o)||!Bo(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function n7(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],o=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,c){return l[c]="",l},{});!Oi(i)||!Bo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const i7={name:"applyStyles",enabled:!0,phase:"write",fn:r7,effect:n7,requires:["computeStyles"]};function Eo(e){return e.split("-")[0]}var Rl=Math.max,Sg=Math.min,fc=Math.round;function fS(){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 AD(){return!/^((?!chrome|android).)*safari/i.test(fS())}function dc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&Oi(e)&&(i=e.offsetWidth>0&&fc(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&fc(n.height)/e.offsetHeight||1);var a=Fl(e)?ui(e):window,s=a.visualViewport,l=!AD()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/i,d=(n.top+(l&&s?s.offsetTop:0))/o,p=n.width/i,h=n.height/o;return{width:p,height:h,top:d,right:c+p,bottom:d+h,left:c,x:c,y:d}}function Sw(e){var t=dc(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 ID(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&xw(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ma(e){return ui(e).getComputedStyle(e)}function o7(e){return["table","td","th"].indexOf(Bo(e))>=0}function Ts(e){return((Fl(e)?e.ownerDocument:e.document)||window.document).documentElement}function mm(e){return Bo(e)==="html"?e:e.assignedSlot||e.parentNode||(xw(e)?e.host:null)||Ts(e)}function KM(e){return!Oi(e)||ma(e).position==="fixed"?null:e.offsetParent}function a7(e){var t=/firefox/i.test(fS()),r=/Trident/i.test(fS());if(r&&Oi(e)){var n=ma(e);if(n.position==="fixed")return null}var i=mm(e);for(xw(i)&&(i=i.host);Oi(i)&&["html","body"].indexOf(Bo(i))<0;){var o=ma(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Sp(e){for(var t=ui(e),r=KM(e);r&&o7(r)&&ma(r).position==="static";)r=KM(r);return r&&(Bo(r)==="html"||Bo(r)==="body"&&ma(r).position==="static")?t:r||a7(e)||t}function bw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fd(e,t,r){return Rl(e,Sg(t,r))}function s7(e,t,r){var n=fd(e,t,r);return n>r?r:n}function DD(){return{top:0,right:0,bottom:0,left:0}}function LD(e){return Object.assign({},DD(),e)}function OD(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var l7=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,LD(typeof t!="number"?t:OD(t,xp))};function u7(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Eo(r.placement),l=bw(s),c=[Fn,$i].indexOf(s)>=0,d=c?"height":"width";if(!(!o||!a)){var p=l7(i.padding,r),h=Sw(o),v=l==="y"?zn:Fn,g=l==="y"?Bi:$i,x=r.rects.reference[d]+r.rects.reference[l]-a[l]-r.rects.popper[d],y=a[l]-r.rects.reference[l],S=Sp(o),w=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,b=x/2-y/2,C=p[v],T=w-h[d]-p[g],M=w/2-h[d]/2+b,E=fd(C,M,T),I=l;r.modifiersData[n]=(t={},t[I]=E,t.centerOffset=E-M,t)}}function c7(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)||ID(t.elements.popper,i)&&(t.elements.arrow=i))}const f7={name:"arrow",enabled:!0,phase:"main",fn:u7,effect:c7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pc(e){return e.split("-")[1]}var d7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p7(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:fc(r*i)/i||0,y:fc(n*i)/i||0}}function ZM(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=a.x,v=h===void 0?0:h,g=a.y,x=g===void 0?0:g,y=typeof d=="function"?d({x:v,y:x}):{x:v,y:x};v=y.x,x=y.y;var S=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),b=Fn,C=zn,T=window;if(c){var M=Sp(r),E="clientHeight",I="clientWidth";if(M===ui(r)&&(M=Ts(r),ma(M).position!=="static"&&s==="absolute"&&(E="scrollHeight",I="scrollWidth")),M=M,i===zn||(i===Fn||i===$i)&&o===Fd){C=Bi;var D=p&&M===T&&T.visualViewport?T.visualViewport.height:M[E];x-=D-n.height,x*=l?1:-1}if(i===Fn||(i===zn||i===Bi)&&o===Fd){b=$i;var k=p&&M===T&&T.visualViewport?T.visualViewport.width:M[I];v-=k-n.width,v*=l?1:-1}}var O=Object.assign({position:s},c&&d7),N=d===!0?p7({x:v,y:x},ui(r)):{x:v,y:x};if(v=N.x,x=N.y,l){var $;return Object.assign({},O,($={},$[C]=w?"0":"",$[b]=S?"0":"",$.transform=(T.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",$))}return Object.assign({},O,(t={},t[C]=w?x+"px":"",t[b]=S?v+"px":"",t.transform="",t))}function h7(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:Eo(t.placement),variation:pc(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,ZM(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ZM(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const v7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:h7,data:{}};var Yh={passive:!0};function g7(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,s=a===void 0?!0:a,l=ui(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",r.update,Yh)}),s&&l.addEventListener("resize",r.update,Yh),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Yh)}),s&&l.removeEventListener("resize",r.update,Yh)}}const m7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:g7,data:{}};var y7={left:"right",right:"left",bottom:"top",top:"bottom"};function Yv(e){return e.replace(/left|right|bottom|top/g,function(t){return y7[t]})}var x7={start:"end",end:"start"};function QM(e){return e.replace(/start|end/g,function(t){return x7[t]})}function ww(e){var t=ui(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function _w(e){return dc(Ts(e)).left+ww(e).scrollLeft}function S7(e,t){var r=ui(e),n=Ts(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=AD();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+_w(e),y:l}}function b7(e){var t,r=Ts(e),n=ww(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Rl(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Rl(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+_w(e),l=-n.scrollTop;return ma(i||r).direction==="rtl"&&(s+=Rl(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Cw(e){var t=ma(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function ND(e){return["html","body","#document"].indexOf(Bo(e))>=0?e.ownerDocument.body:Oi(e)&&Cw(e)?e:ND(mm(e))}function dd(e,t){var r;t===void 0&&(t=[]);var n=ND(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=ui(n),a=i?[o].concat(o.visualViewport||[],Cw(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(dd(mm(a)))}function dS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function w7(e,t){var r=dc(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 JM(e,t,r){return t===PD?dS(S7(e,r)):Fl(t)?w7(t,r):dS(b7(Ts(e)))}function _7(e){var t=dd(mm(e)),r=["absolute","fixed"].indexOf(ma(e).position)>=0,n=r&&Oi(e)?Sp(e):e;return Fl(n)?t.filter(function(i){return Fl(i)&&ID(i,n)&&Bo(i)!=="body"}):[]}function C7(e,t,r,n){var i=t==="clippingParents"?_7(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(l,c){var d=JM(e,c,n);return l.top=Rl(d.top,l.top),l.right=Sg(d.right,l.right),l.bottom=Sg(d.bottom,l.bottom),l.left=Rl(d.left,l.left),l},JM(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function BD(e){var t=e.reference,r=e.element,n=e.placement,i=n?Eo(n):null,o=n?pc(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case zn:l={x:a,y:t.y-r.height};break;case Bi:l={x:a,y:t.y+t.height};break;case $i:l={x:t.x+t.width,y:s};break;case Fn:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?bw(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case cc:l[c]=l[c]-(t[d]/2-r[d]/2);break;case Fd:l[c]=l[c]+(t[d]/2-r[d]/2);break}}return l}function jd(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,a=o===void 0?e.strategy:o,s=r.boundary,l=s===void 0?V9:s,c=r.rootBoundary,d=c===void 0?PD:c,p=r.elementContext,h=p===void 0?xf:p,v=r.altBoundary,g=v===void 0?!1:v,x=r.padding,y=x===void 0?0:x,S=LD(typeof y!="number"?y:OD(y,xp)),w=h===xf?U9:xf,b=e.rects.popper,C=e.elements[g?w:h],T=C7(Fl(C)?C:C.contextElement||Ts(e.elements.popper),l,d,a),M=dc(e.elements.reference),E=BD({reference:M,element:b,placement:i}),I=dS(Object.assign({},b,E)),D=h===xf?I:M,k={top:T.top-D.top+S.top,bottom:D.bottom-T.bottom+S.bottom,left:T.left-D.left+S.left,right:D.right-T.right+S.right},O=e.modifiersData.offset;if(h===xf&&O){var N=O[i];Object.keys(k).forEach(function($){var z=[$i,Bi].indexOf($)>=0?1:-1,F=[zn,Bi].indexOf($)>=0?"y":"x";k[$]+=N[F]*z})}return k}function T7(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?ED:l,d=pc(n),p=d?s?XM:XM.filter(function(g){return pc(g)===d}):xp,h=p.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=p);var v=h.reduce(function(g,x){return g[x]=jd(e,{placement:x,boundary:i,rootBoundary:o,padding:a})[Eo(x)],g},{});return Object.keys(v).sort(function(g,x){return v[g]-v[x]})}function M7(e){if(Eo(e)===yw)return[];var t=Yv(e);return[QM(e),t,QM(t)]}function k7(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,c=r.padding,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,v=r.flipVariations,g=v===void 0?!0:v,x=r.allowedAutoPlacements,y=t.options.placement,S=Eo(y),w=S===y,b=l||(w||!g?[Yv(y)]:M7(y)),C=[y].concat(b).reduce(function(le,ne){return le.concat(Eo(ne)===yw?T7(t,{placement:ne,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:x}):ne)},[]),T=t.rects.reference,M=t.rects.popper,E=new Map,I=!0,D=C[0],k=0;k<C.length;k++){var O=C[k],N=Eo(O),$=pc(O)===cc,z=[zn,Bi].indexOf(N)>=0,F=z?"width":"height",j=jd(t,{placement:O,boundary:d,rootBoundary:p,altBoundary:h,padding:c}),K=z?$?$i:Fn:$?Bi:zn;T[F]>M[F]&&(K=Yv(K));var V=Yv(K),H=[];if(o&&H.push(j[N]<=0),s&&H.push(j[K]<=0,j[V]<=0),H.every(function(le){return le})){D=O,I=!1;break}E.set(O,H)}if(I)for(var Y=g?3:1,W=function(ne){var Q=C.find(function(ce){var me=E.get(ce);if(me)return me.slice(0,ne).every(function(de){return de})});if(Q)return D=Q,"break"},q=Y;q>0;q--){var te=W(q);if(te==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const R7={name:"flip",enabled:!0,phase:"main",fn:k7,requiresIfExists:["offset"],data:{_skip:!1}};function ek(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 tk(e){return[zn,$i,Bi,Fn].some(function(t){return e[t]>=0})}function P7(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=jd(t,{elementContext:"reference"}),s=jd(t,{altBoundary:!0}),l=ek(a,n),c=ek(s,i,o),d=tk(l),p=tk(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const E7={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:P7};function A7(e,t,r){var n=Eo(e),i=[Fn,zn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Fn,$i].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function I7(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=ED.reduce(function(d,p){return d[p]=A7(p,t.rects,o),d},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}const D7={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:I7};function L7(e){var t=e.state,r=e.name;t.modifiersData[r]=BD({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const O7={name:"popperOffsets",enabled:!0,phase:"read",fn:L7,data:{}};function N7(e){return e==="x"?"y":"x"}function B7(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,p=r.padding,h=r.tether,v=h===void 0?!0:h,g=r.tetherOffset,x=g===void 0?0:g,y=jd(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:d}),S=Eo(t.placement),w=pc(t.placement),b=!w,C=bw(S),T=N7(C),M=t.modifiersData.popperOffsets,E=t.rects.reference,I=t.rects.popper,D=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,k=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(M){if(o){var $,z=C==="y"?zn:Fn,F=C==="y"?Bi:$i,j=C==="y"?"height":"width",K=M[C],V=K+y[z],H=K-y[F],Y=v?-I[j]/2:0,W=w===cc?E[j]:I[j],q=w===cc?-I[j]:-E[j],te=t.elements.arrow,le=v&&te?Sw(te):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:DD(),Q=ne[z],ce=ne[F],me=fd(0,E[j],le[j]),de=b?E[j]/2-Y-me-Q-k.mainAxis:W-me-Q-k.mainAxis,fe=b?-E[j]/2+Y+me+ce+k.mainAxis:q+me+ce+k.mainAxis,ge=t.elements.arrow&&Sp(t.elements.arrow),pe=ge?C==="y"?ge.clientTop||0:ge.clientLeft||0:0,Ne=($=O==null?void 0:O[C])!=null?$:0,ke=K+de-Ne-pe,it=K+fe-Ne,rt=fd(v?Sg(V,ke):V,K,v?Rl(H,it):H);M[C]=rt,N[C]=rt-K}if(s){var dt,we=C==="x"?zn:Fn,at=C==="x"?Bi:$i,Ee=M[T],Ye=T==="y"?"height":"width",Ce=Ee+y[we],Xt=Ee-y[at],mt=[zn,Fn].indexOf(S)!==-1,Wt=(dt=O==null?void 0:O[T])!=null?dt:0,Jt=mt?Ce:Ee-E[Ye]-I[Ye]-Wt+k.altAxis,ar=mt?Ee+E[Ye]+I[Ye]-Wt-k.altAxis:Xt,Lt=v&&mt?s7(Jt,Ee,ar):fd(v?Jt:Ce,Ee,v?ar:Xt);M[T]=Lt,N[T]=Lt-Ee}t.modifiersData[n]=N}}const $7={name:"preventOverflow",enabled:!0,phase:"main",fn:B7,requiresIfExists:["offset"]};function z7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function F7(e){return e===ui(e)||!Oi(e)?ww(e):z7(e)}function j7(e){var t=e.getBoundingClientRect(),r=fc(t.width)/e.offsetWidth||1,n=fc(t.height)/e.offsetHeight||1;return r!==1||n!==1}function W7(e,t,r){r===void 0&&(r=!1);var n=Oi(t),i=Oi(t)&&j7(t),o=Ts(t),a=dc(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Bo(t)!=="body"||Cw(o))&&(s=F7(t)),Oi(t)?(l=dc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=_w(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function H7(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function V7(e){var t=H7(e);return t7.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function U7(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function G7(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 rk={placement:"bottom",modifiers:[],strategy:"absolute"};function nk(){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 Y7(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?rk:i;return function(s,l,c){c===void 0&&(c=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},rk,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},p=[],h=!1,v={state:d,setOptions:function(S){var w=typeof S=="function"?S(d.options):S;x(),d.options=Object.assign({},o,d.options,w),d.scrollParents={reference:Fl(s)?dd(s):s.contextElement?dd(s.contextElement):[],popper:dd(l)};var b=V7(G7([].concat(n,d.options.modifiers)));return d.orderedModifiers=b.filter(function(C){return C.enabled}),g(),v.update()},forceUpdate:function(){if(!h){var S=d.elements,w=S.reference,b=S.popper;if(nk(w,b)){d.rects={reference:W7(w,Sp(b),d.options.strategy==="fixed"),popper:Sw(b)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(k){return d.modifiersData[k.name]=Object.assign({},k.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var T=d.orderedModifiers[C],M=T.fn,E=T.options,I=E===void 0?{}:E,D=T.name;typeof M=="function"&&(d=M({state:d,options:I,name:D,instance:v})||d)}}}},update:U7(function(){return new Promise(function(y){v.forceUpdate(),y(d)})}),destroy:function(){x(),h=!0}};if(!nk(s,l))return v;v.setOptions(c).then(function(y){!h&&c.onFirstUpdate&&c.onFirstUpdate(y)});function g(){d.orderedModifiers.forEach(function(y){var S=y.name,w=y.options,b=w===void 0?{}:w,C=y.effect;if(typeof C=="function"){var T=C({state:d,name:S,instance:v,options:b}),M=function(){};p.push(T||M)}})}function x(){p.forEach(function(y){return y()}),p=[]}return v}}var q7=[m7,O7,v7,i7,D7,R7,$7,f7,E7],X7=Y7({defaultModifiers:q7});function hc(e){var p;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:CD(r,n),{props:s,internalRef:l}=MD({...o,externalSlotProps:a}),c=Tr(l,a==null?void 0:a.ref,(p=e.additionalProps)==null?void 0:p.ref);return _D(t,{...s,ref:c},n)}function ql(e){var t;return parseInt(L.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function K7(e){return typeof e=="function"?e():e}const $D=L.forwardRef(function(t,r){const{children:n,container:i,disablePortal:o=!1}=t,[a,s]=L.useState(null),l=Tr(L.isValidElement(n)?ql(n):null,r);if(lo(()=>{o||s(K7(i)||document.body)},[i,o]),lo(()=>{if(a&&!o)return iS(r,a),()=>{iS(r,null)}},[r,a,o]),o){if(L.isValidElement(n)){const c={ref:l};return L.cloneElement(n,c)}return n}return a&&SD.createPortal(n,a)});function Z7(e){return ze("MuiPopper",e)}Fe("MuiPopper",["root"]);function Q7(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 pS(e){return typeof e=="function"?e():e}function J7(e){return e.nodeType!==void 0}const eW=e=>{const{classes:t}=e;return je({root:["root"]},Z7,t)},tW={},rW=L.forwardRef(function(t,r){const{anchorEl:n,children:i,direction:o,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:v={},TransitionProps:g,ownerState:x,...y}=t,S=L.useRef(null),w=Tr(S,r),b=L.useRef(null),C=Tr(b,p),T=L.useRef(C);lo(()=>{T.current=C},[C]),L.useImperativeHandle(p,()=>b.current,[]);const M=Q7(c,o),[E,I]=L.useState(M),[D,k]=L.useState(pS(n));L.useEffect(()=>{b.current&&b.current.forceUpdate()}),L.useEffect(()=>{n&&k(pS(n))},[n]),lo(()=>{if(!D||!l)return;const F=V=>{I(V.placement)};let j=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{F(V)}}];s!=null&&(j=j.concat(s)),d&&d.modifiers!=null&&(j=j.concat(d.modifiers));const K=X7(D,S.current,{placement:M,...d,modifiers:j});return T.current(K),()=>{K.destroy(),T.current(null)}},[D,a,s,l,d,M]);const O={placement:E};g!==null&&(O.TransitionProps=g);const N=eW(t),$=v.root??"div",z=hc({elementType:$,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:N.root});return P.jsx($,{...z,children:typeof i=="function"?i(O):i})}),nW=L.forwardRef(function(t,r){const{anchorEl:n,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:d,placement:p="bottom",popperOptions:h=tW,popperRef:v,style:g,transition:x=!1,slotProps:y={},slots:S={},...w}=t,[b,C]=L.useState(!0),T=()=>{C(!1)},M=()=>{C(!0)};if(!l&&!d&&(!x||b))return null;let E;if(o)E=o;else if(n){const k=pS(n);E=k&&J7(k)?Hn(k).body:Hn(null).body}const I=!d&&l&&(!x||b)?"none":void 0,D=x?{in:d,onEnter:T,onExited:M}:void 0;return P.jsx($D,{disablePortal:s,container:E,children:P.jsx(rW,{anchorEl:n,direction:a,disablePortal:s,modifiers:c,ref:r,open:x?!b:d,placement:p,popperOptions:h,popperRef:v,slotProps:y,slots:S,...w,style:{position:"fixed",top:0,left:0,display:I,...g},TransitionProps:D,children:i})})}),iW=se(nW,{name:"MuiPopper",slot:"Root"})({}),ym=L.forwardRef(function(t,r){const n=Cc(),i=He({props:t,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:v,placement:g,popperOptions:x,popperRef:y,transition:S,slots:w,slotProps:b,...C}=i,T=(w==null?void 0:w.root)??(s==null?void 0:s.Root),M={anchorEl:o,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:v,placement:g,popperOptions:x,popperRef:y,transition:S,...C};return P.jsx(iW,{as:a,direction:n?"rtl":"ltr",slots:{root:T},slotProps:b??l,...M,ref:r})});function oW(e){return ze("MuiListSubheader",e)}Fe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const aW=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:o}=e,a={root:["root",r!=="default"&&`color${ue(r)}`,!n&&"gutters",i&&"inset",!o&&"sticky"]};return je(a,oW,t)},sW=se("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ue(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(Oe(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),hS=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...d}=n,p={...n,color:o,component:a,disableGutters:s,disableSticky:l,inset:c},h=aW(p);return P.jsx(sW,{as:a,className:Se(h.root,i),ref:r,ownerState:p,...d})});hS&&(hS.muiSkipListHighlight=!0);const lW=Gt(P.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function uW(e){return ze("MuiChip",e)}const Ct=Fe("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),cW=e=>{const{classes:t,disabled:r,size:n,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,r&&"disabled",`size${ue(n)}`,`color${ue(i)}`,s&&"clickable",s&&`clickableColor${ue(i)}`,a&&"deletable",a&&`deletableColor${ue(i)}`,`${l}${ue(i)}`],label:["label",`label${ue(n)}`],avatar:["avatar",`avatar${ue(n)}`,`avatarColor${ue(i)}`],icon:["icon",`icon${ue(n)}`,`iconColor${ue(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ue(n)}`,`deleteIconColor${ue(i)}`,`deleteIcon${ue(l)}Color${ue(i)}`]};return je(c,uW,t)},fW=se("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=r;return[{[`& .${Ct.avatar}`]:t.avatar},{[`& .${Ct.avatar}`]:t[`avatar${ue(s)}`]},{[`& .${Ct.avatar}`]:t[`avatarColor${ue(n)}`]},{[`& .${Ct.icon}`]:t.icon},{[`& .${Ct.icon}`]:t[`icon${ue(s)}`]},{[`& .${Ct.icon}`]:t[`iconColor${ue(i)}`]},{[`& .${Ct.deleteIcon}`]:t.deleteIcon},{[`& .${Ct.deleteIcon}`]:t[`deleteIcon${ue(s)}`]},{[`& .${Ct.deleteIcon}`]:t[`deleteIconColor${ue(n)}`]},{[`& .${Ct.deleteIcon}`]:t[`deleteIcon${ue(l)}Color${ue(n)}`]},t.root,t[`size${ue(s)}`],t[`color${ue(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${ue(n)})`],a&&t.deletable,a&&n!=="default"&&t[`deletableColor${ue(n)}`],t[l],t[`${l}${ue(n)}`]]}})(Oe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ct.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ct.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ct.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ct.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ct.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ct.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ct.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:bt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:bt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ct.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ct.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Cr(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${Ct.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].contrastTextChannel} / 0.7)`:bt(e.palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${Ct.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${Ct.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:bt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Cr(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${Ct.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:bt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:bt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Cr(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${Ct.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ct.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ct.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ct.avatar}`]:{marginLeft:4},[`& .${Ct.avatarSmall}`]:{marginLeft:2},[`& .${Ct.icon}`]:{marginLeft:4},[`& .${Ct.iconSmall}`]:{marginLeft:2},[`& .${Ct.deleteIcon}`]:{marginRight:5},[`& .${Ct.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Cr()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:bt(e.palette[r].main,.7)}`,[`&.${Ct.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette[r].main,e.palette.action.hoverOpacity)},[`&.${Ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.focusOpacity})`:bt(e.palette[r].main,e.palette.action.focusOpacity)},[`& .${Ct.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:bt(e.palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),dW=se("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ue(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function ik(e){return e.key==="Backspace"||e.key==="Delete"}const pW=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:d=!1,icon:p,label:h,onClick:v,onDelete:g,onKeyDown:x,onKeyUp:y,size:S="medium",variant:w="filled",tabIndex:b,skipFocusWhenDisabled:C=!1,slots:T={},slotProps:M={},...E}=n,I=L.useRef(null),D=Tr(I,r),k=Q=>{Q.stopPropagation(),g&&g(Q)},O=Q=>{Q.currentTarget===Q.target&&ik(Q)&&Q.preventDefault(),x&&x(Q)},N=Q=>{Q.currentTarget===Q.target&&g&&ik(Q)&&g(Q),y&&y(Q)},$=a!==!1&&v?!0:a,z=$||g?xs:l||"div",F={...n,component:z,disabled:d,size:S,color:s,iconColor:L.isValidElement(p)&&p.props.color||s,onDelete:!!g,clickable:$,variant:w},j=cW(F),K=z===xs?{component:l||"div",focusVisibleClassName:j.focusVisible,...g&&{disableRipple:!0}}:{};let V=null;g&&(V=c&&L.isValidElement(c)?L.cloneElement(c,{className:Se(c.props.className,j.deleteIcon),onClick:k}):P.jsx(lW,{className:j.deleteIcon,onClick:k}));let H=null;i&&L.isValidElement(i)&&(H=L.cloneElement(i,{className:Se(j.avatar,i.props.className)}));let Y=null;p&&L.isValidElement(p)&&(Y=L.cloneElement(p,{className:Se(j.icon,p.props.className)}));const W={slots:T,slotProps:M},[q,te]=Ue("root",{elementType:fW,externalForwardedProps:{...W,...E},ownerState:F,shouldForwardComponentProp:!0,ref:D,className:Se(j.root,o),additionalProps:{disabled:$&&d?!0:void 0,tabIndex:C&&d?-1:b,...K},getSlotProps:Q=>({...Q,onClick:ce=>{var me;(me=Q.onClick)==null||me.call(Q,ce),v(ce)},onKeyDown:ce=>{var me;(me=Q.onKeyDown)==null||me.call(Q,ce),O(ce)},onKeyUp:ce=>{var me;(me=Q.onKeyUp)==null||me.call(Q,ce),N(ce)}})}),[le,ne]=Ue("label",{elementType:dW,externalForwardedProps:W,ownerState:F,className:j.label});return P.jsxs(q,{as:z,...te,children:[H||Y,P.jsx(le,{...ne,children:h}),V]})});function qh(e){return parseInt(e,10)||0}const hW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function vW(e){for(const t in e)return!1;return!0}function ok(e){return vW(e)||e.outerHeightStyle===0&&!e.overflowing}const gW=L.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:o=1,style:a,value:s,...l}=t,{current:c}=L.useRef(s!=null),d=L.useRef(null),p=Tr(r,d),h=L.useRef(null),v=L.useRef(null),g=L.useCallback(()=>{const b=d.current,C=v.current;if(!b||!C)return;const M=li(b).getComputedStyle(b);if(M.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=M.width,C.value=b.value||t.placeholder||"x",C.value.slice(-1)===`
202
+ `&&(C.value+=" ");const E=M.boxSizing,I=qh(M.paddingBottom)+qh(M.paddingTop),D=qh(M.borderBottomWidth)+qh(M.borderTopWidth),k=C.scrollHeight;C.value="x";const O=C.scrollHeight;let N=k;o&&(N=Math.max(Number(o)*O,N)),i&&(N=Math.min(Number(i)*O,N)),N=Math.max(N,O);const $=N+(E==="border-box"?I+D:0),z=Math.abs(N-k)<=1;return{outerHeightStyle:$,overflowing:z}},[i,o,t.placeholder]),x=vn(()=>{const b=d.current,C=g();if(!b||!C||ok(C))return!1;const T=C.outerHeightStyle;return h.current!=null&&h.current!==T}),y=L.useCallback(()=>{const b=d.current,C=g();if(!b||!C||ok(C))return;const T=C.outerHeightStyle;h.current!==T&&(h.current=T,b.style.height=`${T}px`),b.style.overflow=C.overflowing?"hidden":""},[g]),S=L.useRef(-1);lo(()=>{const b=yp(y),C=d==null?void 0:d.current;if(!C)return;const T=li(C);T.addEventListener("resize",b);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(()=>{x()&&(M.unobserve(C),cancelAnimationFrame(S.current),y(),S.current=requestAnimationFrame(()=>{M.observe(C)}))}),M.observe(C)),()=>{b.clear(),cancelAnimationFrame(S.current),T.removeEventListener("resize",b),M&&M.disconnect()}},[g,y,x]),lo(()=>{y()});const w=b=>{c||y();const C=b.target,T=C.value.length,M=C.value.endsWith(`
203
+ `),E=C.selectionStart===T;M&&E&&C.setSelectionRange(T,T),n&&n(b)};return P.jsxs(L.Fragment,{children:[P.jsx("textarea",{value:s,onChange:w,ref:p,rows:o,style:a,...l}),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:{...hW.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function Wd(e){return typeof e=="string"}function Ms({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 xm=L.createContext(void 0);function jo(){return L.useContext(xm)}function ak(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function bg(e,t=!1){return e&&(ak(e.value)&&e.value!==""||t&&ak(e.defaultValue)&&e.defaultValue!=="")}function mW(e){return e.startAdornment}function yW(e){return ze("MuiInputBase",e)}const ti=Fe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var sk;const Sm=(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${ue(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},bm=(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]},xW=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:p,size:h,startAdornment:v,type:g}=e,x={root:["root",`color${ue(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${ue(h)}`,d&&"multiline",v&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",v&&"inputAdornedStart",o&&"inputAdornedEnd",p&&"readOnly"]};return je(x,yW,t)},wm=se("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sm})(Oe(({theme:e})=>({...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",[`&.${ti.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),_m=se("input",{name:"MuiInputBase",slot:"Input",overridesResolver:bm})(Oe(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ti.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ti.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),lk=cw({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Tw=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:a,className:s,color:l,components:c={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:v,endAdornment:g,error:x,fullWidth:y=!1,id:S,inputComponent:w="input",inputProps:b={},inputRef:C,margin:T,maxRows:M,minRows:E,multiline:I=!1,name:D,onBlur:k,onChange:O,onClick:N,onFocus:$,onKeyDown:z,onKeyUp:F,placeholder:j,readOnly:K,renderSuffix:V,rows:H,size:Y,slotProps:W={},slots:q={},startAdornment:te,type:le="text",value:ne,...Q}=n,ce=b.value!=null?b.value:ne,{current:me}=L.useRef(ce!=null),de=L.useRef(),fe=L.useCallback(xe=>{},[]),ge=Tr(de,C,b.ref,fe),[pe,Ne]=L.useState(!1),ke=jo(),it=Ms({props:n,muiFormControl:ke,states:["color","disabled","error","hiddenLabel","size","required","filled"]});it.focused=ke?ke.focused:pe,L.useEffect(()=>{!ke&&h&&pe&&(Ne(!1),k&&k())},[ke,h,pe,k]);const rt=ke&&ke.onFilled,dt=ke&&ke.onEmpty,we=L.useCallback(xe=>{bg(xe)?rt&&rt():dt&&dt()},[rt,dt]);lo(()=>{me&&we({value:ce})},[ce,we,me]);const at=xe=>{$&&$(xe),b.onFocus&&b.onFocus(xe),ke&&ke.onFocus?ke.onFocus(xe):Ne(!0)},Ee=xe=>{k&&k(xe),b.onBlur&&b.onBlur(xe),ke&&ke.onBlur?ke.onBlur(xe):Ne(!1)},Ye=(xe,...wt)=>{if(!me){const Rt=xe.target||de.current;if(Rt==null)throw new Error(ga(1));we({value:Rt.value})}b.onChange&&b.onChange(xe,...wt),O&&O(xe,...wt)};L.useEffect(()=>{we(de.current)},[]);const Ce=xe=>{de.current&&xe.currentTarget===xe.target&&de.current.focus(),N&&N(xe)};let Xt=w,mt=b;I&&Xt==="input"&&(H?mt={type:void 0,minRows:H,maxRows:H,...mt}:mt={type:void 0,maxRows:M,minRows:E,...mt},Xt=gW);const Wt=xe=>{we(xe.animationName==="mui-auto-fill-cancel"?de.current:{value:"x"})};L.useEffect(()=>{ke&&ke.setAdornedStart(!!te)},[ke,te]);const Jt={...n,color:it.color||"primary",disabled:it.disabled,endAdornment:g,error:it.error,focused:it.focused,formControl:ke,fullWidth:y,hiddenLabel:it.hiddenLabel,multiline:I,size:it.size,startAdornment:te,type:le},ar=xW(Jt),Lt=q.root||c.Root||wm,tr=W.root||d.root||{},Je=q.input||c.Input||_m;return mt={...mt,...W.input??d.input},P.jsxs(L.Fragment,{children:[!v&&typeof lk=="function"&&(sk||(sk=P.jsx(lk,{}))),P.jsxs(Lt,{...tr,ref:r,onClick:Ce,...Q,...!Wd(Lt)&&{ownerState:{...Jt,...tr.ownerState}},className:Se(ar.root,tr.className,s,K&&"MuiInputBase-readOnly"),children:[te,P.jsx(xm.Provider,{value:null,children:P.jsx(Je,{"aria-invalid":it.error,"aria-describedby":i,autoComplete:o,autoFocus:a,defaultValue:p,disabled:it.disabled,id:S,onAnimationStart:Wt,name:D,placeholder:j,readOnly:K,required:it.required,rows:H,value:ce,onKeyDown:z,onKeyUp:F,type:le,...mt,...!Wd(Je)&&{as:Xt,ownerState:{...Jt,...mt.ownerState}},ref:ge,className:Se(ar.input,mt.className,K&&"MuiInputBase-readOnly"),onBlur:Ee,onChange:Ye,onFocus:at})}),g,V?V({...it,startAdornment:te}):null]})]})});function SW(e){return ze("MuiInput",e)}const is={...ti,...Fe("MuiInput",["root","underline","input"])};function bW(e){return ze("MuiOutlinedInput",e)}const Ci={...ti,...Fe("MuiOutlinedInput",["root","notchedOutline","input"])};function wW(e){return ze("MuiFilledInput",e)}const ri={...ti,...Fe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},zD=Gt(P.jsx("path",{d:"M7 10l5 5 5-5z"}));function _W(e){return ze("MuiAutocomplete",e)}const gt=Fe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var uk,ck;const CW=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:d}=e,p={root:["root",n&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ue(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return je(p,_W,t)},TW=se("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=r;return[{[`& .${gt.tag}`]:t.tag},{[`& .${gt.tag}`]:t[`tagSize${ue(s)}`]},{[`& .${gt.inputRoot}`]:t.inputRoot},{[`& .${gt.input}`]:t.input},{[`& .${gt.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${gt.focused} .${gt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${gt.clearIndicator}`]:{visibility:"visible"}},[`& .${gt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${gt.inputRoot}`]:{[`.${gt.hasPopupIcon}&, .${gt.hasClearIcon}&`]:{paddingRight:30},[`.${gt.hasPopupIcon}.${gt.hasClearIcon}&`]:{paddingRight:56},[`& .${gt.input}`]:{width:0,minWidth:30}},[`& .${is.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${is.root}.${ti.sizeSmall}`]:{[`& .${is.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ci.root}`]:{padding:9,[`.${gt.hasPopupIcon}&, .${gt.hasClearIcon}&`]:{paddingRight:39},[`.${gt.hasPopupIcon}.${gt.hasClearIcon}&`]:{paddingRight:65},[`& .${gt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${gt.endAdornment}`]:{right:9}},[`& .${Ci.root}.${ti.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${gt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ri.root}`]:{paddingTop:19,paddingLeft:8,[`.${gt.hasPopupIcon}&, .${gt.hasClearIcon}&`]:{paddingRight:39},[`.${gt.hasPopupIcon}.${gt.hasClearIcon}&`]:{paddingRight:65},[`& .${ri.input}`]:{padding:"7px 4px"},[`& .${gt.endAdornment}`]:{right:9}},[`& .${ri.root}.${ti.sizeSmall}`]:{paddingBottom:1,[`& .${ri.input}`]:{padding:"2.5px 4px"}},[`& .${ti.hiddenLabel}`]:{paddingTop:8},[`& .${ri.root}.${ti.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${gt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ri.root}.${ti.hiddenLabel}.${ti.sizeSmall}`]:{[`& .${gt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${gt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${gt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${gt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${gt.inputRoot}`]:{flexWrap:"wrap"}}}]}),MW=se("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),kW=se(ba,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),RW=se(ba,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),PW=se(ym,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${gt.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(Oe(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),EW=se(ji,{name:"MuiAutocomplete",slot:"Paper"})(Oe(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),AW=se("div",{name:"MuiAutocomplete",slot:"Loading"})(Oe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),IW=se("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Oe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),DW=se("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Oe(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${gt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${gt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${gt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:bt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:bt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${gt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:bt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),LW=se(hS,{name:"MuiAutocomplete",slot:"GroupLabel"})(Oe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),OW=se("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${gt.option}`]:{paddingLeft:24}}),NW=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:d=uk||(uk=P.jsx(RD,{fontSize:"small"})),clearOnBlur:p=!n.freeSolo,clearOnEscape:h=!1,clearText:v="Clear",closeText:g="Close",componentsProps:x,defaultValue:y=n.multiple?[]:null,disableClearable:S=!1,disableCloseOnSelect:w=!1,disabled:b=!1,disabledItemsFocusable:C=!1,disableListWrap:T=!1,disablePortal:M=!1,filterOptions:E,filterSelectedOptions:I=!1,forcePopupIcon:D="auto",freeSolo:k=!1,fullWidth:O=!1,getLimitTagsText:N=Mt=>`+${Mt}`,getOptionDisabled:$,getOptionKey:z,getOptionLabel:F,isOptionEqualToValue:j,groupBy:K,handleHomeEndKeys:V=!n.freeSolo,id:H,includeInputInList:Y=!1,inputValue:W,limitTags:q=-1,ListboxComponent:te,ListboxProps:le,loading:ne=!1,loadingText:Q="Loading…",multiple:ce=!1,noOptionsText:me="No options",onChange:de,onClose:fe,onHighlightChange:ge,onInputChange:pe,onOpen:Ne,open:ke,openOnFocus:it=!1,openText:rt="Open",options:dt,PaperComponent:we,PopperComponent:at,popupIcon:Ee=ck||(ck=P.jsx(zD,{})),readOnly:Ye=!1,renderGroup:Ce,renderInput:Xt,renderOption:mt,renderTags:Wt,renderValue:Jt,selectOnFocus:ar=!n.freeSolo,size:Lt="medium",slots:tr={},slotProps:Je={},value:xe,...wt}=n,{getRootProps:Rt,getInputProps:ut,getInputLabelProps:Be,getPopupIndicatorProps:st,getClearProps:_t,getItemProps:gr,getListboxProps:Nr,getOptionProps:Hi,value:rr,dirty:Rr,expanded:en,id:qn,popupOpen:Ur,focused:Vi,focusedItem:et,anchorEl:nr,setAnchorEl:Me,inputValue:Ae,groupedOptions:ct}=H9({...n,componentName:"Autocomplete"}),pt=!S&&!b&&Rr&&!Ye,zt=(!k||D===!0)&&D!==!1,{onMouseDown:Pr}=ut(),{ref:tn,...mn}=Nr(),pi=F||(Mt=>Mt.label??Mt),Er={...n,disablePortal:M,expanded:en,focused:Vi,fullWidth:O,getOptionLabel:pi,hasClearIcon:pt,hasPopupIcon:zt,inputFocused:et===-1,popupOpen:Ur,size:Lt},Ar=CW(Er),rn={slots:{paper:we,popper:at,...tr},slotProps:{chip:l,listbox:le,...x,...Je}},[Ca,Rs]=Ue("listbox",{elementType:DW,externalForwardedProps:rn,ownerState:Er,className:Ar.listbox,additionalProps:mn,ref:tn}),[ae,ie]=Ue("paper",{elementType:ji,externalForwardedProps:rn,ownerState:Er,className:Ar.paper}),[Re,vt]=Ue("popper",{elementType:ym,externalForwardedProps:rn,ownerState:Er,className:Ar.popper,additionalProps:{disablePortal:M,style:{width:nr?nr.clientWidth:null},role:"presentation",anchorEl:nr,open:Ur}});let qe;const sr=Mt=>({className:Ar.tag,disabled:b,...gr(Mt)});if(ce?rr.length>0&&(Wt?qe=Wt(rr,sr,Er):Jt?qe=Jt(rr,sr,Er):qe=rr.map((Mt,Xn)=>{const{key:Br,...Ps}=sr({index:Xn});return P.jsx(pW,{label:pi(Mt),size:Lt,...Ps,...rn.slotProps.chip},Br)})):Jt&&rr!=null&&(qe=Jt(rr,sr,Er)),q>-1&&Array.isArray(qe)){const Mt=qe.length-q;!Vi&&Mt>0&&(qe=qe.splice(0,q),qe.push(P.jsx("span",{className:Ar.tag,children:N(Mt)},qe.length)))}const Pt=Ce||(Mt=>P.jsxs("li",{children:[P.jsx(LW,{className:Ar.groupLabel,ownerState:Er,component:"div",children:Mt.group}),P.jsx(OW,{className:Ar.groupUl,ownerState:Er,children:Mt.children})]},Mt.key)),Dc=mt||((Mt,Xn)=>{const{key:Br,...Ps}=Mt;return P.jsx("li",{...Ps,children:pi(Xn)},Br)}),Lc=(Mt,Xn)=>{const Br=Hi({option:Mt,index:Xn});return Dc({...Br,className:Ar.option},Mt,{selected:Br["aria-selected"],index:Xn,inputValue:Ae},Er)},Yo=rn.slotProps.clearIndicator,Kl=rn.slotProps.popupIndicator;return P.jsxs(L.Fragment,{children:[P.jsx(TW,{ref:r,className:Se(Ar.root,c),ownerState:Er,...Rt(wt),children:Xt({id:qn,disabled:b,fullWidth:!0,size:Lt==="small"?"small":void 0,InputLabelProps:Be(),InputProps:{ref:Me,className:Ar.inputRoot,startAdornment:qe,onMouseDown:Mt=>{Mt.target===Mt.currentTarget&&Pr(Mt)},...(pt||zt)&&{endAdornment:P.jsxs(MW,{className:Ar.endAdornment,ownerState:Er,children:[pt?P.jsx(kW,{..._t(),"aria-label":v,title:v,ownerState:Er,...Yo,className:Se(Ar.clearIndicator,Yo==null?void 0:Yo.className),children:d}):null,zt?P.jsx(RW,{...st(),disabled:b,"aria-label":Ur?g:rt,title:Ur?g:rt,ownerState:Er,...Kl,className:Se(Ar.popupIndicator,Kl==null?void 0:Kl.className),children:Ee}):null]})}},inputProps:{className:Ar.input,disabled:b,readOnly:Ye,...ut()}})}),nr?P.jsx(PW,{as:Re,...vt,children:P.jsxs(EW,{as:ae,...ie,children:[ne&&ct.length===0?P.jsx(AW,{className:Ar.loading,ownerState:Er,children:Q}):null,ct.length===0&&!k&&!ne?P.jsx(IW,{className:Ar.noOptions,ownerState:Er,role:"presentation",onMouseDown:Mt=>{Mt.preventDefault()},children:me}):null,ct.length>0?P.jsx(Ca,{as:te,...Rs,children:ct.map((Mt,Xn)=>K?Pt({key:Mt.key,group:Mt.group,children:Mt.options.map((Br,Ps)=>Lc(Br,Mt.index+Ps))}):Lc(Mt,Xn))}):null]})}):null]})}),BW={entering:{opacity:1},entered:{opacity:1}},$W=L.forwardRef(function(t,r){const n=Fo(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:d,onEntered:p,onEntering:h,onExit:v,onExited:g,onExiting:x,style:y,timeout:S=i,TransitionComponent:w=Fi,...b}=t,C=L.useRef(null),T=Tr(C,ql(s),r),M=z=>F=>{if(z){const j=C.current;F===void 0?z(j):z(j,F)}},E=M(h),I=M((z,F)=>{hw(z);const j=ys({style:y,timeout:S,easing:l},{mode:"enter"});z.style.webkitTransition=n.transitions.create("opacity",j),z.style.transition=n.transitions.create("opacity",j),d&&d(z,F)}),D=M(p),k=M(x),O=M(z=>{const F=ys({style:y,timeout:S,easing:l},{mode:"exit"});z.style.webkitTransition=n.transitions.create("opacity",F),z.style.transition=n.transitions.create("opacity",F),v&&v(z)}),N=M(g),$=z=>{o&&o(C.current,z)};return P.jsx(w,{appear:a,in:c,nodeRef:C,onEnter:I,onEntered:D,onEntering:E,onExit:O,onExited:N,onExiting:k,addEndListener:$,timeout:S,...b,children:(z,{ownerState:F,...j})=>L.cloneElement(s,{style:{opacity:0,visibility:z==="exited"&&!c?"hidden":void 0,...BW[z],...y,...s.props.style},ref:T,...j})})});function zW(e){return ze("MuiBackdrop",e)}Fe("MuiBackdrop",["root","invisible"]);const FW=e=>{const{classes:t,invisible:r}=e;return je({root:["root",r&&"invisible"]},zW,t)},jW=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),WW=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:v,transitionDuration:g,...x}=n,y={...n,component:a,invisible:s},S=FW(y),w={transition:v,root:c.Root,...h},b={...d,...p},C={slots:w,slotProps:b},[T,M]=Ue("root",{elementType:jW,externalForwardedProps:C,className:Se(S.root,o),ownerState:y}),[E,I]=Ue("transition",{elementType:$W,externalForwardedProps:C,ownerState:y});return P.jsx(E,{in:l,timeout:g,...x,...I,children:P.jsx(T,{"aria-hidden":!0,...M,classes:S,ref:r,children:i})})}),HW=Fe("MuiBox",["root"]),VW=vm(),tt=O6({themeId:Ro,defaultTheme:VW,defaultClassName:HW.root,generateClassName:KI.generate});function UW(e){return ze("MuiButton",e)}const Hs=Fe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),GW=L.createContext({}),YW=L.createContext(void 0),qW=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:o,loading:a,loadingPosition:s,classes:l}=e,c={root:["root",a&&"loading",o,`${o}${ue(t)}`,`size${ue(i)}`,`${o}Size${ue(i)}`,`color${ue(t)}`,r&&"disableElevation",n&&"fullWidth",a&&`loadingPosition${ue(s)}`],startIcon:["icon","startIcon",`iconSize${ue(i)}`],endIcon:["icon","endIcon",`iconSize${ue(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=je(c,UW,l);return{...l,...d}},FD=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],XW=se(xs,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ue(r.color)}`],t[`size${ue(r.size)}`],t[`${r.variant}Size${ue(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Oe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Hs.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Hs.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Cr()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:bt(e.palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette[n].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Hs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Hs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Hs.loading}`]:{color:"transparent"}}}]}})),KW=se("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${ue(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...FD]})),ZW=se("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${ue(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...FD]})),QW=se("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),fk=se("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),ci=L.forwardRef(function(t,r){const n=L.useContext(GW),i=L.useContext(YW),o=zd(n,t),a=He({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:v=!1,endIcon:g,focusVisibleClassName:x,fullWidth:y=!1,id:S,loading:w=null,loadingIndicator:b,loadingPosition:C="center",size:T="medium",startIcon:M,type:E,variant:I="text",...D}=a,k=Tc(S),O=b??P.jsx(kD,{"aria-labelledby":k,color:"inherit",size:16}),N={...a,color:l,component:c,disabled:p,disableElevation:h,disableFocusRipple:v,fullWidth:y,loading:w,loadingIndicator:O,loadingPosition:C,size:T,type:E,variant:I},$=qW(N),z=(M||w&&C==="start")&&P.jsx(KW,{className:$.startIcon,ownerState:N,children:M||P.jsx(fk,{className:$.loadingIconPlaceholder,ownerState:N})}),F=(g||w&&C==="end")&&P.jsx(ZW,{className:$.endIcon,ownerState:N,children:g||P.jsx(fk,{className:$.loadingIconPlaceholder,ownerState:N})}),j=i||"",K=typeof w=="boolean"?P.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:w&&P.jsx(QW,{className:$.loadingIndicator,ownerState:N,children:O})}):null;return P.jsxs(XW,{ownerState:N,className:Se(n.className,$.root,d,j),component:c,disabled:p||w,focusRipple:!v,focusVisibleClassName:Se($.focusVisible,x),ref:r,type:E,id:w?k:S,...D,classes:$,children:[z,C!=="end"&&K,s,C==="end"&&K,F]})});function JW(e){return ze("MuiCard",e)}Fe("MuiCard",["root"]);const eH=e=>{const{classes:t}=e;return je({root:["root"]},JW,t)},tH=se(ji,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),rH=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiCard"}),{className:i,raised:o=!1,...a}=n,s={...n,raised:o},l=eH(s);return P.jsx(tH,{className:Se(l.root,i),elevation:o?8:void 0,ref:r,ownerState:s,...a})});function nH(e){return ze("MuiCardContent",e)}Fe("MuiCardContent",["root"]);const iH=e=>{const{classes:t}=e;return je({root:["root"]},nH,t)},oH=se("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),aH=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiCardContent"}),{className:i,component:o="div",...a}=n,s={...n,component:o},l=iH(s);return P.jsx(oH,{as:o,className:Se(l.root,i),ownerState:s,ref:r,...a})});function sH(e){return ze("PrivateSwitchBase",e)}Fe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const lH=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,o={root:["root",r&&"checked",n&&"disabled",i&&`edge${ue(i)}`],input:["input"]};return je(o,sH,t)},uH=se(xs)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),cH=se("input",{shouldForwardProp:Yn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),jD=L.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:v,name:g,onBlur:x,onChange:y,onFocus:S,readOnly:w,required:b=!1,tabIndex:C,type:T,value:M,slots:E={},slotProps:I={},...D}=t,[k,O]=cs({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),N=jo(),$=ne=>{S&&S(ne),N&&N.onFocus&&N.onFocus(ne)},z=ne=>{x&&x(ne),N&&N.onBlur&&N.onBlur(ne)},F=ne=>{if(ne.nativeEvent.defaultPrevented)return;const Q=ne.target.checked;O(Q),y&&y(ne,Q)};let j=s;N&&typeof j>"u"&&(j=N.disabled);const K=T==="checkbox"||T==="radio",V={...t,checked:k,disabled:j,disableFocusRipple:l,edge:c},H=lH(V),Y={slots:E,slotProps:{input:h,...I}},[W,q]=Ue("root",{ref:r,elementType:uH,className:H.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Y,component:"span",...D},getSlotProps:ne=>({...ne,onFocus:Q=>{var ce;(ce=ne.onFocus)==null||ce.call(ne,Q),$(Q)},onBlur:Q=>{var ce;(ce=ne.onBlur)==null||ce.call(ne,Q),z(Q)}}),ownerState:V,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:j,role:void 0,tabIndex:null}}),[te,le]=Ue("input",{ref:v,elementType:cH,className:H.input,externalForwardedProps:Y,getSlotProps:ne=>({...ne,onChange:Q=>{var ce;(ce=ne.onChange)==null||ce.call(ne,Q),F(Q)}}),ownerState:V,additionalProps:{autoFocus:n,checked:i,defaultChecked:a,disabled:j,id:K?p:void 0,name:g,readOnly:w,required:b,tabIndex:C,type:T,...T==="checkbox"&&M===void 0?{}:{value:M}}});return P.jsxs(W,{...q,children:[P.jsx(te,{...le}),k?o:d]})}),fH=Gt(P.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"})),dH=Gt(P.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"})),pH=Gt(P.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"}));function hH(e){return ze("MuiCheckbox",e)}const c1=Fe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),vH=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,o={root:["root",r&&"indeterminate",`color${ue(n)}`,`size${ue(i)}`]},a=je(o,hH,t);return{...t,...a}},gH=se(jD,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ue(r.size)}`],r.color!=="default"&&t[`color${ue(r.color)}`]]}})(Oe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{[`&.${c1.checked}, &.${c1.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${c1.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),mH=P.jsx(dH,{}),yH=P.jsx(fH,{}),xH=P.jsx(pH,{}),vS=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiCheckbox"}),{checkedIcon:i=mH,color:o="primary",icon:a=yH,indeterminate:s=!1,indeterminateIcon:l=xH,inputProps:c,size:d="medium",disableRipple:p=!1,className:h,slots:v={},slotProps:g={},...x}=n,y=s?l:a,S=s?l:i,w={...n,disableRipple:p,color:o,indeterminate:s,size:d},b=vH(w),C=g.input??c,[T,M]=Ue("root",{ref:r,elementType:gH,className:Se(b.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:g,...x},ownerState:w,additionalProps:{type:"checkbox",icon:L.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:L.cloneElement(S,{fontSize:S.props.fontSize??d}),disableRipple:p,slots:v,slotProps:{input:fw(typeof C=="function"?C(w):C,{"data-indeterminate":s})}}});return P.jsx(T,{...M,classes:b})}),bp=wj({createStyledComponent:se("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${ue(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>He({props:e,name:"MuiContainer"})}),gS=typeof cw({})=="function",SH=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),bH=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),WD=(e,t=!1)=>{var o,a;const r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var d,p;const c=e.getColorSchemeSelector(s);c.startsWith("@")?r[c]={":root":{colorScheme:(d=l.palette)==null?void 0:d.mode}}:r[c.replace(/\s*&/,"")]={colorScheme:(p=l.palette)==null?void 0:p.mode}});let n={html:SH(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...bH(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const i=(a=(o=e.components)==null?void 0:o.MuiCssBaseline)==null?void 0:a.styleOverrides;return i&&(n=[n,i]),n},qv="mui-ecs",wH=e=>{const t=WD(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${qv})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,i])=>{var a,s;const o=e.getColorSchemeSelector(n);o.startsWith("@")?r[o]={[`:root:not(:has(.${qv}))`]:{colorScheme:(a=i.palette)==null?void 0:a.mode}}:r[o.replace(/\s*&/,"")]={[`&:not(:has(.${qv}))`]:{colorScheme:(s=i.palette)==null?void 0:s.mode}}}),t},_H=cw(gS?({theme:e,enableColorScheme:t})=>WD(e,t):({theme:e})=>wH(e));function HD(e){const t=He({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return P.jsxs(L.Fragment,{children:[gS&&P.jsx(_H,{enableColorScheme:n}),!gS&&!n&&P.jsx("span",{className:qv,style:{display:"none"}}),r]})}function VD(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function CH(e){const t=Hn(e);return t.body===e?li(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function dk(e){return parseInt(li(e).getComputedStyle(e).paddingRight,10)||0}function TH(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function pk(e,t,r,n,i){const o=[t,r,...n];[].forEach.call(e.children,a=>{const s=!o.includes(a),l=!TH(a);s&&l&&pd(a,i)})}function f1(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function MH(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(CH(n)){const a=VD(li(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${dk(n)+a}px`;const s=Hn(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${dk(l)+a}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Hn(n).body;else{const a=n.parentElement,s=li(n);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function kH(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class RH{constructor(){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&&pd(t.modalRef,!1);const i=kH(r);pk(r,t.mount,t.modalRef,i,!0);const o=f1(this.containers,a=>a.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=f1(this.containers,o=>o.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=MH(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=f1(this.containers,a=>a.modals.includes(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&pd(t.modalRef,r),pk(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&pd(a.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const PH=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function EH(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 AH(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 IH(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||AH(e))}function DH(e){const t=[],r=[];return Array.from(e.querySelectorAll(PH)).forEach((n,i)=>{const o=EH(n);o===-1||!IH(n)||(o===0?t.push(n):r.push({documentOrder:i,tabIndex:o,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 LH(){return!0}function OH(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:o=DH,isEnabled:a=LH,open:s}=e,l=L.useRef(!1),c=L.useRef(null),d=L.useRef(null),p=L.useRef(null),h=L.useRef(null),v=L.useRef(!1),g=L.useRef(null),x=Tr(ql(t),g),y=L.useRef(null);L.useEffect(()=>{!s||!g.current||(v.current=!r)},[r,s]),L.useEffect(()=>{if(!s||!g.current)return;const b=Hn(g.current);return g.current.contains(b.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{i||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[s]),L.useEffect(()=>{if(!s||!g.current)return;const b=Hn(g.current),C=E=>{y.current=E,!(n||!a()||E.key!=="Tab")&&b.activeElement===g.current&&E.shiftKey&&(l.current=!0,d.current&&d.current.focus())},T=()=>{var D,k;const E=g.current;if(E===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(E.contains(b.activeElement)||n&&b.activeElement!==c.current&&b.activeElement!==d.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!v.current)return;let I=[];if((b.activeElement===c.current||b.activeElement===d.current)&&(I=o(g.current)),I.length>0){const O=!!((D=y.current)!=null&&D.shiftKey&&((k=y.current)==null?void 0:k.key)==="Tab"),N=I[0],$=I[I.length-1];typeof N!="string"&&typeof $!="string"&&(O?$.focus():N.focus())}else E.focus()};b.addEventListener("focusin",T),b.addEventListener("keydown",C,!0);const M=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(M),b.removeEventListener("focusin",T),b.removeEventListener("keydown",C,!0)}},[r,n,i,a,s,o]);const S=b=>{p.current===null&&(p.current=b.relatedTarget),v.current=!0,h.current=b.target;const C=t.props.onFocus;C&&C(b)},w=b=>{p.current===null&&(p.current=b.relatedTarget),v.current=!0};return P.jsxs(L.Fragment,{children:[P.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelStart"}),L.cloneElement(t,{ref:x,onFocus:S}),P.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}function NH(e){return typeof e=="function"?e():e}function BH(e){return e?e.props.hasOwnProperty("in"):!1}const hk=()=>{},Xh=new RH;function $H(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:d}=e,p=L.useRef({}),h=L.useRef(null),v=L.useRef(null),g=Tr(v,d),[x,y]=L.useState(!c),S=BH(s);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const b=()=>Hn(h.current),C=()=>(p.current.modalRef=v.current,p.current.mount=h.current,p.current),T=()=>{Xh.mount(C(),{disableScrollLock:n}),v.current&&(v.current.scrollTop=0)},M=vn(()=>{const F=NH(t)||b().body;Xh.add(C(),F),v.current&&T()}),E=()=>Xh.isTopModal(C()),I=vn(F=>{h.current=F,F&&(c&&E()?T():v.current&&pd(v.current,w))}),D=L.useCallback(()=>{Xh.remove(C(),w)},[w]);L.useEffect(()=>()=>{D()},[D]),L.useEffect(()=>{c?M():(!S||!i)&&D()},[c,D,S,i,M]);const k=F=>j=>{var K;(K=F.onKeyDown)==null||K.call(F,j),!(j.key!=="Escape"||j.which===229||!E())&&(r||(j.stopPropagation(),l&&l(j,"escapeKeyDown")))},O=F=>j=>{var K;(K=F.onClick)==null||K.call(F,j),j.target===j.currentTarget&&l&&l(j,"backdropClick")};return{getRootProps:(F={})=>{const j=TD(e);delete j.onTransitionEnter,delete j.onTransitionExited;const K={...j,...F};return{role:"presentation",...K,onKeyDown:k(K),ref:g}},getBackdropProps:(F={})=>{const j=F;return{"aria-hidden":!0,...j,onClick:O(j),open:c}},getTransitionProps:()=>{const F=()=>{y(!1),o&&o()},j=()=>{y(!0),a&&a(),i&&D()};return{onEnter:OM(F,(s==null?void 0:s.props.onEnter)??hk),onExited:OM(j,(s==null?void 0:s.props.onExited)??hk)}},rootRef:g,portalRef:I,isTopModal:E,exited:x,hasTransition:S}}function zH(e){return ze("MuiModal",e)}Fe("MuiModal",["root","hidden","backdrop"]);const FH=e=>{const{open:t,exited:r,classes:n}=e;return je({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},zH,n)},jH=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Oe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),WH=se(WW,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Mw=L.forwardRef(function(t,r){const n=He({name:"MuiModal",props:t}),{BackdropComponent:i=WH,BackdropProps:o,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:d,component:p,components:h={},componentsProps:v={},disableAutoFocus:g=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:y=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:b=!1,hideBackdrop:C=!1,keepMounted:T=!1,onClose:M,onTransitionEnter:E,onTransitionExited:I,open:D,slotProps:k={},slots:O={},theme:N,...$}=n,z={...n,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:x,disableEscapeKeyDown:y,disablePortal:S,disableRestoreFocus:w,disableScrollLock:b,hideBackdrop:C,keepMounted:T},{getRootProps:F,getBackdropProps:j,getTransitionProps:K,portalRef:V,isTopModal:H,exited:Y,hasTransition:W}=$H({...z,rootRef:r}),q={...z,exited:Y},te=FH(q),le={};if(c.props.tabIndex===void 0&&(le.tabIndex="-1"),W){const{onEnter:fe,onExited:ge}=K();le.onEnter=fe,le.onExited=ge}const ne={slots:{root:h.Root,backdrop:h.Backdrop,...O},slotProps:{...v,...k}},[Q,ce]=Ue("root",{ref:r,elementType:jH,externalForwardedProps:{...ne,...$,component:p},getSlotProps:F,ownerState:q,className:Se(s,te==null?void 0:te.root,!q.open&&q.exited&&(te==null?void 0:te.hidden))}),[me,de]=Ue("backdrop",{ref:o==null?void 0:o.ref,elementType:i,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:fe=>j({...fe,onClick:ge=>{fe!=null&&fe.onClick&&fe.onClick(ge)}}),className:Se(o==null?void 0:o.className,te==null?void 0:te.backdrop),ownerState:q});return!T&&!D&&(!W||Y)?null:P.jsx($D,{ref:V,container:d,disablePortal:S,children:P.jsxs(Q,{...ce,children:[!C&&i?P.jsx(me,{...de}):null,P.jsx(OH,{disableEnforceFocus:x,disableAutoFocus:g,disableRestoreFocus:w,isEnabled:H,open:D,children:L.cloneElement(c,le)})]})})});function HH(e){return ze("MuiDivider",e)}Fe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const VH=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return je({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},HH,n)},UH=se("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]}})(Oe(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:bt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),GH=se("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Oe(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),xl=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,orientation:s="horizontal",component:l=o||s==="vertical"?"div":"hr",flexItem:c=!1,light:d=!1,role:p=l!=="hr"?"separator":void 0,textAlign:h="center",variant:v="fullWidth",...g}=n,x={...n,absolute:i,component:l,flexItem:c,light:d,orientation:s,role:p,textAlign:h,variant:v},y=VH(x);return P.jsx(UH,{as:l,className:Se(y.root,a),role:p,ref:r,ownerState:x,"aria-orientation":p==="separator"&&(l!=="hr"||s==="vertical")?s:void 0,...g,children:o?P.jsx(GH,{className:y.wrapper,ownerState:x,children:o}):null})});xl&&(xl.muiSkipListHighlight=!0);function YH(e,t,r){const n=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),o=li(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=o.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?i?`translateX(-${n.right-i.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-n.top}px)`:`translateY(${o.innerHeight+l-n.top}px)`:i?`translateY(-${n.top-i.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function qH(e){return typeof e=="function"?e():e}function Kh(e,t,r){const n=qH(r),i=YH(e,t,n);i&&(t.style.webkitTransform=i,t.style.transform=i)}const XH=L.forwardRef(function(t,r){const n=Fo(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:d="down",easing:p=i,in:h,onEnter:v,onEntered:g,onEntering:x,onExit:y,onExited:S,onExiting:w,style:b,timeout:C=o,TransitionComponent:T=Fi,...M}=t,E=L.useRef(null),I=Tr(ql(l),E,r),D=V=>H=>{V&&(H===void 0?V(E.current):V(E.current,H))},k=D((V,H)=>{Kh(d,V,c),hw(V),v&&v(V,H)}),O=D((V,H)=>{const Y=ys({timeout:C,style:b,easing:p},{mode:"enter"});V.style.webkitTransition=n.transitions.create("-webkit-transform",{...Y}),V.style.transition=n.transitions.create("transform",{...Y}),V.style.webkitTransform="none",V.style.transform="none",x&&x(V,H)}),N=D(g),$=D(w),z=D(V=>{const H=ys({timeout:C,style:b,easing:p},{mode:"exit"});V.style.webkitTransition=n.transitions.create("-webkit-transform",H),V.style.transition=n.transitions.create("transform",H),Kh(d,V,c),y&&y(V)}),F=D(V=>{V.style.webkitTransition="",V.style.transition="",S&&S(V)}),j=V=>{a&&a(E.current,V)},K=L.useCallback(()=>{E.current&&Kh(d,E.current,c)},[d,c]);return L.useEffect(()=>{if(h||d==="down"||d==="right")return;const V=yp(()=>{E.current&&Kh(d,E.current,c)}),H=li(E.current);return H.addEventListener("resize",V),()=>{V.clear(),H.removeEventListener("resize",V)}},[d,h,c]),L.useEffect(()=>{h||K()},[h,K]),P.jsx(T,{nodeRef:E,onEnter:k,onEntered:N,onEntering:O,onExit:z,onExited:F,onExiting:$,addEndListener:j,appear:s,in:h,timeout:C,...M,children:(V,{ownerState:H,...Y})=>L.cloneElement(l,{ref:I,style:{visibility:V==="exited"&&!h?"hidden":void 0,...b,...l.props.style},...Y})})});function KH(e){return ze("MuiDrawer",e)}Fe("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const UD=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},ZH=e=>{const{classes:t,anchor:r,variant:n}=e,i={root:["root",`anchor${ue(r)}`],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ue(r)}`,n!=="temporary"&&`paperAnchorDocked${ue(r)}`]};return je(i,KH,t)},QH=se(Mw,{name:"MuiDrawer",slot:"Root",overridesResolver:UD})(Oe(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),JH=se("div",{shouldForwardProp:Yn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:UD})({flex:"0 0 auto"}),eV=se(ji,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ue(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ue(r.anchor)}`]]}})(Oe(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),GD={left:"right",right:"left",top:"down",bottom:"up"};function tV(e){return["left","right"].includes(e)}function rV({direction:e},t){return e==="rtl"&&tV(t)?GD[t]:t}const nV=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiDrawer"}),i=Fo(),o=Cc(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:d,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:v,...g}={},onClose:x,open:y=!1,PaperProps:S={},SlideProps:w,TransitionComponent:b,transitionDuration:C=a,variant:T="temporary",slots:M={},slotProps:E={},...I}=n,D=L.useRef(!1);L.useEffect(()=>{D.current=!0},[]);const k=rV({direction:o?"rtl":"ltr"},s),N={...n,anchor:s,elevation:p,open:y,variant:T,...I},$=ZH(N),z={slots:{transition:b,...M},slotProps:{paper:S,transition:w,...E,backdrop:fw(E.backdrop||{...l,...v},{transitionDuration:C})}},[F,j]=Ue("root",{ref:r,elementType:QH,className:Se($.root,$.modal,d),shouldForwardComponentProp:!0,ownerState:N,externalForwardedProps:{...z,...I,...g},additionalProps:{open:y,onClose:x,hideBackdrop:h,slots:{backdrop:z.slots.backdrop},slotProps:{backdrop:z.slotProps.backdrop}}}),[K,V]=Ue("paper",{elementType:eV,shouldForwardComponentProp:!0,className:Se($.paper,S.className),ownerState:N,externalForwardedProps:z,additionalProps:{elevation:T==="temporary"?p:0,square:!0}}),[H,Y]=Ue("docked",{elementType:JH,ref:r,className:Se($.root,$.docked,d),ownerState:N,externalForwardedProps:z,additionalProps:I}),[W,q]=Ue("transition",{elementType:XH,ownerState:N,externalForwardedProps:z,additionalProps:{in:y,direction:GD[k],timeout:C,appear:D.current}}),te=P.jsx(K,{...V,children:c});if(T==="permanent")return P.jsx(H,{...Y,children:te});const le=P.jsx(W,{...q,children:te});return T==="persistent"?P.jsx(H,{...Y,children:le}):P.jsx(F,{...j,children:le})}),iV=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:i,size:o,hiddenLabel:a,multiline:s}=e,l={root:["root",!r&&"underline",n&&"adornedStart",i&&"adornedEnd",o==="small"&&`size${ue(o)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=je(l,wW,t);return{...t,...c}},oV=se(wm,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Sm(e,t),!r.disableUnderline&&t.underline]}})(Oe(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${ri.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${ri.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{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"},[`&.${ri.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ri.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})`:r}`,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(.${ri.disabled}, .${ri.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ri.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Cr()).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),aV=se(_m,{name:"MuiFilledInput",slot:"Input",overridesResolver:bm})(Oe(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),kw=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:h={},type:v="text",...g}=n,x={...n,disableUnderline:i,fullWidth:s,inputComponent:c,multiline:d,type:v},y=iV(n),S={root:{ownerState:x},input:{ownerState:x}},w=p??a?Vr(S,p??a):S,b=h.root??o.Root??oV,C=h.input??o.Input??aV;return P.jsx(Tw,{slots:{root:b,input:C},slotProps:w,fullWidth:s,inputComponent:c,multiline:d,ref:r,type:v,...g,classes:y})});kw.muiName="Input";function sV(e){return ze("MuiFormControl",e)}Fe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const lV=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${ue(r)}`,n&&"fullWidth"]};return je(i,sV,t)},uV=se("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${ue(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Rw=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:v="none",required:g=!1,size:x="medium",variant:y="outlined",...S}=n,w={...n,color:a,component:s,disabled:l,error:c,fullWidth:p,hiddenLabel:h,margin:v,required:g,size:x,variant:y},b=lV(w),[C,T]=L.useState(()=>{let F=!1;return i&&L.Children.forEach(i,j=>{if(!Gv(j,["Input","Select"]))return;const K=Gv(j,["Select"])?j.props.input:j;K&&mW(K.props)&&(F=!0)}),F}),[M,E]=L.useState(()=>{let F=!1;return i&&L.Children.forEach(i,j=>{Gv(j,["Input","Select"])&&(bg(j.props,!0)||bg(j.props.inputProps,!0))&&(F=!0)}),F}),[I,D]=L.useState(!1);l&&I&&D(!1);const k=d!==void 0&&!l?d:I;let O;L.useRef(!1);const N=L.useCallback(()=>{E(!0)},[]),$=L.useCallback(()=>{E(!1)},[]),z=L.useMemo(()=>({adornedStart:C,setAdornedStart:T,color:a,disabled:l,error:c,filled:M,focused:k,fullWidth:p,hiddenLabel:h,size:x,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:$,onFilled:N,registerEffect:O,required:g,variant:y}),[C,a,l,c,M,k,p,h,O,$,N,g,x,y]);return P.jsx(xm.Provider,{value:z,children:P.jsx(uV,{as:s,ownerState:w,className:Se(b.root,o),ref:r,...S,children:i})})});function cV(e){return ze("MuiFormControlLabel",e)}const Qf=Fe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),fV=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:o}=e,a={root:["root",r&&"disabled",`labelPlacement${ue(n)}`,i&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return je(a,cV,t)},dV=se("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Qf.label}`]:t.label},t.root,t[`labelPlacement${ue(r.labelPlacement)}`]]}})(Oe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Qf.disabled}`]:{cursor:"default"},[`& .${Qf.label}`]:{[`&.${Qf.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),pV=se("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Oe(({theme:e})=>({[`&.${Qf.error}`]:{color:(e.vars||e).palette.error.main}}))),YD=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormControlLabel"}),{checked:i,className:o,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:d,label:p,labelPlacement:h="end",name:v,onChange:g,required:x,slots:y={},slotProps:S={},value:w,...b}=n,C=jo(),T=l??s.props.disabled??(C==null?void 0:C.disabled),M=x??s.props.required,E={disabled:T,required:M};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof s.props[F]>"u"&&typeof n[F]<"u"&&(E[F]=n[F])});const I=Ms({props:n,muiFormControl:C,states:["error"]}),D={...n,disabled:T,labelPlacement:h,required:M,error:I.error},k=fV(D),O={slots:y,slotProps:{...a,...S}},[N,$]=Ue("typography",{elementType:Xe,externalForwardedProps:O,ownerState:D});let z=p;return z!=null&&z.type!==Xe&&!c&&(z=P.jsx(N,{component:"span",...$,className:Se(k.label,$==null?void 0:$.className),children:z})),P.jsxs(dV,{className:Se(k.root,o),ownerState:D,ref:r,...b,children:[L.cloneElement(s,E),M?P.jsxs("div",{children:[z,P.jsxs(pV,{ownerState:D,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}):z]})});function hV(e){return ze("MuiFormGroup",e)}Fe("MuiFormGroup",["root","row","error"]);const vV=e=>{const{classes:t,row:r,error:n}=e;return je({root:["root",r&&"row",n&&"error"]},hV,t)},gV=se("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),qD=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1,...a}=n,s=jo(),l=Ms({props:n,muiFormControl:s,states:["error"]}),c={...n,row:o,error:l.error},d=vV(c);return P.jsx(gV,{className:Se(d.root,i),ownerState:c,ref:r,...a})});function mV(e){return ze("MuiFormHelperText",e)}const vk=Fe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var gk;const yV=e=>{const{classes:t,contained:r,size:n,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:["root",i&&"disabled",o&&"error",n&&`size${ue(n)}`,r&&"contained",s&&"focused",a&&"filled",l&&"required"]};return je(c,mV,t)},xV=se("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ue(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Oe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${vk.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vk.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),SV=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p",disabled:s,error:l,filled:c,focused:d,margin:p,required:h,variant:v,...g}=n,x=jo(),y=Ms({props:n,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),S={...n,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete S.ownerState;const w=yV(S);return P.jsx(xV,{as:a,className:Se(w.root,o),ref:r,...g,ownerState:S,children:i===" "?gk||(gk=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});function bV(e){return ze("MuiFormLabel",e)}const hd=Fe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),wV=e=>{const{classes:t,color:r,focused:n,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${ue(r)}`,i&&"disabled",o&&"error",a&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return je(l,bV,t)},_V=se("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(Oe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{[`&.${hd.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${hd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hd.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),CV=se("span",{name:"MuiFormLabel",slot:"Asterisk"})(Oe(({theme:e})=>({[`&.${hd.error}`]:{color:(e.vars||e).palette.error.main}}))),TV=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormLabel"}),{children:i,className:o,color:a,component:s="label",disabled:l,error:c,filled:d,focused:p,required:h,...v}=n,g=jo(),x=Ms({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),y={...n,color:x.color||"primary",component:s,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},S=wV(y);return P.jsxs(_V,{as:s,ownerState:y,className:Se(S.root,o),ref:r,...v,children:[i,x.required&&P.jsxs(CV,{ownerState:y,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});function mS(e){return`scale(${e}, ${e**2})`}const MV={entering:{opacity:1,transform:mS(1)},entered:{opacity:1,transform:"none"}},d1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),wg=L.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:d,onExit:p,onExited:h,onExiting:v,style:g,timeout:x="auto",TransitionComponent:y=Fi,...S}=t,w=_l(),b=L.useRef(),C=Fo(),T=L.useRef(null),M=Tr(T,ql(o),r),E=F=>j=>{if(F){const K=T.current;j===void 0?F(K):F(K,j)}},I=E(d),D=E((F,j)=>{hw(F);const{duration:K,delay:V,easing:H}=ys({style:g,timeout:x,easing:a},{mode:"enter"});let Y;x==="auto"?(Y=C.transitions.getAutoHeightDuration(F.clientHeight),b.current=Y):Y=K,F.style.transition=[C.transitions.create("opacity",{duration:Y,delay:V}),C.transitions.create("transform",{duration:d1?Y:Y*.666,delay:V,easing:H})].join(","),l&&l(F,j)}),k=E(c),O=E(v),N=E(F=>{const{duration:j,delay:K,easing:V}=ys({style:g,timeout:x,easing:a},{mode:"exit"});let H;x==="auto"?(H=C.transitions.getAutoHeightDuration(F.clientHeight),b.current=H):H=j,F.style.transition=[C.transitions.create("opacity",{duration:H,delay:K}),C.transitions.create("transform",{duration:d1?H:H*.666,delay:d1?K:K||H*.333,easing:V})].join(","),F.style.opacity=0,F.style.transform=mS(.75),p&&p(F)}),$=E(h),z=F=>{x==="auto"&&w.start(b.current||0,F),n&&n(T.current,F)};return P.jsx(y,{appear:i,in:s,nodeRef:T,onEnter:D,onEntered:k,onEntering:I,onExit:N,onExited:$,onExiting:O,addEndListener:z,timeout:x==="auto"?null:x,...S,children:(F,{ownerState:j,...K})=>L.cloneElement(o,{style:{opacity:0,transform:mS(.75),visibility:F==="exited"&&!s?"hidden":void 0,...MV[F],...g,...o.props.style},ref:M,...K})})});wg&&(wg.muiSupportAuto=!0);const kV=e=>{const{classes:t,disableUnderline:r}=e,i=je({root:["root",!r&&"underline"],input:["input"]},SW,t);return{...t,...i}},RV=se(wm,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Sm(e,t),!r.disableUnderline&&t.underline]}})(Oe(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{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"},[`&.${is.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${is.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${is.disabled}, .${is.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${is.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Cr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),PV=se(_m,{name:"MuiInput",slot:"Input",overridesResolver:bm})({}),Pw=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:p={},type:h="text",...v}=n,g=kV(n),y={root:{ownerState:{disableUnderline:i}}},S=d??a?Vr(d??a,y):y,w=p.root??o.Root??RV,b=p.input??o.Input??PV;return P.jsx(Tw,{slots:{root:w,input:b},slotProps:S,fullWidth:s,inputComponent:l,multiline:c,ref:r,type:h,...v,classes:g})});Pw.muiName="Input";function EV(e){return ze("MuiInputAdornment",e)}const mk=Fe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var yk;const AV=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ue(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},IV=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:o,variant:a}=e,s={root:["root",r&&"disablePointerEvents",i&&`position${ue(i)}`,a,n&&"hiddenLabel",o&&`size${ue(o)}`]};return je(s,EV,t)},DV=se("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:AV})(Oe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${mk.positionStart}&:not(.${mk.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),LV=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:d,...p}=n,h=jo()||{};let v=d;d&&h.variant,h&&!v&&(v=h.variant);const g={...n,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:v},x=IV(g);return P.jsx(xm.Provider,{value:null,children:P.jsx(DV,{as:a,ownerState:g,className:Se(x.root,o),ref:r,...p,children:typeof i=="string"&&!l?P.jsx(Xe,{color:"textSecondary",children:i}):P.jsxs(L.Fragment,{children:[c==="start"?yk||(yk=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,i]})})})});function OV(e){return ze("MuiInputLabel",e)}Fe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const NV=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",r&&"formControl",!o&&"animated",i&&"shrink",n&&n!=="medium"&&`size${ue(n)}`,a],asterisk:[s&&"asterisk"]},c=je(l,OV,t);return{...t,...c}},BV=se(TV,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${hd.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Oe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Cm=L.forwardRef(function(t,r){const n=He({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:o,shrink:a,variant:s,className:l,...c}=n,d=jo();let p=a;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const h=Ms({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),v={...n,disableAnimation:i,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=NV(v);return P.jsx(BV,{"data-shrink":p,ref:r,className:Se(g.root,l),...c,ownerState:v,classes:g})});function $V(e){return ze("MuiLink",e)}const zV=Fe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),FV=({theme:e,ownerState:t})=>{const r=t.color,n=os(e,`palette.${r}.main`,!1)||os(e,`palette.${r}`,!1)||t.color,i=os(e,`palette.${r}.mainChannel`)||os(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:bt(n,.4)},xk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},jV=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,o={root:["root",`underline${ue(i)}`,r==="button"&&"button",n&&"focusVisible"]};return je(o,$V,t)},WV=se(Xe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ue(r.underline)}`],r.component==="button"&&t.button]}})(Oe(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:bt(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:bt(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:bt(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${zV.focusVisible}`]:{outline:"auto"}}}]}))),fn=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiLink"}),i=Fo(),{className:o,color:a="primary",component:s="a",onBlur:l,onFocus:c,TypographyClasses:d,underline:p="always",variant:h="inherit",sx:v,...g}=n,[x,y]=L.useState(!1),S=T=>{uc(T.target)||y(!1),l&&l(T)},w=T=>{uc(T.target)&&y(!0),c&&c(T)},b={...n,color:a,component:s,focusVisible:x,underline:p,variant:h},C=jV(b);return P.jsx(WV,{color:a,className:Se(C.root,o),classes:d,component:s,onBlur:S,onFocus:w,ref:r,ownerState:b,variant:h,...g,sx:[...xk[a]===void 0?[{color:a}]:[],...Array.isArray(v)?v:[v]],style:{...g.style,...p==="always"&&a!=="inherit"&&!xk[a]&&{"--Link-underlineColor":FV({theme:i,ownerState:b})}}})}),Pl=L.createContext({});function HV(e){return ze("MuiList",e)}Fe("MuiList",["root","padding","dense","subheader"]);const VV=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return je({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},HV,t)},UV=se("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]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Ew=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...d}=n,p=L.useMemo(()=>({dense:s}),[s]),h={...n,component:a,dense:s,disablePadding:l},v=VV(h);return P.jsx(Pl.Provider,{value:p,children:P.jsxs(UV,{as:a,className:Se(v.root,o),ref:r,ownerState:h,...d,children:[c,i]})})});function GV(e){return ze("MuiListItem",e)}Fe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const YV=Fe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function qV(e){return ze("MuiListItemSecondaryAction",e)}Fe("MuiListItemSecondaryAction",["root","disableGutters"]);const XV=e=>{const{disableGutters:t,classes:r}=e;return je({root:["root",t&&"disableGutters"]},qV,r)},KV=se("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),XD=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...o}=n,a=L.useContext(Pl),s={...n,disableGutters:a.disableGutters},l=XV(s);return P.jsx(KV,{className:Se(l.root,i),ownerState:s,ref:r,...o})});XD.muiName="ListItemSecondaryAction";const ZV=(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.hasSecondaryAction&&t.secondaryAction]},QV=e=>{const{alignItems:t,classes:r,dense:n,disableGutters:i,disablePadding:o,divider:a,hasSecondaryAction:s}=e;return je({root:["root",n&&"dense",!i&&"gutters",!o&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},GV,r)},JV=se("div",{name:"MuiListItem",slot:"Root",overridesResolver:ZV})(Oe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${YV.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{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"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),eU=se("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),ml=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItem"}),{alignItems:i="center",children:o,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:p,...h}={},dense:v=!1,disableGutters:g=!1,disablePadding:x=!1,divider:y=!1,secondaryAction:S,slotProps:w={},slots:b={},...C}=n,T=L.useContext(Pl),M=L.useMemo(()=>({dense:v||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,v,g]),E=L.useRef(null),I=L.Children.toArray(o),D=I.length&&Gv(I[I.length-1],["ListItemSecondaryAction"]),k={...n,alignItems:i,dense:M.dense,disableGutters:g,disablePadding:x,divider:y,hasSecondaryAction:D},O=QV(k),N=Tr(E,r),$=b.root||l.Root||JV,z=w.root||c.root||{},F={className:Se(O.root,z.className,a),...C};let j=s||"li";return D?(j=!F.component&&!s?"div":j,d==="li"&&(j==="li"?j="div":F.component==="li"&&(F.component="div")),P.jsx(Pl.Provider,{value:M,children:P.jsxs(eU,{as:d,className:Se(O.container,p),ref:N,ownerState:k,...h,children:[P.jsx($,{...z,...!Wd($)&&{as:j,ownerState:{...k,...z.ownerState}},...F,children:I}),I.pop()]})})):P.jsx(Pl.Provider,{value:M,children:P.jsxs($,{...z,as:j,ref:N,...!Wd($)&&{ownerState:{...k,...z.ownerState}},...F,children:[I,S&&P.jsx(XD,{children:S})]})})});function tU(e){return ze("MuiListItemIcon",e)}Fe("MuiListItemIcon",["root","alignItemsFlexStart"]);const rU=e=>{const{alignItems:t,classes:r}=e;return je({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},tU,r)},nU=se("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Oe(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),iU=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItemIcon"}),{className:i,...o}=n,a=L.useContext(Pl),s={...n,alignItems:a.alignItems},l=rU(s);return P.jsx(nU,{className:Se(l.root,i),ownerState:s,ref:r,...o})});function oU(e){return ze("MuiListItemText",e)}const Zh=Fe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),aU=e=>{const{classes:t,inset:r,primary:n,secondary:i,dense:o}=e;return je({root:["root",r&&"inset",o&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},oU,t)},sU=se("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Zh.primary}`]:t.primary},{[`& .${Zh.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${VM.root}:where(& .${Zh.primary})`]:{display:"block"},[`.${VM.root}:where(& .${Zh.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),lU=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:p,slots:h={},slotProps:v={},...g}=n,{dense:x}=L.useContext(Pl);let y=l??i,S=d;const w={...n,disableTypography:a,inset:s,primary:!!y,secondary:!!S,dense:x},b=aU(w),C={slots:h,slotProps:{primary:c,secondary:p,...v}},[T,M]=Ue("root",{className:Se(b.root,o),elementType:sU,externalForwardedProps:{...C,...g},ownerState:w,ref:r}),[E,I]=Ue("primary",{className:b.primary,elementType:Xe,externalForwardedProps:C,ownerState:w}),[D,k]=Ue("secondary",{className:b.secondary,elementType:Xe,externalForwardedProps:C,ownerState:w});return y!=null&&y.type!==Xe&&!a&&(y=P.jsx(E,{variant:x?"body2":"body1",component:I!=null&&I.variant?void 0:"span",...I,children:y})),S!=null&&S.type!==Xe&&!a&&(S=P.jsx(D,{variant:"body2",color:"textSecondary",...k,children:S})),P.jsxs(T,{...M,children:[y,S]})});function p1(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Sk(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function KD(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.startsWith(t.keys.join(""))}function Sf(e,t,r,n,i,o){let a=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!KD(s,o)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const uU=L.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:p="selectedMenu",...h}=t,v=L.useRef(null),g=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});lo(()=>{i&&v.current.focus()},[i]),L.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,{direction:C})=>{const T=!v.current.style.width;if(b.clientHeight<v.current.clientHeight&&T){const M=`${VD(li(b))}px`;v.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=M,v.current.style.width=`calc(100% + ${M})`}return v.current}}),[]);const x=b=>{const C=v.current,T=b.key;if(b.ctrlKey||b.metaKey||b.altKey){d&&d(b);return}const E=Hn(C).activeElement;if(T==="ArrowDown")b.preventDefault(),Sf(C,E,c,l,p1);else if(T==="ArrowUp")b.preventDefault(),Sf(C,E,c,l,Sk);else if(T==="Home")b.preventDefault(),Sf(C,null,c,l,p1);else if(T==="End")b.preventDefault(),Sf(C,null,c,l,Sk);else if(T.length===1){const I=g.current,D=T.toLowerCase(),k=performance.now();I.keys.length>0&&(k-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&D!==I.keys[0]&&(I.repeating=!1)),I.lastTime=k,I.keys.push(D);const O=E&&!I.repeating&&KD(E,I);I.previousKeyMatched&&(O||Sf(C,E,!1,l,p1,I))?b.preventDefault():I.previousKeyMatched=!1}d&&d(b)},y=Tr(v,r);let S=-1;L.Children.forEach(a,(b,C)=>{if(!L.isValidElement(b)){S===C&&(S+=1,S>=a.length&&(S=-1));return}b.props.disabled||(p==="selectedMenu"&&b.props.selected||S===-1)&&(S=C),S===C&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(S+=1,S>=a.length&&(S=-1))});const w=L.Children.map(a,(b,C)=>{if(C===S){const T={};return o&&(T.autoFocus=!0),b.props.tabIndex===void 0&&p==="selectedMenu"&&(T.tabIndex=0),L.cloneElement(b,T)}return b});return P.jsx(Ew,{role:"menu",ref:y,className:s,onKeyDown:x,tabIndex:i?0:-1,...h,children:w})});function cU(e){return ze("MuiPopover",e)}Fe("MuiPopover",["root","paper"]);function bk(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function wk(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function _k(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Qh(e){return typeof e=="function"?e():e}const fU=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"]},cU,t)},dU=se(Mw,{name:"MuiPopover",slot:"Root"})({}),ZD=se(ji,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),QD=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiPopover"}),{action:i,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:d,container:p,elevation:h=8,marginThreshold:v=16,open:g,PaperProps:x={},slots:y={},slotProps:S={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:b,transitionDuration:C="auto",TransitionProps:T={},disableScrollLock:M=!1,...E}=n,I=L.useRef(),D={...n,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:v,transformOrigin:w,TransitionComponent:b,transitionDuration:C,TransitionProps:T},k=fU(D),O=L.useCallback(()=>{if(l==="anchorPosition")return s;const fe=Qh(o),pe=(fe&&fe.nodeType===1?fe:Hn(I.current).body).getBoundingClientRect();return{top:pe.top+bk(pe,a.vertical),left:pe.left+wk(pe,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),N=L.useCallback(fe=>({vertical:bk(fe,w.vertical),horizontal:wk(fe,w.horizontal)}),[w.horizontal,w.vertical]),$=L.useCallback(fe=>{const ge={width:fe.offsetWidth,height:fe.offsetHeight},pe=N(ge);if(l==="none")return{top:null,left:null,transformOrigin:_k(pe)};const Ne=O();let ke=Ne.top-pe.vertical,it=Ne.left-pe.horizontal;const rt=ke+ge.height,dt=it+ge.width,we=li(Qh(o)),at=we.innerHeight-v,Ee=we.innerWidth-v;if(v!==null&&ke<v){const Ye=ke-v;ke-=Ye,pe.vertical+=Ye}else if(v!==null&&rt>at){const Ye=rt-at;ke-=Ye,pe.vertical+=Ye}if(v!==null&&it<v){const Ye=it-v;it-=Ye,pe.horizontal+=Ye}else if(dt>Ee){const Ye=dt-Ee;it-=Ye,pe.horizontal+=Ye}return{top:`${Math.round(ke)}px`,left:`${Math.round(it)}px`,transformOrigin:_k(pe)}},[o,l,O,N,v]),[z,F]=L.useState(g),j=L.useCallback(()=>{const fe=I.current;if(!fe)return;const ge=$(fe);ge.top!==null&&fe.style.setProperty("top",ge.top),ge.left!==null&&(fe.style.left=ge.left),fe.style.transformOrigin=ge.transformOrigin,F(!0)},[$]);L.useEffect(()=>(M&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[o,M,j]);const K=()=>{j()},V=()=>{F(!1)};L.useEffect(()=>{g&&j()}),L.useImperativeHandle(i,()=>g?{updatePosition:()=>{j()}}:null,[g,j]),L.useEffect(()=>{if(!g)return;const fe=yp(()=>{j()}),ge=li(Qh(o));return ge.addEventListener("resize",fe),()=>{fe.clear(),ge.removeEventListener("resize",fe)}},[o,g,j]);let H=C;const Y={slots:{transition:b,...y},slotProps:{transition:T,paper:x,...S}},[W,q]=Ue("transition",{elementType:wg,externalForwardedProps:Y,ownerState:D,getSlotProps:fe=>({...fe,onEntering:(ge,pe)=>{var Ne;(Ne=fe.onEntering)==null||Ne.call(fe,ge,pe),K()},onExited:ge=>{var pe;(pe=fe.onExited)==null||pe.call(fe,ge),V()}}),additionalProps:{appear:!0,in:g}});C==="auto"&&!W.muiSupportAuto&&(H=void 0);const te=p||(o?Hn(Qh(o)).body:void 0),[le,{slots:ne,slotProps:Q,...ce}]=Ue("root",{ref:r,elementType:dU,externalForwardedProps:{...Y,...E},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:fw(typeof S.backdrop=="function"?S.backdrop(D):S.backdrop,{invisible:!0})},container:te,open:g},ownerState:D,className:Se(k.root,d)}),[me,de]=Ue("paper",{ref:I,className:k.paper,elementType:ZD,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:z?void 0:{opacity:0}},ownerState:D});return P.jsx(le,{...ce,...!Wd(le)&&{slots:ne,slotProps:Q,disableScrollLock:M},children:P.jsx(W,{...q,timeout:H,children:P.jsx(me,{...de,children:c})})})});function pU(e){return ze("MuiMenu",e)}Fe("MuiMenu",["root","paper","list"]);const hU={vertical:"top",horizontal:"right"},vU={vertical:"top",horizontal:"left"},gU=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"],list:["list"]},pU,t)},mU=se(QD,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),yU=se(ZD,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xU=se(uU,{name:"MuiMenu",slot:"List"})({outline:0}),SU=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:o,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:v="auto",TransitionProps:{onEntering:g,...x}={},variant:y="selectedMenu",slots:S={},slotProps:w={},...b}=n,C=Cc(),T={...n,autoFocus:i,disableAutoFocusItem:s,MenuListProps:l,onEntering:g,PaperProps:p,transitionDuration:v,TransitionProps:x,variant:y},M=gU(T),E=i&&!s&&d,I=L.useRef(null),D=(H,Y)=>{I.current&&I.current.adjustStyleForScrollbar(H,{direction:C?"rtl":"ltr"}),g&&g(H,Y)},k=H=>{H.key==="Tab"&&(H.preventDefault(),c&&c(H,"tabKeyDown"))};let O=-1;L.Children.map(o,(H,Y)=>{L.isValidElement(H)&&(H.props.disabled||(y==="selectedMenu"&&H.props.selected||O===-1)&&(O=Y))});const N={slots:S,slotProps:{list:l,transition:x,paper:p,...w}},$=hc({elementType:S.root,externalSlotProps:w.root,ownerState:T,className:[M.root,a]}),[z,F]=Ue("paper",{className:M.paper,elementType:yU,externalForwardedProps:N,shouldForwardComponentProp:!0,ownerState:T}),[j,K]=Ue("list",{className:Se(M.list,l.className),elementType:xU,shouldForwardComponentProp:!0,externalForwardedProps:N,getSlotProps:H=>({...H,onKeyDown:Y=>{var W;k(Y),(W=H.onKeyDown)==null||W.call(H,Y)}}),ownerState:T}),V=typeof N.slotProps.transition=="function"?N.slotProps.transition(T):N.slotProps.transition;return P.jsx(mU,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?hU:vU,slots:{root:S.root,paper:z,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:$,paper:F,backdrop:typeof w.backdrop=="function"?w.backdrop(T):w.backdrop,transition:{...V,onEntering:(...H)=>{var Y;D(...H),(Y=V==null?void 0:V.onEntering)==null||Y.call(V,...H)}}},open:d,ref:r,transitionDuration:v,ownerState:T,...b,classes:h,children:P.jsx(j,{actions:I,autoFocus:i&&(O===-1||s),autoFocusItem:E,variant:y,...K,children:o})})});function bU(e){return ze("MuiNativeSelect",e)}const Aw=Fe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),wU=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ue(r)}`,o&&"iconOpen",n&&"disabled"]};return je(s,bU,t)},JD=se("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Aw.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),_U=se(JD,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Yn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Aw.multiple}`]:t.multiple}]}})({}),eL=se("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Aw.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),CU=se(eL,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ue(r.variant)}`],r.open&&t.iconOpen]}})({}),TU=L.forwardRef(function(t,r){const{className:n,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,d={...t,disabled:i,variant:l,error:o},p=wU(d);return P.jsxs(L.Fragment,{children:[P.jsx(_U,{ownerState:d,className:Se(p.select,n),disabled:i,ref:s||r,...c}),t.multiple?null:P.jsx(CU,{as:a,ownerState:d,className:p.icon})]})});var Ck;const MU=se("fieldset",{shouldForwardProp:Yn})({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%"}),kU=se("legend",{shouldForwardProp:Yn})(Oe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function RU(e){const{children:t,classes:r,className:n,label:i,notched:o,...a}=e,s=i!=null&&i!=="",l={...e,notched:o,withLabel:s};return P.jsx(MU,{"aria-hidden":!0,className:n,ownerState:l,...a,children:P.jsx(kU,{ownerState:l,children:s?P.jsx("span",{children:i}):Ck||(Ck=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const PU=e=>{const{classes:t}=e,n=je({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bW,t);return{...t,...n}},EU=se(wm,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Sm})(Oe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ci.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ci.focused} .${Ci.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Cr()).map(([r])=>({props:{color:r},style:{[`&.${Ci.focused} .${Ci.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${Ci.error} .${Ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ci.disabled} .${Ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),AU=se(RU,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Oe(({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}})),IU=se(_m,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:bm})(Oe(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Tm=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:c,slots:d={},slotProps:p={},type:h="text",...v}=n,g=PU(n),x=jo(),y=Ms({props:n,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...n,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:x,fullWidth:o,hiddenLabel:y.hiddenLabel,multiline:l,size:y.size,type:h},w=d.root??i.Root??EU,b=d.input??i.Input??IU,[C,T]=Ue("notchedOutline",{elementType:AU,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:s!=null&&s!==""&&y.required?P.jsxs(L.Fragment,{children:[s," ","*"]}):s}});return P.jsx(Tw,{slots:{root:w,input:b},slotProps:p,renderSuffix:M=>P.jsx(C,{...T,notched:typeof c<"u"?c:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:r,type:h,...v,classes:{...g,notchedOutline:null}})});Tm.muiName="Input";function tL(e){return ze("MuiSelect",e)}const bf=Fe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Tk;const DU=se(JD,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${bf.select}`]:t.select},{[`&.${bf.select}`]:t[r.variant]},{[`&.${bf.error}`]:t.error},{[`&.${bf.multiple}`]:t.multiple}]}})({[`&.${bf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),LU=se(eL,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ue(r.variant)}`],r.open&&t.iconOpen]}})({}),OU=se("input",{shouldForwardProp:e=>gD(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Mk(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function NU(e){return e==null||typeof e=="string"&&!e.trim()}const BU=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ue(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return je(s,tL,t)},$U=L.forwardRef(function(t,r){var ut;const{"aria-describedby":n,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:v=!1,IconComponent:g,inputRef:x,labelId:y,MenuProps:S={},multiple:w,name:b,onBlur:C,onChange:T,onClose:M,onFocus:E,onOpen:I,open:D,readOnly:k,renderValue:O,required:N,SelectDisplayProps:$={},tabIndex:z,type:F,value:j,variant:K="standard",...V}=t,[H,Y]=cs({controlled:j,default:d,name:"Select"}),[W,q]=cs({controlled:D,default:c,name:"Select"}),te=L.useRef(null),le=L.useRef(null),[ne,Q]=L.useState(null),{current:ce}=L.useRef(D!=null),[me,de]=L.useState(),fe=Tr(r,x),ge=L.useCallback(Be=>{le.current=Be,Be&&Q(Be)},[]),pe=ne==null?void 0:ne.parentNode;L.useImperativeHandle(fe,()=>({focus:()=>{le.current.focus()},node:te.current,value:H}),[H]),L.useEffect(()=>{c&&W&&ne&&!ce&&(de(a?null:pe.clientWidth),le.current.focus())},[ne,a]),L.useEffect(()=>{o&&le.current.focus()},[o]),L.useEffect(()=>{if(!y)return;const Be=Hn(le.current).getElementById(y);if(Be){const st=()=>{getSelection().isCollapsed&&le.current.focus()};return Be.addEventListener("click",st),()=>{Be.removeEventListener("click",st)}}},[y]);const Ne=(Be,st)=>{Be?I&&I(st):M&&M(st),ce||(de(a?null:pe.clientWidth),q(Be))},ke=Be=>{Be.button===0&&(Be.preventDefault(),le.current.focus(),Ne(!0,Be))},it=Be=>{Ne(!1,Be)},rt=L.Children.toArray(s),dt=Be=>{const st=rt.find(_t=>_t.props.value===Be.target.value);st!==void 0&&(Y(st.props.value),T&&T(Be,st))},we=Be=>st=>{let _t;if(st.currentTarget.hasAttribute("tabindex")){if(w){_t=Array.isArray(H)?H.slice():[];const gr=H.indexOf(Be.props.value);gr===-1?_t.push(Be.props.value):_t.splice(gr,1)}else _t=Be.props.value;if(Be.props.onClick&&Be.props.onClick(st),H!==_t&&(Y(_t),T)){const gr=st.nativeEvent||st,Nr=new gr.constructor(gr.type,gr);Object.defineProperty(Nr,"target",{writable:!0,value:{value:_t,name:b}}),T(Nr,Be)}w||Ne(!1,st)}},at=Be=>{k||[" ","ArrowUp","ArrowDown","Enter"].includes(Be.key)&&(Be.preventDefault(),Ne(!0,Be))},Ee=ne!==null&&W,Ye=Be=>{!Ee&&C&&(Object.defineProperty(Be,"target",{writable:!0,value:{value:H,name:b}}),C(Be))};delete V["aria-invalid"];let Ce,Xt;const mt=[];let Wt=!1;(bg({value:H})||h)&&(O?Ce=O(H):Wt=!0);const Jt=rt.map(Be=>{if(!L.isValidElement(Be))return null;let st;if(w){if(!Array.isArray(H))throw new Error(ga(2));st=H.some(_t=>Mk(_t,Be.props.value)),st&&Wt&&mt.push(Be.props.children)}else st=Mk(H,Be.props.value),st&&Wt&&(Xt=Be.props.children);return L.cloneElement(Be,{"aria-selected":st?"true":"false",onClick:we(Be),onKeyUp:_t=>{_t.key===" "&&_t.preventDefault(),Be.props.onKeyUp&&Be.props.onKeyUp(_t)},role:"option",selected:st,value:void 0,"data-value":Be.props.value})});Wt&&(w?mt.length===0?Ce=null:Ce=mt.reduce((Be,st,_t)=>(Be.push(st),_t<mt.length-1&&Be.push(", "),Be),[]):Ce=Xt);let ar=me;!a&&ce&&ne&&(ar=pe.clientWidth);let Lt;typeof z<"u"?Lt=z:Lt=p?null:0;const tr=$.id||(b?`mui-component-select-${b}`:void 0),Je={...t,variant:K,value:H,open:Ee,error:v},xe=BU(Je),wt={...S.PaperProps,...(ut=S.slotProps)==null?void 0:ut.paper},Rt=Tc();return P.jsxs(L.Fragment,{children:[P.jsx(DU,{as:"div",ref:ge,tabIndex:Lt,role:"combobox","aria-controls":Ee?Rt:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":Ee?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[y,tr].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":N?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:at,onMouseDown:p||k?null:ke,onBlur:Ye,onFocus:E,...$,ownerState:Je,className:Se($.className,xe.select,l),id:tr,children:NU(Ce)?Tk||(Tk=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ce}),P.jsx(OU,{"aria-invalid":v,value:Array.isArray(H)?H.join(","):H,name:b,ref:te,"aria-hidden":!0,onChange:dt,tabIndex:-1,disabled:p,className:xe.nativeInput,autoFocus:o,required:N,...V,ownerState:Je}),P.jsx(LU,{as:g,className:xe.icon,ownerState:Je}),P.jsx(SU,{id:`menu-${b||""}`,anchorEl:pe,open:Ee,onClose:it,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:Rt,...S.MenuListProps},paper:{...wt,style:{minWidth:ar,...wt!=null?wt.style:null}}},children:Jt})]})}),zU=e=>{const{classes:t}=e,n=je({root:["root"]},tL,t);return{...t,...n}},Iw={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Yn(e)&&e!=="variant"},FU=se(Pw,Iw)(""),jU=se(Tm,Iw)(""),WU=se(kw,Iw)(""),Dw=L.forwardRef(function(t,r){const n=He({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=zD,id:p,input:h,inputProps:v,label:g,labelId:x,MenuProps:y,multiple:S=!1,native:w=!1,onClose:b,onOpen:C,open:T,renderValue:M,SelectDisplayProps:E,variant:I="outlined",...D}=n,k=w?TU:$U,O=jo(),N=Ms({props:n,muiFormControl:O,states:["variant","error"]}),$=N.variant||I,z={...n,variant:$,classes:a},F=zU(z),{root:j,...K}=F,V=h||{standard:P.jsx(FU,{ownerState:z}),outlined:P.jsx(jU,{label:g,ownerState:z}),filled:P.jsx(WU,{ownerState:z})}[$],H=Tr(r,ql(V));return P.jsx(L.Fragment,{children:L.cloneElement(V,{inputComponent:k,inputProps:{children:o,error:N.error,IconComponent:d,variant:$,type:void 0,multiple:S,...w?{id:p}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:y,onClose:b,onOpen:C,open:T,renderValue:M,SelectDisplayProps:{id:p,...E}},...v,classes:v?Vr(K,v.classes):K,...h?h.props.inputProps:{}},...(S&&w||c)&&$==="outlined"?{notched:!0}:{},ref:H,className:Se(V.props.className,s,F.root),...!h&&{variant:$},...D})})});Dw.muiName="Select";function HU(e){return ze("MuiTooltip",e)}const br=Fe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function VU(e){return Math.round(e*1e5)/1e5}const UU=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:o}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${ue(o.split("-")[0])}`],arrow:["arrow"]};return je(a,HU,t)},GU=se(ym,{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]}})(Oe(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${br.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${br.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${br.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${br.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${br.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${br.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${br.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${br.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),YU=se("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${ue(r.placement.split("-")[0])}`]]}})(Oe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:bt(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,[`.${br.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${br.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${br.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${br.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${VU(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${br.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${br.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${br.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${br.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${br.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${br.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${br.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${br.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${br.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${br.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),qU=se("span",{name:"MuiTooltip",slot:"Arrow"})(Oe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:bt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Jh=!1;const kk=new gm;let wf={x:0,y:0};function ev(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const rL=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:h=!1,disableTouchListener:v=!1,enterDelay:g=100,enterNextDelay:x=0,enterTouchDelay:y=700,followCursor:S=!1,id:w,leaveDelay:b=0,leaveTouchDelay:C=1500,onClose:T,onOpen:M,open:E,placement:I="bottom",PopperComponent:D,PopperProps:k={},slotProps:O={},slots:N={},title:$,TransitionComponent:z,TransitionProps:F,...j}=n,K=L.isValidElement(o)?o:P.jsx("span",{children:o}),V=Fo(),H=Cc(),[Y,W]=L.useState(),[q,te]=L.useState(null),le=L.useRef(!1),ne=h||S,Q=_l(),ce=_l(),me=_l(),de=_l(),[fe,ge]=cs({controlled:E,default:!1,name:"Tooltip",state:"open"});let pe=fe;const Ne=Tc(w),ke=L.useRef(),it=vn(()=>{ke.current!==void 0&&(document.body.style.WebkitUserSelect=ke.current,ke.current=void 0),de.clear()});L.useEffect(()=>it,[it]);const rt=et=>{kk.clear(),Jh=!0,ge(!0),M&&!pe&&M(et)},dt=vn(et=>{kk.start(800+b,()=>{Jh=!1}),ge(!1),T&&pe&&T(et),Q.start(V.transitions.duration.shortest,()=>{le.current=!1})}),we=et=>{le.current&&et.type!=="touchstart"||(Y&&Y.removeAttribute("title"),ce.clear(),me.clear(),g||Jh&&x?ce.start(Jh?x:g,()=>{rt(et)}):rt(et))},at=et=>{ce.clear(),me.start(b,()=>{dt(et)})},[,Ee]=L.useState(!1),Ye=et=>{uc(et.target)||(Ee(!1),at(et))},Ce=et=>{Y||W(et.currentTarget),uc(et.target)&&(Ee(!0),we(et))},Xt=et=>{le.current=!0;const nr=K.props;nr.onTouchStart&&nr.onTouchStart(et)},mt=et=>{Xt(et),me.clear(),Q.clear(),it(),ke.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",de.start(y,()=>{document.body.style.WebkitUserSelect=ke.current,we(et)})},Wt=et=>{K.props.onTouchEnd&&K.props.onTouchEnd(et),it(),me.start(C,()=>{dt(et)})};L.useEffect(()=>{if(!pe)return;function et(nr){nr.key==="Escape"&&dt(nr)}return document.addEventListener("keydown",et),()=>{document.removeEventListener("keydown",et)}},[dt,pe]);const Jt=Tr(ql(K),W,r);!$&&$!==0&&(pe=!1);const ar=L.useRef(),Lt=et=>{const nr=K.props;nr.onMouseMove&&nr.onMouseMove(et),wf={x:et.clientX,y:et.clientY},ar.current&&ar.current.update()},tr={},Je=typeof $=="string";c?(tr.title=!pe&&Je&&!p?$:null,tr["aria-describedby"]=pe?Ne:null):(tr["aria-label"]=Je?$:null,tr["aria-labelledby"]=pe&&!Je?Ne:null);const xe={...tr,...j,...K.props,className:Se(j.className,K.props.className),onTouchStart:Xt,ref:Jt,...S?{onMouseMove:Lt}:{}},wt={};v||(xe.onTouchStart=mt,xe.onTouchEnd=Wt),p||(xe.onMouseOver=ev(we,xe.onMouseOver),xe.onMouseLeave=ev(at,xe.onMouseLeave),ne||(wt.onMouseOver=we,wt.onMouseLeave=at)),d||(xe.onFocus=ev(Ce,xe.onFocus),xe.onBlur=ev(Ye,xe.onBlur),ne||(wt.onFocus=Ce,wt.onBlur=Ye));const Rt={...n,isRtl:H,arrow:i,disableInteractive:ne,placement:I,PopperComponentProp:D,touch:le.current},ut=typeof O.popper=="function"?O.popper(Rt):O.popper,Be=L.useMemo(()=>{var nr,Me;let et=[{name:"arrow",enabled:!!q,options:{element:q,padding:4}}];return(nr=k.popperOptions)!=null&&nr.modifiers&&(et=et.concat(k.popperOptions.modifiers)),(Me=ut==null?void 0:ut.popperOptions)!=null&&Me.modifiers&&(et=et.concat(ut.popperOptions.modifiers)),{...k.popperOptions,...ut==null?void 0:ut.popperOptions,modifiers:et}},[q,k.popperOptions,ut==null?void 0:ut.popperOptions]),st=UU(Rt),_t=typeof O.transition=="function"?O.transition(Rt):O.transition,gr={slots:{popper:s.Popper,transition:s.Transition??z,tooltip:s.Tooltip,arrow:s.Arrow,...N},slotProps:{arrow:O.arrow??l.arrow,popper:{...k,...ut??l.popper},tooltip:O.tooltip??l.tooltip,transition:{...F,..._t??l.transition}}},[Nr,Hi]=Ue("popper",{elementType:GU,externalForwardedProps:gr,ownerState:Rt,className:Se(st.popper,k==null?void 0:k.className)}),[rr,Rr]=Ue("transition",{elementType:wg,externalForwardedProps:gr,ownerState:Rt}),[en,qn]=Ue("tooltip",{elementType:YU,className:st.tooltip,externalForwardedProps:gr,ownerState:Rt}),[Ur,Vi]=Ue("arrow",{elementType:qU,className:st.arrow,externalForwardedProps:gr,ownerState:Rt,ref:te});return P.jsxs(L.Fragment,{children:[L.cloneElement(K,xe),P.jsx(Nr,{as:D??ym,placement:I,anchorEl:S?{getBoundingClientRect:()=>({top:wf.y,left:wf.x,right:wf.x,bottom:wf.y,width:0,height:0})}:Y,popperRef:ar,open:Y?pe:!1,id:Ne,transition:!0,...wt,...Hi,popperOptions:Be,children:({TransitionProps:et})=>P.jsx(rr,{timeout:V.transitions.duration.shorter,...et,...Rr,children:P.jsxs(en,{...qn,children:[$,i?P.jsx(Ur,{...Vi}):null]})})})]})}),XU=Pj({createStyledComponent:se("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>He({props:e,name:"MuiStack"})});function KU(e){return ze("MuiSwitch",e)}const bn=Fe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),ZU=e=>{const{classes:t,edge:r,size:n,color:i,checked:o,disabled:a}=e,s={root:["root",r&&`edge${ue(r)}`,`size${ue(n)}`],switchBase:["switchBase",`color${ue(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=je(s,KU,t);return{...t,...l}},QU=se("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ue(r.edge)}`],t[`size${ue(r.size)}`]]}})({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"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${bn.thumb}`]:{width:16,height:16},[`& .${bn.switchBase}`]:{padding:4,[`&.${bn.checked}`]:{transform:"translateX(16px)"}}}}]}),JU=se(jD,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${bn.input}`]:t.input},r.color!=="default"&&t[`color${ue(r.color)}`]]}})(Oe(({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}),[`&.${bn.checked}`]:{transform:"translateX(20px)"},[`&.${bn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${bn.checked} + .${bn.track}`]:{opacity:.5},[`&.${bn.disabled} + .${bn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${bn.input}`]:{left:"-100%",width:"300%"}})),Oe(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Cr(["light"])).map(([t])=>({props:{color:t},style:{[`&.${bn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${bn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?zl(e.palette[t].main,.62):$l(e.palette[t].main,.55)}`}},[`&.${bn.checked} + .${bn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),eG=se("span",{name:"MuiSwitch",slot:"Track"})(Oe(({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}`}))),tG=se("span",{name:"MuiSwitch",slot:"Thumb"})(Oe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),rG=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l,slots:c={},slotProps:d={},...p}=n,h={...n,color:o,edge:a,size:s},v=ZU(h),g={slots:c,slotProps:d},[x,y]=Ue("root",{className:Se(v.root,i),elementType:QU,externalForwardedProps:g,ownerState:h,additionalProps:{sx:l}}),[S,w]=Ue("thumb",{className:v.thumb,elementType:tG,externalForwardedProps:g,ownerState:h}),b=P.jsx(S,{...w}),[C,T]=Ue("track",{className:v.track,elementType:eG,externalForwardedProps:g,ownerState:h});return P.jsxs(x,{...y,children:[P.jsx(JU,{type:"checkbox",icon:b,checkedIcon:b,ref:r,ownerState:h,...p,classes:{...v,root:v.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...d.switchBase&&{root:typeof d.switchBase=="function"?d.switchBase(h):d.switchBase},...d.input&&{input:typeof d.input=="function"?d.input(h):d.input}}}),P.jsx(C,{...T})]})});function nG(e){return ze("MuiTab",e)}const Si=Fe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),iG=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,c={root:["root",o&&a&&"labelIcon",`textColor${ue(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return je(c,nG,t)},oG=se(xs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ue(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Si.iconWrapper}`]:t.iconWrapper},{[`& .${Si.icon}`]:t.icon}]}})(Oe(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${Si.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${Si.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${Si.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${Si.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Si.selected}`]:{opacity:1},[`&.${Si.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Si.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Si.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Si.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Si.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),aG=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:d,label:p,onChange:h,onClick:v,onFocus:g,selected:x,selectionFollowsFocus:y,textColor:S="inherit",value:w,wrapped:b=!1,...C}=n,T={...n,disabled:o,disableFocusRipple:a,selected:x,icon:!!l,iconPosition:c,label:!!p,fullWidth:s,textColor:S,wrapped:b},M=iG(T),E=l&&p&&L.isValidElement(l)?L.cloneElement(l,{className:Se(M.icon,l.props.className)}):l,I=k=>{!x&&h&&h(k,w),v&&v(k)},D=k=>{y&&!x&&h&&h(k,w),g&&g(k)};return P.jsxs(oG,{focusRipple:!a,className:Se(M.root,i),ref:r,role:"tab","aria-selected":x,disabled:o,onClick:I,onFocus:D,ownerState:T,tabIndex:x?0:-1,...C,children:[c==="top"||c==="start"?P.jsxs(L.Fragment,{children:[E,p]}):P.jsxs(L.Fragment,{children:[p,E]}),d]})}),nL=L.createContext();function sG(e){return ze("MuiTable",e)}Fe("MuiTable",["root","stickyHeader"]);const lG=e=>{const{classes:t,stickyHeader:r}=e;return je({root:["root",r&&"stickyHeader"]},sG,t)},uG=se("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(Oe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Rk="table",iL=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTable"}),{className:i,component:o=Rk,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=n,d={...n,component:o,padding:a,size:s,stickyHeader:l},p=lG(d),h=L.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return P.jsx(nL.Provider,{value:h,children:P.jsx(uG,{as:o,role:o===Rk?null:"table",ref:r,className:Se(p.root,i),ownerState:d,...c})})}),Mm=L.createContext();function cG(e){return ze("MuiTableBody",e)}Fe("MuiTableBody",["root"]);const fG=e=>{const{classes:t}=e;return je({root:["root"]},cG,t)},dG=se("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),pG={variant:"body"},Pk="tbody",oL=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableBody"}),{className:i,component:o=Pk,...a}=n,s={...n,component:o},l=fG(s);return P.jsx(Mm.Provider,{value:pG,children:P.jsx(dG,{className:Se(l.root,i),as:o,ref:r,role:o===Pk?null:"rowgroup",ownerState:s,...a})})});function hG(e){return ze("MuiTableCell",e)}const vG=Fe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),gG=e=>{const{classes:t,variant:r,align:n,padding:i,size:o,stickyHeader:a}=e,s={root:["root",r,a&&"stickyHeader",n!=="inherit"&&`align${ue(n)}`,i!=="normal"&&`padding${ue(i)}`,`size${ue(o)}`]};return je(s,hG,t)},mG=se("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ue(r.size)}`],r.padding!=="normal"&&t[`padding${ue(r.padding)}`],r.align!=="inherit"&&t[`align${ue(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(Oe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
204
+ ${e.palette.mode==="light"?zl(bt(e.palette.divider,1),.88):$l(bt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${vG.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Sl=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:c,sortDirection:d,variant:p,...h}=n,v=L.useContext(nL),g=L.useContext(Mm),x=g&&g.variant==="head";let y;a?y=a:y=x?"th":"td";let S=l;y==="td"?S=void 0:!S&&x&&(S="col");const w=p||g&&g.variant,b={...n,align:i,component:y,padding:s||(v&&v.padding?v.padding:"normal"),size:c||(v&&v.size?v.size:"medium"),sortDirection:d,stickyHeader:w==="head"&&v&&v.stickyHeader,variant:w},C=gG(b);let T=null;return d&&(T=d==="asc"?"ascending":"descending"),P.jsx(mG,{as:y,ref:r,className:Se(C.root,o),"aria-sort":T,scope:S,ownerState:b,...h})});function yG(e){return ze("MuiTableContainer",e)}Fe("MuiTableContainer",["root"]);const xG=e=>{const{classes:t}=e;return je({root:["root"]},yG,t)},SG=se("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),aL=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableContainer"}),{className:i,component:o="div",...a}=n,s={...n,component:o},l=xG(s);return P.jsx(SG,{ref:r,as:o,className:Se(l.root,i),ownerState:s,...a})});function bG(e){return ze("MuiTableHead",e)}Fe("MuiTableHead",["root"]);const wG=e=>{const{classes:t}=e;return je({root:["root"]},bG,t)},_G=se("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),CG={variant:"head"},Ek="thead",sL=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableHead"}),{className:i,component:o=Ek,...a}=n,s={...n,component:o},l=wG(s);return P.jsx(Mm.Provider,{value:CG,children:P.jsx(_G,{as:o,className:Se(l.root,i),ref:r,role:o===Ek?null:"rowgroup",ownerState:s,...a})})});function TG(e){return ze("MuiToolbar",e)}Fe("MuiToolbar",["root","gutters","regular","dense"]);const MG=e=>{const{classes:t,disableGutters:r,variant:n}=e;return je({root:["root",!r&&"gutters",n]},TG,t)},kG=se("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(Oe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),RG=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular",...l}=n,c={...n,component:o,disableGutters:a,variant:s},d=MG(c);return P.jsx(kG,{as:o,className:Se(d.root,i),ref:r,ownerState:c,...l})}),PG=Gt(P.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),EG=Gt(P.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function AG(e){return ze("MuiTableRow",e)}const Ak=Fe("MuiTableRow",["root","selected","hover","head","footer"]),IG=e=>{const{classes:t,selected:r,hover:n,head:i,footer:o}=e;return je({root:["root",r&&"selected",n&&"hover",i&&"head",o&&"footer"]},AG,t)},DG=se("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(Oe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Ak.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ak.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:bt(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}))`:bt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Ik="tr",_g=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableRow"}),{className:i,component:o=Ik,hover:a=!1,selected:s=!1,...l}=n,c=L.useContext(Mm),d={...n,component:o,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},p=IG(d);return P.jsx(DG,{as:o,ref:r,className:Se(p.root,i),role:o===Ik?null:"row",ownerState:d,...l})});function LG(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function OG(e,t,r,n={},i=()=>{}){const{ease:o=LG,duration:a=300}=n;let s=null;const l=t[e];let c=!1;const d=()=>{c=!0},p=h=>{if(c){i(new Error("Animation cancelled"));return}s===null&&(s=h);const v=Math.min(1,(h-s)/a);if(t[e]=o(v)*(r-l)+l,v>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(p)};return l===r?(i(new Error("Element already at target position")),d):(requestAnimationFrame(p),d)}const NG={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function BG(e){const{onChange:t,...r}=e,n=L.useRef(),i=L.useRef(null),o=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return lo(()=>{const a=yp(()=>{const l=n.current;o(),l!==n.current&&t(n.current)}),s=li(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),L.useEffect(()=>{o(),t(n.current)},[t]),P.jsx("div",{style:NG,...r,ref:i})}function $G(e){return ze("MuiTabScrollButton",e)}const zG=Fe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),FG=e=>{const{classes:t,orientation:r,disabled:n}=e;return je({root:["root",r,n&&"disabled"]},$G,t)},jG=se(xs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${zG.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),WG=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTabScrollButton"}),{className:i,slots:o={},slotProps:a={},direction:s,orientation:l,disabled:c,...d}=n,p=Cc(),h={isRtl:p,...n},v=FG(h),g=o.StartScrollButtonIcon??PG,x=o.EndScrollButtonIcon??EG,y=hc({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),S=hc({elementType:x,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return P.jsx(jG,{component:"div",className:Se(v.root,i),ref:r,role:null,ownerState:h,tabIndex:null,...d,style:{...d.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${p?-90:90}deg)`}},children:s==="left"?P.jsx(g,{...y}):P.jsx(x,{...S})})});function HG(e){return ze("MuiTabs",e)}const h1=Fe("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Dk=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Lk=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,tv=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=r(e,i);else{i.focus();return}}},VG=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return je({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},HG,l)},UG=se("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${h1.scrollButtons}`]:t.scrollButtons},{[`& .${h1.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Oe(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${h1.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),GG=se("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]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),YG=se("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),qG=se("span",{name:"MuiTabs",slot:"Indicator"})(Oe(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),XG=se(BG)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Ok={},KG=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTabs"}),i=Fo(),o=Cc(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:d,className:p,component:h="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:x,orientation:y="horizontal",ScrollButtonComponent:S,scrollButtons:w="auto",selectionFollowsFocus:b,slots:C={},slotProps:T={},TabIndicatorProps:M={},TabScrollButtonProps:E={},textColor:I="primary",value:D,variant:k="standard",visibleScrollbar:O=!1,...N}=n,$=k==="scrollable",z=y==="vertical",F=z?"scrollTop":"scrollLeft",j=z?"top":"left",K=z?"bottom":"right",V=z?"clientHeight":"clientWidth",H=z?"height":"width",Y={...n,component:h,allowScrollButtonsMobile:v,indicatorColor:g,orientation:y,vertical:z,scrollButtons:w,textColor:I,variant:k,visibleScrollbar:O,fixed:!$,hideScrollbar:$&&!O,scrollableX:$&&!z,scrollableY:$&&z,centered:c&&!$,scrollButtonsHideMobile:!v},W=VG(Y),q=hc({elementType:C.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:Y}),te=hc({elementType:C.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:Y}),[le,ne]=L.useState(!1),[Q,ce]=L.useState(Ok),[me,de]=L.useState(!1),[fe,ge]=L.useState(!1),[pe,Ne]=L.useState(!1),[ke,it]=L.useState({overflow:"hidden",scrollbarWidth:0}),rt=new Map,dt=L.useRef(null),we=L.useRef(null),at={slots:C,slotProps:{indicator:M,scrollButton:E,...T}},Ee=()=>{const Me=dt.current;let Ae;if(Me){const pt=Me.getBoundingClientRect();Ae={clientWidth:Me.clientWidth,scrollLeft:Me.scrollLeft,scrollTop:Me.scrollTop,scrollWidth:Me.scrollWidth,top:pt.top,bottom:pt.bottom,left:pt.left,right:pt.right}}let ct;if(Me&&D!==!1){const pt=we.current.children;if(pt.length>0){const zt=pt[rt.get(D)];ct=zt?zt.getBoundingClientRect():null}}return{tabsMeta:Ae,tabMeta:ct}},Ye=vn(()=>{const{tabsMeta:Me,tabMeta:Ae}=Ee();let ct=0,pt;z?(pt="top",Ae&&Me&&(ct=Ae.top-Me.top+Me.scrollTop)):(pt=o?"right":"left",Ae&&Me&&(ct=(o?-1:1)*(Ae[pt]-Me[pt]+Me.scrollLeft)));const zt={[pt]:ct,[H]:Ae?Ae[H]:0};if(typeof Q[pt]!="number"||typeof Q[H]!="number")ce(zt);else{const Pr=Math.abs(Q[pt]-zt[pt]),tn=Math.abs(Q[H]-zt[H]);(Pr>=1||tn>=1)&&ce(zt)}}),Ce=(Me,{animation:Ae=!0}={})=>{Ae?OG(F,dt.current,Me,{duration:i.transitions.duration.standard}):dt.current[F]=Me},Xt=Me=>{let Ae=dt.current[F];z?Ae+=Me:Ae+=Me*(o?-1:1),Ce(Ae)},mt=()=>{const Me=dt.current[V];let Ae=0;const ct=Array.from(we.current.children);for(let pt=0;pt<ct.length;pt+=1){const zt=ct[pt];if(Ae+zt[V]>Me){pt===0&&(Ae=Me);break}Ae+=zt[V]}return Ae},Wt=()=>{Xt(-1*mt())},Jt=()=>{Xt(mt())},[ar,{onChange:Lt,...tr}]=Ue("scrollbar",{className:Se(W.scrollableX,W.hideScrollbar),elementType:XG,shouldForwardComponentProp:!0,externalForwardedProps:at,ownerState:Y}),Je=L.useCallback(Me=>{Lt==null||Lt(Me),it({overflow:null,scrollbarWidth:Me})},[Lt]),[xe,wt]=Ue("scrollButtons",{className:Se(W.scrollButtons,E.className),elementType:WG,externalForwardedProps:at,ownerState:Y,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:C.startScrollButtonIcon||C.StartScrollButtonIcon,EndScrollButtonIcon:C.endScrollButtonIcon||C.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:q,endScrollButtonIcon:te}}}),Rt=()=>{const Me={};Me.scrollbarSizeListener=$?P.jsx(ar,{...tr,onChange:Je}):null;const ct=$&&(w==="auto"&&(me||fe)||w===!0);return Me.scrollButtonStart=ct?P.jsx(xe,{direction:o?"right":"left",onClick:Wt,disabled:!me,...wt}):null,Me.scrollButtonEnd=ct?P.jsx(xe,{direction:o?"left":"right",onClick:Jt,disabled:!fe,...wt}):null,Me},ut=vn(Me=>{const{tabsMeta:Ae,tabMeta:ct}=Ee();if(!(!ct||!Ae)){if(ct[j]<Ae[j]){const pt=Ae[F]+(ct[j]-Ae[j]);Ce(pt,{animation:Me})}else if(ct[K]>Ae[K]){const pt=Ae[F]+(ct[K]-Ae[K]);Ce(pt,{animation:Me})}}}),Be=vn(()=>{$&&w!==!1&&Ne(!pe)});L.useEffect(()=>{const Me=yp(()=>{dt.current&&Ye()});let Ae;const ct=Pr=>{Pr.forEach(tn=>{tn.removedNodes.forEach(mn=>{Ae==null||Ae.unobserve(mn)}),tn.addedNodes.forEach(mn=>{Ae==null||Ae.observe(mn)})}),Me(),Be()},pt=li(dt.current);pt.addEventListener("resize",Me);let zt;return typeof ResizeObserver<"u"&&(Ae=new ResizeObserver(Me),Array.from(we.current.children).forEach(Pr=>{Ae.observe(Pr)})),typeof MutationObserver<"u"&&(zt=new MutationObserver(ct),zt.observe(we.current,{childList:!0})),()=>{Me.clear(),pt.removeEventListener("resize",Me),zt==null||zt.disconnect(),Ae==null||Ae.disconnect()}},[Ye,Be]),L.useEffect(()=>{const Me=Array.from(we.current.children),Ae=Me.length;if(typeof IntersectionObserver<"u"&&Ae>0&&$&&w!==!1){const ct=Me[0],pt=Me[Ae-1],zt={root:dt.current,threshold:.99},Pr=pi=>{de(!pi[0].isIntersecting)},tn=new IntersectionObserver(Pr,zt);tn.observe(ct);const mn=pi=>{ge(!pi[0].isIntersecting)},Go=new IntersectionObserver(mn,zt);return Go.observe(pt),()=>{tn.disconnect(),Go.disconnect()}}},[$,w,pe,d==null?void 0:d.length]),L.useEffect(()=>{ne(!0)},[]),L.useEffect(()=>{Ye()}),L.useEffect(()=>{ut(Ok!==Q)},[ut,Q]),L.useImperativeHandle(l,()=>({updateIndicator:Ye,updateScrollButtons:Be}),[Ye,Be]);const[st,_t]=Ue("indicator",{className:Se(W.indicator,M.className),elementType:qG,externalForwardedProps:at,ownerState:Y,additionalProps:{style:Q}}),gr=P.jsx(st,{..._t});let Nr=0;const Hi=L.Children.map(d,Me=>{if(!L.isValidElement(Me))return null;const Ae=Me.props.value===void 0?Nr:Me.props.value;rt.set(Ae,Nr);const ct=Ae===D;return Nr+=1,L.cloneElement(Me,{fullWidth:k==="fullWidth",indicator:ct&&!le&&gr,selected:ct,selectionFollowsFocus:b,onChange:x,textColor:I,value:Ae,...Nr===1&&D===!1&&!Me.props.tabIndex?{tabIndex:0}:{}})}),rr=Me=>{if(Me.altKey||Me.shiftKey||Me.ctrlKey||Me.metaKey)return;const Ae=we.current,ct=Hn(Ae).activeElement;if(ct.getAttribute("role")!=="tab")return;let zt=y==="horizontal"?"ArrowLeft":"ArrowUp",Pr=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&o&&(zt="ArrowRight",Pr="ArrowLeft"),Me.key){case zt:Me.preventDefault(),tv(Ae,ct,Lk);break;case Pr:Me.preventDefault(),tv(Ae,ct,Dk);break;case"Home":Me.preventDefault(),tv(Ae,null,Dk);break;case"End":Me.preventDefault(),tv(Ae,null,Lk);break}},Rr=Rt(),[en,qn]=Ue("root",{ref:r,className:Se(W.root,p),elementType:UG,externalForwardedProps:{...at,...N,component:h},ownerState:Y}),[Ur,Vi]=Ue("scroller",{ref:dt,className:W.scroller,elementType:GG,externalForwardedProps:at,ownerState:Y,additionalProps:{style:{overflow:ke.overflow,[z?`margin${o?"Left":"Right"}`:"marginBottom"]:O?void 0:-ke.scrollbarWidth}}}),[et,nr]=Ue("list",{ref:we,className:Se(W.list,W.flexContainer),elementType:YG,externalForwardedProps:at,ownerState:Y,getSlotProps:Me=>({...Me,onKeyDown:Ae=>{var ct;rr(Ae),(ct=Me.onKeyDown)==null||ct.call(Me,Ae)}})});return P.jsxs(en,{...qn,children:[Rr.scrollButtonStart,Rr.scrollbarSizeListener,P.jsxs(Ur,{...Vi,children:[P.jsx(et,{"aria-label":a,"aria-labelledby":s,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...nr,children:Hi}),le&&gr]}),Rr.scrollButtonEnd]})});function ZG(e){return ze("MuiTextField",e)}Fe("MuiTextField",["root"]);const QG={standard:Pw,filled:kw,outlined:Tm},JG=e=>{const{classes:t}=e;return je({root:["root"]},ZG,t)},eY=se(Rw,{name:"MuiTextField",slot:"Root"})({}),El=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:v=!1,helperText:g,id:x,InputLabelProps:y,inputProps:S,InputProps:w,inputRef:b,label:C,maxRows:T,minRows:M,multiline:E=!1,name:I,onBlur:D,onChange:k,onFocus:O,placeholder:N,required:$=!1,rows:z,select:F=!1,SelectProps:j,slots:K={},slotProps:V={},type:H,value:Y,variant:W="outlined",...q}=n,te={...n,autoFocus:o,color:l,disabled:d,error:p,fullWidth:v,multiline:E,required:$,select:F,variant:W},le=JG(te),ne=Tc(x),Q=g&&ne?`${ne}-helper-text`:void 0,ce=C&&ne?`${ne}-label`:void 0,me=QG[W],de={slots:K,slotProps:{input:w,inputLabel:y,htmlInput:S,formHelperText:h,select:j,...V}},fe={},ge=de.slotProps.inputLabel;W==="outlined"&&(ge&&typeof ge.shrink<"u"&&(fe.notched=ge.shrink),fe.label=C),F&&((!j||!j.native)&&(fe.id=void 0),fe["aria-describedby"]=void 0);const[pe,Ne]=Ue("root",{elementType:eY,shouldForwardComponentProp:!0,externalForwardedProps:{...de,...q},ownerState:te,className:Se(le.root,s),ref:r,additionalProps:{disabled:d,error:p,fullWidth:v,required:$,color:l,variant:W}}),[ke,it]=Ue("input",{elementType:me,externalForwardedProps:de,additionalProps:fe,ownerState:te}),[rt,dt]=Ue("inputLabel",{elementType:Cm,externalForwardedProps:de,ownerState:te}),[we,at]=Ue("htmlInput",{elementType:"input",externalForwardedProps:de,ownerState:te}),[Ee,Ye]=Ue("formHelperText",{elementType:SV,externalForwardedProps:de,ownerState:te}),[Ce,Xt]=Ue("select",{elementType:Dw,externalForwardedProps:de,ownerState:te}),mt=P.jsx(ke,{"aria-describedby":Q,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:v,multiline:E,name:I,rows:z,maxRows:T,minRows:M,type:H,value:Y,id:ne,inputRef:b,onBlur:D,onChange:k,onFocus:O,placeholder:N,inputProps:at,slots:{input:K.htmlInput?we:void 0},...it});return P.jsxs(pe,{...Ne,children:[C!=null&&C!==""&&P.jsx(rt,{htmlFor:ne,id:ce,...dt,children:C}),F?P.jsx(Ce,{"aria-describedby":Q,id:ne,labelId:ce,value:Y,input:mt,...Xt,children:a}):mt,g&&P.jsx(Ee,{id:Q,...Ye,children:g})]})});function lL(){return P.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:[P.jsx("title",{children:"Locust"}),P.jsx("path",{d:"M36.694,18.975L48.943,6.626L47.341,5.012L35.092,17.361L36.694,18.975Z",fill:"rgb(184,238,75)"}),P.jsx("path",{d:"M40.954,20.093L53.03,8.017L51.416,6.403L39.34,18.479L40.954,20.093Z",fill:"rgb(184,238,75)"}),P.jsx("rect",{fill:"rgb(184,238,75)",height:"7.152",width:"2.459",x:"37.215",y:"17.411"}),P.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"}),P.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)"}),P.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 Lw=Gt([P.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),P.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),tY=Gt(P.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})),rY=Gt(P.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 12zM12 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 6"})),nY=Gt(P.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 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"})),iY=Gt(P.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"})),oY=Gt(P.jsx("path",{d:"M21.9 21.9 2.1 2.1.69 3.51l1.55 1.55c-.15.28-.23.6-.23.94L2 18c0 1.11.89 2 2 2h13.17l3.31 3.31zM4 12V8h1.17l4 4zm2.83-8H20c1.11 0 2 .89 2 2v12c0 .34-.08.66-.23.94L14.83 12H20V8h-9.17z"})),Ow=Gt(P.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),uL=Gt(P.jsx("path",{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91M4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29M20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3"})),aY=Gt(P.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),Nw=Gt(P.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),cL=Gt([P.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),P.jsx("path",{d:"M10 3h4v12h-4z"},"1")]),sY=Gt(P.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-.61zM12 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.6"})),Bw=Gt(P.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"})),fL=Gt(P.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m7.46 7.12-2.78 1.15c-.51-1.36-1.58-2.44-2.95-2.94l1.15-2.78c2.1.8 3.77 2.47 4.58 4.57M12 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3M9.13 4.54l1.17 2.78c-1.38.5-2.47 1.59-2.98 2.97L4.54 9.13c.81-2.11 2.48-3.78 4.59-4.59M4.54 14.87l2.78-1.15c.51 1.38 1.59 2.46 2.97 2.96l-1.17 2.78c-2.1-.81-3.77-2.48-4.58-4.59m10.34 4.59-1.15-2.78c1.37-.51 2.45-1.59 2.95-2.97l2.78 1.17c-.81 2.1-2.48 3.77-4.58 4.58"})),lY=Gt(P.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"})),uY=Gt(P.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.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),cY=Gt(P.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 7M2 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 3zM7.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.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}));function dL({name:e="password",label:t="Password",defaultValue:r,isRequired:n}){const[i,o]=L.useState(!1),a=()=>o(!i);return P.jsxs(Rw,{variant:"outlined",children:[P.jsx(Cm,{htmlFor:`${t}-${e}-field`,children:t}),P.jsx(Tm,{defaultValue:r,endAdornment:P.jsx(LV,{position:"end",children:P.jsx(ba,{edge:"end",onClick:a,children:i?P.jsx(cY,{}):P.jsx(uY,{})})}),id:`${t}-${e}-field`,label:t,name:e,required:n,type:i?"text":"password"})]})}function $w({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,size:o="medium",sx:a,...s}){return P.jsxs(Rw,{size:o,sx:a,children:[P.jsx(Cm,{htmlFor:t,shrink:!0,children:e}),P.jsx(Dw,{...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,c)=>P.jsx("option",{value:l,children:l},`option-${l}-${c}`))})]})}function zw({name:e,label:t,type:r="text",defaultValue:n,choices:i,isSecret:o,isRequired:a}){return i?P.jsx($w,{defaultValue:n,label:t,name:e,options:i,required:a,sx:{width:"100%"}}):typeof n=="boolean"?P.jsx(YD,{control:P.jsx(vS,{defaultChecked:n,required:a}),label:t,name:e}):o?P.jsx(dL,{defaultValue:n,isRequired:a,label:t,name:e}):P.jsx(El,{defaultValue:n,label:t,name:e,required:a,sx:{width:"100%"},type:r})}const Ao={DARK:"dark",LIGHT:"light"},fY=localStorage.theme===Ao.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ao.DARK:Ao.LIGHT,kn=gI,dY=TI;function To(e,t){const r=dY();return L.useCallback(n=>{r(e(n))},[e,r])}const pY={isDarkMode:!1},pL=Pi({name:"theme",initialState:pY,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),hY=pL.actions,hL=pL.reducer;function yS(){const e=kn(({theme:{isDarkMode:n}})=>n),t=To(hY.setIsDarkMode);L.useEffect(()=>{t(fY===Ao.DARK)},[]);const r=()=>{localStorage.theme=e?Ao.LIGHT:Ao.DARK,t(!e)};return P.jsx(ba,{color:"inherit",onClick:r,children:e?P.jsx(nY,{}):P.jsx(rY,{})})}const vY=e=>vm({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"},p:{margin:0},ul:{paddingLeft:"16px"}}}}});function vL(){const e=kn(({theme:{isDarkMode:r}})=>r);return L.useMemo(()=>vY(e?Ao.DARK:Ao.LIGHT),[e])}function gY({authProviders:e,customForm:t,error:r,info:n,usernamePasswordCallback:i}){const o=vL();return P.jsxs(mD,{theme:o,children:[P.jsx(HD,{}),P.jsx(tt,{sx:{position:"absolute",top:4,right:4},children:P.jsx(yS,{})}),P.jsxs(tt,{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:[P.jsx(tt,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:P.jsx(lL,{})}),i&&!t&&P.jsx("form",{action:i,method:"POST",children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[P.jsx(El,{label:"Username",name:"username"}),P.jsx(dL,{}),n&&P.jsx(ua,{severity:"info",children:n}),r&&P.jsx(ua,{severity:"error",children:r}),P.jsx(ci,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),t&&P.jsx("form",{action:t.callbackUrl,method:"POST",children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[t.inputs.map((a,s)=>P.jsx(zw,{...a},`custom-form-input-${s}`)),n&&P.jsx(ua,{severity:"info",children:n}),r&&P.jsx(ua,{severity:"error",children:r}),P.jsx(ci,{size:"large",type:"submit",variant:"contained",children:t.submitButtonText||"Login"})]})}),n&&!t&&!i&&P.jsx(ua,{severity:"info",children:n}),r&&!t&&!i&&P.jsx(ua,{severity:"error",children:r}),e&&P.jsx(tt,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:a,callbackUrl:s,iconUrl:l},c)=>P.jsxs(ba,{href:s,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[P.jsx("img",{height:"32",src:l}),P.jsx(Xe,{height:"32",variant:"button",children:a})]},`auth-provider-${c}`))})]})]})}function km({open:e,onClose:t,children:r}){return P.jsx(Mw,{onClose:t,open:e,children:P.jsxs(bp,{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:[P.jsx(ba,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:P.jsx(iY,{})}),r]})})}function mY(){const[e,t]=L.useState(!1),r=kn(({swarm:n})=>n.version);return P.jsxs(P.Fragment,{children:[P.jsx(tt,{sx:{display:"flex",justifyContent:"flex-end"},children:P.jsx(ci,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),P.jsxs(km,{onClose:()=>t(!1),open:e,children:[P.jsxs("div",{children:[P.jsx(Xe,{component:"h2",mb:1,variant:"h4",children:"About"}),P.jsxs(Xe,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",P.jsx(fn,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),P.jsxs(Xe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",P.jsx(fn,{href:"https://twitter.com/jonatanheyman",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",P.jsx(fn,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),P.jsxs(Xe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",P.jsx(fn,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),P.jsxs("div",{children:[P.jsx(Xe,{component:"h2",mb:1,variant:"h4",children:"Need help getting started?"}),P.jsx(fn,{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"]}),P.jsxs("div",{children:[P.jsx(Xe,{component:"h2",mb:1,variant:"h4",children:"Version"}),P.jsx(fn,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),P.jsxs("div",{children:[P.jsx(Xe,{component:"h2",mb:1,variant:"h4",children:"Links"}),P.jsx(Xe,{component:"p",variant:"subtitle1",children:P.jsx(fn,{href:"https://github.com/locustio/locust",children:"GitHub"})}),P.jsx(Xe,{component:"p",variant:"subtitle1",children:P.jsx(fn,{href:"https://docs.locust.io/en/stable",children:"Documentation"})}),P.jsx(Xe,{component:"p",variant:"subtitle1",children:P.jsx(fn,{href:"https://medium.com/locust-cloud",children:"Blog"})})]})]})]})}function yY(){return P.jsx(bp,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:P.jsx(mY,{})})}const gL=e=>(Array.isArray(e)?e.length:Object.keys(e).length)===0;function xY(e,t){return{...e,...t}}const SY=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},Rm=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),Jr={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning"},Io=window.templateArgs?yl(window.templateArgs):{};Io.isReport&&{...Io,charts:(Io.history||[]).reduce((e,{currentResponseTimePercentiles:t,...r})=>Rm(e,{...t,...r}),{})};function bY({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:o,workerCount:a}){return P.jsxs(tt,{sx:{display:"flex",columnGap:2,rowGap:1,flexDirection:{xs:"column",md:"row"}},children:[P.jsxs(tt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Host"}),P.jsx(rL,{title:r,children:P.jsx(Xe,{noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:{xs:"180px",lg:"400px"}},children:r})})]}),P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Status"}),P.jsx(Xe,{variant:"button",children:t})]}),(t===Jr.RUNNING||t===Jr.SPAWNING)&&P.jsxs(P.Fragment,{children:[P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Users"}),P.jsx(Xe,{noWrap:!0,variant:"button",children:o})]})]}),e&&P.jsxs(P.Fragment,{children:[P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Workers"}),P.jsx(Xe,{noWrap:!0,variant:"button",children:a})]})]}),P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"RPS"}),P.jsx(Xe,{noWrap:!0,variant:"button",children:n})]}),P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Failures"}),P.jsx(Xe,{noWrap:!0,variant:"button",children:`${i}%`})]})]})}const wY=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:o,userCount:a}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:o,userCount:a,workerCount:n}),Nk=di(wY)(bY),_Y="input, select, textarea",CY=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 mL({children:e,onSubmit:t,onChange:r}){const n=L.useCallback(async i=>{i.preventDefault();const a=[...i.target.querySelectorAll(_Y)].reduce((s,l)=>l.name?{...s,[l.name]:CY(l)}:s,{});t(a)},[t]);return P.jsx("form",{onChange:r,onSubmit:n,children:e})}function Bk({defaultValue:e,...t}){const[r,n]=L.useState(e||""),i=o=>{t.onChange&&t.onChange(o),!((o.target.value.match(/\./g)||[]).length>1)&&n(o.target.value.replace(/[^0-9.]/g,""))};return L.useEffect(()=>{e&&n(e)},[e]),P.jsx(El,{...t,onChange:i,value:r})}function TY({extraOptions:e}){return P.jsxs(vw,{children:[P.jsx(mw,{expandIcon:P.jsx(Ow,{}),children:P.jsx(Xe,{children:"Custom parameters"})}),P.jsx(gw,{children:P.jsx(tt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>L.createElement(zw,{...r,key:`valid-parameter-${n}`,label:r.helpText?`${qx(t)} (${r.helpText})`:qx(t),name:t}))})})]})}var yL=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(yL||{});function MY(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function kY(e){return new RegExp("(^|:)//").test(e)}var RY=e=>e.replace(/\/$/,""),PY=e=>e.replace(/^\//,"");function EY(e,t){if(!e)return t;if(!t)return e;if(kY(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=RY(e),t=PY(t),`${e}${r}${t}`}var $k=e=>[].concat(...e);function AY(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function IY(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var zk=No;function xL(e,t){if(e===t||!(zk(e)&&zk(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 o=Array.isArray(t)?[]:{};for(const a of r)o[a]=xL(e[a],t[a]),i&&(i=e[a]===o[a]);return i?e:o}var Fk=(...e)=>fetch(...e),DY=e=>e.status>=200&&e.status<=299,LY=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function jk(e){if(!No(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}function OY({baseUrl:e,prepareHeaders:t=p=>p,fetchFn:r=Fk,paramsSerializer:n,isJsonContentType:i=LY,jsonContentType:o="application/json",jsonReplacer:a,timeout:s,responseHandler:l,validateStatus:c,...d}={}){return typeof fetch>"u"&&r===Fk&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(h,v)=>{const{signal:g,getState:x,extra:y,endpoint:S,forced:w,type:b}=v;let C,{url:T,headers:M=new Headers(d.headers),params:E=void 0,responseHandler:I=l??"json",validateStatus:D=c??DY,timeout:k=s,...O}=typeof h=="string"?{url:h}:h,N={...d,signal:g,...O};M=new Headers(jk(M)),N.headers=await t(M,{getState:x,extra:y,endpoint:S,forced:w,type:b})||M;const $=q=>typeof q=="object"&&(No(q)||Array.isArray(q)||typeof q.toJSON=="function");if(!N.headers.has("content-type")&&$(N.body)&&N.headers.set("content-type",o),$(N.body)&&i(N.headers)&&(N.body=JSON.stringify(N.body,a)),E){const q=~T.indexOf("?")?"&":"?",te=n?n(E):new URLSearchParams(jk(E));T+=q+te}T=EY(e,T);const z=new Request(T,N);C={request:new Request(T,N)};let j,K=!1,V=k&&setTimeout(()=>{K=!0,v.abort()},k);try{j=await r(z)}catch(q){return{error:{status:K?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(q)},meta:C}}finally{V&&clearTimeout(V)}const H=j.clone();C.response=H;let Y,W="";try{let q;if(await Promise.all([p(j,I).then(te=>Y=te,te=>q=te),H.text().then(te=>W=te,()=>{})]),q)throw q}catch(q){return{error:{status:"PARSING_ERROR",originalStatus:j.status,data:W,error:String(q)},meta:C}}return D(j,Y)?{data:Y,meta:C}:{error:{status:j.status,data:Y},meta:C}};async function p(h,v){if(typeof v=="function")return v(h);if(v==="content-type"&&(v=i(h.headers)?"json":"text"),v==="json"){const g=await h.text();return g.length?JSON.parse(g):null}return h.text()}}var Wk=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Fw=Cn("__rtkq/focused"),SL=Cn("__rtkq/unfocused"),jw=Cn("__rtkq/online"),bL=Cn("__rtkq/offline");function wL(e){return e.type==="query"}function NY(e){return e.type==="mutation"}function Ww(e,t,r,n,i,o){return BY(e)?e(t,r,n,i).map(xS).map(o):Array.isArray(e)?e.map(xS).map(o):[]}function BY(e){return typeof e=="function"}function xS(e){return typeof e=="string"?{type:e}:e}function Hk(e){return e!=null}function Zu(e){let t=0;for(const r in e)t++;return t}function $Y(e,t){return e.catch(t)}var Hd=Symbol("forceQueryFn"),SS=e=>typeof e[Hd]=="function";function zY({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:i}){const o=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=n.internalActions;return{buildInitiateQuery:g,buildInitiateMutation:x,getRunningQueryThunk:d,getRunningMutationThunk:p,getRunningQueriesThunk:h,getRunningMutationsThunk:v};function d(y,S){return w=>{var T;const b=i.endpointDefinitions[y],C=e({queryArgs:S,endpointDefinition:b,endpointName:y});return(T=o.get(w))==null?void 0:T[C]}}function p(y,S){return w=>{var b;return(b=a.get(w))==null?void 0:b[S]}}function h(){return y=>Object.values(o.get(y)||{}).filter(Hk)}function v(){return y=>Object.values(a.get(y)||{}).filter(Hk)}function g(y,S){const w=(b,{subscribe:C=!0,forceRefetch:T,subscriptionOptions:M,[Hd]:E,...I}={})=>(D,k)=>{var q;const O=e({queryArgs:b,endpointDefinition:S,endpointName:y}),N=t({...I,type:"query",subscribe:C,forceRefetch:T,subscriptionOptions:M,endpointName:y,originalArgs:b,queryCacheKey:O,[Hd]:E}),$=n.endpoints[y].select(b),z=D(N),F=$(k()),{requestId:j,abort:K}=z,V=F.requestId!==j,H=(q=o.get(D))==null?void 0:q[O],Y=()=>$(k()),W=Object.assign(E?z.then(Y):V&&!H?Promise.resolve(F):Promise.all([H,z]).then(Y),{arg:b,requestId:j,subscriptionOptions:M,queryCacheKey:O,abort:K,async unwrap(){const te=await W;if(te.isError)throw te.error;return te.data},refetch:()=>D(w(b,{subscribe:!1,forceRefetch:!0})),unsubscribe(){C&&D(s({queryCacheKey:O,requestId:j}))},updateSubscriptionOptions(te){W.subscriptionOptions=te,D(c({endpointName:y,requestId:j,queryCacheKey:O,options:te}))}});if(!H&&!V&&!E){const te=o.get(D)||{};te[O]=W,o.set(D,te),W.then(()=>{delete te[O],Zu(te)||o.delete(D)})}return W};return w}function x(y){return(S,{track:w=!0,fixedCacheKey:b}={})=>(C,T)=>{const M=r({type:"mutation",endpointName:y,originalArgs:S,track:w,fixedCacheKey:b}),E=C(M),{requestId:I,abort:D,unwrap:k}=E,O=$Y(E.unwrap().then(F=>({data:F})),F=>({error:F})),N=()=>{C(l({requestId:I,fixedCacheKey:b}))},$=Object.assign(O,{arg:E.arg,requestId:I,abort:D,unwrap:k,reset:N}),z=a.get(C)||{};return a.set(C,z),z[I]=$,$.then(()=>{delete z[I],Zu(z)||a.delete(C)}),b&&(z[b]=$,$.then(()=>{z[b]===$&&(delete z[b],Zu(z)||a.delete(C))})),$}}}function Vk(e){return e}function FY({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:o}){const a=(w,b,C,T)=>(M,E)=>{const I=r[w],D=n({queryArgs:b,endpointDefinition:I,endpointName:w});if(M(i.internalActions.queryResultPatched({queryCacheKey:D,patches:C})),!T)return;const k=i.endpoints[w].select(b)(E()),O=Ww(I.providesTags,k.data,void 0,b,{},o);M(i.internalActions.updateProvidedBy({queryCacheKey:D,providedTags:O}))},s=(w,b,C,T=!0)=>(M,E)=>{const D=i.endpoints[w].select(b)(E());let k={patches:[],inversePatches:[],undo:()=>M(i.util.patchQueryData(w,b,k.inversePatches,T))};if(D.status==="uninitialized")return k;let O;if("data"in D)if(ao(D.data)){const[N,$,z]=oI(D.data,C);k.patches.push(...$),k.inversePatches.push(...z),O=N}else O=C(D.data),k.patches.push({op:"replace",path:[],value:O}),k.inversePatches.push({op:"replace",path:[],value:D.data});return k.patches.length===0||M(i.util.patchQueryData(w,b,k.patches,T)),k},l=(w,b,C)=>T=>T(i.endpoints[w].initiate(b,{subscribe:!1,forceRefetch:!0,[Hd]:()=>({data:C})})),c=async(w,{signal:b,abort:C,rejectWithValue:T,fulfillWithValue:M,dispatch:E,getState:I,extra:D})=>{const k=r[w.endpointName];try{let O=Vk,N;const $={signal:b,abort:C,dispatch:E,getState:I,extra:D,endpoint:w.endpointName,type:w.type,forced:w.type==="query"?d(w,I()):void 0},z=w.type==="query"?w[Hd]:void 0;if(z?N=z():k.query?(N=await t(k.query(w.originalArgs),$,k.extraOptions),k.transformResponse&&(O=k.transformResponse)):N=await k.queryFn(w.originalArgs,$,k.extraOptions,F=>t(F,$,k.extraOptions)),typeof process<"u",N.error)throw new Wk(N.error,N.meta);return M(await O(N.data,N.meta,w.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:N.meta,[Wu]:!0})}catch(O){let N=O;if(N instanceof Wk){let $=Vk;k.query&&k.transformErrorResponse&&($=k.transformErrorResponse);try{return T(await $(N.value,N.meta,w.originalArgs),{baseQueryMeta:N.meta,[Wu]:!0})}catch(z){N=z}}throw console.error(N),N}};function d(w,b){var I,D,k;const C=(D=(I=b[e])==null?void 0:I.queries)==null?void 0:D[w.queryCacheKey],T=(k=b[e])==null?void 0:k.config.refetchOnMountOrArgChange,M=C==null?void 0:C.fulfilledTimeStamp,E=w.forceRefetch??(w.subscribe&&T);return E?E===!0||(Number(new Date)-Number(M))/1e3>=E:!1}const p=V2(`${e}/executeQuery`,c,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Wu]:!0}},condition(w,{getState:b}){var k,O,N;const C=b(),T=(O=(k=C[e])==null?void 0:k.queries)==null?void 0:O[w.queryCacheKey],M=T==null?void 0:T.fulfilledTimeStamp,E=w.originalArgs,I=T==null?void 0:T.originalArgs,D=r[w.endpointName];return SS(w)?!0:(T==null?void 0:T.status)==="pending"?!1:d(w,C)||wL(D)&&((N=D==null?void 0:D.forceRefetch)!=null&&N.call(D,{currentArg:E,previousArg:I,endpointState:T,state:C}))?!0:!M},dispatchConditionRejection:!0}),h=V2(`${e}/executeMutation`,c,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Wu]:!0}}}),v=w=>"force"in w,g=w=>"ifOlderThan"in w,x=(w,b,C)=>(T,M)=>{const E=v(C)&&C.force,I=g(C)&&C.ifOlderThan,D=(O=!0)=>{const N={forceRefetch:O,isPrefetch:!0};return i.endpoints[w].initiate(b,N)},k=i.endpoints[w].select(b)(M());if(E)T(D());else if(I){const O=k==null?void 0:k.fulfilledTimeStamp;if(!O){T(D());return}(Number(new Date)-Number(new Date(O)))/1e3>=I&&T(D())}else T(D(!1))};function y(w){return b=>{var C,T;return((T=(C=b==null?void 0:b.meta)==null?void 0:C.arg)==null?void 0:T.endpointName)===w}}function S(w,b){return{matchPending:ud(Fb(w),y(b)),matchFulfilled:ud(vs(w),y(b)),matchRejected:ud(sc(w),y(b))}}return{queryThunk:p,mutationThunk:h,prefetch:x,updateQueryData:s,upsertQueryData:l,patchQueryData:a,buildMatchThunkActions:S}}function _L(e,t,r,n){return Ww(r[e.meta.arg.endpointName][t],vs(e)?e.payload:void 0,rm(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function rv(e,t,r){const n=e[t];n&&r(n)}function Vd(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Uk(e,t,r){const n=e[Vd(t)];n&&r(n)}var _f={};function jY({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:i,extractRehydrationInfo:o,hasRehydrationInfo:a},assertTagType:s,config:l}){const c=Cn(`${e}/resetApiState`),d=Pi({name:`${e}/queries`,initialState:_f,reducers:{removeQueryResult:{reducer(b,{payload:{queryCacheKey:C}}){delete b[C]},prepare:gf()},queryResultPatched:{reducer(b,{payload:{queryCacheKey:C,patches:T}}){rv(b,C,M=>{M.data=$2(M.data,T.concat())})},prepare:gf()}},extraReducers(b){b.addCase(t.pending,(C,{meta:T,meta:{arg:M}})=>{var I;const E=SS(M);C[I=M.queryCacheKey]??(C[I]={status:"uninitialized",endpointName:M.endpointName}),rv(C,M.queryCacheKey,D=>{D.status="pending",D.requestId=E&&D.requestId?D.requestId:T.requestId,M.originalArgs!==void 0&&(D.originalArgs=M.originalArgs),D.startedTimeStamp=T.startedTimeStamp})}).addCase(t.fulfilled,(C,{meta:T,payload:M})=>{rv(C,T.arg.queryCacheKey,E=>{if(E.requestId!==T.requestId&&!SS(T.arg))return;const{merge:I}=n[T.arg.endpointName];if(E.status="fulfilled",I)if(E.data!==void 0){const{fulfilledTimeStamp:D,arg:k,baseQueryMeta:O,requestId:N}=T;let $=up(E.data,z=>I(z,M,{arg:k.originalArgs,baseQueryMeta:O,fulfilledTimeStamp:D,requestId:N}));E.data=$}else E.data=M;else E.data=n[T.arg.endpointName].structuralSharing??!0?xL(oo(E.data)?NB(E.data):E.data,M):M;delete E.error,E.fulfilledTimeStamp=T.fulfilledTimeStamp})}).addCase(t.rejected,(C,{meta:{condition:T,arg:M,requestId:E},error:I,payload:D})=>{rv(C,M.queryCacheKey,k=>{if(!T){if(k.requestId!==E)return;k.status="rejected",k.error=D??I}})}).addMatcher(a,(C,T)=>{const{queries:M}=o(T);for(const[E,I]of Object.entries(M))((I==null?void 0:I.status)==="fulfilled"||(I==null?void 0:I.status)==="rejected")&&(C[E]=I)})}}),p=Pi({name:`${e}/mutations`,initialState:_f,reducers:{removeMutationResult:{reducer(b,{payload:C}){const T=Vd(C);T in b&&delete b[T]},prepare:gf()}},extraReducers(b){b.addCase(r.pending,(C,{meta:T,meta:{requestId:M,arg:E,startedTimeStamp:I}})=>{E.track&&(C[Vd(T)]={requestId:M,status:"pending",endpointName:E.endpointName,startedTimeStamp:I})}).addCase(r.fulfilled,(C,{payload:T,meta:M})=>{M.arg.track&&Uk(C,M,E=>{E.requestId===M.requestId&&(E.status="fulfilled",E.data=T,E.fulfilledTimeStamp=M.fulfilledTimeStamp)})}).addCase(r.rejected,(C,{payload:T,error:M,meta:E})=>{E.arg.track&&Uk(C,E,I=>{I.requestId===E.requestId&&(I.status="rejected",I.error=T??M)})}).addMatcher(a,(C,T)=>{const{mutations:M}=o(T);for(const[E,I]of Object.entries(M))((I==null?void 0:I.status)==="fulfilled"||(I==null?void 0:I.status)==="rejected")&&E!==(I==null?void 0:I.requestId)&&(C[E]=I)})}}),h=Pi({name:`${e}/invalidation`,initialState:_f,reducers:{updateProvidedBy:{reducer(b,C){var E,I;const{queryCacheKey:T,providedTags:M}=C.payload;for(const D of Object.values(b))for(const k of Object.values(D)){const O=k.indexOf(T);O!==-1&&k.splice(O,1)}for(const{type:D,id:k}of M){const O=(E=b[D]??(b[D]={}))[I=k||"__internal_without_id"]??(E[I]=[]);O.includes(T)||O.push(T)}},prepare:gf()}},extraReducers(b){b.addCase(d.actions.removeQueryResult,(C,{payload:{queryCacheKey:T}})=>{for(const M of Object.values(C))for(const E of Object.values(M)){const I=E.indexOf(T);I!==-1&&E.splice(I,1)}}).addMatcher(a,(C,T)=>{var E,I;const{provided:M}=o(T);for(const[D,k]of Object.entries(M))for(const[O,N]of Object.entries(k)){const $=(E=C[D]??(C[D]={}))[I=O||"__internal_without_id"]??(E[I]=[]);for(const z of N)$.includes(z)||$.push(z)}}).addMatcher(ha(vs(t),rm(t)),(C,T)=>{const M=_L(T,"providesTags",n,s),{queryCacheKey:E}=T.meta.arg;h.caseReducers.updateProvidedBy(C,h.actions.updateProvidedBy({queryCacheKey:E,providedTags:M}))})}}),v=Pi({name:`${e}/subscriptions`,initialState:_f,reducers:{updateSubscriptionOptions(b,C){},unsubscribeQueryResult(b,C){},internal_getRTKQSubscriptions(){}}}),g=Pi({name:`${e}/internalSubscriptions`,initialState:_f,reducers:{subscriptionsUpdated:{reducer(b,C){return $2(b,C.payload)},prepare:gf()}}}),x=Pi({name:`${e}/config`,initialState:{online:AY(),focused:IY(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(b,{payload:C}){b.middlewareRegistered=b.middlewareRegistered==="conflict"||i!==C?"conflict":!0}},extraReducers:b=>{b.addCase(jw,C=>{C.online=!0}).addCase(bL,C=>{C.online=!1}).addCase(Fw,C=>{C.focused=!0}).addCase(SL,C=>{C.focused=!1}).addMatcher(a,C=>({...C}))}}),y=Jg({queries:d.reducer,mutations:p.reducer,provided:h.reducer,subscriptions:g.reducer,config:x.reducer}),S=(b,C)=>y(c.match(C)?void 0:b,C),w={...x.actions,...d.actions,...v.actions,...g.actions,...p.actions,...h.actions,resetApiState:c};return{reducer:S,actions:w}}var Cl=Symbol.for("RTKQ/skipToken"),CL={status:"uninitialized"},Gk=up(CL,()=>{}),Yk=up(CL,()=>{});function WY({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=p=>Gk,i=p=>Yk;return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:c,selectCachedArgsForQuery:d};function o(p){return{...p,...MY(p.status)}}function a(p){return p[t]}function s(p,h){return v=>{const g=e({queryArgs:v,endpointDefinition:h,endpointName:p});return r(v===Cl?n:S=>{var w,b;return((b=(w=a(S))==null?void 0:w.queries)==null?void 0:b[g])??Gk},o)}}function l(){return p=>{let h;return typeof p=="object"?h=Vd(p)??Cl:h=p,r(h===Cl?i:x=>{var y,S;return((S=(y=a(x))==null?void 0:y.mutations)==null?void 0:S[h])??Yk},o)}}function c(p,h){const v=p[t],g=new Set;for(const x of h.map(xS)){const y=v.provided[x.type];if(!y)continue;let S=(x.id!==void 0?y[x.id]:$k(Object.values(y)))??[];for(const w of S)g.add(w)}return $k(Array.from(g.values()).map(x=>{const y=v.queries[x];return y?[{queryCacheKey:x,endpointName:y.endpointName,originalArgs:y.originalArgs}]:[]}))}function d(p,h){return Object.values(p[t].queries).filter(v=>(v==null?void 0:v.endpointName)===h&&v.status!=="uninitialized").map(v=>v.originalArgs)}}var wu=WeakMap?new WeakMap:void 0,qk=({endpointName:e,queryArgs:t})=>{let r="";const n=wu==null?void 0:wu.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(o,a)=>(a=typeof a=="bigint"?{$bigint:a.toString()}:a,a=No(a)?Object.keys(a).sort().reduce((s,l)=>(s[l]=a[l],s),{}):a,a));No(t)&&(wu==null||wu.set(t,i)),r=i}return`${e}(${r})`};function TL(...e){return function(r){const n=Ld(c=>{var d;return(d=r.extractRehydrationInfo)==null?void 0:d.call(r,c,{reducerPath:r.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...r,extractRehydrationInfo:n,serializeQueryArgs(c){let d=qk;if("serializeQueryArgs"in c.endpointDefinition){const p=c.endpointDefinition.serializeQueryArgs;d=h=>{const v=p(h);return typeof v=="string"?v:qk({...h,queryArgs:v})}}else r.serializeQueryArgs&&(d=r.serializeQueryArgs);return d(c)},tagTypes:[...r.tagTypes||[]]},o={endpointDefinitions:{},batch(c){c()},apiUid:zb(),extractRehydrationInfo:n,hasRehydrationInfo:Ld(c=>n(c)!=null)},a={injectEndpoints:l,enhanceEndpoints({addTagTypes:c,endpoints:d}){if(c)for(const p of c)i.tagTypes.includes(p)||i.tagTypes.push(p);if(d)for(const[p,h]of Object.entries(d))typeof h=="function"?h(o.endpointDefinitions[p]):Object.assign(o.endpointDefinitions[p]||{},h);return a}},s=e.map(c=>c.init(a,i,o));function l(c){const d=c.endpoints({query:p=>({...p,type:"query"}),mutation:p=>({...p,type:"mutation"})});for(const[p,h]of Object.entries(d)){if(c.overrideExisting!==!0&&p in o.endpointDefinitions){if(c.overrideExisting==="throw")throw new Error(gn(39));continue}o.endpointDefinitions[p]=h;for(const v of s)v.injectEndpoint(p,h)}return a}return a.injectEndpoints({endpoints:r.endpoints})}}function HY(e){for(let t in e)return!1;return!0}var VY=2147483647/1e3-1,UY=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i})=>{const{removeQueryResult:o,unsubscribeQueryResult:a}=t.internalActions,s=ha(a.match,r.fulfilled,r.rejected);function l(h){const v=i.currentSubscriptions[h];return!!v&&!HY(v)}const c={},d=(h,v,g)=>{var x;if(s(h)){const y=v.getState()[e],{queryCacheKey:S}=a.match(h)?h.payload:h.meta.arg;p(S,(x=y.queries[S])==null?void 0:x.endpointName,v,y.config)}if(t.util.resetApiState.match(h))for(const[y,S]of Object.entries(c))S&&clearTimeout(S),delete c[y];if(n.hasRehydrationInfo(h)){const y=v.getState()[e],{queries:S}=n.extractRehydrationInfo(h);for(const[w,b]of Object.entries(S))p(w,b==null?void 0:b.endpointName,v,y.config)}};function p(h,v,g,x){const y=n.endpointDefinitions[v],S=(y==null?void 0:y.keepUnusedDataFor)??x.keepUnusedDataFor;if(S===1/0)return;const w=Math.max(0,Math.min(S,VY));if(!l(h)){const b=c[h];b&&clearTimeout(b),c[h]=setTimeout(()=>{l(h)||g.dispatch(o({queryCacheKey:h})),delete c[h]},w*1e3)}}return d},GY=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:i,api:o,assertTagType:a,refetchQuery:s,internalState:l})=>{const{removeQueryResult:c}=o.internalActions,d=ha(vs(n),rm(n)),p=ha(vs(n,i),sc(n,i));let h=[];const v=(y,S)=>{d(y)?x(_L(y,"invalidatesTags",r,a),S):p(y)?x([],S):o.util.invalidateTags.match(y)&&x(Ww(y.payload,void 0,void 0,void 0,void 0,a),S)};function g(y){var S,w;for(const b in y.queries)if(((S=y.queries[b])==null?void 0:S.status)==="pending")return!0;for(const b in y.mutations)if(((w=y.mutations[b])==null?void 0:w.status)==="pending")return!0;return!1}function x(y,S){const w=S.getState(),b=w[e];if(h.push(...y),b.config.invalidationBehavior==="delayed"&&g(b))return;const C=h;if(h=[],C.length===0)return;const T=o.util.selectInvalidatedBy(w,C);t.batch(()=>{const M=Array.from(T.values());for(const{queryCacheKey:E}of M){const I=b.queries[E],D=l.currentSubscriptions[E]??{};I&&(Zu(D)===0?S.dispatch(c({queryCacheKey:E})):I.status!=="uninitialized"&&S.dispatch(s(I,E)))}})}return v},YY=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const o={},a=(h,v)=>{(r.internalActions.updateSubscriptionOptions.match(h)||r.internalActions.unsubscribeQueryResult.match(h))&&l(h.payload,v),(t.pending.match(h)||t.rejected.match(h)&&h.meta.condition)&&l(h.meta.arg,v),(t.fulfilled.match(h)||t.rejected.match(h)&&!h.meta.condition)&&s(h.meta.arg,v),r.util.resetApiState.match(h)&&d()};function s({queryCacheKey:h},v){const g=v.getState()[e],x=g.queries[h],y=i.currentSubscriptions[h];if(!x||x.status==="uninitialized")return;const{lowestPollingInterval:S,skipPollingIfUnfocused:w}=p(y);if(!Number.isFinite(S))return;const b=o[h];b!=null&&b.timeout&&(clearTimeout(b.timeout),b.timeout=void 0);const C=Date.now()+S;o[h]={nextPollTimestamp:C,pollingInterval:S,timeout:setTimeout(()=>{(g.config.focused||!w)&&v.dispatch(n(x,h)),s({queryCacheKey:h},v)},S)}}function l({queryCacheKey:h},v){const x=v.getState()[e].queries[h],y=i.currentSubscriptions[h];if(!x||x.status==="uninitialized")return;const{lowestPollingInterval:S}=p(y);if(!Number.isFinite(S)){c(h);return}const w=o[h],b=Date.now()+S;(!w||b<w.nextPollTimestamp)&&s({queryCacheKey:h},v)}function c(h){const v=o[h];v!=null&&v.timeout&&clearTimeout(v.timeout),delete o[h]}function d(){for(const h of Object.keys(o))c(h)}function p(h={}){let v=!1,g=Number.POSITIVE_INFINITY;for(let x in h)h[x].pollingInterval&&(g=Math.min(h[x].pollingInterval,g),v=h[x].skipPollingIfUnfocused||v);return{lowestPollingInterval:g,skipPollingIfUnfocused:v}}return a},qY=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:o}=r.internalActions,a=(l,c)=>{Fw.match(l)&&s(c,"refetchOnFocus"),jw.match(l)&&s(c,"refetchOnReconnect")};function s(l,c){const d=l.getState()[e],p=d.queries,h=i.currentSubscriptions;t.batch(()=>{for(const v of Object.keys(h)){const g=p[v],x=h[v];if(!x||!g)continue;(Object.values(x).some(S=>S[c]===!0)||Object.values(x).every(S=>S[c]===void 0)&&d.config[c])&&(Zu(x)===0?l.dispatch(o({queryCacheKey:v})):g.status!=="uninitialized"&&l.dispatch(n(g,v)))}})}return a},Xk=new Error("Promise never resolved before cacheEntryRemoved."),XY=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:o})=>{const a=Ux(n),s=Ux(i),l=vs(n,i),c={},d=(v,g,x)=>{const y=p(v);if(n.pending.match(v)){const S=x[t].queries[y],w=g.getState()[t].queries[y];!S&&w&&h(v.meta.arg.endpointName,v.meta.arg.originalArgs,y,g,v.meta.requestId)}else if(i.pending.match(v))g.getState()[t].mutations[y]&&h(v.meta.arg.endpointName,v.meta.arg.originalArgs,y,g,v.meta.requestId);else if(l(v)){const S=c[y];S!=null&&S.valueResolved&&(S.valueResolved({data:v.payload,meta:v.meta.baseQueryMeta}),delete S.valueResolved)}else if(e.internalActions.removeQueryResult.match(v)||e.internalActions.removeMutationResult.match(v)){const S=c[y];S&&(delete c[y],S.cacheEntryRemoved())}else if(e.util.resetApiState.match(v))for(const[S,w]of Object.entries(c))delete c[S],w.cacheEntryRemoved()};function p(v){return a(v)?v.meta.arg.queryCacheKey:s(v)?v.meta.arg.fixedCacheKey??v.meta.requestId:e.internalActions.removeQueryResult.match(v)?v.payload.queryCacheKey:e.internalActions.removeMutationResult.match(v)?Vd(v.payload):""}function h(v,g,x,y,S){const w=r.endpointDefinitions[v],b=w==null?void 0:w.onCacheEntryAdded;if(!b)return;let C={};const T=new Promise(O=>{C.cacheEntryRemoved=O}),M=Promise.race([new Promise(O=>{C.valueResolved=O}),T.then(()=>{throw Xk})]);M.catch(()=>{}),c[x]=C;const E=e.endpoints[v].select(w.type==="query"?g:x),I=y.dispatch((O,N,$)=>$),D={...y,getCacheEntry:()=>E(y.getState()),requestId:S,extra:I,updateCachedData:w.type==="query"?O=>y.dispatch(e.util.updateQueryData(v,g,O)):void 0,cacheDataLoaded:M,cacheEntryRemoved:T},k=b(g,D);Promise.resolve(k).catch(O=>{if(O!==Xk)throw O})}return d},KY=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=Fb(r,n),o=sc(r,n),a=vs(r,n),s={};return(c,d)=>{var p,h;if(i(c)){const{requestId:v,arg:{endpointName:g,originalArgs:x}}=c.meta,y=t.endpointDefinitions[g],S=y==null?void 0:y.onQueryStarted;if(S){const w={},b=new Promise((E,I)=>{w.resolve=E,w.reject=I});b.catch(()=>{}),s[v]=w;const C=e.endpoints[g].select(y.type==="query"?x:v),T=d.dispatch((E,I,D)=>D),M={...d,getCacheEntry:()=>C(d.getState()),requestId:v,extra:T,updateCachedData:y.type==="query"?E=>d.dispatch(e.util.updateQueryData(g,x,E)):void 0,queryFulfilled:b};S(x,M)}}else if(a(c)){const{requestId:v,baseQueryMeta:g}=c.meta;(p=s[v])==null||p.resolve({data:c.payload,meta:g}),delete s[v]}else if(o(c)){const{requestId:v,rejectedWithValue:g,baseQueryMeta:x}=c.meta;(h=s[v])==null||h.reject({error:c.payload??c.error,isUnhandledError:!g,meta:x}),delete s[v]}}},ZY=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t))},QY=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let i=null,o=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:s}=e.internalActions,l=(v,g)=>{var y,S,w;if(a.match(g)){const{queryCacheKey:b,requestId:C,options:T}=g.payload;return(y=v==null?void 0:v[b])!=null&&y[C]&&(v[b][C]=T),!0}if(s.match(g)){const{queryCacheKey:b,requestId:C}=g.payload;return v[b]&&delete v[b][C],!0}if(e.internalActions.removeQueryResult.match(g))return delete v[g.payload.queryCacheKey],!0;if(t.pending.match(g)){const{meta:{arg:b,requestId:C}}=g,T=v[S=b.queryCacheKey]??(v[S]={});return T[`${C}_running`]={},b.subscribe&&(T[C]=b.subscriptionOptions??T[C]??{}),!0}let x=!1;if(t.fulfilled.match(g)||t.rejected.match(g)){const b=v[g.meta.arg.queryCacheKey]||{},C=`${g.meta.requestId}_running`;x||(x=!!b[C]),delete b[C]}if(t.rejected.match(g)){const{meta:{condition:b,arg:C,requestId:T}}=g;if(b&&C.subscribe){const M=v[w=C.queryCacheKey]??(v[w]={});M[T]=C.subscriptionOptions??M[T]??{},x=!0}}return x},c=()=>r.currentSubscriptions,h={getSubscriptions:c,getSubscriptionCount:v=>{const x=c()[v]??{};return Zu(x)},isRequestSubscribed:(v,g)=>{var y;const x=c();return!!((y=x==null?void 0:x[v])!=null&&y[g])}};return(v,g)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(v))return i=r.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(v))return[!1,h];const x=l(r.currentSubscriptions,v);let y=!0;if(x){o||(o=setTimeout(()=>{const b=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,C]=oI(i,()=>b);g.next(e.internalActions.subscriptionsUpdated(C)),i=b,o=null},500));const S=typeof v.type=="string"&&!!v.type.startsWith(n),w=t.rejected.match(v)&&v.meta.condition&&!!v.meta.arg.subscribe;y=!S&&!w}return[y,!1]}};function JY(e){const{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:o}=i,a={invalidateTags:Cn(`${t}/invalidateTags`)},s=p=>p.type.startsWith(`${t}/`),l=[ZY,UY,GY,YY,XY,KY];return{middleware:p=>{let h=!1;const g={...e,internalState:{currentSubscriptions:{}},refetchQuery:d,isThisApiSliceAction:s},x=l.map(w=>w(g)),y=QY(g),S=qY(g);return w=>b=>{if(!QA(b))return w(b);h||(h=!0,p.dispatch(n.internalActions.middlewareRegistered(o)));const C={...p,next:w},T=p.getState(),[M,E]=y(b,C,T);let I;if(M?I=w(b):I=E,p.getState()[t]&&(S(b,C,T),s(b)||i.hasRehydrationInfo(b)))for(let D of x)D(b,C,T);return I}},actions:a};function d(p,h,v={}){return r({type:"query",endpointName:p.endpointName,originalArgs:p.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:h,...v})}}function Ua(e,...t){return Object.assign(e,...t)}var Kk=Symbol(),ML=({createSelector:e=$b}={})=>({name:Kk,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:o,keepUnusedDataFor:a,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:c,invalidationBehavior:d},p){UB();const h=V=>V;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:jw,onOffline:bL,onFocus:Fw,onFocusLost:SL},util:{}});const{queryThunk:v,mutationThunk:g,patchQueryData:x,updateQueryData:y,upsertQueryData:S,prefetch:w,buildMatchThunkActions:b}=FY({baseQuery:r,reducerPath:i,context:p,api:t,serializeQueryArgs:o,assertTagType:h}),{reducer:C,actions:T}=jY({context:p,queryThunk:v,mutationThunk:g,reducerPath:i,assertTagType:h,config:{refetchOnFocus:l,refetchOnReconnect:c,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:i,invalidationBehavior:d}});Ua(t.util,{patchQueryData:x,updateQueryData:y,upsertQueryData:S,prefetch:w,resetApiState:T.resetApiState}),Ua(t.internalActions,T);const{middleware:M,actions:E}=JY({reducerPath:i,context:p,queryThunk:v,mutationThunk:g,api:t,assertTagType:h});Ua(t.util,E),Ua(t,{reducer:C,middleware:M});const{buildQuerySelector:I,buildMutationSelector:D,selectInvalidatedBy:k,selectCachedArgsForQuery:O}=WY({serializeQueryArgs:o,reducerPath:i,createSelector:e});Ua(t.util,{selectInvalidatedBy:k,selectCachedArgsForQuery:O});const{buildInitiateQuery:N,buildInitiateMutation:$,getRunningMutationThunk:z,getRunningMutationsThunk:F,getRunningQueriesThunk:j,getRunningQueryThunk:K}=zY({queryThunk:v,mutationThunk:g,api:t,serializeQueryArgs:o,context:p});return Ua(t.util,{getRunningMutationThunk:z,getRunningMutationsThunk:F,getRunningQueryThunk:K,getRunningQueriesThunk:j}),{name:Kk,injectEndpoint(V,H){var W;const Y=t;(W=Y.endpoints)[V]??(W[V]={}),wL(H)?Ua(Y.endpoints[V],{name:V,select:I(V,H),initiate:N(V,H)},b(v,V)):NY(H)&&Ua(Y.endpoints[V],{name:V,select:D(),initiate:$(V)},b(g,V))}}}});ML();function eq(e){return e.type==="query"}function tq(e){return e.type==="mutation"}function nv(e,...t){return Object.assign(e,...t)}function v1(e){return e.replace(e[0],e[0].toUpperCase())}var _u=WeakMap?new WeakMap:void 0,rq=({endpointName:e,queryArgs:t})=>{let r="";const n=_u==null?void 0:_u.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(o,a)=>(a=typeof a=="bigint"?{$bigint:a.toString()}:a,a=No(a)?Object.keys(a).sort().reduce((s,l)=>(s[l]=a[l],s),{}):a,a));No(t)&&(_u==null||_u.set(t,i)),r=i}return`${e}(${r})`},g1=Symbol();function Zk(e,t,r,n){const i=L.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),o=L.useRef(i);return L.useEffect(()=>{o.current.serialized!==i.serialized&&(o.current=i)},[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}function m1(e){const t=L.useRef(e);return L.useEffect(()=>{us(t.current,e)||(t.current=e)},[e]),us(t.current,e)?t.current:e}var nq=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iq=nq(),oq=()=>typeof navigator<"u"&&navigator.product==="ReactNative",aq=oq(),sq=()=>iq||aq?L.useLayoutEffect:L.useEffect,lq=sq(),uq=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:yL.pending}:e;function cq({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:i},unstable__sideEffectsInRender:o,createSelector:a},serializeQueryArgs:s,context:l}){const c=o?g=>g():L.useEffect;return{buildQueryHooks:h,buildMutationHook:v,usePrefetch:p};function d(g,x,y){if(x!=null&&x.endpointName&&g.isUninitialized){const{endpointName:M}=x,E=l.endpointDefinitions[M];s({queryArgs:x.originalArgs,endpointDefinition:E,endpointName:M})===s({queryArgs:y,endpointDefinition:E,endpointName:M})&&(x=void 0)}let S=g.isSuccess?g.data:x==null?void 0:x.data;S===void 0&&(S=g.data);const w=S!==void 0,b=g.isLoading,C=(!x||x.isLoading||x.isUninitialized)&&!w&&b,T=g.isSuccess||b&&w;return{...g,data:S,currentData:g.data,isFetching:b,isLoading:C,isSuccess:T}}function p(g,x){const y=r(),S=m1(x);return L.useCallback((w,b)=>y(e.util.prefetch(g,w,{...S,...b})),[g,y,S])}function h(g){const x=(w,{refetchOnReconnect:b,refetchOnFocus:C,refetchOnMountOrArgChange:T,skip:M=!1,pollingInterval:E=0,skipPollingIfUnfocused:I=!1}={})=>{const{initiate:D}=e.endpoints[g],k=r(),O=L.useRef(void 0);if(!O.current){const Y=k(e.internalActions.internal_getRTKQSubscriptions());O.current=Y}const N=Zk(M?Cl:w,rq,l.endpointDefinitions[g],g),$=m1({refetchOnReconnect:b,refetchOnFocus:C,pollingInterval:E,skipPollingIfUnfocused:I}),z=L.useRef(!1),F=L.useRef(void 0);let{queryCacheKey:j,requestId:K}=F.current||{},V=!1;j&&K&&(V=O.current.isRequestSubscribed(j,K));const H=!V&&z.current;return c(()=>{z.current=V}),c(()=>{H&&(F.current=void 0)},[H]),c(()=>{var q;const Y=F.current;if(N===Cl){Y==null||Y.unsubscribe(),F.current=void 0;return}const W=(q=F.current)==null?void 0:q.subscriptionOptions;if(!Y||Y.arg!==N){Y==null||Y.unsubscribe();const te=k(D(N,{subscriptionOptions:$,forceRefetch:T}));F.current=te}else $!==W&&Y.updateSubscriptionOptions($)},[k,D,T,N,$,H]),L.useEffect(()=>()=>{var Y;(Y=F.current)==null||Y.unsubscribe(),F.current=void 0},[]),L.useMemo(()=>({refetch:()=>{var Y;if(!F.current)throw new Error(gn(38));return(Y=F.current)==null?void 0:Y.refetch()}}),[])},y=({refetchOnReconnect:w,refetchOnFocus:b,pollingInterval:C=0,skipPollingIfUnfocused:T=!1}={})=>{const{initiate:M}=e.endpoints[g],E=r(),[I,D]=L.useState(g1),k=L.useRef(void 0),O=m1({refetchOnReconnect:w,refetchOnFocus:b,pollingInterval:C,skipPollingIfUnfocused:T});c(()=>{var F,j;const z=(F=k.current)==null?void 0:F.subscriptionOptions;O!==z&&((j=k.current)==null||j.updateSubscriptionOptions(O))},[O]);const N=L.useRef(O);c(()=>{N.current=O},[O]);const $=L.useCallback(function(z,F=!1){let j;return t(()=>{var K;(K=k.current)==null||K.unsubscribe(),k.current=j=E(M(z,{subscriptionOptions:N.current,forceRefetch:!F})),D(z)}),j},[E,M]);return L.useEffect(()=>()=>{var z;(z=k==null?void 0:k.current)==null||z.unsubscribe()},[]),L.useEffect(()=>{I!==g1&&!k.current&&$(I,!0)},[I,$]),L.useMemo(()=>[$,I],[$,I])},S=(w,{skip:b=!1,selectFromResult:C}={})=>{const{select:T}=e.endpoints[g],M=Zk(b?Cl:w,s,l.endpointDefinitions[g],g),E=L.useRef(void 0),I=L.useMemo(()=>a([T(M),($,z)=>z,$=>M],d,{memoizeOptions:{resultEqualityCheck:us}}),[T,M]),D=L.useMemo(()=>C?a([I],C,{devModeChecks:{identityFunctionCheck:"never"}}):I,[I,C]),k=n($=>D($,E.current),us),O=i(),N=I(O.getState(),E.current);return lq(()=>{E.current=N},[N]),k};return{useQueryState:S,useQuerySubscription:x,useLazyQuerySubscription:y,useLazyQuery(w){const[b,C]=y(w),T=S(C,{...w,skip:C===g1}),M=L.useMemo(()=>({lastArg:C}),[C]);return L.useMemo(()=>[b,T,M],[b,T,M])},useQuery(w,b){const C=x(w,b),T=S(w,{selectFromResult:w===Cl||b!=null&&b.skip?void 0:uq,...b}),{data:M,status:E,isLoading:I,isSuccess:D,isError:k,error:O}=T;return L.useDebugValue({data:M,status:E,isLoading:I,isSuccess:D,isError:k,error:O}),L.useMemo(()=>({...T,...C}),[T,C])}}}function v(g){return({selectFromResult:x,fixedCacheKey:y}={})=>{const{select:S,initiate:w}=e.endpoints[g],b=r(),[C,T]=L.useState();L.useEffect(()=>()=>{C!=null&&C.arg.fixedCacheKey||C==null||C.reset()},[C]);const M=L.useCallback(function(W){const q=b(w(W,{fixedCacheKey:y}));return T(q),q},[b,w,y]),{requestId:E}=C||{},I=L.useMemo(()=>S({fixedCacheKey:y,requestId:C==null?void 0:C.requestId}),[y,C,S]),D=L.useMemo(()=>x?a([I],x):I,[x,I]),k=n(D,us),O=y==null?C==null?void 0:C.arg.originalArgs:void 0,N=L.useCallback(()=>{t(()=>{C&&T(void 0),y&&b(e.internalActions.removeMutationResult({requestId:E,fixedCacheKey:y}))})},[b,y,C,E]),{endpointName:$,data:z,status:F,isLoading:j,isSuccess:K,isError:V,error:H}=k;L.useDebugValue({endpointName:$,data:z,status:F,isLoading:j,isSuccess:K,isError:V,error:H});const Y=L.useMemo(()=>({...k,originalArgs:O,reset:N}),[k,O,N]);return L.useMemo(()=>[M,Y],[M,Y])}}}var fq=Symbol(),dq=({batch:e=Rz,hooks:t={useDispatch:TI,useSelector:gI,useStore:CI},createSelector:r=$b,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:fq,init(o,{serializeQueryArgs:a},s){const l=o,{buildQueryHooks:c,buildMutationHook:d,usePrefetch:p}=cq({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:a,context:s});return nv(l,{usePrefetch:p}),nv(s,{batch:e}),{injectEndpoint(h,v){if(eq(v)){const{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:y,useQueryState:S,useQuerySubscription:w}=c(h);nv(l.endpoints[h],{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:y,useQueryState:S,useQuerySubscription:w}),o[`use${v1(h)}Query`]=g,o[`useLazy${v1(h)}Query`]=x}else if(tq(v)){const g=d(h);nv(l.endpoints[h],{useMutation:g}),o[`use${v1(h)}Mutation`]=g}}}}}),pq=TL(ML(),dq());const hq=(e,t,r)=>OY(window.baseUrl?{baseUrl:window.baseUrl,credentials:"include"}:void 0)(e,t,r),Cg=pq({baseQuery:hq,endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:yl}),getTasks:e.query({query:()=>"tasks",transformResponse:yl}),getExceptions:e.query({query:()=>"exceptions",transformResponse:yl}),getLogs:e.query({query:()=>"logs",transformResponse:yl}),getWorkerCount:e.query({query:()=>"worker-count",transformResponse:yl}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:SY(rM(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:rM(t)})}),resetStats:e.mutation({query:()=>({url:"stats/reset",method:"GET"})}),stopSwarm:e.mutation({query:()=>({url:"stop",method:"GET"})})})}),{useGetStatsQuery:vq,useGetTasksQuery:gq,useGetExceptionsQuery:mq,useGetLogsQuery:yq,useGetWorkerCountQuery:xq,useStartSwarmMutation:Sq,useUpdateUserSettingsMutation:bq,useStopSwarmMutation:wq,useResetStatsMutation:_q}=Cg;function wp(e,{payload:t}){return xY(e,t)}const Cq=Io,kL=Pi({name:"swarm",initialState:Cq,reducers:{setSwarm:wp}}),Pm=kL.actions,Tq=kL.reducer;function Mq({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return P.jsx(mL,{onSubmit:r,children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[P.jsx(Xe,{children:`${t.userClassName} Settings`}),P.jsx($w,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([o,a])=>P.jsx(El,{defaultValue:a,inputProps:{"data-type":typeof a=="number"?"number":"text"},label:qx(o),name:o},`user-to-edit-${o}`)),P.jsx(ci,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function kq({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:o}){const[a,s]=L.useState(!1),[l,c]=L.useState(),[d]=bq(),p=y=>{l&&(i({users:{...o,[l.userClassName]:y}}),d({...y,userClassName:l.userClassName}),s(!1))},h=y=>()=>r.includes(y)?n(r.filter(S=>S!==y)):n(r.concat(y)),v=r.length,g=e.length,x=y=>y.target.checked?n(e):n([]);return P.jsxs(P.Fragment,{children:[P.jsx(tt,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:P.jsxs(tt,{sx:{maxHeight:"30vh",overflow:"auto"},children:[P.jsx(Cm,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),P.jsx(qD,{children:P.jsx(aL,{component:ji,children:P.jsxs(iL,{children:[P.jsx(sL,{children:P.jsx(_g,{children:P.jsx(Sl,{colSpan:4,padding:"checkbox",children:P.jsx(vS,{checked:g>0&&v===g,indeterminate:v>0&&v<g,onChange:x})})})}),P.jsx(oL,{children:Object.entries(o).map(([y,S])=>P.jsxs(_g,{hover:!0,children:[P.jsx(Sl,{onClick:h(y),padding:"checkbox",children:P.jsx(vS,{checked:r.includes(y)})}),P.jsx(Sl,{children:y}),P.jsx(Sl,{children:P.jsx(Xe,{variant:"subtitle2",children:S.host})}),P.jsx(Sl,{align:"right",children:P.jsx(ba,{onClick:()=>{s(!a),c({userClass:S,userClassName:y})},children:P.jsx(sY,{})})})]},`user-class-${y}`))})]})})})]})}),P.jsx(km,{onClose:()=>s(!1),open:a,children:l&&P.jsx(Mq,{availableTasks:t[l.userClassName],handleEditUser:p,userToEdit:l})})]})}const Rq={setSwarm:Pm.setSwarm},Pq=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),Eq=di(Pq,Rq)(kq);function Aq(){const[e,t]=L.useState({}),[r,n]=L.useState(!0),i=(a,s,l,{onlyDelete:c}={onlyDelete:!1})=>{const d={...e};let p;const h=l.match&&Array.isArray(l.match)&&l.match.find(({pattern:v})=>!new RegExp(v).test(s));l.minLength&&s.length<l.minLength?p=`Please enter at least ${l.minLength} characters`:h?p=h.message||"Invalid format":l.match&&!Array.isArray(l.match)&&!new RegExp(l.match.pattern).test(s)?p=l.match.message||"Invalid format":delete d[a],p&&!c&&(d[a]=p),t(d),n(Object.keys(d).length===0)};return{register:(a,s,l="onChange")=>({...e[a]&&s.level?{color:s.level,focused:!0,FormHelperTextProps:{sx:{color:d=>d.palette.warning.main}}}:{},name:a,onChange:({target:{value:d}})=>i(a,d,s,{onlyDelete:!0}),[l]:({target:{value:d}})=>i(a,d,s),error:!!e[a]&&!s.level,helperText:e[a]||""}),isValid:r}}const Iq=/^(?:[a-zA-Z][a-zA-Z\d+\-.]*):\/\/[^\s/$.?#].[^\s]*$/,Dq=({isDisabled:e,isDistributed:t,workerCount:r})=>e?{isFormDisabled:!0}:t&&!r?{isFormDisabled:!0,reason:"You can't start a distributed test before at least one worker processes has connected"}:{};function Lq({allProfiles:e,availableShapeClasses:t,availableUserClasses:r,host:n,extraOptions:i,hideCommonOptions:o,shapeUseCommonOptions:a,numUsers:s,userCount:l,overrideHostWarning:c,missingHostWarning:d,profile:p,runTime:h,setSwarm:v,showUserclassPicker:g,spawnRate:x,alert:y,isDisabled:S=!1,isEditSwarm:w=!1,isHostRequired:b,onFormChange:C,onFormSubmit:T,advancedOptions:M}){const[E]=Sq(),[I,D]=L.useState(""),[k,O]=L.useState(r),N=kn(({swarm:H})=>H),{register:$}=Aq(),{reason:z,isFormDisabled:F}=L.useMemo(()=>Dq({isDisabled:S,...N}),[S,N]),j=async H=>{const{data:Y}=await E({...H,...g&&k?{userClasses:k}:{}});Y&&Y.success?v({state:Jr.RUNNING,host:H.host||n,runTime:H.runTime,spawnRate:H.spawnRate,userCount:H.userCount,profile:H.profile}):D(Y?Y.message:"An unknown error occured."),T&&T(H)},K=H=>{I&&D(""),C&&C(H)},V=H=>{if(!a){const Y=H.target.value!==t[0];v({hideCommonOptions:Y})}};return P.jsxs(bp,{maxWidth:"md",sx:{my:2},children:[P.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:w?"Edit running load test":"Start new load test"}),!w&&g&&P.jsx(tt,{marginBottom:2,marginTop:2,children:P.jsx(Eq,{availableUserClasses:r,selectedUserClasses:k,setSelectedUserClasses:O})}),P.jsx(mL,{onChange:K,onSubmit:j,children:P.jsxs(tt,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[!w&&g&&P.jsx($w,{label:"Shape Class",name:"shapeClass",onChange:V,options:t}),P.jsx(Bk,{defaultValue:o&&"0"||l||s||1,disabled:!!o,label:"Number of users (peak concurrency)",name:"userCount",required:!0,title:o?"Disabled for tests using LoadTestShape class":""}),P.jsx(Bk,{defaultValue:o&&"0"||x||1,disabled:!!o,label:"Ramp up (users started/second)",name:"spawnRate",required:!0,title:o?"Disabled for tests using LoadTestShape class":""}),!w&&P.jsxs(P.Fragment,{children:[P.jsx(El,{...$("host",{match:{pattern:Iq,message:"Please use a valid url format e.g. https://google.com"},level:"warning"},"onBlur"),defaultValue:n,label:`Host ${c?"(setting this will override the host for the User classes)":""}`,name:"host",required:b}),P.jsxs(vw,{children:[P.jsx(mw,{expandIcon:P.jsx(Ow,{}),children:P.jsx(Xe,{children:"Advanced options"})}),P.jsx(gw,{children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[P.jsx(El,{defaultValue:h,disabled:!!o,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"},title:o?"Disabled for tests using LoadTestShape class":""}),P.jsx(NW,{defaultValue:p,disablePortal:!0,freeSolo:!0,options:e&&Array.isArray(e)?e:[],renderInput:H=>P.jsx(El,{...H,defaultValue:p,label:"Profile",name:"profile"})}),M&&M.map(({component:H,...Y},W)=>H?P.jsx(H,{...Y}):L.createElement(zw,{...Y,key:`advanced-parameter-${W}`}))]})})]})]}),!!i&&!gL(i)&&P.jsx(TY,{extraOptions:i}),y&&!I&&P.jsx(ua,{severity:y.level||"info",children:y.message}),(I||z)&&P.jsx(ua,{severity:"error",children:I||z}),!b&&d&&P.jsx(ua,{severity:"info",children:"One or more User class in your locustfile has no host attribute set. Please provide one in the field above."}),P.jsx(ci,{disabled:F,size:"large",type:"submit",variant:"contained",children:w?"Update":"Start"})]})})]})}const Oq=({swarm:{allProfiles:e,availableShapeClasses:t,availableUserClasses:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:o,host:a,numUsers:s,userCount:l,overrideHostWarning:c,missingHostWarning:d,isHostRequired:p,profile:h,runTime:v,spawnRate:g,showUserclassPicker:x}},y)=>({allProfiles:e||(y==null?void 0:y.allProfiles),availableShapeClasses:t,availableUserClasses:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:o,host:a,overrideHostWarning:c,missingHostWarning:d,isHostRequired:p,profile:h,showUserclassPicker:x,numUsers:s,userCount:l,runTime:v,spawnRate:g}),Nq={setSwarm:Pm.setSwarm},Hw=di(Oq,Nq)(Lq);function Bq(e){const[t,r]=L.useState(!1),{hideCommonOptions:n}=kn(({swarm:i})=>i);return P.jsxs(P.Fragment,{children:[P.jsx(rL,{title:n?"Disabled for tests using LoadTestShape class":"",children:P.jsx(tt,{children:P.jsx(ci,{color:"secondary",disabled:!!n,onClick:()=>r(!0),sx:{minHeight:"100%"},type:"button",variant:"contained",children:"Edit"})})}),P.jsx(km,{onClose:()=>r(!1),open:t,children:P.jsx(Hw,{...e,isEditSwarm:!0,onFormSubmit:()=>r(!1)})})]})}function $q(e){const[t,r]=L.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(ci,{color:"success",onClick:()=>r(!0),type:"button",variant:"contained",children:"New"}),P.jsx(km,{onClose:()=>r(!1),open:t,children:P.jsx(Hw,{...e})})]})}function zq(){const[e]=_q(),t=()=>{e()};return P.jsx(ci,{color:"warning",onClick:t,type:"button",variant:"contained",children:"Reset"})}function Fq(){const[e,t]=L.useState(!1),[r]=wq();L.useEffect(()=>{t(!1)},[]);const n=()=>{r(),t(!0)};return P.jsx(ci,{color:"error",disabled:e,onClick:n,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function Qk(){const e=kn(({swarm:t})=>t.state);return e===Jr.READY?null:P.jsxs(tt,{sx:{display:"flex",columnGap:2,marginY:"auto",height:"50px"},children:[e===Jr.STOPPED?P.jsx($q,{}):P.jsxs(P.Fragment,{children:[P.jsx(Bq,{}),P.jsx(Fq,{})]}),P.jsx(zq,{})]})}function jq(){const e=Fo(),[t,r]=L.useState(!1);L.useEffect(()=>{const i=()=>{window.innerWidth>=e.breakpoints.values.md&&r(!1)};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[]);const n=i=>()=>{r(i)};return P.jsxs(P.Fragment,{children:[P.jsx(N9,{position:"static",children:P.jsx(bp,{maxWidth:"xl",children:P.jsxs(RG,{disableGutters:!0,sx:{display:"flex",justifyContent:"space-between",columnGap:2},children:[P.jsx(fn,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center"},underline:"none",children:P.jsx(lL,{})}),P.jsx(ba,{"aria-label":"menu",color:"inherit",edge:"start",onClick:n(!0),sx:{display:{xs:"block",md:"none"}},children:P.jsx(aY,{})}),P.jsxs(tt,{sx:{display:{xs:"none",md:"flex"},columnGap:{md:2,lg:6}},children:[P.jsx(Nk,{}),P.jsx(Qk,{}),P.jsx(yS,{})]})]})})}),P.jsx(nV,{anchor:"right",onClose:n(!1),open:t,children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",columnGap:{md:2,lg:6},rowGap:2,p:2,maxWidth:"100vw"},children:[P.jsx(tt,{sx:{display:"flex",justifyContent:"flex-end"},children:P.jsx(yS,{})}),P.jsx(Qk,{}),P.jsx(Nk,{})]})})]})}function Wq({children:e}){return P.jsxs(P.Fragment,{children:[P.jsxs(tt,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[P.jsx(jq,{}),P.jsx("main",{children:e})]}),P.jsx(yY,{})]})}const RL=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL"),PL="logViewer";function _p(e,t,{shouldRunInterval:r,immediate:n}={shouldRunInterval:!0,immediate:!1}){const i=L.useRef(e);L.useEffect(()=>{i.current=e},[e]),L.useEffect(()=>{if(!r)return;n&&i.current();const o=setInterval(()=>i.current(),t);return()=>{clearInterval(o)}},[t,r])}const Hq={},EL=Pi({name:"notification",initialState:Hq,reducers:{setNotification:wp}}),AL=EL.actions,Vq=EL.reducer;function Uq(e,{key:t,shouldNotify:r}){const n=To(AL.setNotification),i=kn(({url:{query:a}})=>a&&a.tab),o=`${t}Notification`;L.useEffect(()=>{e.length>0&&e.length<localStorage[o]&&(localStorage[o]=e.length),e.length>(localStorage[o]||0)&&(!i||i!==t)&&(!r||r&&r(o))&&(n({[t]:!0}),localStorage[o]=e.length)},[e])}const Gq={master:[],workers:{}},IL=Pi({name:"logViewer",initialState:Gq,reducers:{setLogs:wp}}),Yq=IL.actions,qq=IL.reducer,DL=e=>e.reduce((t,r)=>t.concat(Array.isArray(r)?DL(r):r),[]),Xq={master:[],workers:{}};function Kq(){const e=kn(({swarm:l})=>l),t=To(Yq.setLogs),{data:r,refetch:n}=yq(),i=r||Xq,o=L.useMemo(()=>DL(Object.values(i.workers)),[i.workers]),a=L.useMemo(()=>[...i.master].concat(o),[i.master,i.workers]),s=L.useCallback(l=>a.slice(localStorage[l]).some(RL),[a]);return _p(n,5e3,{shouldRunInterval:e.state===Jr.SPAWNING||e.state==Jr.RUNNING}),Uq(a,{key:PL,shouldNotify:s}),L.useEffect(()=>{t(i)},[i]),i}function Zq(e,t){const r=t?-1:1;return function(n,i){const o=n[e],a=i[e];return o<a?r*-1:o>a?r*1:0}}function Qq(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=L.useState(e),[o,a]=L.useState(!1),s=L.useRef(),l=d=>{const h=(t?e.slice(0,-1):[...e]).sort(Zq(d,d===s.current&&!o));i(t?[...h,...e.slice(-1)]:h)},c=L.useCallback(d=>{s.current||(s.current=r);const p=d.target.getAttribute("data-sortkey");if(p===s.current)if(o){a(!1),s.current=void 0,l(r);return}else a(!0);else o&&a(!1);l(p),s.current=p},[s,e,o]);return L.useEffect(()=>{e.length?l(s.current||r):l.length&&i(e)},[e]),{onTableHeadClick:c,sortedRows:n,currentSortField:s.current}}const Jf=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Jq({content:e,formatter:t,round:r}){return t?t(e):r?Jf(e,r):e}function Cp({rows:e,structure:t,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:o,currentSortField:a}=Qq(e,{hasTotalRow:r,defaultSortKey:n});return P.jsx(aL,{component:ji,children:P.jsxs(iL,{children:[P.jsx(sL,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:P.jsx(_g,{children:t.map(({title:s,key:l})=>P.jsx(Sl,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:a===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),P.jsx(oL,{children:o.map((s,l)=>P.jsx(_g,{children:t.map(({key:c,...d},p)=>P.jsx(Sl,{children:P.jsx(Jq,{content:s[c],...d})},`table-row=${p}`))},`${s.name}-${l}`))})]})})}function eX({rows:e,tableStructure:t}){return t?P.jsx(Cp,{rows:e,structure:t}):null}const tX=({swarm:{extendedTables:e},ui:{extendedStats:t},url:{query:r}})=>{const n=r&&r.tab&&e&&e.find(({key:o})=>o===r.tab),i=r&&r.tab&&t&&t.find(({key:o})=>o===r.tab);return{tableStructure:n?n.structure.map(({key:o,...a})=>({key:kI(o),...a})):null,rows:i?i.data:[]}},rX=di(tX)(eX),nX=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message"},{key:"traceback",title:"Traceback"}];function iX({exceptions:e}){return P.jsx(Cp,{rows:e,structure:nX})}const oX=({ui:{exceptions:e}})=>({exceptions:e}),aX=di(oX)(iX),sX={totalRps:0,failRatio:0,startTime:"",stats:[],errors:[],exceptions:[],charts:(Io.history||[]).reduce(Rm,{}),ratios:{},userCount:0};var XA;const lX=(XA=Io.percentilesToChart)==null?void 0:XA.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),uX=e=>Rm(e,{...lX,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),LL=Pi({name:"ui",initialState:sX,reducers:{setUi:wp,updateCharts:(e,{payload:t})=>({...e,charts:Rm(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...uX(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[(e.charts.time||[""])[0],t]}})}}),vd=LL.actions,cX=LL.reducer;function fX(){const{data:e,refetch:t}=mq(),r=To(vd.setUi),n=kn(({swarm:o})=>o.state),i=n===Jr.SPAWNING||n==Jr.RUNNING;L.useEffect(()=>{e&&r({exceptions:e.exceptions})},[e]),_p(t,5e3,{shouldRunInterval:i,immediate:!0})}function dX(){return fX(),P.jsx(aX,{})}const pX=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message"}];function hX({errors:e}){return P.jsx(Cp,{rows:e,structure:pX})}const vX=({ui:{errors:e}})=>({errors:e}),gX=di(vX)(hX),Jk=.5,mX=()=>{const[e,t]=L.useState(!1),r=L.useRef(null);return L.useEffect(()=>{const n=new IntersectionObserver(([i])=>{i.isIntersecting&&t(!0)},{threshold:Jk});return r.current&&n.observe(r.current),()=>{r.current&&n.unobserve(r.current)}},[Jk]),{isVisible:e,elementRef:r}};function Cf({children:e,sx:t}){const{isVisible:r,elementRef:n}=mX();return P.jsx(tt,{ref:n,sx:{...t,opacity:r?1:0,transition:"opacity 1s ease-out"},children:e})}function y1({tierName:e,price:t,features:r,recommended:n,ctaText:i,href:o}){return P.jsxs(rH,{sx:{flex:1,border:n?2:void 0,borderColor:n?"primary.main":void 0,position:"relative",overflow:"visible"},children:[n&&P.jsx(tt,{sx:{position:"absolute",top:-12,left:24,bgcolor:"primary.main",color:"white",px:2,py:.5,borderRadius:1,fontSize:"0.875rem",fontWeight:"bold"},children:"Recommended"}),P.jsxs(aH,{sx:{p:4,pt:5},children:[P.jsxs(tt,{sx:{height:{md:"120px"}},children:[P.jsx(Xe,{component:"h2",sx:{fontWeight:"bold",mb:2},variant:"h5",children:e}),t&&P.jsxs(tt,{sx:{display:"flex",alignItems:"baseline",gap:.5,mb:2},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},variant:"h4",children:t}),P.jsx(Xe,{color:"text.secondary",variant:"body1",children:"/month"})]})]}),P.jsx(Ew,{sx:{mb:4},children:r.map(({title:a,description:s,icon:l},c)=>P.jsxs(ml,{sx:{height:74},children:[P.jsx(iU,{sx:{minWidth:40},children:l}),P.jsx(lU,{primary:P.jsx(Xe,{sx:{fontWeight:"medium"},variant:"body1",children:a}),secondary:s})]},`pricing-${a}-${c}`))}),n?P.jsx(ci,{href:o,size:"large",sx:{width:"100%",mt:"auto",px:4,py:1.5,textTransform:"none",backgroundImage:"linear-gradient(to right, #15803d, oklch(62.7% 0.194 149.214))"},variant:"contained",children:i}):P.jsx(ci,{href:o,size:"large",sx:{width:"100%",mt:"auto",px:4,py:1.5,textTransform:"none",color:a=>a.palette.text.primary,border:a=>`1px solid ${a.palette.text.primary}`},variant:"outlined",children:i})]})]})}const yX=[{icon:P.jsx(Lw,{}),title:"200 VUh per month",description:""},{icon:P.jsx(Nw,{}),title:"Up to 100 Virtual Users",description:""},{icon:P.jsx(Bw,{}),title:"Distributed Tests",description:"Get access to up to 2 workers"},{icon:P.jsx(oY,{}),title:"No Credit Card Required, no Trial Clock",description:"Free load testing, no strings attached!"},{}],xX=[{icon:P.jsx(Lw,{}),title:"5,000 VUh per month",description:"Enough capacity to run bigger tests, or smaller tests several times per month"},{icon:P.jsx(Nw,{}),title:"Up to 1,000 Virtual Users",description:"Simulate real world load with more virtual users"},{icon:P.jsx(Bw,{}),title:"Distributed Tests",description:"Get access to up to 4 workers"},{icon:P.jsx(uL,{}),title:"Teams",description:"Up to 5 users"},{icon:P.jsx(fL,{}),title:"Priority Support",description:"Get help faster with dedicated support channels"}],SX=[{icon:P.jsx(Lw,{}),title:"Up to 5 million VUh per month",description:"Any capacity you need, we can provide"},{icon:P.jsx(Nw,{}),title:"Up to 1 million Virtual Users",description:"Prepare your system to handle load of any size"},{icon:P.jsx(Bw,{}),title:"Distributed Tests",description:"No limits on the number of workers"},{icon:P.jsx(uL,{}),title:"Teams",description:"Unlimited users"},{icon:P.jsx(fL,{}),title:"Priority Support",description:"Get help faster and receive consultation hours for building your locust test scripts"}];function bX(){return P.jsxs(tt,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:4,m:6},children:[P.jsx(y1,{ctaText:"Join for Free",features:yX,href:"https://auth.locust.cloud/signup",price:"$0",tierName:"Free"}),P.jsx(y1,{ctaText:"Get Started",features:xX,href:"https://auth.locust.cloud/signup?plan=premium",price:"$399",recommended:!0,tierName:"Premium"}),P.jsx(y1,{ctaText:"Request a consultation",features:SX,href:"https://www.locust.cloud/get-started?plan=unlimited",tierName:"Unlimited"})]})}function wX(){const e=kn(({theme:{isDarkMode:t}})=>t);return P.jsxs(tt,{sx:{mt:6},children:[P.jsxs(Cf,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:2},children:[P.jsxs(tt,{sx:{display:"flex",alignItems:"center",justifyContent:"center",columnGap:1,rowGap:4},children:[P.jsx(Xe,{component:"h2",sx:{textAlign:"center",fontWeight:"bold"},variant:"h4",children:"Power Up Your"}),P.jsx(Xe,{component:"h2",sx:{fontWeight:"bold",color:"rgb(22, 163, 74)"},variant:"h4",children:"Locust"})]}),P.jsx(Xe,{sx:{color:e?"#fff":Xx[700],textAlign:"center"},variant:"h6",children:"Load testing is hard. Let us take care of the heavy lifting. With Locust Cloud you'll be ready to run distributed load tests in minutes."}),P.jsx(tt,{sx:{display:"flex",columnGap:1},children:P.jsx(ci,{endIcon:P.jsx(tY,{}),href:"https://auth.locust.cloud/signup",sx:{textTransform:"none",px:12,py:1,borderRadius:2,backgroundColor:"rgb(22, 163, 74)"},variant:"contained",children:"Start Free Trial"})})]}),P.jsxs(Cf,{sx:{display:"flex",flexDirection:"column",my:6,p:{sm:4,md:12},backgroundColor:e?Xx[900]:hl[50]},children:[P.jsxs(tt,{sx:{textAlign:"center",mb:4},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},variant:"h4",children:"Your Locustfile. Our Cloud."}),P.jsx(Xe,{variant:"subtitle1",children:"Running locust cloud couldn't be easier. Simply upload your locustfile and you're off to the races."})]}),P.jsx(tt,{children:P.jsx("img",{src:"/assets/terminal.gif",width:"100%"})})]}),P.jsxs(Cf,{sx:{display:"grid",gridTemplateColumns:{md:"repeat(2, 1fr)"},rowGap:2,alignItems:"center",my:12},children:[P.jsxs(tt,{sx:{px:8},children:[P.jsx(Xe,{variant:"h4",children:"Dive Deeper"}),P.jsx(Xe,{variant:"subtitle1",children:"With locust cloud you can get more out of each testrun. Get a detailed view into individual requests and identify bottlenecks with ease."})]}),P.jsx(tt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:P.jsx(tt,{children:e?P.jsx("img",{src:"/assets/graphs-dark.png",width:"100%"}):P.jsx("img",{src:"/assets/graphs-light.png",width:"100%"})})})]}),P.jsxs(Cf,{sx:{display:{xs:"flex",md:"grid"},flexDirection:"column-reverse",gridTemplateColumns:{md:"repeat(2, 1fr)"},rowGap:2,alignItems:"center",my:12},children:[P.jsx(tt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:P.jsx(tt,{children:e?P.jsx("img",{src:"/assets/testruns-dark.png",width:"100%"}):P.jsx("img",{src:"/assets/testruns-light.png",width:"100%"})})}),P.jsxs(tt,{sx:{px:8},children:[P.jsx(Xe,{variant:"h4",children:"See Everything"}),P.jsx(Xe,{variant:"subtitle1",children:"Every locust testrun is saved. Keep track of how your system has performed historically and get notified immediately when performace degrades"})]})]}),P.jsxs(Cf,{children:[P.jsx(Xe,{sx:{textAlign:"center",mb:6},variant:"h4",children:"Pricing Plans to Fit your Needs"}),P.jsx(bX,{})]})]})}const _X=e=>e.includes("CRITICAL")?ns[900]:e.includes("ERROR")?ns[700]:e.includes("WARNING")?Iz[900]:e.includes("DEBUG")?pl[700]:"text.primary";function OL({log:e}){return P.jsx(Xe,{color:_X(e),fontFamily:"monospace",variant:"body2",children:e})}function CX({workerId:e,logs:t}){const[r,n]=L.useState(!1);L.useEffect(()=>{t.slice(localStorage[e]).some(RL)&&n(!0)},[t]);const i=L.useCallback(()=>{n(!1),localStorage[e]=t.length},[]);return P.jsxs(vw,{children:[P.jsxs(mw,{expandIcon:P.jsx(Ow,{}),onClick:i,children:[r&&P.jsx(cL,{color:"secondary","data-testid":"worker-notification"}),e]}),P.jsx(gw,{children:P.jsx(ji,{elevation:3,sx:{p:2},children:t.map((o,a)=>P.jsx(OL,{log:o},`worker-${e}-log-${a}`))})})]})}function TX(){const{master:e,workers:t}=kn(({logViewer:r})=>r);return P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[P.jsxs(tt,{children:[P.jsx(Xe,{sx:{mb:2},variant:"h5",children:"Master Logs"}),P.jsx(ji,{elevation:3,sx:{p:2,fontFamily:"monospace"},children:e.map((r,n)=>P.jsx(OL,{log:r},`master-log-${n}`))})]}),!gL(t)&&P.jsxs(tt,{children:[P.jsx(Xe,{sx:{mb:2},variant:"h5",children:"Worker Logs"}),Object.entries(t).map(([r,n],i)=>P.jsx(CX,{logs:n,workerId:r},`worker-log-${i}`))]})]})}function MX({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=kn(({theme:{isDarkMode:n}})=>n);return P.jsxs(Ew,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(ml,{children:P.jsx(fn,{href:"./stats/requests/csv",children:"Download requests CSV"})}),t&&P.jsx(ml,{children:P.jsx(fn,{href:"./stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),P.jsx(ml,{children:P.jsx(fn,{href:"./stats/failures/csv",children:"Download failures CSV"})}),P.jsx(ml,{children:P.jsx(fn,{href:"./exceptions/csv",children:"Download exceptions CSV"})}),P.jsx(ml,{children:P.jsx(fn,{href:`./stats/report?theme=${r?Ao.DARK:Ao.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},o)=>P.jsx(ml,{children:P.jsx(fn,{href:n,children:i})},`extended-csv-${o}`))]})}const kX=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),RX=di(kX)(MX);function PX({structure:e,selectedColumns:t,addColumn:r,removeColumn:n}){const[i,o]=L.useState(null);return P.jsxs(XU,{sx:{alignSelf:{xs:"end",lg:"start"},my:2},children:[P.jsx(ci,{onClick:a=>o(a.currentTarget),variant:"outlined",children:P.jsx(lY,{})}),P.jsx(QD,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>o(null),open:!!i,children:P.jsx(qD,{sx:{p:2},children:e.map(({key:a,title:s})=>P.jsx(YD,{control:P.jsx(rG,{checked:t.includes(a),onChange:()=>{t.includes(a)?n(a):r(a)}}),label:s},a))})})]})}function EX(e){const[t,r]=L.useState(e.map(a=>a.key));return{selectedColumns:t,addColumn:a=>{r([...t,a])},removeColumn:a=>{r(t.filter(s=>s!==a))},filteredStructure:(a=>a.filter(s=>t.includes(s.key)))(e)}}const AX=Io.percentilesToStatistics?Io.percentilesToStatistics.map(e=>({title:`${e*100}%ile (ms)`,key:`responseTimePercentile${e}`})):[],IX=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...AX,{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 DX({stats:e,tableStructure:t=IX}){const{selectedColumns:r,addColumn:n,removeColumn:i,filteredStructure:o}=EX(t);return P.jsxs(tt,{sx:{display:"flex",flexDirection:{xs:"column",lg:"row-reverse",alignItems:"flex-start"},columnGap:1},children:[P.jsx(PX,{addColumn:n,removeColumn:i,selectedColumns:r,structure:t}),P.jsx(Cp,{hasTotalRow:!0,rows:e,structure:o})]})}const LX=({ui:{stats:e}})=>({stats:e}),OX=di(LX)(DX);/*! *****************************************************************************
205
+ Copyright (c) Microsoft Corporation.
206
+
207
+ Permission to use, copy, modify, and/or distribute this software for any
208
+ purpose with or without fee is hereby granted.
209
+
210
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
211
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
212
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
213
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
214
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
215
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
216
+ PERFORMANCE OF THIS SOFTWARE.
217
+ ***************************************************************************** */var bS=function(e,t){return bS=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])},bS(e,t)};function _e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bS(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Vw=12,NX="sans-serif",jl=Vw+"px "+NX,BX=20,$X=100,zX="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function FX(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)-BX)/$X;t[n]=i}return t}var jX=FX(zX),Mc={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=Mc.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||jl),e.measureText(r);r=r||"",n=n||jl;var o=/((?:\d+)?\.?\d*)px/.exec(n),a=o&&+o[1]||Vw,s=0;if(n.indexOf("mono")>=0)s=a*r.length;else for(var l=0;l<r.length;l++){var c=jX[r[l]];s+=c==null?a:c*a}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},NL=kc(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),BL=kc(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Tp=Object.prototype.toString,Em=Array.prototype,WX=Em.forEach,HX=Em.filter,Uw=Em.slice,VX=Em.map,eR=(function(){}).constructor,iv=eR?eR.prototype:null,Gw="__proto__",UX=2311;function $L(){return UX++}function Yw(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function ht(e){if(e==null||typeof e!="object")return e;var t=e,r=Tp.call(e);if(r==="[object Array]"){if(!gd(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=ht(e[n])}}else if(BL[r]){if(!gd(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!NL[r]&&!gd(e)&&!vc(e)){t={};for(var a in e)e.hasOwnProperty(a)&&a!==Gw&&(t[a]=ht(e[a]))}return t}function yt(e,t,r){if(!Qe(t)||!Qe(e))return r?ht(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==Gw){var i=e[n],o=t[n];Qe(o)&&Qe(i)&&!De(o)&&!De(i)&&!vc(o)&&!vc(i)&&!tR(o)&&!tR(i)&&!gd(o)&&!gd(i)?yt(i,o,r):(r||!(n in e))&&(e[n]=ht(t[n]))}return e}function Te(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Gw&&(e[r]=t[r]);return e}function At(e,t,r){for(var n=cr(t),i=0;i<n.length;i++){var o=n[i];e[o]==null&&(e[o]=t[o])}return e}function kt(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 GX(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 Wo(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 o=n[i];o!=="constructor"&&e[o]==null&&(e[o]=t[o])}else At(e,t)}function Vn(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function U(e,t,r){if(e&&t)if(e.forEach&&e.forEach===WX)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 o in e)e.hasOwnProperty(o)&&t.call(r,e[o],o,e)}function Ge(e,t,r){if(!e)return[];if(!t)return qw(e);if(e.map&&e.map===VX)return e.map(t,r);for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.call(r,e[i],i,e));return n}function kc(e,t,r,n){if(e&&t){for(var i=0,o=e.length;i<o;i++)r=t.call(n,r,e[i],i,e);return r}}function hn(e,t,r){if(!e)return[];if(!t)return qw(e);if(e.filter&&e.filter===HX)return e.filter(t,r);for(var n=[],i=0,o=e.length;i<o;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function cr(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 YX(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(Uw.call(arguments)))}}var St=iv&&ot(iv.bind)?iv.call.bind(iv.bind):YX;function Ut(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Uw.call(arguments)))}}function De(e){return Array.isArray?Array.isArray(e):Tp.call(e)==="[object Array]"}function ot(e){return typeof e=="function"}function We(e){return typeof e=="string"}function wS(e){return Tp.call(e)==="[object String]"}function fr(e){return typeof e=="number"}function Qe(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function tR(e){return!!NL[Tp.call(e)]}function Un(e){return!!BL[Tp.call(e)]}function vc(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Am(e){return e.colorStops!=null}function qX(e){return e.image!=null}function Tg(e){return e!==e}function Ud(){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 Tt(e,t){return e??t}function Xv(e,t,r){return e??t??r}function qw(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Uw.apply(e,t)}function zL(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 $o(e,t){if(!e)throw new Error(t)}function Mo(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var FL="__ec_primitive__";function _S(e){e[FL]=!0}function gd(e){return e[FL]}var XX=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 cr(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),jL=typeof Map=="function";function KX(){return jL?new Map:new XX}var ZX=function(){function e(t){var r=De(t);this.data=KX();var n=this;t instanceof e?t.each(i):t&&U(t,i);function i(o,a){r?n.set(o,a):n.set(a,o)}}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 jL?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function ft(e){return new ZX(e)}function QX(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 Im(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&Te(r,t),r}function WL(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function gc(e,t){return e.hasOwnProperty(t)}function Tn(){}var JX=180/Math.PI,eK=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),tK=function(){function e(){this.browser=new eK,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}(),lt=new tK;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(lt.wxa=!0,lt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?lt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(lt.node=!0,lt.svgSupported=!0):rK(navigator.userAgent,lt);function rK(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),o&&(r.edge=!0,r.version=o[1],r.newEdge=+o[1].split(".")[0]>18),a&&(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 nK=".",Vs="___EC__COMPONENT__CONTAINER___",HL="___EC__EXTENDED_CLASS___";function ko(e){var t={main:"",sub:""};if(e){var r=e.split(nK);t.main=r[0]||"",t.sub=r[1]||""}return t}function iK(e){$o(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function oK(e){return!!(e&&e[HL])}function Xw(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return aK(n)?i=function(o){_e(a,o);function a(){return o.apply(this,arguments)||this}return a}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},GX(i,this)),Te(i.prototype,r),i[HL]=!0,i.extend=this.extend,i.superCall=uK,i.superApply=cK,i.superClass=n,i}}function aK(e){return ot(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function VL(e,t){e.extend=t.extend}var sK=Math.round(Math.random()*10);function lK(e){var t=["__\0is_clz",sK++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function uK(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 cK(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Dm(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){iK(i),n.prototype.type=i;var o=ko(i);if(!o.sub)t[o.main]=n;else if(o.sub!==Vs){var a=r(o);a[o.sub]=n}}return n},e.getClass=function(n,i,o){var a=t[n];if(a&&a[Vs]&&(a=i?a[i]:null),o&&!a)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return a},e.getClassesByMainType=function(n){var i=ko(n),o=[],a=t[i.main];return a&&a[Vs]?U(a,function(s,l){l!==Vs&&o.push(s)}):o.push(a),o},e.hasClass=function(n){var i=ko(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return U(t,function(i,o){n.push(o)}),n},e.hasSubTypes=function(n){var i=ko(n),o=t[i.main];return o&&o[Vs]};function r(n){var i=t[n.main];return(!i||!i[Vs])&&(i=t[n.main]={},i[Vs]=!0),i}}function Gd(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,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&kt(i,l)>=0||o&&kt(o,l)<0)){var c=n.getShallow(l,t);c!=null&&(a[e[s][0]]=c)}}return a}}var fK=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],dK=Gd(fK),pK=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return dK(this,t,r)},e}(),UL=function(){function e(t){this.value=t}return e}(),hK=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new UL(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}(),Mp=function(){function e(t){this._list=new hK,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,o=null;if(i[t]==null){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new UL(r),s.key=t,n.insertEntry(s),i[t]=s}return o},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}(),CS=new Mp(50);function vK(e){if(typeof e=="string"){var t=CS.get(e);return t&&t.image}else return e}function GL(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var o=CS.get(e),a={hostEl:r,cb:n,cbPayload:i};return o?(t=o.image,!Lm(t)&&o.pending.push(a)):(t=Mc.loadImage(e,rR,rR),t.__zrImageSrc=e,CS.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function rR(){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 Lm(e){return e&&e.width&&e.height}function Qu(){return[1,0,0,1,0,0]}function Kw(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function gK(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 Ju(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],o=t[0]*r[2]+t[2]*r[3],a=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]=o,e[3]=a,e[4]=s,e[5]=l,e}function TS(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 Zw(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],c=t[5],d=Math.sin(r),p=Math.cos(r);return e[0]=i*p+s*d,e[1]=-i*d+s*p,e[2]=o*p+l*d,e[3]=-o*d+p*l,e[4]=p*(a-n[0])+d*(c-n[1])+n[0],e[5]=p*(c-n[1])-d*(a-n[0])+n[1],e}function mK(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 Qw(e,t){var r=t[0],n=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=r*a-o*n;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-a*i)*l,e[5]=(o*i-r*s)*l,e):null}var qt=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 o=1-i;t.x=o*r.x+i*n.x,t.y=o*r.y+i*n.y},e}(),ov=Math.min,av=Math.max,Us=new qt,Gs=new qt,Ys=new qt,qs=new qt,Tf=new qt,Mf=new qt,$t=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=ov(t.x,this.x),n=ov(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=av(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=av(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,o=Qu();return TS(o,o,[-r.x,-r.y]),mK(o,o,[n,i]),TS(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,o=n.x+n.width,a=n.y,s=n.y+n.height,l=t.x,c=t.x+t.width,d=t.y,p=t.y+t.height,h=!(o<l||c<i||s<d||p<a);if(r){var v=1/0,g=0,x=Math.abs(o-l),y=Math.abs(c-i),S=Math.abs(s-d),w=Math.abs(p-a),b=Math.min(x,y),C=Math.min(S,w);o<l||c<i?b>g&&(g=b,x<y?qt.set(Mf,-x,0):qt.set(Mf,y,0)):b<v&&(v=b,x<y?qt.set(Tf,x,0):qt.set(Tf,-y,0)),s<d||p<a?C>g&&(g=C,S<w?qt.set(Mf,0,-S):qt.set(Mf,0,w)):b<v&&(v=b,S<w?qt.set(Tf,0,S):qt.set(Tf,0,-w))}return r&&qt.copy(r,h?Tf:Mf),h},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],o=n[3],a=n[4],s=n[5];t.x=r.x*i+a,t.y=r.y*o+s,t.width=r.width*i,t.height=r.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Us.x=Ys.x=r.x,Us.y=qs.y=r.y,Gs.x=qs.x=r.x+r.width,Gs.y=Ys.y=r.y+r.height,Us.transform(n),qs.transform(n),Gs.transform(n),Ys.transform(n),t.x=ov(Us.x,Gs.x,Ys.x,qs.x),t.y=ov(Us.y,Gs.y,Ys.y,qs.y);var l=av(Us.x,Gs.x,Ys.x,qs.x),c=av(Us.y,Gs.y,Ys.y,qs.y);t.width=l-t.x,t.height=c-t.y},e}(),nR={};function ai(e,t){t=t||jl;var r=nR[t];r||(r=nR[t]=new Mp(500));var n=r.get(e);return n==null&&(n=Mc.measureText(e,t).width,r.put(e,n)),n}function iR(e,t,r,n){var i=ai(e,t),o=Jw(t),a=ed(0,i,r),s=Fu(0,o,n),l=new $t(a,s,i,o);return l}function Om(e,t,r,n){var i=((e||"")+"").split(`
218
+ `),o=i.length;if(o===1)return iR(i[0],t,r,n);for(var a=new $t(0,0,0,0),s=0;s<i.length;s++){var l=iR(i[s],t,r,n);s===0?a.copy(l):a.union(l)}return a}function ed(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Fu(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function Jw(e){return ai("国",e)}function Wl(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function YL(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,o=r.height,a=r.width,s=o/2,l=r.x,c=r.y,d="left",p="top";if(n instanceof Array)l+=Wl(n[0],r.width),c+=Wl(n[1],r.height),d=null,p=null;else switch(n){case"left":l-=i,c+=s,d="right",p="middle";break;case"right":l+=i+a,c+=s,p="middle";break;case"top":l+=a/2,c-=i,d="center",p="bottom";break;case"bottom":l+=a/2,c+=o+i,d="center";break;case"inside":l+=a/2,c+=s,d="center",p="middle";break;case"insideLeft":l+=i,c+=s,p="middle";break;case"insideRight":l+=a-i,c+=s,d="right",p="middle";break;case"insideTop":l+=a/2,c+=i,d="center";break;case"insideBottom":l+=a/2,c+=o-i,d="center",p="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=a-i,c+=i,d="right";break;case"insideBottomLeft":l+=i,c+=o-i,p="bottom";break;case"insideBottomRight":l+=a-i,c+=o-i,d="right",p="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=d,e.verticalAlign=p,e}var x1=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function yK(e,t,r,n,i){if(!t)return"";var o=(e+"").split(`
219
+ `);i=qL(t,r,n,i);for(var a=0,s=o.length;a<s;a++)o[a]=XL(o[a],i);return o.join(`
220
+ `)}function qL(e,t,r,n){n=n||{};var i=Te({},n);i.font=t,r=Tt(r,"..."),i.maxIterations=Tt(n.maxIterations,2);var o=i.minChar=Tt(n.minChar,0);i.cnCharWidth=ai("国",t);var a=i.ascCharWidth=ai("a",t);i.placeholder=Tt(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var c=ai(r,t);return c>s&&(r="",c=0),s=e-c,i.ellipsis=r,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=e,i}function XL(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var o=ai(e,n);if(o<=r)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=a===0?xK(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,s),o=ai(e,n)}return e===""&&(e=t.placeholder),e}function xK(e,t,r,n){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?r:n}return o}function SK(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,o=r==="truncate",a=Jw(i),s=Tt(t.lineHeight,a),l=!!t.backgroundColor,c=t.lineOverflow==="truncate",d=t.width,p;d!=null&&(r==="break"||r==="breakAll")?p=e?KL(e,t.font,d,r==="breakAll",0).lines:[]:p=e?e.split(`
221
+ `):[];var h=p.length*s,v=Tt(t.height,h);if(h>v&&c){var g=Math.floor(v/s);p=p.slice(0,g)}if(e&&o&&d!=null)for(var x=qL(d,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y=0;y<p.length;y++)p[y]=XL(p[y],x);for(var S=v,w=0,y=0;y<p.length;y++)w=Math.max(ai(p[y],i),w);d==null&&(d=w);var b=w;return n&&(S+=n[0]+n[2],b+=n[1]+n[3],d+=n[1]+n[3]),l&&(b=d),{lines:p,height:v,outerWidth:b,outerHeight:S,lineHeight:s,calculatedLineHeight:a,contentWidth:w,contentHeight:h,width:d}}var bK=function(){function e(){}return e}(),oR=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),wK=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 _K(e,t){var r=new wK;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,o=t.overflow,a=(o==="break"||o==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:o==="breakAll"}:null,s=x1.lastIndex=0,l;(l=x1.exec(e))!=null;){var c=l.index;c>s&&S1(r,e.substring(s,c),t,a),S1(r,l[2],t,a,l[1]),s=x1.lastIndex}s<e.length&&S1(r,e.substring(s,e.length),t,a);var d=[],p=0,h=0,v=t.padding,g=o==="truncate",x=t.lineOverflow==="truncate";function y(V,H,Y){V.width=H,V.lineHeight=Y,p+=Y,h=Math.max(h,H)}e:for(var S=0;S<r.lines.length;S++){for(var w=r.lines[S],b=0,C=0,T=0;T<w.tokens.length;T++){var M=w.tokens[T],E=M.styleName&&t.rich[M.styleName]||{},I=M.textPadding=E.padding,D=I?I[1]+I[3]:0,k=M.font=E.font||t.font;M.contentHeight=Jw(k);var O=Tt(E.height,M.contentHeight);if(M.innerHeight=O,I&&(O+=I[0]+I[2]),M.height=O,M.lineHeight=Xv(E.lineHeight,t.lineHeight,O),M.align=E&&E.align||t.align,M.verticalAlign=E&&E.verticalAlign||"middle",x&&i!=null&&p+M.lineHeight>i){T>0?(w.tokens=w.tokens.slice(0,T),y(w,C,b),r.lines=r.lines.slice(0,S+1)):r.lines=r.lines.slice(0,S);break e}var N=E.width,$=N==null||N==="auto";if(typeof N=="string"&&N.charAt(N.length-1)==="%")M.percentWidth=N,d.push(M),M.contentWidth=ai(M.text,k);else{if($){var z=E.backgroundColor,F=z&&z.image;F&&(F=vK(F),Lm(F)&&(M.width=Math.max(M.width,F.width*O/F.height)))}var j=g&&n!=null?n-C:null;j!=null&&j<M.width?!$||j<D?(M.text="",M.width=M.contentWidth=0):(M.text=yK(M.text,j-D,k,t.ellipsis,{minChar:t.truncateMinChar}),M.width=M.contentWidth=ai(M.text,k)):M.contentWidth=ai(M.text,k)}M.width+=D,C+=M.width,E&&(b=Math.max(b,M.lineHeight))}y(w,C,b)}r.outerWidth=r.width=Tt(n,h),r.outerHeight=r.height=Tt(i,p),r.contentHeight=p,r.contentWidth=h,v&&(r.outerWidth+=v[1]+v[3],r.outerHeight+=v[0]+v[2]);for(var S=0;S<d.length;S++){var M=d[S],K=M.percentWidth;M.width=parseInt(K,10)/100*r.width}return r}function S1(e,t,r,n,i){var o=t==="",a=i&&r.rich[i]||{},s=e.lines,l=a.font||r.font,c=!1,d,p;if(n){var h=a.padding,v=h?h[1]+h[3]:0;if(a.width!=null&&a.width!=="auto"){var g=Wl(a.width,n.width)+v;s.length>0&&g+n.accumWidth>n.width&&(d=t.split(`
222
+ `),c=!0),n.accumWidth=g}else{var x=KL(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=x.accumWidth+v,p=x.linesWidths,d=x.lines}}else d=t.split(`
223
+ `);for(var y=0;y<d.length;y++){var S=d[y],w=new bK;if(w.styleName=i,w.text=S,w.isLineHolder=!S&&!o,typeof a.width=="number"?w.width=a.width:w.width=p?p[y]:ai(S,l),!y&&!c){var b=(s[s.length-1]||(s[0]=new oR)).tokens,C=b.length;C===1&&b[0].isLineHolder?b[0]=w:(S||!C||o)&&b.push(w)}else s.push(new oR([w]))}}function CK(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var TK=kc(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function MK(e){return CK(e)?!!TK[e]:!0}function KL(e,t,r,n,i){for(var o=[],a=[],s="",l="",c=0,d=0,p=0;p<e.length;p++){var h=e.charAt(p);if(h===`
224
+ `){l&&(s+=l,d+=c),o.push(s),a.push(d),s="",l="",c=0,d=0;continue}var v=ai(h,t),g=n?!1:!MK(h);if(o.length?d+v>r:i+d+v>r){d?(s||l)&&(g?(s||(s=l,l="",c=0,d=c),o.push(s),a.push(d-c),l+=h,c+=v,s="",d=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(d),s=h,d=v)):g?(o.push(l),a.push(c),l=h,c=v):(o.push(h),a.push(v));continue}d+=v,g?(l+=h,c+=v):(l&&(s+=l,l="",c=0),s+=h)}return!o.length&&!s&&(s=e,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(d)),o.length===1&&(d+=i),{accumWidth:d,lines:o,linesWidths:a}}function Rc(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function kK(e){return[e[0],e[1]]}function aR(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function RK(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function PK(e){return Math.sqrt(EK(e))}function EK(e){return e[0]*e[0]+e[1]*e[1]}function b1(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function AK(e,t){var r=PK(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function MS(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var IK=MS;function DK(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ec=DK;function Ni(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 Vu(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Uu(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var sR=Kw,LK=5e-5;function Xs(e){return e>LK||e<-5e-5}var Ks=[],Cu=[],w1=Qu(),_1=Math.abs,e_=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 Xs(this.rotation)||Xs(this.x)||Xs(this.y)||Xs(this.scaleX-1)||Xs(this.scaleY-1)||Xs(this.skewX)||Xs(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(sR(n),this.invTransform=null);return}n=n||Qu(),r?this.getLocalTransform(n):sR(n),t&&(r?Ju(n,t,n):gK(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ks);var n=Ks[0]<0?-1:1,i=Ks[1]<0?-1:1,o=((Ks[0]-n)*r+n)/Ks[0]||0,a=((Ks[1]-i)*r+i)/Ks[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||Qu(),Qw(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]),o=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(o),r=Math.sqrt(r),this.skewX=o,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||Qu(),Ju(Cu,t.invTransform,r),r=Cu);var n=this.originX,i=this.originY;(n||i)&&(w1[4]=n,w1[5]=i,Ju(Cu,r,w1),Cu[4]-=n,Cu[5]-=i,r=Cu),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&&Ni(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Ni(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&_1(t[0]-1)>1e-10&&_1(t[3]-1)>1e-10?Math.sqrt(_1(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){OK(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,c=t.rotation||0,d=t.x,p=t.y,h=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var g=n+s,x=i+l;r[4]=-g*o-h*x*a,r[5]=-x*a-v*g*o}else r[4]=r[5]=0;return r[0]=o,r[3]=a,r[1]=v*o,r[2]=h*a,c&&Zw(r,r,c),r[4]+=n+d,r[5]+=i+p,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}(),Yd=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function OK(e,t){for(var r=0;r<Yd.length;r++){var n=Yd[r];e[n]=t[n]}}var md={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-md.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?md.bounceIn(e*2)*.5:md.bounceOut(e*2-1)*.5+.5}},sv=Math.pow,fs=Math.sqrt,ZL=1e-8,QL=1e-4,lR=fs(3),lv=1/3,Co=Rc(),Ai=Rc(),tc=Rc();function as(e){return e>-1e-8&&e<ZL}function JL(e){return e>ZL||e<-1e-8}function Kr(e,t,r,n,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*n+3*o*r)}function uR(e,t,r,n,i){var o=1-i;return 3*(((t-e)*o+2*(r-t)*i)*o+(n-r)*i*i)}function Mg(e,t,r,n,i,o){var a=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),c=e-i,d=s*s-3*a*l,p=s*l-9*a*c,h=l*l-3*s*c,v=0;if(as(d)&&as(p))if(as(s))o[0]=0;else{var g=-l/s;g>=0&&g<=1&&(o[v++]=g)}else{var x=p*p-4*d*h;if(as(x)){var y=p/d,g=-s/a+y,S=-y/2;g>=0&&g<=1&&(o[v++]=g),S>=0&&S<=1&&(o[v++]=S)}else if(x>0){var w=fs(x),b=d*s+1.5*a*(-p+w),C=d*s+1.5*a*(-p-w);b<0?b=-sv(-b,lv):b=sv(b,lv),C<0?C=-sv(-C,lv):C=sv(C,lv);var g=(-s-(b+C))/(3*a);g>=0&&g<=1&&(o[v++]=g)}else{var T=(2*d*s-3*a*p)/(2*fs(d*d*d)),M=Math.acos(T)/3,E=fs(d),I=Math.cos(M),g=(-s-2*E*I)/(3*a),S=(-s+E*(I+lR*Math.sin(M)))/(3*a),D=(-s+E*(I-lR*Math.sin(M)))/(3*a);g>=0&&g<=1&&(o[v++]=g),S>=0&&S<=1&&(o[v++]=S),D>=0&&D<=1&&(o[v++]=D)}}return v}function eO(e,t,r,n,i){var o=6*r-12*t+6*e,a=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(as(a)){if(JL(o)){var c=-s/o;c>=0&&c<=1&&(i[l++]=c)}}else{var d=o*o-4*a*s;if(as(d))i[0]=-o/(2*a);else if(d>0){var p=fs(d),c=(-o+p)/(2*a),h=(-o-p)/(2*a);c>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}function kg(e,t,r,n,i,o){var a=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,c=(s-a)*i+a,d=(l-s)*i+s,p=(d-c)*i+c;o[0]=e,o[1]=a,o[2]=c,o[3]=p,o[4]=p,o[5]=d,o[6]=l,o[7]=n}function NK(e,t,r,n,i,o,a,s,l,c,d){var p,h=.005,v=1/0,g,x,y,S;Co[0]=l,Co[1]=c;for(var w=0;w<1;w+=.05)Ai[0]=Kr(e,r,i,a,w),Ai[1]=Kr(t,n,o,s,w),y=ec(Co,Ai),y<v&&(p=w,v=y);v=1/0;for(var b=0;b<32&&!(h<QL);b++)g=p-h,x=p+h,Ai[0]=Kr(e,r,i,a,g),Ai[1]=Kr(t,n,o,s,g),y=ec(Ai,Co),g>=0&&y<v?(p=g,v=y):(tc[0]=Kr(e,r,i,a,x),tc[1]=Kr(t,n,o,s,x),S=ec(tc,Co),x<=1&&S<v?(p=x,v=S):h*=.5);return fs(v)}function BK(e,t,r,n,i,o,a,s,l){for(var c=e,d=t,p=0,h=1/l,v=1;v<=l;v++){var g=v*h,x=Kr(e,r,i,a,g),y=Kr(t,n,o,s,g),S=x-c,w=y-d;p+=Math.sqrt(S*S+w*w),c=x,d=y}return p}function Nn(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function cR(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function $K(e,t,r,n,i){var o=e-2*t+r,a=2*(t-e),s=e-n,l=0;if(as(o)){if(JL(a)){var c=-s/a;c>=0&&c<=1&&(i[l++]=c)}}else{var d=a*a-4*o*s;if(as(d)){var c=-a/(2*o);c>=0&&c<=1&&(i[l++]=c)}else if(d>0){var p=fs(d),c=(-a+p)/(2*o),h=(-a-p)/(2*o);c>=0&&c<=1&&(i[l++]=c),h>=0&&h<=1&&(i[l++]=h)}}return l}function tO(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Rg(e,t,r,n,i){var o=(t-e)*n+e,a=(r-t)*n+t,s=(a-o)*n+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=r}function zK(e,t,r,n,i,o,a,s,l){var c,d=.005,p=1/0;Co[0]=a,Co[1]=s;for(var h=0;h<1;h+=.05){Ai[0]=Nn(e,r,i,h),Ai[1]=Nn(t,n,o,h);var v=ec(Co,Ai);v<p&&(c=h,p=v)}p=1/0;for(var g=0;g<32&&!(d<QL);g++){var x=c-d,y=c+d;Ai[0]=Nn(e,r,i,x),Ai[1]=Nn(t,n,o,x);var v=ec(Ai,Co);if(x>=0&&v<p)c=x,p=v;else{tc[0]=Nn(e,r,i,y),tc[1]=Nn(t,n,o,y);var S=ec(tc,Co);y<=1&&S<p?(c=y,p=S):d*=.5}}return fs(p)}function FK(e,t,r,n,i,o,a){for(var s=e,l=t,c=0,d=1/a,p=1;p<=a;p++){var h=p*d,v=Nn(e,r,i,h),g=Nn(t,n,o,h),x=v-s,y=g-l;c+=Math.sqrt(x*x+y*y),s=v,l=g}return c}var jK=/cubic-bezier\(([0-9,\.e ]+)\)/;function rO(e){var t=e&&jK.exec(e);if(t){var r=t[1].split(","),n=+Mo(r[0]),i=+Mo(r[1]),o=+Mo(r[2]),a=+Mo(r[3]);if(isNaN(n+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:Mg(0,n,o,1,l,s)&&Kr(0,i,a,1,s[0])}}}var WK=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||Tn,this.ondestroy=t.ondestroy||Tn,this.onrestart=t.onrestart||Tn,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,o=i/n;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===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=ot(t)?t:md[t]||rO(t)},e}(),fR={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 ds(e){return e=Math.round(e),e<0?0:e>255?255:e}function kS(e){return e<0?0:e>1?1:e}function C1(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ds(parseFloat(t)/100*255):ds(parseInt(t,10))}function yd(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?kS(parseFloat(t)/100):kS(parseFloat(t))}function T1(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 uv(e,t,r){return e+(t-e)*r}function _i(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function RS(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var nO=new Mp(20),cv=null;function Tu(e,t){cv&&RS(cv,t),cv=nO.put(e,cv||t.slice())}function da(e,t){if(e){t=t||[];var r=nO.get(e);if(r)return RS(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in fR)return RS(t,fR[n]),Tu(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(n.slice(1,4),16);if(!(o>=0&&o<=4095)){_i(t,0,0,0,1);return}return _i(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Tu(e,t),t}else if(i===7||i===9){var o=parseInt(n.slice(1,7),16);if(!(o>=0&&o<=16777215)){_i(t,0,0,0,1);return}return _i(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(n.slice(7),16)/255:1),Tu(e,t),t}return}var a=n.indexOf("("),s=n.indexOf(")");if(a!==-1&&s+1===i){var l=n.substr(0,a),c=n.substr(a+1,s-(a+1)).split(","),d=1;switch(l){case"rgba":if(c.length!==4)return c.length===3?_i(t,+c[0],+c[1],+c[2],1):_i(t,0,0,0,1);d=yd(c.pop());case"rgb":if(c.length>=3)return _i(t,C1(c[0]),C1(c[1]),C1(c[2]),c.length===3?d:yd(c[3])),Tu(e,t),t;_i(t,0,0,0,1);return;case"hsla":if(c.length!==4){_i(t,0,0,0,1);return}return c[3]=yd(c[3]),dR(c,t),Tu(e,t),t;case"hsl":if(c.length!==3){_i(t,0,0,0,1);return}return dR(c,t),Tu(e,t),t;default:return}}_i(t,0,0,0,1)}}function dR(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=yd(e[1]),i=yd(e[2]),o=i<=.5?i*(n+1):i+n-i*n,a=i*2-o;return t=t||[],_i(t,ds(T1(a,o,r+1/3)*255),ds(T1(a,o,r)*255),ds(T1(a,o,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function pR(e,t){var r=da(e);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-t)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Nm(r,r.length===4?"rgba":"rgb")}}function HK(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),o=Math.ceil(n),a=da(t[i]),s=da(t[o]),l=n-i,c=Nm([ds(uv(a[0],s[0],l)),ds(uv(a[1],s[1],l)),ds(uv(a[2],s[2],l)),kS(uv(a[3],s[3],l))],"rgba");return r?{color:c,leftIndex:i,rightIndex:o,value:n}:c}}function Nm(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 Pg(e,t){var r=da(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var hR=new Mp(100);function vR(e){if(We(e)){var t=hR.get(e);return t||(t=pR(e,-.1),hR.put(e,t)),t}else if(Am(e)){var r=Te({},e);return r.colorStops=Ge(e.colorStops,function(n){return{offset:n.offset,color:pR(n.color,-.1)}}),r}return e}function VK(e){return e.type==="linear"}function UK(e){return e.type==="radial"}(function(){return lt.hasGlobalWindow&&ot(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}})();var PS=Array.prototype.slice;function la(e,t,r){return(t-e)*r+e}function M1(e,t,r,n){for(var i=t.length,o=0;o<i;o++)e[o]=la(t[o],r[o],n);return e}function GK(e,t,r,n){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=la(t[a][s],r[a][s],n)}return e}function fv(e,t,r,n){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+r[o]*n;return e}function gR(e,t,r,n){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+r[a][s]*n}return e}function YK(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,o=Math.min(r,n),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(r,n);s++)i.push({offset:a.offset,color:a.color.slice()})}function qK(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var o=n.length,a=i.length;if(o!==a){var s=o>a;if(s)n.length=a;else for(var l=o;l<a;l++)n.push(r===1?i[l]:PS.call(i[l]))}for(var c=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var d=0;d<c;d++)isNaN(n[l][d])&&(n[l][d]=i[l][d])}}function Kv(e){if(Vn(e)){var t=e.length;if(Vn(e[0])){for(var r=[],n=0;n<t;n++)r.push(PS.call(e[n]));return r}return PS.call(e)}return e}function Zv(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 XK(e){return Vn(e&&e[0])?2:1}var dv=0,Qv=1,iO=2,td=3,ES=4,AS=5,mR=6;function yR(e){return e===ES||e===AS}function pv(e){return e===Qv||e===iO}var kf=[0,0,0,0],KK=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,o=i.length,a=!1,s=mR,l=r;if(Vn(r)){var c=XK(r);s=c,(c===1&&!fr(r[0])||c===2&&!fr(r[0][0]))&&(a=!0)}else if(fr(r)&&!Tg(r))s=dv;else if(We(r))if(!isNaN(+r))s=dv;else{var d=da(r);d&&(l=d,s=td)}else if(Am(r)){var p=Te({},l);p.colorStops=Ge(r.colorStops,function(v){return{offset:v.offset,color:da(v.color)}}),VK(r)?s=ES:UK(r)&&(s=AS),l=p}o===0?this.valType=s:(s!==this.valType||s===mR)&&(a=!0),this.discrete=this.discrete||a;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=ot(n)?n:md[n]||rO(n)),i.push(h),h},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(x,y){return x.time-y.time});for(var i=this.valType,o=n.length,a=n[o-1],s=this.discrete,l=pv(i),c=yR(i),d=0;d<o;d++){var p=n[d],h=p.value,v=a.value;p.percent=p.time/t,s||(l&&d!==o-1?qK(h,v,i):c&&YK(h.colorStops,v.colorStops))}if(!s&&i!==AS&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var g=n[0].value,d=0;d<o;d++)i===dv?n[d].additiveValue=n[d].value-g:i===td?n[d].additiveValue=fv([],n[d].value,g,-1):pv(i)&&(n[d].additiveValue=i===Qv?fv([],n[d].value,g,-1):gR([],n[d].value,g,-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",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,c=o===td,d,p=this._lastFr,h=Math.min,v,g;if(s===1)v=g=a[0];else{if(r<0)d=0;else if(r<this._lastFrP){var x=h(p+1,s-1);for(d=x;d>=0&&!(a[d].percent<=r);d--);d=h(d,s-2)}else{for(d=p;d<s&&!(a[d].percent>r);d++);d=h(d-1,s-2)}g=a[d+1],v=a[d]}if(v&&g){this._lastFr=d,this._lastFrP=r;var y=g.percent-v.percent,S=y===0?1:h((r-v.percent)/y,1);g.easingFunc&&(S=g.easingFunc(S));var w=n?this._additiveValue:c?kf:t[l];if((pv(o)||c)&&!w&&(w=this._additiveValue=[]),this.discrete)t[l]=S<1?v.rawValue:g.rawValue;else if(pv(o))o===Qv?M1(w,v[i],g[i],S):GK(w,v[i],g[i],S);else if(yR(o)){var b=v[i],C=g[i],T=o===ES;t[l]={type:T?"linear":"radial",x:la(b.x,C.x,S),y:la(b.y,C.y,S),colorStops:Ge(b.colorStops,function(E,I){var D=C.colorStops[I];return{offset:la(E.offset,D.offset,S),color:Zv(M1([],E.color,D.color,S))}}),global:C.global},T?(t[l].x2=la(b.x2,C.x2,S),t[l].y2=la(b.y2,C.y2,S)):t[l].r=la(b.r,C.r,S)}else if(c)M1(w,v[i],g[i],S),n||(t[l]=Zv(w));else{var M=la(v[i],g[i],S);n?this._additiveValue=M:t[l]=M}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===dv?t[n]=t[n]+i:r===td?(da(t[n],kf),fv(kf,kf,i,1),t[n]=Zv(kf)):r===Qv?fv(t[n],t[n],i,1):r===iO&&gR(t[n],t[n],i,1)},e}(),t_=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){Yw("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,cr(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var o=this._tracks,a=0;a<n.length;a++){var s=n[a],l=o[s];if(!l){l=o[s]=new KK(s);var c=void 0,d=this._getAdditiveTrack(s);if(d){var p=d.keyframes,h=p[p.length-1];c=h&&h.value,d.valType===td&&c&&(c=Zv(c))}else c=this._target[s];if(c==null)continue;t>0&&l.addKeyframe(0,Kv(c),i),this._trackKeys.push(s)}l.addKeyframe(t,Kv(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 o=n[i].getTrack(t);o&&(r=o)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),c=s.keyframes,d=c.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var p=c[d-1];p&&(r._target[s.propName]=p.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new WK({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var g=r._additiveAnimators;if(g){for(var x=!1,y=0;y<g.length;y++)if(g[y]._clip){x=!0;break}x||(r._additiveAnimators=null)}for(var y=0;y<n.length;y++)n[y].step(r._target,v);var S=r._onframeCbs;if(S)for(var y=0;y<S.length;y++)S[y](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.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 Ge(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,o=0;o<t.length;o++){var a=n[t[o]];a&&!a.isFinished()&&(r?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<i.length;o++)if(!n[i[o]].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 o=r[i],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[n?0:s.length-1];l&&(t[o]=Kv(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||cr(t);for(var n=0;n<r.length;n++){var i=r[n],o=this._tracks[i];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}(),uo=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var a=this._$eventProcessor;r!=null&&a&&a.normalizeQuery&&(r=a.normalizeQuery(r)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},c=o[t].length-1,d=o[t][c];return d&&d.callAtLast?o[t].splice(c,0,l):o[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=[],o=0,a=n[t].length;o<a;o++)n[t][o].h!==r&&i.push(n[t][o]);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],o=this._$eventProcessor;if(i)for(var a=r.length,s=i.length,l=0;l<s;l++){var c=i[l];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(a){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,r[0]);break;case 2:c.h.call(c.ctx,r[0],r[1]);break;default:c.h.apply(c.ctx,r);break}}return o&&o.afterTrigger&&o.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],o=this._$eventProcessor;if(i)for(var a=r.length,s=r[a-1],l=i.length,c=0;c<l;c++){var d=i[c];if(!(o&&o.filter&&d.query!=null&&!o.filter(t,d.query)))switch(a){case 0:d.h.call(s);break;case 1:d.h.call(s,r[0]);break;case 2:d.h.call(s,r[0],r[1]);break;default:d.h.apply(s,r.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e}(),oO=1;lt.hasGlobalWindow&&(oO=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Eg=oO,IS=.4,DS="#333",LS="#ccc",ZK="#eee",Do=1,Jv=2,rd=4,k1="__zr_normal__",R1=Yd.concat(["ignore"]),QK=kc(Yd,function(e,t){return e[t]=!0,e},{ignore:!1}),Mu={},JK=new $t(0,0,0,0),Bm=function(){function e(t){this.id=$L(),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,o=r.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=i?this:null;var c=!1;if(o.copyTransform(r),n.position!=null){var d=JK;n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),i||d.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Mu,n,d):YL(Mu,n,d),o.x=Mu.x,o.y=Mu.y,a=Mu.align,s=Mu.verticalAlign;var p=n.origin;if(p&&n.rotation!=null){var h=void 0,v=void 0;p==="center"?(h=d.width*.5,v=d.height*.5):(h=Wl(p[0],d.width),v=Wl(p[1],d.height)),c=!0,o.originX=-o.x+h+(i?0:d.x),o.originY=-o.y+v+(i?0:d.y)}}n.rotation!=null&&(o.rotation=n.rotation);var g=n.offset;g&&(o.x+=g[0],o.y+=g[1],c||(o.originX=-g[0],o.originY=-g[1]));var x=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),S=void 0,w=void 0,b=void 0;x&&this.canBeInsideText()?(S=n.insideFill,w=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(S),b=!0)):(S=n.outsideFill,w=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==y.fill||w!==y.stroke||b!==y.autoStroke||a!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=w,y.autoStroke=b,y.align=a,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=Do,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()?LS:DS},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&da(r);n||(n=[255,255,255,1]);for(var i=n[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*i+(o?0:255)*(1-i);return n[3]=1,Nm(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||{},Te(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(Qe(t))for(var n=t,i=cr(n),o=0;o<i.length;o++){var a=i[o];this.attrKV(a,t[a])}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],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==k1)){var a=i.targetName,s=a?r[a]: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,R1)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var o=n[i];t[o]!=null&&!(o in r)&&(r[o]=this[o])}},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(k1,!1,t)},e.prototype.useState=function(t,r,n,i){var o=t===k1,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(kt(s,t)>=0&&(r||s.length===1))){var c;if(this.stateProxy&&!o&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),!c&&!o){Yw("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(c);var d=!!(c&&c.hoverLayer||i);d&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var p=this._textContent,h=this._textGuide;return p&&p.useState(t,r,n,d),h&&h.useState(t,r,n,d),o?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),c}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var c=t[l],d=void 0;this.stateProxy&&(d=this.stateProxy(c,t)),d||(d=this.states[c]),d&&i.push(d)}var p=i[a-1],h=!!(p&&p.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!r&&!this.__inHover&&g&&g.duration>0,g);var x=this._textContent,y=this._textGuide;x&&x.useStates(t,r,h),y&&y.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},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=kt(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(),o=kt(i,t),a=kt(i,r)>=0;o>=0?a?i.splice(o,1):i[o]=r:n&&!a&&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 o=t[i];Te(r,o),o.textConfig&&(n=n||{},Te(n,o.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,o,a){var s=!(r&&i);r&&r.textConfig?(this.textConfig=Te({},i?this.textConfig:n.textConfig),Te(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},c=!1,d=0;d<R1.length;d++){var p=R1[d],h=o&&QK[p];r&&r[p]!=null?h?(c=!0,l[p]=r[p]):this[p]=r[p]:s&&n[p]!=null&&(h?(c=!0,l[p]=n[p]):this[p]=n[p])}if(!o)for(var d=0;d<this.animators.length;d++){var v=this.animators[d],g=v.targetName;v.getLoop()||v.__changeFinalValue(g?(r||n)[g]:r||n)}c&&this._transitionState(t,l,a)},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 e_,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Te(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|=Do;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,o=new t_(i,r,n);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var o=i.animators,a=kt(o,t);a>=0&&o.splice(a,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,o=[],a=0;a<i;a++){var s=n[a];!t||t===s.scope?s.stop(r):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,r,n){P1(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){P1(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var o=P1(this,r,n,i),a=0;a<o.length;a++)o[a].__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=Do;function r(n,i,o,a){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[o]=l[0],this[a]=l[1],this[i]=l,s(this,l)}});function s(l,c){Object.defineProperty(c,0,{get:function(){return l[o]},set:function(d){l[o]=d}}),Object.defineProperty(c,1,{get:function(){return l[a]},set:function(d){l[a]=d}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Wo(Bm,uo);Wo(Bm,e_);function P1(e,t,r,n,i){r=r||{};var o=[];aO(e,"",e,t,r,n,o,i);var a=o.length,s=!1,l=r.done,c=r.aborted,d=function(){s=!0,a--,a<=0&&(s?l&&l():c&&c())},p=function(){a--,a<=0&&(s?l&&l():c&&c())};a||l&&l(),o.length>0&&r.during&&o[0].during(function(g,x){r.during(x)});for(var h=0;h<o.length;h++){var v=o[h];d&&v.done(d),p&&v.aborted(p),r.force&&v.duration(r.duration),v.start(r.easing)}return o}function E1(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function eZ(e){return Vn(e[0])}function tZ(e,t,r){if(Vn(t[r]))if(Vn(e[r])||(e[r]=[]),Un(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),E1(e[r],t[r],n))}else{var i=t[r],o=e[r],a=i.length;if(eZ(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?E1(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else E1(o,i,a);o.length=i.length}else e[r]=t[r]}function rZ(e,t){return e===t||Vn(e)&&Vn(t)&&nZ(e,t)}function nZ(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 aO(e,t,r,n,i,o,a,s){for(var l=cr(n),c=i.duration,d=i.delay,p=i.additive,h=i.setToFinal,v=!Qe(o),g=e.animators,x=[],y=0;y<l.length;y++){var S=l[y],w=n[S];if(w!=null&&r[S]!=null&&(v||o[S]))if(Qe(w)&&!Vn(w)&&!Am(w)){if(t){s||(r[S]=w,e.updateDuringAnimation(t));continue}aO(e,S,r[S],w,i,o&&o[S],a,s)}else x.push(S);else s||(r[S]=w,e.updateDuringAnimation(t),x.push(S))}var b=x.length;if(!p&&b)for(var C=0;C<g.length;C++){var T=g[C];if(T.targetName===t){var M=T.stopTracks(x);if(M){var E=kt(g,T);g.splice(E,1)}}}if(i.force||(x=hn(x,function(O){return!rZ(n[O],r[O])}),b=x.length),b>0||i.force&&!a.length){var I=void 0,D=void 0,k=void 0;if(s){D={},h&&(I={});for(var C=0;C<b;C++){var S=x[C];D[S]=r[S],h?I[S]=n[S]:r[S]=n[S]}}else if(h){k={};for(var C=0;C<b;C++){var S=x[C];k[S]=Kv(r[S]),tZ(r,n,S)}}var T=new t_(r,!1,!1,p?hn(g,function(N){return N.targetName===t}):null);T.targetName=t,i.scope&&(T.scope=i.scope),h&&I&&T.whenWithKeys(0,I,x),k&&T.whenWithKeys(0,k,x),T.whenWithKeys(c??500,s?D:n,x).delay(d||0),e.addAnimator(T,t),a.push(T)}}var OS="__zr_style_"+Math.round(Math.random()*10),Al={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},$m={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Al[OS]=!0;var xR=["z","z2","invisible"],iZ=["invisible"],kp=function(e){_e(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=cr(r),i=0;i<n.length;i++){var o=n[i];o==="style"?this.useStyle(r[o]):e.prototype.attrKV.call(this,o,r[o])}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,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&oZ(this,r,n)||a&&!a[0]&&!a[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&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),o=this.getBoundingRect();return o.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(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new $t(0,0,0,0)),n?$t.applyTransform(r,i,n):r.copy(i),(a||s||l)&&(r.width+=a*2+Math.abs(s),r.height+=a*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-a),r.y=Math.min(r.y,r.y+l-a));var c=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-c),r.y=Math.floor(r.y-c),r.width=Math.ceil(r.width+1+c*2),r.height=Math.ceil(r.height+1+c*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new $t(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:Te(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Jv,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Jv)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(r){return Im(Al,r)},t.prototype.useStyle=function(r){r[OS]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[OS]},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,xR)},t.prototype._applyStateObj=function(r,n,i,o,a,s){e.prototype._applyStateObj.call(this,r,n,i,o,a,s);var l=!(n&&o),c;if(n&&n.style?a?o?c=n.style:(c=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(c,n.style)):l&&(c=i.style),c)if(a){var d=this.style;if(this.style=this.createStyle(l?{}:d),l)for(var p=cr(d),h=0;h<p.length;h++){var v=p[h];v in c&&(c[v]=c[v],this.style[v]=d[v])}for(var g=cr(c),h=0;h<g.length;h++){var v=g[h];this.style[v]=this.style[v]}this._transitionState(r,{style:c},s,this.getAnimationStyleProps())}else this.useStyle(c);for(var x=this.__inHover?iZ:xR,h=0;h<x.length;h++){var v=x[h];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,o=0;o<r.length;o++){var a=r[o];a.style&&(i=i||{},this._mergeStyle(i,a.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return Te(r,n),r},t.prototype.getAnimationStyleProps=function(){return $m},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=Do|Jv}(),t}(Bm),A1=new $t(0,0,0,0),I1=new $t(0,0,0,0);function oZ(e,t,r){return A1.copy(e.getBoundingRect()),e.transform&&A1.applyTransform(e.transform),I1.width=t,I1.height=r,!A1.intersect(I1)}var Ii=Math.min,Di=Math.max,D1=Math.sin,L1=Math.cos,Zs=Math.PI*2,hv=Rc(),vv=Rc(),gv=Rc();function SR(e,t,r,n,i,o){i[0]=Ii(e,r),i[1]=Ii(t,n),o[0]=Di(e,r),o[1]=Di(t,n)}var bR=[],wR=[];function aZ(e,t,r,n,i,o,a,s,l,c){var d=eO,p=Kr,h=d(e,r,i,a,bR);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var v=0;v<h;v++){var g=p(e,r,i,a,bR[v]);l[0]=Ii(g,l[0]),c[0]=Di(g,c[0])}h=d(t,n,o,s,wR);for(var v=0;v<h;v++){var x=p(t,n,o,s,wR[v]);l[1]=Ii(x,l[1]),c[1]=Di(x,c[1])}l[0]=Ii(e,l[0]),c[0]=Di(e,c[0]),l[0]=Ii(a,l[0]),c[0]=Di(a,c[0]),l[1]=Ii(t,l[1]),c[1]=Di(t,c[1]),l[1]=Ii(s,l[1]),c[1]=Di(s,c[1])}function sZ(e,t,r,n,i,o,a,s){var l=tO,c=Nn,d=Di(Ii(l(e,r,i),1),0),p=Di(Ii(l(t,n,o),1),0),h=c(e,r,i,d),v=c(t,n,o,p);a[0]=Ii(e,i,h),a[1]=Ii(t,o,v),s[0]=Di(e,i,h),s[1]=Di(t,o,v)}function lZ(e,t,r,n,i,o,a,s,l){var c=Vu,d=Uu,p=Math.abs(i-o);if(p%Zs<1e-4&&p>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(hv[0]=L1(i)*r+e,hv[1]=D1(i)*n+t,vv[0]=L1(o)*r+e,vv[1]=D1(o)*n+t,c(s,hv,vv),d(l,hv,vv),i=i%Zs,i<0&&(i=i+Zs),o=o%Zs,o<0&&(o=o+Zs),i>o&&!a?o+=Zs:i<o&&a&&(i+=Zs),a){var h=o;o=i,i=h}for(var v=0;v<o;v+=Math.PI/2)v>i&&(gv[0]=L1(v)*r+e,gv[1]=D1(v)*n+t,c(s,gv,s),d(l,gv,l))}var jt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qs=[],Js=[],mo=[],Ga=[],yo=[],xo=[],O1=Math.min,N1=Math.max,el=Math.cos,tl=Math.sin,ia=Math.abs,NS=Math.PI,ts=NS*2,B1=typeof Float32Array<"u",Rf=[];function $1(e){var t=Math.round(e/NS*1e8)/1e8;return t%2*NS}function uZ(e,t){var r=$1(e[0]);r<0&&(r+=ts);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=ts?i=r+ts:t&&r-i>=ts?i=r-ts:!t&&r>i?i=r+(ts-$1(r-i)):t&&r<i&&(i=r-(ts-$1(i-r))),e[0]=r,e[1]=i}var Hl=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=ia(n/Eg/t)||0,this._uy=ia(n/Eg/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=ia(t-this._xi),i=ia(r-this._yi),o=n>this._ux||i>this._uy;if(this.addData(jt.L,t,r),this._ctx&&o&&this._ctx.lineTo(t,r),o)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var a=n*n+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,o,a){return this._drawPendingPt(),this.addData(jt.C,t,r,n,i,o,a),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,o,a),this._xi=o,this._yi=a,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,o,a){this._drawPendingPt(),Rf[0]=i,Rf[1]=o,uZ(Rf,a),i=Rf[0],o=Rf[1];var s=o-i;return this.addData(jt.A,t,r,n,n,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,r,n,i,o,a),this._xi=el(o)*n+t,this._yi=tl(o)*n+r,this},e.prototype.arcTo=function(t,r,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,o),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)&&B1&&(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,o=0;o<r;o++)n+=t[o].len();B1&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var o=0;o<r;o++)for(var a=t[o].data,s=0;s<a.length;s++)this.data[i++]=a[s];this._len=i},e.prototype.addData=function(t,r,n,i,o,a,s,l,c){if(this._saveData){var d=this.data;this._len+arguments.length>d.length&&(this._expandData(),d=this.data);for(var p=0;p<arguments.length;p++)d[this._len++]=arguments[p]}},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,B1&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){mo[0]=mo[1]=yo[0]=yo[1]=Number.MAX_VALUE,Ga[0]=Ga[1]=xo[0]=xo[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,o=0,a;for(a=0;a<this._len;){var s=t[a++],l=a===1;switch(l&&(r=t[a],n=t[a+1],i=r,o=n),s){case jt.M:r=i=t[a++],n=o=t[a++],yo[0]=i,yo[1]=o,xo[0]=i,xo[1]=o;break;case jt.L:SR(r,n,t[a],t[a+1],yo,xo),r=t[a++],n=t[a++];break;case jt.C:aZ(r,n,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],yo,xo),r=t[a++],n=t[a++];break;case jt.Q:sZ(r,n,t[a++],t[a++],t[a],t[a+1],yo,xo),r=t[a++],n=t[a++];break;case jt.A:var c=t[a++],d=t[a++],p=t[a++],h=t[a++],v=t[a++],g=t[a++]+v;a+=1;var x=!t[a++];l&&(i=el(v)*p+c,o=tl(v)*h+d),lZ(c,d,p,h,v,g,x,yo,xo),r=el(g)*p+c,n=tl(g)*h+d;break;case jt.R:i=r=t[a++],o=n=t[a++];var y=t[a++],S=t[a++];SR(i,o,i+y,o+S,yo,xo);break;case jt.Z:r=i,n=o;break}Vu(mo,mo,yo),Uu(Ga,Ga,xo)}return a===0&&(mo[0]=mo[1]=Ga[0]=Ga[1]=0),new $t(mo[0],mo[1],Ga[0]-mo[0],Ga[1]-mo[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,d=0,p=0,h=0;h<r;){var v=t[h++],g=h===1;g&&(o=t[h],a=t[h+1],s=o,l=a);var x=-1;switch(v){case jt.M:o=s=t[h++],a=l=t[h++];break;case jt.L:{var y=t[h++],S=t[h++],w=y-o,b=S-a;(ia(w)>n||ia(b)>i||h===r-1)&&(x=Math.sqrt(w*w+b*b),o=y,a=S);break}case jt.C:{var C=t[h++],T=t[h++],y=t[h++],S=t[h++],M=t[h++],E=t[h++];x=BK(o,a,C,T,y,S,M,E,10),o=M,a=E;break}case jt.Q:{var C=t[h++],T=t[h++],y=t[h++],S=t[h++];x=FK(o,a,C,T,y,S,10),o=y,a=S;break}case jt.A:var I=t[h++],D=t[h++],k=t[h++],O=t[h++],N=t[h++],$=t[h++],z=$+N;h+=1,g&&(s=el(N)*k+I,l=tl(N)*O+D),x=N1(k,O)*O1(ts,Math.abs($)),o=el(z)*k+I,a=tl(z)*O+D;break;case jt.R:{s=o=t[h++],l=a=t[h++];var F=t[h++],j=t[h++];x=F*2+j*2;break}case jt.Z:{var w=s-o,b=l-a;x=Math.sqrt(w*w+b*b),o=s,a=l;break}}x>=0&&(c[p++]=x,d+=x)}return this._pathLen=d,d},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,o=this._uy,a=this._len,s,l,c,d,p,h,v=r<1,g,x,y=0,S=0,w,b=0,C,T;if(!(v&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,x=this._pathLen,w=r*x,!w)))e:for(var M=0;M<a;){var E=n[M++],I=M===1;switch(I&&(c=n[M],d=n[M+1],s=c,l=d),E!==jt.L&&b>0&&(t.lineTo(C,T),b=0),E){case jt.M:s=c=n[M++],l=d=n[M++],t.moveTo(c,d);break;case jt.L:{p=n[M++],h=n[M++];var D=ia(p-c),k=ia(h-d);if(D>i||k>o){if(v){var O=g[S++];if(y+O>w){var N=(w-y)/O;t.lineTo(c*(1-N)+p*N,d*(1-N)+h*N);break e}y+=O}t.lineTo(p,h),c=p,d=h,b=0}else{var $=D*D+k*k;$>b&&(C=p,T=h,b=$)}break}case jt.C:{var z=n[M++],F=n[M++],j=n[M++],K=n[M++],V=n[M++],H=n[M++];if(v){var O=g[S++];if(y+O>w){var N=(w-y)/O;kg(c,z,j,V,N,Qs),kg(d,F,K,H,N,Js),t.bezierCurveTo(Qs[1],Js[1],Qs[2],Js[2],Qs[3],Js[3]);break e}y+=O}t.bezierCurveTo(z,F,j,K,V,H),c=V,d=H;break}case jt.Q:{var z=n[M++],F=n[M++],j=n[M++],K=n[M++];if(v){var O=g[S++];if(y+O>w){var N=(w-y)/O;Rg(c,z,j,N,Qs),Rg(d,F,K,N,Js),t.quadraticCurveTo(Qs[1],Js[1],Qs[2],Js[2]);break e}y+=O}t.quadraticCurveTo(z,F,j,K),c=j,d=K;break}case jt.A:var Y=n[M++],W=n[M++],q=n[M++],te=n[M++],le=n[M++],ne=n[M++],Q=n[M++],ce=!n[M++],me=q>te?q:te,de=ia(q-te)>.001,fe=le+ne,ge=!1;if(v){var O=g[S++];y+O>w&&(fe=le+ne*(w-y)/O,ge=!0),y+=O}if(de&&t.ellipse?t.ellipse(Y,W,q,te,Q,le,fe,ce):t.arc(Y,W,me,le,fe,ce),ge)break e;I&&(s=el(le)*q+Y,l=tl(le)*te+W),c=el(fe)*q+Y,d=tl(fe)*te+W;break;case jt.R:s=c=n[M],l=d=n[M+1],p=n[M++],h=n[M++];var pe=n[M++],Ne=n[M++];if(v){var O=g[S++];if(y+O>w){var ke=w-y;t.moveTo(p,h),t.lineTo(p+O1(ke,pe),h),ke-=pe,ke>0&&t.lineTo(p+pe,h+O1(ke,Ne)),ke-=Ne,ke>0&&t.lineTo(p+N1(pe-ke,0),h+Ne),ke-=pe,ke>0&&t.lineTo(p,h+N1(Ne-ke,0));break e}y+=O}t.rect(p,h,pe,Ne);break;case jt.Z:if(v){var O=g[S++];if(y+O>w){var N=(w-y)/O;t.lineTo(c*(1-N)+s*N,d*(1-N)+l*N);break e}y+=O}t.closePath(),c=s,d=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 ku(e,t,r,n,i,o,a){if(i===0)return!1;var s=i,l=0,c=e;if(a>t+s&&a>n+s||a<t-s&&a<n-s||o>e+s&&o>r+s||o<e-s&&o<r-s)return!1;if(e!==r)l=(t-n)/(e-r),c=(e*n-r*t)/(e-r);else return Math.abs(o-e)<=s/2;var d=l*o-a+c,p=d*d/(l*l+1);return p<=s/2*s/2}function cZ(e,t,r,n,i,o,a,s,l,c,d){if(l===0)return!1;var p=l;if(d>t+p&&d>n+p&&d>o+p&&d>s+p||d<t-p&&d<n-p&&d<o-p&&d<s-p||c>e+p&&c>r+p&&c>i+p&&c>a+p||c<e-p&&c<r-p&&c<i-p&&c<a-p)return!1;var h=NK(e,t,r,n,i,o,a,s,c,d);return h<=p/2}function fZ(e,t,r,n,i,o,a,s,l){if(a===0)return!1;var c=a;if(l>t+c&&l>n+c&&l>o+c||l<t-c&&l<n-c&&l<o-c||s>e+c&&s>r+c&&s>i+c||s<e-c&&s<r-c&&s<i-c)return!1;var d=zK(e,t,r,n,i,o,s,l);return d<=c/2}var _R=Math.PI*2;function mv(e){return e%=_R,e<0&&(e+=_R),e}var Pf=Math.PI*2;function dZ(e,t,r,n,i,o,a,s,l){if(a===0)return!1;var c=a;s-=e,l-=t;var d=Math.sqrt(s*s+l*l);if(d-c>r||d+c<r)return!1;if(Math.abs(n-i)%Pf<1e-4)return!0;if(o){var p=n;n=mv(i),i=mv(p)}else n=mv(n),i=mv(i);n>i&&(i+=Pf);var h=Math.atan2(l,s);return h<0&&(h+=Pf),h>=n&&h<=i||h+Pf>=n&&h+Pf<=i}function rl(e,t,r,n,i,o){if(o>t&&o>n||o<t&&o<n||n===t)return 0;var a=(o-t)/(n-t),s=n<t?1:-1;(a===1||a===0)&&(s=n<t?.5:-.5);var l=a*(r-e)+e;return l===i?1/0:l>i?s:0}var Ya=Hl.CMD,nl=Math.PI*2,pZ=1e-4;function hZ(e,t){return Math.abs(e-t)<pZ}var wn=[-1,-1,-1],ki=[-1,-1];function vZ(){var e=ki[0];ki[0]=ki[1],ki[1]=e}function gZ(e,t,r,n,i,o,a,s,l,c){if(c>t&&c>n&&c>o&&c>s||c<t&&c<n&&c<o&&c<s)return 0;var d=Mg(t,n,o,s,c,wn);if(d===0)return 0;for(var p=0,h=-1,v=void 0,g=void 0,x=0;x<d;x++){var y=wn[x],S=y===0||y===1?.5:1,w=Kr(e,r,i,a,y);w<l||(h<0&&(h=eO(t,n,o,s,ki),ki[1]<ki[0]&&h>1&&vZ(),v=Kr(t,n,o,s,ki[0]),h>1&&(g=Kr(t,n,o,s,ki[1]))),h===2?y<ki[0]?p+=v<t?S:-S:y<ki[1]?p+=g<v?S:-S:p+=s<g?S:-S:y<ki[0]?p+=v<t?S:-S:p+=s<v?S:-S)}return p}function mZ(e,t,r,n,i,o,a,s){if(s>t&&s>n&&s>o||s<t&&s<n&&s<o)return 0;var l=$K(t,n,o,s,wn);if(l===0)return 0;var c=tO(t,n,o);if(c>=0&&c<=1){for(var d=0,p=Nn(t,n,o,c),h=0;h<l;h++){var v=wn[h]===0||wn[h]===1?.5:1,g=Nn(e,r,i,wn[h]);g<a||(wn[h]<c?d+=p<t?v:-v:d+=o<p?v:-v)}return d}else{var v=wn[0]===0||wn[0]===1?.5:1,g=Nn(e,r,i,wn[0]);return g<a?0:o<t?v:-v}}function yZ(e,t,r,n,i,o,a,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);wn[0]=-l,wn[1]=l;var c=Math.abs(n-i);if(c<1e-4)return 0;if(c>=nl-1e-4){n=0,i=nl;var d=o?1:-1;return a>=wn[0]+e&&a<=wn[1]+e?d:0}if(n>i){var p=n;n=i,i=p}n<0&&(n+=nl,i+=nl);for(var h=0,v=0;v<2;v++){var g=wn[v];if(g+e>a){var x=Math.atan2(s,g),d=o?1:-1;x<0&&(x=nl+x),(x>=n&&x<=i||x+nl>=n&&x+nl<=i)&&(x>Math.PI/2&&x<Math.PI*1.5&&(d=-d),h+=d)}}return h}function sO(e,t,r,n,i){for(var o=e.data,a=e.len(),s=0,l=0,c=0,d=0,p=0,h,v,g=0;g<a;){var x=o[g++],y=g===1;switch(x===Ya.M&&g>1&&(r||(s+=rl(l,c,d,p,n,i))),y&&(l=o[g],c=o[g+1],d=l,p=c),x){case Ya.M:d=o[g++],p=o[g++],l=d,c=p;break;case Ya.L:if(r){if(ku(l,c,o[g],o[g+1],t,n,i))return!0}else s+=rl(l,c,o[g],o[g+1],n,i)||0;l=o[g++],c=o[g++];break;case Ya.C:if(r){if(cZ(l,c,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],t,n,i))return!0}else s+=gZ(l,c,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],n,i)||0;l=o[g++],c=o[g++];break;case Ya.Q:if(r){if(fZ(l,c,o[g++],o[g++],o[g],o[g+1],t,n,i))return!0}else s+=mZ(l,c,o[g++],o[g++],o[g],o[g+1],n,i)||0;l=o[g++],c=o[g++];break;case Ya.A:var S=o[g++],w=o[g++],b=o[g++],C=o[g++],T=o[g++],M=o[g++];g+=1;var E=!!(1-o[g++]);h=Math.cos(T)*b+S,v=Math.sin(T)*C+w,y?(d=h,p=v):s+=rl(l,c,h,v,n,i);var I=(n-S)*C/b+S;if(r){if(dZ(S,w,C,T,T+M,E,t,I,i))return!0}else s+=yZ(S,w,C,T,T+M,E,I,i);l=Math.cos(T+M)*b+S,c=Math.sin(T+M)*C+w;break;case Ya.R:d=l=o[g++],p=c=o[g++];var D=o[g++],k=o[g++];if(h=d+D,v=p+k,r){if(ku(d,p,h,p,t,n,i)||ku(h,p,h,v,t,n,i)||ku(h,v,d,v,t,n,i)||ku(d,v,d,p,t,n,i))return!0}else s+=rl(h,p,h,v,n,i),s+=rl(d,v,d,p,n,i);break;case Ya.Z:if(r){if(ku(l,c,d,p,t,n,i))return!0}else s+=rl(l,c,d,p,n,i);l=d,c=p;break}}return!r&&!hZ(c,p)&&(s+=rl(l,c,d,p,n,i)||0),s!==0}function xZ(e,t,r){return sO(e,0,!1,t,r)}function SZ(e,t,r,n){return sO(e,t,!0,r,n)}var lO=At({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Al),bZ={style:At({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},$m.style)},z1=Yd.concat(["invisible","culling","z","z2","zlevel","parent"]),Qt=function(e){_e(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 o=i.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<z1.length;++s)i[z1[s]]=this[z1[s]];i.__dirty|=Do}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=cr(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o<n.length;o++){var a=n[o],s=r[a];a==="style"?this.style?Te(this.style,s):this.useStyle(s):a==="shape"?Te(this.shape,s):e.prototype.attrKV.call(this,a,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(We(r)){var n=Pg(r,0);return n>.5?DS:n>.2?ZK:LS}else if(r)return LS}return DS},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(We(n)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=Pg(r,0)<IS;if(o===a)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=-5},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 Hl(!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 o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&rd)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),r=a.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,c=n.lineWidth;if(!this.hasFill()){var d=this.strokeContainThreshold;c=Math.max(c,d??4)}l>1e-10&&(s.width+=c/l,s.height+=c/l,s.x-=c/l/2,s.y-=c/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),o=this.getBoundingRect(),a=this.style;if(r=i[0],n=i[1],o.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,c=a.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),SZ(s,l/c,r,n)))return!0}if(this.hasFill())return xZ(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=rd,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:Te(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&rd)},t.prototype.createStyle=function(r){return Im(lO,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Te({},this.shape))},t.prototype._applyStateObj=function(r,n,i,o,a,s){e.prototype._applyStateObj.call(this,r,n,i,o,a,s);var l=!(n&&o),c;if(n&&n.shape?a?o?c=n.shape:(c=Te({},i.shape),Te(c,n.shape)):(c=Te({},o?this.shape:i.shape),Te(c,n.shape)):l&&(c=i.shape),c)if(a){this.shape=Te({},this.shape);for(var d={},p=cr(c),h=0;h<p.length;h++){var v=p[h];typeof c[v]=="object"?this.shape[v]=c[v]:d[v]=c[v]}this._transitionState(r,{shape:d},s)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,o=0;o<r.length;o++){var a=r[o];a.shape&&(i=i||{},this._mergeStyle(i,a.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return bZ},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(o){_e(a,o);function a(s){var l=o.call(this,s)||this;return r.init&&r.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return ht(r.style)},a.prototype.getDefaultShape=function(){return ht(r.shape)},a}(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=Do|Jv|rd}(),t}(kp),wZ=At({strokeFirst:!0,font:jl,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},lO),Ag=function(e){_e(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 Im(wZ,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=Om(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var o=r.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(kp);Ag.prototype.type="tspan";var _Z=At({x:0,y:0},Al),CZ={style:At({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},$m.style)};function TZ(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ks=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Im(_Z,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var o=TZ(n.image)?n.image:this.__image;if(!o)return 0;var a=r==="width"?"height":"width",s=n[a];return s==null?o[r]:o[r]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return CZ},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new $t(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(kp);ks.prototype.type="image";function MZ(e,t){var r=t.x,n=t.y,i=t.width,o=t.height,a=t.r,s,l,c,d;i<0&&(r=r+i,i=-i),o<0&&(n=n+o,o=-o),typeof a=="number"?s=l=c=d=a:a instanceof Array?a.length===1?s=l=c=d=a[0]:a.length===2?(s=c=a[0],l=d=a[1]):a.length===3?(s=a[0],l=d=a[1],c=a[2]):(s=a[0],l=a[1],c=a[2],d=a[3]):s=l=c=d=0;var p;s+l>i&&(p=s+l,s*=i/p,l*=i/p),c+d>i&&(p=c+d,c*=i/p,d*=i/p),l+c>o&&(p=l+c,l*=o/p,c*=o/p),s+d>o&&(p=s+d,s*=o/p,d*=o/p),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+o-c),c!==0&&e.arc(r+i-c,n+o-c,c,0,Math.PI/2),e.lineTo(r+d,n+o),d!==0&&e.arc(r+d,n+o-d,d,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 Gu=Math.round;function uO(e,t,r){if(t){var n=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=n,e.x2=i,e.y1=o,e.y2=a;var s=r&&r.lineWidth;return s&&(Gu(n*2)===Gu(i*2)&&(e.x1=e.x2=Tl(n,s,!0)),Gu(o*2)===Gu(a*2)&&(e.y1=e.y2=Tl(o,s,!0))),e}}function cO(e,t,r){if(t){var n=t.x,i=t.y,o=t.width,a=t.height;e.x=n,e.y=i,e.width=o,e.height=a;var s=r&&r.lineWidth;return s&&(e.x=Tl(n,s,!0),e.y=Tl(i,s,!0),e.width=Math.max(Tl(n+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(Tl(i+a,s,!1)-e.y,a===0?0:1)),e}}function Tl(e,t,r){if(!t)return e;var n=Gu(e*2);return(n+Gu(t))%2===0?n/2:(n+(r?1:-1))/2}var kZ=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),RZ={},dr=function(e){_e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new kZ},t.prototype.buildPath=function(r,n){var i,o,a,s;if(this.subPixelOptimize){var l=cO(RZ,n,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,o=n.y,a=n.width,s=n.height;n.r?MZ(r,n):r.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Qt);dr.prototype.type="rect";var CR={fill:"#000"},TR=2,PZ={style:At({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},$m.style)},Fr=function(e){_e(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=CR,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,LZ(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 $t(0,0,0,0),n=this._children,i=[],o=null,a=0;a<n.length;a++){var s=n[a],l=s.getBoundingRect(),c=s.getLocalTransform(i);c?(r.copy(l),r.applyTransform(c),o=o||r.clone(),o.union(r)):(o=o||l.clone(),o.union(l))}this._rect=o||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||CR},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,o=r.rich||i&&{};return Te(r,n),i&&o?(this._mergeRich(o,i),r.rich=o):o&&(r.rich=o),r},t.prototype._mergeRich=function(r,n){for(var i=cr(n),o=0;o<i.length;o++){var a=i[o];r[a]=r[a]||{},Te(r[a],n[a])}},t.prototype.getAnimationStyleProps=function(){return PZ},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||jl,i=r.padding,o=IR(r),a=SK(o,r),s=F1(r),l=!!r.backgroundColor,c=a.outerHeight,d=a.outerWidth,p=a.contentWidth,h=a.lines,v=a.lineHeight,g=this._defaultStyle,x=r.x||0,y=r.y||0,S=r.align||g.align||"left",w=r.verticalAlign||g.verticalAlign||"top",b=x,C=Fu(y,a.contentHeight,w);if(s||i){var T=ed(x,d,S),M=Fu(y,c,w);s&&this._renderBackground(r,r,T,M,d,c)}C+=v/2,i&&(b=AR(x,S,i),w==="top"?C+=i[0]:w==="bottom"&&(C-=i[2]));for(var E=0,I=!1,D=ER("fill"in r?r.fill:(I=!0,g.fill)),k=PR("stroke"in r?r.stroke:!l&&(!g.autoStroke||I)?(E=TR,g.stroke):null),O=r.textShadowBlur>0,N=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),$=a.calculatedLineHeight,z=0;z<h.length;z++){var F=this._getOrCreateChild(Ag),j=F.createStyle();F.useStyle(j),j.text=h[z],j.x=b,j.y=C,j.textAlign=S,j.textBaseline="middle",j.opacity=r.opacity,j.strokeFirst=!0,O&&(j.shadowBlur=r.textShadowBlur||0,j.shadowColor=r.textShadowColor||"transparent",j.shadowOffsetX=r.textShadowOffsetX||0,j.shadowOffsetY=r.textShadowOffsetY||0),j.stroke=k,j.fill=D,k&&(j.lineWidth=r.lineWidth||E,j.lineDash=r.lineDash,j.lineDashOffset=r.lineDashOffset||0),j.font=n,kR(j,r),C+=v,N&&F.setBoundingRect(new $t(ed(j.x,r.width,j.textAlign),Fu(j.y,$,j.textBaseline),p,$))}},t.prototype._updateRichTexts=function(){var r=this.style,n=IR(r),i=_K(n,r),o=i.width,a=i.outerWidth,s=i.outerHeight,l=r.padding,c=r.x||0,d=r.y||0,p=this._defaultStyle,h=r.align||p.align,v=r.verticalAlign||p.verticalAlign,g=ed(c,a,h),x=Fu(d,s,v),y=g,S=x;l&&(y+=l[3],S+=l[0]);var w=y+o;F1(r)&&this._renderBackground(r,r,g,x,a,s);for(var b=!!r.backgroundColor,C=0;C<i.lines.length;C++){for(var T=i.lines[C],M=T.tokens,E=M.length,I=T.lineHeight,D=T.width,k=0,O=y,N=w,$=E-1,z=void 0;k<E&&(z=M[k],!z.align||z.align==="left");)this._placeToken(z,r,I,S,O,"left",b),D-=z.width,O+=z.width,k++;for(;$>=0&&(z=M[$],z.align==="right");)this._placeToken(z,r,I,S,N,"right",b),D-=z.width,N-=z.width,$--;for(O+=(o-(O-y)-(w-N)-D)/2;k<=$;)z=M[k],this._placeToken(z,r,I,S,O+z.width/2,"center",b),O+=z.width,k++;S+=I}},t.prototype._placeToken=function(r,n,i,o,a,s,l){var c=n.rich[r.styleName]||{};c.text=r.text;var d=r.verticalAlign,p=o+i/2;d==="top"?p=o+r.height/2:d==="bottom"&&(p=o+i-r.height/2);var h=!r.isLineHolder&&F1(c);h&&this._renderBackground(c,n,s==="right"?a-r.width:s==="center"?a-r.width/2:a,p-r.height/2,r.width,r.height);var v=!!c.backgroundColor,g=r.textPadding;g&&(a=AR(a,s,g),p-=r.height/2-g[0]-r.innerHeight/2);var x=this._getOrCreateChild(Ag),y=x.createStyle();x.useStyle(y);var S=this._defaultStyle,w=!1,b=0,C=ER("fill"in c?c.fill:"fill"in n?n.fill:(w=!0,S.fill)),T=PR("stroke"in c?c.stroke:"stroke"in n?n.stroke:!v&&!l&&(!S.autoStroke||w)?(b=TR,S.stroke):null),M=c.textShadowBlur>0||n.textShadowBlur>0;y.text=r.text,y.x=a,y.y=p,M&&(y.shadowBlur=c.textShadowBlur||n.textShadowBlur||0,y.shadowColor=c.textShadowColor||n.textShadowColor||"transparent",y.shadowOffsetX=c.textShadowOffsetX||n.textShadowOffsetX||0,y.shadowOffsetY=c.textShadowOffsetY||n.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=r.font||jl,y.opacity=Xv(c.opacity,n.opacity,1),kR(y,c),T&&(y.lineWidth=Xv(c.lineWidth,n.lineWidth,b),y.lineDash=Tt(c.lineDash,n.lineDash),y.lineDashOffset=n.lineDashOffset||0,y.stroke=T),C&&(y.fill=C);var E=r.contentWidth,I=r.contentHeight;x.setBoundingRect(new $t(ed(y.x,E,y.textAlign),Fu(y.y,I,y.textBaseline),E,I))},t.prototype._renderBackground=function(r,n,i,o,a,s){var l=r.backgroundColor,c=r.borderWidth,d=r.borderColor,p=l&&l.image,h=l&&!p,v=r.borderRadius,g=this,x,y;if(h||r.lineHeight||c&&d){x=this._getOrCreateChild(dr),x.useStyle(x.createStyle()),x.style.fill=null;var S=x.shape;S.x=i,S.y=o,S.width=a,S.height=s,S.r=v,x.dirtyShape()}if(h){var w=x.style;w.fill=l||null,w.fillOpacity=Tt(r.fillOpacity,1)}else if(p){y=this._getOrCreateChild(ks),y.onload=function(){g.dirtyStyle()};var b=y.style;b.image=l.image,b.x=i,b.y=o,b.width=a,b.height=s}if(c&&d){var w=x.style;w.lineWidth=c,w.stroke=d,w.strokeOpacity=Tt(r.strokeOpacity,1),w.lineDash=r.borderDash,w.lineDashOffset=r.borderDashOffset||0,x.strokeContainThreshold=0,x.hasFill()&&x.hasStroke()&&(w.strokeFirst=!0,w.lineWidth*=2)}var C=(x||y).style;C.shadowBlur=r.shadowBlur||0,C.shadowColor=r.shadowColor||"transparent",C.shadowOffsetX=r.shadowOffsetX||0,C.shadowOffsetY=r.shadowOffsetY||0,C.opacity=Xv(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return DZ(r)&&(n=[r.fontStyle,r.fontWeight,IZ(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Mo(n)||r.textFont||r.font},t}(kp),EZ={left:!0,right:1,center:1},AZ={top:1,bottom:1,middle:1},MR=["fontStyle","fontWeight","fontSize","fontFamily"];function IZ(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Vw+"px":e+"px"}function kR(e,t){for(var r=0;r<MR.length;r++){var n=MR[r],i=t[n];i!=null&&(e[n]=i)}}function DZ(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function LZ(e){return RR(e),U(e.rich,RR),e}function RR(e){if(e){e.font=Fr.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||EZ[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||AZ[r]?r:"top";var n=e.padding;n&&(e.padding=zL(e.padding))}}function PR(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function ER(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function AR(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function IR(e){var t=e.text;return t!=null&&(t+=""),t}function F1(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var OZ=1e-4,fO=20;function NZ(e){return e.replace(/^\s+|\s+$/g,"")}function dn(e,t,r,n){var i=t[0],o=t[1],a=r[0],s=r[1],l=o-i,c=s-a;if(l===0)return c===0?a:(a+s)/2;if(n)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*c+a}function Zr(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 We(e)?NZ(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Lr(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),fO),e=(+e).toFixed(t),r?e:+e}function nd(e){return e.sort(function(t,r){return t-r}),e}function ca(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 BZ(e)}function BZ(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-n)}function dO(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),o=Math.round(r(Math.abs(t[1]-t[0]))/n),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function $Z(e,t){var r=Math.max(ca(e),ca(t)),n=e+t;return r>fO?n:Lr(n,r)}function pO(e){var t=Math.PI*2;return(e%t+t)%t}function Ig(e){return e>-1e-4&&e<OZ}var zZ=/^(?:(\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 ya(e){if(e instanceof Date)return e;if(We(e)){var t=zZ.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 FZ(e){return Math.pow(10,r_(e))}function r_(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 hO(e,t){var r=r_(e),n=Math.pow(10,r),i=e/n,o;return i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10,e=o*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Dg(e){var t=parseFloat(e);return t==e&&(t!==0||!We(e)||e.indexOf("x")<=0)?t:NaN}function jZ(e){return!isNaN(Dg(e))}function vO(){return Math.round(Math.random()*9)}function gO(e,t){return t===0?e:gO(t,e%t)}function DR(e,t){return e==null?t:t==null?e:e*t/gO(e,t)}function Bn(e){throw new Error(e)}function LR(e,t,r){return(t-e)*r+e}var mO="series\0",yO="\0_ec_\0";function Mn(e){return e instanceof Array?e:e==null?[]:[e]}function OR(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 o=r[n];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var NR=["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 Rp(e){return Qe(e)&&!De(e)&&!(e instanceof Date)?e.value:e}function WZ(e){return Qe(e)&&!(e instanceof Array)}function HZ(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",o=r==="replaceAll";e=e||[],t=(t||[]).slice();var a=ft();U(t,function(l,c){if(!Qe(l)){t[c]=null;return}});var s=VZ(e,a,r);return(n||i)&&UZ(s,e,a,t),n&&GZ(s,t),n||i?YZ(s,t,i):o&&qZ(s,t),XZ(s),s}function VZ(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var o=e[i];o&&o.id!=null&&t.set(o.id,i),n.push({existing:r==="replaceMerge"||qd(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}function UZ(e,t,r,n){U(n,function(i,o){if(!(!i||i.id==null)){var a=xd(i.id),s=r.get(a);if(s!=null){var l=e[s];$o(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],n[o]=null}}})}function GZ(e,t){U(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(o.id==null||r.id==null)&&!qd(r)&&!qd(o)&&xO("name",o,r)){e[i].newOption=r,t[n]=null;return}}})}function YZ(e,t,r){U(t,function(n){if(n){for(var i,o=0;(i=e[o])&&(i.newOption||qd(i.existing)||i.existing&&n.id!=null&&!xO("id",n,i.existing));)o++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),o++}})}function qZ(e,t){U(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function XZ(e){var t=ft();U(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),U(e,function(r){var n=r.newOption;$o(!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={})}),U(e,function(r,n){var i=r.existing,o=r.newOption,a=r.keyInfo;if(Qe(o)){if(a.name=o.name!=null?xd(o.name):i?i.name:mO+n,i)a.id=xd(i.id);else if(o.id!=null)a.id=xd(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,r)}})}function xO(e,t,r){var n=Lo(t[e],null),i=Lo(r[e],null);return n!=null&&i!=null&&n===i}function xd(e){return Lo(e,"")}function Lo(e,t){return e==null?t:We(e)?e:fr(e)||wS(e)?e+"":t}function n_(e){var t=e.name;return!!(t&&t.indexOf(mO))}function qd(e){return e&&e.id!=null&&xd(e.id).indexOf(yO)===0}function KZ(e){return yO+e}function ZZ(e,t,r){U(e,function(n){var i=n.newOption;Qe(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=QZ(t,i,n.existing,r))})}function QZ(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function Vl(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return De(t.dataIndex)?Ge(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return De(t.name)?Ge(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Or(){var e="__ec_inner_"+JZ++;return function(t){return t[e]||(t[e]={})}}var JZ=vO();function Sd(e,t,r){var n=i_(t,r),i=n.mainTypeSpecified,o=n.queryOptionMap,a=n.others,s=a,l=r?r.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(c,d){var p=Pp(e,d,c,{useDefault:l===d,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[d+"Models"]=p.models,s[d+"Model"]=p.models[0]}),s}function i_(e,t){var r;if(We(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=ft(),o={},a=!1;return U(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var c=l.match(/^(\w+)(Index|Id|Name)$/)||[],d=c[1],p=(c[2]||"").toLowerCase();if(!(!d||!p||t&&t.includeMainTypes&&kt(t.includeMainTypes,d)<0)){a=a||!!d;var h=i.get(d)||i.set(d,{});h[p]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var _n={useDefault:!0,enableAll:!1,enableNone:!1},eQ={useDefault:!1,enableAll:!0,enableNone:!0};function Pp(e,t,r,n){n=n||_n;var i=r.index,o=r.id,a=r.name,s={models:null,specified:i!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?($o(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&($o(n.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function SO(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function tQ(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function rQ(e){return e==="auto"?lt.domSupported?"html":"richText":e||"html"}function nQ(e,t,r,n,i){var o=t==null||t==="auto";if(n==null)return n;if(fr(n)){var a=LR(r||0,n,i);return Lr(a,o?Math.max(ca(r||0),ca(n)):t)}else{if(We(n))return i<1?r:n;for(var s=[],l=r,c=n,d=Math.max(l?l.length:0,c.length),p=0;p<d;++p){var h=e.getDimensionInfo(p);if(h&&h.type==="ordinal")s[p]=(i<1&&l?l:c)[p];else{var v=l&&l[p]?l[p]:0,g=c[p],a=LR(v,g,i);s[p]=Lr(a,o?Math.max(ca(v),ca(g)):t)}}return s}}var Vt=Or(),iQ=function(e,t,r,n){if(n){var i=Vt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(o){var a=Vt(o);a.seriesIndex=e,a.dataIndex=r,a.dataType=t,a.ssrType="chart"})}},BR=1,$R={},bO=Or(),o_=Or(),a_=0,zm=1,Fm=2,zo=["emphasis","blur","select"],zR=["normal","emphasis","blur","select"],oQ=10,aQ=9,Il="highlight",eg="downplay",bd="select",tg="unselect",wd="toggleSelect";function Ru(e){return e!=null&&e!=="none"}function jm(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function wO(e){jm(e,"emphasis",Fm)}function _O(e){e.hoverState===Fm&&jm(e,"normal",a_)}function s_(e){jm(e,"blur",zm)}function CO(e){e.hoverState===zm&&jm(e,"normal",a_)}function sQ(e){e.selected=!0}function lQ(e){e.selected=!1}function FR(e,t,r){t(e,r)}function wa(e,t,r){FR(e,t,r),e.isGroup&&e.traverse(function(n){FR(n,t,r)})}function jR(e,t){switch(t){case"emphasis":e.hoverState=Fm;break;case"normal":e.hoverState=a_;break;case"blur":e.hoverState=zm;break;case"select":e.selected=!0}}function uQ(e,t,r,n){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=l??(n&&n[s])}for(var a=0;a<e.animators.length;a++){var c=e.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(r)<0&&c.targetName==="style"&&c.saveTo(o,t)}return o}function cQ(e,t,r,n){var i=r&&kt(r,"select")>=0,o=!1;if(e instanceof Qt){var a=bO(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Ru(s)||Ru(l)){n=n||{};var c=n.style||{};c.fill==="inherit"?(o=!0,n=Te({},n),c=Te({},c),c.fill=s):!Ru(c.fill)&&Ru(s)?(o=!0,n=Te({},n),c=Te({},c),c.fill=vR(s)):!Ru(c.stroke)&&Ru(l)&&(o||(n=Te({},n),c=Te({},c)),c.stroke=vR(l)),n.style=c}}if(n&&n.z2==null){o||(n=Te({},n));var d=e.z2EmphasisLift;n.z2=e.z2+(d??oQ)}return n}function fQ(e,t,r){if(r&&r.z2==null){r=Te({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??aQ)}return r}function dQ(e,t,r){var n=kt(e.currentStates,t)>=0,i=e.style.opacity,o=n?null:uQ(e,["opacity"],t,{opacity:1});r=r||{};var a=r.style||{};return a.opacity==null&&(r=Te({},r),a=Te({opacity:n?i:o.opacity*.1},a),r.style=a),r}function j1(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return cQ(this,e,t,r);if(e==="blur")return dQ(this,e,r);if(e==="select")return fQ(this,e,r)}return r}function pQ(e){e.stateProxy=j1;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=j1),r&&(r.stateProxy=j1)}function WR(e,t){!RO(e,t)&&!e.__highByOuter&&wa(e,wO)}function HR(e,t){!RO(e,t)&&!e.__highByOuter&&wa(e,_O)}function mc(e,t){e.__highByOuter|=1<<(t||0),wa(e,wO)}function yc(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&wa(e,_O)}function hQ(e){wa(e,s_)}function TO(e){wa(e,CO)}function MO(e){wa(e,sQ)}function kO(e){wa(e,lQ)}function RO(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function PO(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,o){var a=o_(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&n.push(l),a.isBlured&&(l.group.traverse(function(c){CO(c)}),s&&r.push(o)),a.isBlured=!1}),U(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function BS(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function o(c,d){for(var p=0;p<d.length;p++){var h=c.getItemGraphicEl(d[p]);h&&TO(h)}}if(e!=null&&!(!t||t==="none")){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(c){var d=a===c,p=c.coordinateSystem;p&&p.master&&(p=p.master);var h=p&&s?p===s:d;if(!(r==="series"&&!d||r==="coordinateSystem"&&!h||t==="series"&&d)){var v=n.getViewOfSeriesModel(c);if(v.group.traverse(function(y){y.__highByOuter&&d&&t==="self"||s_(y)}),Vn(t))o(c.getData(),t);else if(Qe(t))for(var g=cr(t),x=0;x<g.length;x++)o(c.getData(g[x]),t[g[x]]);l.push(c),o_(c).isBlured=!0}}),i.eachComponent(function(c,d){if(c!=="series"){var p=n.getViewOfComponentModel(d);p&&p.toggleBlurSeries&&p.toggleBlurSeries(l,!0,i)}})}}function $S(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){o_(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(o){s_(o)})}}}function vQ(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=Vl(i,t);o=(De(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var c=Vt(a);BS(n,c.focus,c.blurScope,r)}else{var d=e.get(["emphasis","focus"]),p=e.get(["emphasis","blurScope"]);d!=null&&BS(n,d,p,r)}}}function l_(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var o=n.getModel().getComponent(e,t);if(!o)return i;var a=n.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s=a.findHighDownDispatchers(r),l,c=0;c<s.length;c++)if(Vt(s[c]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function gQ(e,t,r){var n=Vt(e),i=l_(n.componentMainType,n.componentIndex,n.componentHighDownName,r),o=i.dispatchers,a=i.focusSelf;o?(a&&$S(n.componentMainType,n.componentIndex,r),U(o,function(s){return WR(s,t)})):(BS(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&$S(n.componentMainType,n.componentIndex,r),WR(e,t))}function mQ(e,t,r){PO(r);var n=Vt(e),i=l_(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?U(i,function(o){return HR(o,t)}):HR(e,t)}function yQ(e,t,r){if(jS(t)){var n=t.dataType,i=e.getData(n),o=Vl(i,t);De(o)||(o=[o]),e[t.type===wd?"toggleSelect":t.type===bd?"select":"unselect"](o,n)}}function VR(e){var t=e.getAllData();U(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(o,a){e.isSelected(a,i)?MO(o):kO(o)})})}function xQ(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();U(n,function(i){i.data;var o=i.type,a=r.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:r.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function Lg(e,t,r){EO(e,!0),wa(e,pQ),bQ(e,t,r)}function SQ(e){EO(e,!1)}function zS(e,t,r,n){n?SQ(e):Lg(e,t,r)}function bQ(e,t,r){var n=Vt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var UR=["emphasis","blur","select"],wQ={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function GR(e,t,r,n){r=r||"itemStyle";for(var i=0;i<UR.length;i++){var o=UR[i],a=t.getModel([o,r]),s=e.ensureState(o);s.style=a[wQ[r]]()}}function EO(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 FS(e){return!!(e&&e.__highDownDispatcher)}function _Q(e){var t=$R[e];return t==null&&BR<=32&&(t=$R[e]=BR++),t}function jS(e){var t=e.type;return t===bd||t===tg||t===wd}function YR(e){var t=e.type;return t===Il||t===eg}function CQ(e){var t=bO(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 Pu=Hl.CMD,TQ=[[],[],[]],qR=Math.sqrt,MQ=Math.atan2;function kQ(e,t){if(t){var r=e.data,n=e.len(),i,o,a,s,l,c,d=Pu.M,p=Pu.C,h=Pu.L,v=Pu.R,g=Pu.A,x=Pu.Q;for(a=0,s=0;a<n;){switch(i=r[a++],s=a,o=0,i){case d:o=1;break;case h:o=1;break;case p:o=3;break;case x:o=2;break;case g:var y=t[4],S=t[5],w=qR(t[0]*t[0]+t[1]*t[1]),b=qR(t[2]*t[2]+t[3]*t[3]),C=MQ(-t[1]/b,t[0]/w);r[a]*=w,r[a++]+=y,r[a]*=b,r[a++]+=S,r[a++]*=w,r[a++]*=b,r[a++]+=C,r[a++]+=C,a+=2,s=a;break;case v:c[0]=r[a++],c[1]=r[a++],Ni(c,c,t),r[s++]=c[0],r[s++]=c[1],c[0]+=r[a++],c[1]+=r[a++],Ni(c,c,t),r[s++]=c[0],r[s++]=c[1]}for(l=0;l<o;l++){var T=TQ[l];T[0]=r[a++],T[1]=r[a++],Ni(T,T,t),r[s++]=T[0],r[s++]=T[1]}}e.increaseVersion()}}var W1=Math.sqrt,yv=Math.sin,xv=Math.cos,Ef=Math.PI;function XR(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function WS(e,t){return(e[0]*t[0]+e[1]*t[1])/(XR(e)*XR(t))}function KR(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(WS(e,t))}function ZR(e,t,r,n,i,o,a,s,l,c,d){var p=l*(Ef/180),h=xv(p)*(e-r)/2+yv(p)*(t-n)/2,v=-1*yv(p)*(e-r)/2+xv(p)*(t-n)/2,g=h*h/(a*a)+v*v/(s*s);g>1&&(a*=W1(g),s*=W1(g));var x=(i===o?-1:1)*W1((a*a*(s*s)-a*a*(v*v)-s*s*(h*h))/(a*a*(v*v)+s*s*(h*h)))||0,y=x*a*v/s,S=x*-s*h/a,w=(e+r)/2+xv(p)*y-yv(p)*S,b=(t+n)/2+yv(p)*y+xv(p)*S,C=KR([1,0],[(h-y)/a,(v-S)/s]),T=[(h-y)/a,(v-S)/s],M=[(-1*h-y)/a,(-1*v-S)/s],E=KR(T,M);if(WS(T,M)<=-1&&(E=Ef),WS(T,M)>=1&&(E=0),E<0){var I=Math.round(E/Ef*1e6)/1e6;E=Ef*2+I%2*Ef}d.addData(c,w,b,a,s,C,E,p,o)}var RQ=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,PQ=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function EQ(e){var t=new Hl;if(!e)return t;var r=0,n=0,i=r,o=n,a,s=Hl.CMD,l=e.match(RQ);if(!l)return t;for(var c=0;c<l.length;c++){for(var d=l[c],p=d.charAt(0),h=void 0,v=d.match(PQ)||[],g=v.length,x=0;x<g;x++)v[x]=parseFloat(v[x]);for(var y=0;y<g;){var S=void 0,w=void 0,b=void 0,C=void 0,T=void 0,M=void 0,E=void 0,I=r,D=n,k=void 0,O=void 0;switch(p){case"l":r+=v[y++],n+=v[y++],h=s.L,t.addData(h,r,n);break;case"L":r=v[y++],n=v[y++],h=s.L,t.addData(h,r,n);break;case"m":r+=v[y++],n+=v[y++],h=s.M,t.addData(h,r,n),i=r,o=n,p="l";break;case"M":r=v[y++],n=v[y++],h=s.M,t.addData(h,r,n),i=r,o=n,p="L";break;case"h":r+=v[y++],h=s.L,t.addData(h,r,n);break;case"H":r=v[y++],h=s.L,t.addData(h,r,n);break;case"v":n+=v[y++],h=s.L,t.addData(h,r,n);break;case"V":n=v[y++],h=s.L,t.addData(h,r,n);break;case"C":h=s.C,t.addData(h,v[y++],v[y++],v[y++],v[y++],v[y++],v[y++]),r=v[y-2],n=v[y-1];break;case"c":h=s.C,t.addData(h,v[y++]+r,v[y++]+n,v[y++]+r,v[y++]+n,v[y++]+r,v[y++]+n),r+=v[y-2],n+=v[y-1];break;case"S":S=r,w=n,k=t.len(),O=t.data,a===s.C&&(S+=r-O[k-4],w+=n-O[k-3]),h=s.C,I=v[y++],D=v[y++],r=v[y++],n=v[y++],t.addData(h,S,w,I,D,r,n);break;case"s":S=r,w=n,k=t.len(),O=t.data,a===s.C&&(S+=r-O[k-4],w+=n-O[k-3]),h=s.C,I=r+v[y++],D=n+v[y++],r+=v[y++],n+=v[y++],t.addData(h,S,w,I,D,r,n);break;case"Q":I=v[y++],D=v[y++],r=v[y++],n=v[y++],h=s.Q,t.addData(h,I,D,r,n);break;case"q":I=v[y++]+r,D=v[y++]+n,r+=v[y++],n+=v[y++],h=s.Q,t.addData(h,I,D,r,n);break;case"T":S=r,w=n,k=t.len(),O=t.data,a===s.Q&&(S+=r-O[k-4],w+=n-O[k-3]),r=v[y++],n=v[y++],h=s.Q,t.addData(h,S,w,r,n);break;case"t":S=r,w=n,k=t.len(),O=t.data,a===s.Q&&(S+=r-O[k-4],w+=n-O[k-3]),r+=v[y++],n+=v[y++],h=s.Q,t.addData(h,S,w,r,n);break;case"A":b=v[y++],C=v[y++],T=v[y++],M=v[y++],E=v[y++],I=r,D=n,r=v[y++],n=v[y++],h=s.A,ZR(I,D,r,n,M,E,b,C,T,h,t);break;case"a":b=v[y++],C=v[y++],T=v[y++],M=v[y++],E=v[y++],I=r,D=n,r+=v[y++],n+=v[y++],h=s.A,ZR(I,D,r,n,M,E,b,C,T,h,t);break}}(p==="z"||p==="Z")&&(h=s.Z,t.addData(h),r=i,n=o),a=h}return t.toStatic(),t}var AO=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Qt);function IO(e){return e.setData!=null}function DO(e,t){var r=EQ(e),n=Te({},t);return n.buildPath=function(i){if(IO(i)){i.setData(r.data);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=i;r.rebuildPath(o,1)}},n.applyTransform=function(i){kQ(r,i),this.dirtyShape()},n}function AQ(e,t){return new AO(DO(e,t))}function IQ(e,t){var r=DO(e,t),n=function(i){_e(o,i);function o(a){var s=i.call(this,a)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return o}(AO);return n}function DQ(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var o=e[i];r.push(o.getUpdatedPathProxy(!0))}var a=new Qt(t);return a.createPathProxy(),a.buildPath=function(s){if(IO(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var Mr=function(e){_e(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,o=i.indexOf(n);o>=0&&(i.splice(o,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=kt(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,o=i[n];if(r&&r!==this&&r.parent!==this&&r!==o){i[n]=r,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),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,o=kt(i,r);return o<0?this:(i.splice(o,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 o=r[i];n&&o.removeSelfFromZr(n),o.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,o=0;o<i.length;o++){var a=i[o];r.call(n,a,o)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var o=this._children[i],a=r.call(n,o);o.isGroup&&!a&&o.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 $t(0,0,0,0),i=r||this._children,o=[],a=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var c=l.getBoundingRect(),d=l.getLocalTransform(o);d?($t.applyTransform(n,c,d),a=a||n.clone(),a.union(n)):(a=a||c.clone(),a.union(c))}}return a||n},t}(Bm);Mr.prototype.type="group";var LQ=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Wm=function(e){_e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new LQ},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}(Qt);Wm.prototype.type="circle";var OQ=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),u_=function(e){_e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new OQ},t.prototype.buildPath=function(r,n){var i=.5522848,o=n.cx,a=n.cy,s=n.rx,l=n.ry,c=s*i,d=l*i;r.moveTo(o-s,a),r.bezierCurveTo(o-s,a-d,o-c,a-l,o,a-l),r.bezierCurveTo(o+c,a-l,o+s,a-d,o+s,a),r.bezierCurveTo(o+s,a+d,o+c,a+l,o,a+l),r.bezierCurveTo(o-c,a+l,o-s,a+d,o-s,a),r.closePath()},t}(Qt);u_.prototype.type="ellipse";var LO=Math.PI,H1=LO*2,il=Math.sin,Eu=Math.cos,NQ=Math.acos,ln=Math.atan2,QR=Math.abs,_d=Math.sqrt,id=Math.max,So=Math.min,eo=1e-4;function BQ(e,t,r,n,i,o,a,s){var l=r-e,c=n-t,d=a-i,p=s-o,h=p*l-d*c;if(!(h*h<eo))return h=(d*(t-o)-p*(e-i))/h,[e+h*l,t+h*c]}function Sv(e,t,r,n,i,o,a){var s=e-r,l=t-n,c=(a?o:-o)/_d(s*s+l*l),d=c*l,p=-c*s,h=e+d,v=t+p,g=r+d,x=n+p,y=(h+g)/2,S=(v+x)/2,w=g-h,b=x-v,C=w*w+b*b,T=i-o,M=h*x-g*v,E=(b<0?-1:1)*_d(id(0,T*T*C-M*M)),I=(M*b-w*E)/C,D=(-M*w-b*E)/C,k=(M*b+w*E)/C,O=(-M*w+b*E)/C,N=I-y,$=D-S,z=k-y,F=O-S;return N*N+$*$>z*z+F*F&&(I=k,D=O),{cx:I,cy:D,x0:-d,y0:-p,x1:I*(i/T-1),y1:D*(i/T-1)}}function $Q(e){var t;if(De(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 zQ(e,t){var r,n=id(t.r,0),i=id(t.r0||0,0),o=n>0,a=i>0;if(!(!o&&!a)){if(o||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,c=t.endAngle;if(!(isNaN(l)||isNaN(c))){var d=t.cx,p=t.cy,h=!!t.clockwise,v=QR(c-l),g=v>H1&&v%H1;if(g>eo&&(v=g),!(n>eo))e.moveTo(d,p);else if(v>H1-eo)e.moveTo(d+n*Eu(l),p+n*il(l)),e.arc(d,p,n,l,c,!h),i>eo&&(e.moveTo(d+i*Eu(c),p+i*il(c)),e.arc(d,p,i,c,l,h));else{var x=void 0,y=void 0,S=void 0,w=void 0,b=void 0,C=void 0,T=void 0,M=void 0,E=void 0,I=void 0,D=void 0,k=void 0,O=void 0,N=void 0,$=void 0,z=void 0,F=n*Eu(l),j=n*il(l),K=i*Eu(c),V=i*il(c),H=v>eo;if(H){var Y=t.cornerRadius;Y&&(r=$Q(Y),x=r[0],y=r[1],S=r[2],w=r[3]);var W=QR(n-i)/2;if(b=So(W,S),C=So(W,w),T=So(W,x),M=So(W,y),D=E=id(b,C),k=I=id(T,M),(E>eo||I>eo)&&(O=n*Eu(c),N=n*il(c),$=i*Eu(l),z=i*il(l),v<LO)){var q=BQ(F,j,$,z,O,N,K,V);if(q){var te=F-q[0],le=j-q[1],ne=O-q[0],Q=N-q[1],ce=1/il(NQ((te*ne+le*Q)/(_d(te*te+le*le)*_d(ne*ne+Q*Q)))/2),me=_d(q[0]*q[0]+q[1]*q[1]);D=So(E,(n-me)/(ce+1)),k=So(I,(i-me)/(ce-1))}}}if(!H)e.moveTo(d+F,p+j);else if(D>eo){var de=So(S,D),fe=So(w,D),ge=Sv($,z,F,j,n,de,h),pe=Sv(O,N,K,V,n,fe,h);e.moveTo(d+ge.cx+ge.x0,p+ge.cy+ge.y0),D<E&&de===fe?e.arc(d+ge.cx,p+ge.cy,D,ln(ge.y0,ge.x0),ln(pe.y0,pe.x0),!h):(de>0&&e.arc(d+ge.cx,p+ge.cy,de,ln(ge.y0,ge.x0),ln(ge.y1,ge.x1),!h),e.arc(d,p,n,ln(ge.cy+ge.y1,ge.cx+ge.x1),ln(pe.cy+pe.y1,pe.cx+pe.x1),!h),fe>0&&e.arc(d+pe.cx,p+pe.cy,fe,ln(pe.y1,pe.x1),ln(pe.y0,pe.x0),!h))}else e.moveTo(d+F,p+j),e.arc(d,p,n,l,c,!h);if(!(i>eo)||!H)e.lineTo(d+K,p+V);else if(k>eo){var de=So(x,k),fe=So(y,k),ge=Sv(K,V,O,N,i,-fe,h),pe=Sv(F,j,$,z,i,-de,h);e.lineTo(d+ge.cx+ge.x0,p+ge.cy+ge.y0),k<I&&de===fe?e.arc(d+ge.cx,p+ge.cy,k,ln(ge.y0,ge.x0),ln(pe.y0,pe.x0),!h):(fe>0&&e.arc(d+ge.cx,p+ge.cy,fe,ln(ge.y0,ge.x0),ln(ge.y1,ge.x1),!h),e.arc(d,p,i,ln(ge.cy+ge.y1,ge.cx+ge.x1),ln(pe.cy+pe.y1,pe.cx+pe.x1),h),de>0&&e.arc(d+pe.cx,p+pe.cy,de,ln(pe.y1,pe.x1),ln(pe.y0,pe.x0),!h))}else e.lineTo(d+K,p+V),e.arc(d,p,i,c,l,h)}e.closePath()}}}var FQ=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}(),Hm=function(e){_e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new FQ},t.prototype.buildPath=function(r,n){zQ(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Qt);Hm.prototype.type="sector";var jQ=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),c_=function(e){_e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new jQ},t.prototype.buildPath=function(r,n){var i=n.cx,o=n.cy,a=Math.PI*2;r.moveTo(i+n.r,o),r.arc(i,o,n.r,0,a,!1),r.moveTo(i+n.r0,o),r.arc(i,o,n.r0,0,a,!0)},t}(Qt);c_.prototype.type="ring";function WQ(e,t,r,n){var i=[],o=[],a=[],s=[],l,c,d,p;if(n){d=[1/0,1/0],p=[-1/0,-1/0];for(var h=0,v=e.length;h<v;h++)Vu(d,d,e[h]),Uu(p,p,e[h]);Vu(d,d,n[0]),Uu(p,p,n[1])}for(var h=0,v=e.length;h<v;h++){var g=e[h];if(r)l=e[h?h-1:v-1],c=e[(h+1)%v];else if(h===0||h===v-1){i.push(kK(e[h]));continue}else l=e[h-1],c=e[h+1];RK(o,c,l),b1(o,o,t);var x=MS(g,l),y=MS(g,c),S=x+y;S!==0&&(x/=S,y/=S),b1(a,o,-x),b1(s,o,y);var w=aR([],g,a),b=aR([],g,s);n&&(Uu(w,w,d),Vu(w,w,p),Uu(b,b,d),Vu(b,b,p)),i.push(w),i.push(b)}return r&&i.push(i.shift()),i}function OO(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var o=WQ(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(r?a:a-1);s++){var l=o[s*2],c=o[s*2+1],d=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],c[0],c[1],d[0],d[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,p=i.length;s<p;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var HQ=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Ep=function(e){_e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new HQ},t.prototype.buildPath=function(r,n){OO(r,n,!0)},t}(Qt);Ep.prototype.type="polygon";var VQ=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Ap=function(e){_e(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 VQ},t.prototype.buildPath=function(r,n){OO(r,n,!1)},t}(Qt);Ap.prototype.type="polyline";var UQ={},GQ=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Ss=function(e){_e(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 GQ},t.prototype.buildPath=function(r,n){var i,o,a,s;if(this.subPixelOptimize){var l=uO(UQ,n,this.style);i=l.x1,o=l.y1,a=l.x2,s=l.y2}else i=n.x1,o=n.y1,a=n.x2,s=n.y2;var c=n.percent;c!==0&&(r.moveTo(i,o),c<1&&(a=i*(1-c)+a*c,s=o*(1-c)+s*c),r.lineTo(a,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}(Qt);Ss.prototype.type="line";var Ln=[],YQ=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 JR(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?uR:Kr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?uR:Kr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?cR:Nn)(e.x1,e.cpx1,e.x2,t),(r?cR:Nn)(e.y1,e.cpy1,e.y2,t)]}var f_=function(e){_e(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 YQ},t.prototype.buildPath=function(r,n){var i=n.x1,o=n.y1,a=n.x2,s=n.y2,l=n.cpx1,c=n.cpy1,d=n.cpx2,p=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,o),d==null||p==null?(h<1&&(Rg(i,l,a,h,Ln),l=Ln[1],a=Ln[2],Rg(o,c,s,h,Ln),c=Ln[1],s=Ln[2]),r.quadraticCurveTo(l,c,a,s)):(h<1&&(kg(i,l,d,a,h,Ln),l=Ln[1],d=Ln[2],a=Ln[3],kg(o,c,p,s,h,Ln),c=Ln[1],p=Ln[2],s=Ln[3]),r.bezierCurveTo(l,c,d,p,a,s)))},t.prototype.pointAt=function(r){return JR(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=JR(this.shape,r,!0);return AK(n,n)},t}(Qt);f_.prototype.type="bezier-curve";var qQ=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}(),Vm=function(e){_e(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 qQ},t.prototype.buildPath=function(r,n){var i=n.cx,o=n.cy,a=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,c=n.clockwise,d=Math.cos(s),p=Math.sin(s);r.moveTo(d*a+i,p*a+o),r.arc(i,o,a,s,l,!c)},t}(Qt);Vm.prototype.type="arc";var XQ=function(e){_e(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||[],o=0;o<i.length;o++)i[o].buildPath(r,i[o].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),Qt.prototype.getBoundingRect.call(this)},t}(Qt),NO=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),BO=function(e){_e(t,e);function t(r,n,i,o,a,s){var l=e.call(this,a)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t}(NO),KQ=function(e){_e(t,e);function t(r,n,i,o,a){var s=e.call(this,o)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=a||!1,s}return t}(NO),ol=[0,0],al=[0,0],bv=new qt,wv=new qt,Og=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new qt;for(var n=0;n<2;n++)this._axes[n]=new qt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),r)for(var c=0;c<4;c++)n[c].transform(r);qt.sub(i[0],n[1],n[0]),qt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var c=0;c<2;c++)this._origin[c]=i[c].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return bv.set(1/0,1/0),wv.set(0,0),!this._intersectCheckOneSide(this,t,bv,wv,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,bv,wv,i,-1)&&(n=!1,i)||i||qt.copy(r,n?bv:wv),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,o,a){for(var s=!0,l=0;l<2;l++){var c=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,ol),this._getProjMinMaxOnAxis(l,r._corners,al),ol[1]<al[0]||ol[0]>al[1]){if(s=!1,o)return s;var d=Math.abs(al[0]-ol[1]),p=Math.abs(ol[0]-al[1]);Math.min(d,p)>i.len()&&(d<p?qt.scale(i,c,-d*a):qt.scale(i,c,p*a))}else if(n){var d=Math.abs(al[0]-ol[1]),p=Math.abs(ol[0]-al[1]);Math.min(d,p)<n.len()&&(d<p?qt.scale(n,c,d*a):qt.scale(n,c,-p*a))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],o=this._origin,a=r[0].dot(i)+o[t],s=a,l=a,c=1;c<r.length;c++){var d=r[c].dot(i)+o[t];s=Math.min(d,s),l=Math.max(d,l)}n[0]=s,n[1]=l},e}(),ZQ=[],QQ=function(e){_e(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 $t(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],o=i.getBoundingRect().clone();i.needLocalTransform()&&o.applyTransform(i.getLocalTransform(ZQ)),r.union(o)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),o=this.getBoundingRect();if(o.contain(i[0],i[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(r,n))return!0}return!1},t}(kp),JQ=Or();function eJ(e,t,r,n,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var c=void 0,d=void 0,p=void 0;n?(c=Tt(n.duration,200),d=Tt(n.easing,"cubicOut"),p=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),d=t.getShallow(l?"animationEasingUpdate":"animationEasing"),p=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(c=o.duration),o.easing!=null&&(d=o.easing),o.delay!=null&&(p=o.delay)),ot(p)&&(p=p(r,i)),ot(c)&&(c=c(r));var h={duration:c||0,delay:p,easing:d};return h}else return null}function d_(e,t,r,n,i,o,a){var s=!1,l;ot(i)?(a=o,o=i,i=null):Qe(i)&&(o=i.cb,a=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var c=e==="leave";c||t.stopAnimation("leave");var d=eJ(e,n,i,c?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(d&&d.duration>0){var p=d.duration,h=d.delay,v=d.easing,g={duration:p,delay:h||0,easing:v,done:o,force:!!o||!!a,setToFinal:!c,scope:e,during:a};s?t.animateFrom(r,g):t.animateTo(r,g)}else t.stopAnimation(),!s&&t.attr(r),a&&a(1),o&&o()}function bs(e,t,r,n,i,o){d_("update",e,t,r,n,i,o)}function Ip(e,t,r,n,i,o){d_("enter",e,t,r,n,i,o)}function Cd(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 Ng(e,t,r,n,i,o){Cd(e)||d_("leave",e,t,r,n,i,o)}function eP(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),Ng(e,{style:{opacity:0}},t,r,n)}function tJ(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||eP(i,t,r,n)}):eP(e,t,r,n)}function rJ(e){JQ(e).oldStyle=e.style}var Bg=Math.max,$g=Math.min,HS={};function nJ(e){return Qt.extend(e)}var iJ=IQ;function oJ(e,t){return iJ(e,t)}function co(e,t){HS[e]=t}function aJ(e){if(HS.hasOwnProperty(e))return HS[e]}function p_(e,t,r,n){var i=AQ(e,t);return r&&(n==="center"&&(r=zO(r,i.getBoundingRect())),FO(i,r)),i}function $O(e,t,r){var n=new ks({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var o={width:i.width,height:i.height};n.setStyle(zO(t,o))}}});return n}function zO(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 o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-n/2,y:a-i/2,width:n,height:i}}var sJ=DQ;function FO(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Xd(e,t){return uO(e,e,{lineWidth:t}),e}function lJ(e){return cO(e.shape,e.shape,e.style),e}var uJ=Tl;function Um(e,t){for(var r=Kw([]);e&&e!==t;)Ju(r,e.getLocalTransform(),r),e=e.parent;return r}function Kd(e,t,r){return t&&!Vn(t)&&(t=e_.getLocalTransform(t)),r&&(t=Qw([],t)),Ni([],e,t)}function h_(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]),o=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return o=Kd(o,t,r),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function tP(e){return!e.isGroup}function cJ(e){return e.shape!=null}function jO(e,t,r){if(!e||!t)return;function n(a){var s={};return a.traverse(function(l){tP(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return cJ(a)&&(s.shape=Te({},a.shape)),s}var o=n(e);t.traverse(function(a){if(tP(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),bs(a,l,r,Vt(a).dataIndex)}}})}function WO(e,t){return Ge(e,function(r){var n=r[0];n=Bg(n,t.x),n=$g(n,t.x+t.width);var i=r[1];return i=Bg(i,t.y),i=$g(i,t.y+t.height),[n,i]})}function fJ(e,t){var r=Bg(e.x,t.x),n=$g(e.x+e.width,t.x+t.width),i=Bg(e.y,t.y),o=$g(e.y+e.height,t.y+t.height);if(n>=r&&o>=i)return{x:r,y:i,width:n-r,height:o-i}}function Gm(e,t,r){var n=Te({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),At(i,r),new ks(n)):p_(e.replace("path://",""),n,r,"center")}function dJ(e,t,r,n,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(HO(e,t,r,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function HO(e,t,r,n,i,o,a,s){var l=r-e,c=n-t,d=a-i,p=s-o,h=V1(d,p,l,c);if(pJ(h))return!1;var v=e-i,g=t-o,x=V1(v,g,l,c)/h;if(x<0||x>1)return!1;var y=V1(v,g,d,p)/h;return!(y<0||y>1)}function V1(e,t,r,n){return e*n-r*t}function pJ(e){return e<=1e-6&&e>=-1e-6}function Ym(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=We(t)?{formatter:t}:t,o=r.mainType,a=r.componentIndex,s={componentType:o,name:n,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&U(cr(l),function(d){gc(s,d)||(s[d]=l[d],s.$vars.push(d))});var c=Vt(e.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:n,option:At({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function rP(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function v_(e,t){if(e)if(De(e))for(var r=0;r<e.length;r++)rP(e[r],t);else rP(e,t)}co("circle",Wm);co("ellipse",u_);co("sector",Hm);co("ring",c_);co("polygon",Ep);co("polyline",Ap);co("rect",dr);co("line",Ss);co("bezierCurve",f_);co("arc",Vm);const hJ=Object.freeze(Object.defineProperty({__proto__:null,Arc:Vm,BezierCurve:f_,BoundingRect:$t,Circle:Wm,CompoundPath:XQ,Ellipse:u_,Group:Mr,Image:ks,IncrementalDisplayable:QQ,Line:Ss,LinearGradient:BO,OrientedBoundingRect:Og,Path:Qt,Point:qt,Polygon:Ep,Polyline:Ap,RadialGradient:KQ,Rect:dr,Ring:c_,Sector:Hm,Text:Fr,applyTransform:Kd,clipPointsByRect:WO,clipRectByRect:fJ,createIcon:Gm,extendPath:oJ,extendShape:nJ,getShapeClass:aJ,getTransform:Um,groupTransition:jO,initProps:Ip,isElementRemoved:Cd,lineLineIntersect:HO,linePolygonIntersect:dJ,makeImage:$O,makePath:p_,mergePath:sJ,registerShape:co,removeElement:Ng,removeElementWithFadeOut:tJ,resizePath:FO,setTooltipConfig:Ym,subPixelOptimize:uJ,subPixelOptimizeLine:Xd,subPixelOptimizeRect:lJ,transformDirection:h_,traverseElements:v_,updateProps:bs},Symbol.toStringTag,{value:"Module"}));var qm={};function vJ(e,t){for(var r=0;r<zo.length;r++){var n=zo[r],i=t[n],o=e.ensureState(n);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function nP(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,o=e.labelDimIndex,a=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,o,a&&a.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ot(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},c=0;c<zo.length;c++){var d=zo[c],p=t[d];l[d]=Tt(n?n.getFormattedLabel(i,d,null,o,p&&p.get("formatter")):null,s)}return l}function g_(e,t,r,n){r=r||qm;for(var i=e instanceof Fr,o=!1,a=0;a<zR.length;a++){var s=t[zR[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?e:e.getTextContent();if(o){i||(l||(l=new Fr,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var c=nP(r,t),d=t.normal,p=!!d.getShallow("show"),h=xa(d,n&&n.normal,r,!1,!i);h.text=c.normal,i||e.setTextConfig(iP(d,r,!1));for(var a=0;a<zo.length;a++){var v=zo[a],s=t[v];if(s){var g=l.ensureState(v),x=!!Tt(s.getShallow("show"),p);if(x!==p&&(g.ignore=!x),g.style=xa(s,n&&n[v],r,!0,!i),g.style.text=c[v],!i){var y=e.ensureState(v);y.textConfig=iP(s,r,!0)}}}l.silent=!!d.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!p,l.useStyle(h),l.dirty(),r.enableTextSetter&&(UO(l).setLabelText=function(S){var w=nP(r,t,S);vJ(l,w)})}else l&&(l.ignore=!0);e.dirty()}function m_(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<zo.length;n++){var i=zo[n];r[i]=e.getModel([i,t])}return r}function xa(e,t,r,n,i){var o={};return gJ(o,e,r,n,i),t&&Te(o,t),o}function iP(e,t,r){t=t||{};var n={},i,o=e.getShallow("rotate"),a=Tt(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),o!=null&&(o*=Math.PI/180,n.rotation=o),a!=null&&(n.distance=a),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function gJ(e,t,r,n,i){r=r||qm;var o=t.ecModel,a=o&&o.option.textStyle,s=mJ(t),l;if(s){l={};for(var c in s)if(s.hasOwnProperty(c)){var d=t.getModel(["rich",c]);lP(l[c]={},d,a,r,n,i,!1,!0)}}l&&(e.rich=l);var p=t.get("overflow");p&&(e.overflow=p);var h=t.get("minMargin");h!=null&&(e.margin=h),lP(e,t,a,r,n,i,!0,!1)}function mJ(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||qm).rich;if(r){t=t||{};for(var n=cr(r),i=0;i<n.length;i++){var o=n[i];t[o]=1}}e=e.parentModel}return t}var oP=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],aP=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],sP=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function lP(e,t,r,n,i,o,a,s){r=!i&&r||qm;var l=n&&n.inheritColor,c=t.getShallow("color"),d=t.getShallow("textBorderColor"),p=Tt(t.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(l?c=l:c=null),(d==="inherit"||d==="auto")&&(l?d=l:d=null),o||(c=c||r.color,d=d||r.textBorderColor),c!=null&&(e.fill=c),d!=null&&(e.stroke=d);var h=Tt(t.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(e.lineWidth=h);var v=Tt(t.getShallow("textBorderType"),r.textBorderType);v!=null&&(e.lineDash=v);var g=Tt(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!i&&p==null&&!s&&(p=n&&n.defaultOpacity),p!=null&&(e.opacity=p),!i&&!o&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var x=0;x<oP.length;x++){var y=oP[x],S=Tt(t.getShallow(y),r[y]);S!=null&&(e[y]=S)}for(var x=0;x<aP.length;x++){var y=aP[x],S=t.getShallow(y);S!=null&&(e[y]=S)}if(e.verticalAlign==null){var w=t.getShallow("baseline");w!=null&&(e.verticalAlign=w)}if(!a||!n.disableBox){for(var x=0;x<sP.length;x++){var y=sP[x],S=t.getShallow(y);S!=null&&(e[y]=S)}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 VO(e,t){var r=t&&t.getModel("textStyle");return Mo([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 UO=Or(),yJ=["textStyle","color"],U1=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],G1=new Fr,xJ=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(yJ):null)},e.prototype.getFont=function(){return VO({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<U1.length;n++)r[U1[n]]=this.getShallow(U1[n]);return G1.useStyle(r),G1.update(),G1.getBoundingRect()},e}(),GO=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],SJ=Gd(GO),bJ=function(){function e(){}return e.prototype.getLineStyle=function(t){return SJ(this,t)},e}(),YO=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],wJ=Gd(YO),_J=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return wJ(this,t,r)},e}(),vr=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){yt(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 o=this.parentModel;o&&(i=o.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,o=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(o,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(ht(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(!lt.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}();Xw(vr);lK(vr);Wo(vr,bJ);Wo(vr,_J);Wo(vr,pK);Wo(vr,xJ);function Af(e){return e==null?0:e.length||1}function uP(e){return e}var y_=function(){function e(t,r,n,i,o,a){this._old=t,this._new=r,this._oldKeyGetter=n||uP,this._newKeyGetter=i||uP,this.context=o,this._diffModeMultiple=a==="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),o=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],l=n[s],c=Af(l);if(c>1){var d=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(d,a)}else c===1?(n[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],c=n[l],d=i[l],p=Af(c),h=Af(d);if(p>1&&h===1)this._updateManyToOne&&this._updateManyToOne(d,c),i[l]=null;else if(p===1&&h>1)this._updateOneToMany&&this._updateOneToMany(d,c),i[l]=null;else if(p===1&&h===1)this._update&&this._update(d,c),i[l]=null;else if(p>1&&h>1)this._updateManyToMany&&this._updateManyToMany(d,c),i[l]=null;else if(p>1)for(var v=0;v<p;v++)this._remove&&this._remove(c[v]);else this._remove&&this._remove(c)}this._performRestAdd(a,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],o=r[i],a=Af(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(n[a]=s),!!r){var l=r[s],c=Af(l);c===0?(r[s]=a,o&&n.push(s)):c===1?r[s]=[l,a]:l.push(a)}}},e}(),qO=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Wi="original",Gn="arrayRows",Ho="objectRows",_a="keyedColumns",ps="typedArray",XO="unknown",pa="column",Pc="row",ei={Must:1,Might:2,Not:3},KO=Or();function CJ(e){KO(e).datasetMap=ft()}function TJ(e,t,r){var n={},i=ZO(t);if(!i||!e)return n;var o=[],a=[],s=t.ecModel,l=KO(s).datasetMap,c=i.uid+"_"+r.seriesLayoutBy,d,p;e=e.slice(),U(e,function(x,y){var S=Qe(x)?x:e[y]={name:x};S.type==="ordinal"&&d==null&&(d=y,p=g(S)),n[S.name]=[]});var h=l.get(c)||l.set(c,{categoryWayDim:p,valueWayDim:0});U(e,function(x,y){var S=x.name,w=g(x);if(d==null){var b=h.valueWayDim;v(n[S],b,w),v(a,b,w),h.valueWayDim+=w}else if(d===y)v(n[S],0,w),v(o,0,w);else{var b=h.categoryWayDim;v(n[S],b,w),v(a,b,w),h.categoryWayDim+=w}});function v(x,y,S){for(var w=0;w<S;w++)x.push(y+w)}function g(x){var y=x.dimsDef;return y?y.length:1}return o.length&&(n.itemName=o),a.length&&(n.seriesName=a),n}function ZO(e){var t=e.get("data",!0);if(!t)return Pp(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},_n).models[0]}function MJ(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Pp(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},_n).models}function QO(e,t){return kJ(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function kJ(e,t,r,n,i,o){var a,s=5;if(Un(e))return ei.Not;var l,c;if(n){var d=n[o];Qe(d)?(l=d.name,c=d.type):We(d)&&(l=d)}if(c!=null)return c==="ordinal"?ei.Must:ei.Not;if(t===Gn){var p=e;if(r===Pc){for(var h=p[o],v=0;v<(h||[]).length&&v<s;v++)if((a=C(h[i+v]))!=null)return a}else for(var v=0;v<p.length&&v<s;v++){var g=p[i+v];if(g&&(a=C(g[o]))!=null)return a}}else if(t===Ho){var x=e;if(!l)return ei.Not;for(var v=0;v<x.length&&v<s;v++){var y=x[v];if(y&&(a=C(y[l]))!=null)return a}}else if(t===_a){var S=e;if(!l)return ei.Not;var h=S[l];if(!h||Un(h))return ei.Not;for(var v=0;v<h.length&&v<s;v++)if((a=C(h[v]))!=null)return a}else if(t===Wi)for(var w=e,v=0;v<w.length&&v<s;v++){var y=w[v],b=Rp(y);if(!De(b))return ei.Not;if((a=C(b[o]))!=null)return a}function C(T){var M=We(T);if(T!=null&&Number.isFinite(Number(T))&&T!=="")return M?ei.Might:ei.Not;if(M&&T!=="-")return ei.Must}return ei.Not}var Xm=function(){function e(t){this.data=t.data||(t.sourceFormat===_a?{}:[]),this.sourceFormat=t.sourceFormat||XO,this.seriesLayoutBy=t.seriesLayoutBy||pa,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&&QO(this,n)===ei.Must&&(i.type="ordinal")}}return e}();function x_(e){return e instanceof Xm}function VS(e,t,r){r=r||e5(e);var n=t.seriesLayoutBy,i=PJ(e,r,n,t.sourceHeader,t.dimensions),o=new Xm({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:ht(t)});return o}function JO(e){return new Xm({data:e,sourceFormat:Un(e)?ps:Wi})}function RJ(e){return new Xm({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ht(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function e5(e){var t=XO;if(Un(e))t=ps;else if(De(e)){e.length===0&&(t=Gn);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(De(i)||Un(i)){t=Gn;break}else if(Qe(i)){t=Ho;break}}}}else if(Qe(e)){for(var o in e)if(gc(e,o)&&Vn(e[o])){t=_a;break}}return t}function PJ(e,t,r,n,i){var o,a;if(!e)return{dimensionsDefine:cP(i),startIndex:a,dimensionsDetectedCount:o};if(t===Gn){var s=e;n==="auto"||n==null?fP(function(c){c!=null&&c!=="-"&&(We(c)?a==null&&(a=1):a=0)},r,s,10):a=fr(n)?n:n?1:0,!i&&a===1&&(i=[],fP(function(c,d){i[d]=c!=null?c+"":""},r,s,1/0)),o=i?i.length:r===Pc?s.length:s[0]?s[0].length:null}else if(t===Ho)i||(i=EJ(e));else if(t===_a)i||(i=[],U(e,function(c,d){i.push(d)}));else if(t===Wi){var l=Rp(e[0]);o=De(l)&&l.length||1}return{startIndex:a,dimensionsDefine:cP(i),dimensionsDetectedCount:o}}function EJ(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return cr(r)}function cP(e){if(e){var t=ft();return Ge(e,function(r,n){r=Qe(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 o=t.get(i.name);return o?i.name+="-"+o.count++:t.set(i.name,{count:1}),i})}}function fP(e,t,r,n){if(t===Pc)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var o=r[0]||[],i=0;i<o.length&&i<n;i++)e(o[i],i)}function t5(e){var t=e.sourceFormat;return t===Ho||t===_a}var sl,ll,ul,dP,pP,r5=function(){function e(t,r){var n=x_(t)?t:JO(t);this._source=n;var i=this._data=n.data;n.sourceFormat===ps&&(this._offset=0,this._dimSize=r,this._data=i),pP(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;pP=function(a,s,l){var c=l.sourceFormat,d=l.seriesLayoutBy,p=l.startIndex,h=l.dimensionsDefine,v=dP[S_(c,d)];if(Te(a,v),c===ps)a.getItem=r,a.count=i,a.fillStorage=n;else{var g=n5(c,d);a.getItem=St(g,null,s,p,h);var x=i5(c,d);a.count=St(x,null,s,p,h)}};var r=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,c=this._dimSize,d=c*a,p=0;p<c;p++)s[p]=l[d+p];return s},n=function(a,s,l,c){for(var d=this._data,p=this._dimSize,h=0;h<p;h++){for(var v=c[h],g=v[0]==null?1/0:v[0],x=v[1]==null?-1/0:v[1],y=s-a,S=l[h],w=0;w<y;w++){var b=d[w*p+h];S[a+w]=b,b<g&&(g=b),b>x&&(x=b)}v[0]=g,v[1]=x}},i=function(){return this._data?this._data.length/this._dimSize:0};dP=(t={},t[Gn+"_"+pa]={pure:!0,appendData:o},t[Gn+"_"+Pc]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ho]={pure:!0,appendData:o},t[_a]={pure:!0,appendData:function(a){var s=this._data;U(a,function(l,c){for(var d=s[c]||(s[c]=[]),p=0;p<(l||[]).length;p++)d.push(l[p])})}},t[Wi]={appendData:o},t[ps]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}}(),e}(),hP=function(e,t,r,n){return e[n]},AJ=(sl={},sl[Gn+"_"+pa]=function(e,t,r,n){return e[n+t]},sl[Gn+"_"+Pc]=function(e,t,r,n,i){n+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[n]:null}return o},sl[Ho]=hP,sl[_a]=function(e,t,r,n,i){for(var o=i||[],a=0;a<r.length;a++){var s=r[a].name,l=e[s];o[a]=l?l[n]:null}return o},sl[Wi]=hP,sl);function n5(e,t){var r=AJ[S_(e,t)];return r}var vP=function(e,t,r){return e.length},IJ=(ll={},ll[Gn+"_"+pa]=function(e,t,r){return Math.max(0,e.length-t)},ll[Gn+"_"+Pc]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},ll[Ho]=vP,ll[_a]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},ll[Wi]=vP,ll);function i5(e,t){var r=IJ[S_(e,t)];return r}var Y1=function(e,t,r){return e[t]},DJ=(ul={},ul[Gn]=Y1,ul[Ho]=function(e,t,r){return e[r]},ul[_a]=Y1,ul[Wi]=function(e,t,r){var n=Rp(e);return n instanceof Array?n[t]:n},ul[ps]=Y1,ul);function o5(e){var t=DJ[e];return t}function S_(e,t){return e===Gn?e+"_"+t:e}function xc(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),o=i.getSource().sourceFormat;if(r!=null){var a=e.getDimensionIndex(r),s=i.getDimensionProperty(a);return o5(o)(n,a,s)}else{var l=n;return o===Wi&&(l=Rp(n)),l}}}}var LJ=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 OJ(e,t){var r={},n=r.encode={},i=ft(),o=[],a=[],s={};U(e.dimensions,function(h){var v=e.getDimensionInfo(h),g=v.coordDim;if(g){var x=v.coordDimIndex;q1(n,g)[x]=h,v.isExtraCoord||(i.set(g,1),BJ(v.type)&&(o[0]=h),q1(s,g)[x]=e.getDimensionIndex(v.name)),v.defaultTooltip&&a.push(h)}qO.each(function(y,S){var w=q1(n,S),b=v.otherDims[S];b!=null&&b!==!1&&(w[b]=v.name)})});var l=[],c={};i.each(function(h,v){var g=n[v];c[v]=g[0],l=l.concat(g)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Ge(l,function(h){return e.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=c;var d=n.label;d&&d.length&&(o=d.slice());var p=n.tooltip;return p&&p.length?a=p.slice():a.length||(a=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=a,r.userOutput=new LJ(s,t),r}function q1(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function NJ(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function BJ(e){return!(e==="ordinal"||e==="time")}var rg=function(){function e(t){this.otherDims={},t!=null&&Te(this,t)}return e}();function ng(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!fr(e)&&e!=null&&e!=="-"&&(e=+ya(e)),e==null||e===""?NaN:Number(e))}ft({number:function(e){return parseFloat(e)},time:function(e){return+ya(e)},trim:function(e){return We(e)?Mo(e):e}});var $J=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=fr(t)?t:Dg(t),i=fr(r)?r:Dg(r),o=isNaN(n),a=isNaN(i);if(o&&(n=this._incomparable),a&&(i=this._incomparable),o&&a){var s=We(t),l=We(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Km="undefined",zJ=typeof Uint32Array===Km?Array:Uint32Array,FJ=typeof Uint16Array===Km?Array:Uint16Array,a5=typeof Int32Array===Km?Array:Int32Array,gP=typeof Float64Array===Km?Array:Float64Array,s5={float:gP,int:a5,ordinal:Array,number:Array,time:gP},X1;function If(e){return e>65535?zJ:FJ}function Au(){return[1/0,-1/0]}function jJ(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function mP(e,t,r,n,i){var o=s5[r||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==n){for(var l=new o(n),c=0;c<s;c++)l[c]=a[c];e[t]=l}}else e[t]=new o(n)}var US=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ft()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=X1[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],t5(i),this._dimensions=Ge(r,function(a){return{type:a.type,property:a.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,o=n.get(t);if(o!=null){if(i[o].type===r)return o}else o=i.length;return i[o]={type:r},n.set(t,o),this._chunks[o]=new s5[r||"float"](this._rawCount),this._rawExtent[o]=Au(),o},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,a=i.ordinalOffset||0,s=n.length;a===0&&(o[t]=Au());for(var l=o[t],c=a;c<s;c++){var d=n[c]=r.parseAndCollect(n[c]);isNaN(d)||(l[0]=Math.min(d,l[0]),l[1]=Math.max(d,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,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),c=0;c<o;c++){var d=i[c];mP(n,c,d.type,l,!0)}for(var p=[],h=s;h<l;h++)for(var v=h-s,g=0;g<o;g++){var d=i[g],x=X1.arrayRows.call(this,t[v]||p,d.property,v,g);n[g][h]=x;var y=a[g];x<y[0]&&(y[0]=x),x>y[1]&&(y[1]=x)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,c=Ge(a,function(w){return w.property}),d=0;d<s;d++){var p=a[d];l[d]||(l[d]=Au()),mP(o,d,p.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,o,l);else for(var h=[],v=t;v<r;v++){h=i.getItem(v,h);for(var g=0;g<s;g++){var x=o[g],y=this._dimValueGetter(h,c[g],v,g);x[v]=y;var S=l[g];y<S[0]&&(S[0]=y),y>S[1]&&(S[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 o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,a=i.length;o<a;o++)n.push(this.get(i[o],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,o=this.count();i<o;i++){var a=this.get(t,i);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(o){isNaN(o)||r.push(o)});var n=r.sort(function(o,a){return o-a}),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,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(r[a]<t)i=a+1;else if(r[a]>t)o=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,o=i[t],a=[];if(!o)return a;n==null&&(n=1/0);for(var s=1/0,l=-1,c=0,d=0,p=this.count();d<p;d++){var h=this.getRawIndex(d),v=r-o[h],g=Math.abs(v);g<=n&&((g<s||g===s&&v>=0&&l<0)&&(s=g,l=v,c=0),v===l&&(a[c++]=d))}return a.length=c,a},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 o=0;o<i;o++)t[o]=r[o]}else t=new n(r.buffer,0,i)}else{var n=If(this._rawCount);t=new n(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=If(n._rawCount),a=new o(i),s=[],l=t.length,c=0,d=t[0],p=n._chunks,h=0;h<i;h++){var v=void 0,g=n.getRawIndex(h);if(l===0)v=r(h);else if(l===1){var x=p[d][g];v=r(x,h)}else{for(var y=0;y<l;y++)s[y]=p[t[y]][g];s[y]=h,v=r.apply(null,s)}v&&(a[c++]=g)}return c<i&&(n._indices=a),n._count=c,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=cr(t),o=i.length;if(!o)return this;var a=r.count(),s=If(r._rawCount),l=new s(a),c=0,d=i[0],p=t[d][0],h=t[d][1],v=r._chunks,g=!1;if(!r._indices){var x=0;if(o===1){for(var y=v[i[0]],S=0;S<n;S++){var w=y[S];(w>=p&&w<=h||isNaN(w))&&(l[c++]=x),x++}g=!0}else if(o===2){for(var y=v[i[0]],b=v[i[1]],C=t[i[1]][0],T=t[i[1]][1],S=0;S<n;S++){var w=y[S],M=b[S];(w>=p&&w<=h||isNaN(w))&&(M>=C&&M<=T||isNaN(M))&&(l[c++]=x),x++}g=!0}}if(!g)if(o===1)for(var S=0;S<a;S++){var E=r.getRawIndex(S),w=v[i[0]][E];(w>=p&&w<=h||isNaN(w))&&(l[c++]=E)}else for(var S=0;S<a;S++){for(var I=!0,E=r.getRawIndex(S),D=0;D<o;D++){var k=i[D],w=v[k][E];(w<t[k][0]||w>t[k][1])&&(I=!1)}I&&(l[c++]=r.getRawIndex(S))}return c<a&&(r._indices=l),r._count=c,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,o=[],a=r.length,s=t.count(),l=[],c=t._rawExtent,d=0;d<r.length;d++)c[r[d]]=Au();for(var p=0;p<s;p++){for(var h=t.getRawIndex(p),v=0;v<a;v++)l[v]=i[r[v]][h];l[a]=p;var g=n&&n.apply(null,l);if(g!=null){typeof g!="object"&&(o[0]=g,g=o);for(var d=0;d<g.length;d++){var x=r[d],y=g[d],S=c[x],w=i[x];w&&(w[h]=y),y<S[0]&&(S[0]=y),y>S[1]&&(S[1]=y)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,o=i[t],a=this.count(),s=0,l=Math.floor(1/r),c=this.getRawIndex(0),d,p,h,v=new(If(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));v[s++]=c;for(var g=1;g<a-1;g+=l){for(var x=Math.min(g+l,a-1),y=Math.min(g+l*2,a),S=(y+x)/2,w=0,b=x;b<y;b++){var C=this.getRawIndex(b),T=o[C];isNaN(T)||(w+=T)}w/=y-x;var M=g,E=Math.min(g+l,a),I=g-1,D=o[c];d=-1,h=M;for(var k=-1,O=0,b=M;b<E;b++){var C=this.getRawIndex(b),T=o[C];if(isNaN(T)){O++,k<0&&(k=C);continue}p=Math.abs((I-S)*(T-D)-(I-b)*(w-D)),p>d&&(d=p,h=C)}O>0&&O<E-M&&(v[s++]=Math.min(k,h),h=Math.max(k,h)),v[s++]=h,c=h}return v[s++]=this.getRawIndex(a-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/r),c=a[t],d=this.count(),p=o._rawExtent[t]=Au(),h=new(If(this._rawCount))(Math.ceil(d/l)),v=0,g=0;g<d;g+=l){l>d-g&&(l=d-g,s.length=l);for(var x=0;x<l;x++){var y=this.getRawIndex(g+x);s[x]=c[y]}var S=n(s),w=this.getRawIndex(Math.min(g+i(s,S)||0,d-1));c[w]=S,S<p[0]&&(p[0]=S),S>p[1]&&(p[1]=S),h[v++]=w}return o._count=v,o._indices=h,o._updateGetRawIdx(),o},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(n){case 0:r(o);break;case 1:r(i[t[0]][s],o);break;case 2:r(i[t[0]][s],i[t[1]][s],o);break;default:for(var l=0,c=[];l<n;l++)c[l]=i[t[l]][s];c[l]=o,r.apply(null,c)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Au();if(!r)return n;var i=this.count(),o=!this._indices,a;if(o)return this._rawExtent[t].slice();if(a=this._extent[t],a)return a.slice();a=n;for(var s=a[0],l=a[1],c=0;c<i;c++){var d=this.getRawIndex(c),p=r[d];p<s&&(s=p),p>l&&(l=p)}return a=[s,l],this._extent[t]=a,a},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,o=0;o<i.length;o++)n.push(i[o][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,o=t&&kc(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<i.length;a++)n._chunks[a]=o[a]?jJ(i[a]):i[a];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=ht(this._extent),t._rawExtent=ht(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,o){return ng(r[o],this._dimensions[o])}X1={arrayRows:t,objectRows:function(r,n,i,o){return ng(r[n],this._dimensions[o])},keyedColumns:t,original:function(r,n,i,o){var a=r&&(r.value==null?r:r.value);return ng(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(r,n,i,o){return r[o]}}}(),e}(),WJ=Or(),HJ={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},l5=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=f5(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Tt(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=t5(this.source),n=!d5(t),i="",o=[],a=0,s=0;a<t;a++){var l=void 0,c=void 0,d=void 0,p=this.dimensions[s];if(p&&p.storeDimIndex===a)l=r?p.name:null,c=p.type,d=p.ordinalMeta,s++;else{var h=this.getSourceDimension(a);h&&(l=r?h.name:null,c=h.type)}o.push({property:l,type:c,ordinalMeta:d}),r&&l!=null&&(!p||!p.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=HJ[c]||"f",d&&(i+=d.uid),i+="$"}var v=this.source,g=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:o,hash:g}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===r)o.isCalculationCoord||(i=o.name),n++;else{var a=this.getSourceDimension(r);a&&(i=a.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 u5(e){return e instanceof l5}function c5(e){for(var t=ft(),r=0;r<(e||[]).length;r++){var n=e[r],i=Qe(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function f5(e){var t=WJ(e);return t.dimNameMap||(t.dimNameMap=c5(e.dimensionsDefine))}function d5(e){return e>30}var Df=Qe,qa=Ge,VJ=typeof Int32Array>"u"?Array:Int32Array,UJ="e\0\0",yP=-1,GJ=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],YJ=["_approximateExtent"],xP,_v,Lf,Of,K1,Cv,Z1,qJ=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;u5(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var o={},a=[],s={},l=!1,c={},d=0;d<n.length;d++){var p=n[d],h=We(p)?new rg({name:p}):p instanceof rg?p:new rg(p),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var g=h.otherDims=h.otherDims||{};a.push(v),o[v]=h,c[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]),g.itemName===0&&(this._nameDimIdx=d),g.itemId===0&&(this._idDimIdx=d),i&&(h.storeDimIndex=d)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var x=this._dimIdxToName=ft();U(a,function(y){x.set(o[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(fr(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,o;if(t instanceof US&&(o=t),!o){var a=this.dimensions,s=x_(t)||Vn(t)?new r5(t,a.length):t;o=new US;var l=qa(a,function(c){return{type:i._dimInfos[c].type,property:c}});o.initData(s,l,n)}this._store=o,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=OJ(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,o=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<o;s++){var l=s-i;this._nameList[s]=r[l],a&&Z1(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!==ps&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===Wi;if(l&&!i.pure)for(var c=[],d=t;d<r;d++){var p=i.getItem(d,c);if(!this.hasItemOption&&WZ(p)&&(this.hasItemOption=!0),p){var h=p.name;o[d]==null&&h!=null&&(o[d]=Lo(h,null));var v=p.id;a[d]==null&&v!=null&&(a[d]=Lo(v,null))}}if(this._shouldMakeIdFromName())for(var d=t;d<r;d++)Z1(this,d);xP(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){Df(t)?Te(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=Lf(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 _v(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 De(t)?i.getValues(qa(t,function(o){return n._getStoreDimIndex(o)}),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)?yP:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){ot(t)&&(n=r,r=t,t=[]);var i=n||this,o=qa(Of(t),this._getStoreDimIndex,this);this._store.each(o,i?St(r,i):r)},e.prototype.filterSelf=function(t,r,n){ot(t)&&(n=r,r=t,t=[]);var i=n||this,o=qa(Of(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?St(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=cr(t);return U(i,function(o){var a=r._getStoreDimIndex(o);n[a]=t[o]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){ot(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 o=n||i||this,a=qa(Of(t),this._getStoreDimIndex,this),s=Cv(this);return s._store=this._store.map(a,o?St(r,o):r),s},e.prototype.modify=function(t,r,n,i){var o=n||i||this,a=qa(Of(t),this._getStoreDimIndex,this);this._store.modify(a,o?St(r,o):r)},e.prototype.downSample=function(t,r,n,i){var o=Cv(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),o},e.prototype.lttbDownSample=function(t,r){var n=Cv(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 vr(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new y_(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return _v(t,n)},function(n){return _v(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||{},Df(t)?Te(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 o=i[r];return o==null&&(o=this.getVisual(r),De(o)?o=o.slice():Df(o)&&(o=Te({},o)),i[r]=o),o},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Df(r)?Te(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Df(t)?Te(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?Te(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;iQ(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){U(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:qa(this.dimensions,this._getDimInfo,this),this.hostModel)),K1(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ot(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(qw(arguments)))})},e.internalField=function(){xP=function(t){var r=t._invertedIndicesMap;U(r,function(n,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){n=r[i]=new VJ(a.categories.length);for(var l=0;l<n.length;l++)n[l]=yP;for(var l=0;l<s.count();l++)n[s.get(o.storeDimIndex,l)]=l}})},Lf=function(t,r,n){return Lo(t._getCategory(r,n),null)},_v=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Lf(t,t._idDimIdx,r)),n==null&&(n=UJ+r),n},Of=function(t){return De(t)||(t=t!=null?[t]:[]),t},Cv=function(t){var r=new e(t._schema?t._schema:qa(t.dimensions,t._getDimInfo,t),t.hostModel);return K1(r,t),r},K1=function(t,r){U(GJ.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,U(YJ,function(n){t[n]=ht(r[n])}),t._calculationInfo=Te({},r._calculationInfo)},Z1=function(t,r){var n=t._nameList,i=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=n[r],l=i[r];if(s==null&&o!=null&&(n[r]=s=Lf(t,o,r)),l==null&&a!=null&&(i[r]=l=Lf(t,a,r)),l==null&&s!=null){var c=t._nameRepeatCount,d=c[s]=(c[s]||0)+1;l=s,d>1&&(l+="__ec__"+d),i[r]=l}}}(),e}();function XJ(e,t){x_(e)||(e=JO(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ft(),o=[],a=ZJ(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&d5(a),l=n===e.dimensionsDefine,c=l?f5(e):c5(n),d=t.encodeDefine;!d&&t.encodeDefaulter&&(d=t.encodeDefaulter(e,a));for(var p=ft(d),h=new a5(a),v=0;v<h.length;v++)h[v]=-1;function g(D){var k=h[D];if(k<0){var O=n[D],N=Qe(O)?O:{name:O},$=new rg,z=N.name;z!=null&&c.get(z)!=null&&($.name=$.displayName=z),N.type!=null&&($.type=N.type),N.displayName!=null&&($.displayName=N.displayName);var F=o.length;return h[D]=F,$.storeDimIndex=D,o.push($),$}return o[k]}if(!s)for(var v=0;v<a;v++)g(v);p.each(function(D,k){var O=Mn(D).slice();if(O.length===1&&!We(O[0])&&O[0]<0){p.set(k,!1);return}var N=p.set(k,[]);U(O,function($,z){var F=We($)?c.get($):$;F!=null&&F<a&&(N[z]=F,y(g(F),k,z))})});var x=0;U(r,function(D){var k,O,N,$;if(We(D))k=D,$={};else{$=D,k=$.name;var z=$.ordinalMeta;$.ordinalMeta=null,$=Te({},$),$.ordinalMeta=z,O=$.dimsDef,N=$.otherDims,$.name=$.coordDim=$.coordDimIndex=$.dimsDef=$.otherDims=null}var F=p.get(k);if(F!==!1){if(F=Mn(F),!F.length)for(var j=0;j<(O&&O.length||1);j++){for(;x<a&&g(x).coordDim!=null;)x++;x<a&&F.push(x++)}U(F,function(K,V){var H=g(K);if(l&&$.type!=null&&(H.type=$.type),y(At(H,$),k,V),H.name==null&&O){var Y=O[V];!Qe(Y)&&(Y={name:Y}),H.name=H.displayName=Y.name,H.defaultTooltip=Y.defaultTooltip}N&&At(H.otherDims,N)})}});function y(D,k,O){qO.get(k)!=null?D.otherDims[k]=O:(D.coordDim=k,D.coordDimIndex=O,i.set(k,!0))}var S=t.generateCoord,w=t.generateCoordCount,b=w!=null;w=S?w||1:0;var C=S||"value";function T(D){D.name==null&&(D.name=D.coordDim)}if(s)U(o,function(D){T(D)}),o.sort(function(D,k){return D.storeDimIndex-k.storeDimIndex});else for(var M=0;M<a;M++){var E=g(M),I=E.coordDim;I==null&&(E.coordDim=QJ(C,i,b),E.coordDimIndex=0,(!S||w<=0)&&(E.isExtraCoord=!0),w--),T(E),E.type==null&&(QO(e,M)===ei.Must||E.isExtraCoord&&(E.otherDims.itemName!=null||E.otherDims.seriesName!=null))&&(E.type="ordinal")}return KJ(o),new l5({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function KJ(e){for(var t=ft(),r=0;r<e.length;r++){var n=e[r],i=n.name,o=t.get(i)||0;o>0&&(n.name=i+(o-1)),o++,t.set(i,o)}}function ZJ(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return U(t,function(o){var a;Qe(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function QJ(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 Q1={},b_=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];U(Q1,function(i,o){var a=i.create(t,r);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){U(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Q1[t]=r},e.get=function(t){return Q1[t]},e}(),JJ=function(){function e(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return e}();function eee(e){var t=e.get("coordinateSystem"),r=new JJ(t),n=tee[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var tee={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",_n).models[0],o=e.getReferringComponents("yAxis",_n).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",o),Iu(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Iu(o)&&(n.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",_n).models[0];t.coordSysDims=["single"],r.set("single",i),Iu(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",_n).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",o),r.set("angle",a),Iu(o)&&(n.set("radius",o),t.firstCategoryDimIndex=0),Iu(a)&&(n.set("angle",a),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,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();U(o.parallelAxisIndex,function(s,l){var c=i.getComponent("parallelAxis",s),d=a[l];r.set(d,c),Iu(c)&&(n.set(d,c),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Iu(e){return e.get("type")==="category"}function ree(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,o,a,s;nee(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),c,d,p,h;if(U(o,function(w,b){We(w)&&(o[b]=w={name:w}),l&&!w.isExtraCoord&&(!n&&!c&&w.ordinalMeta&&(c=w),!d&&w.type!=="ordinal"&&w.type!=="time"&&(!i||i===w.coordDim)&&(d=w))}),d&&!n&&!c&&(n=!0),d){p="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,c&&(c.createInvertedIndices=!0);var v=d.coordDim,g=d.type,x=0;U(o,function(w){w.coordDim===v&&x++});var y={name:p,coordDim:v,coordDimIndex:x,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},S={name:h,coordDim:h,coordDimIndex:x+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,g),S.storeDimIndex=s.ensureCalculationDimension(p,g)),a.appendCalculationDimension(y),a.appendCalculationDimension(S)):(o.push(y),o.push(S))}return{stackedDimension:d&&d.name,stackedByDimension:c&&c.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:p}}function nee(e){return!u5(e.schema)}function Zd(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function iee(e,t){return Zd(e,t)?e.getCalculationInfo("stackResultDimension"):t}function oee(e,t){var r=e.get("coordinateSystem"),n=b_.get(r),i;return t&&t.coordSysDims&&(i=Ge(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=NJ(l)}return a})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function aee(e,t,r){var n,i;return r&&U(e,function(o,a){var s=o.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function see(e,t,r){r=r||{};var n=t.getSourceManager(),i,o=!1;i=n.getSource(),o=i.sourceFormat===Wi;var a=eee(t),s=oee(t,a),l=r.useEncodeDefaulter,c=ot(l)?l:l?Ut(TJ,s,t):null,d={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},p=XJ(i,d),h=aee(p.dimensions,r.createInvertedIndices,a),v=o?null:n.getSharedDataStore(p),g=ree(t,{schema:p,store:v}),x=new qJ(p,t);x.setCalculationInfo(g);var y=h!=null&&lee(i)?function(S,w,b,C){return C===h?b:this.defaultDimValueGetter(S,w,b,C)}:null;return x.hasItemOption=!1,x.initData(o?i:v,null,y),x}function lee(e){if(e.sourceFormat===Wi){var t=uee(e.data||[]);return!De(Rp(t))}}function uee(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var cee=Math.round(Math.random()*10);function Dp(e){return[e||"",cee++].join("_")}function fee(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=ko(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var o=ko(r).main;e.hasSubTypes(r)&&t[o]&&(i=t[o](n))}return i}}function dee(e,t){e.topologicalTravel=function(o,a,s,l){if(!o.length)return;var c=r(a),d=c.graph,p=c.noEntryList,h={};for(U(o,function(w){h[w]=!0});p.length;){var v=p.pop(),g=d[v],x=!!h[v];x&&(s.call(l,v,g.originalDeps.slice()),delete h[v]),U(g.successor,x?S:y)}U(h,function(){var w="";throw new Error(w)});function y(w){d[w].entryCount--,d[w].entryCount===0&&p.push(w)}function S(w){h[w]=!0,y(w)}};function r(o){var a={},s=[];return U(o,function(l){var c=n(a,l),d=c.originalDeps=t(l),p=i(d,o);c.entryCount=p.length,c.entryCount===0&&s.push(l),U(p,function(h){kt(c.predecessor,h)<0&&c.predecessor.push(h);var v=n(a,h);kt(v.successor,h)<0&&v.successor.push(l)})}),{graph:a,noEntryList:s}}function n(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function i(o,a){var s=[];return U(o,function(l){kt(a,l)>=0&&s.push(l)}),s}}function p5(e,t){return yt(yt({},e,!0),t,!0)}var pee=Math.log(2);function GS(e,t,r,n,i,o){var a=n+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/pee);return e[r][l]}for(var c=n|1<<r,d=r+1;n&1<<d;)d++;for(var p=0,h=0,v=0;h<s;h++){var g=1<<h;g&i||(p+=(v%2?-1:1)*e[r][h]*GS(e,t-1,d,c,i|g,o),v++)}return o[a]=p,p}function SP(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=GS(r,8,0,0,0,n);if(i!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*GS(r,7,a===0?1:0,1<<a,1<<s,n)/i*t[a];return function(l,c,d){var p=c*o[6]+d*o[7]+1;l[0]=(c*o[0]+d*o[1]+o[2])/p,l[1]=(c*o[3]+d*o[4]+o[5])/p}}}var bP="___zrEVENTSAVED",J1=[];function hee(e,t,r,n,i){return YS(J1,t,n,i,!0)&&YS(e,r,J1[0],J1[1])}function YS(e,t,r,n,i){if(t.getBoundingClientRect&&lt.domSupported&&!h5(t)){var o=t[bP]||(t[bP]={}),a=vee(t,o),s=gee(a,o,i);if(s)return s(e,r,n),!0}return!1}function vee(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,c=(o>>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[c]+":0",n[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(a),r.push(a)}return r}function gee(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],o=t.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var d=e[c].getBoundingClientRect(),p=2*c,h=d.left,v=d.top;a.push(h,v),l=l&&o&&h===o[p]&&v===o[p+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&i?i:(t.srcCoords=a,t[n]=r?SP(s,a):SP(a,s))}function h5(e){return e.nodeName.toUpperCase()==="CANVAS"}var mee=/([&<>"'])/g,yee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ni(e){return e==null?"":(e+"").replace(mee,function(t,r){return yee[r]})}const xee={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:". "}}}},See={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 zg="ZH",w_="EN",rc=w_,ig={},__={},v5=lt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||rc).toUpperCase();return e.indexOf(zg)>-1?zg:rc}():rc;function g5(e,t){e=e.toUpperCase(),__[e]=new vr(t),ig[e]=t}function bee(e){if(We(e)){var t=ig[e.toUpperCase()]||{};return e===zg||e===w_?ht(t):yt(ht(t),ht(ig[rc]),!1)}else return yt(ht(e),ht(ig[rc]),!1)}function wee(e){return __[e]}function _ee(){return __[rc]}g5(w_,xee);g5(zg,See);var C_=1e3,T_=C_*60,Td=T_*60,Li=Td*24,wP=Li*365,od={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}"},Tv="{yyyy}-{MM}-{dd}",_P={year:"{yyyy}",month:"{yyyy}-{MM}",day:Tv,hour:Tv+" "+od.hour,minute:Tv+" "+od.minute,second:Tv+" "+od.second,millisecond:od.none},ex=["year","month","day","hour","minute","second","millisecond"],m5=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Xa(e,t){return e+="","0000".substr(0,t-e.length)+e}function nc(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 Cee(e){return e===nc(e)}function Tee(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Zm(e,t,r,n){var i=ya(e),o=i[M_(r)](),a=i[ic(r)]()+1,s=Math.floor((a-1)/3)+1,l=i[Qm(r)](),c=i["get"+(r?"UTC":"")+"Day"](),d=i[Qd(r)](),p=(d-1)%12+1,h=i[Jm(r)](),v=i[ey(r)](),g=i[ty(r)](),x=d>=12?"pm":"am",y=x.toUpperCase(),S=n instanceof vr?n:wee(n||v5)||_ee(),w=S.getModel("time"),b=w.get("month"),C=w.get("monthAbbr"),T=w.get("dayOfWeek"),M=w.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,x+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Xa(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[a-1]).replace(/{MMM}/g,C[a-1]).replace(/{MM}/g,Xa(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Xa(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,T[c]).replace(/{ee}/g,M[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Xa(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,Xa(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Xa(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Xa(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Xa(g,3)).replace(/{S}/g,g+"")}function Mee(e,t,r,n,i){var o=null;if(We(r))o=r;else if(ot(r))o=r(e.value,t,{level:e.level});else{var a=Te({},od);if(e.level>0)for(var s=0;s<ex.length;++s)a[ex[s]]="{primary|"+a[ex[s]]+"}";var l=r?r.inherit===!1?r:At(r,a):a,c=y5(e.value,i);if(l[c])o=l[c];else if(l.inherit){for(var d=m5.indexOf(c),s=d-1;s>=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(De(o)){var p=e.level==null?0:e.level>=0?e.level:o.length+e.level;p=Math.min(p,o.length-1),o=o[p]}}return Zm(new Date(e.value),o,i,n)}function y5(e,t){var r=ya(e),n=r[ic(t)]()+1,i=r[Qm(t)](),o=r[Qd(t)](),a=r[Jm(t)](),s=r[ey(t)](),l=r[ty(t)](),c=l===0,d=c&&s===0,p=d&&a===0,h=p&&o===0,v=h&&i===1,g=v&&n===1;return g?"year":v?"month":h?"day":p?"hour":d?"minute":c?"second":"millisecond"}function CP(e,t,r){var n=fr(e)?ya(e):e;switch(t=t||y5(e,r),t){case"year":return n[M_(r)]();case"half-year":return n[ic(r)]()>=6?1:0;case"quarter":return Math.floor((n[ic(r)]()+1)/4);case"month":return n[ic(r)]();case"day":return n[Qm(r)]();case"half-day":return n[Qd(r)]()/24;case"hour":return n[Qd(r)]();case"minute":return n[Jm(r)]();case"second":return n[ey(r)]();case"millisecond":return n[ty(r)]()}}function M_(e){return e?"getUTCFullYear":"getFullYear"}function ic(e){return e?"getUTCMonth":"getMonth"}function Qm(e){return e?"getUTCDate":"getDate"}function Qd(e){return e?"getUTCHours":"getHours"}function Jm(e){return e?"getUTCMinutes":"getMinutes"}function ey(e){return e?"getUTCSeconds":"getSeconds"}function ty(e){return e?"getUTCMilliseconds":"getMilliseconds"}function kee(e){return e?"setUTCFullYear":"setFullYear"}function x5(e){return e?"setUTCMonth":"setMonth"}function S5(e){return e?"setUTCDate":"setDate"}function b5(e){return e?"setUTCHours":"setHours"}function w5(e){return e?"setUTCMinutes":"setMinutes"}function _5(e){return e?"setUTCSeconds":"setSeconds"}function C5(e){return e?"setUTCMilliseconds":"setMilliseconds"}function T5(e){if(!jZ(e))return We(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function M5(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 ry=zL;function qS(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(d){return d&&Mo(d)?d:"-"}function o(d){return!!(d!=null&&!isNaN(d)&&isFinite(d))}var a=t==="time",s=e instanceof Date;if(a||s){var l=a?ya(e):e;if(isNaN(+l)){if(s)return"-"}else return Zm(l,n,r)}if(t==="ordinal")return wS(e)?i(e):fr(e)&&o(e)?e+"":"-";var c=Dg(e);return o(c)?T5(c):wS(e)?i(e):typeof e=="boolean"?e+"":"-"}var TP=["a","b","c","d","e","f","g"],tx=function(e,t){return"{"+e+(t??"")+"}"};function k5(e,t,r){De(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=TP[o];e=e.replace(tx(a),tx(a,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var c=t[s][i[l]];e=e.replace(tx(TP[l],s),r?ni(c):c)}return e}function Ree(e,t){var r=We(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var o=r.renderMode||"html";if(!n)return"";if(o==="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:'+ni(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ni(n)+";"+(t||"")+'"></span>';var a=r.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Ul(e,t){return t=t||"transparent",We(e)?e:Qe(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function MP(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var og=U,Pee=["left","right","top","bottom","width","height"],Mv=[["width","left","right"],["height","top","bottom"]];function k_(e,t,r,n,i){var o=0,a=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,c){var d=l.getBoundingRect(),p=t.childAt(c+1),h=p&&p.getBoundingRect(),v,g;if(e==="horizontal"){var x=d.width+(h?-h.x+d.x:0);v=o+x,v>n||l.newline?(o=0,v=x,a+=s+r,s=d.height):s=Math.max(s,d.height)}else{var y=d.height+(h?-h.y+d.y:0);g=a+y,g>i||l.newline?(o+=s+r,a=0,g=y,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=v+r:a=g+r)})}var oc=k_;Ut(k_,"vertical");Ut(k_,"horizontal");function ws(e,t,r){r=ry(r||0);var n=t.width,i=t.height,o=Zr(e.left,n),a=Zr(e.top,i),s=Zr(e.right,n),l=Zr(e.bottom,i),c=Zr(e.width,n),d=Zr(e.height,i),p=r[2]+r[0],h=r[1]+r[3],v=e.aspect;switch(isNaN(c)&&(c=n-s-h-o),isNaN(d)&&(d=i-l-p-a),v!=null&&(isNaN(c)&&isNaN(d)&&(v>n/i?c=n*.8:d=i*.8),isNaN(c)&&(c=v*d),isNaN(d)&&(d=c/v)),isNaN(o)&&(o=n-s-c-h),isNaN(a)&&(a=i-l-d-p),e.left||e.right){case"center":o=n/2-c/2-r[3];break;case"right":o=n-c-h;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-d/2-r[0];break;case"bottom":a=i-d-p;break}o=o||0,a=a||0,isNaN(c)&&(c=n-h-o-(s||0)),isNaN(d)&&(d=i-p-a-(l||0));var g=new $t(o+r[3],a+r[0],c,d);return g.margin=r,g}function Eee(e,t,r,n,i,o){o=o||e,o.x=e.x,o.y=e.y;var a;if(a=e.getBoundingRect(),e.needLocalTransform()){var s=e.getLocalTransform();a=a.clone(),a.applyTransform(s)}var l=ws(At({width:a.width,height:a.height},t),r,n),c=l.x-a.x,d=l.y-a.y;return o.x+=c,o.y+=d,o===e&&e.markRedraw(),!0}function Jd(e){var t=e.layoutMode||e.constructor.layoutMode;return Qe(t)?t:t?{type:t}:null}function Sc(e,t,r){var n=r&&r.ignoreSize;!De(n)&&(n=[n,n]);var i=a(Mv[0],0),o=a(Mv[1],1);c(Mv[0],e,i),c(Mv[1],e,o);function a(d,p){var h={},v=0,g={},x=0,y=2;if(og(d,function(b){g[b]=e[b]}),og(d,function(b){s(t,b)&&(h[b]=g[b]=t[b]),l(h,b)&&v++,l(g,b)&&x++}),n[p])return l(t,d[1])?g[d[2]]=null:l(t,d[2])&&(g[d[1]]=null),g;if(x===y||!v)return g;if(v>=y)return h;for(var S=0;S<d.length;S++){var w=d[S];if(!s(h,w)&&s(e,w)){h[w]=e[w];break}}return h}function s(d,p){return d.hasOwnProperty(p)}function l(d,p){return d[p]!=null&&d[p]!=="auto"}function c(d,p,h){og(d,function(v){p[v]=h[v]})}}function Lp(e){return Aee({},e)}function Aee(e,t){return t&&e&&og(Pee,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Iee=Or(),Bt=function(e){_e(t,e);function t(r,n,i){var o=e.call(this,r,n,i)||this;return o.uid=Dp("ec_cpt_model"),o}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Jd(this),o=i?Lp(r):{},a=n.getTheme();yt(r,a.get(this.mainType)),yt(r,this.getDefaultOption()),i&&Sc(r,o,i)},t.prototype.mergeOption=function(r,n){yt(this.option,r,!0);var i=Jd(this);i&&Sc(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!oK(r))return r.defaultOption;var n=Iee(this);if(!n.defaultOption){for(var i=[],o=r;o;){var a=o.prototype.defaultOption;a&&i.push(a),o=o.superClass}for(var s={},l=i.length-1;l>=0;l--)s=yt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",o=r+"Id";return Pp(this.ecModel,r,{index:this.get(i,!0),id:this.get(o,!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}(vr);VL(Bt,vr);Dm(Bt);fee(Bt);dee(Bt,Dee);function Dee(e){var t=[];return U(Bt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Ge(t,function(r){return ko(r).main}),e!=="dataset"&&kt(t,"dataset")<=0&&t.unshift("dataset"),t}var kP=Or();Or();var R_=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=Mn(this.get("color",!0)),o=this.get("colorLayer",!0);return Oee(this,kP,i,o,t,r,n)},e.prototype.clearColorPalette=function(){Nee(this,kP)},e}();function Lee(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 Oee(e,t,r,n,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var d=a==null||!n?r:Lee(n,a);if(d=d||r,!(!d||!d.length)){var p=d[l];return i&&(c[i]=p),s.paletteIdx=(l+1)%d.length,p}}function Nee(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Bee=/\{@(.+?)\}/g,$ee=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),o=n.getRawIndex(t),a=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),c=l&&l[n.getItemVisual(t,"drawType")||"fill"],d=l&&l.stroke,p=this.mainType,h=p==="series",v=n.userOutput&&n.userOutput.get();return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:o,data:s,dataType:r,value:i,color:c,borderColor:d,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,o,a){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(a&&(l.value=a.interpolatedValue),i!=null&&De(l.value)&&(l.value=l.value[i]),!o){var c=s.getItemModel(t);o=c.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ot(o))return l.status=r,l.dimensionIndex=i,o(l);if(We(o)){var d=k5(o,l);return d.replace(Bee,function(p,h){var v=h.length,g=h;g.charAt(0)==="["&&g.charAt(v-1)==="]"&&(g=+g.slice(1,v-1));var x=xc(s,t,g);if(a&&De(a.interpolatedValue)){var y=s.getDimensionIndex(g);y>=0&&(x=a.interpolatedValue[y])}return x!=null?x+"":""})}},e.prototype.getRawValue=function(t,r){return xc(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function RP(e){var t,r;return Qe(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Md(e){return new zee(e)}var zee=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 o;this._plan&&!n&&(o=this._plan(this.context));var a=d(this._modBy),s=this._modDataCount||0,l=d(t&&t.modBy),c=t&&t.modDataCount||0;(a!==l||s!==c)&&(o="reset");function d(w){return!(w>=1)&&(w=1),w}var p;(this._dirty||o==="reset")&&(this._dirty=!1,p=this._doReset(n)),this._modBy=l,this._modDataCount=c;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,g=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(p||v<g)){var x=this._progress;if(De(x))for(var y=0;y<x.length;y++)this._doProgress(x[y],v,g,l,c);else this._doProgress(x,v,g,l,c)}this._dueIndex=g;var S=this._settedOutputEnd!=null?this._settedOutputEnd:g;this._outputDueEnd=S}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,o){PP.reset(r,n,i,o),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:PP.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),De(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}(),PP=function(){var e,t,r,n,i,o={reset:function(l,c,d,p){t=l,e=c,r=d,n=p,i=Math.ceil(n/r),o.next=r>1&&n>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),c=t>=e?null:l<n?l:t;return t++,c}}(),Fee=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 ng(t,r)},e}();function jee(e,t){var r=new Fee,n=e.data,i=r.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==pa&&Bn(a);var s=[],l={},c=e.dimensionsDefine;if(c)U(c,function(x,y){var S=x.name,w={index:y,name:S,displayName:x.displayName};if(s.push(w),S!=null){var b="";gc(l,S)&&Bn(b),l[S]=w}});else for(var d=0;d<e.dimensionsDetectedCount;d++)s.push({index:d});var p=n5(i,pa);t.__isBuiltIn&&(r.getRawDataItem=function(x){return p(n,o,s,x)},r.getRawData=St(Wee,null,e)),r.cloneRawData=St(Hee,null,e);var h=i5(i,pa);r.count=St(h,null,n,o,s);var v=o5(i);r.retrieveValue=function(x,y){var S=p(n,o,s,x);return g(S,y)};var g=r.retrieveValueFromItem=function(x,y){if(x!=null){var S=s[y];if(S)return v(x,y,S.name)}};return r.getDimensionInfo=St(Vee,null,s,l),r.cloneAllDimensionInfo=St(Uee,null,s),r}function Wee(e){var t=e.sourceFormat;if(!P_(t)){var r="";Bn(r)}return e.data}function Hee(e){var t=e.sourceFormat,r=e.data;if(!P_(t)){var n="";Bn(n)}if(t===Gn){for(var i=[],o=0,a=r.length;o<a;o++)i.push(r[o].slice());return i}else if(t===Ho){for(var i=[],o=0,a=r.length;o<a;o++)i.push(Te({},r[o]));return i}}function Vee(e,t,r){if(r!=null){if(fr(r)||!isNaN(r)&&!gc(t,r))return e[r];if(gc(t,r))return t[r]}}function Uee(e){return ht(e)}var R5=ft();function Gee(e){e=ht(e);var t=e.type,r="";t||Bn(r);var n=t.split(":");n.length!==2&&Bn(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,R5.set(t,e)}function Yee(e,t,r){var n=Mn(e),i=n.length,o="";i||Bn(o);for(var a=0,s=i;a<s;a++){var l=n[a];t=qee(l,t),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function qee(e,t,r,n){var i="";t.length||Bn(i),Qe(e)||Bn(i);var o=e.type,a=R5.get(o);a||Bn(i);var s=Ge(t,function(c){return jee(c,a)}),l=Mn(a.transform({upstream:s[0],upstreamList:s,config:ht(e.config)}));return Ge(l,function(c,d){var p="";Qe(c)||Bn(p),c.data||Bn(p);var h=e5(c.data);P_(h)||Bn(p);var v,g=t[0];if(g&&d===0&&!c.dimensions){var x=g.startIndex;x&&(c.data=g.data.slice(0,x).concat(c.data)),v={seriesLayoutBy:pa,sourceHeader:x,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:pa,sourceHeader:0,dimensions:c.dimensions};return VS(c.data,v,null)})}function P_(e){return e===Gn||e===Ho}var Xee=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,o;if(kv(t)){var a=t,s=void 0,l=void 0,c=void 0;if(n){var d=r[0];d.prepareSource(),c=d.getSource(),s=c.data,l=c.sourceFormat,o=[d._getVersionSign()]}else s=a.get("data",!0),l=Un(s)?ps:Wi,o=[];var p=this._getSourceMetaRawOption()||{},h=c&&c.metaRawOption||{},v=Tt(p.seriesLayoutBy,h.seriesLayoutBy)||null,g=Tt(p.sourceHeader,h.sourceHeader),x=Tt(p.dimensions,h.dimensions),y=v!==h.seriesLayoutBy||!!g!=!!h.sourceHeader||x;i=y?[VS(s,{seriesLayoutBy:v,sourceHeader:g,dimensions:x},l)]:[]}else{var S=t;if(n){var w=this._applyTransform(r);i=w.sourceList,o=w.upstreamSignList}else{var b=S.get("source",!0);i=[VS(b,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(i,o)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var o="";t.length!==1&&EP(o)}var a,s=[],l=[];return U(t,function(c){c.prepareSource();var d=c.getSource(i||0),p="";i!=null&&!d&&EP(p),s.push(d),l.push(c._getVersionSign())}),n?a=Yee(n,s,{datasetIndex:r.componentIndex}):i!=null&&(a=[RJ(s[0])]),{sourceList:a,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,o=this._storeList,a=o[i];a||(a=o[i]={});var s=a[n];if(!s){var l=this._getUpstreamSourceManagers()[0];kv(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new US,s.initData(new r5(r,t.length),t)),a[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(kv(t)){var r=ZO(t);return r?[r.getSourceManager()]:[]}else return Ge(MJ(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(kv(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;r=o.get("seriesLayoutBy",!0),n=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function kv(e){return e.mainType==="series"}function EP(e){throw new Error(e)}var P5="line-height:1";function E5(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ni(n+"")+"px;color:"+ni(r)+";font-weight:"+ni(i+""),valueStyle:"font-size:"+ni(a+"")+"px;color:"+ni(o)+";font-weight:"+ni(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Kee=[0,10,20,30],Zee=["",`
225
+ `,`
226
+
227
+ `,`
228
+
229
+
230
+ `];function ep(e,t){return t.type=e,t}function XS(e){return e.type==="section"}function A5(e){return XS(e)?Qee:Jee}function I5(e){if(XS(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return U(e.blocks,function(i){var o=I5(i);o>=t&&(t=o+ +(n&&(!o||XS(i)&&!i.noHeader)))}),t}return 0}function Qee(e,t,r,n){var i=t.noHeader,o=ete(I5(t)),a=[],s=t.blocks||[];$o(!s||De(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(gc(c,l)){var d=new $J(c[l],null);s.sort(function(g,x){return d.evaluate(g.sortParam,x.sortParam)})}else l==="seriesDesc"&&s.reverse()}U(s,function(g,x){var y=t.valueFormatter,S=A5(g)(y?Te(Te({},e),{valueFormatter:y}):e,g,x>0?o.html:0,n);S!=null&&a.push(S)});var p=e.renderMode==="richText"?a.join(o.richText):KS(a.join(""),i?r:o.html);if(i)return p;var h=qS(t.header,"ordinal",e.useUTC),v=E5(n,e.renderMode).nameStyle;return e.renderMode==="richText"?D5(e,h,v)+o.richText+p:KS('<div style="'+v+";"+P5+';">'+ni(h)+"</div>"+p,r)}function Jee(e,t,r,n){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,d=t.valueFormatter||e.valueFormatter||function(C){return C=De(C)?C:[C],Ge(C,function(T,M){return qS(T,De(v)?v[M]:v,c)})};if(!(o&&a)){var p=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=o?"":qS(l,"ordinal",c),v=t.valueType,g=a?[]:d(t.value,t.dataIndex),x=!s||!o,y=!s&&o,S=E5(n,i),w=S.nameStyle,b=S.valueStyle;return i==="richText"?(s?"":p)+(o?"":D5(e,h,w))+(a?"":nte(e,g,x,y,b)):KS((s?"":p)+(o?"":tte(h,!s,w))+(a?"":rte(g,x,y,b)),r)}}function AP(e,t,r,n,i,o){if(e){var a=A5(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function ete(e){return{html:Kee[e],richText:Zee[e]}}function KS(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+P5+';">'+e+r+"</div>"}function tte(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+ni(e)+"</span>"}function rte(e,t,r,n){var i=r?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=De(e)?e:[e],'<span style="'+o+";"+n+'">'+Ge(e,function(a){return ni(a)}).join("&nbsp;&nbsp;")+"</span>"}function D5(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function nte(e,t,r,n,i){var o=[i],a=n?10:20;return r&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(De(t)?t.join(" "):t,o)}function ite(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Ul(n)}function L5(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var rx=function(){function e(){this.richTextStyles={},this._nextStyleNameId=vO()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,o=Ree({color:r,type:t,renderMode:n,markerId:i});return We(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};De(r)?U(r,function(o){return Te(n,o)}):Te(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function ote(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(r),l=De(s),c=ite(t,r),d,p,h,v;if(a>1||l&&!a){var g=ate(s,t,r,o,c);d=g.inlineValues,p=g.inlineValueTypes,h=g.blocks,v=g.inlineValues[0]}else if(a){var x=i.getDimensionInfo(o[0]);v=d=xc(i,r,o[0]),p=x.type}else v=d=l?s[0]:s;var y=n_(t),S=y&&t.name||"",w=i.getName(r),b=n?S:w;return ep("section",{header:S,noHeader:n||!y,sortParam:v,blocks:[ep("nameValue",{markerType:"item",markerColor:c,name:b,noName:!Mo(b),value:d,valueType:p,dataIndex:r})].concat(h||[])})}function ate(e,t,r,n,i){var o=t.getData(),a=kc(e,function(p,h,v){var g=o.getDimensionInfo(v);return p=p||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],c=[];n.length?U(n,function(p){d(xc(o,r,p),p)}):U(e,d);function d(p,h){var v=o.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(a?c.push(ep("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:p,valueType:v.type})):(s.push(p),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:c}}var Ka=Or();function Rv(e,t){return e.getName(t)||e.getId(t)}var ste="__universalTransitionEnabled",_s=function(e){_e(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=Md({count:ute,reset:cte}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var o=Ka(this).sourceManager=new Xee(this);o.prepareSource();var a=this.getInitialData(r,i);DP(a,this),this.dataTask.context.data=a,Ka(this).dataBeforeProcessed=a,IP(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Jd(this),o=i?Lp(r):{},a=this.subType;Bt.hasClass(a)&&(a+="Series"),yt(r,n.getTheme().get(this.subType)),yt(r,this.getDefaultOption()),OR(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Sc(r,o,i)},t.prototype.mergeOption=function(r,n){r=yt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Jd(this);i&&Sc(this.option,r,i);var o=Ka(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(r,n);DP(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Ka(this).dataBeforeProcessed=a,IP(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(r){if(r&&!Un(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&OR(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=ZS(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Ka(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=ZS(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Ka(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ft(r)},t.prototype.getSourceManager=function(){return Ka(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ka(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 ote({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(lt.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 o=this.ecModel,a=R_.prototype.getColorFromPalette.call(this,r,n,i);return a||(a=o.getColorFromPalette(r,n,i)),a},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 o=this.option.selectedMode,a=this.getData(n);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],c=Rv(a,l);i[c]=!1,this._selectedDataIndicesMap[c]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],o=0;o<r.length;o++)i[0]=r[o],this.isSelected(r[o],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=cr(r),i=[],o=0;o<n.length;o++){var a=r[n[o]];a>=0&&i.push(a)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(n);return(i==="all"||i[Rv(o,r)])&&!o.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ste])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,o,a=this.option,s=a.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){Qe(a.selectedMap)||(a.selectedMap={});for(var c=a.selectedMap,d=0;d<l;d++){var p=n[d],h=Rv(r,p);c[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(p)}}else if(s==="single"||s===!0){var v=n[l-1],h=Rv(r,v);a.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(o={},o[h]=r.getRawIndex(v),o)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var o=r.getRawDataItem(i);o&&o.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Bt.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}(Bt);Wo(_s,$ee);Wo(_s,R_);VL(_s,Bt);function IP(e){var t=e.name;n_(e)||(e.name=lte(e)||t)}function lte(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return U(r,function(i){var o=t.getDimensionInfo(i);o.displayName&&n.push(o.displayName)}),n.join(" ")}function ute(e){return e.model.getRawData().count()}function cte(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),fte}function fte(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function DP(e,t){U(QX(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Ut(dte,t))})}function dte(e,t){var r=ZS(e);return r&&r.setOutputEnd((t||this).count()),t}function ZS(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 pte=Qt.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,o=t.height/2;e.moveTo(r,n-o),e.lineTo(r+i,n+o),e.lineTo(r-i,n+o),e.closePath()}}),hte=Qt.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,o=t.height/2;e.moveTo(r,n-o),e.lineTo(r+i,n),e.lineTo(r,n+o),e.lineTo(r-i,n),e.closePath()}}),vte=Qt.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,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=n-o+a+s,c=Math.asin(s/a),d=Math.cos(c)*a,p=Math.sin(c),h=Math.cos(c),v=a*.6,g=a*.7;e.moveTo(r-d,l+s),e.arc(r,l,a,Math.PI-c,Math.PI*2+c),e.bezierCurveTo(r+d-p*v,l+s+h*v,r,n-g,r,n),e.bezierCurveTo(r,n-g,r-d+p*v,l+s+h*v,r-d,l+s),e.closePath()}}),gte=Qt.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,o=t.y,a=n/3*2;e.moveTo(i,o),e.lineTo(i+a,o+r),e.lineTo(i,o+r/4*3),e.lineTo(i-a,o+r),e.lineTo(i,o),e.closePath()}}),mte={line:Ss,rect:dr,roundRect:dr,square:dr,circle:Wm,diamond:hte,pin:vte,arrow:gte,triangle:pte},yte={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 o=Math.min(r,n);i.x=e,i.y=t,i.width=o,i.height=o},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}},Fg={};U(mte,function(e,t){Fg[t]=new e});var xte=Qt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=YL(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=Fg[n];i||(n="rect",i=Fg[n]),yte[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function Ste(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 Cs(e,t,r,n,i,o,a){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=$O(e.slice(8),new $t(t,r,n,i),a?"center":"cover"):e.indexOf("path://")===0?l=p_(e.slice(7),{},new $t(t,r,n,i),a?"center":"cover"):l=new xte({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=Ste,o&&l.setColor(o),l}function bte(e){return De(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function O5(e,t){if(e!=null)return De(e)||(e=[e,e]),[Zr(e[0],t[0])||0,Zr(Tt(e[1],e[0]),t[1])||0]}var wte=function(e){_e(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 see(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Mr,i=Cs("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=r.itemHeight*.8,c=Cs(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(c),c.setStyle(r.itemStyle);var d=r.iconRotate==="inherit"?a:r.iconRotate||0;return c.rotation=d*Math.PI/180,c.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.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}(_s);function N5(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=xc(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var o=[],a=0;a<r.length;a++)o.push(xc(e,t,r[a]));return o.join(" ")}}function _te(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!De(t))return t+"";for(var n=[],i=0;i<r.length;i++){var o=e.getDimensionIndex(r[i]);o>=0&&n.push(t[o])}return n.join(" ")}var E_=function(e){_e(t,e);function t(r,n,i,o){var a=e.call(this)||this;return a.updateData(r,n,i,o),a}return t.prototype._createSymbol=function(r,n,i,o,a){this.removeAll();var s=Cs(r,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=Cte,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(){mc(this.childAt(0))},t.prototype.downplay=function(){yc(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,o){this.silent=!1;var a=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),c=a!==this._symbolType,d=o&&o.disableAnimation;if(c){var p=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,r,n,l,p)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};d?h.attr(v):bs(h,v,s,n),rJ(h)}if(this._updateCommon(r,n,l,i,o),c){var h=this.childAt(0);if(!d){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ip(h,v,s,n)}}d&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,o,a){var s=this.childAt(0),l=r.hostModel,c,d,p,h,v,g,x,y,S;if(o&&(c=o.emphasisItemStyle,d=o.blurItemStyle,p=o.selectItemStyle,h=o.focus,v=o.blurScope,x=o.labelStatesModels,y=o.hoverScale,S=o.cursorStyle,g=o.emphasisDisabled),!o||r.hasItemOption){var w=o&&o.itemModel?o.itemModel:r.getItemModel(n),b=w.getModel("emphasis");c=b.getModel("itemStyle").getItemStyle(),p=w.getModel(["select","itemStyle"]).getItemStyle(),d=w.getModel(["blur","itemStyle"]).getItemStyle(),h=b.get("focus"),v=b.get("blurScope"),g=b.get("disabled"),x=m_(w),y=b.getShallow("scale"),S=w.getShallow("cursor")}var C=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(C||0)*Math.PI/180||0);var T=O5(r.getItemVisual(n,"symbolOffset"),i);T&&(s.x=T[0],s.y=T[1]),S&&s.attr("cursor",S);var M=r.getItemVisual(n,"style"),E=M.fill;if(s instanceof ks){var I=s.style;s.useStyle(Te({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},M))}else s.__isEmptyBrush?s.useStyle(Te({},M)):s.useStyle(M),s.style.decal=null,s.setColor(E,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),k=this._z2;D!=null?k==null&&(this._z2=s.z2,s.z2+=D):k!=null&&(s.z2=k,this._z2=null);var O=a&&a.useNameLabel;g_(s,x,{labelFetcher:l,labelDataIndex:n,defaultText:N,inheritColor:E,defaultOpacity:M.opacity});function N(F){return O?r.getName(F):N5(r,F)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var $=s.ensureState("emphasis");$.style=c,s.ensureState("select").style=p,s.ensureState("blur").style=d;var z=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;$.scaleX=this._sizeX*z,$.scaleY=this._sizeY*z,this.setSymbolScale(1),zS(this,h,v,g)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var o=this.childAt(0),a=Vt(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&Ng(l,{style:{opacity:0}},n,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();Ng(o,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:a,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return bte(r.getItemVisual(n,"symbolSize"))},t}(Mr);function Cte(e,t){this.parent.drift(e,t)}function nx(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 LP(e){return e!=null&&!Qe(e)&&(e={isIgnore:e}),e||{}}function OP(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:m_(t),cursorStyle:t.get("cursor")}}var Tte=function(){function e(t){this.group=new Mr,this._SymbolCtor=t||E_}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=LP(r);var n=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=r.disableAnimation,l=OP(t),c={disableAnimation:s},d=r.getSymbolPoint||function(p){return t.getItemLayout(p)};o||n.removeAll(),t.diff(o).add(function(p){var h=d(p);if(nx(t,h,p,r)){var v=new a(t,p,l,c);v.setPosition(h),t.setItemGraphicEl(p,v),n.add(v)}}).update(function(p,h){var v=o.getItemGraphicEl(h),g=d(p);if(!nx(t,g,p,r)){n.remove(v);return}var x=t.getItemVisual(p,"symbol")||"circle",y=v&&v.getSymbolType&&v.getSymbolType();if(!v||y&&y!==x)n.remove(v),v=new a(t,p,l,c),v.setPosition(g);else{v.updateData(t,p,l,c);var S={x:g[0],y:g[1]};s?v.attr(S):bs(v,S,i)}n.add(v),t.setItemGraphicEl(p,v)}).remove(function(p){var h=o.getItemGraphicEl(p);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=d,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var o=t._getSymbolPoint(i);n.setPosition(o),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=OP(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=LP(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var a=r.getItemLayout(o);if(nx(r,a,o,n)){var s=new this._SymbolCtor(r,o,this._seriesScope);s.traverse(i),s.setPosition(a),this.group.add(s),r.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){v_(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 B5(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),o=Mte(i,r),a=n.dim,s=i.dim,l=t.mapDimension(s),c=t.mapDimension(a),d=s==="x"||s==="radius"?1:0,p=Ge(e.dimensions,function(g){return t.mapDimension(g)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Zd(t,p[0])&&(h=!0,p[0]=v),Zd(t,p[1])&&(h=!0,p[1]=v),{dataDimsForPoint:p,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:c,baseDataOffset:d,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Mte(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:fr(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function $5(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=r.get(e.baseDim,n),a[1-o]=i,t.dataToPoint(a)}var z5=typeof Float32Array<"u",kte=z5?Float32Array:Array;function Yu(e){return De(e)?z5?new Float32Array(e):e:new kte(e)}function Rte(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 Pte(e,t,r,n,i,o,a,s){for(var l=Rte(e,t),c=[],d=[],p=[],h=[],v=[],g=[],x=[],y=B5(i,t,a),S=e.getLayout("points")||[],w=t.getLayout("points")||[],b=0;b<l.length;b++){var C=l[b],T=!0,M=void 0,E=void 0;switch(C.cmd){case"=":M=C.idx*2,E=C.idx1*2;var I=S[M],D=S[M+1],k=w[E],O=w[E+1];(isNaN(I)||isNaN(D))&&(I=k,D=O),c.push(I,D),d.push(k,O),p.push(r[M],r[M+1]),h.push(n[E],n[E+1]),x.push(t.getRawIndex(C.idx1));break;case"+":var N=C.idx,$=y.dataDimsForPoint,z=i.dataToPoint([t.get($[0],N),t.get($[1],N)]);E=N*2,c.push(z[0],z[1]),d.push(w[E],w[E+1]);var F=$5(y,i,t,N);p.push(F[0],F[1]),h.push(n[E],n[E+1]),x.push(t.getRawIndex(N));break;case"-":T=!1}T&&(v.push(C),g.push(g.length))}g.sort(function(ne,Q){return x[ne]-x[Q]});for(var j=c.length,K=Yu(j),V=Yu(j),H=Yu(j),Y=Yu(j),W=[],b=0;b<g.length;b++){var q=g[b],te=b*2,le=q*2;K[te]=c[le],K[te+1]=c[le+1],V[te]=d[le],V[te+1]=d[le+1],H[te]=p[le],H[te+1]=p[le+1],Y[te]=h[le],Y[te+1]=h[le+1],W[b]=v[q]}return{current:K,next:V,stackedOnCurrent:H,stackedOnNext:Y,status:W}}var Za=Math.min,Qa=Math.max;function Dl(e,t){return isNaN(e)||isNaN(t)}function QS(e,t,r,n,i,o,a,s,l){for(var c,d,p,h,v,g,x=r,y=0;y<n;y++){var S=t[x*2],w=t[x*2+1];if(x>=i||x<0)break;if(Dl(S,w)){if(l){x+=o;continue}break}if(x===r)e[o>0?"moveTo":"lineTo"](S,w),p=S,h=w;else{var b=S-c,C=w-d;if(b*b+C*C<.5){x+=o;continue}if(a>0){for(var T=x+o,M=t[T*2],E=t[T*2+1];M===S&&E===w&&y<n;)y++,T+=o,x+=o,M=t[T*2],E=t[T*2+1],S=t[x*2],w=t[x*2+1],b=S-c,C=w-d;var I=y+1;if(l)for(;Dl(M,E)&&I<n;)I++,T+=o,M=t[T*2],E=t[T*2+1];var D=.5,k=0,O=0,N=void 0,$=void 0;if(I>=n||Dl(M,E))v=S,g=w;else{k=M-c,O=E-d;var z=S-c,F=M-S,j=w-d,K=E-w,V=void 0,H=void 0;if(s==="x"){V=Math.abs(z),H=Math.abs(F);var Y=k>0?1:-1;v=S-Y*V*a,g=w,N=S+Y*H*a,$=w}else if(s==="y"){V=Math.abs(j),H=Math.abs(K);var W=O>0?1:-1;v=S,g=w-W*V*a,N=S,$=w+W*H*a}else V=Math.sqrt(z*z+j*j),H=Math.sqrt(F*F+K*K),D=H/(H+V),v=S-k*a*(1-D),g=w-O*a*(1-D),N=S+k*a*D,$=w+O*a*D,N=Za(N,Qa(M,S)),$=Za($,Qa(E,w)),N=Qa(N,Za(M,S)),$=Qa($,Za(E,w)),k=N-S,O=$-w,v=S-k*V/H,g=w-O*V/H,v=Za(v,Qa(c,S)),g=Za(g,Qa(d,w)),v=Qa(v,Za(c,S)),g=Qa(g,Za(d,w)),k=S-v,O=w-g,N=S+k*H/V,$=w+O*H/V}e.bezierCurveTo(p,h,v,g,S,w),p=N,h=$}else e.lineTo(S,w)}c=S,d=w,x+=o}return y}var F5=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Ete=function(e){_e(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 F5},t.prototype.buildPath=function(r,n){var i=n.points,o=0,a=i.length/2;if(n.connectNulls){for(;a>0&&Dl(i[a*2-2],i[a*2-1]);a--);for(;o<a&&Dl(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=QS(r,i,o,a,a,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,o=i.data,a=Hl.CMD,s,l,c=n==="x",d=[],p=0;p<o.length;){var h=o[p++],v=void 0,g=void 0,x=void 0,y=void 0,S=void 0,w=void 0,b=void 0;switch(h){case a.M:s=o[p++],l=o[p++];break;case a.L:if(v=o[p++],g=o[p++],b=c?(r-s)/(v-s):(r-l)/(g-l),b<=1&&b>=0){var C=c?(g-l)*b+l:(v-s)*b+s;return c?[r,C]:[C,r]}s=v,l=g;break;case a.C:v=o[p++],g=o[p++],x=o[p++],y=o[p++],S=o[p++],w=o[p++];var T=c?Mg(s,v,x,S,r,d):Mg(l,g,y,w,r,d);if(T>0)for(var M=0;M<T;M++){var E=d[M];if(E<=1&&E>=0){var C=c?Kr(l,g,y,w,E):Kr(s,v,x,S,E);return c?[r,C]:[C,r]}}s=S,l=w;break}}},t}(Qt),Ate=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(F5),Ite=function(e){_e(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 Ate},t.prototype.buildPath=function(r,n){var i=n.points,o=n.stackedOnPoints,a=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Dl(i[s*2-2],i[s*2-1]);s--);for(;a<s&&Dl(i[a*2],i[a*2+1]);a++);}for(;a<s;){var c=QS(r,i,a,s,s,1,n.smooth,l,n.connectNulls);QS(r,o,a+c-1,c,s,-1,n.stackedOnSmooth,l,n.connectNulls),a+=c+1,r.closePath()}},t}(Qt);function j5(){var e=Or();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,o=!!r.progressiveRender,a=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==a||o!==s)&&"reset"}}var W5=Or(),Dte=j5(),Oo=function(){function e(){this.group=new Mr,this.uid=Dp("viewChart"),this.renderTask=Md({plan:Lte,reset:Ote}),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 o=t.getData(i&&i.dataType);o&&BP(o,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var o=t.getData(i&&i.dataType);o&&BP(o,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){v_(this.group,t)},e.markUpdateMethod=function(t,r){W5(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function NP(e,t,r){e&&FS(e)&&(t==="emphasis"?mc:yc)(e,r)}function BP(e,t,r){var n=Vl(e,t),i=t&&t.highlightKey!=null?_Q(t.highlightKey):null;n!=null?U(Mn(n),function(o){NP(e.getItemGraphicEl(o),r,i)}):e.eachItemGraphicEl(function(o){NP(o,r,i)})}Xw(Oo);Dm(Oo);function Lte(e){return Dte(e.model)}function Ote(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&W5(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,r,n,i),Nte[l]}var Nte={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function Bte(e,t,r,n,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,c=o.height,d=r.get(["lineStyle","width"])||2;a-=d/2,s-=d/2,l+=d,c+=d,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var p=new dr({shape:{x:a,y:s,width:l,height:c}});if(t){var h=e.getBaseAxis(),v=h.isHorizontal(),g=h.inverse;v?(g&&(p.shape.x+=l),p.shape.width=0):(g||(p.shape.y+=c),p.shape.height=0);var x=ot(i)?function(y){i(y,p)}:null;Ip(p,{shape:{width:l,height:c,x:a,y:s}},r,null,n,x)}return p}function $te(e,t,r){var n=e.getArea(),i=Lr(n.r0,1),o=Lr(n.r,1),a=new Hm({shape:{cx:Lr(e.cx,1),cy:Lr(e.cy,1),r0:i,r:o,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?a.shape.endAngle=n.startAngle:a.shape.r=i,Ip(a,{shape:{endAngle:n.endAngle,r:o}},r)}return a}function zte(e,t){return e.type===t}function $P(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function zP(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),n=Math.max(a,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function FP(e,t){var r=zP(e),n=r[0],i=r[1],o=zP(t),a=o[0],s=o[1];return Math.max(Math.abs(n[0]-a[0]),Math.abs(n[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function jP(e){return fr(e)?e:e?.5:0}function Fte(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=Yu(n*2),o=0;o<n;o++){var a=$5(r,e,t,o);i[o*2]=a[0],i[o*2+1]=a[1]}return i}function Ja(e,t,r,n){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,a=[],s=0,l=[],c=[],d=[],p=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&p.push(e[s],e[s+1]);e=p}for(s=0;s<e.length-2;s+=2)switch(d[0]=e[s+2],d[1]=e[s+3],c[0]=e[s],c[1]=e[s+1],a.push(c[0],c[1]),r){case"end":l[o]=d[o],l[1-o]=c[1-o],a.push(l[0],l[1]);break;case"middle":var h=(c[o]+d[o])/2,v=[];l[o]=v[o]=h,l[1-o]=c[1-o],v[1-o]=d[1-o],a.push(l[0],l[1]),a.push(v[0],v[1]);break;default:l[o]=c[o],l[1-o]=d[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function jte(e,t){var r=[],n=e.length,i,o;function a(d,p,h){var v=d.coord,g=(h-v)/(p.coord-v),x=HK(g,[d.color,p.color]);return{coord:h,color:x}}for(var s=0;s<n;s++){var l=e[s],c=l.coord;if(c<0)i=l;else if(c>t){o?r.push(a(o,l,t)):i&&r.push(a(i,l,0),a(i,l,t));break}else i&&(r.push(a(i,l,0)),i=null),r.push(l),o=l}return r}function Wte(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,o,a=n.length-1;a>=0;a--){var s=e.getDimensionInfo(n[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=n[a];break}}if(o){var l=t.getAxis(i),c=Ge(o.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),d=c.length,p=o.outerColors.slice();d&&c[0].coord>c[d-1].coord&&(c.reverse(),p.reverse());var h=jte(c,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&d)return c[0].coord<0?p[1]?p[1]:c[d-1].color:p[0]?p[0]:c[0].color;var g=10,x=h[0].coord-g,y=h[v-1].coord+g,S=y-x;if(S<.001)return"transparent";U(h,function(b){b.offset=(b.coord-x)/S}),h.push({offset:v?h[v-1].offset:.5,color:p[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:p[0]||"transparent"});var w=new BO(0,0,0,0,h,!0);return w[i]=x,w[i+"2"]=y,w}}}function Hte(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var o=r.getAxesByScale("ordinal")[0];if(o&&!(i&&Vte(o,t))){var a=t.mapDimension(o.dim),s={};return U(o.getViewLabels(),function(l){var c=o.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function Vte(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(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(E_.getSymbolSize(t,a)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function Ute(e,t){return isNaN(e)||isNaN(t)}function Gte(e){for(var t=e.length/2;t>0&&Ute(e[t*2-2],e[t*2-1]);t--);return t-1}function WP(e,t){return[e[t*2],e[t*2+1]]}function Yte(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,o,a,s=0,l=-1,c=0;c<n;c++)if(a=e[c*2+i],!(isNaN(a)||isNaN(e[c*2+1-i]))){if(c===0){o=a;continue}if(o<=t&&a>=t||o>=t&&a<=t){l=c;break}s=c,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function H5(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<zo.length;t++)if(e.get([zo[t],"endLabel","show"]))return!0;return!1}function ix(e,t,r,n){if(zte(t,"cartesian2d")){var i=n.getModel("endLabel"),o=i.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},l=H5(n)?function(v,g){e._endLabelOnDuring(v,g,a,s,o,i,t)}:null,c=t.getBaseAxis().isHorizontal(),d=Bte(t,r,n,function(){var v=e._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var p=d.shape,h=Math.max(p.width,p.height);c?(p.y-=h,p.height+=h*2):(p.x-=h,p.width+=h*2)}return l&&l(1,d),d}else return $te(t,r,n)}function qte(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,o=n?i?"right":"left":"center",a=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var Xte=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Mr,n=new Tte;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var o=this,a=r.coordinateSystem,s=this.group,l=r.getData(),c=r.getModel("lineStyle"),d=r.getModel("areaStyle"),p=l.getLayout("points")||[],h=a.type==="polar",v=this._coordSys,g=this._symbolDraw,x=this._polyline,y=this._polygon,S=this._lineGroup,w=!n.ssr&&r.get("animation"),b=!d.isEmpty(),C=d.get("origin"),T=B5(a,l,C),M=b&&Fte(a,l,T),E=r.get("showSymbol"),I=r.get("connectNulls"),D=E&&!h&&Hte(r,l,a),k=this._data;k&&k.eachItemGraphicEl(function(Q,ce){Q.__temp&&(s.remove(Q),k.setItemGraphicEl(ce,null))}),E||g.remove(),s.add(S);var O=h?!1:r.get("step"),N;a&&a.getArea&&r.get("clip",!0)&&(N=a.getArea(),N.width!=null?(N.x-=.1,N.y-=.1,N.width+=.2,N.height+=.2):N.r0&&(N.r0-=.5,N.r+=.5)),this._clipShapeForSymbol=N;var $=Wte(l,a,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(x&&v.type===a.type&&O===this._step))E&&g.updateData(l,{isIgnore:D,clipShape:N,disableAnimation:!0,getSymbolPoint:function(Q){return[p[Q*2],p[Q*2+1]]}}),w&&this._initSymbolLabelAnimation(l,a,N),O&&(p=Ja(p,a,O,I),M&&(M=Ja(M,a,O,I))),x=this._newPolyline(p),b?y=this._newPolygon(p,M):y&&(S.remove(y),y=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,Ul($)),S.setClipPath(ix(this,a,!0,r));else{b&&!y?y=this._newPolygon(p,M):y&&!b&&(S.remove(y),y=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,Ul($));var z=S.getClipPath();if(z){var F=ix(this,a,!1,r);Ip(z,{shape:F.shape},r)}else S.setClipPath(ix(this,a,!0,r));E&&g.updateData(l,{isIgnore:D,clipShape:N,disableAnimation:!0,getSymbolPoint:function(Q){return[p[Q*2],p[Q*2+1]]}}),(!$P(this._stackedOnPoints,M)||!$P(this._points,p))&&(w?this._doUpdateAnimation(l,M,a,i,O,C,I):(O&&(p=Ja(p,a,O,I),M&&(M=Ja(M,a,O,I))),x.setShape({points:p}),y&&y.setShape({points:p,stackedOnPoints:M})))}var j=r.getModel("emphasis"),K=j.get("focus"),V=j.get("blurScope"),H=j.get("disabled");if(x.useStyle(At(c.getLineStyle(),{fill:"none",stroke:$,lineJoin:"bevel"})),GR(x,r,"lineStyle"),x.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var Y=x.getState("emphasis").style;Y.lineWidth=+x.style.lineWidth+1}Vt(x).seriesIndex=r.seriesIndex,zS(x,K,V,H);var W=jP(r.get("smooth")),q=r.get("smoothMonotone");if(x.setShape({smooth:W,smoothMonotone:q,connectNulls:I}),y){var te=l.getCalculationInfo("stackedOnSeries"),le=0;y.useStyle(At(d.getAreaStyle(),{fill:$,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),te&&(le=jP(te.get("smooth"))),y.setShape({smooth:W,stackedOnSmooth:le,smoothMonotone:q,connectNulls:I}),GR(y,r,"areaStyle"),Vt(y).seriesIndex=r.seriesIndex,zS(y,K,V,H)}var ne=function(Q){o._changePolyState(Q)};l.eachItemGraphicEl(function(Q){Q&&(Q.onHoverStateChange=ne)}),this._polyline.onHoverStateChange=ne,this._data=l,this._coordSys=a,this._stackedOnPoints=M,this._points=p,this._step=O,this._valueOrigin=C,r.get("triggerLineEvent")&&(this.packEventData(r,x),y&&this.packEventData(r,y))},t.prototype.packEventData=function(r,n){Vt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,o){var a=r.getData(),s=Vl(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),c=a.getItemGraphicEl(s);if(!c){var d=l[s*2],p=l[s*2+1];if(isNaN(d)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(d,p))return;var h=r.get("zlevel")||0,v=r.get("z")||0;c=new E_(a,s),c.x=d,c.y=p,c.setZ(h,v);var g=c.getSymbolPath().getTextContent();g&&(g.zlevel=h,g.z=v,g.z2=this._polyline.z2+1),c.__temp=!0,a.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else Oo.prototype.highlight.call(this,r,n,i,o)},t.prototype.downplay=function(r,n,i,o){var a=r.getData(),s=Vl(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Oo.prototype.downplay.call(this,r,n,i,o)},t.prototype._changePolyState=function(r){var n=this._polygon;jR(this._polyline,r),n&&jR(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Ete({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 Ite({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var o,a,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):n.type==="polar"&&(o=s.dim==="angle",a=!0);var c=r.hostModel,d=c.get("animationDuration");ot(d)&&(d=d(null));var p=c.get("animationDelay")||0,h=ot(p)?p(null):p;r.eachItemGraphicEl(function(v,g){var x=v;if(x){var y=[v.x,v.y],S=void 0,w=void 0,b=void 0;if(i)if(a){var C=i,T=n.pointToCoord(y);o?(S=C.startAngle,w=C.endAngle,b=-T[1]/180*Math.PI):(S=C.r0,w=C.r,b=T[0])}else{var M=i;o?(S=M.x,w=M.x+M.width,b=v.x):(S=M.y+M.height,w=M.y,b=v.y)}var E=w===S?0:(b-S)/(w-S);l&&(E=1-E);var I=ot(p)?p(g):d*E+h,D=x.getSymbolPath(),k=D.getTextContent();x.attr({scaleX:0,scaleY:0}),x.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:I}),k&&k.animateFrom({style:{opacity:0}},{duration:300,delay:I}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var o=r.getModel("endLabel");if(H5(r)){var a=r.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new Fr({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var d=Gte(l);d>=0&&(g_(s,m_(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:d,defaultText:function(p,h,v){return v!=null?_te(a,v):N5(a,p)},enableTextSetter:!0},qte(o,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,o,a,s,l){var c=this._endLabel,d=this._polyline;if(c){r<1&&o.originalX==null&&(o.originalX=c.x,o.originalY=c.y);var p=i.getLayout("points"),h=i.hostModel,v=h.get("connectNulls"),g=s.get("precision"),x=s.get("distance")||0,y=l.getBaseAxis(),S=y.isHorizontal(),w=y.inverse,b=n.shape,C=w?S?b.x:b.y+b.height:S?b.x+b.width:b.y,T=(S?x:0)*(w?-1:1),M=(S?0:-x)*(w?-1:1),E=S?"x":"y",I=Yte(p,C,E),D=I.range,k=D[1]-D[0],O=void 0;if(k>=1){if(k>1&&!v){var N=WP(p,D[0]);c.attr({x:N[0]+T,y:N[1]+M}),a&&(O=h.getRawValue(D[0]))}else{var N=d.getPointOn(C,E);N&&c.attr({x:N[0]+T,y:N[1]+M});var $=h.getRawValue(D[0]),z=h.getRawValue(D[1]);a&&(O=nQ(i,g,$,z,I.t))}o.lastFrameIndex=D[0]}else{var F=r===1||o.lastFrameIndex>0?D[0]:0,N=WP(p,F);a&&(O=h.getRawValue(F)),c.attr({x:N[0]+T,y:N[1]+M})}if(a){var j=UO(c);typeof j.setLabelText=="function"&&j.setLabelText(O)}}},t.prototype._doUpdateAnimation=function(r,n,i,o,a,s,l){var c=this._polyline,d=this._polygon,p=r.hostModel,h=Pte(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=h.current,g=h.stackedOnCurrent,x=h.next,y=h.stackedOnNext;if(a&&(v=Ja(h.current,i,a,l),g=Ja(h.stackedOnCurrent,i,a,l),x=Ja(h.next,i,a,l),y=Ja(h.stackedOnNext,i,a,l)),FP(v,x)>3e3||d&&FP(g,y)>3e3){c.stopAnimation(),c.setShape({points:x}),d&&(d.stopAnimation(),d.setShape({points:x,stackedOnPoints:y}));return}c.shape.__points=h.current,c.shape.points=v;var S={shape:{points:x}};h.current!==v&&(S.shape.__points=h.next),c.stopAnimation(),bs(c,S,p),d&&(d.setShape({points:v,stackedOnPoints:g}),d.stopAnimation(),bs(d,{shape:{stackedOnPoints:y}},p),c.shape.points!==d.shape.points&&(d.shape.points=c.shape.points));for(var w=[],b=h.status,C=0;C<b.length;C++){var T=b[C].cmd;if(T==="="){var M=r.getItemGraphicEl(b[C].idx1);M&&w.push({el:M,ptIdx:C})}}c.animators&&c.animators.length&&c.animators[0].during(function(){d&&d.dirtyShape();for(var E=c.shape.__points,I=0;I<w.length;I++){var D=w[I].el,k=w[I].ptIdx*2;D.x=E[k],D.y=E[k+1],D.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(o,a){o.__temp&&(n.remove(o),i.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Oo);function Kte(e,t){return{seriesType:e,plan:j5(),reset:function(r){var n=r.getData(),i=r.coordinateSystem;if(r.pipelineContext,!!i){var o=Ge(i.dimensions,function(p){return n.mapDimension(p)}).slice(0,2),a=o.length,s=n.getCalculationInfo("stackResultDimension");Zd(n,o[0])&&(o[0]=s),Zd(n,o[1])&&(o[1]=s);var l=n.getStore(),c=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return a&&{progress:function(p,h){for(var v=p.end-p.start,g=Yu(v*a),x=[],y=[],S=p.start,w=0;S<p.end;S++){var b=void 0;if(a===1){var C=l.get(c,S);b=i.dataToPoint(C,null,y)}else x[0]=l.get(c,S),x[1]=l.get(d,S),b=i.dataToPoint(x,null,y);g[w++]=b[0],g[w++]=b[1]}h.setLayout("points",g)}}}}}}var Zte={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],o=Math.abs(i);o>t&&(t=o,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},Qte=function(e){return Math.round(e.length/2)};function Jte(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),c=a.getOtherAxis(l),d=l.getExtent(),p=n.getDevicePixelRatio(),h=Math.abs(d[1]-d[0])*(p||1),v=Math.round(s/h);if(isFinite(v)&&v>1){o==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(c.dim),1/v));var g=void 0;We(o)?g=Zte[o]:ot(o)&&(g=o),g&&t.setData(i.downSample(i.mapDimension(c.dim),1/v,g,Qte))}}}}}function ere(e){e.registerChartView(Xte),e.registerSeriesModel(wte),e.registerLayout(Kte("line")),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,Jte("line"))}var tre="__ec_stack_";function rre(e){return e.get("stack")||tre+e.seriesIndex}function V5(e){return e.dim+e.index}function nre(e,t){var r=[];return t.eachSeriesByType(e,function(n){lre(n)&&r.push(n)}),r}function ire(e){var t={};U(e,function(l){var c=l.coordinateSystem,d=c.getBaseAxis();if(!(d.type!=="time"&&d.type!=="value"))for(var p=l.getData(),h=d.dim+"_"+d.index,v=p.getDimensionIndex(p.mapDimension(d.dim)),g=p.getStore(),x=0,y=g.count();x<y;++x){var S=g.get(v,x);t[h]?t[h].push(S):t[h]=[S]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,c){return l-c});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=o===null?s:Math.min(o,s))}r[n]=o}}return r}function ore(e){var t=ire(e),r=[];return U(e,function(n){var i=n.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,c=t[l],d=Math.abs(a[1]-a[0]),p=o.scale.getExtent(),h=Math.abs(p[1]-p[0]);s=c?d/h*c:d}else{var v=n.getData();s=Math.abs(a[1]-a[0])/v.count()}var g=Zr(n.get("barWidth"),s),x=Zr(n.get("barMaxWidth"),s),y=Zr(n.get("barMinWidth")||(ure(n)?.5:1),s),S=n.get("barGap"),w=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:g,barMaxWidth:x,barMinWidth:y,barGap:S,barCategoryGap:w,axisKey:V5(o),stackId:rre(n)})}),are(r)}function are(e){var t={};U(e,function(n,i){var o=n.axisKey,a=n.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[o]=s;var c=n.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var d=n.barWidth;d&&!l[c].width&&(l[c].width=d,d=Math.min(s.remainedWidth,d),s.remainedWidth-=d);var p=n.barMaxWidth;p&&(l[c].maxWidth=p);var h=n.barMinWidth;h&&(l[c].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var g=n.barCategoryGap;g!=null&&(s.categoryGap=g)});var r={};return U(t,function(n,i){r[i]={};var o=n.stacks,a=n.bandWidth,s=n.categoryGap;if(s==null){var l=cr(o).length;s=Math.max(35-l*4,15)+"%"}var c=Zr(s,a),d=Zr(n.gap,1),p=n.remainedWidth,h=n.autoWidthCount,v=(p-c)/(h+(h-1)*d);v=Math.max(v,0),U(o,function(S){var w=S.maxWidth,b=S.minWidth;if(S.width){var C=S.width;w&&(C=Math.min(C,w)),b&&(C=Math.max(C,b)),S.width=C,p-=C+d*C,h--}else{var C=v;w&&w<C&&(C=Math.min(w,p)),b&&b>C&&(C=b),C!==v&&(S.width=C,p-=C+d*C,h--)}}),v=(p-c)/(h+(h-1)*d),v=Math.max(v,0);var g=0,x;U(o,function(S,w){S.width||(S.width=v),x=S,g+=S.width*(1+d)}),x&&(g-=x.width*d);var y=-g/2;U(o,function(S,w){r[i][w]=r[i][w]||{bandWidth:a,offset:y,width:S.width},y+=S.width*(1+d)})}),r}function sre(e,t,r){if(e&&t){var n=e[V5(t)];return n}}function lre(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function ure(e){return e.pipelineContext&&e.pipelineContext.large}var jg="\0__throttleOriginMethod",HP="\0__throttleRate",VP="\0__throttleType";function U5(e,t,r){var n,i=0,o=0,a=null,s,l,c,d;t=t||0;function p(){o=new Date().getTime(),a=null,e.apply(l,c||[])}var h=function(){for(var v=[],g=0;g<arguments.length;g++)v[g]=arguments[g];n=new Date().getTime(),l=this,c=v;var x=d||t,y=d||r;d=null,s=n-(y?i:o)-x,clearTimeout(a),y?a=setTimeout(p,x):s>=0?p():a=setTimeout(p,-s),i=n};return h.clear=function(){a&&(clearTimeout(a),a=null)},h.debounceNextCall=function(v){d=v},h}function A_(e,t,r,n){var i=e[t];if(i){var o=i[jg]||i,a=i[VP],s=i[HP];if(s!==r||a!==n){if(r==null)return e[t]=o;i=e[t]=U5(o,r,n==="debounce"),i[jg]=o,i[VP]=n,i[HP]=r}return i}}function Wg(e,t){var r=e[t];r&&r[jg]&&(r.clear&&r.clear(),e[t]=r[jg])}function Du(e,t,r,n,i){var o=e+t;r.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,c=i.selected,d=0;d<c.length;d++)if(c[d].seriesIndex===s){var p=a.getData(),h=Vl(p,i.fromActionPayload);r.trigger(o,{type:o,seriesId:a.id,name:De(h)?p.getName(h[0]):p.getName(h),selected:We(l)?l:Te({},l)})}})}function cre(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Du("map","selectchanged",t,i,n),Du("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Du("map","selected",t,i,n),Du("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Du("map","unselected",t,i,n),Du("pie","unselected",t,i,n))})}function fre(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,c=a.clone();c.applyTransform(o),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var d=s?new Og(a,o):null;t.push({label:i,labelLine:n.labelLine,rect:c,localRect:a,obb:d,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return t}function dre(e){var t=[];e.sort(function(x,y){return y.priority-x.priority});var r=new $t(0,0,0,0);function n(x){if(!x.ignore){var y=x.ensureState("emphasis");y.ignore==null&&(y.ignore=!1)}x.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,c=o.label,d=o.labelLine;r.copy(o.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var p=o.obb,h=!1,v=0;v<t.length;v++){var g=t[v];if(r.intersect(g.rect)){if(a&&g.axisAligned){h=!0;break}if(g.obb||(g.obb=new Og(g.localRect,g.transform)),p||(p=new Og(s,l)),p.intersect(g.obb)){h=!0;break}}}h?(n(c),d&&n(d)):(c.attr("ignore",o.defaultAttr.ignore),d&&d.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}var Lu=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),pre=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 Lu(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,o=n-this._x,a=i-this._y;this._x=n,this._y=i,r.drift(o,a,t),this.handler.dispatchToElement(new Lu(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 Lu(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Lu(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Lu(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Lu(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),hre=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ox=[],vre=lt.browser.firefox&&+lt.browser.version.split(".")[0]<39;function JS(e,t,r,n){return r=r||{},n?UP(e,t,r):vre&&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):UP(e,t,r),r}function UP(e,t,r){if(lt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(h5(e)){var o=e.getBoundingClientRect();r.zrX=n-o.left,r.zrY=i-o.top;return}else if(YS(ox,e,n,i)){r.zrX=ox[0],r.zrY=ox[1];return}}r.zrX=r.zrY=0}function I_(e){return e||window.event}function Ti(e,t,r){if(t=I_(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var a=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&JS(e,a,t,r)}else{JS(e,t,t,r);var o=gre(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&hre.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function gre(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),o=n>0?-1:n<0?1:r>0?-1:1;return 3*i*o}function eb(e,t,r,n){e.addEventListener(t,r,n)}function mre(e,t,r,n){e.removeEventListener(t,r,n)}var Hg=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},yre=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 o={points:[],touches:[],target:r,event:t},a=0,s=i.length;a<s;a++){var l=i[a],c=JS(n,l,{});o.points.push([c.zrX,c.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var r in ax)if(ax.hasOwnProperty(r)){var n=ax[r](this._track,t);if(n)return n}},e}();function GP(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function xre(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var ax={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 o=GP(n)/GP(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=xre(n);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},G5="silent";function Sre(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:bre}}function bre(){Hg(this.event)}var wre=function(e){_e(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}(uo),Nf=function(){function e(t,r){this.x=t,this.y=r}return e}(),_re=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],sx=new $t(0,0,0,0),Y5=function(e){_e(t,e);function t(r,n,i,o,a){var s=e.call(this)||this;return s._hovered=new Nf(0,0),s.storage=r,s.painter=n,s.painterRoot=o,s._pointerSize=a,i=i||new wre,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new pre(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(U(_re,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,o=q5(this,n,i),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new Nf(n,i):this.findHover(n,i),c=l.target,d=this.proxy;d.setCursor&&d.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(a,"mouseout",r),this.dispatchToElement(l,"mousemove",r),c&&c!==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 Nf(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 o=r.target;if(!(o&&o.silent)){for(var a="on"+n,s=Sre(n,r,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(n,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var o=this.storage.getDisplayList(),a=new Nf(r,n);if(YP(o,a,r,n,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,c=l/2,d=new $t(r-c,n-c,l,l),p=o.length-1;p>=0;p--){var h=o[p];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(sx.copy(h.getBoundingRect()),h.transform&&sx.applyTransform(h.transform),sx.intersect(d)&&s.push(h))}if(s.length)for(var v=4,g=Math.PI/12,x=Math.PI*2,y=0;y<c;y+=v)for(var S=0;S<x;S+=g){var w=r+y*Math.cos(S),b=n+y*Math.sin(S);if(YP(s,a,w,b,i),a.target)return a}}return a},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new yre);var i=this._gestureMgr;n==="start"&&i.clear();var o=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),o){var a=o.type;r.gestureEvent=a;var s=new Nf;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t}(uo);U(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Y5.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=q5(this,r,n),o,a;if((e!=="mouseup"||!i)&&(o=this.findHover(r,n),a=o.target),e==="mousedown")this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if(e==="mouseup")this._upEl=a;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||IK(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function Cre(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var a=n.getClipPath();if(a&&!a.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?G5:!0}return!1}function YP(e,t,r,n,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=Cre(a,r,n))&&(!t.topTarget&&(t.topTarget=a),s!==G5)){t.target=a;break}}}function q5(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var X5=32,Bf=7;function Tre(e){for(var t=0;e>=X5;)t|=e&1,e>>=1;return e+t}function qP(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++;Mre(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function Mre(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function XP(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var o=e[n],a=t,s=n,l;a<s;)l=a+s>>>1,i(o,e[l])<0?s=l:a=l+1;var c=n-a;switch(c){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;c>0;)e[a+c]=e[a+c-1],c--}e[a]=o}}function lx(e,t,r,n,i,o){var a=0,s=0,l=1;if(o(e,t[r+i])>0){for(s=n-i;l<s&&o(e,t[r+i+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[r+i-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=i-l,l=i-c}for(a++;a<l;){var d=a+(l-a>>>1);o(e,t[r+d])>0?a=d+1:l=d}return l}function ux(e,t,r,n,i,o){var a=0,s=0,l=1;if(o(e,t[r+i])<0){for(s=i+1;l<s&&o(e,t[r+i-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=i-l,l=i-c}else{for(s=n-i;l<s&&o(e,t[r+i+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var d=a+(l-a>>>1);o(e,t[r+d])<0?l=d:a=d+1}return l}function kre(e,t){var r=Bf,n,i,o=0,a=[];n=[],i=[];function s(v,g){n[o]=v,i[o]=g,o+=1}function l(){for(;o>1;){var v=o-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;d(v)}}function c(){for(;o>1;){var v=o-2;v>0&&i[v-1]<i[v+1]&&v--,d(v)}}function d(v){var g=n[v],x=i[v],y=n[v+1],S=i[v+1];i[v]=x+S,v===o-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),o--;var w=ux(e[y],e,g,x,0,t);g+=w,x-=w,x!==0&&(S=lx(e[g+x-1],e,y,S,S-1,t),S!==0&&(x<=S?p(g,x,y,S):h(g,x,y,S)))}function p(v,g,x,y){var S=0;for(S=0;S<g;S++)a[S]=e[v+S];var w=0,b=x,C=v;if(e[C++]=e[b++],--y===0){for(S=0;S<g;S++)e[C+S]=a[w+S];return}if(g===1){for(S=0;S<y;S++)e[C+S]=e[b+S];e[C+y]=a[w];return}for(var T=r,M,E,I;;){M=0,E=0,I=!1;do if(t(e[b],a[w])<0){if(e[C++]=e[b++],E++,M=0,--y===0){I=!0;break}}else if(e[C++]=a[w++],M++,E=0,--g===1){I=!0;break}while((M|E)<T);if(I)break;do{if(M=ux(e[b],a,w,g,0,t),M!==0){for(S=0;S<M;S++)e[C+S]=a[w+S];if(C+=M,w+=M,g-=M,g<=1){I=!0;break}}if(e[C++]=e[b++],--y===0){I=!0;break}if(E=lx(a[w],e,b,y,0,t),E!==0){for(S=0;S<E;S++)e[C+S]=e[b+S];if(C+=E,b+=E,y-=E,y===0){I=!0;break}}if(e[C++]=a[w++],--g===1){I=!0;break}T--}while(M>=Bf||E>=Bf);if(I)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(S=0;S<y;S++)e[C+S]=e[b+S];e[C+y]=a[w]}else{if(g===0)throw new Error;for(S=0;S<g;S++)e[C+S]=a[w+S]}}function h(v,g,x,y){var S=0;for(S=0;S<y;S++)a[S]=e[x+S];var w=v+g-1,b=y-1,C=x+y-1,T=0,M=0;if(e[C--]=e[w--],--g===0){for(T=C-(y-1),S=0;S<y;S++)e[T+S]=a[S];return}if(y===1){for(C-=g,w-=g,M=C+1,T=w+1,S=g-1;S>=0;S--)e[M+S]=e[T+S];e[C]=a[b];return}for(var E=r;;){var I=0,D=0,k=!1;do if(t(a[b],e[w])<0){if(e[C--]=e[w--],I++,D=0,--g===0){k=!0;break}}else if(e[C--]=a[b--],D++,I=0,--y===1){k=!0;break}while((I|D)<E);if(k)break;do{if(I=g-ux(a[b],e,v,g,g-1,t),I!==0){for(C-=I,w-=I,g-=I,M=C+1,T=w+1,S=I-1;S>=0;S--)e[M+S]=e[T+S];if(g===0){k=!0;break}}if(e[C--]=a[b--],--y===1){k=!0;break}if(D=y-lx(e[w],a,0,y,y-1,t),D!==0){for(C-=D,b-=D,y-=D,M=C+1,T=b+1,S=0;S<D;S++)e[M+S]=a[T+S];if(y<=1){k=!0;break}}if(e[C--]=e[w--],--g===0){k=!0;break}E--}while(I>=Bf||D>=Bf);if(k)break;E<0&&(E=0),E+=2}if(r=E,r<1&&(r=1),y===1){for(C-=g,w-=g,M=C+1,T=w+1,S=g-1;S>=0;S--)e[M+S]=e[T+S];e[C]=a[b]}else{if(y===0)throw new Error;for(T=C-(y-1),S=0;S<y;S++)e[T+S]=a[S]}}return{mergeRuns:l,forceMergeRuns:c,pushRun:s}}function ag(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var o=0;if(i<X5){o=qP(e,r,n,t),XP(e,r,n,r+o,t);return}var a=kre(e,t),s=Tre(i);do{if(o=qP(e,r,n,t),o<s){var l=i;l>s&&(l=s),XP(e,r,r+l,r+o,t),o=l}a.pushRun(r,o),a.mergeRuns(),i-=o,r+=o}while(i!==0);a.forceMergeRuns()}}var KP=!1;function cx(){KP||(KP=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ZP(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Rre=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ZP}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,o=r.length;i<o;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,ag(n,ZP)},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 o=i,a=t;o;)o.parent=a,o.updateTransform(),r.push(o),a=o,o=o.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var c=s[l];t.__dirty&&(c.__dirty|=Do),this._updateAndAddDisplayable(c,r,n)}t.__dirty=0}else{var d=t;r&&r.length?d.__clipPaths=r:d.__clipPaths&&d.__clipPaths.length>0&&(d.__clipPaths=[]),isNaN(d.z)&&(cx(),d.z=0),isNaN(d.z2)&&(cx(),d.z2=0),isNaN(d.zlevel)&&(cx(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,r,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,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=kt(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}(),Vg;Vg=lt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function qu(){return new Date().getTime()}var Pre=function(e){_e(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=qu()-this._pausedTime,i=n-this._time,o=this._head;o;){var a=o.next,s=o.step(n,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}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&&(Vg(n),!r._paused&&r.update())}Vg(n)},t.prototype.start=function(){this._running||(this._time=qu(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=qu(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=qu()-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 t_(r,n.loop);return this.addAnimator(i),i},t}(uo),Ere=300,fx=lt.domSupported,dx=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=Ge(e,function(i){var o=i.replace("mouse","pointer");return r.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:n}}(),QP={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},JP=!1;function tb(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Are(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 px(e){e&&(e.zrByTouch=!0)}function Ire(e,t){return Ti(e.dom,new Dre(e,t),!0)}function K5(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 Dre=function(){function e(t,r){this.stopPropagation=Tn,this.stopImmediatePropagation=Tn,this.preventDefault=Tn,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),to={mousedown:function(e){e=Ti(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ti(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=Ti(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ti(this.dom,e);var t=e.toElement||e.relatedTarget;K5(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){JP=!0,e=Ti(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){JP||(e=Ti(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ti(this.dom,e),px(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),to.mousemove.call(this,e),to.mousedown.call(this,e)},touchmove:function(e){e=Ti(this.dom,e),px(e),this.handler.processGesture(e,"change"),to.mousemove.call(this,e)},touchend:function(e){e=Ti(this.dom,e),px(e),this.handler.processGesture(e,"end"),to.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Ere&&to.click.call(this,e)},pointerdown:function(e){to.mousedown.call(this,e)},pointermove:function(e){tb(e)||to.mousemove.call(this,e)},pointerup:function(e){to.mouseup.call(this,e)},pointerout:function(e){tb(e)||to.mouseout.call(this,e)}};U(["click","dblclick","contextmenu"],function(e){to[e]=function(t){t=Ti(this.dom,t),this.trigger(e,t)}});var rb={pointermove:function(e){tb(e)||rb.mousemove.call(this,e)},pointerup:function(e){rb.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 Lre(e,t){var r=t.domHandlers;lt.pointerEventsSupported?U(dx.pointer,function(n){sg(t,n,function(i){r[n].call(e,i)})}):(lt.touchEventsSupported&&U(dx.touch,function(n){sg(t,n,function(i){r[n].call(e,i),Are(t)})}),U(dx.mouse,function(n){sg(t,n,function(i){i=I_(i),t.touching||r[n].call(e,i)})}))}function Ore(e,t){lt.pointerEventsSupported?U(QP.pointer,r):lt.touchEventsSupported||U(QP.mouse,r);function r(n){function i(o){o=I_(o),K5(e,o.target)||(o=Ire(e,o),t.domHandlers[n].call(e,o))}sg(t,n,i,{capture:!0})}}function sg(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,eb(e.domTarget,t,r,n)}function hx(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&mre(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var eE=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Nre=function(e){_e(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 eE(r,to),fx&&(i._globalHandlerScope=new eE(document,rb)),Lre(i,i._localHandlerScope),i}return t.prototype.dispose=function(){hx(this._localHandlerScope),fx&&hx(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,fx&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Ore(this,n):hx(n)}},t}(uo);/*!
231
+ * ZRender, a high performance 2d drawing library.
232
+ *
233
+ * Copyright (c) 2013, Baidu Inc.
234
+ * All rights reserved.
235
+ *
236
+ * LICENSE
237
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
238
+ */var lg={},Z5={};function Bre(e){delete Z5[e]}function $re(e){if(!e)return!1;if(typeof e=="string")return Pg(e,1)<IS;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Pg(t[i].color,1);return r/=n,r<IS}return!1}var zre=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 o=new Rre,a=n.renderer||"canvas";lg[a]||(a=cr(lg)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new lg[a](r,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var c=!lt.node&&!lt.worker&&!l?new Nre(s.getViewportRoot(),s.root):null,d=n.useCoarsePointer,p=d==null||d==="auto"?lt.touchEventsSupported:!!d,h=44,v;p&&(v=Tt(n.pointerSize,h)),this.handler=new Y5(o,s,c,s.root,v),this.animation=new Pre({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=$re(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=qu();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=qu();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 Mr&&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,Bre(this.id))},e}();function tE(e,t){var r=new zre($L(),e,t);return Z5[r.id]=r,r}function Fre(e,t){lg[e]=t}var Q5="";typeof navigator<"u"&&(Q5=navigator.platform||"");var Ou="rgba(0, 0, 0, 0.2)";const jre={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ou,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ou,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ou,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ou,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ou,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ou,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Q5.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 nb=ft();function Wre(e,t){$o(nb.get(e)==null&&t),nb.set(e,t)}function Hre(e,t,r){var n=nb.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var Pv,$f,rE,nE="\0_ec_inner",Vre=1,D_=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,o,a,s){o=o||{},this.option=null,this._theme=new vr(o),this._locale=new vr(a),this._optionManager=s},t.prototype.setOption=function(r,n,i){var o=aE(n);this._optionManager.setOption(r,i,o),this._resetOption(null,o)},t.prototype.resetOption=function(r,n){return this._resetOption(r,aE(n))},t.prototype._resetOption=function(r,n){var i=!1,o=this._optionManager;if(!r||r==="recreate"){var a=o.mountOption(r==="recreate");!this.option||r==="recreate"?rE(this,a):(this.restoreData(),this._mergeOption(a,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=o.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=o.getMediaOption(this);l.length&&U(l,function(c){i=!0,this._mergeOption(c,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=ft(),c=n&&n.replaceMergeMainTypeMap;CJ(this),U(r,function(p,h){p!=null&&(Bt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?ht(p):yt(i[h],p,!0))}),c&&c.each(function(p,h){Bt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Bt.topologicalTravel(s,Bt.getAllClassMainTypes(),d,this);function d(p){var h=Hre(this,p,Mn(r[p])),v=o.get(p),g=v?c&&c.get(p)?"replaceMerge":"normalMerge":"replaceAll",x=HZ(v,h,g);ZZ(x,p,Bt),i[p]=null,o.set(p,null),a.set(p,0);var y=[],S=[],w=0,b;U(x,function(C,T){var M=C.existing,E=C.newOption;if(!E)M&&(M.mergeOption({},this),M.optionUpdated({},!1));else{var I=p==="series",D=Bt.getClass(p,C.keyInfo.subType,!I);if(!D)return;if(p==="tooltip"){if(b)return;b=!0}if(M&&M.constructor===D)M.name=C.keyInfo.name,M.mergeOption(E,this),M.optionUpdated(E,!1);else{var k=Te({componentIndex:T},C.keyInfo);M=new D(E,this,this,k),Te(M,k),C.brandNew&&(M.__requireNewView=!0),M.init(E,this,this),M.optionUpdated(null,!0)}}M?(y.push(M.option),S.push(M),w++):(y.push(void 0),S.push(void 0))},this),i[p]=y,o.set(p,S),a.set(p,w),p==="series"&&Pv(this)}this._seriesIndices||Pv(this)},t.prototype.getOption=function(){var r=ht(this.option);return U(r,function(n,i){if(Bt.hasClass(i)){for(var o=Mn(n),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!qd(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,r[i]=o}}),delete r[nE],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 o=i[n||0];if(o)return o;if(n==null){for(var a=0;a<i.length;a++)if(i[a])return i[a]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,o=r.id,a=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],U(Mn(i),function(c){s[c]&&l.push(s[c])})):o!=null?l=iE("id",o,s):a!=null?l=iE("name",a,s):l=hn(s,function(c){return!!c}),oE(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,o=s(n),a=o?this.queryComponents(o):hn(this._componentsMap.get(i),function(c){return!!c});return l(oE(a,r));function s(c){var d=i+"Index",p=i+"Id",h=i+"Name";return c&&(c[d]!=null||c[p]!=null||c[h]!=null)?{mainType:i,index:c[d],id:c[p],name:c[h]}:null}function l(c){return r.filter?hn(c,r.filter):c}},t.prototype.eachComponent=function(r,n,i){var o=this._componentsMap;if(ot(r)){var a=n,s=r;o.each(function(p,h){for(var v=0;p&&v<p.length;v++){var g=p[v];g&&s.call(a,h,g,g.componentIndex)}})}else for(var l=We(r)?o.get(r):Qe(r)?this.findComponents(r):null,c=0;l&&c<l.length;c++){var d=l[c];d&&n.call(i,d,d.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Lo(r,null);return hn(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 hn(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return hn(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){$f(this),U(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)},this)},t.prototype.eachRawSeries=function(r,n){U(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){$f(this),U(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===r&&n.call(i,a,o)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return U(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return $f(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){$f(this);var i=[];U(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];r.call(n,a,o)&&i.push(o)},this),this._seriesIndices=i,this._seriesIndicesMap=ft(i)},t.prototype.restoreData=function(r){Pv(this);var n=this._componentsMap,i=[];n.each(function(o,a){Bt.hasClass(a)&&i.push(a)}),Bt.topologicalTravel(i,Bt.getAllClassMainTypes(),function(o){U(n.get(o),function(a){a&&(o!=="series"||!Ure(a,r))&&a.restoreData()})})},t.internalField=function(){Pv=function(r){var n=r._seriesIndices=[];U(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=ft(n)},$f=function(r){},rE=function(r,n){r.option={},r.option[nE]=Vre,r._componentsMap=ft({series:[]}),r._componentsCount=ft();var i=n.aria;Qe(i)&&i.enabled==null&&(i.enabled=!0),Gre(n,r._theme.option),yt(n,jre,!1),r._mergeOption(n,null)}}(),t}(vr);function Ure(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 Gre(e,t){var r=e.color&&!e.colorLayer;U(t,function(n,i){i==="colorLayer"&&r||Bt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?yt(e[i],n,!1):ht(n):e[i]==null&&(e[i]=n))})}function iE(e,t,r){if(De(t)){var n=ft();return U(t,function(o){if(o!=null){var a=Lo(o,null);a!=null&&n.set(o,!0)}}),hn(r,function(o){return o&&n.get(o[e])})}else{var i=Lo(t,null);return hn(r,function(o){return o&&i!=null&&o[e]===i})}}function oE(e,t){return t.hasOwnProperty("subType")?hn(e,function(r){return r&&r.subType===t.subType}):e}function aE(e){var t=ft();return e&&U(Mn(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Wo(D_,R_);var Yre=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],J5=function(){function e(t){U(Yre,function(r){this[r]=St(t[r],t)},this)}return e}(),qre=/^(min|max)?(.+)$/,Xre=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(U(Mn(t.series),function(a){a&&a.data&&Un(a.data)&&_S(a.data)}),U(Mn(t.dataset),function(a){a&&a.source&&Un(a.source)&&_S(a.source)})),t=ht(t);var i=this._optionBackup,o=Kre(t,r,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ht(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=ht(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!i.length&&!o)return s;for(var l=0,c=i.length;l<c;l++)Zre(i[l].query,r,n)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!Jre(a,this._currentMediaIndices)&&(s=Ge(a,function(d){return ht(d===-1?o.option:i[d].option)})),this._currentMediaIndices=a,s},e}();function Kre(e,t,r){var n=[],i,o,a=e.baseOption,s=e.timeline,l=e.options,c=e.media,d=!!e.media,p=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((p||d)&&(e.options=e.media=null),o=e),d&&De(c)&&U(c,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),h(o),U(l,function(v){return h(v)}),U(n,function(v){return h(v.option)});function h(v){U(t,function(g){g(v,r)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function Zre(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return U(e,function(o,a){var s=a.match(qre);if(!(!s||!s[1]||!s[2])){var l=s[1],c=s[2].toLowerCase();Qre(n[c],o,l)||(i=!1)}}),i}function Qre(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Jre(e,t){return e.join(",")===t.join(",")}var Qi=U,tp=Qe,sE=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function vx(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=sE.length;r<n;r++){var i=sE[r],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?yt(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?yt(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function pn(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,At(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 ad(e){pn(e,"itemStyle"),pn(e,"lineStyle"),pn(e,"areaStyle"),pn(e,"label"),pn(e,"labelLine"),pn(e,"upperLabel"),pn(e,"edgeLabel")}function _r(e,t){var r=tp(e)&&e[t],n=tp(r)&&r.textStyle;if(n)for(var i=0,o=NR.length;i<o;i++){var a=NR[i];n.hasOwnProperty(a)&&(r[a]=n[a])}}function Mi(e){e&&(ad(e),_r(e,"label"),e.emphasis&&_r(e.emphasis,"label"))}function ene(e){if(tp(e)){vx(e),ad(e),_r(e,"label"),_r(e,"upperLabel"),_r(e,"edgeLabel"),e.emphasis&&(_r(e.emphasis,"label"),_r(e.emphasis,"upperLabel"),_r(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(vx(t),Mi(t));var r=e.markLine;r&&(vx(r),Mi(r));var n=e.markArea;n&&Mi(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var o=e.links||e.edges;if(o&&!Un(o))for(var a=0;a<o.length;a++)Mi(o[a]);U(e.categories,function(c){ad(c)})}if(i&&!Un(i))for(var a=0;a<i.length;a++)Mi(i[a]);if(t=e.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)Mi(s[a]);if(r=e.markLine,r&&r.data)for(var l=r.data,a=0;a<l.length;a++)De(l[a])?(Mi(l[a][0]),Mi(l[a][1])):Mi(l[a]);e.type==="gauge"?(_r(e,"axisLabel"),_r(e,"title"),_r(e,"detail")):e.type==="treemap"?(pn(e.breadcrumb,"itemStyle"),U(e.levels,function(c){ad(c)})):e.type==="tree"&&ad(e.leaves)}}function oa(e){return De(e)?e:e?[e]:[]}function lE(e){return(De(e)?e[0]:e)||{}}function tne(e,t){Qi(oa(e.series),function(n){tp(n)&&ene(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Qi(r,function(n){Qi(oa(e[n]),function(i){i&&(_r(i,"axisLabel"),_r(i.axisPointer,"label"))})}),Qi(oa(e.parallel),function(n){var i=n&&n.parallelAxisDefault;_r(i,"axisLabel"),_r(i&&i.axisPointer,"label")}),Qi(oa(e.calendar),function(n){pn(n,"itemStyle"),_r(n,"dayLabel"),_r(n,"monthLabel"),_r(n,"yearLabel")}),Qi(oa(e.radar),function(n){_r(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)}),Qi(oa(e.geo),function(n){tp(n)&&(Mi(n),Qi(oa(n.regions),function(i){Mi(i)}))}),Qi(oa(e.timeline),function(n){Mi(n),pn(n,"label"),pn(n,"itemStyle"),pn(n,"controlStyle",!0);var i=n.data;De(i)&&U(i,function(o){Qe(o)&&(pn(o,"label"),pn(o,"itemStyle"))})}),Qi(oa(e.toolbox),function(n){pn(n,"iconStyle"),Qi(n.feature,function(i){pn(i,"iconStyle")})}),_r(lE(e.axisPointer),"label"),_r(lE(e.tooltip).axisPointer,"label")}function rne(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 nne(e,t,r,n){for(var i=t.split(","),o=e,a,s=0;s<i.length-1;s++)a=i[s],o[a]==null&&(o[a]={}),o=o[a];o[i[s]]==null&&(o[i[s]]=r)}function uE(e){e&&U(ine,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var ine=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],one=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],gx=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function zf(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<gx.length;r++){var n=gx[r][1],i=gx[r][0];t[n]!=null&&(t[i]=t[n])}}function cE(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function fE(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function ane(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function e3(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&e3(e[r].children,t)}function t3(e,t){tne(e,t),e.series=Mn(e.series),U(e.series,function(r){if(Qe(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),cE(r.label);var i=r.data;if(i&&!Un(i))for(var o=0;o<i.length;o++)cE(i[o]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var a=rne(r,"pointer.color");a!=null&&nne(r,"itemStyle.color",a)}else if(n==="bar"){zf(r),zf(r.backgroundStyle),zf(r.emphasis);var i=r.data;if(i&&!Un(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(zf(i[o]),zf(i[o]&&i[o].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),fE(r),e3(r.data,fE)}else n==="graph"||n==="sankey"?ane(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&At(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),uE(r)}}),e.dataRange&&(e.visualMap=e.dataRange),U(one,function(r){var n=e[r];n&&(De(n)||(n=[n]),U(n,function(i){uE(i)}))})}function sne(e){var t=ft();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),o=r.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:r};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),t.each(lne)}function lne(e){U(e,function(t,r){var n=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(c,d,p){var h=a.get(t.stackedDimension,p);if(isNaN(h))return i;var v,g;s?g=a.getRawIndex(p):v=a.get(t.stackedByDimension,p);for(var x=NaN,y=r-1;y>=0;y--){var S=e[y];if(s||(g=S.data.rawIndexOf(S.stackedByDimension,v)),g>=0){var w=S.data.getByRawIndex(S.stackResultDimension,g);if(l==="all"||l==="positive"&&w>0||l==="negative"&&w<0||l==="samesign"&&h>=0&&w>0||l==="samesign"&&h<=0&&w<0){h=$Z(h,w),x=w;break}}}return n[0]=h,n[1]=x,n})})}var fi=function(){function e(){this.group=new Mr,this.uid=Dp("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}();Xw(fi);Dm(fi);var dE=Or(),pE={itemStyle:Gd(YO,!0),lineStyle:Gd(GO,!0)},une={lineStyle:"stroke",itemStyle:"fill"};function r3(e,t){var r=e.visualStyleMapper||pE[t];return r||(console.warn("Unknown style type '"+t+"'."),pE.itemStyle)}function n3(e,t){var r=e.visualDrawType||une[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var cne={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),o=r3(e,n),a=o(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=n3(e,n),c=a[l],d=ot(c)?c:null,p=a.fill==="auto"||a.stroke==="auto";if(!a[l]||d||p){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=h,r.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||ot(a.fill)?h:a.fill,a.stroke=a.stroke==="auto"||ot(a.stroke)?h:a.stroke}if(r.setVisual("style",a),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&d)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,g){var x=e.getDataParams(g),y=Te({},a);y[l]=d(x),v.setItemVisual(g,"style",y)}}}},Ff=new vr,fne={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=r3(e,n),o=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[n]){Ff.option=l[n];var c=i(Ff),d=a.ensureUniqueItemVisual(s,"style");Te(d,c),Ff.option.decal&&(a.setItemVisual(s,"decal",Ff.option.decal),Ff.option.decal.dirty=!0),o in c&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},dne={performRawSeries:!0,overallReset:function(e){var t=ft();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,o=t.get(i);o||(o={},t.set(i,o)),dE(r).scope=o}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},o=r.getData(),a=dE(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=n3(r,s);o.each(function(c){var d=o.getRawIndex(c);i[d]=c}),n.each(function(c){var d=i[c],p=o.getItemVisual(d,"colorFromPalette");if(p){var h=o.ensureUniqueItemVisual(d,"style"),v=n.getName(c)||c+"",g=n.count();h[l]=r.getColorFromPalette(v,a,g)}})}})}},Ev=Math.PI;function pne(e,t){t=t||{},At(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 Mr,n=new dr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new Fr({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new dr({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(o);var a;return t.showSpinner&&(a=new Vm({shape:{startAngle:-Ev/2,endAngle:-Ev/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:Ev*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:Ev*3/2}).delay(300).start("circularInOut"),r.add(a)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,c=(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),d=e.getHeight()/2;t.showSpinner&&a.setShape({cx:c,cy:d}),o.setShape({x:c-l,y:d-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var i3=function(){function e(t,r,n,i){this._stageTaskMap=ft(),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,o=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,a=o?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,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(),o=i.count(),a=n.progressiveEnabled&&r.incrementalPrepareRender&&o>=n.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=n.context={progressiveRender:a,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ft();t.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;n.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;U(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";$o(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,r,n),i.overallReset&&this._createOverallStageTask(i,o,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var o=t.renderTask,a=o.context;a.model=r,a.ecModel=n,a.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(r,o)},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 o=!1,a=this;U(t,function(l,c){if(!(i.visualType&&i.visualType!==l.visualType)){var d=a._stageTaskMap.get(l.uid),p=d.seriesTaskMap,h=d.overallTask;if(h){var v,g=h.agentStubMap;g.each(function(y){s(i,y)&&(y.dirty(),v=!0)}),v&&h.dirty(),a.updatePayload(h,n);var x=a.getPerformArgs(h,i.block);g.each(function(y){y.perform(x)}),h.perform(x)&&(o=!0)}else p&&p.each(function(y,S){s(i,y)&&y.dirty();var w=a.getPerformArgs(y,i.block);w.skip=!l.performRawSeries&&r.isSeriesFiltered(y.context.model),a.updatePayload(y,n),y.perform(w)&&(o=!0)})}});function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}this.unfinished=o||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 o=this,a=r.seriesTaskMap,s=r.seriesTaskMap=ft(),l=t.seriesType,c=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(d):l?n.eachRawSeriesByType(l,d):c&&c(n,i).each(d);function d(p){var h=p.uid,v=s.set(h,a&&a.get(h)||Md({plan:yne,reset:xne,count:bne}));v.context={model:p,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(p,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var o=this,a=r.overallTask=r.overallTask||Md({reset:hne});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=ft(),c=t.seriesType,d=t.getTargetSeries,p=!0,h=!1,v="";$o(!t.createOnAllSeries,v),c?n.eachRawSeriesByType(c,g):d?d(n,i).each(g):(p=!1,U(n.getSeries(),g));function g(x){var y=x.uid,S=l.set(y,s&&s.get(y)||(h=!0,Md({reset:vne,onDirty:mne})));S.context={model:x,overallProgress:p},S.agent=a,S.__block=p,o._pipe(x,S)}h&&a.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 ot(t)&&(t={overallReset:t,seriesType:wne(t)}),t.uid=Dp("stageHandler"),r&&(t.visualType=r),t},e}();function hne(e){e.overallReset(e.ecModel,e.api,e.payload)}function vne(e){return e.overallProgress&&gne}function gne(){this.agent.dirty(),this.getDownstream().dirty()}function mne(){this.agent&&this.agent.dirty()}function yne(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function xne(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Mn(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Ge(t,function(r,n){return o3(n)}):Sne}var Sne=o3(0);function o3(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(n,o);else i&&i.progress&&i.progress(t,n)}}function bne(e){return e.data.count()}function wne(e){Ug=null;try{e(rp,a3)}catch{}return Ug}var rp={},a3={},Ug;s3(rp,D_);s3(a3,J5);rp.eachSeriesByType=rp.eachRawSeriesByType=function(e){Ug=e};rp.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Ug=e.subType)};function s3(e,t){for(var r in t.prototype)e[r]=Tn}var hE=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const _ne={color:hE,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],hE]};var Sn="#B9B8CE",vE="#100C2A",Av=function(){return{axisLine:{lineStyle:{color:Sn}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},gE=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],l3={darkMode:!0,color:gE,backgroundColor:vE,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Sn}},textStyle:{color:Sn},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Sn}},dataZoom:{borderColor:"#71708A",textStyle:{color:Sn},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:Sn}},timeline:{lineStyle:{color:Sn},label:{color:Sn},controlStyle:{color:Sn,borderColor:Sn}},calendar:{itemStyle:{color:vE},dayLabel:{color:Sn},monthLabel:{color:Sn},yearLabel:{color:Sn}},timeAxis:Av(),logAxis:Av(),valueAxis:Av(),categoryAxis:Av(),line:{symbol:"circle"},graph:{color:gE},gauge:{title:{color:Sn},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Sn},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};l3.categoryAxis.splitLine.show=!1;var Cne=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(We(t)){var o=ko(t);r.mainType=o.main||null,r.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};U(t,function(l,c){for(var d=!1,p=0;p<a.length;p++){var h=a[p],v=c.lastIndexOf(h);if(v>0&&v===c.length-h.length){var g=c.slice(0,v);g!=="data"&&(r.mainType=g,r[h.toLowerCase()]=l,d=!0)}}s.hasOwnProperty(c)&&(n[c]=l,d=!0),d||(i[c]=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,o=n.packedEvent,a=n.model,s=n.view;if(!a||!s)return!0;var l=r.cptQuery,c=r.dataQuery;return d(l,a,"mainType")&&d(l,a,"subType")&&d(l,a,"index","componentIndex")&&d(l,a,"name")&&d(l,a,"id")&&d(c,o,"name")&&d(c,o,"dataIndex")&&d(c,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,o));function d(p,h,v,g){return p[v]==null||h[g||v]===p[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),ib=["symbol","symbolSize","symbolRotate","symbolOffset"],mE=ib.concat(["symbolKeepAspect"]),Tne={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={},o=!1,a=0;a<ib.length;a++){var s=ib[a],l=e.get(s);ot(l)?(o=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(Te({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var c=cr(i);function d(p,h){for(var v=e.getRawValue(h),g=e.getDataParams(h),x=0;x<c.length;x++){var y=c[x];p.setItemVisual(h,y,i[y](v,g))}}return{dataEach:o?d:null}}},Mne={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,o){for(var a=i.getItemModel(o),s=0;s<mE.length;s++){var l=mE[s],c=a.getShallow(l,!0);c!=null&&i.setItemVisual(o,l,c)}}return{dataEach:r.hasItemOption?n:null}}};function kne(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 Rne(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 sd(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var Pne=Math.round(Math.random()*9),Ene=typeof Object.defineProperty=="function",Ane=function(){function e(){this._id="__ec_inner_"+Pne++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return Ene?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}();function Ml(e){return isFinite(e)}function Ine(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,o=t.y==null?0:t.y,a=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,o=o*r.height+r.y,a=a*r.height+r.y),n=Ml(n)?n:0,i=Ml(i)?i:1,o=Ml(o)?o:0,a=Ml(a)?a:0;var s=e.createLinearGradient(n,o,i,a);return s}function Dne(e,t,r){var n=r.width,i=r.height,o=Math.min(n,i),a=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(a=a*n+r.x,s=s*i+r.y,l=l*o),a=Ml(a)?a:.5,s=Ml(s)?s:.5,l=l>=0&&Ml(l)?l:.5;var c=e.createRadialGradient(a,s,0,a,s,l);return c}function ob(e,t,r){for(var n=t.type==="radial"?Dne(e,t,r):Ine(e,t,r),i=t.colorStops,o=0;o<i.length;o++)n.addColorStop(i[o].offset,i[o].color);return n}function Lne(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 Iv(e){return parseInt(e,10)}function Dv(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Iv(s[n])||Iv(e.style[n]))-(Iv(s[o])||0)-(Iv(s[a])||0)|0}function One(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:fr(e)?[e]:De(e)?e:null}function u3(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&One(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Ge(r,function(o){return o/i}),n/=i)}return[r,n]}var Nne=new Hl(!0);function Gg(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function yE(e){return typeof e=="string"&&e!=="none"}function Yg(e){var t=e.fill;return t!=null&&t!=="none"}function xE(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 SE(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 ab(e,t,r){var n=GL(t.image,t.__image,r);if(Lm(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*JX),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function Bne(e,t,r,n){var i,o=Gg(r),a=Yg(r),s=r.strokePercent,l=s<1,c=!t.path;(!t.silent||l)&&c&&t.createPathProxy();var d=t.path||Nne,p=t.__dirty;if(!n){var h=r.fill,v=r.stroke,g=a&&!!h.colorStops,x=o&&!!v.colorStops,y=a&&!!h.image,S=o&&!!v.image,w=void 0,b=void 0,C=void 0,T=void 0,M=void 0;(g||x)&&(M=t.getBoundingRect()),g&&(w=p?ob(e,h,M):t.__canvasFillGradient,t.__canvasFillGradient=w),x&&(b=p?ob(e,v,M):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),y&&(C=p||!t.__canvasFillPattern?ab(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=C),S&&(T=p||!t.__canvasStrokePattern?ab(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=C),g?e.fillStyle=w:y&&(C?e.fillStyle=C:a=!1),x?e.strokeStyle=b:S&&(T?e.strokeStyle=T:o=!1)}var E=t.getGlobalScale();d.setScale(E[0],E[1],t.segmentIgnoreThreshold);var I,D;e.setLineDash&&r.lineDash&&(i=u3(t),I=i[0],D=i[1]);var k=!0;(c||p&rd)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),k=!1),d.reset(),t.buildPath(d,t.shape,n),d.toStatic(),t.pathUpdated()),k&&d.rebuildPath(e,l?s:1),I&&(e.setLineDash(I),e.lineDashOffset=D),n||(r.strokeFirst?(o&&SE(e,r),a&&xE(e,r)):(a&&xE(e,r),o&&SE(e,r))),I&&e.setLineDash([])}function $ne(e,t,r){var n=t.__image=GL(r.image,t.__image,t,t.onload);if(!(!n||!Lm(n))){var i=r.x||0,o=r.y||0,a=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=n.width,s=n.height),r.sWidth&&r.sHeight){var c=r.sx||0,d=r.sy||0;e.drawImage(n,c,d,r.sWidth,r.sHeight,i,o,a,s)}else if(r.sx&&r.sy){var c=r.sx,d=r.sy,p=a-c,h=s-d;e.drawImage(n,c,d,p,h,i,o,a,s)}else e.drawImage(n,i,o,a,s)}}function zne(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||jl,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var o=void 0,a=void 0;e.setLineDash&&r.lineDash&&(n=u3(t),o=n[0],a=n[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),r.strokeFirst?(Gg(r)&&e.strokeText(i,r.x,r.y),Yg(r)&&e.fillText(i,r.x,r.y)):(Yg(r)&&e.fillText(i,r.x,r.y),Gg(r)&&e.strokeText(i,r.x,r.y)),o&&e.setLineDash([])}}var bE=["shadowBlur","shadowOffsetX","shadowOffsetY"],wE=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function c3(e,t,r,n,i){var o=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){$n(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Al.opacity:a}(n||t.blend!==r.blend)&&(o||($n(e,i),o=!0),e.globalCompositeOperation=t.blend||Al.blend);for(var s=0;s<bE.length;s++){var l=bE[s];(n||t[l]!==r[l])&&(o||($n(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(o||($n(e,i),o=!0),e.shadowColor=t.shadowColor||Al.shadowColor),o}function _E(e,t,r,n,i){var o=np(t,i.inHover),a=n?null:r&&np(r,i.inHover)||{};if(o===a)return!1;var s=c3(e,o,a,n,i);if((n||o.fill!==a.fill)&&(s||($n(e,i),s=!0),yE(o.fill)&&(e.fillStyle=o.fill)),(n||o.stroke!==a.stroke)&&(s||($n(e,i),s=!0),yE(o.stroke)&&(e.strokeStyle=o.stroke)),(n||o.opacity!==a.opacity)&&(s||($n(e,i),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,c=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||($n(e,i),s=!0),e.lineWidth=c)}for(var d=0;d<wE.length;d++){var p=wE[d],h=p[0];(n||o[h]!==a[h])&&(s||($n(e,i),s=!0),e[h]=o[h]||p[1])}return s}function Fne(e,t,r,n,i){return c3(e,np(t,i.inHover),r&&np(r,i.inHover),n,i)}function f3(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 jne(e,t,r){for(var n=!1,i=0;i<e.length;i++){var o=e[i];n=n||o.isZeroArea(),f3(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}r.allClipped=n}function Wne(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 CE=1,TE=2,ME=3,kE=4;function Hne(e){var t=Yg(e),r=Gg(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 $n(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function np(e,t){return t&&e.__hoverStyle||e.style}function d3(e,t){kl(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function kl(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var o=t.__clipPaths,a=r.prevElClipPaths,s=!1,l=!1;if((!a||Lne(o,a))&&(a&&a.length&&($n(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),o&&o.length&&($n(e,r),e.save(),jne(o,e,r),s=!0),r.prevElClipPaths=o),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=r.prevEl;c||(l=s=!0);var d=t instanceof Qt&&t.autoBatch&&Hne(t.style);s||Wne(i,c.transform)?($n(e,r),f3(e,t)):d||$n(e,r);var p=np(t,r.inHover);t instanceof Qt?(r.lastDrawType!==CE&&(l=!0,r.lastDrawType=CE),_E(e,t,c,l,r),(!d||!r.batchFill&&!r.batchStroke)&&e.beginPath(),Bne(e,t,p,d),d&&(r.batchFill=p.fill||"",r.batchStroke=p.stroke||"")):t instanceof Ag?(r.lastDrawType!==ME&&(l=!0,r.lastDrawType=ME),_E(e,t,c,l,r),zne(e,t,p)):t instanceof ks?(r.lastDrawType!==TE&&(l=!0,r.lastDrawType=TE),Fne(e,t,c,l,r),$ne(e,t,p)):t.getTemporalDisplayables&&(r.lastDrawType!==kE&&(l=!0,r.lastDrawType=kE),Vne(e,t,r)),d&&n&&$n(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Vne(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},a,s;for(a=t.getCursor(),s=n.length;a<s;a++){var l=n[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),kl(e,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var c=0,d=i.length;c<d;c++){var l=i[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),kl(e,l,o,c===d-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var mx=new Ane,RE=new Mp(100),PE=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function sb(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&mx.delete(e);var o=mx.get(e);if(o)return o;var a=At(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});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/r,mx.set(e,s),e.dirty=!1,s;function l(c){for(var d=[r],p=!0,h=0;h<PE.length;++h){var v=a[PE[h]];if(v!=null&&!De(v)&&!We(v)&&!fr(v)&&typeof v!="boolean"){p=!1;break}d.push(v)}var g;if(p){g=d.join(",")+(i?"-svg":"");var x=RE.get(g);x&&(i?c.svgElement=x:c.image=x)}var y=h3(a.dashArrayX),S=Une(a.dashArrayY),w=p3(a.symbol),b=Gne(y),C=v3(S),T=!i&&Mc.createCanvas(),M=i&&{tag:"g",attrs:{},key:"dcl",children:[]},E=D(),I;T&&(T.width=E.width*r,T.height=E.height*r,I=T.getContext("2d")),k(),p&&RE.put(g,T||M),c.image=T,c.svgElement=M,c.svgWidth=E.width,c.svgHeight=E.height;function D(){for(var O=1,N=0,$=b.length;N<$;++N)O=DR(O,b[N]);for(var z=1,N=0,$=w.length;N<$;++N)z=DR(z,w[N].length);O*=z;var F=C*b.length*w.length;return{width:Math.max(1,Math.min(O,a.maxTileWidth)),height:Math.max(1,Math.min(F,a.maxTileHeight))}}function k(){I&&(I.clearRect(0,0,T.width,T.height),a.backgroundColor&&(I.fillStyle=a.backgroundColor,I.fillRect(0,0,T.width,T.height)));for(var O=0,N=0;N<S.length;++N)O+=S[N];if(O<=0)return;for(var $=-C,z=0,F=0,j=0;$<E.height;){if(z%2===0){for(var K=F/2%w.length,V=0,H=0,Y=0;V<E.width*2;){for(var W=0,N=0;N<y[j].length;++N)W+=y[j][N];if(W<=0)break;if(H%2===0){var q=(1-a.symbolSize)*.5,te=V+y[j][H]*q,le=$+S[z]*q,ne=y[j][H]*a.symbolSize,Q=S[z]*a.symbolSize,ce=Y/2%w[K].length;me(te,le,ne,Q,w[K][ce])}V+=y[j][H],++Y,++H,H===y[j].length&&(H=0)}++j,j===y.length&&(j=0)}$+=S[z],++F,++z,z===S.length&&(z=0)}function me(de,fe,ge,pe,Ne){var ke=i?1:r,it=Cs(Ne,de*ke,fe*ke,ge*ke,pe*ke,a.color,a.symbolKeepAspect);if(i){var rt=n.painter.renderOneToVNode(it);rt&&M.children.push(rt)}else d3(I,it)}}}}function p3(e){if(!e||e.length===0)return[["rect"]];if(We(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!We(e[r])){t=!1;break}if(t)return p3([e]);for(var n=[],r=0;r<e.length;++r)We(e[r])?n.push([e[r]]):n.push(e[r]);return n}function h3(e){if(!e||e.length===0)return[[0,0]];if(fr(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!fr(e[n])){r=!1;break}if(r)return h3([e]);for(var i=[],n=0;n<e.length;++n)if(fr(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=Ge(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function Une(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(fr(e)){var t=Math.ceil(e);return[t,t]}var r=Ge(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function Gne(e){return Ge(e,function(t){return v3(t)})}function v3(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function Yne(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(a){var s=n.getItemVisual(a,"decal");if(s){var l=n.ensureUniqueItemVisual(a,"style");l.decal=sb(s,t)}});var i=n.getVisual("decal");if(i){var o=n.getVisual("style");o.decal=sb(i,t)}}})}var ro=new uo,g3={};function qne(e,t){g3[e]=t}function Xne(e){return g3[e]}var Kne=1,Zne=800,Qne=900,Jne=1e3,eie=2e3,tie=5e3,m3=1e3,rie=1100,L_=2e3,y3=3e3,nie=4e3,ny=4500,iie=4600,oie=5e3,aie=6e3,x3=7e3,sie={PROCESSOR:{FILTER:Jne,SERIES_FILTER:Zne,STATISTIC:tie},VISUAL:{LAYOUT:m3,PROGRESSIVE_LAYOUT:rie,GLOBAL:L_,CHART:y3,POST_CHART_LAYOUT:iie,COMPONENT:nie,BRUSH:oie,CHART_ITEM:ny,ARIA:aie,DECAL:x3}},un="__flagInMainProcess",On="__pendingUpdate",yx="__needsUpdateStatus",EE=/^[a-zA-Z0-9_]+$/,xx="__connectUpdateStatus",AE=0,lie=1,uie=2;function S3(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return w3(this,e,t)}}function b3(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return w3(this,e,t)}}function w3(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),uo.prototype[t].apply(e,r)}var _3=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(uo),C3=_3.prototype;C3.on=b3("on");C3.off=b3("off");var Nu,Sx,Lv,es,bx,_x,Cx,jf,Wf,IE,DE,Tx,LE,Ov,OE,T3,bi,NE,qg=function(e){_e(t,e);function t(r,n,i){var o=e.call(this,new Cne)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},We(n)&&(n=M3[n]),o._dom=r;var a="canvas",s="auto",l=!1;i.ssr;var c=o._zr=tE(r,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Tt(i.useDirtyRect,l),useCoarsePointer:Tt(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=U5(St(c.flush,c),17),n=ht(n),n&&t3(n,!0),o._theme=n,o._locale=bee(i.locale||v5),o._coordSysMgr=new b_;var d=o._api=OE(o);function p(h,v){return h.__prio-v.__prio}return ag(Kg,p),ag(lb,p),o._scheduler=new i3(o,d,lb,Kg),o._messageCenter=new _3,o._initEvents(),o.resize=St(o.resize,o),c.animation.on("frame",o._onframe,o),IE(c,o),DE(c,o),_S(o),o}return t.prototype._onframe=function(){if(!this._disposed){NE(this);var r=this._scheduler;if(this[On]){var n=this[On].silent;this[un]=!0;try{Nu(this),es.update.call(this,null,this[On].updateParams)}catch(l){throw this[un]=!1,this[On]=null,l}this._zr.flush(),this[un]=!1,this[On]=null,jf.call(this,n),Wf.call(this,n)}else if(r.unfinished){var i=Kne,o=this._model,a=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(o),r.performDataProcessorTasks(o),_x(this,o),r.performVisualTasks(o),Ov(this,this._model,a,"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[un]){if(this._disposed){this.id;return}var o,a,s;if(Qe(n)&&(i=n.lazyUpdate,o=n.silent,a=n.replaceMerge,s=n.transition,n=n.notMerge),this[un]=!0,!this._model||n){var l=new Xre(this._api),c=this._theme,d=this._model=new D_;d.scheduler=this._scheduler,d.ssr=this._ssr,d.init(null,null,null,c,this._locale,l)}this._model.setOption(r,{replaceMerge:a},ub);var p={seriesTransition:s,optionChanged:!0};if(i)this[On]={silent:o,updateParams:p},this[un]=!1,this.getZr().wakeUp();else{try{Nu(this),es.update.call(this,null,p)}catch(h){throw this[On]=null,this[un]=!1,h}this._ssr||this._zr.flush(),this[On]=null,this[un]=!1,jf.call(this,o),Wf.call(this,o)}}},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||lt.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(lt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return U(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,o=[],a=this;U(n,function(l){i.eachComponent({mainType:l},function(c){var d=a._componentsMap[c.__viewId];d.group.ignore||(o.push(d),d.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return U(o,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,o=Math.min,a=Math.max,s=1/0;if(fb[i]){var l=s,c=s,d=-s,p=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();U(ac,function(b,C){if(b.group===i){var T=n?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(ht(r)),M=b.getDom().getBoundingClientRect();l=o(M.left,l),c=o(M.top,c),d=a(M.right,d),p=a(M.bottom,p),h.push({dom:T,left:M.left,top:M.top})}}),l*=v,c*=v,d*=v,p*=v;var g=d-l,x=p-c,y=Mc.createCanvas(),S=tE(y,{renderer:n?"svg":"canvas"});if(S.resize({width:g,height:x}),n){var w="";return U(h,function(b){var C=b.left-l,T=b.top-c;w+='<g transform="translate('+C+","+T+')">'+b.dom+"</g>"}),S.painter.getSvgRoot().innerHTML=w,r.connectedBackgroundColor&&S.painter.setBackgroundColor(r.connectedBackgroundColor),S.refreshImmediately(),S.painter.toDataURL()}else return r.connectedBackgroundColor&&S.add(new dr({shape:{x:0,y:0,width:g,height:x},style:{fill:r.connectedBackgroundColor}})),U(h,function(b){var C=new ks({style:{x:b.left*v-l,y:b.top*v-c,image:b.dom}});S.add(C)}),S.refreshImmediately(),y.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return bx(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return bx(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,o,a=Sd(i,r);return U(a,function(s,l){l.indexOf("Models")>=0&&U(s,function(c){var d=c.coordinateSystem;if(d&&d.containPoint)o=o||!!d.containPoint(n);else if(l==="seriesModels"){var p=this._chartsMap[c.__viewId];p&&p.containPoint&&(o=o||p.containPoint(n,c))}},this)},this),!!o},t.prototype.getVisual=function(r,n){var i=this._model,o=Sd(i,r,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?kne(s,l,n):Rne(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;U(cie,function(n){var i=function(o){var a=r.getModel(),s=o.target,l,c=n==="globalout";if(c?l={}:s&&sd(s,function(g){var x=Vt(g);if(x&&x.dataIndex!=null){var y=x.dataModel||a.getSeriesByIndex(x.seriesIndex);return l=y&&y.getDataParams(x.dataIndex,x.dataType,s)||{},!0}else if(x.eventData)return l=Te({},x.eventData),!0},!0),l){var d=l.componentType,p=l.componentIndex;(d==="markLine"||d==="markPoint"||d==="markArea")&&(d="series",p=l.seriesIndex);var h=d&&p!=null&&a.getComponent(d,p),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=o,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:v},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),U(kd,function(n,i){r._messageCenter.on(i,function(o){this.trigger(i,o)},r)}),U(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),cre(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&&SO(this.getDom(),N_,"");var n=this,i=n._api,o=n._model;U(n._componentsViews,function(a){a.dispose(o,i)}),U(n._chartsViews,function(a){a.dispose(o,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 ac[n.id]},t.prototype.resize=function(r){if(!this[un]){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"),o=r&&r.silent;this[On]&&(o==null&&(o=this[On].silent),i=!0,this[On]=null),this[un]=!0;try{i&&Nu(this),es.update.call(this,{type:"resize",animation:Te({duration:0},r&&r.animation)})}catch(a){throw this[un]=!1,a}this[un]=!1,jf.call(this,o),Wf.call(this,o)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Qe(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!cb[r]){var i=cb[r](this._api,n),o=this._zr;this._loadingFX=i,o.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=Te({},r);return n.type=kd[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Qe(n)||(n={silent:!!n}),!!Xg[r.type]&&this._model){if(this[un]){this._pendingActions.push(r);return}var i=n.silent;Cx.call(this,r,i);var o=n.flush;o?this._zr.flush():o!==!1&&lt.browser.weChat&&this._throttledZrFlush(),jf.call(this,i),Wf.call(this,i)}},t.prototype.updateLabelLayout=function(){ro.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(),o=i.getSeriesByIndex(n);o.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Nu=function(p){var h=p._scheduler;h.restorePipelines(p._model),h.prepareStageTasks(),Sx(p,!0),Sx(p,!1),h.plan()},Sx=function(p,h){for(var v=p._model,g=p._scheduler,x=h?p._componentsViews:p._chartsViews,y=h?p._componentsMap:p._chartsMap,S=p._zr,w=p._api,b=0;b<x.length;b++)x[b].__alive=!1;h?v.eachComponent(function(M,E){M!=="series"&&C(E)}):v.eachSeries(C);function C(M){var E=M.__requireNewView;M.__requireNewView=!1;var I="_ec_"+M.id+"_"+M.type,D=!E&&y[I];if(!D){var k=ko(M.type),O=h?fi.getClass(k.main,k.sub):Oo.getClass(k.sub);D=new O,D.init(v,w),y[I]=D,x.push(D),S.add(D.group)}M.__viewId=D.__id=I,D.__alive=!0,D.__model=M,D.group.__ecComponentInfo={mainType:M.mainType,index:M.componentIndex},!h&&g.prepareView(D,M,v,w)}for(var b=0;b<x.length;){var T=x[b];T.__alive?b++:(!h&&T.renderTask.dispose(),S.remove(T.group),T.dispose(v,w),x.splice(b,1),y[T.__id]===T&&delete y[T.__id],T.__id=T.group.__ecComponentInfo=null)}},Lv=function(p,h,v,g,x){var y=p._model;if(y.setUpdatePayload(v),!g){U([].concat(p._componentsViews).concat(p._chartsViews),T);return}var S={};S[g+"Id"]=v[g+"Id"],S[g+"Index"]=v[g+"Index"],S[g+"Name"]=v[g+"Name"];var w={mainType:g,query:S};x&&(w.subType=x);var b=v.excludeSeriesId,C;b!=null&&(C=ft(),U(Mn(b),function(M){var E=Lo(M,null);E!=null&&C.set(E,!0)})),y&&y.eachComponent(w,function(M){var E=C&&C.get(M.id)!=null;if(!E)if(YR(v))if(M instanceof _s)v.type===Il&&!v.notBlur&&!M.get(["emphasis","disabled"])&&vQ(M,v,p._api);else{var I=l_(M.mainType,M.componentIndex,v.name,p._api),D=I.focusSelf,k=I.dispatchers;v.type===Il&&D&&!v.notBlur&&$S(M.mainType,M.componentIndex,p._api),k&&U(k,function(O){v.type===Il?mc(O):yc(O)})}else jS(v)&&M instanceof _s&&(yQ(M,v,p._api),VR(M),bi(p))},p),y&&y.eachComponent(w,function(M){var E=C&&C.get(M.id)!=null;E||T(p[g==="series"?"_chartsMap":"_componentsMap"][M.__viewId])},p);function T(M){M&&M.__alive&&M[h]&&M[h](M.__model,y,p._api,v)}},es={prepareAndUpdate:function(p){Nu(this),es.update.call(this,p,{optionChanged:p.newOption!=null})},update:function(p,h){var v=this._model,g=this._api,x=this._zr,y=this._coordSysMgr,S=this._scheduler;if(v){v.setUpdatePayload(p),S.restoreData(v,p),S.performSeriesTasks(v),y.create(v,g),S.performDataProcessorTasks(v,p),_x(this,v),y.update(v,g),r(v),S.performVisualTasks(v,p),Tx(this,v,g,p,h);var w=v.get("backgroundColor")||"transparent",b=v.get("darkMode");x.setBackgroundColor(w),b!=null&&b!=="auto"&&x.setDarkMode(b),ro.trigger("afterupdate",v,g)}},updateTransform:function(p){var h=this,v=this._model,g=this._api;if(v){v.setUpdatePayload(p);var x=[];v.eachComponent(function(S,w){if(S!=="series"){var b=h.getViewOfComponentModel(w);if(b&&b.__alive)if(b.updateTransform){var C=b.updateTransform(w,v,g,p);C&&C.update&&x.push(b)}else x.push(b)}});var y=ft();v.eachSeries(function(S){var w=h._chartsMap[S.__viewId];if(w.updateTransform){var b=w.updateTransform(S,v,g,p);b&&b.update&&y.set(S.uid,1)}else y.set(S.uid,1)}),r(v),this._scheduler.performVisualTasks(v,p,{setDirty:!0,dirtyMap:y}),Ov(this,v,g,p,{},y),ro.trigger("afterupdate",v,g)}},updateView:function(p){var h=this._model;h&&(h.setUpdatePayload(p),Oo.markUpdateMethod(p,"updateView"),r(h),this._scheduler.performVisualTasks(h,p,{setDirty:!0}),Tx(this,h,this._api,p,{}),ro.trigger("afterupdate",h,this._api))},updateVisual:function(p){var h=this,v=this._model;v&&(v.setUpdatePayload(p),v.eachSeries(function(g){g.getData().clearAllVisual()}),Oo.markUpdateMethod(p,"updateVisual"),r(v),this._scheduler.performVisualTasks(v,p,{visualType:"visual",setDirty:!0}),v.eachComponent(function(g,x){if(g!=="series"){var y=h.getViewOfComponentModel(x);y&&y.__alive&&y.updateVisual(x,v,h._api,p)}}),v.eachSeries(function(g){var x=h._chartsMap[g.__viewId];x.updateVisual(g,v,h._api,p)}),ro.trigger("afterupdate",v,this._api))},updateLayout:function(p){es.update.call(this,p)}},bx=function(p,h,v,g){if(p._disposed){p.id;return}for(var x=p._model,y=p._coordSysMgr.getCoordinateSystems(),S,w=Sd(x,v),b=0;b<y.length;b++){var C=y[b];if(C[h]&&(S=C[h](x,w,g))!=null)return S}},_x=function(p,h){var v=p._chartsMap,g=p._scheduler;h.eachSeries(function(x){g.updateStreamModes(x,v[x.__viewId])})},Cx=function(p,h){var v=this,g=this.getModel(),x=p.type,y=p.escapeConnect,S=Xg[x],w=S.actionInfo,b=(w.update||"update").split(":"),C=b.pop(),T=b[0]!=null&&ko(b[0]);this[un]=!0;var M=[p],E=!1;p.batch&&(E=!0,M=Ge(p.batch,function(z){return z=At(Te({},z),p),z.batch=null,z}));var I=[],D,k=jS(p),O=YR(p);if(O&&PO(this._api),U(M,function(z){if(D=S.action(z,v._model,v._api),D=D||Te({},z),D.type=w.event||D.type,I.push(D),O){var F=i_(p),j=F.queryOptionMap,K=F.mainTypeSpecified,V=K?j.keys()[0]:"series";Lv(v,C,z,V),bi(v)}else k?(Lv(v,C,z,"series"),bi(v)):T&&Lv(v,C,z,T.main,T.sub)}),C!=="none"&&!O&&!k&&!T)try{this[On]?(Nu(this),es.update.call(this,p),this[On]=null):es[C].call(this,p)}catch(z){throw this[un]=!1,z}if(E?D={type:w.event||x,escapeConnect:y,batch:I}:D=I[0],this[un]=!1,!h){var N=this._messageCenter;if(N.trigger(D.type,D),k){var $={type:"selectchanged",escapeConnect:y,selected:xQ(g),isFromClick:p.isFromClick||!1,fromAction:p.type,fromActionPayload:p};N.trigger($.type,$)}}},jf=function(p){for(var h=this._pendingActions;h.length;){var v=h.shift();Cx.call(this,v,p)}},Wf=function(p){!p&&this.trigger("updated")},IE=function(p,h){p.on("rendered",function(v){h.trigger("rendered",v),p.animation.isFinished()&&!h[On]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},DE=function(p,h){p.on("mouseover",function(v){var g=v.target,x=sd(g,FS);x&&(gQ(x,v,h._api),bi(h))}).on("mouseout",function(v){var g=v.target,x=sd(g,FS);x&&(mQ(x,v,h._api),bi(h))}).on("click",function(v){var g=v.target,x=sd(g,function(w){return Vt(w).dataIndex!=null},!0);if(x){var y=x.selected?"unselect":"select",S=Vt(x);h._api.dispatchAction({type:y,dataType:S.dataType,dataIndexInside:S.dataIndex,seriesIndex:S.seriesIndex,isFromClick:!0})}})};function r(p){p.clearColorPalette(),p.eachSeries(function(h){h.clearColorPalette()})}function n(p){var h=[],v=[],g=!1;if(p.eachComponent(function(w,b){var C=b.get("zlevel")||0,T=b.get("z")||0,M=b.getZLevelKey();g=g||!!M,(w==="series"?v:h).push({zlevel:C,z:T,idx:b.componentIndex,type:w,key:M})}),g){var x=h.concat(v),y,S;ag(x,function(w,b){return w.zlevel===b.zlevel?w.z-b.z:w.zlevel-b.zlevel}),U(x,function(w){var b=p.getComponent(w.type,w.idx),C=w.zlevel,T=w.key;y!=null&&(C=Math.max(y,C)),T?(C===y&&T!==S&&C++,S=T):S&&(C===y&&C++,S=""),y=C,b.setZLevel(C)})}}Tx=function(p,h,v,g,x){n(h),LE(p,h,v,g,x),U(p._chartsViews,function(y){y.__alive=!1}),Ov(p,h,v,g,x),U(p._chartsViews,function(y){y.__alive||y.remove(h,v)})},LE=function(p,h,v,g,x,y){U(y||p._componentsViews,function(S){var w=S.__model;c(w,S),S.render(w,h,v,g),s(w,S),d(w,S)})},Ov=function(p,h,v,g,x,y){var S=p._scheduler;x=Te(x||{},{updatedSeries:h.getSeries()}),ro.trigger("series:beforeupdate",h,v,x);var w=!1;h.eachSeries(function(b){var C=p._chartsMap[b.__viewId];C.__alive=!0;var T=C.renderTask;S.updatePayload(T,g),c(b,C),y&&y.get(b.uid)&&T.dirty(),T.perform(S.getPerformArgs(T))&&(w=!0),C.group.silent=!!b.get("silent"),a(b,C),VR(b)}),S.unfinished=w||S.unfinished,ro.trigger("series:layoutlabels",h,v,x),ro.trigger("series:transition",h,v,x),h.eachSeries(function(b){var C=p._chartsMap[b.__viewId];s(b,C),d(b,C)}),o(p,h),ro.trigger("series:afterupdate",h,v,x)},bi=function(p){p[yx]=!0,p.getZr().wakeUp()},NE=function(p){p[yx]&&(p.getZr().storage.traverse(function(h){Cd(h)||i(h)}),p[yx]=!1)};function i(p){for(var h=[],v=p.currentStates,g=0;g<v.length;g++){var x=v[g];x==="emphasis"||x==="blur"||x==="select"||h.push(x)}p.selected&&p.states.select&&h.push("select"),p.hoverState===Fm&&p.states.emphasis?h.push("emphasis"):p.hoverState===zm&&p.states.blur&&h.push("blur"),p.useStates(h)}function o(p,h){var v=p._zr,g=v.storage,x=0;g.traverse(function(y){y.isGroup||x++}),x>h.get("hoverLayerThreshold")&&!lt.node&&!lt.worker&&h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var S=p._chartsMap[y.__viewId];S.__alive&&S.eachRendered(function(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}function a(p,h){var v=p.get("blendMode")||null;h.eachRendered(function(g){g.isGroup||(g.style.blend=v)})}function s(p,h){if(!p.preventAutoZ){var v=p.get("z")||0,g=p.get("zlevel")||0;h.eachRendered(function(x){return l(x,v,g,-1/0),!0})}}function l(p,h,v,g){var x=p.getTextContent(),y=p.getTextGuideLine(),S=p.isGroup;if(S)for(var w=p.childrenRef(),b=0;b<w.length;b++)g=Math.max(l(w[b],h,v,g),g);else p.z=h,p.zlevel=v,g=Math.max(p.z2,g);if(x&&(x.z=h,x.zlevel=v,isFinite(g)&&(x.z2=g+2)),y){var C=p.textGuideLineConfig;y.z=h,y.zlevel=v,isFinite(g)&&(y.z2=g+(C&&C.showAbove?1:-1))}return g}function c(p,h){h.eachRendered(function(v){if(!Cd(v)){var g=v.getTextContent(),x=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),x&&x.stateTransition&&(x.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function d(p,h){var v=p.getModel("stateAnimation"),g=p.isAnimationEnabled(),x=v.get("duration"),y=x>0?{duration:x,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(S){if(S.states&&S.states.emphasis){if(Cd(S))return;if(S instanceof Qt&&CQ(S),S.__dirty){var w=S.prevStates;w&&S.useStates(w)}if(g){S.stateTransition=y;var b=S.getTextContent(),C=S.getTextGuideLine();b&&(b.stateTransition=y),C&&(C.stateTransition=y)}S.__dirty&&i(S)}})}OE=function(p){return new(function(h){_e(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(g){for(;g;){var x=g.__ecComponentInfo;if(x!=null)return p._model.getComponent(x.mainType,x.index);g=g.parent}},v.prototype.enterEmphasis=function(g,x){mc(g,x),bi(p)},v.prototype.leaveEmphasis=function(g,x){yc(g,x),bi(p)},v.prototype.enterBlur=function(g){hQ(g),bi(p)},v.prototype.leaveBlur=function(g){TO(g),bi(p)},v.prototype.enterSelect=function(g){MO(g),bi(p)},v.prototype.leaveSelect=function(g){kO(g),bi(p)},v.prototype.getModel=function(){return p.getModel()},v.prototype.getViewOfComponentModel=function(g){return p.getViewOfComponentModel(g)},v.prototype.getViewOfSeriesModel=function(g){return p.getViewOfSeriesModel(g)},v}(J5))(p)},T3=function(p){function h(v,g){for(var x=0;x<v.length;x++){var y=v[x];y[xx]=g}}U(kd,function(v,g){p._messageCenter.on(g,function(x){if(fb[p.group]&&p[xx]!==AE){if(x&&x.escapeConnect)return;var y=p.makeActionFromEvent(x),S=[];U(ac,function(w){w!==p&&w.group===p.group&&S.push(w)}),h(S,AE),U(S,function(w){w[xx]!==lie&&w.dispatchAction(y)}),h(S,uie)}})})}}(),t}(uo),O_=qg.prototype;O_.on=S3("on");O_.off=S3("off");O_.one=function(e,t,r){var n=this;function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),n.off(e,i)}this.on.call(this,e,i,r)};var cie=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Xg={},kd={},lb=[],ub=[],Kg=[],M3={},cb={},ac={},fb={},fie=+new Date-0,die=+new Date-0,N_="_echarts_instance_";function pie(e,t,r){{var n=k3(e);if(n)return n}var i=new qg(e,t,r);return i.id="ec_"+fie++,ac[i.id]=i,SO(e,N_,i.id),T3(i),ro.trigger("afterinit",i),i}function hie(e){if(De(e)){var t=e;e=null,U(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+die++,U(t,function(r){r.group=e})}return fb[e]=!0,e}function vie(e){We(e)?e=ac[e]:e instanceof qg||(e=k3(e)),e instanceof qg&&!e.isDisposed()&&e.dispose()}function k3(e){return ac[tQ(e,N_)]}function R3(e,t){M3[e]=t}function P3(e){kt(ub,e)<0&&ub.push(e)}function E3(e,t){$_(lb,e,t,eie)}function gie(e){B_("afterinit",e)}function mie(e){B_("afterupdate",e)}function B_(e,t){ro.on(e,t)}function Vo(e,t,r){ot(t)&&(r=t,t="");var n=Qe(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!kd[t]&&($o(EE.test(n)&&EE.test(t)),Xg[n]||(Xg[n]={action:r,actionInfo:e}),kd[t]=n)}function yie(e,t){b_.register(e,t)}function xie(e,t){$_(Kg,e,t,m3,"layout")}function Xl(e,t){$_(Kg,e,t,y3,"visual")}var BE=[];function $_(e,t,r,n,i){if((ot(t)||Qe(t))&&(r=t,t=n),!(kt(BE,r)>=0)){BE.push(r);var o=i3.wrapStageHandler(r,i);o.__prio=t,o.__raw=r,e.push(o)}}function A3(e,t){cb[e]=t}function Sie(e,t,r){var n=Xne("registerMap");n&&n(e,t,r)}var bie=Gee;Xl(L_,cne);Xl(ny,fne);Xl(ny,dne);Xl(L_,Tne);Xl(ny,Mne);Xl(x3,Yne);P3(t3);E3(Qne,sne);A3("default",pne);Vo({type:Il,event:Il,update:Il},Tn);Vo({type:eg,event:eg,update:eg},Tn);Vo({type:bd,event:bd,update:bd},Tn);Vo({type:tg,event:tg,update:tg},Tn);Vo({type:wd,event:wd,update:wd},Tn);R3("light",_ne);R3("dark",l3);var $E=[],wie={registerPreprocessor:P3,registerProcessor:E3,registerPostInit:gie,registerPostUpdate:mie,registerUpdateLifecycle:B_,registerAction:Vo,registerCoordinateSystem:yie,registerLayout:xie,registerVisual:Xl,registerTransform:bie,registerLoading:A3,registerMap:Sie,registerImpl:qne,PRIORITY:sie,ComponentModel:Bt,ComponentView:fi,SeriesModel:_s,ChartView:Oo,registerComponentModel:function(e){Bt.registerClass(e)},registerComponentView:function(e){fi.registerClass(e)},registerSeriesModel:function(e){_s.registerClass(e)},registerChartView:function(e){Oo.registerClass(e)},registerSubTypeDefaulter:function(e,t){Bt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Fre(e,t)}};function Sa(e){if(De(e)){U(e,function(t){Sa(t)});return}kt($E,e)>=0||($E.push(e),ot(e)&&(e={install:e}),e.install(wie))}var _ie=function(e){_e(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}(Bt),Cie=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),db=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",_n).models[0]},t.type="cartesian2dAxis",t}(Bt);Wo(db,Cie);var I3={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)"]}}},Tie=yt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},I3),z_=yt({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}}},I3),Mie=yt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},z_),kie=At({logBase:10},z_);const Rie={category:Tie,value:z_,time:Mie,log:kie};var Pie=0,pb=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Pie}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Ge(n,Eie);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(!We(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=ft(this.categories))},e}();function Eie(e){return Qe(e)&&e.value!=null?e.value:e+""}var Aie={value:1,category:1,time:1,log:1};function zE(e,t,r,n){U(Aie,function(i,o){var a=yt(yt({},Rie[o],!0),n,!0),s=function(l){_e(c,l);function c(){var d=l!==null&&l.apply(this,arguments)||this;return d.type=t+"Axis."+o,d}return c.prototype.mergeDefaultAndTheme=function(d,p){var h=Jd(this),v=h?Lp(d):{},g=p.getTheme();yt(d,g.get(o+"Axis")),yt(d,this.getDefaultOption()),d.type=FE(d),h&&Sc(d,v,h)},c.prototype.optionUpdated=function(){var d=this.option;d.type==="category"&&(this.__ordinalMeta=pb.createByAxisModel(this))},c.prototype.getCategories=function(d){var p=this.option;if(p.type==="category")return d?p.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=t+"Axis."+o,c.defaultOption=a,c}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",FE)}function FE(e){return e.type||(e.data?"category":"value")}var Uo=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}();Dm(Uo);function hb(e){return e.type==="interval"||e.type==="log"}function Iie(e,t,r,n){var i={},o=e[1]-e[0],a=i.interval=hO(o/t);r!=null&&a<r&&(a=i.interval=r),n!=null&&a>n&&(a=i.interval=n);var s=i.intervalPrecision=D3(a),l=i.niceTickExtent=[Lr(Math.ceil(e[0]/a)*a,s),Lr(Math.floor(e[1]/a)*a,s)];return Die(l,e),i}function Mx(e){var t=Math.pow(10,r_(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Lr(r*t)}function D3(e){return ca(e)+2}function jE(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Die(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),jE(e,0,t),jE(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function iy(e,t){return e>=t[0]&&e<=t[1]}function oy(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function ay(e,t){return e*(t[1]-t[0])+t[0]}var F_=function(e){_e(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new pb({})),De(i)&&(i=new pb({categories:Ge(i,function(o){return Qe(o)?o.value:o})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:We(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),iy(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),oy(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(ay(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=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);a<l;++a){var c=n[a];i[a]=c,o[c]=a}for(var d=0;a<s;++a){for(;o[d]!=null;)d++;i.push(d),o[d]=a}},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}(Uo);Uo.registerClass(F_);var cl=Lr,Ec=function(e){_e(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 iy(r,this._extent)},t.prototype.normalize=function(r){return oy(r,this._extent)},t.prototype.scale=function(r){return ay(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=D3(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<o[0]&&(r?s.push({value:cl(o[0]-n,a)}):s.push({value:i[0]}));for(var c=o[0];c<=o[1]&&(s.push({value:c}),c=cl(c+n,a),c!==s[s.length-1].value);)if(s.length>l)return[];var d=s.length?s[s.length-1].value:o[1];return i[1]>d&&(r?s.push({value:cl(d+n,a)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],o=this.getExtent(),a=1;a<n.length;a++){for(var s=n[a],l=n[a-1],c=0,d=[],p=s.value-l.value,h=p/r;c<r-1;){var v=cl(l.value+(c+1)*h);v>o[0]&&v<o[1]&&d.push(v),c++}i.push(d)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=ca(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var o=cl(r.value,i,!0);return T5(o)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var o=this._extent,a=o[1]-o[0];if(isFinite(a)){a<0&&(a=-a,o.reverse());var s=Iie(o,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 o=n[1]-n[0];isFinite(o)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var a=this._interval;r.fixMin||(n[0]=cl(Math.floor(n[0]/a)*a)),r.fixMax||(n[1]=cl(Math.ceil(n[1]/a)*a))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Uo);Uo.registerClass(Ec);var Lie=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},L3=function(e){_e(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 Zm(r.value,_P[Tee(nc(this._minLevelUnit))]||_P.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return Mee(r,n,i,a,o)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var o=this.getSetting("useUTC"),a=jie(this._minLevelUnit,this._approxInterval,o,n);return i=i.concat(a),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Li,n[1]+=Li),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]-Li}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var o=this._extent,a=o[1]-o[0];this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Nv.length,l=Math.min(Lie(Nv,this._approxInterval,0,s),s-1);this._interval=Nv[l][1],this._minLevelUnit=Nv[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return fr(r)?r:+ya(r)},t.prototype.contain=function(r){return iy(this.parse(r),this._extent)},t.prototype.normalize=function(r){return oy(this.parse(r),this._extent)},t.prototype.scale=function(r){return ay(r,this._extent)},t.type="time",t}(Ec),Nv=[["second",C_],["minute",T_],["hour",Td],["quarter-day",Td*6],["half-day",Td*12],["day",Li*1.2],["half-week",Li*3.5],["week",Li*7],["month",Li*31],["quarter",Li*95],["half-year",wP/2],["year",wP]];function Oie(e,t,r,n){var i=ya(t),o=ya(r),a=function(g){return CP(i,g,n)===CP(o,g,n)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},d=function(){return c()&&a("hour")},p=function(){return d()&&a("minute")},h=function(){return p()&&a("second")},v=function(){return h()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return d();case"minute":return p();case"second":return h();case"millisecond":return v()}}function Nie(e,t){return e/=Li,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Bie(e){var t=30*Li;return e/=t,e>6?6:e>3?3:e>2?2:1}function $ie(e){return e/=Td,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function WE(e,t){return e/=t?T_:C_,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function zie(e){return hO(e)}function Fie(e,t,r){var n=new Date(e);switch(nc(t)){case"year":case"month":n[x5(r)](0);case"day":n[S5(r)](1);case"hour":n[b5(r)](0);case"minute":n[w5(r)](0);case"second":n[_5(r)](0),n[C5(r)](0)}return n.getTime()}function jie(e,t,r,n){var i=1e4,o=m5,a=0;function s(k,O,N,$,z,F,j){for(var K=new Date(O),V=O,H=K[$]();V<N&&V<=n[1];)j.push({value:V}),H+=k,K[z](H),V=K.getTime();j.push({value:V,notAdd:!0})}function l(k,O,N){var $=[],z=!O.length;if(!Oie(nc(k),n[0],n[1],r)){z&&(O=[{value:Fie(new Date(n[0]),k,r)},{value:n[1]}]);for(var F=0;F<O.length-1;F++){var j=O[F].value,K=O[F+1].value;if(j!==K){var V=void 0,H=void 0,Y=void 0,W=!1;switch(k){case"year":V=Math.max(1,Math.round(t/Li/365)),H=M_(r),Y=kee(r);break;case"half-year":case"quarter":case"month":V=Bie(t),H=ic(r),Y=x5(r);break;case"week":case"half-week":case"day":V=Nie(t),H=Qm(r),Y=S5(r),W=!0;break;case"half-day":case"quarter-day":case"hour":V=$ie(t),H=Qd(r),Y=b5(r);break;case"minute":V=WE(t,!0),H=Jm(r),Y=w5(r);break;case"second":V=WE(t,!1),H=ey(r),Y=_5(r);break;case"millisecond":V=zie(t),H=ty(r),Y=C5(r);break}s(V,j,K,H,Y,W,$),k==="year"&&N.length>1&&F===0&&N.unshift({value:N[0].value-V})}}for(var F=0;F<$.length;F++)N.push($[F]);return $}}for(var c=[],d=[],p=0,h=0,v=0;v<o.length&&a++<i;++v){var g=nc(o[v]);if(Cee(o[v])){l(o[v],c[c.length-1]||[],d);var x=o[v+1]?nc(o[v+1]):null;if(g!==x){if(d.length){h=p,d.sort(function(k,O){return k.value-O.value});for(var y=[],S=0;S<d.length;++S){var w=d[S].value;(S===0||d[S-1].value!==w)&&(y.push(d[S]),w>=n[0]&&w<=n[1]&&p++)}var b=(n[1]-n[0])/t;if(p>b*1.5&&h>b/1.5||(c.push(y),p>b||e===o[v]))break}d=[]}}}for(var C=hn(Ge(c,function(k){return hn(k,function(O){return O.value>=n[0]&&O.value<=n[1]&&!O.notAdd})}),function(k){return k.length>0}),T=[],M=C.length-1,v=0;v<C.length;++v)for(var E=C[v],I=0;I<E.length;++I)T.push({value:E[I].value,level:M-v});T.sort(function(k,O){return k.value-O.value});for(var D=[],v=0;v<T.length;++v)(v===0||T[v].value!==T[v-1].value)&&D.push(T[v]);return D}Uo.registerClass(L3);var HE=Uo.prototype,Rd=Ec.prototype,Wie=Lr,Hie=Math.floor,Vie=Math.ceil,Bv=Math.pow,Ji=Math.log,j_=function(e){_e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ec,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,o=n.getExtent(),a=Rd.getTicks.call(this,r);return Ge(a,function(s){var l=s.value,c=Lr(Bv(this.base,l));return c=l===i[0]&&this._fixMin?$v(c,o[0]):c,c=l===i[1]&&this._fixMax?$v(c,o[1]):c,{value:c}},this)},t.prototype.setExtent=function(r,n){var i=Ji(this.base);r=Ji(Math.max(0,r))/i,n=Ji(Math.max(0,n))/i,Rd.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=HE.getExtent.call(this);n[0]=Bv(r,n[0]),n[1]=Bv(r,n[1]);var i=this._originalScale,o=i.getExtent();return this._fixMin&&(n[0]=$v(n[0],o[0])),this._fixMax&&(n[1]=$v(n[1],o[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Ji(r[0])/Ji(n),r[1]=Ji(r[1])/Ji(n),HE.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 o=FZ(i),a=r/i*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Lr(Vie(n[0]/o)*o),Lr(Hie(n[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Rd.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=Ji(r)/Ji(this.base),iy(r,this._extent)},t.prototype.normalize=function(r){return r=Ji(r)/Ji(this.base),oy(r,this._extent)},t.prototype.scale=function(r){return r=ay(r,this._extent),Bv(this.base,r)},t.type="log",t}(Uo),O3=j_.prototype;O3.getMinorTicks=Rd.getMinorTicks;O3.getLabel=Rd.getLabel;function $v(e,t){return Wie(e,ca(t))}Uo.registerClass(j_);var Uie=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 o=r.get("min",!0);o==null&&(o=r.get("startValue",!0));var a=this._modelMinRaw=o;ot(a)?this._modelMinNum=zv(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=zv(t,a));var s=this._modelMaxRaw=r.get("max",!0);if(ot(s)?this._modelMaxNum=zv(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=zv(t,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),c=De(l)?l:[l||0,l||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Wl(c[0],1),Wl(c[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,c=s!=null,d=l!=null;s==null&&(s=t?i?0:NaN:r-o[0]*a),l==null&&(l=t?i?i-1:NaN:n+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var p=Tg(s)||Tg(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!c&&(s=0),s<0&&l<0&&!d&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,c=!0),v!=null&&(l=v,d=!0),{min:s,max:l,minFixed:c,maxFixed:d,isBlank:p}},e.prototype.modifyDataMinMax=function(t,r){this[Yie[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Gie[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Gie={min:"_determinedMin",max:"_determinedMax"},Yie={min:"_dataMin",max:"_dataMax"};function N3(e,t,r){var n=e.rawExtentInfo;return n||(n=new Uie(e,t,r),e.rawExtentInfo=n,n)}function zv(e,t){return t==null?null:Tg(t)?NaN:e.parse(t)}function B3(e,t){var r=e.type,n=N3(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,o=n.max,a=t.ecModel;if(a&&r==="time"){var s=nre("bar",a),l=!1;if(U(s,function(p){l=l||p.getBaseAxis()===t.axis}),l){var c=ore(s),d=qie(i,o,t,c);i=d.min,o=d.max}}return{extent:[i,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function qie(e,t,r,n){var i=r.axis.getExtent(),o=i[1]-i[0],a=sre(n,r.axis);if(a===void 0)return{min:e,max:t};var s=1/0;U(a,function(v){s=Math.min(v.offset,s)});var l=-1/0;U(a,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,d=t-e,p=1-(s+l)/o,h=d/p-d;return t+=h*(l/c),e-=h*(s/c),{min:e,max:t}}function VE(e,t){var r=t,n=B3(e,r),i=n.extent,o=r.get("splitNumber");e instanceof j_&&(e.base=r.get("logBase"));var a=e.type,s=r.get("interval"),l=a==="interval"||a==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,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 Xie(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new F_({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new L3({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Uo.getClass(t)||Ec)}}function Kie(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Ac(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,o){return e.scale.getFormattedLabel(i,o,n)}}(t):We(t)?function(n){return function(i){var o=e.scale.getLabel(i),a=n.replace("{value}",o??"");return a}}(t):ot(t)?function(n){return function(i,o){return r!=null&&(o=i.value-r),n(W_(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function W_(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Zie(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,o=r.getExtent();r instanceof F_?i=r.count():(n=r.getTicks(),i=n.length);var a=e.getLabelModel(),s=Ac(e),l,c=1;i>40&&(c=Math.ceil(i/40));for(var d=0;d<i;d+=c){var p=n?n[d]:{value:o[0]+d},h=s(p,d),v=a.getTextRect(h),g=Qie(v,a.get("rotate")||0);l?l.union(g):l=g}return l}}function Qie(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,o=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),a=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new $t(e.x,e.y,o,a);return s}function H_(e){var t=e.get("interval");return t??"auto"}function $3(e){return e.type==="category"&&H_(e.getLabelModel())===0}function z3(e,t){var r={};return U(e.mapDimensionsAll(t),function(n){r[iee(e,n)]=!0}),cr(r)}function Jie(e,t,r){t&&U(z3(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 eoe=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 Ge(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),hn(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}(),vb=["x","y"];function UE(e){return e.type==="interval"||e.type==="time"}var toe=function(e){_e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=vb,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!UE(r)||!UE(n))){var i=r.getExtent(),o=n.getExtent(),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],c=o[1]-o[0];if(!(!l||!c)){var d=(s[0]-a[0])/l,p=(s[1]-a[1])/c,h=a[0]-i[0]*d,v=a[1]-o[0]*p,g=this._transform=[d,0,0,p,h,v];this._invTransform=Qw([],g)}}},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),o=this.dataToPoint(n),a=this.getArea(),s=new $t(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var o=r[0],a=r[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return Ni(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,n)),i[1]=l.toGlobalCoord(l.dataToCoord(a,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(r[0]),c=o.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Ni(i,r,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(r[0]),n),i[1]=a.coordToData(a.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(),o=Math.min(n[0],n[1])-r,a=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-o+r,l=Math.max(i[0],i[1])-a+r;return new $t(o,a,s,l)},t}(eoe),ip=Or();function F3(e,t){var r=Ge(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 roe(e){var t=e.getLabelModel().get("customValues");if(t){var r=Ac(e);return{labels:F3(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?ioe(e):aoe(e)}function noe(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:F3(e,r)}:e.type==="category"?ooe(e,t):{ticks:Ge(e.scale.getTicks(),function(n){return n.value})}}function ioe(e){var t=e.getLabelModel(),r=j3(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function j3(e,t){var r=W3(e,"labels"),n=H_(t),i=H3(r,n);if(i)return i;var o,a;return ot(n)?o=G3(e,n):(a=n==="auto"?soe(e):n,o=U3(e,a)),V3(r,n,{labels:o,labelCategoryInterval:a})}function ooe(e,t){var r=W3(e,"ticks"),n=H_(t),i=H3(r,n);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),ot(n))o=G3(e,n,!0);else if(n==="auto"){var s=j3(e,e.getLabelModel());a=s.labelCategoryInterval,o=Ge(s.labels,function(l){return l.tickValue})}else a=n,o=U3(e,a,!0);return V3(r,n,{ticks:o,tickCategoryInterval:a})}function aoe(e){var t=e.scale.getTicks(),r=Ac(e);return{labels:Ge(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function W3(e,t){return ip(e)[t]||(ip(e)[t]=[])}function H3(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function V3(e,t,r){return e.push({key:t,value:r}),r}function soe(e){var t=ip(e).autoInterval;return t??(ip(e).autoInterval=e.calculateCategoryInterval())}function loe(e){var t=uoe(e),r=Ac(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),d=Math.abs(c*Math.cos(n)),p=Math.abs(c*Math.sin(n)),h=0,v=0;l<=o[1];l+=s){var g=0,x=0,y=Om(r({value:l}),t.font,"center","top");g=y.width*1.3,x=y.height*1.3,h=Math.max(h,g,7),v=Math.max(v,x,7)}var S=h/d,w=v/p;isNaN(S)&&(S=1/0),isNaN(w)&&(w=1/0);var b=Math.max(0,Math.floor(Math.min(S,w))),C=ip(e.model),T=e.getExtent(),M=C.lastAutoInterval,E=C.lastTickCount;return M!=null&&E!=null&&Math.abs(M-b)<=1&&Math.abs(E-a)<=1&&M>b&&C.axisExtent0===T[0]&&C.axisExtent1===T[1]?b=M:(C.lastTickCount=a,C.lastAutoInterval=b,C.axisExtent0=T[0],C.axisExtent1=T[1]),b}function uoe(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 U3(e,t,r){var n=Ac(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=o[0],d=i.count();c!==0&&l>1&&d/l>2&&(c=Math.round(Math.ceil(c/l)*l));var p=$3(e),h=a.get("showMinLabel")||p,v=a.get("showMaxLabel")||p;h&&c!==o[0]&&x(o[0]);for(var g=c;g<=o[1];g+=l)x(g);v&&g-l!==o[1]&&x(o[1]);function x(y){var S={value:y};s.push(r?y:{formattedLabel:n(S),rawLabel:i.getLabel(S),tickValue:y})}return s}function G3(e,t,r){var n=e.scale,i=Ac(e),o=[];return U(n.getTicks(),function(a){var s=n.getLabel(a),l=a.value;t(a.value,s)&&o.push(r?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var GE=[0,1],coe=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 dO(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(),YE(n,i.count())),dn(t,GE,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),YE(n,i.count()));var o=dn(t,n,GE,r);return this.scale.scale(o)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=noe(this,r),i=n.ticks,o=Ge(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=r.get("alignWithLabel");return foe(this,o,a,t.clamp),o},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=Ge(n,function(o){return Ge(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return roe(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 loe(this)},e}();function YE(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function foe(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var o=e.getExtent(),a,s;if(i===1)t[0].coord=o[0],a=t[1]={coord:o[1]};else{var l=t[i-1].tickValue-t[0].tickValue,c=(t[i-1].coord-t[0].coord)/l;U(t,function(v){v.coord-=c/2});var d=e.scale.getExtent();s=1+d[1]-t[i-1].tickValue,a={coord:t[i-1].coord+c*s},t.push(a)}var p=o[0]>o[1];h(t[0].coord,o[0])&&(n?t[0].coord=o[0]:t.shift()),n&&h(o[0],t[0].coord)&&t.unshift({coord:o[0]}),h(o[1],a.coord)&&(n?a.coord=o[1]:t.pop()),n&&h(a.coord,o[1])&&t.push({coord:o[1]});function h(v,g){return v=Lr(v),g=Lr(g),p?v>g:v<g}}var doe=function(e){_e(t,e);function t(r,n,i,o,a){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=o||"value",s.position=a||"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}(coe);function gb(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,c=i.dim,d=n.getRect(),p=[d.x,d.x+d.width,d.y,d.y+d.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,g=c==="x"?[p[2]-v,p[3]+v]:[p[0]-v,p[1]+v];if(a){var x=a.toGlobalCoord(a.dataToCoord(0));g[h.onZero]=Math.max(Math.min(x,g[1]),g[0])}o.position=[c==="y"?g[h[l]]:p[0],c==="x"?g[h[l]]:p[3]],o.rotation=Math.PI/2*(c==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?g[h[s]]-g[h.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Ud(r.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var S=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-S:S,o.z2=1,o}function qE(e){return e.get("coordinateSystem")==="cartesian2d"}function XE(e){var t={xAxisModel:null,yAxisModel:null};return U(t,function(r,n){var i=n.replace(/Model$/,""),o=e.getReferringComponents(i,_n).models[0];t[n]=o}),t}var kx=Math.log;function poe(e,t,r){var n=Ec.prototype,i=n.getTicks.call(r),o=n.getTicks.call(r,!0),a=i.length-1,s=n.getInterval.call(r),l=B3(e,t),c=l.extent,d=l.fixMin,p=l.fixMax;if(e.type==="log"){var h=kx(e.base);c=[kx(c[0])/h,kx(c[1])/h]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:a,fixMin:d,fixMax:p});var v=n.getExtent.call(e);d&&(c[0]=v[0]),p&&(c[1]=v[1]);var g=n.getInterval.call(e),x=c[0],y=c[1];if(d&&p)g=(y-x)/a;else if(d)for(y=c[0]+g*a;y<c[1]&&isFinite(y)&&isFinite(c[1]);)g=Mx(g),y=c[0]+g*a;else if(p)for(x=c[1]-g*a;x>c[0]&&isFinite(x)&&isFinite(c[0]);)g=Mx(g),x=c[1]-g*a;else{var S=e.getTicks().length-1;S>a&&(g=Mx(g));var w=g*a;y=Math.ceil(c[1]/g)*g,x=Lr(y-w),x<0&&c[0]>=0?(x=0,y=Lr(w)):y>0&&c[1]<=0&&(y=0,x=-Lr(w))}var b=(i[0].value-o[0].value)/s,C=(i[a].value-o[a].value)/s;n.setExtent.call(e,x+g*b,y+g*C),n.setInterval.call(e,g),(b||C)&&n.setNiceExtent.call(e,x+g,y-g)}var hoe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=vb,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(a){var s,l=cr(a),c=l.length;if(c){for(var d=[],p=c-1;p>=0;p--){var h=+l[p],v=a[h],g=v.model,x=v.scale;hb(x)&&g.get("alignTicks")&&g.get("interval")==null?d.push(v):(VE(x,g),hb(x)&&(s=v))}d.length&&(s||(s=d.pop(),VE(s.scale,s.model)),U(d,function(y){poe(y.scale,y.model,s.scale)}))}}i(n.x),i(n.y);var o={};U(n.x,function(a){KE(n,"y",a,o)}),U(n.y,function(a){KE(n,"x",a,o)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),a=ws(i,{width:r.getWidth(),height:r.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(U(s,function(c){if(!c.model.get(["axisLabel","inside"])){var d=Zie(c);if(d){var p=c.isHorizontal()?"height":"width",h=c.model.get(["axisLabel","margin"]);a[p]-=d[p]+h,c.position==="top"?a.y+=d.height+h:c.position==="left"&&(a.x+=d.width+h)}}}),l()),U(this._coordsList,function(c){c.calcAffineTransform()});function l(){U(s,function(c){var d=c.isHorizontal(),p=d?[0,a.width]:[0,a.height],h=c.inverse?1:0;c.setExtent(p[h],p[1-h]),voe(c,d?a.x:a.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]}Qe(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===r)return o[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",_n).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",_n).models[0],o=t.gridModel,a=this._coordsList,s,l;if(r)s=r.coordinateSystem,kt(a,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(o){var c=o.coordinateSystem;c===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,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",c("x"),this),r.eachComponent("yAxis",c("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,U(s.x,function(d,p){U(s.y,function(h,v){var g="x"+p+"y"+v,x=new toe(g);x.master=i,x.model=t,i._coordsMap[g]=x,i._coordsList.push(x),x.addAxis(d),x.addAxis(h)})});function c(d){return function(p,h){if(Rx(p,t)){var v=p.get("position");d==="x"?v!=="top"&&v!=="bottom"&&(v=a.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=a.left?"right":"left"),a[v]=!0;var g=new doe(d,Xie(p),[0,0],p.get("type"),v),x=g.type==="category";g.onBand=x&&p.get("boundaryGap"),g.inverse=p.get("inverse"),p.axis=g,g.model=p,g.grid=o,g.index=h,o._axesList.push(g),s[d][h]=g,l[d]++}}}},e.prototype._updateScale=function(t,r){U(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var o=i.model.get("categorySortInfo");i.scale.setSortInfo(o)}}),t.eachSeries(function(i){if(qE(i)){var o=XE(i),a=o.xAxisModel,s=o.yAxisModel;if(!Rx(a,r)||!Rx(s,r))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),c=i.getData(),d=l.getAxis("x"),p=l.getAxis("y");n(c,d),n(c,p)}},this);function n(i,o){U(z3(i,o.dim),function(a){o.scale.unionExtentFromData(i,a)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return U(this.getCartesians(),function(i){var o=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);kt(r,o)<0&&r.push(o),kt(n,a)<0&&n.push(a)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,r);a.name="grid_"+o,a.resize(i,r,!0),i.coordinateSystem=a,n.push(a)}),t.eachSeries(function(i){if(qE(i)){var o=XE(i),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel(),c=l.coordinateSystem;i.coordinateSystem=c.getCartesian(a.componentIndex,s.componentIndex)}}),n},e.dimensions=vb,e}();function Rx(e,t){return e.getCoordSysModel()===t}function KE(e,t,r,n){r.getAxesOnZeroOf=function(){return o?[o]:[]};var i=e[t],o,a=r.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)ZE(i[l])&&(o=i[l]);else for(var c in i)if(i.hasOwnProperty(c)&&ZE(i[c])&&!n[d(i[c])]){o=i[c];break}o&&(n[d(o)]=!0);function d(p){return p.dim+"_"+p.index}}function ZE(e){return e&&e.type!=="category"&&e.type!=="time"&&Kie(e)}function voe(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 ss=Math.PI,hs=function(){function e(t,r){this.group=new Mr,this.opt=r,this.axisModel=t,At(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Mr({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!QE[t]},e.prototype.add=function(t){QE[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=pO(r-t),o,a;return Ig(i)?(a=n>0?"top":"bottom",o="center"):Ig(i-ss)?(a=n>0?"bottom":"top",o="center"):(a="middle",i>0&&i<ss?o=n>0?"right":"left":o=n>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},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}(),QE={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var o=t.axis.getExtent(),a=n.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];a&&(Ni(s,s,a),Ni(l,l,a));var d=Te({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new Ss({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:d,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Xd(p.shape,p.style.lineWidth),p.anid="line",r.add(p);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);We(h)&&(h=[h,h]),(We(v)||fr(v))&&(v=[v,v]);var g=O5(t.get(["axisLine","symbolOffset"])||0,v),x=v[0],y=v[1];U([{rotate:e.rotation+Math.PI/2,offset:g[0],r:0},{rotate:e.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(S,w){if(h[w]!=="none"&&h[w]!=null){var b=Cs(h[w],-x/2,-y/2,x,y,d.stroke,!0),C=S.r+S.offset,T=c?l:s;b.attr({rotation:S.rotate,x:T[0]+C*Math.cos(e.rotation),y:T[1]-C*Math.sin(e.rotation),silent:!0,z2:11}),r.add(b)}})}}},axisTickLabel:function(e,t,r,n){var i=yoe(r,n,t,e),o=Soe(r,n,t,e);if(moe(t,o,i),xoe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=fre(Ge(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));dre(a)}},axisName:function(e,t,r,n){var i=Ud(e.axisName,t.get("name"));if(i){var o=t.get("nameLocation"),a=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,c=t.axis.getExtent(),d=c[0]>c[1]?-1:1,p=[o==="start"?c[0]-d*l:o==="end"?c[1]+d*l:(c[0]+c[1])/2,eA(o)?e.labelOffset+a*l:0],h,v=t.get("nameRotate");v!=null&&(v=v*ss/180);var g;eA(o)?h=hs.innerTextLayout(e.rotation,v??e.rotation,a):(h=goe(e.rotation,o,v||0,c),g=e.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(h.rotation)),!isFinite(g)&&(g=null)));var x=s.getFont(),y=t.get("nameTruncate",!0)||{},S=y.ellipsis,w=Ud(e.nameTruncateMaxWidth,y.maxWidth,g),b=new Fr({x:p[0],y:p[1],rotation:h.rotation,silent:hs.isLabelSilent(t),style:xa(s,{text:i,font:x,overflow:"truncate",width:w,ellipsis:S,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ym({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var C=hs.makeAxisEventDataBase(t);C.targetType="axisName",C.name=i,Vt(b).eventData=C}n.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function goe(e,t,r,n){var i=pO(r-e),o,a,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ig(i-ss/2)?(a=l?"bottom":"top",o="center"):Ig(i-ss*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<ss*1.5&&i>ss/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function moe(e,t,r){if(!$3(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],c=r[0],d=r[1],p=r[r.length-1],h=r[r.length-2];n===!1?(wi(o),wi(c)):JE(o,a)&&(n?(wi(a),wi(d)):(wi(o),wi(c))),i===!1?(wi(s),wi(p)):JE(l,s)&&(i?(wi(l),wi(h)):(wi(s),wi(p)))}}function wi(e){e&&(e.ignore=!0)}function JE(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=Kw([]);return Zw(i,i,-e.rotation),r.applyTransform(Ju([],i,e.getLocalTransform())),n.applyTransform(Ju([],i,t.getLocalTransform())),r.intersect(n)}}function eA(e){return e==="middle"||e==="center"}function Y3(e,t,r,n,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var c=e[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=r,t&&(Ni(a,a,t),Ni(s,s,t));var d=new Ss({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Xd(d.shape,d.style.lineWidth),d.anid=i+"_"+e[l].tickValue,o.push(d)}return o}function yoe(e,t,r,n){var i=r.axis,o=r.getModel("axisTick"),a=o.get("show");if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),!(!a||i.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=n.tickDirection*o.get("length"),c=i.getTicksCoords(),d=Y3(c,t.transform,l,At(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<d.length;p++)e.add(d[p]);return d}}function xoe(e,t,r,n){var i=r.axis,o=r.getModel("minorTick");if(!(!o.get("show")||i.scale.isBlank())){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=n*o.get("length"),c=At(s.getLineStyle(),At(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),d=0;d<a.length;d++)for(var p=Y3(a[d],t.transform,l,c,"minorticks_"+d),h=0;h<p.length;h++)e.add(p[h])}}function Soe(e,t,r,n){var i=r.axis,o=Ud(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!o||i.scale.isBlank())){var a=r.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),c=(Ud(n.labelRotate,a.get("rotate"))||0)*ss/180,d=hs.innerTextLayout(n.rotation,c,n.labelDirection),p=r.getCategories&&r.getCategories(!0),h=[],v=hs.isLabelSilent(r),g=r.get("triggerEvent");return U(l,function(x,y){var S=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(x.tickValue):x.tickValue,w=x.formattedLabel,b=x.rawLabel,C=a;if(p&&p[S]){var T=p[S];Qe(T)&&T.textStyle&&(C=new vr(T.textStyle,a,r.ecModel))}var M=C.getTextColor()||r.get(["axisLine","lineStyle","color"]),E=i.dataToCoord(S),I=C.getShallow("align",!0)||d.textAlign,D=Tt(C.getShallow("alignMinLabel",!0),I),k=Tt(C.getShallow("alignMaxLabel",!0),I),O=C.getShallow("verticalAlign",!0)||C.getShallow("baseline",!0)||d.textVerticalAlign,N=Tt(C.getShallow("verticalAlignMinLabel",!0),O),$=Tt(C.getShallow("verticalAlignMaxLabel",!0),O),z=new Fr({x:E,y:n.labelOffset+n.labelDirection*s,rotation:d.rotation,silent:v,z2:10+(x.level||0),style:xa(C,{text:w,align:y===0?D:y===l.length-1?k:I,verticalAlign:y===0?N:y===l.length-1?$:O,fill:ot(M)?M(i.type==="category"?b:i.type==="value"?S+"":S,y):M})});if(z.anid="label_"+S,g){var F=hs.makeAxisEventDataBase(r);F.targetType="axisLabel",F.value=b,F.tickIndex=y,i.type==="category"&&(F.dataIndex=S),Vt(z).eventData=F}t.add(z),z.updateTransform(),h.push(z),e.add(z),z.decomposeTransform()}),h}}function boe(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return woe(r,e,t),r.seriesInvolved&&Coe(r,e),r}function woe(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];U(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=op(s.model),c=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var d=s.model,p=d.getModel("tooltip",n);if(U(s.getAxes(),Ut(x,!1,null)),s.getTooltipAxes&&n&&p.get("show")){var h=p.get("trigger")==="axis",v=p.get(["axisPointer","type"])==="cross",g=s.getTooltipAxes(p.get(["axisPointer","axis"]));(h||v)&&U(g.baseAxes,Ut(x,v?"cross":!0,h)),v&&U(g.otherAxes,Ut(x,"cross",!1))}function x(y,S,w){var b=w.model.getModel("axisPointer",i),C=b.get("show");if(!(!C||C==="auto"&&!y&&!mb(b))){S==null&&(S=b.get("triggerTooltip")),b=y?_oe(w,p,i,t,y,S):b;var T=b.get("snap"),M=b.get("triggerEmphasis"),E=op(w.model),I=S||T||w.type==="category",D=e.axesInfo[E]={key:E,axis:w,coordSys:s,axisPointerModel:b,triggerTooltip:S,triggerEmphasis:M,involveSeries:I,snap:T,useHandle:mb(b),seriesModels:[],linkGroup:null};c[E]=D,e.seriesInvolved=e.seriesInvolved||I;var k=Toe(o,w);if(k!=null){var O=a[k]||(a[k]={axesInfo:{}});O.axesInfo[E]=D,O.mapper=o[k].mapper,D.linkGroup=O}}}})}function _oe(e,t,r,n,i,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};U(s,function(h){l[h]=ht(a.get(h))}),l.snap=e.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var c=l.label||(l.label={});if(c.show==null&&(c.show=!1),i==="cross"){var d=a.get(["label","show"]);if(c.show=d??!0,!o){var p=l.lineStyle=a.get("crossStyle");p&&At(c,p.textStyle)}}return e.model.getModel("axisPointer",new vr(l,r,n))}function Coe(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),o=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||o===!1||r.get(["axisPointer","show"],!0)===!1||U(e.coordSysAxesInfo[op(n.model)],function(a){var s=a.axis;n.getAxis(s.dim)===s&&(a.seriesModels.push(r),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=r.getData().count())})})}function Toe(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(Px(o[n+"AxisId"],r.id)||Px(o[n+"AxisIndex"],r.componentIndex)||Px(o[n+"AxisName"],r.name))return i}}function Px(e,t){return e==="all"||De(e)&&kt(e,t)>=0||e===t}function Moe(e){var t=V_(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,o=r.get("status"),a=r.get("value");a!=null&&(a=n.parse(a));var s=mb(r);o==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function V_(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[op(e)]}function koe(e){var t=V_(e);return t&&t.axisPointerModel}function mb(e){return!!e.get(["handle","show"])}function op(e){return e.type+"||"+e.id}var tA={},q3=function(e){_e(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,o){this.axisPointerClass&&Moe(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,o){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 o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=koe(r);a?(this._axisPointer||(this._axisPointer=new o)).render(r,a,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){tA[r]=n},t.getAxisPointerClass=function(r){return r&&tA[r]},t.type="axis",t}(fi),yb=Or();function Roe(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=n.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var d=s.length,p=yb(e).splitAreaColors,h=ft(),v=0;if(p)for(var g=0;g<c.length;g++){var x=p.get(c[g].tickValue);if(x!=null){v=(x+(d-1)*g)%d;break}}var y=i.toGlobalCoord(c[0].coord),S=a.getAreaStyle();s=De(s)?s:[s];for(var g=1;g<c.length;g++){var w=i.toGlobalCoord(c[g].coord),b=void 0,C=void 0,T=void 0,M=void 0;i.isHorizontal()?(b=y,C=l.y,T=w-b,M=l.height,y=b+T):(b=l.x,C=y,T=l.width,M=w-C,y=C+M);var E=c[g-1].tickValue;E!=null&&h.set(E,v),t.add(new dr({anid:E!=null?"area_"+E:null,shape:{x:b,y:C,width:T,height:M},style:At({fill:s[v]},S),autoBatch:!0,silent:!0})),v=(v+1)%d}yb(e).splitAreaColors=h}}}function Poe(e){yb(e).splitAreaColors=null}var Eoe=["axisLine","axisTickLabel","axisName"],Aoe=["splitArea","splitLine","minorSplitLine"],X3=function(e){_e(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,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Mr,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=gb(s,r),c=new hs(r,Te({handleAutoShown:function(p){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(hb(h[v].getOtherAxis(r.axis).scale))return!0;return!1}},l));U(Eoe,c.add,c),this._axisGroup.add(c.getGroup()),U(Aoe,function(p){r.get([p,"show"])&&Ioe[p](this,this._axisGroup,r,s)},this);var d=o&&o.type==="changeAxisOrder"&&o.isInitSort;d||jO(a,this._axisGroup,r),e.prototype.render.call(this,r,n,i,o)}},t.prototype.remove=function(){Poe(this)},t.type="cartesianAxis",t}(q3),Ioe={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=De(s)?s:[s];for(var l=n.coordinateSystem.getRect(),c=i.isHorizontal(),d=0,p=i.getTicksCoords({tickModel:o}),h=[],v=[],g=a.getLineStyle(),x=0;x<p.length;x++){var y=i.toGlobalCoord(p[x].coord);c?(h[0]=y,h[1]=l.y,v[0]=y,v[1]=l.y+l.height):(h[0]=l.x,h[1]=y,v[0]=l.x+l.width,v[1]=y);var S=d++%s.length,w=p[x].tickValue,b=new Ss({anid:w!=null?"line_"+p[x].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:At({stroke:s[S]},g),silent:!0});Xd(b.shape,g.lineWidth),t.add(b)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,o=r.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var d=[],p=[],h=a.getLineStyle(),v=0;v<c.length;v++)for(var g=0;g<c[v].length;g++){var x=i.toGlobalCoord(c[v][g].coord);l?(d[0]=x,d[1]=s.y,p[0]=x,p[1]=s.y+s.height):(d[0]=s.x,d[1]=x,p[0]=s.x+s.width,p[1]=x);var y=new Ss({anid:"minor_line_"+c[v][g].tickValue,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:h,silent:!0});Xd(y.shape,h.lineWidth),t.add(y)}},splitArea:function(e,t,r,n){Roe(e,t,r,n)}},K3=function(e){_e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(X3),Doe=function(e){_e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=K3.type,r}return t.type="yAxis",t}(X3),Loe=function(e){_e(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 dr({shape:r.coordinateSystem.getRect(),style:At({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(fi),rA={offset:0};function Ooe(e){e.registerComponentView(Loe),e.registerComponentModel(_ie),e.registerCoordinateSystem("cartesian2d",hoe),zE(e,"x",db,rA),zE(e,"y",db,rA),e.registerComponentView(K3),e.registerComponentView(Doe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var nA="\0_ec_interaction_mutex";function Noe(e,t,r){var n=Z3(e);n[t]=r}function Boe(e,t,r){var n=Z3(e),i=n[t];i===r&&(n[t]=null)}function Z3(e){return e[nA]||(e[nA]={})}Vo({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Tn);var $oe={axisPointer:1,tooltip:1,brush:1};function zoe(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!$oe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function U_(e,t,r,n,i,o){e=e||0;var a=r[1]-r[0];if(i!=null&&(i=Bu(i,[0,a])),o!=null&&(o=Math.max(o,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Bu(s,[0,a]),i=o=Bu(s,[i,o]),n=0}t[0]=Bu(t[0],r),t[1]=Bu(t[1],r);var l=Ex(t,n);t[n]+=e;var c=i||0,d=r.slice();l.sign<0?d[0]+=c:d[1]-=c,t[n]=Bu(t[n],d);var p;return p=Ex(t,n),i!=null&&(p.sign!==l.sign||p.span<i)&&(t[1-n]=t[n]+l.sign*i),p=Ex(t,n),o!=null&&p.span>o&&(t[1-n]=t[n]+p.sign*o),t}function Ex(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 Bu(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Gl=!0,ap=Math.min,bc=Math.max,Foe=Math.pow,joe=1e4,Woe=6,Hoe=6,iA="globalPan",Voe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Uoe={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},oA={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Goe=0,Yoe=function(e){_e(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new Mr,n._uid="brushController_"+Goe++,U(eae,function(i,o){this._handlers[o]=St(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||Noe(n,iA,this._uid),U(this._handlers,function(i,o){n.on(o,i)}),this._brushType=r.brushType,this._brushOption=yt(ht(oA),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;Boe(r,iA,this._uid),U(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={};U(r,function(i){n[i.panelId]=ht(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=Ge(r,function(h){return yt(ht(oA),h,!0)});var n="\0-brush-index-",i=this._covers,o=this._covers=[],a=this,s=this._creatingCover;return new y_(i,r,c,l).add(d).update(d).remove(p).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function c(h,v){return l(h.__brushOption,v)}function d(h,v){var g=r[h];if(v!=null&&i[v]===s)o[h]=i[v];else{var x=o[h]=v!=null?(i[v].__brushOption=g,i[v]):J3(a,Q3(a,g));G_(a,x)}}function p(h){i[h]!==s&&a.group.remove(i[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),xb(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(uo);function Q3(e,t){var r=sy[t.brushType].createCover(e,t);return r.__brushOption=t,tN(r,t),e.group.add(r),r}function J3(e,t){var r=Y_(t);return r.endCreating&&(r.endCreating(e,t),tN(t,t.__brushOption)),t}function eN(e,t){var r=t.__brushOption;Y_(t).updateCoverShape(e,t,r.range,r)}function tN(e,t){var r=t.z;r==null&&(r=joe),e.traverse(function(n){n.z=r,n.z2=r})}function G_(e,t){Y_(t).updateCommon(e,t),eN(e,t)}function Y_(e){return sy[e.__brushOption.brushType]}function q_(e,t,r){var n=e._panels;if(!n)return Gl;var i,o=e._transform;return U(n,function(a){a.isTargetByCursor(t,r,o)&&(i=a)}),i}function rN(e,t){var r=e._panels;if(!r)return Gl;var n=t.__brushOption.panelId;return n!=null?r[n]:Gl}function xb(e){var t=e._covers,r=t.length;return U(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function Yl(e,t){var r=Ge(e._covers,function(n){var i=n.__brushOption,o=ht(i.range);return{brushType:i.brushType,panelId:i.panelId,range:o}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function qoe(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],i=r[0]-n[0],o=r[1]-n[1],a=Foe(i*i+o*o,.5);return a>Woe}function nN(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function iN(e,t,r,n){var i=new Mr;return i.add(new dr({name:"main",style:X_(r),silent:!0,draggable:!0,cursor:"move",drift:Ut(aA,e,t,i,["n","s","w","e"]),ondragend:Ut(Yl,t,{isEnd:!0})})),U(n,function(o){i.add(new dr({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ut(aA,e,t,i,o),ondragend:Ut(Yl,t,{isEnd:!0})}))}),i}function oN(e,t,r,n){var i=n.brushStyle.lineWidth||0,o=bc(i,Hoe),a=r[0][0],s=r[1][0],l=a-i/2,c=s-i/2,d=r[0][1],p=r[1][1],h=d-o+i/2,v=p-o+i/2,g=d-a,x=p-s,y=g+i,S=x+i;aa(e,t,"main",a,s,g,x),n.transformable&&(aa(e,t,"w",l,c,o,S),aa(e,t,"e",h,c,o,S),aa(e,t,"n",l,c,y,o),aa(e,t,"s",l,v,y,o),aa(e,t,"nw",l,c,o,o),aa(e,t,"ne",h,c,o,o),aa(e,t,"sw",l,v,o,o),aa(e,t,"se",h,v,o,o))}function Sb(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(X_(r)),i.attr({silent:!n,cursor:n?"move":"default"}),U([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var a=t.childOfName(o.join("")),s=o.length===1?bb(e,o[0]):Koe(e,o);a&&a.attr({silent:!n,invisible:!n,cursor:n?Uoe[s]+"-resize":null})})}function aa(e,t,r,n,i,o,a){var s=t.childOfName(r);s&&s.setShape(Qoe(K_(e,t,[[n,i],[n+o,i+a]])))}function X_(e){return At({strokeNoScale:!0},e.brushStyle)}function aN(e,t,r,n){var i=[ap(e,r),ap(t,n)],o=[bc(e,r),bc(t,n)];return[[i[0],o[0]],[i[1],o[1]]]}function Xoe(e){return Um(e.group)}function bb(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=h_(r[t],Xoe(e));return n[i]}function Koe(e,t){var r=[bb(e,t[0]),bb(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function aA(e,t,r,n,i,o){var a=r.__brushOption,s=e.toRectRange(a.range),l=sN(t,i,o);U(n,function(c){var d=Voe[c];s[d[0]][d[1]]+=l[d[0]]}),a.range=e.fromRectRange(aN(s[0][0],s[1][0],s[0][1],s[1][1])),G_(t,r),Yl(t,{isEnd:!1})}function Zoe(e,t,r,n){var i=t.__brushOption.range,o=sN(e,r,n);U(i,function(a){a[0]+=o[0],a[1]+=o[1]}),G_(e,t),Yl(e,{isEnd:!1})}function sN(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),o=n.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function K_(e,t,r){var n=rN(e,t);return n&&n!==Gl?n.clipPath(r,e._transform):ht(r)}function Qoe(e){var t=ap(e[0][0],e[1][0]),r=ap(e[0][1],e[1][1]),n=bc(e[0][0],e[1][0]),i=bc(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function Joe(e,t,r){if(!(!e._brushType||tae(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,o=q_(e,t,r);if(!e._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===Gl||s.panelId===o.panelId)&&sy[s.brushType].contain(i[a],r[0],r[1]))return}o&&n.setCursorStyle("crosshair")}}function wb(e){var t=e.event;t.preventDefault&&t.preventDefault()}function _b(e,t,r){return e.childOfName("main").contain(t,r)}function lN(e,t,r,n){var i=e._creatingCover,o=e._creatingPanel,a=e._brushOption,s;if(e._track.push(r.slice()),qoe(e)||i){if(o&&!i){a.brushMode==="single"&&xb(e);var l=ht(a);l.brushType=sA(l.brushType,o),l.panelId=o===Gl?null:o.panelId,i=e._creatingCover=Q3(e,l),e._covers.push(i)}if(i){var c=sy[sA(e._brushType,o)],d=i.__brushOption;d.range=c.getCreatingRange(K_(e,i,e._track)),n&&(J3(e,i),c.updateCommon(e,i)),eN(e,i),s={isEnd:n}}}else n&&a.brushMode==="single"&&a.removeOnClick&&q_(e,t,r)&&xb(e)&&(s={isEnd:n,removeOnClick:!0});return s}function sA(e,t){return e==="auto"?t.defaultBrushType:e}var eae={mousedown:function(e){if(this._dragging)lA(this,e);else if(!e.target||!e.target.draggable){wb(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=q_(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(Joe(this,e,n),this._dragging){wb(e);var i=lN(this,e,n,!1);i&&Yl(this,i)}},mouseup:function(e){lA(this,e)}};function lA(e,t){if(e._dragging){wb(t);var r=t.offsetX,n=t.offsetY,i=e.group.transformCoordToLocal(r,n),o=lN(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&Yl(e,o)}}function tae(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var sy={lineX:uA(0),lineY:uA(1),rect:{createCover:function(e,t){function r(n){return n}return iN({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=nN(e);return aN(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){oN(e,t,r,n)},updateCommon:Sb,contain:_b},polygon:{createCover:function(e,t){var r=new Mr;return r.add(new Ap({name:"main",style:X_(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ep({name:"main",draggable:!0,drift:Ut(Zoe,e,t),ondragend:Ut(Yl,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:K_(e,t,r)})},updateCommon:Sb,contain:_b}};function uA(e){return{createCover:function(t,r){return iN({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=nN(t),n=ap(r[0][e],r[1][e]),i=bc(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var o,a=rN(t,r);if(a!==Gl&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,o];e&&l.reverse(),oN(t,r,l,i)},updateCommon:Sb,contain:_b}}function rae(e){return e=Z_(e),function(t){return WO(t,e)}}function nae(e,t){return e=Z_(e),function(r){var n=t??r,i=n?e.width:e.height,o=n?e.x:e.y;return[o,o+(i||0)]}}function iae(e,t,r){var n=Z_(e);return function(i,o){return n.contain(o[0],o[1])&&!zoe(i,t,r)}}function Z_(e){return $t.create(e)}var bl=Or(),cA=ht,Ax=St,oae=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var o=r.get("value"),a=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var c={};this.makeElOption(c,o,t,r,n);var d=c.graphicKey;d!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=d;var p=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Mr,this.createPointerEl(s,c,t,r),this.createLabelEl(s,c,t,r),n.getZr().add(s);else{var h=Ut(fA,r,p);this.updatePointerEl(s,c,h),this.updateLabelEl(s,c,h,r)}pA(s,r,!0),this._renderHandle(o)}},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,o=i.type==="category",a=r.get("snap");if(!a&&!o)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(a){var l=V_(t).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,o){},e.prototype.createPointerEl=function(t,r,n,i){var o=r.pointer;if(o){var a=bl(t).pointerEl=new hJ[o.type](cA(r.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var o=bl(t).labelEl=new Fr(cA(r.label));t.add(o),dA(o,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=bl(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 o=bl(t).labelEl;o&&(o.setStyle(r.label.style),n(o,{x:r.label.x,y:r.label.y}),dA(o,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=r.getModel("handle"),a=r.get("status");if(!o.get("show")||!a||a==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Gm(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){Hg(c.event)},onmousedown:Ax(this._onHandleDragMove,this,0,0),drift:Ax(this._onHandleDragMove,this),ondragend:Ax(this._onHandleDragEnd,this)}),n.add(i)),pA(i,r,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");De(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,A_(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){fA(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Ix(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(Ix(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Ix(i)),bl(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),Wg(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 fA(e,t,r,n){uN(bl(r).lastProp,n)||(bl(r).lastProp=n,t?bs(r,n,e):(r.stopAnimation(),r.attr(n)))}function uN(e,t){if(Qe(e)&&Qe(t)){var r=!0;return U(t,function(n,i){r=r&&uN(e[i],n)}),!!r}else return e===t}function dA(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Ix(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function pA(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(n!=null&&(o.z=n),i!=null&&(o.zlevel=i),o.silent=r)})}function aae(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 sae(e,t,r,n,i){var o=r.get("value"),a=cN(o,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=ry(s.get("padding")||0),c=s.getFont(),d=Om(a,c),p=i.position,h=d.width+l[1]+l[3],v=d.height+l[0]+l[2],g=i.align;g==="right"&&(p[0]-=h),g==="center"&&(p[0]-=h/2);var x=i.verticalAlign;x==="bottom"&&(p[1]-=v),x==="middle"&&(p[1]-=v/2),lae(p,h,v,n);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),e.label={x:p[0],y:p[1],style:xa(s,{text:a,font:c,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function lae(e,t,r,n){var i=n.getWidth(),o=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,o)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function cN(e,t,r,n,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:W_(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};U(n,function(l){var c=r.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,p=c&&c.getDataParams(d);p&&s.seriesData.push(p)}),We(a)?o=a.replace("{value}",o):ot(a)&&(o=a(s))}return o}function fN(e,t,r){var n=Qu();return Zw(n,n,r.rotation),TS(n,n,r.position),Kd([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function uae(e,t,r,n,i,o){var a=hs.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),sae(t,n,i,o,{position:fN(n.axis,e,r),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function cae(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function fae(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var dae=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,o,a){var s=i.axis,l=s.grid,c=o.get("type"),d=hA(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(n,!0));if(c&&c!=="none"){var h=aae(o),v=pae[c](s,p,d);v.style=h,r.graphicKey=v.type,r.pointer=v}var g=gb(l.model,i);uae(n,r,g,i,o,a)},t.prototype.getHandleTransform=function(r,n,i){var o=gb(n.axis.grid.model,n,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=fN(n.axis,r,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),c=hA(s,a).getOtherAxis(a).getGlobalExtent(),d=a.dim==="x"?0:1,p=[r.x,r.y];p[d]+=n[d],p[d]=Math.min(l[1],p[d]),p[d]=Math.max(l[0],p[d]);var h=(c[1]+c[0])/2,v=[h,h];v[d]=p[d];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:r.rotation,cursorPoint:v,tooltipOption:g[d]}},t}(oae);function hA(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var pae={line:function(e,t,r){var n=cae([t,r[0]],[t,r[1]],vA(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:fae([t-n/2,r[0]],[n,i],vA(e))}}};function vA(e){return e.dim==="x"?0:1}var hae=function(e){_e(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}(Bt),fa=Or(),vae=U;function dN(e,t,r){if(!lt.node){var n=t.getZr();fa(n).records||(fa(n).records={}),gae(n,t);var i=fa(n).records[e]||(fa(n).records[e]={});i.handler=r}}function gae(e,t){if(fa(e).initialized)return;fa(e).initialized=!0,r("click",Ut(gA,"click")),r("mousemove",Ut(gA,"mousemove")),r("globalout",yae);function r(n,i){e.on(n,function(o){var a=xae(t);vae(fa(e).records,function(s){s&&i(s,o,a.dispatchAction)}),mae(a.pendings,t)})}}function mae(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 yae(e,t,r){e.handler("leave",null,r)}function gA(e,t,r,n){t.handler(e,r,n)}function xae(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 Cb(e,t){if(!lt.node){var r=t.getZr(),n=(fa(r).records||{})[e];n&&(fa(r).records[e]=null)}}var Sae=function(e){_e(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 o=n.getComponent("tooltip"),a=r.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";dN("axisPointer",i,function(s,l,c){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&c({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){Cb("axisPointer",n)},t.prototype.dispose=function(r,n){Cb("axisPointer",n)},t.type="axisPointer",t}(fi);function pN(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var o=i.getData(),a=Vl(o,e);if(a==null||a<0||De(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),d=l.getOtherAxis(c),p=d.dim,h=c.dim,v=p==="x"||p==="radius"?1:0,g=o.mapDimension(h),x=[];x[v]=o.get(g,a),x[1-v]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(x)||[]}else r=l.dataToPoint(o.getValues(Ge(l.dimensions,function(S){return o.mapDimension(S)}),a))||[];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 mA=Or();function bae(e,t,r){var n=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||St(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){ug(i)&&(i=pN({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=ug(i),c=o.axesInfo,d=s.axesInfo,p=n==="leave"||ug(i),h={},v={},g={list:[],map:{}},x={showPointer:Ut(_ae,v),showTooltip:Ut(Cae,g)};U(s.coordSysMap,function(S,w){var b=l||S.containPoint(i);U(s.coordSysAxesInfo[w],function(C,T){var M=C.axis,E=Rae(c,C);if(!p&&b&&(!c||E)){var I=E&&E.value;I==null&&!l&&(I=M.pointToData(i)),I!=null&&yA(C,I,x,!1,h)}})});var y={};return U(d,function(S,w){var b=S.linkGroup;b&&!v[w]&&U(b.axesInfo,function(C,T){var M=v[T];if(C!==S&&M){var E=M.value;b.mapper&&(E=S.axis.scale.parse(b.mapper(E,xA(C),xA(S)))),y[S.key]=E}})}),U(y,function(S,w){yA(d[w],S,x,!0,h)}),Tae(v,d,h),Mae(g,i,e,a),kae(d,a,r),h}}function yA(e,t,r,n,i){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var a=wae(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Te(i,s[0]),!n&&e.snap&&o.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,a,l)}}function wae(e,t){var r=t.axis,n=r.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return U(t.seriesModels,function(l,c){var d=l.getData().mapDimensionsAll(n),p,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(d,e,r);h=v.dataIndices,p=v.nestestValue}else{if(h=l.getData().indicesOfNearest(d[0],e,r.type==="category"?.5:null),!h.length)return;p=l.getData().get(d[0],h[0])}if(!(p==null||!isFinite(p))){var g=e-p,x=Math.abs(g);x<=a&&((x<a||g>=0&&s<0)&&(a=x,s=g,i=p,o.length=0),U(h,function(y){o.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:o,snapToValue:i}}function _ae(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function Cae(e,t,r,n){var i=r.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,c=op(l),d=e.map[c];d||(d=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(d)),d.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Tae(e,t,r){var n=r.axesInfo=[];U(t,function(i,o){var a=i.axisPointerModel.option,s=e[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function Mae(e,t,r,n){if(ug(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 kae(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",o=mA(n)[i]||{},a=mA(n)[i]={};U(e,function(c,d){var p=c.axisPointerModel.option;p.status==="show"&&c.triggerEmphasis&&U(p.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;a[v]=h})});var s=[],l=[];U(o,function(c,d){!a[d]&&l.push(c)}),U(a,function(c,d){!o[d]&&s.push(c)}),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 Rae(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 xA(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 ug(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function hN(e){q3.registerAxisPointerClass("CartesianAxisPointer",dae),e.registerComponentModel(hae),e.registerComponentView(Sae),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!De(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=boe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bae)}function Pae(e){Sa(Ooe),Sa(hN)}var SA=["x","y","radius","angle","single"],Eae=["cartesian2d","polar","singleAxis"];function Aae(e){var t=e.get("coordinateSystem");return kt(Eae,t)>=0}function ls(e){return e+"Axis"}function Iae(e,t){var r=ft(),n=[],i=ft();e.eachComponent({mainType:"dataZoom",query:t},function(d){i.get(d.uid)||s(d)});var o;do o=!1,e.eachComponent("dataZoom",a);while(o);function a(d){!i.get(d.uid)&&l(d)&&(s(d),o=!0)}function s(d){i.set(d.uid,!0),n.push(d),c(d)}function l(d){var p=!1;return d.eachTargetAxis(function(h,v){var g=r.get(h);g&&g[v]&&(p=!0)}),p}function c(d){d.eachTargetAxis(function(p,h){(r.get(p)||r.set(p,[]))[h]=!0})}return n}function Dae(e){var t=e.ecModel,r={infoList:[],infoMap:ft()};return e.eachTargetAxis(function(n,i){var o=t.getComponent(ls(n),i);if(o){var a=o.getCoordSysModel();if(a){var s=a.uid,l=r.infoMap.get(s);l||(l={model:a,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(o)}}}),r}var Dx=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}(),Tb=function(e){_e(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 o=bA(r);this.settledOption=o,this.mergeDefaultAndTheme(r,i),this._doInit(o)},t.prototype.mergeOption=function(r){var n=bA(r);yt(this.option,r,!0),yt(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;U([["start","startValue"],["end","endValue"]],function(o,a){this._rangePropMode[a]==="value"&&(n[o[0]]=i[o[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ft(),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(o){o.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return U(SA,function(i){var o=this.getReferringComponents(ls(i),eQ);if(o.specified){n=!0;var a=new Dx;U(o.models,function(s){a.add(s.componentIndex)}),r.set(i,a)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,o=!0;if(o){var a=n==="vertical"?"y":"x",s=i.findComponents({mainType:a+"Axis"});l(s,a)}if(o){var s=i.findComponents({mainType:"singleAxis",filter:function(d){return d.get("orient",!0)===n}});l(s,"single")}function l(c,d){var p=c[0];if(p){var h=new Dx;if(h.add(p.componentIndex),r.set(d,h),o=!1,d==="x"||d==="y"){var v=p.getReferringComponents("grid",_n).models[0];v&&U(c,function(g){p.componentIndex!==g.componentIndex&&v===g.getReferringComponents("grid",_n).models[0]&&h.add(g.componentIndex)})}}}o&&U(SA,function(c){if(o){var d=i.findComponents({mainType:ls(c),filter:function(h){return h.get("type",!0)==="category"}});if(d[0]){var p=new Dx;p.add(d[0].componentIndex),r.set(c,p),o=!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");U([["start","startValue"],["end","endValue"]],function(o,a){var s=r[o[0]]!=null,l=r[o[1]]!=null;s&&!l?n[a]="percent":!s&&l?n[a]="value":i?n[a]=i[a]:s&&(n[a]="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(ls(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,o){U(i.indexList,function(a){r.call(n,o,a)})})},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(ls(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;U([["start","startValue"],["end","endValue"]],function(o){(r[o[0]]!=null||r[o[1]]!=null)&&(n[o[0]]=i[o[0]]=r[o[0]],n[o[1]]=i[o[1]]=r[o[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;U(["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(),o=0;o<i.length;o++)for(var a=i[o],s=this._targetAxisInfoMap.get(a),l=0;l<s.indexList.length;l++){var c=this.getAxisProxy(a,s.indexList[l]);if(c.hostedBy(this))return c;n||(n=c)}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}(Bt);function bA(e){var t={};return U(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var Lae=function(e){_e(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}(Tb),vN=function(e){_e(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,o){this.dataZoomModel=r,this.ecModel=n,this.api=i},t.type="dataZoom",t}(fi),Oae=function(e){_e(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}(vN),ju=U,wA=nd,Nae=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(Aae(r)){var n=ls(this._dimName),i=r.getReferringComponents(n,_n).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 ht(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],c;ju(["start","end"],function(h,v){var g=t[h],x=t[h+"Value"];o[v]==="percent"?(g==null&&(g=a[v]),x=i.parse(dn(g,a,r))):(c=!0,x=x==null?r[v]:i.parse(x),g=dn(x,r,a)),l[v]=x==null||isNaN(x)?r[v]:x,s[v]=g==null||isNaN(g)?a[v]:g}),wA(l),wA(s);var d=this._minMaxSpan;c?p(l,s,r,a,!1):p(s,l,a,r,!0);function p(h,v,g,x,y){var S=y?"Span":"ValueSpan";U_(0,h,g,"all",d["min"+S],d["max"+S]);for(var w=0;w<2;w++)v[w]=dn(h[w],g,x,!0),y&&(v[w]=i.parse(v[w]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=Bae(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(),o=t.get("filterMode"),a=this._valueWindow;if(o==="none")return;ju(i,function(l){var c=l.getData(),d=c.mapDimensionsAll(n);if(d.length){if(o==="weakFilter"){var p=c.getStore(),h=Ge(d,function(v){return c.getDimensionIndex(v)},c);c.filterSelf(function(v){for(var g,x,y,S=0;S<d.length;S++){var w=p.get(h[S],v),b=!isNaN(w),C=w<a[0],T=w>a[1];if(b&&!C&&!T)return!0;b&&(y=!0),C&&(g=!0),T&&(x=!0)}return y&&g&&x})}else ju(d,function(v){if(o==="empty")l.setData(c=c.map(v,function(x){return s(x)?x:NaN}));else{var g={};g[v]=a,c.selectRange(g)}});ju(d,function(v){c.setApproximateExtent(a,v)})}});function s(l){return l>=a[0]&&l<=a[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;ju(["min","max"],function(i){var o=r.get(i+"Span"),a=r.get(i+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?o=dn(n[0]+a,n,[0,100],!0):o!=null&&(a=dn(o,[0,100],n,!0)-n[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=a},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=dO(n,[0,500]);i=Math.min(i,20);var o=t.axis.scale.rawExtentInfo;r[0]!==0&&o.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&o.setDeterminedMinMax("max",+n[1].toFixed(i)),o.freeze()}},e}();function Bae(e,t,r){var n=[1/0,-1/0];ju(r,function(a){Jie(n,a.getData(),t)});var i=e.getAxisModel(),o=N3(i.axis.scale,i,n).calculate();return[o.min,o.max]}var $ae={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(a,s){var l=e.getComponent(ls(a),s);i(a,s,l,o)})})}t(function(i,o,a,s){a.__dzAxisProxy=null});var r=[];t(function(i,o,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new Nae(i,o,s,e),r.push(a.__dzAxisProxy))});var n=ft();return U(r,function(i){U(i.getTargetSeriesModels(),function(o){n.set(o.uid,o)})}),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(),o=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function zae(e){e.registerAction("dataZoom",function(t,r){var n=Iae(r,t);U(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var _A=!1;function gN(e){_A||(_A=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,$ae),zae(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Fae(e){e.registerComponentModel(Lae),e.registerComponentView(Oae),gN(e)}var no=function(){function e(){}return e}(),mN={};function Hf(e,t){mN[e]=t}function yN(e){return mN[e]}var jae=function(e){_e(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;U(this.option.feature,function(n,i){var o=yN(i);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(r)),yt(n,o.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}(Bt);function Wae(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),o={width:r.getWidth(),height:r.getHeight()},a=ws(n,o,i);oc(t.get("orient"),e,t.get("itemGap"),a.width,a.height),Eee(e,n,o,i)}function xN(e,t){var r=ry(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new dr({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 Hae=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,o){var a=this.group;if(a.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",c=r.get("feature")||{},d=this._features||(this._features={}),p=[];U(c,function(g,x){p.push(x)}),new y_(this._featureNames||[],p).add(h).update(h).remove(Ut(h,null)).execute(),this._featureNames=p;function h(g,x){var y=p[g],S=p[x],w=c[y],b=new vr(w,r,r.ecModel),C;if(o&&o.newTitle!=null&&o.featureName===y&&(w.title=o.newTitle),y&&!S){if(Vae(y))C={onclick:b.option.onclick,featureName:y};else{var T=yN(y);if(!T)return;C=new T}d[y]=C}else if(C=d[S],!C)return;C.uid=Dp("toolbox-feature"),C.model=b,C.ecModel=n,C.api=i;var M=C instanceof no;if(!y&&S){M&&C.dispose&&C.dispose(n,i);return}if(!b.get("show")||M&&C.unusable){M&&C.remove&&C.remove(n,i);return}v(b,C,y),b.setIconStatus=function(E,I){var D=this.option,k=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[E]=I,k[E]&&(I==="emphasis"?mc:yc)(k[E])},C instanceof no&&C.render&&C.render(b,n,i,o)}function v(g,x,y){var S=g.getModel("iconStyle"),w=g.getModel(["emphasis","iconStyle"]),b=x instanceof no&&x.getIcons?x.getIcons():g.get("icon"),C=g.get("title")||{},T,M;We(b)?(T={},T[y]=b):T=b,We(C)?(M={},M[y]=C):M=C;var E=g.iconPaths={};U(T,function(I,D){var k=Gm(I,{},{x:-s/2,y:-s/2,width:s,height:s});k.setStyle(S.getItemStyle());var O=k.ensureState("emphasis");O.style=w.getItemStyle();var N=new Fr({style:{text:M[D],align:w.get("textAlign"),borderRadius:w.get("textBorderRadius"),padding:w.get("textPadding"),fill:null,font:VO({fontStyle:w.get("textFontStyle"),fontFamily:w.get("textFontFamily"),fontSize:w.get("textFontSize"),fontWeight:w.get("textFontWeight")},n)},ignore:!0});k.setTextContent(N),Ym({el:k,componentModel:r,itemName:D,formatterParamsExtra:{title:M[D]}}),k.__title=M[D],k.on("mouseover",function(){var $=w.getItemStyle(),z=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";N.setStyle({fill:w.get("textFill")||$.fill||$.stroke||"#000",backgroundColor:w.get("textBackgroundColor")}),k.setTextConfig({position:w.get("textPosition")||z}),N.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){g.get(["iconStatus",D])!=="emphasis"&&i.leaveEmphasis(this),N.hide()}),(g.get(["iconStatus",D])==="emphasis"?mc:yc)(k),a.add(k),k.on("click",St(x.onclick,x,n,i,D)),E[D]=k})}Wae(a,r,i),a.add(xN(a.getBoundingRect(),r)),l||a.eachChild(function(g){var x=g.__title,y=g.ensureState("emphasis"),S=y.textConfig||(y.textConfig={}),w=g.getTextContent(),b=w&&w.ensureState("emphasis");if(b&&!ot(b)&&x){var C=b.style||(b.style={}),T=Om(x,Fr.makeFont(C)),M=g.x+a.x,E=g.y+a.y+s,I=!1;E+T.height>i.getHeight()&&(S.position="top",I=!0);var D=I?-5-T.height:s+10;M+T.width/2>i.getWidth()?(S.position=["100%",D],C.align="right"):M-T.width/2<0&&(S.position=[0,D],C.align="left")}})},t.prototype.updateView=function(r,n,i,o){U(this._features,function(a){a instanceof no&&a.updateView&&a.updateView(a.model,n,i,o)})},t.prototype.remove=function(r,n){U(this._features,function(i){i instanceof no&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){U(this._features,function(i){i instanceof no&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(fi);function Vae(e){return e.indexOf("my")===0}var Uae=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,o=i.get("name")||r.get("title.0.text")||"echarts",a=n.getZr().painter.getType()==="svg",s=a?"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")}),c=lt.browser;if(typeof MouseEvent=="function"&&(c.newEdge||!c.ie&&!c.edge)){var d=document.createElement("a");d.download=o+"."+s,d.target="_blank",d.href=l;var p=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});d.dispatchEvent(p)}else if(window.navigator.msSaveOrOpenBlob||a){var h=l.split(","),v=h[0].indexOf("base64")>-1,g=a?decodeURIComponent(h[1]):h[1];v&&(g=window.atob(g));var x=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var y=g.length,S=new Uint8Array(y);y--;)S[y]=g.charCodeAt(y);var w=new Blob([S]);window.navigator.msSaveOrOpenBlob(w,x)}else{var b=document.createElement("iframe");document.body.appendChild(b);var C=b.contentWindow,T=C.document;T.open("image/svg+xml","replace"),T.write(g),T.close(),C.focus(),T.execCommand("SaveAs",!0,x),document.body.removeChild(b)}}else{var M=i.get("lang"),E='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(M&&M[0]||"")+'" /></body>',I=window.open();I.document.write(E),I.document.title=o}},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}(no),CA="__ec_magicType_stack__",Gae=[["line","bar"],["stack"]],Yae=function(e){_e(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 U(r.get("type"),function(o){n[o]&&(i[o]=n[o])}),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 o=this.model,a=o.get(["seriesIndex",i]);if(TA[i]){var s={series:[]},l=function(p){var h=p.subType,v=p.id,g=TA[i](h,v,p,o);g&&(At(g,p.option),s.series.push(g));var x=p.coordinateSystem;if(x&&x.type==="cartesian2d"&&(i==="line"||i==="bar")){var y=x.getAxesByScale("ordinal")[0];if(y){var S=y.dim,w=S+"Axis",b=p.getReferringComponents(w,_n).models[0],C=b.componentIndex;s[w]=s[w]||[];for(var T=0;T<=C;T++)s[w][C]=s[w][C]||{};s[w][C].boundaryGap=i==="bar"}}};U(Gae,function(p){kt(p,i)>=0&&U(p,function(h){o.setIconStatus(h,"normal")})}),o.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var c,d=i;i==="stack"&&(c=yt({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",i])!=="emphasis"&&(d="tiled")),n.dispatchAction({type:"changeMagicType",currentType:d,newOption:s,newTitle:c,featureName:"magicType"})}},t}(no),TA={line:function(e,t,r,n){if(e==="bar")return yt({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 yt({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")===CA;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),yt({id:t,stack:i?"":CA},n.get(["option","stack"])||{},!0)}};Vo({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var ly=new Array(60).join("-"),wc=" ";function qae(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var o=i.coordinateSystem;if(o&&(o.type==="cartesian2d"||o.type==="polar")){var a=o.getBaseAxis();if(a.type==="category"){var s=a.dim+"_"+a.index;t[s]||(t[s]={categoryAxis:a,valueAxis:o.getOtherAxis(a),series:[]},n.push({axisDim:a.dim,axisIndex:a.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function Xae(e){var t=[];return U(e,function(r,n){var i=r.categoryAxis,o=r.valueAxis,a=o.dim,s=[" "].concat(Ge(r.series,function(v){return v.name})),l=[i.model.getCategories()];U(r.series,function(v){var g=v.getRawData();l.push(v.getRawData().mapArray(g.mapDimension(a),function(x){return x}))});for(var c=[s.join(wc)],d=0;d<l[0].length;d++){for(var p=[],h=0;h<l.length;h++)p.push(l[h][d]);c.push(p.join(wc))}t.push(c.join(`
239
+ `))}),t.join(`
240
+
241
+ `+ly+`
242
+
243
+ `)}function Kae(e){return Ge(e,function(t){var r=t.getRawData(),n=[t.name],i=[];return r.each(r.dimensions,function(){for(var o=arguments.length,a=arguments[o-1],s=r.getName(a),l=0;l<o-1;l++)i[l]=arguments[l];n.push((s?s+wc:"")+i.join(wc))}),n.join(`
244
+ `)}).join(`
245
+
246
+ `+ly+`
247
+
248
+ `)}function Zae(e){var t=qae(e);return{value:hn([Xae(t.seriesGroupByCategoryAxis),Kae(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
249
+
250
+ `+ly+`
251
+
252
+ `),meta:t.meta}}function Zg(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Qae(e){var t=e.slice(0,e.indexOf(`
253
+ `));if(t.indexOf(wc)>=0)return!0}var Mb=new RegExp("["+wc+"]+","g");function Jae(e){for(var t=e.split(/\n+/g),r=Zg(t.shift()).split(Mb),n=[],i=Ge(r,function(l){return{name:l,data:[]}}),o=0;o<t.length;o++){var a=Zg(t[o]).split(Mb);n.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:n}}function ese(e){for(var t=e.split(/\n+/g),r=Zg(t.shift()),n=[],i=0;i<t.length;i++){var o=Zg(t[i]);if(o){var a=o.split(Mb),s="",l=void 0,c=!1;isNaN(a[0])?(c=!0,s=a[0],a=a.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var d=0;d<a.length;d++)l.push(+a[d]);l.length===1&&(c?n[i].value=l[0]:n[i]=l[0])}}return{name:r,data:n}}function tse(e,t){var r=e.split(new RegExp(`
254
+ *`+ly+`
255
+ *`,"g")),n={series:[]};return U(r,function(i,o){if(Qae(i)){var a=Jae(i),s=t[o],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:a.categories},n.series=n.series.concat(a.series))}else{var a=ese(i);n.series.push(a)}}),n}var rse=function(e){_e(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(),o=this.model;this._dom&&i.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=o.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=o.get("lang")||[];s.innerHTML=l[0]||o.get("title"),s.style.cssText="margin:10px 20px",s.style.color=o.get("textColor");var c=document.createElement("div"),d=document.createElement("textarea");c.style.cssText="overflow:auto";var p=o.get("optionToContent"),h=o.get("contentToOption"),v=Zae(r);if(ot(p)){var g=p(n.getOption());We(g)?c.innerHTML=g:vc(g)&&c.appendChild(g)}else{d.readOnly=o.get("readOnly");var x=d.style;x.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",x.color=o.get("textColor"),x.borderColor=o.get("textareaBorderColor"),x.backgroundColor=o.get("textareaColor"),d.value=v.value,c.appendChild(d)}var y=v.meta,S=document.createElement("div");S.style.cssText="position:absolute;bottom:5px;left:0;right:0";var w="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",b=document.createElement("div"),C=document.createElement("div");w+=";background-color:"+o.get("buttonColor"),w+=";color:"+o.get("buttonTextColor");var T=this;function M(){i.removeChild(a),T._dom=null}eb(b,"click",M),eb(C,"click",function(){if(h==null&&p!=null||h!=null&&p==null){M();return}var E;try{ot(h)?E=h(c,n.getOption()):E=tse(d.value,y)}catch(I){throw M(),new Error("Data view format error "+I)}E&&n.dispatchAction({type:"changeDataView",newOption:E}),M()}),b.innerHTML=l[1],C.innerHTML=l[2],C.style.cssText=b.style.cssText=w,!o.get("readOnly")&&S.appendChild(C),S.appendChild(b),a.appendChild(s),a.appendChild(c),a.appendChild(S),c.style.height=i.clientHeight-80+"px",i.appendChild(a),this._dom=a},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}(no);function nse(e,t){return Ge(e,function(r,n){var i=t&&t[n];if(Qe(i)&&!De(i)){var o=Qe(r)&&!De(r);o||(r={value:r});var a=i.name!=null&&r.name==null;return r=At(r,i),a&&delete r.name,r}else return r})}Vo({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];U(e.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)r.push(Te({type:"scatter"},n));else{var o=i.get("data");r.push({name:n.name,data:nse(n.data,o)})}}),t.mergeOption(At({series:r},e.newOption))});var SN=U,bN=Or();function ise(e,t){var r=Q_(e);SN(t,function(n,i){for(var o=r.length-1;o>=0;o--){var a=r[o];if(a[i])break}if(o<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 ose(e){var t=Q_(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return SN(r,function(i,o){for(var a=t.length-1;a>=0;a--)if(i=t[a][o],i){n[o]=i;break}}),n}function ase(e){bN(e).snapshots=null}function sse(e){return Q_(e).length}function Q_(e){var t=bN(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var lse=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){ase(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}(no);Vo({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var use=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],wN=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var o=MA(r,t);U(cse,function(a,s){(!n||!n.include||kt(n.include,s)>=0)&&a(o,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,o){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var a=Lx[n.brushType](0,o,i);n.__rangeOffset={offset:EA[n.brushType](a.values,n.range,[1,1]),xyMinMax:a.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){U(t,function(i){var o=this.findTargetInfo(i,r);o&&o!==!0&&U(o.coordSyses,function(a){var s=Lx[i.brushType](1,a,i.range,!0);n(i,s.values,a,r)})},this)},e.prototype.setInputRanges=function(t,r){U(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var o=Lx[n.brushType](0,i.coordSys,n.coordRange),a=n.__rangeOffset;n.range=a?EA[n.brushType](o.values,a.offset,fse(o.xyMinMax,a.xyMinMax)):o.values}},this)},e.prototype.makePanelOpts=function(t,r){return Ge(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:rae(i),isTargetByCursor:iae(i,t,n.coordSysModel),getLinearBrushOtherExtent:nae(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&kt(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=MA(r,t),o=0;o<n.length;o++){var a=n[o],s=t.panelId;if(s){if(a.panelId===s)return a}else for(var l=0;l<kA.length;l++)if(kA[l](i,a))return a}return!0},e}();function kb(e){return e[0]>e[1]&&e.reverse(),e}function MA(e,t){return Sd(e,t,{includeMainTypes:use})}var cse={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,o=ft(),a={},s={};!r&&!n&&!i||(U(r,function(l){var c=l.axis.grid.model;o.set(c.id,c),a[c.id]=!0}),U(n,function(l){var c=l.axis.grid.model;o.set(c.id,c),s[c.id]=!0}),U(i,function(l){o.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),o.each(function(l){var c=l.coordinateSystem,d=[];U(c.getCartesians(),function(p,h){(kt(r,p.getAxis("x").model)>=0||kt(n,p.getAxis("y").model)>=0)&&d.push(p)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:d[0],coordSyses:d,getPanelRect:RA.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){U(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:RA.geo})})}},kA=[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}],RA={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Um(e)),t}},Lx={lineX:Ut(PA,0),lineY:Ut(PA,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),o=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),a=[kb([i[0],o[0]]),kb([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],o=Ge(r,function(a){var s=e?t.pointToData(a,n):t.dataToPoint(a,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:o,xyMinMax:i}}};function PA(e,t,r,n){var i=r.getAxis(["x","y"][e]),o=kb(Ge([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var EA={lineX:Ut(AA,0),lineY:Ut(AA,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 Ge(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function AA(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function fse(e,t){var r=IA(e),n=IA(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 IA(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var Rb=U,dse=KZ("toolbox-dataZoom_"),pse=function(e){_e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,o){this._brushController||(this._brushController=new Yoe(i.getZr()),this._brushController.on("brush",St(this._onBrush,this)).mount()),gse(r,n,this,o,i),vse(r,n)},t.prototype.onclick=function(r,n,i){hse[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={},o=this.ecModel;this._brushController.updateCovers([]);var a=new wN(J_(this.model),o,{include:["grid"]});a.matchOutputRanges(n,o,function(c,d,p){if(p.type==="cartesian2d"){var h=c.brushType;h==="rect"?(s("x",p,d[0]),s("y",p,d[1])):s({lineX:"x",lineY:"y"}[h],p,d)}}),ise(o,i),this._dispatchZoomAction(i);function s(c,d,p){var h=d.getAxis(c),v=h.model,g=l(c,v,o),x=g.findRepresentativeAxisProxy(v).getMinMaxSpan();(x.minValueSpan!=null||x.maxValueSpan!=null)&&(p=U_(0,p.slice(),h.scale.getExtent(),0,x.minValueSpan,x.maxValueSpan)),g&&(i[g.id]={dataZoomId:g.id,startValue:p[0],endValue:p[1]})}function l(c,d,p){var h;return p.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var g=v.getAxisModel(c,d.componentIndex);g&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(r){var n=[];Rb(r,function(i,o){n.push(ht(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}(no),hse={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(ose(this.ecModel))}};function J_(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 vse(e,t){e.setIconStatus("back",sse(t)>1?"emphasis":"normal")}function gse(e,t,r,n,i){var o=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(o=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new wN(J_(e),t,{include:["grid"]}),s=a.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(o&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Wre("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=[],o=J_(n),a=Sd(e,o);Rb(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Rb(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,c,d){var p=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:dse+c+p};h[d]=p,i.push(h)}return i});function mse(e){e.registerComponentModel(jae),e.registerComponentView(Hae),Hf("saveAsImage",Uae),Hf("magicType",Yae),Hf("dataView",rse),Hf("dataZoom",pse),Hf("restore",lse),Sa(Fae)}var yse=function(e){_e(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}(Bt);function _N(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function CN(e){if(lt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var TN=CN(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),xse=CN(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function MN(e,t){if(!e)return t;t=M5(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function Sse(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var bse=MN(xse,"transition"),eC=MN(TN,"transform"),wse="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(lt.transform3dSupported?"will-change:transform;":"");function _se(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function Cse(e,t,r){if(!We(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Ul(t);var o=_se(r),a=Math.max(Math.round(i)*1.5,6),s="",l=eC+":",c;kt(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(c=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c=o==="top"?225:45)+"deg)");var d=c*Math.PI/180,p=a+i,h=p*Math.abs(Math.cos(d))+p*Math.abs(Math.sin(d)),v=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-p)/2)*100)/100;s+=";"+o+":-"+v+"px";var g=t+" solid "+i+"px;",x=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+n+";"];return'<div style="'+x.join("")+'"></div>'}function Tse(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+=lt.transformSupported?","+eC+n:",left"+n+",top"+n),bse+":"+i}function DA(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!lt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var o=lt.transform3dSupported,a="translate"+(o?"3d":"")+"("+n+","+i+(o?",0":"")+")";return r?"top:0;left:0;"+eC+":"+a+";":[["top",0],["left",0],[TN,a]]}function Mse(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"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),U(["decoration","align"],function(l){var c=e.get(l);c&&t.push("text-"+l+":"+c)}),t.join(";")}function kse(e,t,r){var n=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),d=e.getModel("textStyle"),p=L5(e,"html"),h=l+"px "+c+"px "+a+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(Tse(i,r)),o&&n.push("background-color:"+o),U(["width","color","radius"],function(v){var g="border-"+v,x=M5(g),y=e.get(x);y!=null&&n.push(g+":"+y+(v==="color"?"":"px"))}),n.push(Mse(d)),p!=null&&n.push("padding:"+ry(p).join("px ")+"px"),n.join(";")+";"}function LA(e,t,r,n,i){var o=t&&t.painter;if(r){var a=o&&o.getViewportRoot();a&&hee(e,a,r,n,i)}else{e[0]=n,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Rse=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,lt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=r.appendTo,a=o&&(We(o)?document.querySelector(o):vc(o)?o:ot(o)&&o(t.getDom()));LA(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(n),this._api=t,this._container=a;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 c=i.handler,d=i.painter.getViewportRoot();Ti(d,l,!0),c.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=Sse(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,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,o=this._styleCoord;n.innerHTML?i.cssText=wse+kse(t,!this._firstShow,this._longHide)+DA(o[0],o[1],!0)+("border-color:"+Ul(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,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(We(o)&&n.get("trigger")==="item"&&!_N(n)&&(s=Cse(n,i,o)),We(t))a.innerHTML=t+s;else if(t){a.innerHTML="",De(t)||(t=[t]);for(var l=0;l<t.length;l++)vc(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var c=document.createElement("div");c.innerHTML=s,a.appendChild(c)}}},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(LA(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,o=DA(n[0],n[1]);U(o,function(a){i[a[0]]=a[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",lt.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(St(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}(),Pse=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),NA(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,o){var a=this;Qe(t)&&Bn(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Fr({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:L5(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),U(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){a.el.style[c]=n.get(c)}),U(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){a.el.style[c]=s.get(c)||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=OA(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;NA(i,this._zr,t,r),t=i[0],r=i[1];var o=n.style,a=rs(o.borderWidth||0),s=OA(o);n.x=t+a+s.left,n.y=r+a+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(St(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function rs(e){return Math.max(0,e)}function OA(e){var t=rs(e.shadowBlur||0),r=rs(e.shadowOffsetX||0),n=rs(e.shadowOffsetY||0);return{left:rs(t-r),right:rs(t+r),top:rs(t-n),bottom:rs(t+n)}}function NA(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Ese=new dr({shape:{x:-1,y:-1,width:2,height:2}}),Ase=function(e){_e(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(!(lt.node||!n.getDom())){var i=r.getComponent("tooltip"),o=this._renderMode=rQ(i.get("renderMode"));this._tooltipContent=o==="richText"?new Pse(n):new Rse(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(lt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var o=this._tooltipContent;o.update(r),o.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?A_(this,"_updatePosition",50,"fixRate"):Wg(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");dN("itemTooltip",this._api,St(function(i,o,a){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,o=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(r,n,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,o){if(!(o.from===this.uid||lt.node||!i.getDom())){var a=BA(o,i);this._ticket="";var s=o.dataByCoordSys,l=Ose(o,n,i);if(l){var c=l.el.getBoundingRect().clone();c.applyTransform(l.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var d=Ese;d.x=o.x,d.y=o.y,d.update(),Vt(d).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:d},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,o))return;var p=pN(o,n),h=p.point[0],v=p.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:p.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(r,n,i,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(BA(o,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,o){var a=o.seriesIndex,s=o.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var c=n.getSeriesByIndex(a);if(c){var d=c.getData(),p=Vf([d.getItemModel(s),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,o=this._tooltipModel;if(o){this._lastX=r.offsetX,this._lastY=r.offsetY;var a=r.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,r);else if(i){var s=Vt(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,c;sd(i,function(d){if(Vt(d).dataIndex!=null)return l=d,!0;if(Vt(d).tooltipConfig!=null)return c=d,!0},!0),l?this._showSeriesItemTooltip(r,l,n):c?this._showComponentItemTooltip(r,c,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=St(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,o=this._tooltipModel,a=[n.offsetX,n.offsetY],s=Vf([n.tooltipOption],o),l=this._renderMode,c=[],d=ep("section",{blocks:[],noHeader:!0}),p=[],h=new rx;U(r,function(w){U(w.dataByAxis,function(b){var C=i.getComponent(b.axisDim+"Axis",b.axisIndex),T=b.value;if(!(!C||T==null)){var M=cN(T,C.axis,i,b.seriesDataIndices,b.valueLabelOpt),E=ep("section",{header:M,noHeader:!Mo(M),sortBlocks:!0,blocks:[]});d.blocks.push(E),U(b.seriesDataIndices,function(I){var D=i.getSeriesByIndex(I.seriesIndex),k=I.dataIndexInside,O=D.getDataParams(k);if(!(O.dataIndex<0)){O.axisDim=b.axisDim,O.axisIndex=b.axisIndex,O.axisType=b.axisType,O.axisId=b.axisId,O.axisValue=W_(C.axis,{value:T}),O.axisValueLabel=M,O.marker=h.makeTooltipMarker("item",Ul(O.color),l);var N=RP(D.formatTooltip(k,!0,null)),$=N.frag;if($){var z=Vf([D],o).get("valueFormatter");E.blocks.push(z?Te({valueFormatter:z},$):$)}N.text&&p.push(N.text),c.push(O)}})}})}),d.blocks.reverse(),p.reverse();var v=n.position,g=s.get("order"),x=AP(d,h,l,g,i.get("useUTC"),s.get("textStyle"));x&&p.unshift(x);var y=l==="richText"?`
256
+
257
+ `:"<br/>",S=p.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,c)?this._updatePosition(s,v,a[0],a[1],this._tooltipContent,c):this._showTooltipContent(s,S,c,Math.random()+"",a[0],a[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var o=this._ecModel,a=Vt(n),s=a.seriesIndex,l=o.getSeriesByIndex(s),c=a.dataModel||l,d=a.dataIndex,p=a.dataType,h=c.getData(p),v=this._renderMode,g=r.positionDefault,x=Vf([h.getItemModel(d),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),y=x.get("trigger");if(!(y!=null&&y!=="item")){var S=c.getDataParams(d,p),w=new rx;S.marker=w.makeTooltipMarker("item",Ul(S.color),v);var b=RP(c.formatTooltip(d,!1,p)),C=x.get("order"),T=x.get("valueFormatter"),M=b.frag,E=M?AP(T?Te({valueFormatter:T},M):M,w,v,C,o.get("useUTC"),x.get("textStyle")):b.text,I="item_"+c.name+"_"+d;this._showOrMove(x,function(){this._showTooltipContent(x,E,S,I,r.offsetX,r.offsetY,r.position,r.target,w)}),i({type:"showTip",dataIndexInside:d,dataIndex:h.getRawIndex(d),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var o=this._renderMode==="html",a=Vt(n),s=a.tooltipConfig,l=s.option||{},c=l.encodeHTMLContent;if(We(l)){var d=l;l={content:d,formatter:d},c=!0}c&&o&&l.content&&(l=ht(l),l.content=ni(l.content));var p=[l],h=this._ecModel.getComponent(a.componentMainType,a.componentIndex);h&&p.push(h),p.push({formatter:l.content});var v=r.positionDefault,g=Vf(p,this._tooltipModel,v?{position:v}:null),x=g.get("content"),y=Math.random()+"",S=new rx;this._showOrMove(g,function(){var w=ht(g.get("formatterParams")||{});this._showTooltipContent(g,x,w,y,r.offsetX,r.offsetY,r.position,n,S)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,o,a,s,l,c,d){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var p=this._tooltipContent;p.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var v=n,g=this._getNearestPoint([a,s],i,r.get("trigger"),r.get("borderColor")),x=g.color;if(h)if(We(h)){var y=r.ecModel.get("useUTC"),S=De(i)?i[0]:i,w=S&&S.axisType&&S.axisType.indexOf("time")>=0;v=h,w&&(v=Zm(S.axisValue,v,y)),v=k5(v,i,!0)}else if(ot(h)){var b=St(function(C,T){C===this._ticket&&(p.setContent(T,d,r,x,l),this._updatePosition(r,l,a,s,p,i,c))},this);this._ticket=o,v=h(i,o,b)}else v=h;p.setContent(v,d,r,x,l),p.show(r,x),this._updatePosition(r,l,a,s,p,i,c)}},t.prototype._getNearestPoint=function(r,n,i,o){if(i==="axis"||De(n))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!De(n))return{color:o||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,o,a,s,l){var c=this._api.getWidth(),d=this._api.getHeight();n=n||r.get("position");var p=a.getSize(),h=r.get("align"),v=r.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),ot(n)&&(n=n([i,o],s,a.el,g,{viewSize:[c,d],contentSize:p.slice()})),De(n))i=Zr(n[0],c),o=Zr(n[1],d);else if(Qe(n)){var x=n;x.width=p[0],x.height=p[1];var y=ws(x,{width:c,height:d});i=y.x,o=y.y,h=null,v=null}else if(We(n)&&l){var S=Lse(n,g,p,r.get("borderWidth"));i=S[0],o=S[1]}else{var S=Ise(i,o,a,c,d,h?null:20,v?null:20);i=S[0],o=S[1]}if(h&&(i-=$A(h)?p[0]/2:h==="right"?p[0]:0),v&&(o-=$A(v)?p[1]/2:v==="bottom"?p[1]:0),_N(r)){var S=Dse(i,o,a,c,d);i=S[0],o=S[1]}a.moveTo(i,o)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===r.length;return a&&U(i,function(s,l){var c=s.dataByAxis||[],d=r[l]||{},p=d.dataByAxis||[];a=a&&c.length===p.length,a&&U(c,function(h,v){var g=p[v]||{},x=h.seriesDataIndices||[],y=g.seriesDataIndices||[];a=a&&h.value===g.value&&h.axisType===g.axisType&&h.axisId===g.axisId&&x.length===y.length,a&&U(x,function(S,w){var b=y[w];a=a&&S.seriesIndex===b.seriesIndex&&S.dataIndex===b.dataIndex}),o&&U(h.seriesDataIndices,function(S){var w=S.seriesIndex,b=n[w],C=o[w];b&&C&&C.data!==b.data&&(a=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!a},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){lt.node||!n.getDom()||(Wg(this,"_updatePosition"),this._tooltipContent.dispose(),Cb("itemTooltip",n))},t.type="tooltip",t}(fi);function Vf(e,t,r){var n=t.ecModel,i;r?(i=new vr(r,n,n),i=new vr(t.option,i,n)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof vr&&(a=a.get("tooltip",!0)),We(a)&&(a={formatter:a}),a&&(i=new vr(a,i,n)))}return i}function BA(e,t){return e.dispatchAction||St(t.dispatchAction,t)}function Ise(e,t,r,n,i,o,a){var s=r.getSize(),l=s[0],c=s[1];return o!=null&&(e+l+o+2>n?e-=l+o:e+=o),a!=null&&(t+c+a>i?t-=c+a:t+=a),[e,t]}function Dse(e,t,r,n,i){var o=r.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,n)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Lse(e,t,r,n){var i=r[0],o=r[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,c=t.width,d=t.height;switch(e){case"inside":s=t.x+c/2-i/2,l=t.y+d/2-o/2;break;case"top":s=t.x+c/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+c/2-i/2,l=t.y+d+a;break;case"left":s=t.x-i-a,l=t.y+d/2-o/2;break;case"right":s=t.x+c+a,l=t.y+d/2-o/2}return[s,l]}function $A(e){return e==="center"||e==="middle"}function Ose(e,t,r){var n=i_(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var o=Pp(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=r.getViewOfComponentModel(a),l;if(s.group.traverse(function(c){var d=Vt(c).tooltipConfig;if(d&&d.name===e.name)return l=c,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function Nse(e){Sa(hN),e.registerComponentModel(yse),e.registerComponentView(Ase),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Tn),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Tn)}var Bse=function(e){_e(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}(Bt),$se=function(e){_e(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 o=this.group,a=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),c=Tt(r.get("textBaseline"),r.get("textVerticalAlign")),d=new Fr({style:xa(a,{text:r.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),p=d.getBoundingRect(),h=r.get("subtext"),v=new Fr({style:xa(s,{text:h,fill:s.getTextColor(),y:p.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=r.get("link"),x=r.get("sublink"),y=r.get("triggerEvent",!0);d.silent=!g&&!y,v.silent=!x&&!y,g&&d.on("click",function(){MP(g,"_"+r.get("target"))}),x&&v.on("click",function(){MP(x,"_"+r.get("subtarget"))}),Vt(d).eventData=Vt(v).eventData=y?{componentType:"title",componentIndex:r.componentIndex}:null,o.add(d),h&&o.add(v);var S=o.getBoundingRect(),w=r.getBoxLayoutParams();w.width=S.width,w.height=S.height;var b=ws(w,{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)),c||(c=r.get("top")||r.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?b.y+=b.height:c==="middle"&&(b.y+=b.height/2),c=c||"top"),o.x=b.x,o.y=b.y,o.markRedraw();var C={align:l,verticalAlign:c};d.setStyle(C),v.setStyle(C),S=o.getBoundingRect();var T=b.margin,M=r.getItemStyle(["color","opacity"]);M.fill=r.get("backgroundColor");var E=new dr({shape:{x:S.x-T[3],y:S.y-T[0],width:S.width+T[1]+T[3],height:S.height+T[0]+T[2],r:r.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});o.add(E)}},t.type="title",t}(fi);function zse(e){e.registerComponentModel(Bse),e.registerComponentView($se)}var Fse=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"])}},Pb=function(e){_e(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"]),De(n)&&U(n,function(o,a){We(o)&&(o={type:o}),n[a]=yt(o,Fse(i,o.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 o=r[i].get("name");if(this.isSelected(o)){this.select(o),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var c=l.name;i.push(c);var d;if(l.legendVisualProvider){var p=l.legendVisualProvider,h=p.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):d=!0}else d=!0;d&&n_(l)&&n.push(l.name)}),this._availableNames=i;var o=this.get("data")||n,a=ft(),s=Ge(o,function(l){return(We(l)||fr(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new vr(l,this,this.ecModel))},this);this._data=hn(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 o=this._data;U(o,function(a){n[a.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;U(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;U(r,function(i){var o=i.get("name",!0);n.hasOwnProperty(o)||(n[o]=!0),n[o]=!n[o]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&kt(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}(Bt),$u=Ut,Eb=U,Fv=Mr,kN=function(e){_e(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 Fv),this.group.add(this._selectorGroup=new Fv),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 o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var a=r.get("align"),s=r.get("orient");(!a||a==="auto")&&(a=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),c=r.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(a,r,n,i,l,s,c);var d=r.getBoxLayoutParams(),p={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),v=ws(d,p,h),g=this.layoutInner(r,a,v,o,l,c),x=ws(At({width:g.width,height:g.height},d),p,h);this.group.x=x.x-g.x,this.group.y=x.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=xN(g,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,o,a,s,l){var c=this.getContentGroup(),d=ft(),p=n.get("selectedMode"),h=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Eb(n.getData(),function(v,g){var x=v.get("name");if(!this.newlineDisabled&&(x===""||x===`
258
+ `)){var y=new Fv;y.newline=!0,c.add(y);return}var S=i.getSeriesByName(x)[0];if(!d.get(x))if(S){var w=S.getData(),b=w.getVisual("legendLineStyle")||{},C=w.getVisual("legendIcon"),T=w.getVisual("style"),M=this._createItem(S,x,g,v,n,r,b,T,C,p,o);M.on("click",$u(zA,x,null,o,h)).on("mouseover",$u(Ab,S.name,null,o,h)).on("mouseout",$u(Ib,S.name,null,o,h)),i.ssr&&M.eachChild(function(E){var I=Vt(E);I.seriesIndex=S.seriesIndex,I.dataIndex=g,I.ssrType="legend"}),d.set(x,!0)}else i.eachRawSeries(function(E){if(!d.get(x)&&E.legendVisualProvider){var I=E.legendVisualProvider;if(!I.containName(x))return;var D=I.indexOfName(x),k=I.getItemVisual(D,"style"),O=I.getItemVisual(D,"legendIcon"),N=da(k.fill);N&&N[3]===0&&(N[3]=.2,k=Te(Te({},k),{fill:Nm(N,"rgba")}));var $=this._createItem(E,x,g,v,n,r,{},k,O,p,o);$.on("click",$u(zA,null,x,o,h)).on("mouseover",$u(Ab,null,x,o,h)).on("mouseout",$u(Ib,null,x,o,h)),i.ssr&&$.eachChild(function(z){var F=Vt(z);F.seriesIndex=E.seriesIndex,F.dataIndex=g,F.ssrType="legend"}),d.set(x,!0)}},this)},this),a&&this._createSelector(a,n,o,s,l)},t.prototype._createSelector=function(r,n,i,o,a){var s=this.getSelectorGroup();Eb(r,function(c){var d=c.type,p=new Fr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:d==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(p);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);g_(p,{normal:h,emphasis:v},{defaultText:c.title}),Lg(p)})},t.prototype._createItem=function(r,n,i,o,a,s,l,c,d,p,h){var v=r.visualDrawType,g=a.get("itemWidth"),x=a.get("itemHeight"),y=a.isSelected(n),S=o.get("symbolRotate"),w=o.get("symbolKeepAspect"),b=o.get("icon");d=b||d||"roundRect";var C=jse(d,o,l,c,v,y,h),T=new Fv,M=o.getModel("textStyle");if(ot(r.getLegendIcon)&&(!b||b==="inherit"))T.add(r.getLegendIcon({itemWidth:g,itemHeight:x,icon:d,iconRotate:S,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:w}));else{var E=b==="inherit"&&r.getData().getVisual("symbol")?S==="inherit"?r.getData().getVisual("symbolRotate"):S:0;T.add(Wse({itemWidth:g,itemHeight:x,icon:d,iconRotate:E,itemStyle:C.itemStyle,symbolKeepAspect:w}))}var I=s==="left"?g+5:-5,D=s,k=a.get("formatter"),O=n;We(k)&&k?O=k.replace("{name}",n??""):ot(k)&&(O=k(n));var N=y?M.getTextColor():o.get("inactiveColor");T.add(new Fr({style:xa(M,{text:O,x:I,y:x/2,fill:N,align:D,verticalAlign:"middle"},{inheritColor:N})}));var $=new dr({shape:T.getBoundingRect(),style:{fill:"transparent"}}),z=o.getModel("tooltip");return z.get("show")&&Ym({el:$,componentModel:a,itemName:n,itemTooltipOption:z.option}),T.add($),T.eachChild(function(F){F.silent=!0}),$.silent=!p,this.getContentGroup().add(T),Lg(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(r,n,i,o,a,s){var l=this.getContentGroup(),c=this.getSelectorGroup();oc(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var d=l.getBoundingRect(),p=[-d.x,-d.y];if(c.markRedraw(),l.markRedraw(),a){oc("horizontal",c,r.get("selectorItemGap",!0));var h=c.getBoundingRect(),v=[-h.x,-h.y],g=r.get("selectorButtonGap",!0),x=r.getOrient().index,y=x===0?"width":"height",S=x===0?"height":"width",w=x===0?"y":"x";s==="end"?v[x]+=d[y]+g:p[x]+=h[y]+g,v[1-x]+=d[S]/2-h[S]/2,c.x=v[0],c.y=v[1],l.x=p[0],l.y=p[1];var b={x:0,y:0};return b[y]=d[y]+g+h[y],b[S]=Math.max(d[S],h[S]),b[w]=Math.min(0,h[w]+v[1-x]),b}else return l.x=p[0],l.y=p[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(fi);function jse(e,t,r,n,i,o,a){function s(y,S){y.lineWidth==="auto"&&(y.lineWidth=S.lineWidth>0?2:0),Eb(y,function(w,b){y[b]==="inherit"&&(y[b]=S[b])})}var l=t.getModel("itemStyle"),c=l.getItemStyle(),d=e.lastIndexOf("empty",0)===0?"fill":"stroke",p=l.getShallow("decal");c.decal=!p||p==="inherit"?n.decal:sb(p,a),c.fill==="inherit"&&(c.fill=n[i]),c.stroke==="inherit"&&(c.stroke=n[d]),c.opacity==="inherit"&&(c.opacity=(i==="fill"?n:r).opacity),s(c,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,r),c.fill==="auto"&&(c.fill=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!o){var g=t.get("inactiveBorderWidth"),x=c[d];c.lineWidth=g==="auto"?n.lineWidth>0&&x?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:c,lineStyle:v}}function Wse(e){var t=e.icon||"roundRect",r=Cs(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 zA(e,t,r,n){Ib(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),Ab(e,t,r,n)}function RN(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 Ab(e,t,r,n){RN(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function Ib(e,t,r,n){RN(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function Hse(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 Uf(e,t,r){var n={},i=e==="toggleSelected",o;return r.eachComponent("legend",function(a){i&&o!=null?a[o?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?a[e]():(a[e](t.name),o=a.isSelected(t.name));var s=a.getData();U(s,function(l){var c=l.get("name");if(!(c===`
259
+ `||c==="")){var d=a.isSelected(c);n.hasOwnProperty(c)?n[c]=n[c]&&d:n[c]=d}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function Vse(e){e.registerAction("legendToggleSelect","legendselectchanged",Ut(Uf,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Ut(Uf,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Ut(Uf,"inverseSelect")),e.registerAction("legendSelect","legendselected",Ut(Uf,"select")),e.registerAction("legendUnSelect","legendunselected",Ut(Uf,"unSelect"))}function PN(e){e.registerComponentModel(Pb),e.registerComponentView(kN),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Hse),e.registerSubTypeDefaulter("legend",function(){return"plain"}),Vse(e)}var Use=function(e){_e(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 o=Lp(r);e.prototype.init.call(this,r,n,i),FA(this,r,o)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),FA(this,this.option,r)},t.type="legend.scroll",t.defaultOption=p5(Pb.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}(Pb);function FA(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Sc(t,r,{type:"box",ignoreSize:!!i})}var jA=Mr,Ox=["width","height"],Nx=["x","y"],Gse=function(e){_e(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 jA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new jA)},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,o,a,s,l){var c=this;e.prototype.renderInner.call(this,r,n,i,o,a,s,l);var d=this._controllerGroup,p=n.get("pageIconSize",!0),h=De(p)?p:[p,p];g("pagePrev",0);var v=n.getModel("pageTextStyle");d.add(new Fr({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(x,y){var S=x+"DataIndex",w=Gm(n.get("pageIcons",!0)[n.getOrient().name][y],{onclick:St(c._pageGo,c,S,n,o)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});w.name=x,d.add(w)}},t.prototype.layoutInner=function(r,n,i,o,a,s){var l=this.getSelectorGroup(),c=r.getOrient().index,d=Ox[c],p=Nx[c],h=Ox[1-c],v=Nx[1-c];a&&oc("horizontal",l,r.get("selectorItemGap",!0));var g=r.get("selectorButtonGap",!0),x=l.getBoundingRect(),y=[-x.x,-x.y],S=ht(i);a&&(S[d]=i[d]-x[d]-g);var w=this._layoutContentAndController(r,o,S,c,d,h,v,p);if(a){if(s==="end")y[c]+=w[d]+g;else{var b=x[d]+g;y[c]-=b,w[p]-=b}w[d]+=x[d]+g,y[1-c]+=w[v]+w[h]/2-x[h]/2,w[h]=Math.max(w[h],x[h]),w[v]=Math.min(w[v],x[v]+y[1-c]),l.x=y[0],l.y=y[1],l.markRedraw()}return w},t.prototype._layoutContentAndController=function(r,n,i,o,a,s,l,c){var d=this.getContentGroup(),p=this._containerGroup,h=this._controllerGroup;oc(r.get("orient"),d,r.get("itemGap"),o?i.width:null,o?null:i.height),oc("horizontal",h,r.get("pageButtonItemGap",!0));var v=d.getBoundingRect(),g=h.getBoundingRect(),x=this._showController=v[a]>i[a],y=[-v.x,-v.y];n||(y[o]=d[c]);var S=[0,0],w=[-g.x,-g.y],b=Tt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(x){var C=r.get("pageButtonPosition",!0);C==="end"?w[o]+=i[a]-g[a]:S[o]+=g[a]+b}w[1-o]+=v[s]/2-g[s]/2,d.setPosition(y),p.setPosition(S),h.setPosition(w);var T={x:0,y:0};if(T[a]=x?i[a]:v[a],T[s]=Math.max(v[s],g[s]),T[l]=Math.min(0,g[l]+w[1-o]),p.__rectSize=i[a],x){var M={x:0,y:0};M[a]=Math.max(i[a]-g[a]-b,0),M[s]=T[s],p.setClipPath(new dr({shape:M})),p.__rectSize=M[a]}else h.eachChild(function(I){I.attr({invisible:!0,silent:!0})});var E=this._getPageInfo(r);return E.pageIndex!=null&&bs(d,{x:E.contentPosition[0],y:E.contentPosition[1]},x?r:null),this._updatePageInfoView(r,E),T},t.prototype._pageGo=function(r,n,i){var o=this._getPageInfo(n)[r];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;U(["pagePrev","pageNext"],function(d){var p=d+"DataIndex",h=n[p]!=null,v=i.childOfName(d);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var o=i.childOfName("pageText"),a=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,c=n.pageCount;o&&a&&o.setStyle("text",We(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):a({current:l,total:c}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=r.getOrient().index,s=Ox[a],l=Nx[a],c=this._findTargetItemIndex(n),d=i.children(),p=d[c],h=d.length,v=h?1:0,g={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return g;var x=C(p);g.contentPosition[a]=-x.s;for(var y=c+1,S=x,w=x,b=null;y<=h;++y)b=C(d[y]),(!b&&w.e>S.s+o||b&&!T(b,S.s))&&(w.i>S.i?S=w:S=b,S&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=S.i),++g.pageCount)),w=b;for(var y=c-1,S=x,w=x,b=null;y>=-1;--y)b=C(d[y]),(!b||!T(w,b.s))&&S.i<w.i&&(w=S,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=S.i),++g.pageCount,++g.pageIndex),S=b;return g;function C(M){if(M){var E=M.getBoundingRect(),I=E[l]+M[l];return{s:I,e:I+E[s],i:M.__legendDataIndex}}}function T(M,E){return M.e>=E&&M.s<=E+o}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===r&&(n=s)}),n??o},t.type="legend.scroll",t}(kN);function Yse(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 qse(e){Sa(PN),e.registerComponentModel(Use),e.registerComponentView(Gse),Yse(e)}function Xse(e){Sa(PN),Sa(qse)}var Kse=function(e){_e(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=p5(Tb.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}(Tb),Gf=dr,WA=7,Zse=1,Bx=30,Qse=7,Yf="horizontal",HA="vertical",Jse=5,ele=["line","bar","candlestick","scatter"],tle={easing:"cubicOut",duration:100,delay:0},rle=function(e){_e(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=St(this._onBrush,this),this._onBrushEnd=St(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,o){if(e.prototype.render.apply(this,arguments),A_(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}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Wg(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 Mr;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"),o=i?Qse:0,a=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Yf?{right:s.width-a.x-a.width,top:s.height-Bx-WA-o,width:a.width,height:Bx}:{right:WA,top:a.y,width:Bx,height:a.height},c=Lp(r.option);U(["right","top","width","height"],function(p){c[p]==="ph"&&(c[p]=l[p])});var d=ws(c,s);this._location={x:d.x,y:d.y},this._size=[d.width,d.height],this._orient===HA&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Yf&&!a?{scaleY:l?1:-1,scaleX:1}:i===Yf&&a?{scaleY:l?1:-1,scaleX:-1}:i===HA&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var c=r.getBoundingRect([s]);r.x=n.x-c.x,r.y=n.y-c.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,o=r.get("brushSelect");i.add(new Gf({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var a=new Gf({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:St(this._onClickPanel,this)}),s=this.api.getZr();o?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(a)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],o=r.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():r.otherDim;if(l==null)return;var c=this._shadowPolygonPts,d=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var p=a.getDataExtent(l),h=(p[1]-p[0])*.3;p=[p[0]-h,p[1]+h];var v=[0,n[1]],g=[0,n[0]],x=[[n[0],0],[0,0]],y=[],S=g[1]/(a.count()-1),w=0,b=Math.round(a.count()/n[0]),C;a.each([l],function(D,k){if(b>0&&k%b){w+=S;return}var O=D==null||isNaN(D)||D==="",N=O?0:dn(D,p,v,!0);O&&!C&&k?(x.push([x[x.length-1][0],0]),y.push([y[y.length-1][0],0])):!O&&C&&(x.push([w,0]),y.push([w,0])),x.push([w,N]),y.push([w,N]),w+=S,C=O}),c=this._shadowPolygonPts=x,d=this._shadowPolylinePts=y}this._shadowData=a,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var T=this.dataZoomModel;function M(D){var k=T.getModel(D?"selectedDataBackground":"dataBackground"),O=new Mr,N=new Ep({shape:{points:c},segmentIgnoreThreshold:1,style:k.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),$=new Ap({shape:{points:d},segmentIgnoreThreshold:1,style:k.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return O.add(N),O.add($),O}for(var E=0;E<3;E++){var I=M(E===1);this._displayables.sliderGroup.add(I),this._displayables.dataShadowSegs.push(I)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,o=this.ecModel;return r.eachTargetAxis(function(a,s){var l=r.getAxisProxy(a,s).getTargetSeriesModels();U(l,function(c){if(!i&&!(n!==!0&&kt(ele,c.get("type"))<0)){var d=o.getComponent(ls(a),s).axis,p=nle(a),h,v=c.coordinateSystem;p!=null&&v.getOtherAxis&&(h=v.getOtherAxis(d).inverse),p=c.getData().mapDimension(p),i={thisAxis:d,series:c,thisDim:a,otherDim:p,otherAxisInverse:h}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],o=n.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,c=this.api,d=l.get("borderRadius")||0,p=l.get("brushSelect"),h=n.filler=new Gf({silent:p,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(h),a.add(new Gf({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:d},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Zse,fill:"rgba(0,0,0,0)"}})),U([0,1],function(b){var C=l.get("handleIcon");!Fg[C]&&C.indexOf("path://")<0&&C.indexOf("image://")<0&&(C="path://"+C);var T=Cs(C,-1,0,2,2,null,!0);T.attr({cursor:VA(this._orient),draggable:!0,drift:St(this._onDragMove,this,b),ondragend:St(this._onDragEnd,this),onmouseover:St(this._showDataInfo,this,!0),onmouseout:St(this._showDataInfo,this,!1),z2:5});var M=T.getBoundingRect(),E=l.get("handleSize");this._handleHeight=Zr(E,this._size[1]),this._handleWidth=M.width/M.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(),Lg(T);var I=l.get("handleColor");I!=null&&(T.style.fill=I),a.add(i[b]=T);var D=l.getModel("textStyle");r.add(o[b]=new Fr({silent:!0,invisible:!0,style:xa(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var v=h;if(p){var g=Zr(l.get("moveHandleSize"),s[1]),x=n.moveHandle=new dr({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:g}}),y=g*.8,S=n.moveHandleIcon=Cs(l.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);S.silent=!0,S.y=s[1]+g/2-.5,x.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var w=Math.min(s[1]/2,Math.max(g,10));v=n.moveZone=new dr({invisible:!0,shape:{y:s[1]-w,height:g+w}}),v.on("mouseover",function(){c.enterEmphasis(x)}).on("mouseout",function(){c.leaveEmphasis(x)}),a.add(x),a.add(S),a.add(v)}v.attr({draggable:!0,cursor:VA(this._orient),drift:St(this._onDragMove,this,"all"),ondragstart:St(this._showDataInfo,this,!0),ondragend:St(this._onDragEnd,this),onmouseover:St(this._showDataInfo,this,!0),onmouseout:St(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[dn(r[0],[0,100],n,!0),dn(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];U_(n,o,a,i.get("zoomLock")?"all":r,s.minSpan!=null?dn(s.minSpan,l,a,!0):null,s.maxSpan!=null?dn(s.maxSpan,l,a,!0):null);var c=this._range,d=this._range=nd([dn(o[0],a,l,!0),dn(o[1],a,l,!0)]);return!c||c[0]!==d[0]||c[1]!==d[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,o=nd(i.slice()),a=this._size;U([0,1],function(v){var g=n.handles[v],x=this._handleHeight;g.attr({scaleX:x/2,scaleY:x/2,x:i[v]+(v?-1:1),y:a[1]/2-x/2})},this),n.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:a[1]});var s={x:o[0],width:o[1]-o[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,c=[0,o[0],o[1],a[0]],d=0;d<l.length;d++){var p=l[d],h=p.getClipPath();h||(h=new dr,p.setClipPath(h)),h.setShape({x:c[d],y:0,width:c[d+1]-c[d],height:a[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,o=i.handleLabels,a=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var c=l.getAxisModel().axis,d=this._range,p=r?l.calculateDataWindow({start:d[0],end:d[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(p[0],c),this._formatLabel(p[1],c)]}}var h=nd(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(g){var x=Um(i.handles[g].parent,this.group),y=h_(g===0?"right":"left",x),S=this._handleWidth/2+Jse,w=Kd([h[g]+(g===0?-S:S),this._size[1]/2],x);o[g].setStyle({x:w[0],y:w[1],verticalAlign:a===Yf?"middle":y,align:a===Yf?y:"center",text:s[g]})}},t.prototype._formatLabel=function(r,n){var i=this.dataZoomModel,o=i.get("labelFormatter"),a=i.get("labelPrecision");(a==null||a==="auto")&&(a=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(a,20));return ot(o)?o(r,s):We(o)?o.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,o){this._dragging=!0,Hg(o.event);var a=this._displayables.sliderGroup.getLocalTransform(),s=Kd([n,i],a,!0),l=this._updateInterval(r,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&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 o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",i[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new qt(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,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(i.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=nd([dn(i.x,a,s,!0),dn(i.x+i.width,a,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(Hg(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,o=this.dataZoomModel,a=i.brushRect;a||(a=i.brushRect=new Gf({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,c=l.transformCoordToLocal(r,n),d=l.transformCoordToLocal(s.x,s.y),p=this._size;c[0]=Math.max(Math.min(p[0],c[0]),0),a.setShape({x:d[0],y:0,width:c[0]-d[0],height:p[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?tle:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=Dae(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var o=this.api.getWidth(),a=this.api.getHeight();r={x:o*.2,y:a*.2,width:o*.6,height:a*.6}}return r},t.type="dataZoom.slider",t}(vN);function nle(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function VA(e){return e==="vertical"?"ns-resize":"ew-resize"}function ile(e){e.registerComponentModel(Kse),e.registerComponentView(rle),gN(e)}function UA(e,t,r){var n=Mc.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=o*r,n}var $x=function(e){_e(t,e);function t(r,n,i){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;i=i||Eg,typeof r=="string"?a=UA(r,n,i):Qe(r)&&(a=r,r=a.id),o.id=r,o.dom=a;var s=a.style;return s&&(WL(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=n,o.dpr=i,o}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=UA("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,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,c=new $t(0,0,0,0);function d(w){if(!(!w.isFinite()||w.isZero()))if(a.length===0){var b=new $t(0,0,0,0);b.copy(w),a.push(b)}else{for(var C=!1,T=1/0,M=0,E=0;E<a.length;++E){var I=a[E];if(I.intersect(w)){var D=new $t(0,0,0,0);D.copy(I),D.union(w),a[E]=D,C=!0;break}else if(l){c.copy(w),c.union(I);var k=w.width*w.height,O=I.width*I.height,N=c.width*c.height,$=N-k-O;$<T&&(T=$,M=E)}}if(l&&(a[M].union(w),C=!0),!C){var b=new $t(0,0,0,0);b.copy(w),a.push(b)}l||(l=a.length>=s)}}for(var p=this.__startIndex;p<this.__endIndex;++p){var h=r[p];if(h){var v=h.shouldBePainted(i,o,!0,!0),g=h.__isRendered&&(h.__dirty&Do||!v)?h.getPrevPaintRect():null;g&&d(g);var x=v&&(h.__dirty&Do||!h.__isRendered)?h.getPaintRect():null;x&&d(x)}}for(var p=this.__prevStartIndex;p<this.__prevEndIndex;++p){var h=n[p],v=h&&h.shouldBePainted(i,o,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var g=h.getPrevPaintRect();g&&d(g)}}var y;do{y=!1;for(var p=0;p<a.length;){if(a[p].isZero()){a.splice(p,1);continue}for(var S=p+1;S<a.length;)a[p].intersect(a[S])?(y=!0,a[p].union(a[S]),a.splice(S,1)):S++;p++}}while(y);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=r+"px",a.height=n+"px"),o.width=r*i,o.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 o=this.dom,a=this.ctx,s=o.width,l=o.height;n=n||this.clearColor;var c=this.motionBlur&&!r,d=this.lastFrameAlpha,p=this.dpr,h=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/p,l/p));var v=this.domBack;function g(x,y,S,w){if(a.clearRect(x,y,S,w),n&&n!=="transparent"){var b=void 0;if(Am(n)){var C=n.global||n.__width===S&&n.__height===w;b=C&&n.__canvasGradient||ob(a,n,{x:0,y:0,width:S,height:w}),n.__canvasGradient=b,n.__width=S,n.__height=w}else qX(n)&&(n.scaleX=n.scaleX||p,n.scaleY=n.scaleY||p,b=ab(a,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));a.save(),a.fillStyle=b||n,a.fillRect(x,y,S,w),a.restore()}c&&(a.save(),a.globalAlpha=d,a.drawImage(v,x,y,S,w),a.restore())}!i||c?g(0,0,s,l):i.length&&U(i,function(x){g(x.x*p,x.y*p,x.width*p,x.height*p)})},t}(uo),GA=1e5,fl=314159,jv=.01,ole=.001;function ale(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function sle(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 lle=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 o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=Te({},n||{}),this.dpr=n.devicePixelRatio||Eg,this._singleCanvas=o,this.root=t;var a=t.style;a&&(WL(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var d=t,p=d.width,h=d.height;n.width!=null&&(p=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,d.width=p*this.dpr,d.height=h*this.dpr,this._width=p,this._height=h;var v=new $x(d,this,this.dpr);v.__builtin__=!0,v.initContext(),l[fl]=v,v.zlevel=fl,s.push(fl),this._domRoot=t}else{this._width=Dv(t,0,n),this._height=Dv(t,1,n);var c=this._domRoot=sle(this._width,this._height);t.appendChild(c)}}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 o=0;o<i.length;o++){var a=i[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===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},o,a=0;a<r;a++){var s=t[a];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(GA)),o||(o=n.ctx,o.save()),kl(o,s,i,a===r-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(GA)},e.prototype.paintOne=function(t,r){d3(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,r,n),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var l=this;Vg(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(fl).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,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],c=this._layers[l];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&o.push(c)}for(var d=!0,p=!1,h=function(x){var y=o[x],S=y.ctx,w=a&&y.createRepaintRects(t,r,v._width,v._height),b=n?y.__startIndex:y.__drawIndex,C=!n&&y.incremental&&Date.now,T=C&&Date.now(),M=y.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(y.__startIndex===y.__endIndex)y.clear(!1,M,w);else if(b===y.__startIndex){var E=t[b];(!E.incremental||!E.notClear||n)&&y.clear(!1,M,w)}b===-1&&(console.error("For some unknown reason. drawIndex is -1"),b=y.__startIndex);var I,D=function($){var z={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(I=b;I<y.__endIndex;I++){var F=t[I];if(F.__inHover&&(p=!0),i._doPaintEl(F,y,a,$,z,I===y.__endIndex-1),C){var j=Date.now()-T;if(j>15)break}}z.prevElClipPaths&&S.restore()};if(w)if(w.length===0)I=y.__endIndex;else for(var k=v.dpr,O=0;O<w.length;++O){var N=w[O];S.save(),S.beginPath(),S.rect(N.x*k,N.y*k,N.width*k,N.height*k),S.clip(),D(N),S.restore()}else S.save(),D(),S.restore();y.__drawIndex=I,y.__drawIndex<y.__endIndex&&(d=!1)},v=this,g=0;g<o.length;g++)h(g);return lt.wxa&&U(this._layers,function(x){x&&x.ctx&&x.ctx.draw&&x.ctx.draw()}),{finished:d,needsRefreshHover:p}},e.prototype._doPaintEl=function(t,r,n,i,o,a){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(kl(s,t,o,a),t.setPrevPaintRect(l))}else kl(s,t,o,a)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=fl);var n=this._layers[t];return n||(n=new $x("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?yt(n,this._layerConfig[t],!0):this._layerConfig[t-jv]&&yt(n,this._layerConfig[t-jv],!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,o=i.length,a=this._domRoot,s=null,l=-1;if(!n[t]&&ale(r)){if(o>0&&t>i[0]){for(l=0;l<o-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 c=s.dom;c.nextSibling?a.insertBefore(r.dom,c.nextSibling):a.appendChild(r.dom)}else a.firstChild?a.insertBefore(r.dom,a.firstChild):a.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 o=n[i];t.call(r,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],a=this._layers[o];a.__builtin__&&t.call(r,a,o)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],a=this._layers[o];a.__builtin__||t.call(r,a,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(p,h){p.__dirty=p.__used=!1});function r(p){o&&(o.__endIndex!==p&&(o.__dirty=!0),o.__endIndex=p)}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 o=null,a=0,s,l;for(l=0;l<t.length;l++){var i=t[l],c=i.zlevel,d=void 0;s!==c&&(s=c,a=0),i.incremental?(d=this.getLayer(c+ole,this._needsManuallyCompositing),d.incremental=!0,a=1):d=this.getLayer(c+(a>0?jv:0),this._needsManuallyCompositing),d.__builtin__||Yw("ZLevel "+c+" has been used by unkown layer "+d.id),d!==o&&(d.__used=!0,d.__startIndex!==l&&(d.__dirty=!0),d.__startIndex=l,d.incremental?d.__drawIndex=-1:d.__drawIndex=l,r(l),o=d),i.__dirty&Do&&!i.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(p,h){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__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,U(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?yt(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+jv){var a=this._layers[o];yt(a,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(kt(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,o=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=Dv(o,0,i),r=Dv(o,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].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(fl).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[fl].dom;var r=new $x("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,o=r.dom.height;this.eachLayer(function(p){p.__builtin__?n.drawImage(p.dom,0,0,i,o):p.renderToCanvas&&(n.save(),p.renderToCanvas(n),n.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,c=s.length;l<c;l++){var d=s[l];kl(n,d,a,l===c-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function ule(e){e.registerPainter("canvas",lle)}const YA={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},cle=e=>!isNaN(new Date(e).getTime()),fle=e=>e&&cle(e)?new Date(e).toLocaleString():"",EN=({charts:e,lines:t,scatterplot:r})=>t.map(({key:n,name:i})=>({symbolSize:4,type:r?"scatter":"line",name:i,data:e[n]})),qA={type:"value",boundaryGap:[0,"5%"]},dle=({splitAxis:e,yAxisLabels:t})=>e&&(!t||Array.isArray(t))?Array(2).fill(qA).map((r,n)=>({...r,...t?{name:t[n]}:{}})):{...qA,...t?{name:t}:{}},ple=e=>new Date(e).toLocaleTimeString(),hle=({chartValueFormatter:e,value:t})=>e?e(t):Array.isArray(t)?t[1]:t,vle=({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:c})=>({title:{text:t},tooltip:{trigger:"axis",formatter:d=>Array.isArray(d)&&d.length>0&&d.some(p=>!!p.value)?d.reduce((p,{axisValue:h,color:v,seriesName:g,value:x},y)=>`
260
+ ${y===0?fle(h):""}
261
+ ${p}
262
+ <br>
263
+ <span style="color:${v};">
264
+ ${g}:&nbsp${hle({chartValueFormatter:i,value:x})}
265
+ </span>
266
+ `,""):"No data",borderWidth:0},xAxis:s||{type:"time",min:(e.time||[new Date().toISOString()])[0],startValue:(e.time||[])[0],splitNumber:window.innerWidth<900?2:7,minInterval:1,axisLabel:{formatter:ple}},grid:l||{left:60,right:40},yAxis:dle({splitAxis:o,yAxisLabels:a}),series:EN({charts:e,lines:r,scatterplot:c}),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"}}}}},legend:{top:25}}),gle=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`,padding:[0,0,8,0]},data:(e.markers||[]).map(t=>({xAxis:t}))}),mle=e=>t=>{const{batch:r}=t;if(!r)return;const[{start:n,startValue:i,end:o}]=r,a=n>0&&o<=100||i>0;e.setOption({dataZoom:[{type:"slider",show:a}]})};Sa([ere,zse,Nse,mse,ile,Pae,Xse,ule]);function yle({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:c,shouldReplaceMergeLines:d=!1,isDarkMode:p=!1}){const[h,v]=L.useState(null),g=L.useRef(null);return L.useEffect(()=>{if(!g.current)return;const x=pie(g.current);x.setOption(vle({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:c})),x.on("datazoom",mle(x));const y=()=>{x.resize(),x.setOption({xAxis:{splitNumber:window.innerWidth<900?2:7}})};return window.addEventListener("resize",y),x.group="swarmCharts",hie("swarmCharts"),v(x),()=>{vie(x),window.removeEventListener("resize",y)}},[g]),L.useEffect(()=>{const x=r.every(({key:y})=>!!e[y]);h&&x&&h.setOption({series:r.map(({key:y,yAxisIndex:S,...w},b)=>({...w,data:e[y],...o?{yAxisIndex:S||b}:{},...b===0?{markLine:gle(e)}:{}}))})},[e,h,r]),L.useEffect(()=>{if(h){const{textColor:x,axisColor:y,backgroundColor:S,splitLine:w}=p?YA.DARK:YA.LIGHT;h.setOption({backgroundColor:S,textStyle:{color:x},title:{textStyle:{color:x}},legend:{icon:"circle",inactiveColor:x,textStyle:{color:x}},tooltip:{backgroundColor:S,textStyle:{color:x}},xAxis:{axisLine:{lineStyle:{color:y}}},yAxis:{axisLine:{lineStyle:{color:y}},splitLine:{lineStyle:{color:w}}}})}},[h,p]),L.useEffect(()=>{h&&h.setOption({series:EN({charts:e,lines:r,scatterplot:c})},d?{replaceMerge:["series"]}:void 0)},[r]),P.jsx("div",{ref:g,style:{width:"100%",height:"300px"}})}const xle=Io.percentilesToChart?Io.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],Sle=["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"],ble=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:xle,colors:Sle},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function wle({charts:e,isDarkMode:t}){return ble.map((r,n)=>P.jsx(yle,{...r,charts:e,isDarkMode:t},`swarm-chart-${n}`))}const _le=({theme:{isDarkMode:e},ui:{charts:t}})=>({charts:t,isDarkMode:e}),Cle=di(_le)(wle);function Tle(e){return(e*100).toFixed(1)+"%"}function Db({classRatio:e}){return P.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>P.jsxs("li",{children:[`${Tle(r)} ${t}`,n&&P.jsx(Db,{classRatio:n})]},`nested-ratio-${t}`))})}function Mle({ratios:{perClass:e,total:t}}){return!e&&!t?null:P.jsxs("div",{children:[e&&P.jsxs(P.Fragment,{children:[P.jsx("h3",{children:"Ratio Per Class"}),P.jsx(Db,{classRatio:e})]}),t&&P.jsxs(P.Fragment,{children:[P.jsx("h3",{children:"Total Ratio"}),P.jsx(Db,{classRatio:t})]})]})}const kle=({ui:{ratios:e}})=>({ratios:e}),Rle=di(kle)(Mle);function Ple(){const{data:e,refetch:t}=gq(),r=To(vd.setUi),n=kn(({swarm:o})=>o.state),i=n===Jr.SPAWNING||n==Jr.RUNNING;L.useEffect(()=>{e&&r({ratios:e})},[e]),_p(t,5e3,{shouldRunInterval:i,immediate:!0})}function Ele(){return Ple(),P.jsx(Rle,{})}const Ale=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:Az}];function Ile({workers:e=[]}){return P.jsx(Cp,{defaultSortKey:"id",rows:e,structure:Ale})}const Dle=({ui:{workers:e}})=>({workers:e}),Lle=di(Dle)(Ile),sa={stats:{component:OX,key:"stats",title:"Statistics"},charts:{component:Cle,key:"charts",title:"Charts"},failures:{component:gX,key:"failures",title:"Failures"},exceptions:{component:dX,key:"exceptions",title:"Exceptions"},ratios:{component:Ele,key:"ratios",title:"Current Ratio"},reports:{component:RX,key:"reports",title:"Download Data"},logs:{component:TX,key:PL,title:"Logs"},workers:{component:Lle,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed},locustCloud:{component:wX,key:"locustcloud",title:"Locust Cloud"}},Ole=[sa.stats,sa.charts,sa.failures,sa.exceptions,sa.ratios,sa.reports,sa.logs,sa.workers,sa.locustCloud],Nle=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)},Ble=()=>window.location.search?Ez(window.location.search):null,$le={query:Ble()},AN=Pi({name:"url",initialState:$le,reducers:{setUrl:wp}}),zle=AN.actions,Fle=AN.reducer;function jle({hasNotification:e,title:t}){return P.jsxs(tt,{sx:{display:"flex",alignItems:"center"},children:[e&&P.jsx(cL,{color:"secondary"}),P.jsx("span",{children:t})]})}function Wle({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[o,a]=L.useState(e),s=(l,c)=>{const d=i[c].key;t[d]&&r({[d]:!1}),Nle({tab:d}),n({query:{tab:d}}),a(c)};return L.useEffect(()=>{a(e)},[e]),P.jsxs(bp,{maxWidth:"xl",children:[P.jsx(tt,{sx:{mb:2},children:P.jsx(KG,{onChange:s,scrollButtons:"auto",value:o,variant:"scrollable",children:i.map(({key:l,title:c},d)=>P.jsx(aG,{label:P.jsx(jle,{hasNotification:t[l],title:c})},`tab-${d}`))})}),i.map(({component:l=rX},c)=>o===c&&P.jsx(l,{},`tabpabel-${c}`))]})}const Hle=(e,{tabs:t,extendedTabs:r})=>{const{notification:n,swarm:{extendedTabs:i},url:{query:o}}=e,s=(t||[...Ole,...r||i||[]]).filter(({shouldDisplayTab:c})=>!c||c&&c(e)),l=o&&o.tab?s.findIndex(({key:c})=>c===o.tab):0;return{notification:n,tabs:s,currentTabIndexFromQuery:l>-1?l:0}},Vle={setNotification:AL.setNotification,setUrl:zle.setUrl},Ule=di(Hle,Vle)(Wle),Gle=2e3;function Yle(){const e=To(Pm.setSwarm),t=To(vd.setUi),r=To(vd.updateCharts),n=To(vd.updateChartMarkers),i=kn(({swarm:p})=>p),o=L.useRef(i.state),[a,s]=L.useState(!1),{data:l,refetch:c}=vq(),d=i.state===Jr.SPAWNING||i.state==Jr.RUNNING;L.useEffect(()=>{if(!l)return;const{state:p,currentResponseTimePercentiles:h,extendedStats:v,stats:g,errors:x,totalRps:y,totalFailPerSec:S,failRatio:w,workers:b,workerCount:C,userCount:T,totalAvgResponseTime:M}=l,E=new Date().toISOString();a&&(s(!1),n(E));const I=Jf(y,2),D=Jf(S,2),k=Jf(w*100),N={...Object.entries(h).reduce(($,[z,F])=>({...$,[z]:[E,F||0]}),{}),currentRps:[E,I],currentFailPerSec:[E,D],totalAvgResponseTime:[E,Jf(M,2)],userCount:[E,T],time:E};t({extendedStats:v,stats:g,errors:x,totalRps:I,failRatio:k,workers:b,userCount:T}),r(N),e({state:p,workerCount:C})},[l]),_p(c,Gle,{shouldRunInterval:d}),L.useEffect(()=>{i.state===Jr.RUNNING&&o.current===Jr.STOPPED&&s(!0),o.current=i.state},[i.state,o])}const qle=2e3;function Xle(){const{data:e,refetch:t}=xq(),r=To(Pm.setSwarm),n=kn(({swarm:i})=>i);L.useEffect(()=>{e&&r({workerCount:e.workerCount})},[e]),_p(t,qle,{shouldRunInterval:n.isDistributed&&n.state===Jr.READY})}function Kle({swarmState:e,tabs:t,extendedTabs:r}){Yle(),Xle(),Kq();const n=vL();return P.jsxs(mD,{theme:n,children:[P.jsx(HD,{}),P.jsx(Wq,{children:e===Jr.READY?P.jsx(Hw,{}):P.jsx(Ule,{extendedTabs:r,tabs:t})})]})}const Zle=({swarm:{state:e}})=>({swarmState:e}),Qle=di(Zle)(Kle),Jle=Jg({[Cg.reducerPath]:Cg.reducer,logViewer:qq,notification:Vq,swarm:Tq,theme:hL,ui:cX,url:Fle}),eue=cI({reducer:Jle,middleware:e=>e().concat(Cg.middleware)});function tue(){if(nM){const e=cI({reducer:Jg({theme:hL})});return P.jsx(tM,{store:e,children:P.jsx(gY,{...nM})})}else return P.jsx(tM,{store:eue,children:P.jsx(Qle,{})})}function rue({error:e}){return P.jsxs("div",{role:"alert",children:[P.jsx("p",{children:"Something went wrong"}),e.message&&P.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",P.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})}const nue=kB.createRoot(document.getElementById("root"));nue.render(P.jsx(PB,{fallbackRender:rue,children:P.jsx(tue,{})}));