@questdb/web-console 1.2.3 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD_PARTY_LICENSES.txt +3833 -3470
- package/dist/assets/icon-notebook.svg +1 -0
- package/dist/assets/index-1ZLwKI91.js +1047 -0
- package/dist/assets/index-BqRJij9Z.css +45 -0
- package/dist/assets/index-zPfXTse8.js +9788 -0
- package/dist/assets/onboarding/intro-notebooks-hero.png +0 -0
- package/dist/assets/{tiktoken-D_XIXzTZ.js → tiktoken-DEbVmu7c.js} +1 -1
- package/dist/assets/vendor-BhHVTKlu.js +147 -0
- package/dist/index.html +3 -3
- package/package.json +9 -5
- package/dist/assets/index-B0NErtb0.js +0 -1059
- package/dist/assets/index-DLj61pTx.js +0 -7008
- package/dist/assets/index-DhT2UWZo.css +0 -45
- package/dist/assets/login-background.svg +0 -1
- package/dist/assets/vendor-BHoUroWS.js +0 -129
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
function uL(n,t){for(var e=0;e<t.length;e++){const i=t[e];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in n)){const o=Object.getOwnPropertyDescriptor(i,r);o&&Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var cL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ta(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function fL(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var t=n.default;if(typeof t=="function"){var e=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(e,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),e}/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/var dg,$x;function gg(){if($x)return dg;$x=1;var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable;function i(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function r(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return dg=r()?Object.assign:function(o,a){for(var s,l=i(o),c,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var p in s)t.call(s,p)&&(l[p]=s[p]);if(n){c=n(s);for(var g=0;g<c.length;g++)e.call(s,c[g])&&(l[c[g]]=s[c[g]])}}return l},dg}var qx={exports:{}},Xt={};/** @license React v17.0.2
|
|
6
|
+
* react.production.min.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/var Qx;function hL(){if(Qx)return Xt;Qx=1;var n=gg(),t=60103,e=60106;Xt.Fragment=60107,Xt.StrictMode=60108,Xt.Profiler=60114;var i=60109,r=60110,o=60112;Xt.Suspense=60113;var a=60115,s=60116;if(typeof Symbol=="function"&&Symbol.for){var l=Symbol.for;t=l("react.element"),e=l("react.portal"),Xt.Fragment=l("react.fragment"),Xt.StrictMode=l("react.strict_mode"),Xt.Profiler=l("react.profiler"),i=l("react.provider"),r=l("react.context"),o=l("react.forward_ref"),Xt.Suspense=l("react.suspense"),a=l("react.memo"),s=l("react.lazy")}var c=typeof Symbol=="function"&&Symbol.iterator;function f(z){return z===null||typeof z!="object"?null:(z=c&&z[c]||z["@@iterator"],typeof z=="function"?z:null)}function p(z){for(var H="https://reactjs.org/docs/error-decoder.html?invariant="+z,K=1;K<arguments.length;K++)H+="&args[]="+encodeURIComponent(arguments[K]);return"Minified React error #"+z+"; visit "+H+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d={};function y(z,H,K){this.props=z,this.context=H,this.refs=d,this.updater=K||g}y.prototype.isReactComponent={},y.prototype.setState=function(z,H){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error(p(85));this.updater.enqueueSetState(this,z,H,"setState")},y.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function _(){}_.prototype=y.prototype;function m(z,H,K){this.props=z,this.context=H,this.refs=d,this.updater=K||g}var x=m.prototype=new _;x.constructor=m,n(x,y.prototype),x.isPureReactComponent=!0;var w={current:null},S=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function M(z,H,K){var it,j={},U=null,G=null;if(H!=null)for(it in H.ref!==void 0&&(G=H.ref),H.key!==void 0&&(U=""+H.key),H)S.call(H,it)&&!C.hasOwnProperty(it)&&(j[it]=H[it]);var Q=arguments.length-2;if(Q===1)j.children=K;else if(1<Q){for(var tt=Array(Q),X=0;X<Q;X++)tt[X]=arguments[X+2];j.children=tt}if(z&&z.defaultProps)for(it in Q=z.defaultProps,Q)j[it]===void 0&&(j[it]=Q[it]);return{$$typeof:t,type:z,key:U,ref:G,props:j,_owner:w.current}}function T(z,H){return{$$typeof:t,type:z.type,key:H,ref:z.ref,props:z.props,_owner:z._owner}}function D(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function P(z){var H={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(K){return H[K]})}var L=/\/+/g;function O(z,H){return typeof z=="object"&&z!==null&&z.key!=null?P(""+z.key):H.toString(36)}function N(z,H,K,it,j){var U=typeof z;(U==="undefined"||U==="boolean")&&(z=null);var G=!1;if(z===null)G=!0;else switch(U){case"string":case"number":G=!0;break;case"object":switch(z.$$typeof){case t:case e:G=!0}}if(G)return G=z,j=j(G),z=it===""?"."+O(G,0):it,Array.isArray(j)?(K="",z!=null&&(K=z.replace(L,"$&/")+"/"),N(j,H,K,"",function(X){return X})):j!=null&&(D(j)&&(j=T(j,K+(!j.key||G&&G.key===j.key?"":(""+j.key).replace(L,"$&/")+"/")+z)),H.push(j)),1;if(G=0,it=it===""?".":it+":",Array.isArray(z))for(var Q=0;Q<z.length;Q++){U=z[Q];var tt=it+O(U,Q);G+=N(U,H,K,tt,j)}else if(tt=f(z),typeof tt=="function")for(z=tt.call(z),Q=0;!(U=z.next()).done;)U=U.value,tt=it+O(U,Q++),G+=N(U,H,K,tt,j);else if(U==="object")throw H=""+z,Error(p(31,H==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":H));return G}function B(z,H,K){if(z==null)return z;var it=[],j=0;return N(z,it,"","",function(U){return H.call(K,U,j++)}),it}function V(z){if(z._status===-1){var H=z._result;H=H(),z._status=0,z._result=H,H.then(function(K){z._status===0&&(K=K.default,z._status=1,z._result=K)},function(K){z._status===0&&(z._status=2,z._result=K)})}if(z._status===1)return z._result;throw z._result}var Z={current:null};function $(){var z=Z.current;if(z===null)throw Error(p(321));return z}var et={ReactCurrentDispatcher:Z,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:n};return Xt.Children={map:B,forEach:function(z,H,K){B(z,function(){H.apply(this,arguments)},K)},count:function(z){var H=0;return B(z,function(){H++}),H},toArray:function(z){return B(z,function(H){return H})||[]},only:function(z){if(!D(z))throw Error(p(143));return z}},Xt.Component=y,Xt.PureComponent=m,Xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=et,Xt.cloneElement=function(z,H,K){if(z==null)throw Error(p(267,z));var it=n({},z.props),j=z.key,U=z.ref,G=z._owner;if(H!=null){if(H.ref!==void 0&&(U=H.ref,G=w.current),H.key!==void 0&&(j=""+H.key),z.type&&z.type.defaultProps)var Q=z.type.defaultProps;for(tt in H)S.call(H,tt)&&!C.hasOwnProperty(tt)&&(it[tt]=H[tt]===void 0&&Q!==void 0?Q[tt]:H[tt])}var tt=arguments.length-2;if(tt===1)it.children=K;else if(1<tt){Q=Array(tt);for(var X=0;X<tt;X++)Q[X]=arguments[X+2];it.children=Q}return{$$typeof:t,type:z.type,key:j,ref:U,props:it,_owner:G}},Xt.createContext=function(z,H){return H===void 0&&(H=null),z={$$typeof:r,_calculateChangedBits:H,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider={$$typeof:i,_context:z},z.Consumer=z},Xt.createElement=M,Xt.createFactory=function(z){var H=M.bind(null,z);return H.type=z,H},Xt.createRef=function(){return{current:null}},Xt.forwardRef=function(z){return{$$typeof:o,render:z}},Xt.isValidElement=D,Xt.lazy=function(z){return{$$typeof:s,_payload:{_status:-1,_result:z},_init:V}},Xt.memo=function(z,H){return{$$typeof:a,type:z,compare:H===void 0?null:H}},Xt.useCallback=function(z,H){return $().useCallback(z,H)},Xt.useContext=function(z,H){return $().useContext(z,H)},Xt.useDebugValue=function(){},Xt.useEffect=function(z,H){return $().useEffect(z,H)},Xt.useImperativeHandle=function(z,H,K){return $().useImperativeHandle(z,H,K)},Xt.useLayoutEffect=function(z,H){return $().useLayoutEffect(z,H)},Xt.useMemo=function(z,H){return $().useMemo(z,H)},Xt.useReducer=function(z,H,K){return $().useReducer(z,H,K)},Xt.useRef=function(z){return $().useRef(z)},Xt.useState=function(z){return $().useState(z)},Xt.version="17.0.2",Xt}var Kx;function vg(){return Kx||(Kx=1,qx.exports=hL()),qx.exports}var ue=vg();const xi=Ta(ue),pL=uL({__proto__:null,default:xi},[ue]);/*! *****************************************************************************
|
|
13
|
+
Copyright (c) Microsoft Corporation.
|
|
14
|
+
|
|
15
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
16
|
+
purpose with or without fee is hereby granted.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
19
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
20
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
21
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
22
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
23
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
24
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
25
|
+
***************************************************************************** */var yg=function(n,t){return yg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])},yg(n,t)};function re(n,t){yg(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var mg=function(){return mg=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},mg.apply(this,arguments)};function Kc(n){return typeof n=="function"}var Jx=!1,bi={set useDeprecatedSynchronousErrorHandling(n){if(n){var t=new Error;""+t.stack}Jx=n},get useDeprecatedSynchronousErrorHandling(){return Jx}};function Ia(n){setTimeout(function(){throw n},0)}var Jc={closed:!0,next:function(n){},error:function(n){if(bi.useDeprecatedSynchronousErrorHandling)throw n;Ia(n)},complete:function(){}},tb=(function(){return Array.isArray||(function(n){return n&&typeof n.length=="number"})})();function eb(n){return n!==null&&typeof n=="object"}var dL=(function(){function n(t){return Error.call(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
26
|
+
`+t.map(function(e,i){return i+1+") "+e.toString()}).join(`
|
|
27
|
+
`):"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})(),tf=dL,Kn=(function(){function n(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return n.prototype.unsubscribe=function(){var t;if(!this.closed){var e=this,i=e._parentOrParents,r=e._unsubscribe,o=e._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof n)i.remove(this);else if(i!==null)for(var a=0;a<i.length;++a){var s=i[a];s.remove(this)}if(Kc(r))try{r.call(this)}catch(f){t=f instanceof tf?nb(f.errors):[f]}if(tb(o))for(var a=-1,l=o.length;++a<l;){var c=o[a];if(eb(c))try{c.unsubscribe()}catch(p){t=t||[],p instanceof tf?t=t.concat(nb(p.errors)):t.push(p)}}if(t)throw new tf(t)}},n.prototype.add=function(t){var e=t;if(!t)return n.EMPTY;switch(typeof t){case"function":e=new n(t);case"object":if(e===this||e.closed||typeof e.unsubscribe!="function")return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof n)){var i=e;e=new n,e._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=e._parentOrParents;if(r===null)e._parentOrParents=this;else if(r instanceof n){if(r===this)return e;e._parentOrParents=[r,this]}else if(r.indexOf(this)===-1)r.push(this);else return e;var o=this._subscriptions;return o===null?this._subscriptions=[e]:o.push(e),e},n.prototype.remove=function(t){var e=this._subscriptions;if(e){var i=e.indexOf(t);i!==-1&&e.splice(i,1)}},n.EMPTY=(function(t){return t.closed=!0,t})(new n),n})();function nb(n){return n.reduce(function(t,e){return t.concat(e instanceof tf?e.errors:e)},[])}var ef=(function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()})(),dn=(function(n){re(t,n);function t(e,i,r){var o=n.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=Jc;break;case 1:if(!e){o.destination=Jc;break}if(typeof e=="object"){e instanceof t?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(o)):(o.syncErrorThrowable=!0,o.destination=new ib(o,e));break}default:o.syncErrorThrowable=!0,o.destination=new ib(o,e,i,r);break}return o}return t.prototype[ef]=function(){return this},t.create=function(e,i,r){var o=new t(e,i,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t})(Kn),ib=(function(n){re(t,n);function t(e,i,r,o){var a=n.call(this)||this;a._parentSubscriber=e;var s,l=a;return Kc(i)?s=i:i&&(s=i.next,r=i.error,o=i.complete,i!==Jc&&(l=Object.create(i),Kc(l.unsubscribe)&&a.add(l.unsubscribe.bind(l)),l.unsubscribe=a.unsubscribe.bind(a))),a._context=l,a._next=s,a._error=r,a._complete=o,a}return t.prototype.next=function(e){if(!this.isStopped&&this._next){var i=this._parentSubscriber;!bi.useDeprecatedSynchronousErrorHandling||!i.syncErrorThrowable?this.__tryOrUnsub(this._next,e):this.__tryOrSetError(i,this._next,e)&&this.unsubscribe()}},t.prototype.error=function(e){if(!this.isStopped){var i=this._parentSubscriber,r=bi.useDeprecatedSynchronousErrorHandling;if(this._error)!r||!i.syncErrorThrowable?(this.__tryOrUnsub(this._error,e),this.unsubscribe()):(this.__tryOrSetError(i,this._error,e),this.unsubscribe());else if(i.syncErrorThrowable)r?(i.syncErrorValue=e,i.syncErrorThrown=!0):Ia(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;Ia(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var i=this._parentSubscriber;if(this._complete){var r=function(){return e._complete.call(e._context)};!bi.useDeprecatedSynchronousErrorHandling||!i.syncErrorThrowable?(this.__tryOrUnsub(r),this.unsubscribe()):(this.__tryOrSetError(i,r),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,i){try{e.call(this._context,i)}catch(r){if(this.unsubscribe(),bi.useDeprecatedSynchronousErrorHandling)throw r;Ia(r)}},t.prototype.__tryOrSetError=function(e,i,r){if(!bi.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{i.call(this._context,r)}catch(o){return bi.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=o,e.syncErrorThrown=!0,!0):(Ia(o),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t})(dn);function gL(n){for(;n;){var t=n,e=t.closed,i=t.destination,r=t.isStopped;if(e||r)return!1;i&&i instanceof dn?n=i:n=null}return!0}function vL(n,t,e){if(n){if(n instanceof dn)return n;if(n[ef])return n[ef]()}return!n&&!t&&!e?new dn(Jc):new dn(n,t,e)}var vl=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function rb(n){return n}function yL(n){return n.length===0?rb:n.length===1?n[0]:function(t){return n.reduce(function(e,i){return i(e)},t)}}var Me=(function(){function n(t){this._isScalar=!1,t&&(this._subscribe=t)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(t,e,i){var r=this.operator,o=vL(t,e,i);if(r?o.add(r.call(o,this.source)):o.add(this.source||bi.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),bi.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){bi.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),gL(t)?t.error(e):console.warn(e)}},n.prototype.forEach=function(t,e){var i=this;return e=ob(e),new e(function(r,o){var a;a=i.subscribe(function(s){try{t(s)}catch(l){o(l),a&&a.unsubscribe()}},o,r)})},n.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},n.prototype[vl]=function(){return this},n.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length===0?this:yL(t)(this)},n.prototype.toPromise=function(t){var e=this;return t=ob(t),new t(function(i,r){var o;e.subscribe(function(a){return o=a},function(a){return r(a)},function(){return i(o)})})},n.create=function(t){return new n(t)},n})();function ob(n){if(n||(n=Promise),!n)throw new Error("no Promise impl found");return n}var mL=(function(){function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})(),yl=mL,_L=(function(n){re(t,n);function t(e,i){var r=n.call(this)||this;return r.subject=e,r.subscriber=i,r.closed=!1,r}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,i=e.observers;if(this.subject=null,!(!i||i.length===0||e.isStopped||e.closed)){var r=i.indexOf(this.subscriber);r!==-1&&i.splice(r,1)}}},t})(Kn),xL=(function(n){re(t,n);function t(e){var i=n.call(this,e)||this;return i.destination=e,i}return t})(dn),Da=(function(n){re(t,n);function t(){var e=n.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype[ef]=function(){return new xL(this)},t.prototype.lift=function(e){var i=new ab(this,this);return i.operator=e,i},t.prototype.next=function(e){if(this.closed)throw new yl;if(!this.isStopped)for(var i=this.observers,r=i.length,o=i.slice(),a=0;a<r;a++)o[a].next(e)},t.prototype.error=function(e){if(this.closed)throw new yl;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var i=this.observers,r=i.length,o=i.slice(),a=0;a<r;a++)o[a].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new yl;this.isStopped=!0;for(var e=this.observers,i=e.length,r=e.slice(),o=0;o<i;o++)r[o].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(e){if(this.closed)throw new yl;return n.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){if(this.closed)throw new yl;return this.hasError?(e.error(this.thrownError),Kn.EMPTY):this.isStopped?(e.complete(),Kn.EMPTY):(this.observers.push(e),new _L(this,e))},t.prototype.asObservable=function(){var e=new Me;return e.source=this,e},t.create=function(e,i){return new ab(e,i)},t})(Me),ab=(function(n){re(t,n);function t(e,i){var r=n.call(this)||this;return r.destination=e,r.source=i,r}return t.prototype.next=function(e){var i=this.destination;i&&i.next&&i.next(e)},t.prototype.error=function(e){var i=this.destination;i&&i.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){var i=this.source;return i?this.source.subscribe(e):Kn.EMPTY},t})(Da),bL=(function(n){re(t,n);function t(e,i){return n.call(this)||this}return t.prototype.schedule=function(e,i){return this},t})(Kn),_g=(function(n){re(t,n);function t(e,i){var r=n.call(this,e,i)||this;return r.scheduler=e,r.work=i,r.pending=!1,r}return t.prototype.schedule=function(e,i){if(i===void 0&&(i=0),this.closed)return this;this.state=e;var r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,i)),this.pending=!0,this.delay=i,this.id=this.id||this.requestAsyncId(o,this.id,i),this},t.prototype.requestAsyncId=function(e,i,r){return r===void 0&&(r=0),setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,i,r){if(r===void 0&&(r=0),r!==null&&this.delay===r&&this.pending===!1)return i;clearInterval(i)},t.prototype.execute=function(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,i);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,i){var r=!1,o=void 0;try{this.work(e)}catch(a){r=!0,o=!!a&&a||new Error(a)}if(r)return this.unsubscribe(),o},t.prototype._unsubscribe=function(){var e=this.id,i=this.scheduler,r=i.actions,o=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,o!==-1&&r.splice(o,1),e!=null&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null},t})(bL),wL=(function(n){re(t,n);function t(e,i){var r=n.call(this,e,i)||this;return r.scheduler=e,r.work=i,r}return t.prototype.schedule=function(e,i){return i===void 0&&(i=0),i>0?n.prototype.schedule.call(this,e,i):(this.delay=i,this.state=e,this.scheduler.flush(this),this)},t.prototype.execute=function(e,i){return i>0||this.closed?n.prototype.execute.call(this,e,i):this._execute(e,i)},t.prototype.requestAsyncId=function(e,i,r){return r===void 0&&(r=0),r!==null&&r>0||r===null&&this.delay>0?n.prototype.requestAsyncId.call(this,e,i,r):e.flush(this)},t})(_g),sb=(function(){function n(t,e){e===void 0&&(e=n.now),this.SchedulerAction=t,this.now=e}return n.prototype.schedule=function(t,e,i){return e===void 0&&(e=0),new this.SchedulerAction(this,t).schedule(i,e)},n.now=function(){return Date.now()},n})(),xg=(function(n){re(t,n);function t(e,i){i===void 0&&(i=sb.now);var r=n.call(this,e,function(){return t.delegate&&t.delegate!==r?t.delegate.now():i()})||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return t.prototype.schedule=function(e,i,r){return i===void 0&&(i=0),t.delegate&&t.delegate!==this?t.delegate.schedule(e,i,r):n.prototype.schedule.call(this,e,i,r)},t.prototype.flush=function(e){var i=this.actions;if(this.active){i.push(e);return}var r;this.active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=i.shift());if(this.active=!1,r){for(;e=i.shift();)e.unsubscribe();throw r}},t})(sb),SL=(function(n){re(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t})(xg),lb=new SL(wL),kL=new Me(function(n){return n.complete()});function ub(n){return n?ML(n):kL}function ML(n){return new Me(function(t){return n.schedule(function(){return t.complete()})})}function nf(n){return n&&typeof n.schedule=="function"}var cb=function(n){return function(t){for(var e=0,i=n.length;e<i&&!t.closed;e++)t.next(n[e]);t.complete()}};function bg(n,t){return new Me(function(e){var i=new Kn,r=0;return i.add(t.schedule(function(){if(r===n.length){e.complete();return}e.next(n[r++]),e.closed||i.add(this.schedule())})),i})}function fb(n,t){return t?bg(n,t):new Me(cb(n))}function wg(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=n[n.length-1];return nf(e)?(n.pop(),bg(n,e)):fb(n)}function hb(n,t){return new Me(function(e){return e.error(n)})}var ml=(function(){function n(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue=t==="N"}return n.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},n.prototype.do=function(t,e,i){var r=this.kind;switch(r){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}},n.prototype.accept=function(t,e,i){return t&&typeof t.next=="function"?this.observe(t):this.do(t,e,i)},n.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return wg(this.value);case"E":return hb(this.error);case"C":return ub()}throw new Error("unexpected notification kind value")},n.createNext=function(t){return typeof t<"u"?new n("N",t):n.undefinedValueNotification},n.createError=function(t){return new n("E",void 0,t)},n.createComplete=function(){return n.completeNotification},n.completeNotification=new n("C"),n.undefinedValueNotification=new n("N",void 0),n})();function Sg(n,t){return t===void 0&&(t=0),function(e){return e.lift(new CL(n,t))}}var CL=(function(){function n(t,e){e===void 0&&(e=0),this.scheduler=t,this.delay=e}return n.prototype.call=function(t,e){return e.subscribe(new TL(t,this.scheduler,this.delay))},n})(),TL=(function(n){re(t,n);function t(e,i,r){r===void 0&&(r=0);var o=n.call(this,e)||this;return o.scheduler=i,o.delay=r,o}return t.dispatch=function(e){var i=e.notification,r=e.destination;i.observe(r),this.unsubscribe()},t.prototype.scheduleMessage=function(e){var i=this.destination;i.add(this.scheduler.schedule(t.dispatch,this.delay,new IL(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(ml.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(ml.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(ml.createComplete()),this.unsubscribe()},t})(dn),IL=(function(){function n(t,e){this.notification=t,this.destination=e}return n})(),DL=1,AL=(function(){return Promise.resolve()})(),kg={};function pb(n){return n in kg?(delete kg[n],!0):!1}var db={setImmediate:function(n){var t=DL++;return kg[t]=!0,AL.then(function(){return pb(t)&&n()}),t},clearImmediate:function(n){pb(n)}},PL=(function(n){re(t,n);function t(e,i){var r=n.call(this,e,i)||this;return r.scheduler=e,r.work=i,r}return t.prototype.requestAsyncId=function(e,i,r){return r===void 0&&(r=0),r!==null&&r>0?n.prototype.requestAsyncId.call(this,e,i,r):(e.actions.push(this),e.scheduled||(e.scheduled=db.setImmediate(e.flush.bind(e,null))))},t.prototype.recycleAsyncId=function(e,i,r){if(r===void 0&&(r=0),r!==null&&r>0||r===null&&this.delay>0)return n.prototype.recycleAsyncId.call(this,e,i,r);e.actions.length===0&&(db.clearImmediate(i),e.scheduled=void 0)},t})(_g),LL=(function(n){re(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var i=this.actions,r,o=-1,a=i.length;e=e||i.shift();do if(r=e.execute(e.state,e.delay))break;while(++o<a&&(e=i.shift()));if(this.active=!1,r){for(;++o<a&&(e=i.shift());)e.unsubscribe();throw r}},t})(xg),Mg=new LL(PL),gb=new xg(_g);function Zi(){}function Cg(n,t){return function(e){if(typeof n!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return e.lift(new EL(n,t))}}var EL=(function(){function n(t,e){this.project=t,this.thisArg=e}return n.prototype.call=function(t,e){return e.subscribe(new OL(t,this.project,this.thisArg))},n})(),OL=(function(n){re(t,n);function t(e,i,r){var o=n.call(this,e)||this;return o.project=i,o.count=0,o.thisArg=r||o,o}return t.prototype._next=function(e){var i;try{i=this.project.call(this.thisArg,e,this.count++)}catch(r){this.destination.error(r);return}this.destination.next(i)},t})(dn),Aa=(function(n){re(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.notifyNext=function(e,i,r,o,a){this.destination.next(i)},t.prototype.notifyError=function(e,i){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t})(dn),rf=(function(n){re(t,n);function t(e,i,r){var o=n.call(this)||this;return o.parent=e,o.outerValue=i,o.outerIndex=r,o.index=0,o}return t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t})(dn),RL=function(n){return function(t){return n.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,Ia),t}};function NL(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var of=NL(),zL=function(n){return function(t){var e=n[of]();do{var i=e.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}while(!0);return typeof e.return=="function"&&t.add(function(){e.return&&e.return()}),t}},BL=function(n){return function(t){var e=n[vl]();if(typeof e.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)}},vb=(function(n){return n&&typeof n.length=="number"&&typeof n!="function"});function yb(n){return!!n&&typeof n.subscribe!="function"&&typeof n.then=="function"}var mb=function(n){if(n&&typeof n[vl]=="function")return BL(n);if(vb(n))return cb(n);if(yb(n))return RL(n);if(n&&typeof n[of]=="function")return zL(n);var t=eb(n)?"an invalid object":"'"+n+"'",e="You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(e)};function Pa(n,t,e,i,r){if(r===void 0&&(r=new rf(n,e,i)),!r.closed)return t instanceof Me?t.subscribe(r):mb(t)(r)}function FL(n,t){return new Me(function(e){var i=new Kn;return i.add(t.schedule(function(){var r=n[vl]();i.add(r.subscribe({next:function(o){i.add(t.schedule(function(){return e.next(o)}))},error:function(o){i.add(t.schedule(function(){return e.error(o)}))},complete:function(){i.add(t.schedule(function(){return e.complete()}))}}))})),i})}function VL(n,t){return new Me(function(e){var i=new Kn;return i.add(t.schedule(function(){return n.then(function(r){i.add(t.schedule(function(){e.next(r),i.add(t.schedule(function(){return e.complete()}))}))},function(r){i.add(t.schedule(function(){return e.error(r)}))})})),i})}function HL(n,t){if(!n)throw new Error("Iterable cannot be null");return new Me(function(e){var i=new Kn,r;return i.add(function(){r&&typeof r.return=="function"&&r.return()}),i.add(t.schedule(function(){r=n[of](),i.add(t.schedule(function(){if(!e.closed){var o,a;try{var s=r.next();o=s.value,a=s.done}catch(l){e.error(l);return}a?e.complete():(e.next(o),this.schedule())}}))})),i})}function WL(n){return n&&typeof n[vl]=="function"}function UL(n){return n&&typeof n[of]=="function"}function GL(n,t){if(n!=null){if(WL(n))return FL(n,t);if(yb(n))return VL(n,t);if(vb(n))return bg(n,t);if(UL(n)||typeof n=="string")return HL(n,t)}throw new TypeError((n!==null&&typeof n||n)+" is not observable")}function _l(n,t){return t?GL(n,t):n instanceof Me?n:new Me(mb(n))}function Tg(n,t,e){return e===void 0&&(e=Number.POSITIVE_INFINITY),typeof t=="function"?function(i){return i.pipe(Tg(function(r,o){return _l(n(r,o)).pipe(Cg(function(a,s){return t(r,a,o,s)}))},e))}:(typeof t=="number"&&(e=t),function(i){return i.lift(new jL(n,e))})}var jL=(function(){function n(t,e){e===void 0&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return n.prototype.call=function(t,e){return e.subscribe(new ZL(t,this.project,this.concurrent))},n})(),ZL=(function(n){re(t,n);function t(e,i,r){r===void 0&&(r=Number.POSITIVE_INFINITY);var o=n.call(this,e)||this;return o.project=i,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var i,r=this.index++;try{i=this.project(e,r)}catch(o){this.destination.error(o);return}this.active++,this._innerSub(i,e,r)},t.prototype._innerSub=function(e,i,r){var o=new rf(this,i,r),a=this.destination;a.add(o);var s=Pa(this,e,void 0,void 0,o);s!==o&&a.add(s)},t.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,i,r,o,a){this.destination.next(i)},t.prototype.notifyComplete=function(e){var i=this.buffer;this.remove(e),this.active--,i.length>0?this._next(i.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},t})(Aa);function YL(n){return n===void 0&&(n=Number.POSITIVE_INFINITY),Tg(rb,n)}function XL(n){return new Me(function(t){var e;try{e=n()}catch(r){t.error(r);return}var i=e?_l(e):ub();return i.subscribe(t)})}function Ig(n){return!tb(n)&&n-parseFloat(n)+1>=0}function $L(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=Number.POSITIVE_INFINITY,i=null,r=n[n.length-1];return nf(r)?(i=n.pop(),n.length>1&&typeof n[n.length-1]=="number"&&(e=n.pop())):typeof r=="number"&&(e=n.pop()),i===null&&n.length===1&&n[0]instanceof Me?n[0]:YL(e)(fb(n,i))}var qL=new Me(Zi);function QL(n,t){return function(e){return e.lift(new KL(n,t))}}var KL=(function(){function n(t,e){this.predicate=t,this.thisArg=e}return n.prototype.call=function(t,e){return e.subscribe(new JL(t,this.predicate,this.thisArg))},n})(),JL=(function(n){re(t,n);function t(e,i,r){var o=n.call(this,e)||this;return o.predicate=i,o.thisArg=r,o.count=0,o}return t.prototype._next=function(e){var i;try{i=this.predicate.call(this.thisArg,e,this.count++)}catch(r){this.destination.error(r);return}i&&this.destination.next(e)},t})(dn);function tE(n,t,e){n===void 0&&(n=0);var i=-1;return Ig(t)?i=Number(t)<1&&1||Number(t):nf(t)&&(e=t),nf(e)||(e=gb),new Me(function(r){var o=Ig(n)?n:+n-e.now();return e.schedule(eE,o,{index:0,period:i,subscriber:r})})}function eE(n){var t=n.index,e=n.period,i=n.subscriber;if(i.next(t),!i.closed){if(e===-1)return i.complete();n.index=t+1,this.schedule(n,e)}}function nE(n){return function(t){var e=new iE(n),i=t.lift(e);return e.caught=i}}var iE=(function(){function n(t){this.selector=t}return n.prototype.call=function(t,e){return e.subscribe(new rE(t,this.selector,this.caught))},n})(),rE=(function(n){re(t,n);function t(e,i,r){var o=n.call(this,e)||this;return o.selector=i,o.caught=r,o}return t.prototype.error=function(e){if(!this.isStopped){var i=void 0;try{i=this.selector(e,this.caught)}catch(a){n.prototype.error.call(this,a);return}this._unsubscribeAndRecycle();var r=new rf(this,void 0,void 0);this.add(r);var o=Pa(this,i,void 0,void 0,r);o!==r&&this.add(o)}},t})(Aa);function oE(n){return n instanceof Date&&!isNaN(+n)}function aE(n,t){t===void 0&&(t=gb);var e=oE(n),i=e?+n-t.now():Math.abs(n);return function(r){return r.lift(new sE(i,t))}}var sE=(function(){function n(t,e){this.delay=t,this.scheduler=e}return n.prototype.call=function(t,e){return e.subscribe(new lE(t,this.delay,this.scheduler))},n})(),lE=(function(n){re(t,n);function t(e,i,r){var o=n.call(this,e)||this;return o.delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return t.dispatch=function(e){for(var i=e.source,r=i.queue,o=e.scheduler,a=e.destination;r.length>0&&r[0].time-o.now()<=0;)r.shift().notification.observe(a);if(r.length>0){var s=Math.max(0,r[0].time-o.now());this.schedule(e,s)}else this.unsubscribe(),i.active=!1},t.prototype._schedule=function(e){this.active=!0;var i=this.destination;i.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(this.errored!==!0){var i=this.scheduler,r=new uE(i.now()+this.delay,e);this.queue.push(r),this.active===!1&&this._schedule(i)}},t.prototype._next=function(e){this.scheduleNotification(ml.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(ml.createComplete()),this.unsubscribe()},t})(dn),uE=(function(){function n(t,e){this.time=t,this.notification=e}return n})();function cE(n,t){return function(e){return e.lift(new fE(n))}}var fE=(function(){function n(t){this.delayDurationSelector=t}return n.prototype.call=function(t,e){return e.subscribe(new hE(t,this.delayDurationSelector))},n})(),hE=(function(n){re(t,n);function t(e,i){var r=n.call(this,e)||this;return r.delayDurationSelector=i,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return t.prototype.notifyNext=function(e,i,r,o,a){this.destination.next(e),this.removeSubscription(a),this.tryComplete()},t.prototype.notifyError=function(e,i){this._error(e)},t.prototype.notifyComplete=function(e){var i=this.removeSubscription(e);i&&this.destination.next(i),this.tryComplete()},t.prototype._next=function(e){var i=this.index++;try{var r=this.delayDurationSelector(e,i);r&&this.tryDelay(r,e)}catch(o){this.destination.error(o)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var i=this.delayNotifierSubscriptions.indexOf(e);return i!==-1&&this.delayNotifierSubscriptions.splice(i,1),e.outerValue},t.prototype.tryDelay=function(e,i){var r=Pa(this,e,i);if(r&&!r.closed){var o=this.destination;o.add(r),this.delayNotifierSubscriptions.push(r)}},t.prototype.tryComplete=function(){this.completed&&this.delayNotifierSubscriptions.length===0&&this.destination.complete()},t})(Aa);function pE(n,t){var e=!1;return arguments.length>=2&&(e=!0),function(i){return i.lift(new dE(n,t,e))}}var dE=(function(){function n(t,e,i){i===void 0&&(i=!1),this.accumulator=t,this.seed=e,this.hasSeed=i}return n.prototype.call=function(t,e){return e.subscribe(new gE(t,this.accumulator,this.seed,this.hasSeed))},n})(),gE=(function(n){re(t,n);function t(e,i,r,o){var a=n.call(this,e)||this;return a.accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(!this.hasSeed)this.seed=e,this.destination.next(e);else return this._tryNext(e)},t.prototype._tryNext=function(e){var i=this.index++,r;try{r=this.accumulator(this.seed,e,i)}catch(o){this.destination.error(o)}this.seed=r,this.destination.next(r)},t})(dn);function vE(n){return function(t){return t.lift(new yE(n,t))}}var yE=(function(){function n(t,e){this.notifier=t,this.source=e}return n.prototype.call=function(t,e){return e.subscribe(new mE(t,this.notifier,this.source))},n})(),mE=(function(n){re(t,n);function t(e,i,r){var o=n.call(this,e)||this;return o.notifier=i,o.source=r,o}return t.prototype.error=function(e){if(!this.isStopped){var i=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{i=new Da;try{var a=this.notifier;r=a(i)}catch(s){return n.prototype.error.call(this,s)}o=Pa(this,r)}this._unsubscribeAndRecycle(),this.errors=i,this.retries=r,this.retriesSubscription=o,i.next(e)}},t.prototype._unsubscribe=function(){var e=this,i=e.errors,r=e.retriesSubscription;i&&(i.unsubscribe(),this.errors=null),r&&(r.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype.notifyNext=function(e,i,r,o,a){var s=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=s,this.source.subscribe(this)},t})(Aa),_E=(function(n){re(t,n);function t(e,i,r){i===void 0&&(i=0),r===void 0&&(r=Mg);var o=n.call(this)||this;return o.source=e,o.delayTime=i,o.scheduler=r,(!Ig(i)||i<0)&&(o.delayTime=0),(!r||typeof r.schedule!="function")&&(o.scheduler=Mg),o}return t.create=function(e,i,r){return i===void 0&&(i=0),r===void 0&&(r=Mg),new t(e,i,r)},t.dispatch=function(e){var i=e.source,r=e.subscriber;return this.add(i.subscribe(r))},t.prototype._subscribe=function(e){var i=this.delayTime,r=this.source,o=this.scheduler;return o.schedule(t.dispatch,i,{source:r,subscriber:e})},t})(Me);function xE(n,t){return t===void 0&&(t=0),function(e){return e.lift(new bE(n,t))}}var bE=(function(){function n(t,e){this.scheduler=t,this.delay=e}return n.prototype.call=function(t,e){return new _E(e,this.delay,this.scheduler).subscribe(t)},n})();function wE(n,t){return function(e){return e.lift(new SE(n))}}var SE=(function(){function n(t){this.project=t}return n.prototype.call=function(t,e){return e.subscribe(new kE(t,this.project))},n})(),kE=(function(n){re(t,n);function t(e,i){var r=n.call(this,e)||this;return r.project=i,r.index=0,r}return t.prototype._next=function(e){var i,r=this.index++;try{i=this.project(e,r)}catch(o){this.destination.error(o);return}this._innerSub(i,e,r)},t.prototype._innerSub=function(e,i,r){var o=this.innerSubscription;o&&o.unsubscribe();var a=new rf(this,i,r),s=this.destination;s.add(a),this.innerSubscription=Pa(this,e,void 0,void 0,a),this.innerSubscription!==a&&s.add(this.innerSubscription)},t.prototype._complete=function(){var e=this.innerSubscription;(!e||e.closed)&&n.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(e){var i=this.destination;i.remove(e),this.innerSubscription=null,this.isStopped&&n.prototype._complete.call(this)},t.prototype.notifyNext=function(e,i,r,o,a){this.destination.next(i)},t})(Aa);function ME(n,t,e){return function(i){return i.lift(new CE(n,t,e))}}var CE=(function(){function n(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}return n.prototype.call=function(t,e){return e.subscribe(new TE(t,this.nextOrObserver,this.error,this.complete))},n})(),TE=(function(n){re(t,n);function t(e,i,r,o){var a=n.call(this,e)||this;return a._tapNext=Zi,a._tapError=Zi,a._tapComplete=Zi,a._tapError=r||Zi,a._tapComplete=o||Zi,Kc(i)?(a._context=a,a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||Zi,a._tapError=i.error||Zi,a._tapComplete=i.complete||Zi),a}return t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(i){this.destination.error(i);return}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(i){this.destination.error(i);return}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()},t})(dn);function IE(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return function(e){var i;typeof n[n.length-1]=="function"&&(i=n.pop());var r=n;return e.lift(new DE(r,i))}}var DE=(function(){function n(t,e){this.observables=t,this.project=e}return n.prototype.call=function(t,e){return e.subscribe(new AE(t,this.observables,this.project))},n})(),AE=(function(n){re(t,n);function t(e,i,r){var o=n.call(this,e)||this;o.observables=i,o.project=r,o.toRespond=[];var a=i.length;o.values=new Array(a);for(var s=0;s<a;s++)o.toRespond.push(s);for(var s=0;s<a;s++){var l=i[s];o.add(Pa(o,l,l,s))}return o}return t.prototype.notifyNext=function(e,i,r,o,a){this.values[r]=i;var s=this.toRespond;if(s.length>0){var l=s.indexOf(r);l!==-1&&s.splice(l,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(this.toRespond.length===0){var i=[e].concat(this.values);this.project?this._tryProject(i):this.destination.next(i)}},t.prototype._tryProject=function(e){var i;try{i=this.project.apply(this,e)}catch(r){this.destination.error(r);return}this.destination.next(i)},t})(Aa),Dg={exports:{}},wn={},_b={exports:{}},xb={};/** @license React v0.20.2
|
|
28
|
+
* scheduler.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var bb;function PE(){return bb||(bb=1,(function(n){var t,e,i,r;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();n.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,f=function(){if(l!==null)try{var j=n.unstable_now();l(!0,j),l=null}catch(U){throw setTimeout(f,0),U}};t=function(j){l!==null?setTimeout(t,0,j):(l=j,setTimeout(f,0))},e=function(j,U){c=setTimeout(j,U)},i=function(){clearTimeout(c)},n.unstable_shouldYield=function(){return!1},r=n.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,g=window.clearTimeout;if(typeof console<"u"){var d=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof d!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,_=null,m=-1,x=5,w=0;n.unstable_shouldYield=function(){return n.unstable_now()>=w},r=function(){},n.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<j?Math.floor(1e3/j):5};var S=new MessageChannel,C=S.port2;S.port1.onmessage=function(){if(_!==null){var j=n.unstable_now();w=j+x;try{_(!0,j)?C.postMessage(null):(y=!1,_=null)}catch(U){throw C.postMessage(null),U}}else y=!1},t=function(j){_=j,y||(y=!0,C.postMessage(null))},e=function(j,U){m=p(function(){j(n.unstable_now())},U)},i=function(){g(m),m=-1}}function M(j,U){var G=j.length;j.push(U);t:for(;;){var Q=G-1>>>1,tt=j[Q];if(tt!==void 0&&0<P(tt,U))j[Q]=U,j[G]=tt,G=Q;else break t}}function T(j){return j=j[0],j===void 0?null:j}function D(j){var U=j[0];if(U!==void 0){var G=j.pop();if(G!==U){j[0]=G;t:for(var Q=0,tt=j.length;Q<tt;){var X=2*(Q+1)-1,mt=j[X],ot=X+1,bt=j[ot];if(mt!==void 0&&0>P(mt,G))bt!==void 0&&0>P(bt,mt)?(j[Q]=bt,j[ot]=G,Q=ot):(j[Q]=mt,j[X]=G,Q=X);else if(bt!==void 0&&0>P(bt,G))j[Q]=bt,j[ot]=G,Q=ot;else break t}}return U}return null}function P(j,U){var G=j.sortIndex-U.sortIndex;return G!==0?G:j.id-U.id}var L=[],O=[],N=1,B=null,V=3,Z=!1,$=!1,et=!1;function z(j){for(var U=T(O);U!==null;){if(U.callback===null)D(O);else if(U.startTime<=j)D(O),U.sortIndex=U.expirationTime,M(L,U);else break;U=T(O)}}function H(j){if(et=!1,z(j),!$)if(T(L)!==null)$=!0,t(K);else{var U=T(O);U!==null&&e(H,U.startTime-j)}}function K(j,U){$=!1,et&&(et=!1,i()),Z=!0;var G=V;try{for(z(U),B=T(L);B!==null&&(!(B.expirationTime>U)||j&&!n.unstable_shouldYield());){var Q=B.callback;if(typeof Q=="function"){B.callback=null,V=B.priorityLevel;var tt=Q(B.expirationTime<=U);U=n.unstable_now(),typeof tt=="function"?B.callback=tt:B===T(L)&&D(L),z(U)}else D(L);B=T(L)}if(B!==null)var X=!0;else{var mt=T(O);mt!==null&&e(H,mt.startTime-U),X=!1}return X}finally{B=null,V=G,Z=!1}}var it=r;n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_continueExecution=function(){$||Z||($=!0,t(K))},n.unstable_getCurrentPriorityLevel=function(){return V},n.unstable_getFirstCallbackNode=function(){return T(L)},n.unstable_next=function(j){switch(V){case 1:case 2:case 3:var U=3;break;default:U=V}var G=V;V=U;try{return j()}finally{V=G}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=it,n.unstable_runWithPriority=function(j,U){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var G=V;V=j;try{return U()}finally{V=G}},n.unstable_scheduleCallback=function(j,U,G){var Q=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?Q+G:Q):G=Q,j){case 1:var tt=-1;break;case 2:tt=250;break;case 5:tt=1073741823;break;case 4:tt=1e4;break;default:tt=5e3}return tt=G+tt,j={id:N++,callback:U,priorityLevel:j,startTime:G,expirationTime:tt,sortIndex:-1},G>Q?(j.sortIndex=G,M(O,j),T(L)===null&&j===T(O)&&(et?i():et=!0,e(H,G-Q))):(j.sortIndex=tt,M(L,j),$||Z||($=!0,t(K))),j},n.unstable_wrapCallback=function(j){var U=V;return function(){var G=V;V=U;try{return j.apply(this,arguments)}finally{V=G}}}})(xb)),xb}var wb;function LE(){return wb||(wb=1,_b.exports=PE()),_b.exports}/** @license React v17.0.2
|
|
35
|
+
* react-dom.production.min.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Sb;function EE(){if(Sb)return wn;Sb=1;var n=vg(),t=gg(),e=LE();function i(u){for(var h="https://reactjs.org/docs/error-decoder.html?invariant="+u,v=1;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+u+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(i(227));var r=new Set,o={};function a(u,h){s(u,h),s(u+"Capture",h)}function s(u,h){for(o[u]=h,u=0;u<h.length;u++)r.add(h[u])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),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]*$/,f=Object.prototype.hasOwnProperty,p={},g={};function d(u){return f.call(g,u)?!0:f.call(p,u)?!1:c.test(u)?g[u]=!0:(p[u]=!0,!1)}function y(u,h,v,b){if(v!==null&&v.type===0)return!1;switch(typeof h){case"function":case"symbol":return!0;case"boolean":return b?!1:v!==null?!v.acceptsBooleans:(u=u.toLowerCase().slice(0,5),u!=="data-"&&u!=="aria-");default:return!1}}function _(u,h,v,b){if(h===null||typeof h>"u"||y(u,h,v,b))return!0;if(b)return!1;if(v!==null)switch(v.type){case 3:return!h;case 4:return h===!1;case 5:return isNaN(h);case 6:return isNaN(h)||1>h}return!1}function m(u,h,v,b,k,I,A){this.acceptsBooleans=h===2||h===3||h===4,this.attributeName=b,this.attributeNamespace=k,this.mustUseProperty=v,this.propertyName=u,this.type=h,this.sanitizeURL=I,this.removeEmptyString=A}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(u){x[u]=new m(u,0,!1,u,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(u){var h=u[0];x[h]=new m(h,1,!1,u[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(u){x[u]=new m(u,2,!1,u.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(u){x[u]=new m(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){x[u]=new m(u,3,!1,u.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(u){x[u]=new m(u,3,!0,u,null,!1,!1)}),["capture","download"].forEach(function(u){x[u]=new m(u,4,!1,u,null,!1,!1)}),["cols","rows","size","span"].forEach(function(u){x[u]=new m(u,6,!1,u,null,!1,!1)}),["rowSpan","start"].forEach(function(u){x[u]=new m(u,5,!1,u.toLowerCase(),null,!1,!1)});var w=/[\-:]([a-z])/g;function S(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 h=u.replace(w,S);x[h]=new m(h,1,!1,u,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(u){var h=u.replace(w,S);x[h]=new m(h,1,!1,u,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(u){var h=u.replace(w,S);x[h]=new m(h,1,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(u){x[u]=new m(u,1,!1,u.toLowerCase(),null,!1,!1)}),x.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(u){x[u]=new m(u,1,!1,u.toLowerCase(),null,!0,!0)});function C(u,h,v,b){var k=x.hasOwnProperty(h)?x[h]:null,I=k!==null?k.type===0:b?!1:!(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N");I||(_(h,v,k,b)&&(v=null),b||k===null?d(h)&&(v===null?u.removeAttribute(h):u.setAttribute(h,""+v)):k.mustUseProperty?u[k.propertyName]=v===null?k.type===3?!1:"":v:(h=k.attributeName,b=k.attributeNamespace,v===null?u.removeAttribute(h):(k=k.type,v=k===3||k===4&&v===!0?"":""+v,b?u.setAttributeNS(b,h,v):u.setAttribute(h,v))))}var M=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=60103,D=60106,P=60107,L=60108,O=60114,N=60109,B=60110,V=60112,Z=60113,$=60120,et=60115,z=60116,H=60121,K=60128,it=60129,j=60130,U=60131;if(typeof Symbol=="function"&&Symbol.for){var G=Symbol.for;T=G("react.element"),D=G("react.portal"),P=G("react.fragment"),L=G("react.strict_mode"),O=G("react.profiler"),N=G("react.provider"),B=G("react.context"),V=G("react.forward_ref"),Z=G("react.suspense"),$=G("react.suspense_list"),et=G("react.memo"),z=G("react.lazy"),H=G("react.block"),G("react.scope"),K=G("react.opaque.id"),it=G("react.debug_trace_mode"),j=G("react.offscreen"),U=G("react.legacy_hidden")}var Q=typeof Symbol=="function"&&Symbol.iterator;function tt(u){return u===null||typeof u!="object"?null:(u=Q&&u[Q]||u["@@iterator"],typeof u=="function"?u:null)}var X;function mt(u){if(X===void 0)try{throw Error()}catch(v){var h=v.stack.trim().match(/\n( *(at )?)/);X=h&&h[1]||""}return`
|
|
42
|
+
`+X+u}var ot=!1;function bt(u,h){if(!u||ot)return"";ot=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(h)if(h=function(){throw Error()},Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(F){var b=F}Reflect.construct(u,[],h)}else{try{h.call()}catch(F){b=F}u.call(h.prototype)}else{try{throw Error()}catch(F){b=F}u()}}catch(F){if(F&&b&&typeof F.stack=="string"){for(var k=F.stack.split(`
|
|
43
|
+
`),I=b.stack.split(`
|
|
44
|
+
`),A=k.length-1,R=I.length-1;1<=A&&0<=R&&k[A]!==I[R];)R--;for(;1<=A&&0<=R;A--,R--)if(k[A]!==I[R]){if(A!==1||R!==1)do if(A--,R--,0>R||k[A]!==I[R])return`
|
|
45
|
+
`+k[A].replace(" at new "," at ");while(1<=A&&0<=R);break}}}finally{ot=!1,Error.prepareStackTrace=v}return(u=u?u.displayName||u.name:"")?mt(u):""}function xt(u){switch(u.tag){case 5:return mt(u.type);case 16:return mt("Lazy");case 13:return mt("Suspense");case 19:return mt("SuspenseList");case 0:case 2:case 15:return u=bt(u.type,!1),u;case 11:return u=bt(u.type.render,!1),u;case 22:return u=bt(u.type._render,!1),u;case 1:return u=bt(u.type,!0),u;default:return""}}function ut(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 P:return"Fragment";case D:return"Portal";case O:return"Profiler";case L:return"StrictMode";case Z:return"Suspense";case $:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case B:return(u.displayName||"Context")+".Consumer";case N:return(u._context.displayName||"Context")+".Provider";case V:var h=u.render;return h=h.displayName||h.name||"",u.displayName||(h!==""?"ForwardRef("+h+")":"ForwardRef");case et:return ut(u.type);case H:return ut(u._render);case z:h=u._payload,u=u._init;try{return ut(u(h))}catch{}}return null}function lt(u){switch(typeof u){case"boolean":case"number":case"object":case"string":case"undefined":return u;default:return""}}function qt(u){var h=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function Zt(u){var h=qt(u)?"checked":"value",v=Object.getOwnPropertyDescriptor(u.constructor.prototype,h),b=""+u[h];if(!u.hasOwnProperty(h)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var k=v.get,I=v.set;return Object.defineProperty(u,h,{configurable:!0,get:function(){return k.call(this)},set:function(A){b=""+A,I.call(this,A)}}),Object.defineProperty(u,h,{enumerable:v.enumerable}),{getValue:function(){return b},setValue:function(A){b=""+A},stopTracking:function(){u._valueTracker=null,delete u[h]}}}}function Tt(u){u._valueTracker||(u._valueTracker=Zt(u))}function ne(u){if(!u)return!1;var h=u._valueTracker;if(!h)return!0;var v=h.getValue(),b="";return u&&(b=qt(u)?u.checked?"true":"false":u.value),u=b,u!==v?(h.setValue(u),!0):!1}function Bt(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 me(u,h){var v=h.checked;return t({},h,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??u._wrapperState.initialChecked})}function qe(u,h){var v=h.defaultValue==null?"":h.defaultValue,b=h.checked!=null?h.checked:h.defaultChecked;v=lt(h.value!=null?h.value:v),u._wrapperState={initialChecked:b,initialValue:v,controlled:h.type==="checkbox"||h.type==="radio"?h.checked!=null:h.value!=null}}function _e(u,h){h=h.checked,h!=null&&C(u,"checked",h,!1)}function Tn(u,h){_e(u,h);var v=lt(h.value),b=h.type;if(v!=null)b==="number"?(v===0&&u.value===""||u.value!=v)&&(u.value=""+v):u.value!==""+v&&(u.value=""+v);else if(b==="submit"||b==="reset"){u.removeAttribute("value");return}h.hasOwnProperty("value")?Pe(u,h.type,v):h.hasOwnProperty("defaultValue")&&Pe(u,h.type,lt(h.defaultValue)),h.checked==null&&h.defaultChecked!=null&&(u.defaultChecked=!!h.defaultChecked)}function un(u,h,v){if(h.hasOwnProperty("value")||h.hasOwnProperty("defaultValue")){var b=h.type;if(!(b!=="submit"&&b!=="reset"||h.value!==void 0&&h.value!==null))return;h=""+u._wrapperState.initialValue,v||h===u.value||(u.value=h),u.defaultValue=h}v=u.name,v!==""&&(u.name=""),u.defaultChecked=!!u._wrapperState.initialChecked,v!==""&&(u.name=v)}function Pe(u,h,v){(h!=="number"||Bt(u.ownerDocument)!==u)&&(v==null?u.defaultValue=""+u._wrapperState.initialValue:u.defaultValue!==""+v&&(u.defaultValue=""+v))}function It(u){var h="";return n.Children.forEach(u,function(v){v!=null&&(h+=v)}),h}function pe(u,h){return u=t({children:void 0},h),(h=It(h.children))&&(u.children=h),u}function pi(u,h,v,b){if(u=u.options,h){h={};for(var k=0;k<v.length;k++)h["$"+v[k]]=!0;for(v=0;v<u.length;v++)k=h.hasOwnProperty("$"+u[v].value),u[v].selected!==k&&(u[v].selected=k),k&&b&&(u[v].defaultSelected=!0)}else{for(v=""+lt(v),h=null,k=0;k<u.length;k++){if(u[k].value===v){u[k].selected=!0,b&&(u[k].defaultSelected=!0);return}h!==null||u[k].disabled||(h=u[k])}h!==null&&(h.selected=!0)}}function Jr(u,h){if(h.dangerouslySetInnerHTML!=null)throw Error(i(91));return t({},h,{value:void 0,defaultValue:void 0,children:""+u._wrapperState.initialValue})}function $n(u,h){var v=h.value;if(v==null){if(v=h.children,h=h.defaultValue,v!=null){if(h!=null)throw Error(i(92));if(Array.isArray(v)){if(!(1>=v.length))throw Error(i(93));v=v[0]}h=v}h==null&&(h=""),v=h}u._wrapperState={initialValue:lt(v)}}function x1(u,h){var v=lt(h.value),b=lt(h.defaultValue);v!=null&&(v=""+v,v!==u.value&&(u.value=v),h.defaultValue==null&&u.defaultValue!==v&&(u.defaultValue=v)),b!=null&&(u.defaultValue=""+b)}function b1(u){var h=u.textContent;h===u._wrapperState.initialValue&&h!==""&&h!==null&&(u.value=h)}var Lp={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function w1(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 Ep(u,h){return u==null||u==="http://www.w3.org/1999/xhtml"?w1(h):u==="http://www.w3.org/2000/svg"&&h==="foreignObject"?"http://www.w3.org/1999/xhtml":u}var ec,S1=(function(u){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(h,v,b,k){MSApp.execUnsafeLocalFunction(function(){return u(h,v,b,k)})}:u})(function(u,h){if(u.namespaceURI!==Lp.svg||"innerHTML"in u)u.innerHTML=h;else{for(ec=ec||document.createElement("div"),ec.innerHTML="<svg>"+h.valueOf().toString()+"</svg>",h=ec.firstChild;u.firstChild;)u.removeChild(u.firstChild);for(;h.firstChild;)u.appendChild(h.firstChild)}});function Is(u,h){if(h){var v=u.firstChild;if(v&&v===u.lastChild&&v.nodeType===3){v.nodeValue=h;return}}u.textContent=h}var Ds={animationIterationCount:!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},xA=["Webkit","ms","Moz","O"];Object.keys(Ds).forEach(function(u){xA.forEach(function(h){h=h+u.charAt(0).toUpperCase()+u.substring(1),Ds[h]=Ds[u]})});function k1(u,h,v){return h==null||typeof h=="boolean"||h===""?"":v||typeof h!="number"||h===0||Ds.hasOwnProperty(u)&&Ds[u]?(""+h).trim():h+"px"}function M1(u,h){u=u.style;for(var v in h)if(h.hasOwnProperty(v)){var b=v.indexOf("--")===0,k=k1(v,h[v],b);v==="float"&&(v="cssFloat"),b?u.setProperty(v,k):u[v]=k}}var bA=t({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 Op(u,h){if(h){if(bA[u]&&(h.children!=null||h.dangerouslySetInnerHTML!=null))throw Error(i(137,u));if(h.dangerouslySetInnerHTML!=null){if(h.children!=null)throw Error(i(60));if(!(typeof h.dangerouslySetInnerHTML=="object"&&"__html"in h.dangerouslySetInnerHTML))throw Error(i(61))}if(h.style!=null&&typeof h.style!="object")throw Error(i(62))}}function Rp(u,h){if(u.indexOf("-")===-1)return typeof h.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}}function Np(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var zp=null,na=null,ia=null;function C1(u){if(u=Xs(u)){if(typeof zp!="function")throw Error(i(280));var h=u.stateNode;h&&(h=_c(h),zp(u.stateNode,u.type,h))}}function T1(u){na?ia?ia.push(u):ia=[u]:na=u}function I1(){if(na){var u=na,h=ia;if(ia=na=null,C1(u),h)for(u=0;u<h.length;u++)C1(h[u])}}function Bp(u,h){return u(h)}function D1(u,h,v,b,k){return u(h,v,b,k)}function Fp(){}var A1=Bp,to=!1,Vp=!1;function Hp(){(na!==null||ia!==null)&&(Fp(),I1())}function wA(u,h,v){if(Vp)return u(h,v);Vp=!0;try{return A1(u,h,v)}finally{Vp=!1,Hp()}}function As(u,h){var v=u.stateNode;if(v===null)return null;var b=_c(v);if(b===null)return null;v=b[h];t:switch(h){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(u=u.type,b=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!b;break t;default:u=!1}if(u)return null;if(v&&typeof v!="function")throw Error(i(231,h,typeof v));return v}var Wp=!1;if(l)try{var Ps={};Object.defineProperty(Ps,"passive",{get:function(){Wp=!0}}),window.addEventListener("test",Ps,Ps),window.removeEventListener("test",Ps,Ps)}catch{Wp=!1}function SA(u,h,v,b,k,I,A,R,F){var J=Array.prototype.slice.call(arguments,3);try{h.apply(v,J)}catch(ht){this.onError(ht)}}var Ls=!1,nc=null,ic=!1,Up=null,kA={onError:function(u){Ls=!0,nc=u}};function MA(u,h,v,b,k,I,A,R,F){Ls=!1,nc=null,SA.apply(kA,arguments)}function CA(u,h,v,b,k,I,A,R,F){if(MA.apply(this,arguments),Ls){if(Ls){var J=nc;Ls=!1,nc=null}else throw Error(i(198));ic||(ic=!0,Up=J)}}function eo(u){var h=u,v=u;if(u.alternate)for(;h.return;)h=h.return;else{u=h;do h=u,(h.flags&1026)!==0&&(v=h.return),u=h.return;while(u)}return h.tag===3?v:null}function P1(u){if(u.tag===13){var h=u.memoizedState;if(h===null&&(u=u.alternate,u!==null&&(h=u.memoizedState)),h!==null)return h.dehydrated}return null}function L1(u){if(eo(u)!==u)throw Error(i(188))}function TA(u){var h=u.alternate;if(!h){if(h=eo(u),h===null)throw Error(i(188));return h!==u?null:u}for(var v=u,b=h;;){var k=v.return;if(k===null)break;var I=k.alternate;if(I===null){if(b=k.return,b!==null){v=b;continue}break}if(k.child===I.child){for(I=k.child;I;){if(I===v)return L1(k),u;if(I===b)return L1(k),h;I=I.sibling}throw Error(i(188))}if(v.return!==b.return)v=k,b=I;else{for(var A=!1,R=k.child;R;){if(R===v){A=!0,v=k,b=I;break}if(R===b){A=!0,b=k,v=I;break}R=R.sibling}if(!A){for(R=I.child;R;){if(R===v){A=!0,v=I,b=k;break}if(R===b){A=!0,b=I,v=k;break}R=R.sibling}if(!A)throw Error(i(189))}}if(v.alternate!==b)throw Error(i(190))}if(v.tag!==3)throw Error(i(188));return v.stateNode.current===v?u:h}function E1(u){if(u=TA(u),!u)return null;for(var h=u;;){if(h.tag===5||h.tag===6)return h;if(h.child)h.child.return=h,h=h.child;else{if(h===u)break;for(;!h.sibling;){if(!h.return||h.return===u)return null;h=h.return}h.sibling.return=h.return,h=h.sibling}}return null}function O1(u,h){for(var v=u.alternate;h!==null;){if(h===u||h===v)return!0;h=h.return}return!1}var R1,Gp,N1,z1,jp=!1,di=[],or=null,ar=null,sr=null,Es=new Map,Os=new Map,Rs=[],B1="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 Zp(u,h,v,b,k){return{blockedOn:u,domEventName:h,eventSystemFlags:v|16,nativeEvent:k,targetContainers:[b]}}function F1(u,h){switch(u){case"focusin":case"focusout":or=null;break;case"dragenter":case"dragleave":ar=null;break;case"mouseover":case"mouseout":sr=null;break;case"pointerover":case"pointerout":Es.delete(h.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(h.pointerId)}}function Ns(u,h,v,b,k,I){return u===null||u.nativeEvent!==I?(u=Zp(h,v,b,k,I),h!==null&&(h=Xs(h),h!==null&&Gp(h)),u):(u.eventSystemFlags|=b,h=u.targetContainers,k!==null&&h.indexOf(k)===-1&&h.push(k),u)}function IA(u,h,v,b,k){switch(h){case"focusin":return or=Ns(or,u,h,v,b,k),!0;case"dragenter":return ar=Ns(ar,u,h,v,b,k),!0;case"mouseover":return sr=Ns(sr,u,h,v,b,k),!0;case"pointerover":var I=k.pointerId;return Es.set(I,Ns(Es.get(I)||null,u,h,v,b,k)),!0;case"gotpointercapture":return I=k.pointerId,Os.set(I,Ns(Os.get(I)||null,u,h,v,b,k)),!0}return!1}function DA(u){var h=no(u.target);if(h!==null){var v=eo(h);if(v!==null){if(h=v.tag,h===13){if(h=P1(v),h!==null){u.blockedOn=h,z1(u.lanePriority,function(){e.unstable_runWithPriority(u.priority,function(){N1(v)})});return}}else if(h===3&&v.stateNode.hydrate){u.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}u.blockedOn=null}function rc(u){if(u.blockedOn!==null)return!1;for(var h=u.targetContainers;0<h.length;){var v=Kp(u.domEventName,u.eventSystemFlags,h[0],u.nativeEvent);if(v!==null)return h=Xs(v),h!==null&&Gp(h),u.blockedOn=v,!1;h.shift()}return!0}function V1(u,h,v){rc(u)&&v.delete(h)}function AA(){for(jp=!1;0<di.length;){var u=di[0];if(u.blockedOn!==null){u=Xs(u.blockedOn),u!==null&&R1(u);break}for(var h=u.targetContainers;0<h.length;){var v=Kp(u.domEventName,u.eventSystemFlags,h[0],u.nativeEvent);if(v!==null){u.blockedOn=v;break}h.shift()}u.blockedOn===null&&di.shift()}or!==null&&rc(or)&&(or=null),ar!==null&&rc(ar)&&(ar=null),sr!==null&&rc(sr)&&(sr=null),Es.forEach(V1),Os.forEach(V1)}function zs(u,h){u.blockedOn===h&&(u.blockedOn=null,jp||(jp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,AA)))}function H1(u){function h(k){return zs(k,u)}if(0<di.length){zs(di[0],u);for(var v=1;v<di.length;v++){var b=di[v];b.blockedOn===u&&(b.blockedOn=null)}}for(or!==null&&zs(or,u),ar!==null&&zs(ar,u),sr!==null&&zs(sr,u),Es.forEach(h),Os.forEach(h),v=0;v<Rs.length;v++)b=Rs[v],b.blockedOn===u&&(b.blockedOn=null);for(;0<Rs.length&&(v=Rs[0],v.blockedOn===null);)DA(v),v.blockedOn===null&&Rs.shift()}function oc(u,h){var v={};return v[u.toLowerCase()]=h.toLowerCase(),v["Webkit"+u]="webkit"+h,v["Moz"+u]="moz"+h,v}var ra={animationend:oc("Animation","AnimationEnd"),animationiteration:oc("Animation","AnimationIteration"),animationstart:oc("Animation","AnimationStart"),transitionend:oc("Transition","TransitionEnd")},Yp={},W1={};l&&(W1=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function ac(u){if(Yp[u])return Yp[u];if(!ra[u])return u;var h=ra[u],v;for(v in h)if(h.hasOwnProperty(v)&&v in W1)return Yp[u]=h[v];return u}var U1=ac("animationend"),G1=ac("animationiteration"),j1=ac("animationstart"),Z1=ac("transitionend"),Y1=new Map,Xp=new Map,PA=["abort","abort",U1,"animationEnd",G1,"animationIteration",j1,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Z1,"transitionEnd","waiting","waiting"];function $p(u,h){for(var v=0;v<u.length;v+=2){var b=u[v],k=u[v+1];k="on"+(k[0].toUpperCase()+k.slice(1)),Xp.set(b,h),Y1.set(b,k),a(k,[b])}}var LA=e.unstable_now;LA();var le=8;function oa(u){if((1&u)!==0)return le=15,1;if((2&u)!==0)return le=14,2;if((4&u)!==0)return le=13,4;var h=24&u;return h!==0?(le=12,h):(u&32)!==0?(le=11,32):(h=192&u,h!==0?(le=10,h):(u&256)!==0?(le=9,256):(h=3584&u,h!==0?(le=8,h):(u&4096)!==0?(le=7,4096):(h=4186112&u,h!==0?(le=6,h):(h=62914560&u,h!==0?(le=5,h):u&67108864?(le=4,67108864):(u&134217728)!==0?(le=3,134217728):(h=805306368&u,h!==0?(le=2,h):(1073741824&u)!==0?(le=1,1073741824):(le=8,u))))))}function EA(u){switch(u){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function OA(u){switch(u){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,u))}}function Bs(u,h){var v=u.pendingLanes;if(v===0)return le=0;var b=0,k=0,I=u.expiredLanes,A=u.suspendedLanes,R=u.pingedLanes;if(I!==0)b=I,k=le=15;else if(I=v&134217727,I!==0){var F=I&~A;F!==0?(b=oa(F),k=le):(R&=I,R!==0&&(b=oa(R),k=le))}else I=v&~A,I!==0?(b=oa(I),k=le):R!==0&&(b=oa(R),k=le);if(b===0)return 0;if(b=31-lr(b),b=v&((0>b?0:1<<b)<<1)-1,h!==0&&h!==b&&(h&A)===0){if(oa(h),k<=le)return h;le=k}if(h=u.entangledLanes,h!==0)for(u=u.entanglements,h&=b;0<h;)v=31-lr(h),k=1<<v,b|=u[v],h&=~k;return b}function X1(u){return u=u.pendingLanes&-1073741825,u!==0?u:u&1073741824?1073741824:0}function sc(u,h){switch(u){case 15:return 1;case 14:return 2;case 12:return u=aa(24&~h),u===0?sc(10,h):u;case 10:return u=aa(192&~h),u===0?sc(8,h):u;case 8:return u=aa(3584&~h),u===0&&(u=aa(4186112&~h),u===0&&(u=512)),u;case 2:return h=aa(805306368&~h),h===0&&(h=268435456),h}throw Error(i(358,u))}function aa(u){return u&-u}function qp(u){for(var h=[],v=0;31>v;v++)h.push(u);return h}function lc(u,h,v){u.pendingLanes|=h;var b=h-1;u.suspendedLanes&=b,u.pingedLanes&=b,u=u.eventTimes,h=31-lr(h),u[h]=v}var lr=Math.clz32?Math.clz32:zA,RA=Math.log,NA=Math.LN2;function zA(u){return u===0?32:31-(RA(u)/NA|0)|0}var BA=e.unstable_UserBlockingPriority,FA=e.unstable_runWithPriority,uc=!0;function VA(u,h,v,b){to||Fp();var k=Qp,I=to;to=!0;try{D1(k,u,h,v,b)}finally{(to=I)||Hp()}}function HA(u,h,v,b){FA(BA,Qp.bind(null,u,h,v,b))}function Qp(u,h,v,b){if(uc){var k;if((k=(h&4)===0)&&0<di.length&&-1<B1.indexOf(u))u=Zp(null,u,h,v,b),di.push(u);else{var I=Kp(u,h,v,b);if(I===null)k&&F1(u,b);else{if(k){if(-1<B1.indexOf(u)){u=Zp(I,u,h,v,b),di.push(u);return}if(IA(I,u,h,v,b))return;F1(u,b)}S_(u,h,b,null,v)}}}}function Kp(u,h,v,b){var k=Np(b);if(k=no(k),k!==null){var I=eo(k);if(I===null)k=null;else{var A=I.tag;if(A===13){if(k=P1(I),k!==null)return k;k=null}else if(A===3){if(I.stateNode.hydrate)return I.tag===3?I.stateNode.containerInfo:null;k=null}else I!==k&&(k=null)}}return S_(u,h,b,k,v),null}var ur=null,Jp=null,cc=null;function $1(){if(cc)return cc;var u,h=Jp,v=h.length,b,k="value"in ur?ur.value:ur.textContent,I=k.length;for(u=0;u<v&&h[u]===k[u];u++);var A=v-u;for(b=1;b<=A&&h[v-b]===k[I-b];b++);return cc=k.slice(u,1<b?1-b:void 0)}function fc(u){var h=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&h===13&&(u=13)):u=h,u===10&&(u=13),32<=u||u===13?u:0}function hc(){return!0}function q1(){return!1}function xn(u){function h(v,b,k,I,A){this._reactName=v,this._targetInst=k,this.type=b,this.nativeEvent=I,this.target=A,this.currentTarget=null;for(var R in u)u.hasOwnProperty(R)&&(v=u[R],this[R]=v?v(I):I[R]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?hc:q1,this.isPropagationStopped=q1,this}return t(h.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=hc)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=hc)},persist:function(){},isPersistent:hc}),h}var sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=xn(sa),Fs=t({},sa,{view:0,detail:0}),WA=xn(Fs),ed,nd,Vs,pc=t({},Fs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rd,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!==Vs&&(Vs&&u.type==="mousemove"?(ed=u.screenX-Vs.screenX,nd=u.screenY-Vs.screenY):nd=ed=0,Vs=u),ed)},movementY:function(u){return"movementY"in u?u.movementY:nd}}),Q1=xn(pc),UA=t({},pc,{dataTransfer:0}),GA=xn(UA),jA=t({},Fs,{relatedTarget:0}),id=xn(jA),ZA=t({},sa,{animationName:0,elapsedTime:0,pseudoElement:0}),YA=xn(ZA),XA=t({},sa,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),$A=xn(XA),qA=t({},sa,{data:0}),K1=xn(qA),QA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},KA={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"},JA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tP(u){var h=this.nativeEvent;return h.getModifierState?h.getModifierState(u):(u=JA[u])?!!h[u]:!1}function rd(){return tP}var eP=t({},Fs,{key:function(u){if(u.key){var h=QA[u.key]||u.key;if(h!=="Unidentified")return h}return u.type==="keypress"?(u=fc(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?KA[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rd,charCode:function(u){return u.type==="keypress"?fc(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?fc(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),nP=xn(eP),iP=t({},pc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),J1=xn(iP),rP=t({},Fs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rd}),oP=xn(rP),aP=t({},sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),sP=xn(aP),lP=t({},pc,{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}),uP=xn(lP),cP=[9,13,27,32],od=l&&"CompositionEvent"in window,Hs=null;l&&"documentMode"in document&&(Hs=document.documentMode);var fP=l&&"TextEvent"in window&&!Hs,t_=l&&(!od||Hs&&8<Hs&&11>=Hs),e_=" ",n_=!1;function i_(u,h){switch(u){case"keyup":return cP.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function r_(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var la=!1;function hP(u,h){switch(u){case"compositionend":return r_(h);case"keypress":return h.which!==32?null:(n_=!0,e_);case"textInput":return u=h.data,u===e_&&n_?null:u;default:return null}}function pP(u,h){if(la)return u==="compositionend"||!od&&i_(u,h)?(u=$1(),cc=Jp=ur=null,la=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1<h.char.length)return h.char;if(h.which)return String.fromCharCode(h.which)}return null;case"compositionend":return t_&&h.locale!=="ko"?null:h.data;default:return null}}var dP={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 o_(u){var h=u&&u.nodeName&&u.nodeName.toLowerCase();return h==="input"?!!dP[u.type]:h==="textarea"}function a_(u,h,v,b){T1(b),h=gc(h,"onChange"),0<h.length&&(v=new td("onChange","change",null,v,b),u.push({event:v,listeners:h}))}var Ws=null,Us=null;function gP(u){m_(u,0)}function dc(u){var h=pa(u);if(ne(h))return u}function vP(u,h){if(u==="change")return h}var s_=!1;if(l){var ad;if(l){var sd="oninput"in document;if(!sd){var l_=document.createElement("div");l_.setAttribute("oninput","return;"),sd=typeof l_.oninput=="function"}ad=sd}else ad=!1;s_=ad&&(!document.documentMode||9<document.documentMode)}function u_(){Ws&&(Ws.detachEvent("onpropertychange",c_),Us=Ws=null)}function c_(u){if(u.propertyName==="value"&&dc(Us)){var h=[];if(a_(h,Us,u,Np(u)),u=gP,to)u(h);else{to=!0;try{Bp(u,h)}finally{to=!1,Hp()}}}}function yP(u,h,v){u==="focusin"?(u_(),Ws=h,Us=v,Ws.attachEvent("onpropertychange",c_)):u==="focusout"&&u_()}function mP(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return dc(Us)}function _P(u,h){if(u==="click")return dc(h)}function xP(u,h){if(u==="input"||u==="change")return dc(h)}function bP(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var In=typeof Object.is=="function"?Object.is:bP,wP=Object.prototype.hasOwnProperty;function Gs(u,h){if(In(u,h))return!0;if(typeof u!="object"||u===null||typeof h!="object"||h===null)return!1;var v=Object.keys(u),b=Object.keys(h);if(v.length!==b.length)return!1;for(b=0;b<v.length;b++)if(!wP.call(h,v[b])||!In(u[v[b]],h[v[b]]))return!1;return!0}function f_(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function h_(u,h){var v=f_(u);u=0;for(var b;v;){if(v.nodeType===3){if(b=u+v.textContent.length,u<=h&&b>=h)return{node:v,offset:h-u};u=b}t:{for(;v;){if(v.nextSibling){v=v.nextSibling;break t}v=v.parentNode}v=void 0}v=f_(v)}}function p_(u,h){return u&&h?u===h?!0:u&&u.nodeType===3?!1:h&&h.nodeType===3?p_(u,h.parentNode):"contains"in u?u.contains(h):u.compareDocumentPosition?!!(u.compareDocumentPosition(h)&16):!1:!1}function d_(){for(var u=window,h=Bt();h instanceof u.HTMLIFrameElement;){try{var v=typeof h.contentWindow.location.href=="string"}catch{v=!1}if(v)u=h.contentWindow;else break;h=Bt(u.document)}return h}function ld(u){var h=u&&u.nodeName&&u.nodeName.toLowerCase();return h&&(h==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||h==="textarea"||u.contentEditable==="true")}var SP=l&&"documentMode"in document&&11>=document.documentMode,ua=null,ud=null,js=null,cd=!1;function g_(u,h,v){var b=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;cd||ua==null||ua!==Bt(b)||(b=ua,"selectionStart"in b&&ld(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),js&&Gs(js,b)||(js=b,b=gc(ud,"onSelect"),0<b.length&&(h=new td("onSelect","select",null,h,v),u.push({event:h,listeners:b}),h.target=ua)))}$p("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),$p("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),$p(PA,2);for(var v_="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),fd=0;fd<v_.length;fd++)Xp.set(v_[fd],0);s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kP=new Set("cancel close invalid load scroll toggle".split(" ").concat(Zs));function y_(u,h,v){var b=u.type||"unknown-event";u.currentTarget=v,CA(b,h,void 0,u),u.currentTarget=null}function m_(u,h){h=(h&4)!==0;for(var v=0;v<u.length;v++){var b=u[v],k=b.event;b=b.listeners;t:{var I=void 0;if(h)for(var A=b.length-1;0<=A;A--){var R=b[A],F=R.instance,J=R.currentTarget;if(R=R.listener,F!==I&&k.isPropagationStopped())break t;y_(k,R,J),I=F}else for(A=0;A<b.length;A++){if(R=b[A],F=R.instance,J=R.currentTarget,R=R.listener,F!==I&&k.isPropagationStopped())break t;y_(k,R,J),I=F}}}if(ic)throw u=Up,ic=!1,Up=null,u}function de(u,h){var v=D_(h),b=u+"__bubble";v.has(b)||(w_(h,u,2,!1),v.add(b))}var __="_reactListening"+Math.random().toString(36).slice(2);function x_(u){u[__]||(u[__]=!0,r.forEach(function(h){kP.has(h)||b_(h,!1,u,null),b_(h,!0,u,null)}))}function b_(u,h,v,b){var k=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,I=v;u==="selectionchange"&&v.nodeType!==9&&(I=v.ownerDocument);var A=D_(I),R=u+"__"+(h?"capture":"bubble");A.has(R)||(h&&(k|=4),w_(I,u,k,h),A.add(R))}function w_(u,h,v,b){var k=Xp.get(h);switch(k===void 0?2:k){case 0:k=VA;break;case 1:k=HA;break;default:k=Qp}v=k.bind(null,h,v,u),k=void 0,!Wp||h!=="touchstart"&&h!=="touchmove"&&h!=="wheel"||(k=!0),b?k!==void 0?u.addEventListener(h,v,{capture:!0,passive:k}):u.addEventListener(h,v,!0):k!==void 0?u.addEventListener(h,v,{passive:k}):u.addEventListener(h,v,!1)}function S_(u,h,v,b,k){var I=b;if((h&1)===0&&(h&2)===0&&b!==null)t:for(;;){if(b===null)return;var A=b.tag;if(A===3||A===4){var R=b.stateNode.containerInfo;if(R===k||R.nodeType===8&&R.parentNode===k)break;if(A===4)for(A=b.return;A!==null;){var F=A.tag;if((F===3||F===4)&&(F=A.stateNode.containerInfo,F===k||F.nodeType===8&&F.parentNode===k))return;A=A.return}for(;R!==null;){if(A=no(R),A===null)return;if(F=A.tag,F===5||F===6){b=I=A;continue t}R=R.parentNode}}b=b.return}wA(function(){var J=I,ht=Np(v),Lt=[];t:{var at=Y1.get(u);if(at!==void 0){var yt=td,At=u;switch(u){case"keypress":if(fc(v)===0)break t;case"keydown":case"keyup":yt=nP;break;case"focusin":At="focus",yt=id;break;case"focusout":At="blur",yt=id;break;case"beforeblur":case"afterblur":yt=id;break;case"click":if(v.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":yt=Q1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":yt=GA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":yt=oP;break;case U1:case G1:case j1:yt=YA;break;case Z1:yt=sP;break;case"scroll":yt=WA;break;case"wheel":yt=uP;break;case"copy":case"cut":case"paste":yt=$A;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":yt=J1}var kt=(h&4)!==0,q=!kt&&u==="scroll",W=kt?at!==null?at+"Capture":null:at;kt=[];for(var Y=J,nt;Y!==null;){nt=Y;var rt=nt.stateNode;if(nt.tag===5&&rt!==null&&(nt=rt,W!==null&&(rt=As(Y,W),rt!=null&&kt.push(Ys(Y,rt,nt)))),q)break;Y=Y.return}0<kt.length&&(at=new yt(at,At,null,v,ht),Lt.push({event:at,listeners:kt}))}}if((h&7)===0){t:{if(at=u==="mouseover"||u==="pointerover",yt=u==="mouseout"||u==="pointerout",at&&(h&16)===0&&(At=v.relatedTarget||v.fromElement)&&(no(At)||At[ha]))break t;if((yt||at)&&(at=ht.window===ht?ht:(at=ht.ownerDocument)?at.defaultView||at.parentWindow:window,yt?(At=v.relatedTarget||v.toElement,yt=J,At=At?no(At):null,At!==null&&(q=eo(At),At!==q||At.tag!==5&&At.tag!==6)&&(At=null)):(yt=null,At=J),yt!==At)){if(kt=Q1,rt="onMouseLeave",W="onMouseEnter",Y="mouse",(u==="pointerout"||u==="pointerover")&&(kt=J1,rt="onPointerLeave",W="onPointerEnter",Y="pointer"),q=yt==null?at:pa(yt),nt=At==null?at:pa(At),at=new kt(rt,Y+"leave",yt,v,ht),at.target=q,at.relatedTarget=nt,rt=null,no(ht)===J&&(kt=new kt(W,Y+"enter",At,v,ht),kt.target=nt,kt.relatedTarget=q,rt=kt),q=rt,yt&&At)e:{for(kt=yt,W=At,Y=0,nt=kt;nt;nt=ca(nt))Y++;for(nt=0,rt=W;rt;rt=ca(rt))nt++;for(;0<Y-nt;)kt=ca(kt),Y--;for(;0<nt-Y;)W=ca(W),nt--;for(;Y--;){if(kt===W||W!==null&&kt===W.alternate)break e;kt=ca(kt),W=ca(W)}kt=null}else kt=null;yt!==null&&k_(Lt,at,yt,kt,!1),At!==null&&q!==null&&k_(Lt,q,At,kt,!0)}}t:{if(at=J?pa(J):window,yt=at.nodeName&&at.nodeName.toLowerCase(),yt==="select"||yt==="input"&&at.type==="file")var Ot=vP;else if(o_(at))if(s_)Ot=xP;else{Ot=mP;var vt=yP}else(yt=at.nodeName)&&yt.toLowerCase()==="input"&&(at.type==="checkbox"||at.type==="radio")&&(Ot=_P);if(Ot&&(Ot=Ot(u,J))){a_(Lt,Ot,v,ht);break t}vt&&vt(u,at,J),u==="focusout"&&(vt=at._wrapperState)&&vt.controlled&&at.type==="number"&&Pe(at,"number",at.value)}switch(vt=J?pa(J):window,u){case"focusin":(o_(vt)||vt.contentEditable==="true")&&(ua=vt,ud=J,js=null);break;case"focusout":js=ud=ua=null;break;case"mousedown":cd=!0;break;case"contextmenu":case"mouseup":case"dragend":cd=!1,g_(Lt,v,ht);break;case"selectionchange":if(SP)break;case"keydown":case"keyup":g_(Lt,v,ht)}var Rt;if(od)t:{switch(u){case"compositionstart":var Ht="onCompositionStart";break t;case"compositionend":Ht="onCompositionEnd";break t;case"compositionupdate":Ht="onCompositionUpdate";break t}Ht=void 0}else la?i_(u,v)&&(Ht="onCompositionEnd"):u==="keydown"&&v.keyCode===229&&(Ht="onCompositionStart");Ht&&(t_&&v.locale!=="ko"&&(la||Ht!=="onCompositionStart"?Ht==="onCompositionEnd"&&la&&(Rt=$1()):(ur=ht,Jp="value"in ur?ur.value:ur.textContent,la=!0)),vt=gc(J,Ht),0<vt.length&&(Ht=new K1(Ht,u,null,v,ht),Lt.push({event:Ht,listeners:vt}),Rt?Ht.data=Rt:(Rt=r_(v),Rt!==null&&(Ht.data=Rt)))),(Rt=fP?hP(u,v):pP(u,v))&&(J=gc(J,"onBeforeInput"),0<J.length&&(ht=new K1("onBeforeInput","beforeinput",null,v,ht),Lt.push({event:ht,listeners:J}),ht.data=Rt))}m_(Lt,h)})}function Ys(u,h,v){return{instance:u,listener:h,currentTarget:v}}function gc(u,h){for(var v=h+"Capture",b=[];u!==null;){var k=u,I=k.stateNode;k.tag===5&&I!==null&&(k=I,I=As(u,v),I!=null&&b.unshift(Ys(u,I,k)),I=As(u,h),I!=null&&b.push(Ys(u,I,k))),u=u.return}return b}function ca(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5);return u||null}function k_(u,h,v,b,k){for(var I=h._reactName,A=[];v!==null&&v!==b;){var R=v,F=R.alternate,J=R.stateNode;if(F!==null&&F===b)break;R.tag===5&&J!==null&&(R=J,k?(F=As(v,I),F!=null&&A.unshift(Ys(v,F,R))):k||(F=As(v,I),F!=null&&A.push(Ys(v,F,R)))),v=v.return}A.length!==0&&u.push({event:h,listeners:A})}function vc(){}var hd=null,pd=null;function M_(u,h){switch(u){case"button":case"input":case"select":case"textarea":return!!h.autoFocus}return!1}function dd(u,h){return u==="textarea"||u==="option"||u==="noscript"||typeof h.children=="string"||typeof h.children=="number"||typeof h.dangerouslySetInnerHTML=="object"&&h.dangerouslySetInnerHTML!==null&&h.dangerouslySetInnerHTML.__html!=null}var C_=typeof setTimeout=="function"?setTimeout:void 0,MP=typeof clearTimeout=="function"?clearTimeout:void 0;function gd(u){u.nodeType===1?u.textContent="":u.nodeType===9&&(u=u.body,u!=null&&(u.textContent=""))}function fa(u){for(;u!=null;u=u.nextSibling){var h=u.nodeType;if(h===1||h===3)break}return u}function T_(u){u=u.previousSibling;for(var h=0;u;){if(u.nodeType===8){var v=u.data;if(v==="$"||v==="$!"||v==="$?"){if(h===0)return u;h--}else v==="/$"&&h++}u=u.previousSibling}return null}var vd=0;function CP(u){return{$$typeof:K,toString:u,valueOf:u}}var yc=Math.random().toString(36).slice(2),cr="__reactFiber$"+yc,mc="__reactProps$"+yc,ha="__reactContainer$"+yc,I_="__reactEvents$"+yc;function no(u){var h=u[cr];if(h)return h;for(var v=u.parentNode;v;){if(h=v[ha]||v[cr]){if(v=h.alternate,h.child!==null||v!==null&&v.child!==null)for(u=T_(u);u!==null;){if(v=u[cr])return v;u=T_(u)}return h}u=v,v=u.parentNode}return null}function Xs(u){return u=u[cr]||u[ha],!u||u.tag!==5&&u.tag!==6&&u.tag!==13&&u.tag!==3?null:u}function pa(u){if(u.tag===5||u.tag===6)return u.stateNode;throw Error(i(33))}function _c(u){return u[mc]||null}function D_(u){var h=u[I_];return h===void 0&&(h=u[I_]=new Set),h}var yd=[],da=-1;function fr(u){return{current:u}}function ge(u){0>da||(u.current=yd[da],yd[da]=null,da--)}function xe(u,h){da++,yd[da]=u.current,u.current=h}var hr={},Fe=fr(hr),cn=fr(!1),io=hr;function ga(u,h){var v=u.type.contextTypes;if(!v)return hr;var b=u.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===h)return b.__reactInternalMemoizedMaskedChildContext;var k={},I;for(I in v)k[I]=h[I];return b&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=h,u.__reactInternalMemoizedMaskedChildContext=k),k}function fn(u){return u=u.childContextTypes,u!=null}function xc(){ge(cn),ge(Fe)}function A_(u,h,v){if(Fe.current!==hr)throw Error(i(168));xe(Fe,h),xe(cn,v)}function P_(u,h,v){var b=u.stateNode;if(u=h.childContextTypes,typeof b.getChildContext!="function")return v;b=b.getChildContext();for(var k in b)if(!(k in u))throw Error(i(108,ut(h)||"Unknown",k));return t({},v,b)}function bc(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||hr,io=Fe.current,xe(Fe,u),xe(cn,cn.current),!0}function L_(u,h,v){var b=u.stateNode;if(!b)throw Error(i(169));v?(u=P_(u,h,io),b.__reactInternalMemoizedMergedChildContext=u,ge(cn),ge(Fe),xe(Fe,u)):ge(cn),xe(cn,v)}var md=null,ro=null,TP=e.unstable_runWithPriority,_d=e.unstable_scheduleCallback,xd=e.unstable_cancelCallback,IP=e.unstable_shouldYield,E_=e.unstable_requestPaint,bd=e.unstable_now,DP=e.unstable_getCurrentPriorityLevel,wc=e.unstable_ImmediatePriority,O_=e.unstable_UserBlockingPriority,R_=e.unstable_NormalPriority,N_=e.unstable_LowPriority,z_=e.unstable_IdlePriority,wd={},AP=E_!==void 0?E_:function(){},Hi=null,Sc=null,Sd=!1,B_=bd(),Ve=1e4>B_?bd:function(){return bd()-B_};function va(){switch(DP()){case wc:return 99;case O_:return 98;case R_:return 97;case N_:return 96;case z_:return 95;default:throw Error(i(332))}}function F_(u){switch(u){case 99:return wc;case 98:return O_;case 97:return R_;case 96:return N_;case 95:return z_;default:throw Error(i(332))}}function oo(u,h){return u=F_(u),TP(u,h)}function $s(u,h,v){return u=F_(u),_d(u,h,v)}function gi(){if(Sc!==null){var u=Sc;Sc=null,xd(u)}V_()}function V_(){if(!Sd&&Hi!==null){Sd=!0;var u=0;try{var h=Hi;oo(99,function(){for(;u<h.length;u++){var v=h[u];do v=v(!0);while(v!==null)}}),Hi=null}catch(v){throw Hi!==null&&(Hi=Hi.slice(u+1)),_d(wc,gi),v}finally{Sd=!1}}}var PP=M.ReactCurrentBatchConfig;function qn(u,h){if(u&&u.defaultProps){h=t({},h),u=u.defaultProps;for(var v in u)h[v]===void 0&&(h[v]=u[v]);return h}return h}var kc=fr(null),Mc=null,ya=null,Cc=null;function kd(){Cc=ya=Mc=null}function Md(u){var h=kc.current;ge(kc),u.type._context._currentValue=h}function H_(u,h){for(;u!==null;){var v=u.alternate;if((u.childLanes&h)===h){if(v===null||(v.childLanes&h)===h)break;v.childLanes|=h}else u.childLanes|=h,v!==null&&(v.childLanes|=h);u=u.return}}function ma(u,h){Mc=u,Cc=ya=null,u=u.dependencies,u!==null&&u.firstContext!==null&&((u.lanes&h)!==0&&(Qn=!0),u.firstContext=null)}function Dn(u,h){if(Cc!==u&&h!==!1&&h!==0)if((typeof h!="number"||h===1073741823)&&(Cc=u,h=1073741823),h={context:u,observedBits:h,next:null},ya===null){if(Mc===null)throw Error(i(308));ya=h,Mc.dependencies={lanes:0,firstContext:h,responders:null}}else ya=ya.next=h;return u._currentValue}var pr=!1;function Cd(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function W_(u,h){u=u.updateQueue,h.updateQueue===u&&(h.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function dr(u,h){return{eventTime:u,lane:h,tag:0,payload:null,callback:null,next:null}}function gr(u,h){if(u=u.updateQueue,u!==null){u=u.shared;var v=u.pending;v===null?h.next=h:(h.next=v.next,v.next=h),u.pending=h}}function U_(u,h){var v=u.updateQueue,b=u.alternate;if(b!==null&&(b=b.updateQueue,v===b)){var k=null,I=null;if(v=v.firstBaseUpdate,v!==null){do{var A={eventTime:v.eventTime,lane:v.lane,tag:v.tag,payload:v.payload,callback:v.callback,next:null};I===null?k=I=A:I=I.next=A,v=v.next}while(v!==null);I===null?k=I=h:I=I.next=h}else k=I=h;v={baseState:b.baseState,firstBaseUpdate:k,lastBaseUpdate:I,shared:b.shared,effects:b.effects},u.updateQueue=v;return}u=v.lastBaseUpdate,u===null?v.firstBaseUpdate=h:u.next=h,v.lastBaseUpdate=h}function qs(u,h,v,b){var k=u.updateQueue;pr=!1;var I=k.firstBaseUpdate,A=k.lastBaseUpdate,R=k.shared.pending;if(R!==null){k.shared.pending=null;var F=R,J=F.next;F.next=null,A===null?I=J:A.next=J,A=F;var ht=u.alternate;if(ht!==null){ht=ht.updateQueue;var Lt=ht.lastBaseUpdate;Lt!==A&&(Lt===null?ht.firstBaseUpdate=J:Lt.next=J,ht.lastBaseUpdate=F)}}if(I!==null){Lt=k.baseState,A=0,ht=J=F=null;do{R=I.lane;var at=I.eventTime;if((b&R)===R){ht!==null&&(ht=ht.next={eventTime:at,lane:0,tag:I.tag,payload:I.payload,callback:I.callback,next:null});t:{var yt=u,At=I;switch(R=h,at=v,At.tag){case 1:if(yt=At.payload,typeof yt=="function"){Lt=yt.call(at,Lt,R);break t}Lt=yt;break t;case 3:yt.flags=yt.flags&-4097|64;case 0:if(yt=At.payload,R=typeof yt=="function"?yt.call(at,Lt,R):yt,R==null)break t;Lt=t({},Lt,R);break t;case 2:pr=!0}}I.callback!==null&&(u.flags|=32,R=k.effects,R===null?k.effects=[I]:R.push(I))}else at={eventTime:at,lane:R,tag:I.tag,payload:I.payload,callback:I.callback,next:null},ht===null?(J=ht=at,F=Lt):ht=ht.next=at,A|=R;if(I=I.next,I===null){if(R=k.shared.pending,R===null)break;I=R.next,R.next=null,k.lastBaseUpdate=R,k.shared.pending=null}}while(!0);ht===null&&(F=Lt),k.baseState=F,k.firstBaseUpdate=J,k.lastBaseUpdate=ht,ll|=A,u.lanes=A,u.memoizedState=Lt}}function G_(u,h,v){if(u=h.effects,h.effects=null,u!==null)for(h=0;h<u.length;h++){var b=u[h],k=b.callback;if(k!==null){if(b.callback=null,b=v,typeof k!="function")throw Error(i(191,k));k.call(b)}}}var j_=new n.Component().refs;function Tc(u,h,v,b){h=u.memoizedState,v=v(b,h),v=v==null?h:t({},h,v),u.memoizedState=v,u.lanes===0&&(u.updateQueue.baseState=v)}var Ic={isMounted:function(u){return(u=u._reactInternals)?eo(u)===u:!1},enqueueSetState:function(u,h,v){u=u._reactInternals;var b=bn(),k=mr(u),I=dr(b,k);I.payload=h,v!=null&&(I.callback=v),gr(u,I),_r(u,k,b)},enqueueReplaceState:function(u,h,v){u=u._reactInternals;var b=bn(),k=mr(u),I=dr(b,k);I.tag=1,I.payload=h,v!=null&&(I.callback=v),gr(u,I),_r(u,k,b)},enqueueForceUpdate:function(u,h){u=u._reactInternals;var v=bn(),b=mr(u),k=dr(v,b);k.tag=2,h!=null&&(k.callback=h),gr(u,k),_r(u,b,v)}};function Z_(u,h,v,b,k,I,A){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(b,I,A):h.prototype&&h.prototype.isPureReactComponent?!Gs(v,b)||!Gs(k,I):!0}function Y_(u,h,v){var b=!1,k=hr,I=h.contextType;return typeof I=="object"&&I!==null?I=Dn(I):(k=fn(h)?io:Fe.current,b=h.contextTypes,I=(b=b!=null)?ga(u,k):hr),h=new h(v,I),u.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ic,u.stateNode=h,h._reactInternals=u,b&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=k,u.__reactInternalMemoizedMaskedChildContext=I),h}function X_(u,h,v,b){u=h.state,typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps(v,b),typeof h.UNSAFE_componentWillReceiveProps=="function"&&h.UNSAFE_componentWillReceiveProps(v,b),h.state!==u&&Ic.enqueueReplaceState(h,h.state,null)}function Td(u,h,v,b){var k=u.stateNode;k.props=v,k.state=u.memoizedState,k.refs=j_,Cd(u);var I=h.contextType;typeof I=="object"&&I!==null?k.context=Dn(I):(I=fn(h)?io:Fe.current,k.context=ga(u,I)),qs(u,v,k,b),k.state=u.memoizedState,I=h.getDerivedStateFromProps,typeof I=="function"&&(Tc(u,h,I,v),k.state=u.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof k.getSnapshotBeforeUpdate=="function"||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(h=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),h!==k.state&&Ic.enqueueReplaceState(k,k.state,null),qs(u,v,k,b),k.state=u.memoizedState),typeof k.componentDidMount=="function"&&(u.flags|=4)}var Dc=Array.isArray;function Qs(u,h,v){if(u=v.ref,u!==null&&typeof u!="function"&&typeof u!="object"){if(v._owner){if(v=v._owner,v){if(v.tag!==1)throw Error(i(309));var b=v.stateNode}if(!b)throw Error(i(147,u));var k=""+u;return h!==null&&h.ref!==null&&typeof h.ref=="function"&&h.ref._stringRef===k?h.ref:(h=function(I){var A=b.refs;A===j_&&(A=b.refs={}),I===null?delete A[k]:A[k]=I},h._stringRef=k,h)}if(typeof u!="string")throw Error(i(284));if(!v._owner)throw Error(i(290,u))}return u}function Ac(u,h){if(u.type!=="textarea")throw Error(i(31,Object.prototype.toString.call(h)==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":h))}function $_(u){function h(q,W){if(u){var Y=q.lastEffect;Y!==null?(Y.nextEffect=W,q.lastEffect=W):q.firstEffect=q.lastEffect=W,W.nextEffect=null,W.flags=8}}function v(q,W){if(!u)return null;for(;W!==null;)h(q,W),W=W.sibling;return null}function b(q,W){for(q=new Map;W!==null;)W.key!==null?q.set(W.key,W):q.set(W.index,W),W=W.sibling;return q}function k(q,W){return q=wr(q,W),q.index=0,q.sibling=null,q}function I(q,W,Y){return q.index=Y,u?(Y=q.alternate,Y!==null?(Y=Y.index,Y<W?(q.flags=2,W):Y):(q.flags=2,W)):W}function A(q){return u&&q.alternate===null&&(q.flags=2),q}function R(q,W,Y,nt){return W===null||W.tag!==6?(W=ug(Y,q.mode,nt),W.return=q,W):(W=k(W,Y),W.return=q,W)}function F(q,W,Y,nt){return W!==null&&W.elementType===Y.type?(nt=k(W,Y.props),nt.ref=Qs(q,W,Y),nt.return=q,nt):(nt=Xc(Y.type,Y.key,Y.props,null,q.mode,nt),nt.ref=Qs(q,W,Y),nt.return=q,nt)}function J(q,W,Y,nt){return W===null||W.tag!==4||W.stateNode.containerInfo!==Y.containerInfo||W.stateNode.implementation!==Y.implementation?(W=cg(Y,q.mode,nt),W.return=q,W):(W=k(W,Y.children||[]),W.return=q,W)}function ht(q,W,Y,nt,rt){return W===null||W.tag!==7?(W=Ca(Y,q.mode,nt,rt),W.return=q,W):(W=k(W,Y),W.return=q,W)}function Lt(q,W,Y){if(typeof W=="string"||typeof W=="number")return W=ug(""+W,q.mode,Y),W.return=q,W;if(typeof W=="object"&&W!==null){switch(W.$$typeof){case T:return Y=Xc(W.type,W.key,W.props,null,q.mode,Y),Y.ref=Qs(q,null,W),Y.return=q,Y;case D:return W=cg(W,q.mode,Y),W.return=q,W}if(Dc(W)||tt(W))return W=Ca(W,q.mode,Y,null),W.return=q,W;Ac(q,W)}return null}function at(q,W,Y,nt){var rt=W!==null?W.key:null;if(typeof Y=="string"||typeof Y=="number")return rt!==null?null:R(q,W,""+Y,nt);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case T:return Y.key===rt?Y.type===P?ht(q,W,Y.props.children,nt,rt):F(q,W,Y,nt):null;case D:return Y.key===rt?J(q,W,Y,nt):null}if(Dc(Y)||tt(Y))return rt!==null?null:ht(q,W,Y,nt,null);Ac(q,Y)}return null}function yt(q,W,Y,nt,rt){if(typeof nt=="string"||typeof nt=="number")return q=q.get(Y)||null,R(W,q,""+nt,rt);if(typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case T:return q=q.get(nt.key===null?Y:nt.key)||null,nt.type===P?ht(W,q,nt.props.children,rt,nt.key):F(W,q,nt,rt);case D:return q=q.get(nt.key===null?Y:nt.key)||null,J(W,q,nt,rt)}if(Dc(nt)||tt(nt))return q=q.get(Y)||null,ht(W,q,nt,rt,null);Ac(W,nt)}return null}function At(q,W,Y,nt){for(var rt=null,Ot=null,vt=W,Rt=W=0,Ht=null;vt!==null&&Rt<Y.length;Rt++){vt.index>Rt?(Ht=vt,vt=null):Ht=vt.sibling;var Ft=at(q,vt,Y[Rt],nt);if(Ft===null){vt===null&&(vt=Ht);break}u&&vt&&Ft.alternate===null&&h(q,vt),W=I(Ft,W,Rt),Ot===null?rt=Ft:Ot.sibling=Ft,Ot=Ft,vt=Ht}if(Rt===Y.length)return v(q,vt),rt;if(vt===null){for(;Rt<Y.length;Rt++)vt=Lt(q,Y[Rt],nt),vt!==null&&(W=I(vt,W,Rt),Ot===null?rt=vt:Ot.sibling=vt,Ot=vt);return rt}for(vt=b(q,vt);Rt<Y.length;Rt++)Ht=yt(vt,q,Rt,Y[Rt],nt),Ht!==null&&(u&&Ht.alternate!==null&&vt.delete(Ht.key===null?Rt:Ht.key),W=I(Ht,W,Rt),Ot===null?rt=Ht:Ot.sibling=Ht,Ot=Ht);return u&&vt.forEach(function(Sr){return h(q,Sr)}),rt}function kt(q,W,Y,nt){var rt=tt(Y);if(typeof rt!="function")throw Error(i(150));if(Y=rt.call(Y),Y==null)throw Error(i(151));for(var Ot=rt=null,vt=W,Rt=W=0,Ht=null,Ft=Y.next();vt!==null&&!Ft.done;Rt++,Ft=Y.next()){vt.index>Rt?(Ht=vt,vt=null):Ht=vt.sibling;var Sr=at(q,vt,Ft.value,nt);if(Sr===null){vt===null&&(vt=Ht);break}u&&vt&&Sr.alternate===null&&h(q,vt),W=I(Sr,W,Rt),Ot===null?rt=Sr:Ot.sibling=Sr,Ot=Sr,vt=Ht}if(Ft.done)return v(q,vt),rt;if(vt===null){for(;!Ft.done;Rt++,Ft=Y.next())Ft=Lt(q,Ft.value,nt),Ft!==null&&(W=I(Ft,W,Rt),Ot===null?rt=Ft:Ot.sibling=Ft,Ot=Ft);return rt}for(vt=b(q,vt);!Ft.done;Rt++,Ft=Y.next())Ft=yt(vt,q,Rt,Ft.value,nt),Ft!==null&&(u&&Ft.alternate!==null&&vt.delete(Ft.key===null?Rt:Ft.key),W=I(Ft,W,Rt),Ot===null?rt=Ft:Ot.sibling=Ft,Ot=Ft);return u&&vt.forEach(function(lL){return h(q,lL)}),rt}return function(q,W,Y,nt){var rt=typeof Y=="object"&&Y!==null&&Y.type===P&&Y.key===null;rt&&(Y=Y.props.children);var Ot=typeof Y=="object"&&Y!==null;if(Ot)switch(Y.$$typeof){case T:t:{for(Ot=Y.key,rt=W;rt!==null;){if(rt.key===Ot){switch(rt.tag){case 7:if(Y.type===P){v(q,rt.sibling),W=k(rt,Y.props.children),W.return=q,q=W;break t}break;default:if(rt.elementType===Y.type){v(q,rt.sibling),W=k(rt,Y.props),W.ref=Qs(q,rt,Y),W.return=q,q=W;break t}}v(q,rt);break}else h(q,rt);rt=rt.sibling}Y.type===P?(W=Ca(Y.props.children,q.mode,nt,Y.key),W.return=q,q=W):(nt=Xc(Y.type,Y.key,Y.props,null,q.mode,nt),nt.ref=Qs(q,W,Y),nt.return=q,q=nt)}return A(q);case D:t:{for(rt=Y.key;W!==null;){if(W.key===rt)if(W.tag===4&&W.stateNode.containerInfo===Y.containerInfo&&W.stateNode.implementation===Y.implementation){v(q,W.sibling),W=k(W,Y.children||[]),W.return=q,q=W;break t}else{v(q,W);break}else h(q,W);W=W.sibling}W=cg(Y,q.mode,nt),W.return=q,q=W}return A(q)}if(typeof Y=="string"||typeof Y=="number")return Y=""+Y,W!==null&&W.tag===6?(v(q,W.sibling),W=k(W,Y),W.return=q,q=W):(v(q,W),W=ug(Y,q.mode,nt),W.return=q,q=W),A(q);if(Dc(Y))return At(q,W,Y,nt);if(tt(Y))return kt(q,W,Y,nt);if(Ot&&Ac(q,Y),typeof Y>"u"&&!rt)switch(q.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,ut(q.type)||"Component"))}return v(q,W)}}var Pc=$_(!0),q_=$_(!1),Ks={},vi=fr(Ks),Js=fr(Ks),tl=fr(Ks);function ao(u){if(u===Ks)throw Error(i(174));return u}function Id(u,h){switch(xe(tl,h),xe(Js,u),xe(vi,Ks),u=h.nodeType,u){case 9:case 11:h=(h=h.documentElement)?h.namespaceURI:Ep(null,"");break;default:u=u===8?h.parentNode:h,h=u.namespaceURI||null,u=u.tagName,h=Ep(h,u)}ge(vi),xe(vi,h)}function _a(){ge(vi),ge(Js),ge(tl)}function Q_(u){ao(tl.current);var h=ao(vi.current),v=Ep(h,u.type);h!==v&&(xe(Js,u),xe(vi,v))}function Dd(u){Js.current===u&&(ge(vi),ge(Js))}var be=fr(0);function Lc(u){for(var h=u;h!==null;){if(h.tag===13){var v=h.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||v.data==="$!"))return h}else if(h.tag===19&&h.memoizedProps.revealOrder!==void 0){if((h.flags&64)!==0)return h}else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===u)break;for(;h.sibling===null;){if(h.return===null||h.return===u)return null;h=h.return}h.sibling.return=h.return,h=h.sibling}return null}var Wi=null,vr=null,yi=!1;function K_(u,h){var v=Ln(5,null,null,0);v.elementType="DELETED",v.type="DELETED",v.stateNode=h,v.return=u,v.flags=8,u.lastEffect!==null?(u.lastEffect.nextEffect=v,u.lastEffect=v):u.firstEffect=u.lastEffect=v}function J_(u,h){switch(u.tag){case 5:var v=u.type;return h=h.nodeType!==1||v.toLowerCase()!==h.nodeName.toLowerCase()?null:h,h!==null?(u.stateNode=h,!0):!1;case 6:return h=u.pendingProps===""||h.nodeType!==3?null:h,h!==null?(u.stateNode=h,!0):!1;case 13:return!1;default:return!1}}function Ad(u){if(yi){var h=vr;if(h){var v=h;if(!J_(u,h)){if(h=fa(v.nextSibling),!h||!J_(u,h)){u.flags=u.flags&-1025|2,yi=!1,Wi=u;return}K_(Wi,v)}Wi=u,vr=fa(h.firstChild)}else u.flags=u.flags&-1025|2,yi=!1,Wi=u}}function tx(u){for(u=u.return;u!==null&&u.tag!==5&&u.tag!==3&&u.tag!==13;)u=u.return;Wi=u}function Ec(u){if(u!==Wi)return!1;if(!yi)return tx(u),yi=!0,!1;var h=u.type;if(u.tag!==5||h!=="head"&&h!=="body"&&!dd(h,u.memoizedProps))for(h=vr;h;)K_(u,h),h=fa(h.nextSibling);if(tx(u),u.tag===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));t:{for(u=u.nextSibling,h=0;u;){if(u.nodeType===8){var v=u.data;if(v==="/$"){if(h===0){vr=fa(u.nextSibling);break t}h--}else v!=="$"&&v!=="$!"&&v!=="$?"||h++}u=u.nextSibling}vr=null}}else vr=Wi?fa(u.stateNode.nextSibling):null;return!0}function Pd(){vr=Wi=null,yi=!1}var xa=[];function Ld(){for(var u=0;u<xa.length;u++)xa[u]._workInProgressVersionPrimary=null;xa.length=0}var el=M.ReactCurrentDispatcher,An=M.ReactCurrentBatchConfig,nl=0,ke=null,He=null,Ee=null,Oc=!1,il=!1;function hn(){throw Error(i(321))}function Ed(u,h){if(h===null)return!1;for(var v=0;v<h.length&&v<u.length;v++)if(!In(u[v],h[v]))return!1;return!0}function Od(u,h,v,b,k,I){if(nl=I,ke=h,h.memoizedState=null,h.updateQueue=null,h.lanes=0,el.current=u===null||u.memoizedState===null?EP:OP,u=v(b,k),il){I=0;do{if(il=!1,!(25>I))throw Error(i(301));I+=1,Ee=He=null,h.updateQueue=null,el.current=RP,u=v(b,k)}while(il)}if(el.current=Bc,h=He!==null&&He.next!==null,nl=0,Ee=He=ke=null,Oc=!1,h)throw Error(i(300));return u}function so(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ee===null?ke.memoizedState=Ee=u:Ee=Ee.next=u,Ee}function lo(){if(He===null){var u=ke.alternate;u=u!==null?u.memoizedState:null}else u=He.next;var h=Ee===null?ke.memoizedState:Ee.next;if(h!==null)Ee=h,He=u;else{if(u===null)throw Error(i(310));He=u,u={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Ee===null?ke.memoizedState=Ee=u:Ee=Ee.next=u}return Ee}function mi(u,h){return typeof h=="function"?h(u):h}function rl(u){var h=lo(),v=h.queue;if(v===null)throw Error(i(311));v.lastRenderedReducer=u;var b=He,k=b.baseQueue,I=v.pending;if(I!==null){if(k!==null){var A=k.next;k.next=I.next,I.next=A}b.baseQueue=k=I,v.pending=null}if(k!==null){k=k.next,b=b.baseState;var R=A=I=null,F=k;do{var J=F.lane;if((nl&J)===J)R!==null&&(R=R.next={lane:0,action:F.action,eagerReducer:F.eagerReducer,eagerState:F.eagerState,next:null}),b=F.eagerReducer===u?F.eagerState:u(b,F.action);else{var ht={lane:J,action:F.action,eagerReducer:F.eagerReducer,eagerState:F.eagerState,next:null};R===null?(A=R=ht,I=b):R=R.next=ht,ke.lanes|=J,ll|=J}F=F.next}while(F!==null&&F!==k);R===null?I=b:R.next=A,In(b,h.memoizedState)||(Qn=!0),h.memoizedState=b,h.baseState=I,h.baseQueue=R,v.lastRenderedState=b}return[h.memoizedState,v.dispatch]}function ol(u){var h=lo(),v=h.queue;if(v===null)throw Error(i(311));v.lastRenderedReducer=u;var b=v.dispatch,k=v.pending,I=h.memoizedState;if(k!==null){v.pending=null;var A=k=k.next;do I=u(I,A.action),A=A.next;while(A!==k);In(I,h.memoizedState)||(Qn=!0),h.memoizedState=I,h.baseQueue===null&&(h.baseState=I),v.lastRenderedState=I}return[I,b]}function ex(u,h,v){var b=h._getVersion;b=b(h._source);var k=h._workInProgressVersionPrimary;if(k!==null?u=k===b:(u=u.mutableReadLanes,(u=(nl&u)===u)&&(h._workInProgressVersionPrimary=b,xa.push(h))),u)return v(h._source);throw xa.push(h),Error(i(350))}function nx(u,h,v,b){var k=Qe;if(k===null)throw Error(i(349));var I=h._getVersion,A=I(h._source),R=el.current,F=R.useState(function(){return ex(k,h,v)}),J=F[1],ht=F[0];F=Ee;var Lt=u.memoizedState,at=Lt.refs,yt=at.getSnapshot,At=Lt.source;Lt=Lt.subscribe;var kt=ke;return u.memoizedState={refs:at,source:h,subscribe:b},R.useEffect(function(){at.getSnapshot=v,at.setSnapshot=J;var q=I(h._source);if(!In(A,q)){q=v(h._source),In(ht,q)||(J(q),q=mr(kt),k.mutableReadLanes|=q&k.pendingLanes),q=k.mutableReadLanes,k.entangledLanes|=q;for(var W=k.entanglements,Y=q;0<Y;){var nt=31-lr(Y),rt=1<<nt;W[nt]|=q,Y&=~rt}}},[v,h,b]),R.useEffect(function(){return b(h._source,function(){var q=at.getSnapshot,W=at.setSnapshot;try{W(q(h._source));var Y=mr(kt);k.mutableReadLanes|=Y&k.pendingLanes}catch(nt){W(function(){throw nt})}})},[h,b]),In(yt,v)&&In(At,h)&&In(Lt,b)||(u={pending:null,dispatch:null,lastRenderedReducer:mi,lastRenderedState:ht},u.dispatch=J=Bd.bind(null,ke,u),F.queue=u,F.baseQueue=null,ht=ex(k,h,v),F.memoizedState=F.baseState=ht),ht}function ix(u,h,v){var b=lo();return nx(b,u,h,v)}function al(u){var h=so();return typeof u=="function"&&(u=u()),h.memoizedState=h.baseState=u,u=h.queue={pending:null,dispatch:null,lastRenderedReducer:mi,lastRenderedState:u},u=u.dispatch=Bd.bind(null,ke,u),[h.memoizedState,u]}function Rc(u,h,v,b){return u={tag:u,create:h,destroy:v,deps:b,next:null},h=ke.updateQueue,h===null?(h={lastEffect:null},ke.updateQueue=h,h.lastEffect=u.next=u):(v=h.lastEffect,v===null?h.lastEffect=u.next=u:(b=v.next,v.next=u,u.next=b,h.lastEffect=u)),u}function rx(u){var h=so();return u={current:u},h.memoizedState=u}function Nc(){return lo().memoizedState}function Rd(u,h,v,b){var k=so();ke.flags|=u,k.memoizedState=Rc(1|h,v,void 0,b===void 0?null:b)}function Nd(u,h,v,b){var k=lo();b=b===void 0?null:b;var I=void 0;if(He!==null){var A=He.memoizedState;if(I=A.destroy,b!==null&&Ed(b,A.deps)){Rc(h,v,I,b);return}}ke.flags|=u,k.memoizedState=Rc(1|h,v,I,b)}function ox(u,h){return Rd(516,4,u,h)}function zc(u,h){return Nd(516,4,u,h)}function ax(u,h){return Nd(4,2,u,h)}function sx(u,h){if(typeof h=="function")return u=u(),h(u),function(){h(null)};if(h!=null)return u=u(),h.current=u,function(){h.current=null}}function lx(u,h,v){return v=v!=null?v.concat([u]):null,Nd(4,2,sx.bind(null,h,u),v)}function zd(){}function ux(u,h){var v=lo();h=h===void 0?null:h;var b=v.memoizedState;return b!==null&&h!==null&&Ed(h,b[1])?b[0]:(v.memoizedState=[u,h],u)}function cx(u,h){var v=lo();h=h===void 0?null:h;var b=v.memoizedState;return b!==null&&h!==null&&Ed(h,b[1])?b[0]:(u=u(),v.memoizedState=[u,h],u)}function LP(u,h){var v=va();oo(98>v?98:v,function(){u(!0)}),oo(97<v?97:v,function(){var b=An.transition;An.transition=1;try{u(!1),h()}finally{An.transition=b}})}function Bd(u,h,v){var b=bn(),k=mr(u),I={lane:k,action:v,eagerReducer:null,eagerState:null,next:null},A=h.pending;if(A===null?I.next=I:(I.next=A.next,A.next=I),h.pending=I,A=u.alternate,u===ke||A!==null&&A===ke)il=Oc=!0;else{if(u.lanes===0&&(A===null||A.lanes===0)&&(A=h.lastRenderedReducer,A!==null))try{var R=h.lastRenderedState,F=A(R,v);if(I.eagerReducer=A,I.eagerState=F,In(F,R))return}catch{}finally{}_r(u,k,b)}}var Bc={readContext:Dn,useCallback:hn,useContext:hn,useEffect:hn,useImperativeHandle:hn,useLayoutEffect:hn,useMemo:hn,useReducer:hn,useRef:hn,useState:hn,useDebugValue:hn,useDeferredValue:hn,useTransition:hn,useMutableSource:hn,useOpaqueIdentifier:hn,unstable_isNewReconciler:!1},EP={readContext:Dn,useCallback:function(u,h){return so().memoizedState=[u,h===void 0?null:h],u},useContext:Dn,useEffect:ox,useImperativeHandle:function(u,h,v){return v=v!=null?v.concat([u]):null,Rd(4,2,sx.bind(null,h,u),v)},useLayoutEffect:function(u,h){return Rd(4,2,u,h)},useMemo:function(u,h){var v=so();return h=h===void 0?null:h,u=u(),v.memoizedState=[u,h],u},useReducer:function(u,h,v){var b=so();return h=v!==void 0?v(h):h,b.memoizedState=b.baseState=h,u=b.queue={pending:null,dispatch:null,lastRenderedReducer:u,lastRenderedState:h},u=u.dispatch=Bd.bind(null,ke,u),[b.memoizedState,u]},useRef:rx,useState:al,useDebugValue:zd,useDeferredValue:function(u){var h=al(u),v=h[0],b=h[1];return ox(function(){var k=An.transition;An.transition=1;try{b(u)}finally{An.transition=k}},[u]),v},useTransition:function(){var u=al(!1),h=u[0];return u=LP.bind(null,u[1]),rx(u),[u,h]},useMutableSource:function(u,h,v){var b=so();return b.memoizedState={refs:{getSnapshot:h,setSnapshot:null},source:u,subscribe:v},nx(b,u,h,v)},useOpaqueIdentifier:function(){if(yi){var u=!1,h=CP(function(){throw u||(u=!0,v("r:"+(vd++).toString(36))),Error(i(355))}),v=al(h)[1];return(ke.mode&2)===0&&(ke.flags|=516,Rc(5,function(){v("r:"+(vd++).toString(36))},void 0,null)),h}return h="r:"+(vd++).toString(36),al(h),h},unstable_isNewReconciler:!1},OP={readContext:Dn,useCallback:ux,useContext:Dn,useEffect:zc,useImperativeHandle:lx,useLayoutEffect:ax,useMemo:cx,useReducer:rl,useRef:Nc,useState:function(){return rl(mi)},useDebugValue:zd,useDeferredValue:function(u){var h=rl(mi),v=h[0],b=h[1];return zc(function(){var k=An.transition;An.transition=1;try{b(u)}finally{An.transition=k}},[u]),v},useTransition:function(){var u=rl(mi)[0];return[Nc().current,u]},useMutableSource:ix,useOpaqueIdentifier:function(){return rl(mi)[0]},unstable_isNewReconciler:!1},RP={readContext:Dn,useCallback:ux,useContext:Dn,useEffect:zc,useImperativeHandle:lx,useLayoutEffect:ax,useMemo:cx,useReducer:ol,useRef:Nc,useState:function(){return ol(mi)},useDebugValue:zd,useDeferredValue:function(u){var h=ol(mi),v=h[0],b=h[1];return zc(function(){var k=An.transition;An.transition=1;try{b(u)}finally{An.transition=k}},[u]),v},useTransition:function(){var u=ol(mi)[0];return[Nc().current,u]},useMutableSource:ix,useOpaqueIdentifier:function(){return ol(mi)[0]},unstable_isNewReconciler:!1},NP=M.ReactCurrentOwner,Qn=!1;function pn(u,h,v,b){h.child=u===null?q_(h,null,v,b):Pc(h,u.child,v,b)}function fx(u,h,v,b,k){v=v.render;var I=h.ref;return ma(h,k),b=Od(u,h,v,b,I,k),u!==null&&!Qn?(h.updateQueue=u.updateQueue,h.flags&=-517,u.lanes&=~k,Ui(u,h,k)):(h.flags|=1,pn(u,h,b,k),h.child)}function hx(u,h,v,b,k,I){if(u===null){var A=v.type;return typeof A=="function"&&!sg(A)&&A.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(h.tag=15,h.type=A,px(u,h,A,b,k,I)):(u=Xc(v.type,null,b,h,h.mode,I),u.ref=h.ref,u.return=h,h.child=u)}return A=u.child,(k&I)===0&&(k=A.memoizedProps,v=v.compare,v=v!==null?v:Gs,v(k,b)&&u.ref===h.ref)?Ui(u,h,I):(h.flags|=1,u=wr(A,b),u.ref=h.ref,u.return=h,h.child=u)}function px(u,h,v,b,k,I){if(u!==null&&Gs(u.memoizedProps,b)&&u.ref===h.ref)if(Qn=!1,(I&k)!==0)(u.flags&16384)!==0&&(Qn=!0);else return h.lanes=u.lanes,Ui(u,h,I);return Vd(u,h,v,b,I)}function Fd(u,h,v){var b=h.pendingProps,k=b.children,I=u!==null?u.memoizedState:null;if(b.mode==="hidden"||b.mode==="unstable-defer-without-hiding")if((h.mode&4)===0)h.memoizedState={baseLanes:0},Yc(h,v);else if((v&1073741824)!==0)h.memoizedState={baseLanes:0},Yc(h,I!==null?I.baseLanes:v);else return u=I!==null?I.baseLanes|v:v,h.lanes=h.childLanes=1073741824,h.memoizedState={baseLanes:u},Yc(h,u),null;else I!==null?(b=I.baseLanes|v,h.memoizedState=null):b=v,Yc(h,b);return pn(u,h,k,v),h.child}function dx(u,h){var v=h.ref;(u===null&&v!==null||u!==null&&u.ref!==v)&&(h.flags|=128)}function Vd(u,h,v,b,k){var I=fn(v)?io:Fe.current;return I=ga(h,I),ma(h,k),v=Od(u,h,v,b,I,k),u!==null&&!Qn?(h.updateQueue=u.updateQueue,h.flags&=-517,u.lanes&=~k,Ui(u,h,k)):(h.flags|=1,pn(u,h,v,k),h.child)}function gx(u,h,v,b,k){if(fn(v)){var I=!0;bc(h)}else I=!1;if(ma(h,k),h.stateNode===null)u!==null&&(u.alternate=null,h.alternate=null,h.flags|=2),Y_(h,v,b),Td(h,v,b,k),b=!0;else if(u===null){var A=h.stateNode,R=h.memoizedProps;A.props=R;var F=A.context,J=v.contextType;typeof J=="object"&&J!==null?J=Dn(J):(J=fn(v)?io:Fe.current,J=ga(h,J));var ht=v.getDerivedStateFromProps,Lt=typeof ht=="function"||typeof A.getSnapshotBeforeUpdate=="function";Lt||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(R!==b||F!==J)&&X_(h,A,b,J),pr=!1;var at=h.memoizedState;A.state=at,qs(h,b,A,k),F=h.memoizedState,R!==b||at!==F||cn.current||pr?(typeof ht=="function"&&(Tc(h,v,ht,b),F=h.memoizedState),(R=pr||Z_(h,v,R,b,at,F,J))?(Lt||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(h.flags|=4)):(typeof A.componentDidMount=="function"&&(h.flags|=4),h.memoizedProps=b,h.memoizedState=F),A.props=b,A.state=F,A.context=J,b=R):(typeof A.componentDidMount=="function"&&(h.flags|=4),b=!1)}else{A=h.stateNode,W_(u,h),R=h.memoizedProps,J=h.type===h.elementType?R:qn(h.type,R),A.props=J,Lt=h.pendingProps,at=A.context,F=v.contextType,typeof F=="object"&&F!==null?F=Dn(F):(F=fn(v)?io:Fe.current,F=ga(h,F));var yt=v.getDerivedStateFromProps;(ht=typeof yt=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(R!==Lt||at!==F)&&X_(h,A,b,F),pr=!1,at=h.memoizedState,A.state=at,qs(h,b,A,k);var At=h.memoizedState;R!==Lt||at!==At||cn.current||pr?(typeof yt=="function"&&(Tc(h,v,yt,b),At=h.memoizedState),(J=pr||Z_(h,v,J,b,at,At,F))?(ht||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(b,At,F),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(b,At,F)),typeof A.componentDidUpdate=="function"&&(h.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(h.flags|=256)):(typeof A.componentDidUpdate!="function"||R===u.memoizedProps&&at===u.memoizedState||(h.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||R===u.memoizedProps&&at===u.memoizedState||(h.flags|=256),h.memoizedProps=b,h.memoizedState=At),A.props=b,A.state=At,A.context=F,b=J):(typeof A.componentDidUpdate!="function"||R===u.memoizedProps&&at===u.memoizedState||(h.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||R===u.memoizedProps&&at===u.memoizedState||(h.flags|=256),b=!1)}return Hd(u,h,v,b,I,k)}function Hd(u,h,v,b,k,I){dx(u,h);var A=(h.flags&64)!==0;if(!b&&!A)return k&&L_(h,v,!1),Ui(u,h,I);b=h.stateNode,NP.current=h;var R=A&&typeof v.getDerivedStateFromError!="function"?null:b.render();return h.flags|=1,u!==null&&A?(h.child=Pc(h,u.child,null,I),h.child=Pc(h,null,R,I)):pn(u,h,R,I),h.memoizedState=b.state,k&&L_(h,v,!0),h.child}function vx(u){var h=u.stateNode;h.pendingContext?A_(u,h.pendingContext,h.pendingContext!==h.context):h.context&&A_(u,h.context,!1),Id(u,h.containerInfo)}var Fc={dehydrated:null,retryLane:0};function yx(u,h,v){var b=h.pendingProps,k=be.current,I=!1,A;return(A=(h.flags&64)!==0)||(A=u!==null&&u.memoizedState===null?!1:(k&2)!==0),A?(I=!0,h.flags&=-65):u!==null&&u.memoizedState===null||b.fallback===void 0||b.unstable_avoidThisFallback===!0||(k|=1),xe(be,k&1),u===null?(b.fallback!==void 0&&Ad(h),u=b.children,k=b.fallback,I?(u=mx(h,u,k,v),h.child.memoizedState={baseLanes:v},h.memoizedState=Fc,u):typeof b.unstable_expectedLoadTime=="number"?(u=mx(h,u,k,v),h.child.memoizedState={baseLanes:v},h.memoizedState=Fc,h.lanes=33554432,u):(v=lg({mode:"visible",children:u},h.mode,v,null),v.return=h,h.child=v)):u.memoizedState!==null?I?(b=xx(u,h,b.children,b.fallback,v),I=h.child,k=u.child.memoizedState,I.memoizedState=k===null?{baseLanes:v}:{baseLanes:k.baseLanes|v},I.childLanes=u.childLanes&~v,h.memoizedState=Fc,b):(v=_x(u,h,b.children,v),h.memoizedState=null,v):I?(b=xx(u,h,b.children,b.fallback,v),I=h.child,k=u.child.memoizedState,I.memoizedState=k===null?{baseLanes:v}:{baseLanes:k.baseLanes|v},I.childLanes=u.childLanes&~v,h.memoizedState=Fc,b):(v=_x(u,h,b.children,v),h.memoizedState=null,v)}function mx(u,h,v,b){var k=u.mode,I=u.child;return h={mode:"hidden",children:h},(k&2)===0&&I!==null?(I.childLanes=0,I.pendingProps=h):I=lg(h,k,0,null),v=Ca(v,k,b,null),I.return=u,v.return=u,I.sibling=v,u.child=I,v}function _x(u,h,v,b){var k=u.child;return u=k.sibling,v=wr(k,{mode:"visible",children:v}),(h.mode&2)===0&&(v.lanes=b),v.return=h,v.sibling=null,u!==null&&(u.nextEffect=null,u.flags=8,h.firstEffect=h.lastEffect=u),h.child=v}function xx(u,h,v,b,k){var I=h.mode,A=u.child;u=A.sibling;var R={mode:"hidden",children:v};return(I&2)===0&&h.child!==A?(v=h.child,v.childLanes=0,v.pendingProps=R,A=v.lastEffect,A!==null?(h.firstEffect=v.firstEffect,h.lastEffect=A,A.nextEffect=null):h.firstEffect=h.lastEffect=null):v=wr(A,R),u!==null?b=wr(u,b):(b=Ca(b,I,k,null),b.flags|=2),b.return=h,v.return=h,v.sibling=b,h.child=v,b}function bx(u,h){u.lanes|=h;var v=u.alternate;v!==null&&(v.lanes|=h),H_(u.return,h)}function Wd(u,h,v,b,k,I){var A=u.memoizedState;A===null?u.memoizedState={isBackwards:h,rendering:null,renderingStartTime:0,last:b,tail:v,tailMode:k,lastEffect:I}:(A.isBackwards=h,A.rendering=null,A.renderingStartTime=0,A.last=b,A.tail=v,A.tailMode=k,A.lastEffect=I)}function Sx(u,h,v){var b=h.pendingProps,k=b.revealOrder,I=b.tail;if(pn(u,h,b.children,v),b=be.current,(b&2)!==0)b=b&1|2,h.flags|=64;else{if(u!==null&&(u.flags&64)!==0)t:for(u=h.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&bx(u,v);else if(u.tag===19)bx(u,v);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===h)break t;for(;u.sibling===null;){if(u.return===null||u.return===h)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}b&=1}if(xe(be,b),(h.mode&2)===0)h.memoizedState=null;else switch(k){case"forwards":for(v=h.child,k=null;v!==null;)u=v.alternate,u!==null&&Lc(u)===null&&(k=v),v=v.sibling;v=k,v===null?(k=h.child,h.child=null):(k=v.sibling,v.sibling=null),Wd(h,!1,k,v,I,h.lastEffect);break;case"backwards":for(v=null,k=h.child,h.child=null;k!==null;){if(u=k.alternate,u!==null&&Lc(u)===null){h.child=k;break}u=k.sibling,k.sibling=v,v=k,k=u}Wd(h,!0,v,null,I,h.lastEffect);break;case"together":Wd(h,!1,null,null,void 0,h.lastEffect);break;default:h.memoizedState=null}return h.child}function Ui(u,h,v){if(u!==null&&(h.dependencies=u.dependencies),ll|=h.lanes,(v&h.childLanes)!==0){if(u!==null&&h.child!==u.child)throw Error(i(153));if(h.child!==null){for(u=h.child,v=wr(u,u.pendingProps),h.child=v,v.return=h;u.sibling!==null;)u=u.sibling,v=v.sibling=wr(u,u.pendingProps),v.return=h;v.sibling=null}return h.child}return null}var kx,Ud,Mx,Cx;kx=function(u,h){for(var v=h.child;v!==null;){if(v.tag===5||v.tag===6)u.appendChild(v.stateNode);else if(v.tag!==4&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===h)break;for(;v.sibling===null;){if(v.return===null||v.return===h)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},Ud=function(){},Mx=function(u,h,v,b){var k=u.memoizedProps;if(k!==b){u=h.stateNode,ao(vi.current);var I=null;switch(v){case"input":k=me(u,k),b=me(u,b),I=[];break;case"option":k=pe(u,k),b=pe(u,b),I=[];break;case"select":k=t({},k,{value:void 0}),b=t({},b,{value:void 0}),I=[];break;case"textarea":k=Jr(u,k),b=Jr(u,b),I=[];break;default:typeof k.onClick!="function"&&typeof b.onClick=="function"&&(u.onclick=vc)}Op(v,b);var A;v=null;for(J in k)if(!b.hasOwnProperty(J)&&k.hasOwnProperty(J)&&k[J]!=null)if(J==="style"){var R=k[J];for(A in R)R.hasOwnProperty(A)&&(v||(v={}),v[A]="")}else J!=="dangerouslySetInnerHTML"&&J!=="children"&&J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&J!=="autoFocus"&&(o.hasOwnProperty(J)?I||(I=[]):(I=I||[]).push(J,null));for(J in b){var F=b[J];if(R=k==null?void 0:k[J],b.hasOwnProperty(J)&&F!==R&&(F!=null||R!=null))if(J==="style")if(R){for(A in R)!R.hasOwnProperty(A)||F&&F.hasOwnProperty(A)||(v||(v={}),v[A]="");for(A in F)F.hasOwnProperty(A)&&R[A]!==F[A]&&(v||(v={}),v[A]=F[A])}else v||(I||(I=[]),I.push(J,v)),v=F;else J==="dangerouslySetInnerHTML"?(F=F?F.__html:void 0,R=R?R.__html:void 0,F!=null&&R!==F&&(I=I||[]).push(J,F)):J==="children"?typeof F!="string"&&typeof F!="number"||(I=I||[]).push(J,""+F):J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&(o.hasOwnProperty(J)?(F!=null&&J==="onScroll"&&de("scroll",u),I||R===F||(I=[])):typeof F=="object"&&F!==null&&F.$$typeof===K?F.toString():(I=I||[]).push(J,F))}v&&(I=I||[]).push("style",v);var J=I;(h.updateQueue=J)&&(h.flags|=4)}},Cx=function(u,h,v,b){v!==b&&(h.flags|=4)};function sl(u,h){if(!yi)switch(u.tailMode){case"hidden":h=u.tail;for(var v=null;h!==null;)h.alternate!==null&&(v=h),h=h.sibling;v===null?u.tail=null:v.sibling=null;break;case"collapsed":v=u.tail;for(var b=null;v!==null;)v.alternate!==null&&(b=v),v=v.sibling;b===null?h||u.tail===null?u.tail=null:u.tail.sibling=null:b.sibling=null}}function zP(u,h,v){var b=h.pendingProps;switch(h.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return fn(h.type)&&xc(),null;case 3:return _a(),ge(cn),ge(Fe),Ld(),b=h.stateNode,b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),(u===null||u.child===null)&&(Ec(h)?h.flags|=4:b.hydrate||(h.flags|=256)),Ud(h),null;case 5:Dd(h);var k=ao(tl.current);if(v=h.type,u!==null&&h.stateNode!=null)Mx(u,h,v,b,k),u.ref!==h.ref&&(h.flags|=128);else{if(!b){if(h.stateNode===null)throw Error(i(166));return null}if(u=ao(vi.current),Ec(h)){b=h.stateNode,v=h.type;var I=h.memoizedProps;switch(b[cr]=h,b[mc]=I,v){case"dialog":de("cancel",b),de("close",b);break;case"iframe":case"object":case"embed":de("load",b);break;case"video":case"audio":for(u=0;u<Zs.length;u++)de(Zs[u],b);break;case"source":de("error",b);break;case"img":case"image":case"link":de("error",b),de("load",b);break;case"details":de("toggle",b);break;case"input":qe(b,I),de("invalid",b);break;case"select":b._wrapperState={wasMultiple:!!I.multiple},de("invalid",b);break;case"textarea":$n(b,I),de("invalid",b)}Op(v,I),u=null;for(var A in I)I.hasOwnProperty(A)&&(k=I[A],A==="children"?typeof k=="string"?b.textContent!==k&&(u=["children",k]):typeof k=="number"&&b.textContent!==""+k&&(u=["children",""+k]):o.hasOwnProperty(A)&&k!=null&&A==="onScroll"&&de("scroll",b));switch(v){case"input":Tt(b),un(b,I,!0);break;case"textarea":Tt(b),b1(b);break;case"select":case"option":break;default:typeof I.onClick=="function"&&(b.onclick=vc)}b=u,h.updateQueue=b,b!==null&&(h.flags|=4)}else{switch(A=k.nodeType===9?k:k.ownerDocument,u===Lp.html&&(u=w1(v)),u===Lp.html?v==="script"?(u=A.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild)):typeof b.is=="string"?u=A.createElement(v,{is:b.is}):(u=A.createElement(v),v==="select"&&(A=u,b.multiple?A.multiple=!0:b.size&&(A.size=b.size))):u=A.createElementNS(u,v),u[cr]=h,u[mc]=b,kx(u,h,!1,!1),h.stateNode=u,A=Rp(v,b),v){case"dialog":de("cancel",u),de("close",u),k=b;break;case"iframe":case"object":case"embed":de("load",u),k=b;break;case"video":case"audio":for(k=0;k<Zs.length;k++)de(Zs[k],u);k=b;break;case"source":de("error",u),k=b;break;case"img":case"image":case"link":de("error",u),de("load",u),k=b;break;case"details":de("toggle",u),k=b;break;case"input":qe(u,b),k=me(u,b),de("invalid",u);break;case"option":k=pe(u,b);break;case"select":u._wrapperState={wasMultiple:!!b.multiple},k=t({},b,{value:void 0}),de("invalid",u);break;case"textarea":$n(u,b),k=Jr(u,b),de("invalid",u);break;default:k=b}Op(v,k);var R=k;for(I in R)if(R.hasOwnProperty(I)){var F=R[I];I==="style"?M1(u,F):I==="dangerouslySetInnerHTML"?(F=F?F.__html:void 0,F!=null&&S1(u,F)):I==="children"?typeof F=="string"?(v!=="textarea"||F!=="")&&Is(u,F):typeof F=="number"&&Is(u,""+F):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(o.hasOwnProperty(I)?F!=null&&I==="onScroll"&&de("scroll",u):F!=null&&C(u,I,F,A))}switch(v){case"input":Tt(u),un(u,b,!1);break;case"textarea":Tt(u),b1(u);break;case"option":b.value!=null&&u.setAttribute("value",""+lt(b.value));break;case"select":u.multiple=!!b.multiple,I=b.value,I!=null?pi(u,!!b.multiple,I,!1):b.defaultValue!=null&&pi(u,!!b.multiple,b.defaultValue,!0);break;default:typeof k.onClick=="function"&&(u.onclick=vc)}M_(v,b)&&(h.flags|=4)}h.ref!==null&&(h.flags|=128)}return null;case 6:if(u&&h.stateNode!=null)Cx(u,h,u.memoizedProps,b);else{if(typeof b!="string"&&h.stateNode===null)throw Error(i(166));v=ao(tl.current),ao(vi.current),Ec(h)?(b=h.stateNode,v=h.memoizedProps,b[cr]=h,b.nodeValue!==v&&(h.flags|=4)):(b=(v.nodeType===9?v:v.ownerDocument).createTextNode(b),b[cr]=h,h.stateNode=b)}return null;case 13:return ge(be),b=h.memoizedState,(h.flags&64)!==0?(h.lanes=v,h):(b=b!==null,v=!1,u===null?h.memoizedProps.fallback!==void 0&&Ec(h):v=u.memoizedState!==null,b&&!v&&(h.mode&2)!==0&&(u===null&&h.memoizedProps.unstable_avoidThisFallback!==!0||(be.current&1)!==0?Oe===0&&(Oe=3):((Oe===0||Oe===3)&&(Oe=4),Qe===null||(ll&134217727)===0&&(wa&134217727)===0||ka(Qe,We))),(b||v)&&(h.flags|=4),null);case 4:return _a(),Ud(h),u===null&&x_(h.stateNode.containerInfo),null;case 10:return Md(h),null;case 17:return fn(h.type)&&xc(),null;case 19:if(ge(be),b=h.memoizedState,b===null)return null;if(I=(h.flags&64)!==0,A=b.rendering,A===null)if(I)sl(b,!1);else{if(Oe!==0||u!==null&&(u.flags&64)!==0)for(u=h.child;u!==null;){if(A=Lc(u),A!==null){for(h.flags|=64,sl(b,!1),I=A.updateQueue,I!==null&&(h.updateQueue=I,h.flags|=4),b.lastEffect===null&&(h.firstEffect=null),h.lastEffect=b.lastEffect,b=v,v=h.child;v!==null;)I=v,u=b,I.flags&=2,I.nextEffect=null,I.firstEffect=null,I.lastEffect=null,A=I.alternate,A===null?(I.childLanes=0,I.lanes=u,I.child=null,I.memoizedProps=null,I.memoizedState=null,I.updateQueue=null,I.dependencies=null,I.stateNode=null):(I.childLanes=A.childLanes,I.lanes=A.lanes,I.child=A.child,I.memoizedProps=A.memoizedProps,I.memoizedState=A.memoizedState,I.updateQueue=A.updateQueue,I.type=A.type,u=A.dependencies,I.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),v=v.sibling;return xe(be,be.current&1|2),h.child}u=u.sibling}b.tail!==null&&Ve()>tg&&(h.flags|=64,I=!0,sl(b,!1),h.lanes=33554432)}else{if(!I)if(u=Lc(A),u!==null){if(h.flags|=64,I=!0,v=u.updateQueue,v!==null&&(h.updateQueue=v,h.flags|=4),sl(b,!0),b.tail===null&&b.tailMode==="hidden"&&!A.alternate&&!yi)return h=h.lastEffect=b.lastEffect,h!==null&&(h.nextEffect=null),null}else 2*Ve()-b.renderingStartTime>tg&&v!==1073741824&&(h.flags|=64,I=!0,sl(b,!1),h.lanes=33554432);b.isBackwards?(A.sibling=h.child,h.child=A):(v=b.last,v!==null?v.sibling=A:h.child=A,b.last=A)}return b.tail!==null?(v=b.tail,b.rendering=v,b.tail=v.sibling,b.lastEffect=h.lastEffect,b.renderingStartTime=Ve(),v.sibling=null,h=be.current,xe(be,I?h&1|2:h&1),v):null;case 23:case 24:return ag(),u!==null&&u.memoizedState!==null!=(h.memoizedState!==null)&&b.mode!=="unstable-defer-without-hiding"&&(h.flags|=4),null}throw Error(i(156,h.tag))}function BP(u){switch(u.tag){case 1:fn(u.type)&&xc();var h=u.flags;return h&4096?(u.flags=h&-4097|64,u):null;case 3:if(_a(),ge(cn),ge(Fe),Ld(),h=u.flags,(h&64)!==0)throw Error(i(285));return u.flags=h&-4097|64,u;case 5:return Dd(u),null;case 13:return ge(be),h=u.flags,h&4096?(u.flags=h&-4097|64,u):null;case 19:return ge(be),null;case 4:return _a(),null;case 10:return Md(u),null;case 23:case 24:return ag(),null;default:return null}}function Gd(u,h){try{var v="",b=h;do v+=xt(b),b=b.return;while(b);var k=v}catch(I){k=`
|
|
46
|
+
Error generating stack: `+I.message+`
|
|
47
|
+
`+I.stack}return{value:u,source:h,stack:k}}function jd(u,h){try{console.error(h.value)}catch(v){setTimeout(function(){throw v})}}var FP=typeof WeakMap=="function"?WeakMap:Map;function Tx(u,h,v){v=dr(-1,v),v.tag=3,v.payload={element:null};var b=h.value;return v.callback=function(){Wc||(Wc=!0,eg=b),jd(u,h)},v}function Ix(u,h,v){v=dr(-1,v),v.tag=3;var b=u.type.getDerivedStateFromError;if(typeof b=="function"){var k=h.value;v.payload=function(){return jd(u,h),b(k)}}var I=u.stateNode;return I!==null&&typeof I.componentDidCatch=="function"&&(v.callback=function(){typeof b!="function"&&(_i===null?_i=new Set([this]):_i.add(this),jd(u,h));var A=h.stack;this.componentDidCatch(h.value,{componentStack:A!==null?A:""})}),v}var VP=typeof WeakSet=="function"?WeakSet:Set;function Dx(u){var h=u.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(v){br(u,v)}else h.current=null}function HP(u,h){switch(h.tag){case 0:case 11:case 15:case 22:return;case 1:if(h.flags&256&&u!==null){var v=u.memoizedProps,b=u.memoizedState;u=h.stateNode,h=u.getSnapshotBeforeUpdate(h.elementType===h.type?v:qn(h.type,v),b),u.__reactInternalSnapshotBeforeUpdate=h}return;case 3:h.flags&256&&gd(h.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(i(163))}function WP(u,h,v){switch(v.tag){case 0:case 11:case 15:case 22:if(h=v.updateQueue,h=h!==null?h.lastEffect:null,h!==null){u=h=h.next;do{if((u.tag&3)===3){var b=u.create;u.destroy=b()}u=u.next}while(u!==h)}if(h=v.updateQueue,h=h!==null?h.lastEffect:null,h!==null){u=h=h.next;do{var k=u;b=k.next,k=k.tag,(k&4)!==0&&(k&1)!==0&&(Gx(v,u),qP(v,u)),u=b}while(u!==h)}return;case 1:u=v.stateNode,v.flags&4&&(h===null?u.componentDidMount():(b=v.elementType===v.type?h.memoizedProps:qn(v.type,h.memoizedProps),u.componentDidUpdate(b,h.memoizedState,u.__reactInternalSnapshotBeforeUpdate))),h=v.updateQueue,h!==null&&G_(v,h,u);return;case 3:if(h=v.updateQueue,h!==null){if(u=null,v.child!==null)switch(v.child.tag){case 5:u=v.child.stateNode;break;case 1:u=v.child.stateNode}G_(v,h,u)}return;case 5:u=v.stateNode,h===null&&v.flags&4&&M_(v.type,v.memoizedProps)&&u.focus();return;case 6:return;case 4:return;case 12:return;case 13:v.memoizedState===null&&(v=v.alternate,v!==null&&(v=v.memoizedState,v!==null&&(v=v.dehydrated,v!==null&&H1(v))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(i(163))}function Ax(u,h){for(var v=u;;){if(v.tag===5){var b=v.stateNode;if(h)b=b.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{b=v.stateNode;var k=v.memoizedProps.style;k=k!=null&&k.hasOwnProperty("display")?k.display:null,b.style.display=k1("display",k)}}else if(v.tag===6)v.stateNode.nodeValue=h?"":v.memoizedProps;else if((v.tag!==23&&v.tag!==24||v.memoizedState===null||v===u)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===u)break;for(;v.sibling===null;){if(v.return===null||v.return===u)return;v=v.return}v.sibling.return=v.return,v=v.sibling}}function Px(u,h){if(ro&&typeof ro.onCommitFiberUnmount=="function")try{ro.onCommitFiberUnmount(md,h)}catch{}switch(h.tag){case 0:case 11:case 14:case 15:case 22:if(u=h.updateQueue,u!==null&&(u=u.lastEffect,u!==null)){var v=u=u.next;do{var b=v,k=b.destroy;if(b=b.tag,k!==void 0)if((b&4)!==0)Gx(h,v);else{b=h;try{k()}catch(I){br(b,I)}}v=v.next}while(v!==u)}break;case 1:if(Dx(h),u=h.stateNode,typeof u.componentWillUnmount=="function")try{u.props=h.memoizedProps,u.state=h.memoizedState,u.componentWillUnmount()}catch(I){br(h,I)}break;case 5:Dx(h);break;case 4:Rx(u,h)}}function Lx(u){u.alternate=null,u.child=null,u.dependencies=null,u.firstEffect=null,u.lastEffect=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.return=null,u.updateQueue=null}function Ex(u){return u.tag===5||u.tag===3||u.tag===4}function Ox(u){t:{for(var h=u.return;h!==null;){if(Ex(h))break t;h=h.return}throw Error(i(160))}var v=h;switch(h=v.stateNode,v.tag){case 5:var b=!1;break;case 3:h=h.containerInfo,b=!0;break;case 4:h=h.containerInfo,b=!0;break;default:throw Error(i(161))}v.flags&16&&(Is(h,""),v.flags&=-17);t:e:for(v=u;;){for(;v.sibling===null;){if(v.return===null||Ex(v.return)){v=null;break t}v=v.return}for(v.sibling.return=v.return,v=v.sibling;v.tag!==5&&v.tag!==6&&v.tag!==18;){if(v.flags&2||v.child===null||v.tag===4)continue e;v.child.return=v,v=v.child}if(!(v.flags&2)){v=v.stateNode;break t}}b?Zd(u,v,h):Yd(u,v,h)}function Zd(u,h,v){var b=u.tag,k=b===5||b===6;if(k)u=k?u.stateNode:u.stateNode.instance,h?v.nodeType===8?v.parentNode.insertBefore(u,h):v.insertBefore(u,h):(v.nodeType===8?(h=v.parentNode,h.insertBefore(u,v)):(h=v,h.appendChild(u)),v=v._reactRootContainer,v!=null||h.onclick!==null||(h.onclick=vc));else if(b!==4&&(u=u.child,u!==null))for(Zd(u,h,v),u=u.sibling;u!==null;)Zd(u,h,v),u=u.sibling}function Yd(u,h,v){var b=u.tag,k=b===5||b===6;if(k)u=k?u.stateNode:u.stateNode.instance,h?v.insertBefore(u,h):v.appendChild(u);else if(b!==4&&(u=u.child,u!==null))for(Yd(u,h,v),u=u.sibling;u!==null;)Yd(u,h,v),u=u.sibling}function Rx(u,h){for(var v=h,b=!1,k,I;;){if(!b){b=v.return;t:for(;;){if(b===null)throw Error(i(160));switch(k=b.stateNode,b.tag){case 5:I=!1;break t;case 3:k=k.containerInfo,I=!0;break t;case 4:k=k.containerInfo,I=!0;break t}b=b.return}b=!0}if(v.tag===5||v.tag===6){t:for(var A=u,R=v,F=R;;)if(Px(A,F),F.child!==null&&F.tag!==4)F.child.return=F,F=F.child;else{if(F===R)break t;for(;F.sibling===null;){if(F.return===null||F.return===R)break t;F=F.return}F.sibling.return=F.return,F=F.sibling}I?(A=k,R=v.stateNode,A.nodeType===8?A.parentNode.removeChild(R):A.removeChild(R)):k.removeChild(v.stateNode)}else if(v.tag===4){if(v.child!==null){k=v.stateNode.containerInfo,I=!0,v.child.return=v,v=v.child;continue}}else if(Px(u,v),v.child!==null){v.child.return=v,v=v.child;continue}if(v===h)break;for(;v.sibling===null;){if(v.return===null||v.return===h)return;v=v.return,v.tag===4&&(b=!1)}v.sibling.return=v.return,v=v.sibling}}function Xd(u,h){switch(h.tag){case 0:case 11:case 14:case 15:case 22:var v=h.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var b=v=v.next;do(b.tag&3)===3&&(u=b.destroy,b.destroy=void 0,u!==void 0&&u()),b=b.next;while(b!==v)}return;case 1:return;case 5:if(v=h.stateNode,v!=null){b=h.memoizedProps;var k=u!==null?u.memoizedProps:b;u=h.type;var I=h.updateQueue;if(h.updateQueue=null,I!==null){for(v[mc]=b,u==="input"&&b.type==="radio"&&b.name!=null&&_e(v,b),Rp(u,k),h=Rp(u,b),k=0;k<I.length;k+=2){var A=I[k],R=I[k+1];A==="style"?M1(v,R):A==="dangerouslySetInnerHTML"?S1(v,R):A==="children"?Is(v,R):C(v,A,R,h)}switch(u){case"input":Tn(v,b);break;case"textarea":x1(v,b);break;case"select":u=v._wrapperState.wasMultiple,v._wrapperState.wasMultiple=!!b.multiple,I=b.value,I!=null?pi(v,!!b.multiple,I,!1):u!==!!b.multiple&&(b.defaultValue!=null?pi(v,!!b.multiple,b.defaultValue,!0):pi(v,!!b.multiple,b.multiple?[]:"",!1))}}}return;case 6:if(h.stateNode===null)throw Error(i(162));h.stateNode.nodeValue=h.memoizedProps;return;case 3:v=h.stateNode,v.hydrate&&(v.hydrate=!1,H1(v.containerInfo));return;case 12:return;case 13:h.memoizedState!==null&&(Jd=Ve(),Ax(h.child,!0)),Nx(h);return;case 19:Nx(h);return;case 17:return;case 23:case 24:Ax(h,h.memoizedState!==null);return}throw Error(i(163))}function Nx(u){var h=u.updateQueue;if(h!==null){u.updateQueue=null;var v=u.stateNode;v===null&&(v=u.stateNode=new VP),h.forEach(function(b){var k=JP.bind(null,u,b);v.has(b)||(v.add(b),b.then(k,k))})}}function UP(u,h){return u!==null&&(u=u.memoizedState,u===null||u.dehydrated!==null)?(h=h.memoizedState,h!==null&&h.dehydrated===null):!1}var GP=Math.ceil,Vc=M.ReactCurrentDispatcher,$d=M.ReactCurrentOwner,Dt=0,Qe=null,De=null,We=0,uo=0,qd=fr(0),Oe=0,Hc=null,ba=0,ll=0,wa=0,Qd=0,Kd=null,Jd=0,tg=1/0;function Sa(){tg=Ve()+500}var dt=null,Wc=!1,eg=null,_i=null,yr=!1,ul=null,cl=90,ng=[],ig=[],Gi=null,fl=0,rg=null,Uc=-1,ji=0,Gc=0,hl=null,jc=!1;function bn(){return(Dt&48)!==0?Ve():Uc!==-1?Uc:Uc=Ve()}function mr(u){if(u=u.mode,(u&2)===0)return 1;if((u&4)===0)return va()===99?1:2;if(ji===0&&(ji=ba),PP.transition!==0){Gc!==0&&(Gc=Kd!==null?Kd.pendingLanes:0),u=ji;var h=4186112&~Gc;return h&=-h,h===0&&(u=4186112&~u,h=u&-u,h===0&&(h=8192)),h}return u=va(),(Dt&4)!==0&&u===98?u=sc(12,ji):(u=EA(u),u=sc(u,ji)),u}function _r(u,h,v){if(50<fl)throw fl=0,rg=null,Error(i(185));if(u=Zc(u,h),u===null)return null;lc(u,h,v),u===Qe&&(wa|=h,Oe===4&&ka(u,We));var b=va();h===1?(Dt&8)!==0&&(Dt&48)===0?og(u):(Pn(u,v),Dt===0&&(Sa(),gi())):((Dt&4)===0||b!==98&&b!==99||(Gi===null?Gi=new Set([u]):Gi.add(u)),Pn(u,v)),Kd=u}function Zc(u,h){u.lanes|=h;var v=u.alternate;for(v!==null&&(v.lanes|=h),v=u,u=u.return;u!==null;)u.childLanes|=h,v=u.alternate,v!==null&&(v.childLanes|=h),v=u,u=u.return;return v.tag===3?v.stateNode:null}function Pn(u,h){for(var v=u.callbackNode,b=u.suspendedLanes,k=u.pingedLanes,I=u.expirationTimes,A=u.pendingLanes;0<A;){var R=31-lr(A),F=1<<R,J=I[R];if(J===-1){if((F&b)===0||(F&k)!==0){J=h,oa(F);var ht=le;I[R]=10<=ht?J+250:6<=ht?J+5e3:-1}}else J<=h&&(u.expiredLanes|=F);A&=~F}if(b=Bs(u,u===Qe?We:0),h=le,b===0)v!==null&&(v!==wd&&xd(v),u.callbackNode=null,u.callbackPriority=0);else{if(v!==null){if(u.callbackPriority===h)return;v!==wd&&xd(v)}h===15?(v=og.bind(null,u),Hi===null?(Hi=[v],Sc=_d(wc,V_)):Hi.push(v),v=wd):h===14?v=$s(99,og.bind(null,u)):(v=OA(h),v=$s(v,zx.bind(null,u))),u.callbackPriority=h,u.callbackNode=v}}function zx(u){if(Uc=-1,Gc=ji=0,(Dt&48)!==0)throw Error(i(327));var h=u.callbackNode;if(xr()&&u.callbackNode!==h)return null;var v=Bs(u,u===Qe?We:0);if(v===0)return null;var b=v,k=Dt;Dt|=16;var I=Hx();(Qe!==u||We!==b)&&(Sa(),Ma(u,b));do try{YP();break}catch(R){Vx(u,R)}while(!0);if(kd(),Vc.current=I,Dt=k,De!==null?b=0:(Qe=null,We=0,b=Oe),(ba&wa)!==0)Ma(u,0);else if(b!==0){if(b===2&&(Dt|=64,u.hydrate&&(u.hydrate=!1,gd(u.containerInfo)),v=X1(u),v!==0&&(b=pl(u,v))),b===1)throw h=Hc,Ma(u,0),ka(u,v),Pn(u,Ve()),h;switch(u.finishedWork=u.current.alternate,u.finishedLanes=v,b){case 0:case 1:throw Error(i(345));case 2:co(u);break;case 3:if(ka(u,v),(v&62914560)===v&&(b=Jd+500-Ve(),10<b)){if(Bs(u,0)!==0)break;if(k=u.suspendedLanes,(k&v)!==v){bn(),u.pingedLanes|=u.suspendedLanes&k;break}u.timeoutHandle=C_(co.bind(null,u),b);break}co(u);break;case 4:if(ka(u,v),(v&4186112)===v)break;for(b=u.eventTimes,k=-1;0<v;){var A=31-lr(v);I=1<<A,A=b[A],A>k&&(k=A),v&=~I}if(v=k,v=Ve()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*GP(v/1960))-v,10<v){u.timeoutHandle=C_(co.bind(null,u),v);break}co(u);break;case 5:co(u);break;default:throw Error(i(329))}}return Pn(u,Ve()),u.callbackNode===h?zx.bind(null,u):null}function ka(u,h){for(h&=~Qd,h&=~wa,u.suspendedLanes|=h,u.pingedLanes&=~h,u=u.expirationTimes;0<h;){var v=31-lr(h),b=1<<v;u[v]=-1,h&=~b}}function og(u){if((Dt&48)!==0)throw Error(i(327));if(xr(),u===Qe&&(u.expiredLanes&We)!==0){var h=We,v=pl(u,h);(ba&wa)!==0&&(h=Bs(u,h),v=pl(u,h))}else h=Bs(u,0),v=pl(u,h);if(u.tag!==0&&v===2&&(Dt|=64,u.hydrate&&(u.hydrate=!1,gd(u.containerInfo)),h=X1(u),h!==0&&(v=pl(u,h))),v===1)throw v=Hc,Ma(u,0),ka(u,h),Pn(u,Ve()),v;return u.finishedWork=u.current.alternate,u.finishedLanes=h,co(u),Pn(u,Ve()),null}function jP(){if(Gi!==null){var u=Gi;Gi=null,u.forEach(function(h){h.expiredLanes|=24&h.pendingLanes,Pn(h,Ve())})}gi()}function Bx(u,h){var v=Dt;Dt|=1;try{return u(h)}finally{Dt=v,Dt===0&&(Sa(),gi())}}function Fx(u,h){var v=Dt;Dt&=-2,Dt|=8;try{return u(h)}finally{Dt=v,Dt===0&&(Sa(),gi())}}function Yc(u,h){xe(qd,uo),uo|=h,ba|=h}function ag(){uo=qd.current,ge(qd)}function Ma(u,h){u.finishedWork=null,u.finishedLanes=0;var v=u.timeoutHandle;if(v!==-1&&(u.timeoutHandle=-1,MP(v)),De!==null)for(v=De.return;v!==null;){var b=v;switch(b.tag){case 1:b=b.type.childContextTypes,b!=null&&xc();break;case 3:_a(),ge(cn),ge(Fe),Ld();break;case 5:Dd(b);break;case 4:_a();break;case 13:ge(be);break;case 19:ge(be);break;case 10:Md(b);break;case 23:case 24:ag()}v=v.return}Qe=u,De=wr(u.current,null),We=uo=ba=h,Oe=0,Hc=null,Qd=wa=ll=0}function Vx(u,h){do{var v=De;try{if(kd(),el.current=Bc,Oc){for(var b=ke.memoizedState;b!==null;){var k=b.queue;k!==null&&(k.pending=null),b=b.next}Oc=!1}if(nl=0,Ee=He=ke=null,il=!1,$d.current=null,v===null||v.return===null){Oe=1,Hc=h,De=null;break}t:{var I=u,A=v.return,R=v,F=h;if(h=We,R.flags|=2048,R.firstEffect=R.lastEffect=null,F!==null&&typeof F=="object"&&typeof F.then=="function"){var J=F;if((R.mode&2)===0){var ht=R.alternate;ht?(R.updateQueue=ht.updateQueue,R.memoizedState=ht.memoizedState,R.lanes=ht.lanes):(R.updateQueue=null,R.memoizedState=null)}var Lt=(be.current&1)!==0,at=A;do{var yt;if(yt=at.tag===13){var At=at.memoizedState;if(At!==null)yt=At.dehydrated!==null;else{var kt=at.memoizedProps;yt=kt.fallback===void 0?!1:kt.unstable_avoidThisFallback!==!0?!0:!Lt}}if(yt){var q=at.updateQueue;if(q===null){var W=new Set;W.add(J),at.updateQueue=W}else q.add(J);if((at.mode&2)===0){if(at.flags|=64,R.flags|=16384,R.flags&=-2981,R.tag===1)if(R.alternate===null)R.tag=17;else{var Y=dr(-1,1);Y.tag=2,gr(R,Y)}R.lanes|=1;break t}F=void 0,R=h;var nt=I.pingCache;if(nt===null?(nt=I.pingCache=new FP,F=new Set,nt.set(J,F)):(F=nt.get(J),F===void 0&&(F=new Set,nt.set(J,F))),!F.has(R)){F.add(R);var rt=KP.bind(null,I,J,R);J.then(rt,rt)}at.flags|=4096,at.lanes=h;break t}at=at.return}while(at!==null);F=Error((ut(R.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
48
|
+
|
|
49
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Oe!==5&&(Oe=2),F=Gd(F,R),at=A;do{switch(at.tag){case 3:I=F,at.flags|=4096,h&=-h,at.lanes|=h;var Ot=Tx(at,I,h);U_(at,Ot);break t;case 1:I=F;var vt=at.type,Rt=at.stateNode;if((at.flags&64)===0&&(typeof vt.getDerivedStateFromError=="function"||Rt!==null&&typeof Rt.componentDidCatch=="function"&&(_i===null||!_i.has(Rt)))){at.flags|=4096,h&=-h,at.lanes|=h;var Ht=Ix(at,I,h);U_(at,Ht);break t}}at=at.return}while(at!==null)}Ux(v)}catch(Ft){h=Ft,De===v&&v!==null&&(De=v=v.return);continue}break}while(!0)}function Hx(){var u=Vc.current;return Vc.current=Bc,u===null?Bc:u}function pl(u,h){var v=Dt;Dt|=16;var b=Hx();Qe===u&&We===h||Ma(u,h);do try{ZP();break}catch(k){Vx(u,k)}while(!0);if(kd(),Dt=v,Vc.current=b,De!==null)throw Error(i(261));return Qe=null,We=0,Oe}function ZP(){for(;De!==null;)Wx(De)}function YP(){for(;De!==null&&!IP();)Wx(De)}function Wx(u){var h=Zx(u.alternate,u,uo);u.memoizedProps=u.pendingProps,h===null?Ux(u):De=h,$d.current=null}function Ux(u){var h=u;do{var v=h.alternate;if(u=h.return,(h.flags&2048)===0){if(v=zP(v,h,uo),v!==null){De=v;return}if(v=h,v.tag!==24&&v.tag!==23||v.memoizedState===null||(uo&1073741824)!==0||(v.mode&4)===0){for(var b=0,k=v.child;k!==null;)b|=k.lanes|k.childLanes,k=k.sibling;v.childLanes=b}u!==null&&(u.flags&2048)===0&&(u.firstEffect===null&&(u.firstEffect=h.firstEffect),h.lastEffect!==null&&(u.lastEffect!==null&&(u.lastEffect.nextEffect=h.firstEffect),u.lastEffect=h.lastEffect),1<h.flags&&(u.lastEffect!==null?u.lastEffect.nextEffect=h:u.firstEffect=h,u.lastEffect=h))}else{if(v=BP(h),v!==null){v.flags&=2047,De=v;return}u!==null&&(u.firstEffect=u.lastEffect=null,u.flags|=2048)}if(h=h.sibling,h!==null){De=h;return}De=h=u}while(h!==null);Oe===0&&(Oe=5)}function co(u){var h=va();return oo(99,XP.bind(null,u,h)),null}function XP(u,h){do xr();while(ul!==null);if((Dt&48)!==0)throw Error(i(327));var v=u.finishedWork;if(v===null)return null;if(u.finishedWork=null,u.finishedLanes=0,v===u.current)throw Error(i(177));u.callbackNode=null;var b=v.lanes|v.childLanes,k=b,I=u.pendingLanes&~k;u.pendingLanes=k,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=k,u.mutableReadLanes&=k,u.entangledLanes&=k,k=u.entanglements;for(var A=u.eventTimes,R=u.expirationTimes;0<I;){var F=31-lr(I),J=1<<F;k[F]=0,A[F]=-1,R[F]=-1,I&=~J}if(Gi!==null&&(b&24)===0&&Gi.has(u)&&Gi.delete(u),u===Qe&&(De=Qe=null,We=0),1<v.flags?v.lastEffect!==null?(v.lastEffect.nextEffect=v,b=v.firstEffect):b=v:b=v.firstEffect,b!==null){if(k=Dt,Dt|=32,$d.current=null,hd=uc,A=d_(),ld(A)){if("selectionStart"in A)R={start:A.selectionStart,end:A.selectionEnd};else t:if(R=(R=A.ownerDocument)&&R.defaultView||window,(J=R.getSelection&&R.getSelection())&&J.rangeCount!==0){R=J.anchorNode,I=J.anchorOffset,F=J.focusNode,J=J.focusOffset;try{R.nodeType,F.nodeType}catch{R=null;break t}var ht=0,Lt=-1,at=-1,yt=0,At=0,kt=A,q=null;e:for(;;){for(var W;kt!==R||I!==0&&kt.nodeType!==3||(Lt=ht+I),kt!==F||J!==0&&kt.nodeType!==3||(at=ht+J),kt.nodeType===3&&(ht+=kt.nodeValue.length),(W=kt.firstChild)!==null;)q=kt,kt=W;for(;;){if(kt===A)break e;if(q===R&&++yt===I&&(Lt=ht),q===F&&++At===J&&(at=ht),(W=kt.nextSibling)!==null)break;kt=q,q=kt.parentNode}kt=W}R=Lt===-1||at===-1?null:{start:Lt,end:at}}else R=null;R=R||{start:0,end:0}}else R=null;pd={focusedElem:A,selectionRange:R},uc=!1,hl=null,jc=!1,dt=b;do try{$P()}catch(Ft){if(dt===null)throw Error(i(330));br(dt,Ft),dt=dt.nextEffect}while(dt!==null);hl=null,dt=b;do try{for(A=u;dt!==null;){var Y=dt.flags;if(Y&16&&Is(dt.stateNode,""),Y&128){var nt=dt.alternate;if(nt!==null){var rt=nt.ref;rt!==null&&(typeof rt=="function"?rt(null):rt.current=null)}}switch(Y&1038){case 2:Ox(dt),dt.flags&=-3;break;case 6:Ox(dt),dt.flags&=-3,Xd(dt.alternate,dt);break;case 1024:dt.flags&=-1025;break;case 1028:dt.flags&=-1025,Xd(dt.alternate,dt);break;case 4:Xd(dt.alternate,dt);break;case 8:R=dt,Rx(A,R);var Ot=R.alternate;Lx(R),Ot!==null&&Lx(Ot)}dt=dt.nextEffect}}catch(Ft){if(dt===null)throw Error(i(330));br(dt,Ft),dt=dt.nextEffect}while(dt!==null);if(rt=pd,nt=d_(),Y=rt.focusedElem,A=rt.selectionRange,nt!==Y&&Y&&Y.ownerDocument&&p_(Y.ownerDocument.documentElement,Y)){for(A!==null&&ld(Y)&&(nt=A.start,rt=A.end,rt===void 0&&(rt=nt),"selectionStart"in Y?(Y.selectionStart=nt,Y.selectionEnd=Math.min(rt,Y.value.length)):(rt=(nt=Y.ownerDocument||document)&&nt.defaultView||window,rt.getSelection&&(rt=rt.getSelection(),R=Y.textContent.length,Ot=Math.min(A.start,R),A=A.end===void 0?Ot:Math.min(A.end,R),!rt.extend&&Ot>A&&(R=A,A=Ot,Ot=R),R=h_(Y,Ot),I=h_(Y,A),R&&I&&(rt.rangeCount!==1||rt.anchorNode!==R.node||rt.anchorOffset!==R.offset||rt.focusNode!==I.node||rt.focusOffset!==I.offset)&&(nt=nt.createRange(),nt.setStart(R.node,R.offset),rt.removeAllRanges(),Ot>A?(rt.addRange(nt),rt.extend(I.node,I.offset)):(nt.setEnd(I.node,I.offset),rt.addRange(nt)))))),nt=[],rt=Y;rt=rt.parentNode;)rt.nodeType===1&&nt.push({element:rt,left:rt.scrollLeft,top:rt.scrollTop});for(typeof Y.focus=="function"&&Y.focus(),Y=0;Y<nt.length;Y++)rt=nt[Y],rt.element.scrollLeft=rt.left,rt.element.scrollTop=rt.top}uc=!!hd,pd=hd=null,u.current=v,dt=b;do try{for(Y=u;dt!==null;){var vt=dt.flags;if(vt&36&&WP(Y,dt.alternate,dt),vt&128){nt=void 0;var Rt=dt.ref;if(Rt!==null){var Ht=dt.stateNode;switch(dt.tag){case 5:nt=Ht;break;default:nt=Ht}typeof Rt=="function"?Rt(nt):Rt.current=nt}}dt=dt.nextEffect}}catch(Ft){if(dt===null)throw Error(i(330));br(dt,Ft),dt=dt.nextEffect}while(dt!==null);dt=null,AP(),Dt=k}else u.current=v;if(yr)yr=!1,ul=u,cl=h;else for(dt=b;dt!==null;)h=dt.nextEffect,dt.nextEffect=null,dt.flags&8&&(vt=dt,vt.sibling=null,vt.stateNode=null),dt=h;if(b=u.pendingLanes,b===0&&(_i=null),b===1?u===rg?fl++:(fl=0,rg=u):fl=0,v=v.stateNode,ro&&typeof ro.onCommitFiberRoot=="function")try{ro.onCommitFiberRoot(md,v,void 0,(v.current.flags&64)===64)}catch{}if(Pn(u,Ve()),Wc)throw Wc=!1,u=eg,eg=null,u;return(Dt&8)!==0||gi(),null}function $P(){for(;dt!==null;){var u=dt.alternate;jc||hl===null||((dt.flags&8)!==0?O1(dt,hl)&&(jc=!0):dt.tag===13&&UP(u,dt)&&O1(dt,hl)&&(jc=!0));var h=dt.flags;(h&256)!==0&&HP(u,dt),(h&512)===0||yr||(yr=!0,$s(97,function(){return xr(),null})),dt=dt.nextEffect}}function xr(){if(cl!==90){var u=97<cl?97:cl;return cl=90,oo(u,QP)}return!1}function qP(u,h){ng.push(h,u),yr||(yr=!0,$s(97,function(){return xr(),null}))}function Gx(u,h){ig.push(h,u),yr||(yr=!0,$s(97,function(){return xr(),null}))}function QP(){if(ul===null)return!1;var u=ul;if(ul=null,(Dt&48)!==0)throw Error(i(331));var h=Dt;Dt|=32;var v=ig;ig=[];for(var b=0;b<v.length;b+=2){var k=v[b],I=v[b+1],A=k.destroy;if(k.destroy=void 0,typeof A=="function")try{A()}catch(F){if(I===null)throw Error(i(330));br(I,F)}}for(v=ng,ng=[],b=0;b<v.length;b+=2){k=v[b],I=v[b+1];try{var R=k.create;k.destroy=R()}catch(F){if(I===null)throw Error(i(330));br(I,F)}}for(R=u.current.firstEffect;R!==null;)u=R.nextEffect,R.nextEffect=null,R.flags&8&&(R.sibling=null,R.stateNode=null),R=u;return Dt=h,gi(),!0}function jx(u,h,v){h=Gd(v,h),h=Tx(u,h,1),gr(u,h),h=bn(),u=Zc(u,1),u!==null&&(lc(u,1,h),Pn(u,h))}function br(u,h){if(u.tag===3)jx(u,u,h);else for(var v=u.return;v!==null;){if(v.tag===3){jx(v,u,h);break}else if(v.tag===1){var b=v.stateNode;if(typeof v.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(_i===null||!_i.has(b))){u=Gd(h,u);var k=Ix(v,u,1);if(gr(v,k),k=bn(),v=Zc(v,1),v!==null)lc(v,1,k),Pn(v,k);else if(typeof b.componentDidCatch=="function"&&(_i===null||!_i.has(b)))try{b.componentDidCatch(h,u)}catch{}break}}v=v.return}}function KP(u,h,v){var b=u.pingCache;b!==null&&b.delete(h),h=bn(),u.pingedLanes|=u.suspendedLanes&v,Qe===u&&(We&v)===v&&(Oe===4||Oe===3&&(We&62914560)===We&&500>Ve()-Jd?Ma(u,0):Qd|=v),Pn(u,h)}function JP(u,h){var v=u.stateNode;v!==null&&v.delete(h),h=0,h===0&&(h=u.mode,(h&2)===0?h=1:(h&4)===0?h=va()===99?1:2:(ji===0&&(ji=ba),h=aa(62914560&~ji),h===0&&(h=4194304))),v=bn(),u=Zc(u,h),u!==null&&(lc(u,h,v),Pn(u,v))}var Zx;Zx=function(u,h,v){var b=h.lanes;if(u!==null)if(u.memoizedProps!==h.pendingProps||cn.current)Qn=!0;else if((v&b)!==0)Qn=(u.flags&16384)!==0;else{switch(Qn=!1,h.tag){case 3:vx(h),Pd();break;case 5:Q_(h);break;case 1:fn(h.type)&&bc(h);break;case 4:Id(h,h.stateNode.containerInfo);break;case 10:b=h.memoizedProps.value;var k=h.type._context;xe(kc,k._currentValue),k._currentValue=b;break;case 13:if(h.memoizedState!==null)return(v&h.child.childLanes)!==0?yx(u,h,v):(xe(be,be.current&1),h=Ui(u,h,v),h!==null?h.sibling:null);xe(be,be.current&1);break;case 19:if(b=(v&h.childLanes)!==0,(u.flags&64)!==0){if(b)return Sx(u,h,v);h.flags|=64}if(k=h.memoizedState,k!==null&&(k.rendering=null,k.tail=null,k.lastEffect=null),xe(be,be.current),b)break;return null;case 23:case 24:return h.lanes=0,Fd(u,h,v)}return Ui(u,h,v)}else Qn=!1;switch(h.lanes=0,h.tag){case 2:if(b=h.type,u!==null&&(u.alternate=null,h.alternate=null,h.flags|=2),u=h.pendingProps,k=ga(h,Fe.current),ma(h,v),k=Od(null,h,b,u,k,v),h.flags|=1,typeof k=="object"&&k!==null&&typeof k.render=="function"&&k.$$typeof===void 0){if(h.tag=1,h.memoizedState=null,h.updateQueue=null,fn(b)){var I=!0;bc(h)}else I=!1;h.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,Cd(h);var A=b.getDerivedStateFromProps;typeof A=="function"&&Tc(h,b,A,u),k.updater=Ic,h.stateNode=k,k._reactInternals=h,Td(h,b,u,v),h=Hd(null,h,b,!0,I,v)}else h.tag=0,pn(null,h,k,v),h=h.child;return h;case 16:k=h.elementType;t:{switch(u!==null&&(u.alternate=null,h.alternate=null,h.flags|=2),u=h.pendingProps,I=k._init,k=I(k._payload),h.type=k,I=h.tag=eL(k),u=qn(k,u),I){case 0:h=Vd(null,h,k,u,v);break t;case 1:h=gx(null,h,k,u,v);break t;case 11:h=fx(null,h,k,u,v);break t;case 14:h=hx(null,h,k,qn(k.type,u),b,v);break t}throw Error(i(306,k,""))}return h;case 0:return b=h.type,k=h.pendingProps,k=h.elementType===b?k:qn(b,k),Vd(u,h,b,k,v);case 1:return b=h.type,k=h.pendingProps,k=h.elementType===b?k:qn(b,k),gx(u,h,b,k,v);case 3:if(vx(h),b=h.updateQueue,u===null||b===null)throw Error(i(282));if(b=h.pendingProps,k=h.memoizedState,k=k!==null?k.element:null,W_(u,h),qs(h,b,null,v),b=h.memoizedState.element,b===k)Pd(),h=Ui(u,h,v);else{if(k=h.stateNode,(I=k.hydrate)&&(vr=fa(h.stateNode.containerInfo.firstChild),Wi=h,I=yi=!0),I){if(u=k.mutableSourceEagerHydrationData,u!=null)for(k=0;k<u.length;k+=2)I=u[k],I._workInProgressVersionPrimary=u[k+1],xa.push(I);for(v=q_(h,null,b,v),h.child=v;v;)v.flags=v.flags&-3|1024,v=v.sibling}else pn(u,h,b,v),Pd();h=h.child}return h;case 5:return Q_(h),u===null&&Ad(h),b=h.type,k=h.pendingProps,I=u!==null?u.memoizedProps:null,A=k.children,dd(b,k)?A=null:I!==null&&dd(b,I)&&(h.flags|=16),dx(u,h),pn(u,h,A,v),h.child;case 6:return u===null&&Ad(h),null;case 13:return yx(u,h,v);case 4:return Id(h,h.stateNode.containerInfo),b=h.pendingProps,u===null?h.child=Pc(h,null,b,v):pn(u,h,b,v),h.child;case 11:return b=h.type,k=h.pendingProps,k=h.elementType===b?k:qn(b,k),fx(u,h,b,k,v);case 7:return pn(u,h,h.pendingProps,v),h.child;case 8:return pn(u,h,h.pendingProps.children,v),h.child;case 12:return pn(u,h,h.pendingProps.children,v),h.child;case 10:t:{b=h.type._context,k=h.pendingProps,A=h.memoizedProps,I=k.value;var R=h.type._context;if(xe(kc,R._currentValue),R._currentValue=I,A!==null)if(R=A.value,I=In(R,I)?0:(typeof b._calculateChangedBits=="function"?b._calculateChangedBits(R,I):1073741823)|0,I===0){if(A.children===k.children&&!cn.current){h=Ui(u,h,v);break t}}else for(R=h.child,R!==null&&(R.return=h);R!==null;){var F=R.dependencies;if(F!==null){A=R.child;for(var J=F.firstContext;J!==null;){if(J.context===b&&(J.observedBits&I)!==0){R.tag===1&&(J=dr(-1,v&-v),J.tag=2,gr(R,J)),R.lanes|=v,J=R.alternate,J!==null&&(J.lanes|=v),H_(R.return,v),F.lanes|=v;break}J=J.next}}else A=R.tag===10&&R.type===h.type?null:R.child;if(A!==null)A.return=R;else for(A=R;A!==null;){if(A===h){A=null;break}if(R=A.sibling,R!==null){R.return=A.return,A=R;break}A=A.return}R=A}pn(u,h,k.children,v),h=h.child}return h;case 9:return k=h.type,I=h.pendingProps,b=I.children,ma(h,v),k=Dn(k,I.unstable_observedBits),b=b(k),h.flags|=1,pn(u,h,b,v),h.child;case 14:return k=h.type,I=qn(k,h.pendingProps),I=qn(k.type,I),hx(u,h,k,I,b,v);case 15:return px(u,h,h.type,h.pendingProps,b,v);case 17:return b=h.type,k=h.pendingProps,k=h.elementType===b?k:qn(b,k),u!==null&&(u.alternate=null,h.alternate=null,h.flags|=2),h.tag=1,fn(b)?(u=!0,bc(h)):u=!1,ma(h,v),Y_(h,b,k),Td(h,b,k,v),Hd(null,h,b,!0,u,v);case 19:return Sx(u,h,v);case 23:return Fd(u,h,v);case 24:return Fd(u,h,v)}throw Error(i(156,h.tag))};function tL(u,h,v,b){this.tag=u,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=h,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(u,h,v,b){return new tL(u,h,v,b)}function sg(u){return u=u.prototype,!(!u||!u.isReactComponent)}function eL(u){if(typeof u=="function")return sg(u)?1:0;if(u!=null){if(u=u.$$typeof,u===V)return 11;if(u===et)return 14}return 2}function wr(u,h){var v=u.alternate;return v===null?(v=Ln(u.tag,h,u.key,u.mode),v.elementType=u.elementType,v.type=u.type,v.stateNode=u.stateNode,v.alternate=u,u.alternate=v):(v.pendingProps=h,v.type=u.type,v.flags=0,v.nextEffect=null,v.firstEffect=null,v.lastEffect=null),v.childLanes=u.childLanes,v.lanes=u.lanes,v.child=u.child,v.memoizedProps=u.memoizedProps,v.memoizedState=u.memoizedState,v.updateQueue=u.updateQueue,h=u.dependencies,v.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},v.sibling=u.sibling,v.index=u.index,v.ref=u.ref,v}function Xc(u,h,v,b,k,I){var A=2;if(b=u,typeof u=="function")sg(u)&&(A=1);else if(typeof u=="string")A=5;else t:switch(u){case P:return Ca(v.children,k,I,h);case it:A=8,k|=16;break;case L:A=8,k|=1;break;case O:return u=Ln(12,v,h,k|8),u.elementType=O,u.type=O,u.lanes=I,u;case Z:return u=Ln(13,v,h,k),u.type=Z,u.elementType=Z,u.lanes=I,u;case $:return u=Ln(19,v,h,k),u.elementType=$,u.lanes=I,u;case j:return lg(v,k,I,h);case U:return u=Ln(24,v,h,k),u.elementType=U,u.lanes=I,u;default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case N:A=10;break t;case B:A=9;break t;case V:A=11;break t;case et:A=14;break t;case z:A=16,b=null;break t;case H:A=22;break t}throw Error(i(130,u==null?u:typeof u,""))}return h=Ln(A,v,h,k),h.elementType=u,h.type=b,h.lanes=I,h}function Ca(u,h,v,b){return u=Ln(7,u,b,h),u.lanes=v,u}function lg(u,h,v,b){return u=Ln(23,u,b,h),u.elementType=j,u.lanes=v,u}function ug(u,h,v){return u=Ln(6,u,null,h),u.lanes=v,u}function cg(u,h,v){return h=Ln(4,u.children!==null?u.children:[],u.key,h),h.lanes=v,h.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},h}function nL(u,h,v){this.tag=h,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=v,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=qp(0),this.expirationTimes=qp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qp(0),this.mutableSourceEagerHydrationData=null}function iL(u,h,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D,key:b==null?null:""+b,children:u,containerInfo:h,implementation:v}}function $c(u,h,v,b){var k=h.current,I=bn(),A=mr(k);t:if(v){v=v._reactInternals;e:{if(eo(v)!==v||v.tag!==1)throw Error(i(170));var R=v;do{switch(R.tag){case 3:R=R.stateNode.context;break e;case 1:if(fn(R.type)){R=R.stateNode.__reactInternalMemoizedMergedChildContext;break e}}R=R.return}while(R!==null);throw Error(i(171))}if(v.tag===1){var F=v.type;if(fn(F)){v=P_(v,F,R);break t}}v=R}else v=hr;return h.context===null?h.context=v:h.pendingContext=v,h=dr(I,A),h.payload={element:u},b=b===void 0?null:b,b!==null&&(h.callback=b),gr(k,h),_r(k,A,I),A}function fg(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 Yx(u,h){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var v=u.retryLane;u.retryLane=v!==0&&v<h?v:h}}function hg(u,h){Yx(u,h),(u=u.alternate)&&Yx(u,h)}function rL(){return null}function pg(u,h,v){var b=v!=null&&v.hydrationOptions!=null&&v.hydrationOptions.mutableSources||null;if(v=new nL(u,h,v!=null&&v.hydrate===!0),h=Ln(3,null,null,h===2?7:h===1?3:0),v.current=h,h.stateNode=v,Cd(h),u[ha]=v.current,x_(u.nodeType===8?u.parentNode:u),b)for(u=0;u<b.length;u++){h=b[u];var k=h._getVersion;k=k(h._source),v.mutableSourceEagerHydrationData==null?v.mutableSourceEagerHydrationData=[h,k]:v.mutableSourceEagerHydrationData.push(h,k)}this._internalRoot=v}pg.prototype.render=function(u){$c(u,this._internalRoot,null,null)},pg.prototype.unmount=function(){var u=this._internalRoot,h=u.containerInfo;$c(null,u,null,function(){h[ha]=null})};function dl(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11&&(u.nodeType!==8||u.nodeValue!==" react-mount-point-unstable "))}function oL(u,h){if(h||(h=u?u.nodeType===9?u.documentElement:u.firstChild:null,h=!(!h||h.nodeType!==1||!h.hasAttribute("data-reactroot"))),!h)for(var v;v=u.lastChild;)u.removeChild(v);return new pg(u,0,h?{hydrate:!0}:void 0)}function qc(u,h,v,b,k){var I=v._reactRootContainer;if(I){var A=I._internalRoot;if(typeof k=="function"){var R=k;k=function(){var J=fg(A);R.call(J)}}$c(h,A,u,k)}else{if(I=v._reactRootContainer=oL(v,b),A=I._internalRoot,typeof k=="function"){var F=k;k=function(){var J=fg(A);F.call(J)}}Fx(function(){$c(h,A,u,k)})}return fg(A)}R1=function(u){if(u.tag===13){var h=bn();_r(u,4,h),hg(u,4)}},Gp=function(u){if(u.tag===13){var h=bn();_r(u,67108864,h),hg(u,67108864)}},N1=function(u){if(u.tag===13){var h=bn(),v=mr(u);_r(u,v,h),hg(u,v)}},z1=function(u,h){return h()},zp=function(u,h,v){switch(h){case"input":if(Tn(u,v),h=v.name,v.type==="radio"&&h!=null){for(v=u;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll("input[name="+JSON.stringify(""+h)+'][type="radio"]'),h=0;h<v.length;h++){var b=v[h];if(b!==u&&b.form===u.form){var k=_c(b);if(!k)throw Error(i(90));ne(b),Tn(b,k)}}}break;case"textarea":x1(u,v);break;case"select":h=v.value,h!=null&&pi(u,!!v.multiple,h,!1)}},Bp=Bx,D1=function(u,h,v,b,k){var I=Dt;Dt|=4;try{return oo(98,u.bind(null,h,v,b,k))}finally{Dt=I,Dt===0&&(Sa(),gi())}},Fp=function(){(Dt&49)===0&&(jP(),xr())},A1=function(u,h){var v=Dt;Dt|=2;try{return u(h)}finally{Dt=v,Dt===0&&(Sa(),gi())}};function Xx(u,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!dl(h))throw Error(i(200));return iL(u,h,null,v)}var aL={Events:[Xs,pa,_c,T1,I1,xr,{current:!1}]},gl={findFiberByHostInstance:no,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},sL={bundleType:gl.bundleType,version:gl.version,rendererPackageName:gl.rendererPackageName,rendererConfig:gl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(u){return u=E1(u),u===null?null:u.stateNode},findFiberByHostInstance:gl.findFiberByHostInstance||rL,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qc.isDisabled&&Qc.supportsFiber)try{md=Qc.inject(sL),ro=Qc}catch{}}return wn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aL,wn.createPortal=Xx,wn.findDOMNode=function(u){if(u==null)return null;if(u.nodeType===1)return u;var h=u._reactInternals;if(h===void 0)throw typeof u.render=="function"?Error(i(188)):Error(i(268,Object.keys(u)));return u=E1(h),u=u===null?null:u.stateNode,u},wn.flushSync=function(u,h){var v=Dt;if((v&48)!==0)return u(h);Dt|=1;try{if(u)return oo(99,u.bind(null,h))}finally{Dt=v,gi()}},wn.hydrate=function(u,h,v){if(!dl(h))throw Error(i(200));return qc(null,u,h,!0,v)},wn.render=function(u,h,v){if(!dl(h))throw Error(i(200));return qc(null,u,h,!1,v)},wn.unmountComponentAtNode=function(u){if(!dl(u))throw Error(i(40));return u._reactRootContainer?(Fx(function(){qc(null,null,u,!1,function(){u._reactRootContainer=null,u[ha]=null})}),!0):!1},wn.unstable_batchedUpdates=Bx,wn.unstable_createPortal=function(u,h){return Xx(u,h,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},wn.unstable_renderSubtreeIntoContainer=function(u,h,v,b){if(!dl(v))throw Error(i(200));if(u==null||u._reactInternals===void 0)throw Error(i(38));return qc(u,h,v,!1,b)},wn.version="17.0.2",wn}var kb;function Mb(){if(kb)return Dg.exports;kb=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(t){console.error(t)}}return n(),Dg.exports=EE(),Dg.exports}var Ag=Mb();const OE=Ta(Ag);var Cb={exports:{}},Pg,Tb;function RE(){if(Tb)return Pg;Tb=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pg=n,Pg}var Lg,Ib;function NE(){if(Ib)return Lg;Ib=1;var n=RE();function t(){}function e(){}return e.resetWarningCache=t,Lg=function(){function i(a,s,l,c,f,p){if(p!==n){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}i.isRequired=i;function r(){return i}var o={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:r,element:i,elementType:i,instanceOf:r,node:i,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:e,resetWarningCache:t};return o.PropTypes=o,o},Lg}var Db;function Ab(){return Db||(Db=1,Cb.exports=NE()()),Cb.exports}var zE=Ab();const BE=Ta(zE);var kr=xi.createContext(null);function FE(n){n()}var Pb=FE,VE=function(n){return Pb=n},HE=function(){return Pb},Lb={notify:function(){}};function WE(){var n=HE(),t=null,e=null;return{clear:function(){t=null,e=null},notify:function(){n(function(){for(var i=t;i;)i.callback(),i=i.next})},get:function(){for(var i=[],r=t;r;)i.push(r),r=r.next;return i},subscribe:function(i){var r=!0,o=e={callback:i,next:null,prev:e};return o.prev?o.prev.next=o:t=o,function(){!r||t===null||(r=!1,o.next?o.next.prev=o.prev:e=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var Eb=(function(){function n(e,i){this.store=e,this.parentSub=i,this.unsubscribe=null,this.listeners=Lb,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=n.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return!!this.unsubscribe},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=WE())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=Lb)},n})();function UE(n){var t=n.store,e=n.context,i=n.children,r=ue.useMemo(function(){var s=new Eb(t);return s.onStateChange=s.notifyNestedSubs,{store:t,subscription:s}},[t]),o=ue.useMemo(function(){return t.getState()},[t]);ue.useEffect(function(){var s=r.subscription;return s.trySubscribe(),o!==t.getState()&&s.notifyNestedSubs(),function(){s.tryUnsubscribe(),s.onStateChange=null}},[r,o]);var a=e||kr;return xi.createElement(a.Provider,{value:r},i)}function Eg(){return Eg=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)({}).hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},Eg.apply(null,arguments)}function GE(n,t){if(n==null)return{};var e={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(t.indexOf(i)!==-1)continue;e[i]=n[i]}return e}var Ob={exports:{}},Kt={};/** @license React v16.13.1
|
|
50
|
+
* react-is.production.min.js
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/var Rb;function jE(){if(Rb)return Kt;Rb=1;var n=typeof Symbol=="function"&&Symbol.for,t=n?Symbol.for("react.element"):60103,e=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,r=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,a=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,d=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,_=n?Symbol.for("react.block"):60121,m=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(M){if(typeof M=="object"&&M!==null){var T=M.$$typeof;switch(T){case t:switch(M=M.type,M){case l:case c:case i:case o:case r:case p:return M;default:switch(M=M&&M.$$typeof,M){case s:case f:case y:case d:case a:return M;default:return T}}case e:return T}}}function C(M){return S(M)===c}return Kt.AsyncMode=l,Kt.ConcurrentMode=c,Kt.ContextConsumer=s,Kt.ContextProvider=a,Kt.Element=t,Kt.ForwardRef=f,Kt.Fragment=i,Kt.Lazy=y,Kt.Memo=d,Kt.Portal=e,Kt.Profiler=o,Kt.StrictMode=r,Kt.Suspense=p,Kt.isAsyncMode=function(M){return C(M)||S(M)===l},Kt.isConcurrentMode=C,Kt.isContextConsumer=function(M){return S(M)===s},Kt.isContextProvider=function(M){return S(M)===a},Kt.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},Kt.isForwardRef=function(M){return S(M)===f},Kt.isFragment=function(M){return S(M)===i},Kt.isLazy=function(M){return S(M)===y},Kt.isMemo=function(M){return S(M)===d},Kt.isPortal=function(M){return S(M)===e},Kt.isProfiler=function(M){return S(M)===o},Kt.isStrictMode=function(M){return S(M)===r},Kt.isSuspense=function(M){return S(M)===p},Kt.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===i||M===c||M===o||M===r||M===p||M===g||typeof M=="object"&&M!==null&&(M.$$typeof===y||M.$$typeof===d||M.$$typeof===a||M.$$typeof===s||M.$$typeof===f||M.$$typeof===m||M.$$typeof===x||M.$$typeof===w||M.$$typeof===_)},Kt.typeOf=S,Kt}var Nb;function ZE(){return Nb||(Nb=1,Ob.exports=jE()),Ob.exports}var Og,zb;function YE(){if(zb)return Og;zb=1;var n=ZE(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[n.ForwardRef]=i,o[n.Memo]=r;function a(y){return n.isMemo(y)?r:o[y.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;function d(y,_,m){if(typeof _!="string"){if(g){var x=p(_);x&&x!==g&&d(y,x,m)}var w=l(_);c&&(w=w.concat(c(_)));for(var S=a(y),C=a(_),M=0;M<w.length;++M){var T=w[M];if(!e[T]&&!(m&&m[T])&&!(C&&C[T])&&!(S&&S[T])){var D=f(_,T);try{s(y,T,D)}catch{}}}}return y}return Og=d,Og}var XE=YE();const $E=Ta(XE);var Bb={exports:{}},Jt={};/** @license React v16.13.1
|
|
57
|
+
* react-is.production.min.js
|
|
58
|
+
*
|
|
59
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the MIT license found in the
|
|
62
|
+
* LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/var Fb;function qE(){if(Fb)return Jt;Fb=1;var n=typeof Symbol=="function"&&Symbol.for,t=n?Symbol.for("react.element"):60103,e=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,r=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,a=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,d=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,_=n?Symbol.for("react.block"):60121,m=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(M){if(typeof M=="object"&&M!==null){var T=M.$$typeof;switch(T){case t:switch(M=M.type,M){case l:case c:case i:case o:case r:case p:return M;default:switch(M=M&&M.$$typeof,M){case s:case f:case y:case d:case a:return M;default:return T}}case e:return T}}}function C(M){return S(M)===c}return Jt.AsyncMode=l,Jt.ConcurrentMode=c,Jt.ContextConsumer=s,Jt.ContextProvider=a,Jt.Element=t,Jt.ForwardRef=f,Jt.Fragment=i,Jt.Lazy=y,Jt.Memo=d,Jt.Portal=e,Jt.Profiler=o,Jt.StrictMode=r,Jt.Suspense=p,Jt.isAsyncMode=function(M){return C(M)||S(M)===l},Jt.isConcurrentMode=C,Jt.isContextConsumer=function(M){return S(M)===s},Jt.isContextProvider=function(M){return S(M)===a},Jt.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},Jt.isForwardRef=function(M){return S(M)===f},Jt.isFragment=function(M){return S(M)===i},Jt.isLazy=function(M){return S(M)===y},Jt.isMemo=function(M){return S(M)===d},Jt.isPortal=function(M){return S(M)===e},Jt.isProfiler=function(M){return S(M)===o},Jt.isStrictMode=function(M){return S(M)===r},Jt.isSuspense=function(M){return S(M)===p},Jt.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===i||M===c||M===o||M===r||M===p||M===g||typeof M=="object"&&M!==null&&(M.$$typeof===y||M.$$typeof===d||M.$$typeof===a||M.$$typeof===s||M.$$typeof===f||M.$$typeof===m||M.$$typeof===x||M.$$typeof===w||M.$$typeof===_)},Jt.typeOf=S,Jt}var Vb;function QE(){return Vb||(Vb=1,Bb.exports=qE()),Bb.exports}QE();var Hb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ue.useLayoutEffect:ue.useEffect;function KE(n){var t,e=n.Symbol;return typeof e=="function"?e.observable?t=e.observable:(t=e("observable"),e.observable=t):t="@@observable",t}var La;typeof self<"u"?La=self:typeof window<"u"?La=window:typeof global<"u"?La=global:typeof module<"u"?La=module:La=Function("return this")();var Wb=KE(La),Rg=function(){return Math.random().toString(36).substring(7).split("").join(".")},xl={INIT:"@@redux/INIT"+Rg(),REPLACE:"@@redux/REPLACE"+Rg(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Rg()}};function JE(n){if(typeof n!="object"||n===null)return!1;for(var t=n;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(n)===t}function Ub(n,t,e){var i;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error("Expected the enhancer to be a function.");return e(Ub)(n,t)}if(typeof n!="function")throw new Error("Expected the reducer to be a function.");var r=n,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function p(_){if(typeof _!="function")throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var m=!0;return c(),s.push(_),function(){if(m){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");m=!1,c();var x=s.indexOf(_);s.splice(x,1),a=null}}}function g(_){if(!JE(_))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(typeof _.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,o=r(o,_)}finally{l=!1}for(var m=a=s,x=0;x<m.length;x++){var w=m[x];w()}return _}function d(_){if(typeof _!="function")throw new Error("Expected the nextReducer to be a function.");r=_,g({type:xl.REPLACE})}function y(){var _,m=p;return _={subscribe:function(x){if(typeof x!="object"||x===null)throw new TypeError("Expected the observer to be an object.");function w(){x.next&&x.next(f())}w();var S=m(w);return{unsubscribe:S}}},_[Wb]=function(){return this},_}return g({type:xl.INIT}),i={dispatch:g,subscribe:p,getState:f,replaceReducer:d},i[Wb]=y,i}function tO(n,t){var e=t&&t.type,i=e&&'action "'+String(e)+'"'||"an action";return"Given "+i+', reducer "'+n+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function eO(n){Object.keys(n).forEach(function(t){var e=n[t],i=e(void 0,{type:xl.INIT});if(typeof i>"u")throw new Error('Reducer "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof e(void 0,{type:xl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+xl.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function nO(n){for(var t=Object.keys(n),e={},i=0;i<t.length;i++){var r=t[i];typeof n[r]=="function"&&(e[r]=n[r])}var o=Object.keys(e),a;try{eO(e)}catch(s){a=s}return function(s,l){if(s===void 0&&(s={}),a)throw a;for(var c=!1,f={},p=0;p<o.length;p++){var g=o[p],d=e[g],y=s[g],_=d(y,l);if(typeof _>"u"){var m=tO(g,l);throw new Error(m)}f[g]=_,c=c||_!==y}return c=c||o.length!==Object.keys(s).length,c?f:s}}function iO(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Gb(n,t){var e=Object.keys(n);return Object.getOwnPropertySymbols&&e.push.apply(e,Object.getOwnPropertySymbols(n)),t&&(e=e.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),e}function rO(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Gb(e,!0).forEach(function(i){iO(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Gb(e).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function jb(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,r){return function(){return i(r.apply(void 0,arguments))}})}function oO(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];return function(i){return function(){var r=i.apply(void 0,arguments),o=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a={getState:r.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(l){return l(a)});return o=jb.apply(void 0,s)(r.dispatch),rO({},r,{dispatch:o})}}}function Zb(){var n=ue.useContext(kr);return n}function Yb(n){n===void 0&&(n=kr);var t=n===kr?Zb:function(){return ue.useContext(n)};return function(){var e=t(),i=e.store;return i}}var aO=Yb();function sO(n){n===void 0&&(n=kr);var t=n===kr?aO:Yb(n);return function(){var e=t();return e.dispatch}}var lO=sO(),uO=function(n,t){return n===t};function cO(n,t,e,i){var r=ue.useReducer(function(p){return p+1},0),o=r[1],a=ue.useMemo(function(){return new Eb(e,i)},[e,i]),s=ue.useRef(),l=ue.useRef(),c=ue.useRef(),f;try{n!==l.current||s.current?f=n(e.getState()):f=c.current}catch(p){throw s.current&&(p.message+=`
|
|
64
|
+
The error may be correlated with this previous error:
|
|
65
|
+
`+s.current.stack+`
|
|
66
|
+
|
|
67
|
+
`),p}return Hb(function(){l.current=n,c.current=f,s.current=void 0}),Hb(function(){function p(){try{var g=l.current(e.getState());if(t(g,c.current))return;c.current=g}catch(d){s.current=d}o({})}return a.onStateChange=p,a.trySubscribe(),p(),function(){return a.tryUnsubscribe()}},[e,a]),f}function fO(n){n===void 0&&(n=kr);var t=n===kr?Zb:function(){return ue.useContext(n)};return function(e,i){i===void 0&&(i=uO);var r=t(),o=r.store,a=r.subscription;return cO(e,i,o,a)}}var hO=fO();VE(Ag.unstable_batchedUpdates);var Xb=function(n,t){return n===t||typeof t=="function"&&n===t.toString()},$b=function(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];return function(i){return i.pipe(QL(function(r){var o=r.type,a=t.length;if(a===1)return Xb(o,t[0]);for(var s=0;s<a;s++)if(Xb(o,t[s]))return!0;return!1}))}},qb=(function(){function n(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}})();function pO(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function dO(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function gO(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var vO=(function(n){gO(t,n),qb(t,null,[{key:"of",value:function(){return new this(wg.apply(void 0,arguments))}},{key:"from",value:function(e,i){return new this(_l(e,i))}}]);function t(e){pO(this,t);var i=dO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.source=e,i}return qb(t,[{key:"lift",value:function(e){var i=new t(this);return i.operator=e,i}},{key:"ofType",value:function(){return $b.apply(void 0,arguments)(this)}}]),t})(Me);function yO(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function mO(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function _O(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var xO=(function(n){_O(t,n);function t(e,i){yO(this,t);var r=mO(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,function(o){var a=r.__notifier.subscribe(o);return a&&!a.closed&&o.next(r.value),a}));return r.value=i,r.__notifier=new Da,r.__subscription=e.subscribe(function(o){o!==r.value&&(r.value=o,r.__notifier.next(o))}),r}return t})(Me);function bO(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=lb.constructor,e=new t(lb.SchedulerAction),i=new Da,r=void 0,o=function(a){r=a;var s=new Da().pipe(Sg(e)),l=new Da().pipe(Sg(e)),c=new vO(s),f=new xO(l,r.getState()),p=i.pipe(Cg(function(g){var d="dependencies"in n?g(c,f,n.dependencies):g(c,f);if(!d)throw new TypeError('Your root Epic "'+(g.name||"<anonymous>")+`" does not return a stream. Double check you're not missing a return statement!`);return d}),Tg(function(g){return _l(g).pipe(xE(e),Sg(e))}));return p.subscribe(r.dispatch),function(g){return function(d){var y=g(d);return l.next(r.getState()),s.next(d),y}}};return o.run=function(a){i.next(a)},o}function wO(n){if(Array.isArray(n)){for(var t=0,e=Array(n.length);t<n.length;t++)e[t]=n[t];return e}else return Array.from(n)}var SO=function(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];var i=function(){for(var r=arguments.length,o=Array(r),a=0;a<r;a++)o[a]=arguments[a];return $L.apply(void 0,wO(t.map(function(s){var l=s.apply(void 0,o);if(!l)throw new TypeError('combineEpics: one of the provided Epics "'+(s.name||"<anonymous>")+`" does not return a stream. Double check you're not missing a return statement!`);return l})))};try{Object.defineProperty(i,"name",{value:"combineEpics("+t.map(function(r){return r.name||"<anonymous>"}).join(", ")+")"})}catch{}return i},Qb={exports:{}},te={};/**
|
|
68
|
+
* @license React
|
|
69
|
+
* react-is.production.min.js
|
|
70
|
+
*
|
|
71
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the MIT license found in the
|
|
74
|
+
* LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/var Kb;function kO(){if(Kb)return te;Kb=1;var n=Symbol.for("react.element"),t=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function _(m){if(typeof m=="object"&&m!==null){var x=m.$$typeof;switch(x){case n:switch(m=m.type,m){case e:case r:case i:case c:case f:return m;default:switch(m=m&&m.$$typeof,m){case s:case a:case l:case g:case p:case o:return m;default:return x}}case t:return x}}}return te.ContextConsumer=a,te.ContextProvider=o,te.Element=n,te.ForwardRef=l,te.Fragment=e,te.Lazy=g,te.Memo=p,te.Portal=t,te.Profiler=r,te.StrictMode=i,te.Suspense=c,te.SuspenseList=f,te.isAsyncMode=function(){return!1},te.isConcurrentMode=function(){return!1},te.isContextConsumer=function(m){return _(m)===a},te.isContextProvider=function(m){return _(m)===o},te.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===n},te.isForwardRef=function(m){return _(m)===l},te.isFragment=function(m){return _(m)===e},te.isLazy=function(m){return _(m)===g},te.isMemo=function(m){return _(m)===p},te.isPortal=function(m){return _(m)===t},te.isProfiler=function(m){return _(m)===r},te.isStrictMode=function(m){return _(m)===i},te.isSuspense=function(m){return _(m)===c},te.isSuspenseList=function(m){return _(m)===f},te.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===e||m===r||m===i||m===c||m===f||m===d||typeof m=="object"&&m!==null&&(m.$$typeof===g||m.$$typeof===p||m.$$typeof===o||m.$$typeof===a||m.$$typeof===l||m.$$typeof===y||m.getModuleId!==void 0)},te.typeOf=_,te}var Jb;function MO(){return Jb||(Jb=1,Qb.exports=kO()),Qb.exports}var Ng=MO();const CO=Ta(Ng);function TO(n){function t(U,G,Q,tt,X){for(var mt=0,ot=0,bt=0,xt=0,ut,lt,qt=0,Zt=0,Tt,ne=Tt=ut=0,Bt=0,me=0,qe=0,_e=0,Tn=Q.length,un=Tn-1,Pe,It="",pe="",pi="",Jr="",$n;Bt<Tn;){if(lt=Q.charCodeAt(Bt),Bt===un&&ot+xt+bt+mt!==0&&(ot!==0&&(lt=ot===47?10:47),xt=bt=mt=0,Tn++,un++),ot+xt+bt+mt===0){if(Bt===un&&(0<me&&(It=It.replace(g,"")),0<It.trim().length)){switch(lt){case 32:case 9:case 59:case 13:case 10:break;default:It+=Q.charAt(Bt)}lt=59}switch(lt){case 123:for(It=It.trim(),ut=It.charCodeAt(0),Tt=1,_e=++Bt;Bt<Tn;){switch(lt=Q.charCodeAt(Bt)){case 123:Tt++;break;case 125:Tt--;break;case 47:switch(lt=Q.charCodeAt(Bt+1)){case 42:case 47:t:{for(ne=Bt+1;ne<un;++ne)switch(Q.charCodeAt(ne)){case 47:if(lt===42&&Q.charCodeAt(ne-1)===42&&Bt+2!==ne){Bt=ne+1;break t}break;case 10:if(lt===47){Bt=ne+1;break t}}Bt=ne}}break;case 91:lt++;case 40:lt++;case 34:case 39:for(;Bt++<un&&Q.charCodeAt(Bt)!==lt;);}if(Tt===0)break;Bt++}switch(Tt=Q.substring(_e,Bt),ut===0&&(ut=(It=It.replace(p,"").trim()).charCodeAt(0)),ut){case 64:switch(0<me&&(It=It.replace(g,"")),lt=It.charCodeAt(1),lt){case 100:case 109:case 115:case 45:me=G;break;default:me=et}if(Tt=t(G,me,Tt,lt,X+1),_e=Tt.length,0<H&&(me=e(et,It,qe),$n=s(3,Tt,me,G,V,B,_e,lt,X,tt),It=me.join(""),$n!==void 0&&(_e=(Tt=$n.trim()).length)===0&&(lt=0,Tt="")),0<_e)switch(lt){case 115:It=It.replace(T,a);case 100:case 109:case 45:Tt=It+"{"+Tt+"}";break;case 107:It=It.replace(w,"$1 $2"),Tt=It+"{"+Tt+"}",Tt=$===1||$===2&&o("@"+Tt,3)?"@-webkit-"+Tt+"@"+Tt:"@"+Tt;break;default:Tt=It+Tt,tt===112&&(Tt=(pe+=Tt,""))}else Tt="";break;default:Tt=t(G,e(G,It,qe),Tt,tt,X+1)}pi+=Tt,Tt=qe=me=ne=ut=0,It="",lt=Q.charCodeAt(++Bt);break;case 125:case 59:if(It=(0<me?It.replace(g,""):It).trim(),1<(_e=It.length))switch(ne===0&&(ut=It.charCodeAt(0),ut===45||96<ut&&123>ut)&&(_e=(It=It.replace(" ",":")).length),0<H&&($n=s(1,It,G,U,V,B,pe.length,tt,X,tt))!==void 0&&(_e=(It=$n.trim()).length)===0&&(It="\0\0"),ut=It.charCodeAt(0),lt=It.charCodeAt(1),ut){case 0:break;case 64:if(lt===105||lt===99){Jr+=It+Q.charAt(Bt);break}default:It.charCodeAt(_e-1)!==58&&(pe+=r(It,ut,lt,It.charCodeAt(2)))}qe=me=ne=ut=0,It="",lt=Q.charCodeAt(++Bt)}}switch(lt){case 13:case 10:ot===47?ot=0:1+ut===0&&tt!==107&&0<It.length&&(me=1,It+="\0"),0<H*it&&s(0,It,G,U,V,B,pe.length,tt,X,tt),B=1,V++;break;case 59:case 125:if(ot+xt+bt+mt===0){B++;break}default:switch(B++,Pe=Q.charAt(Bt),lt){case 9:case 32:if(xt+mt+ot===0)switch(qt){case 44:case 58:case 9:case 32:Pe="";break;default:lt!==32&&(Pe=" ")}break;case 0:Pe="\\0";break;case 12:Pe="\\f";break;case 11:Pe="\\v";break;case 38:xt+ot+mt===0&&(me=qe=1,Pe="\f"+Pe);break;case 108:if(xt+ot+mt+Z===0&&0<ne)switch(Bt-ne){case 2:qt===112&&Q.charCodeAt(Bt-3)===58&&(Z=qt);case 8:Zt===111&&(Z=Zt)}break;case 58:xt+ot+mt===0&&(ne=Bt);break;case 44:ot+bt+xt+mt===0&&(me=1,Pe+="\r");break;case 34:case 39:ot===0&&(xt=xt===lt?0:xt===0?lt:xt);break;case 91:xt+ot+bt===0&&mt++;break;case 93:xt+ot+bt===0&&mt--;break;case 41:xt+ot+mt===0&&bt--;break;case 40:if(xt+ot+mt===0){if(ut===0)switch(2*qt+3*Zt){case 533:break;default:ut=1}bt++}break;case 64:ot+bt+xt+mt+ne+Tt===0&&(Tt=1);break;case 42:case 47:if(!(0<xt+mt+bt))switch(ot){case 0:switch(2*lt+3*Q.charCodeAt(Bt+1)){case 235:ot=47;break;case 220:_e=Bt,ot=42}break;case 42:lt===47&&qt===42&&_e+2!==Bt&&(Q.charCodeAt(_e+2)===33&&(pe+=Q.substring(_e,Bt+1)),Pe="",ot=0)}}ot===0&&(It+=Pe)}Zt=qt,qt=lt,Bt++}if(_e=pe.length,0<_e){if(me=G,0<H&&($n=s(2,pe,me,U,V,B,_e,tt,X,tt),$n!==void 0&&(pe=$n).length===0))return Jr+pe+pi;if(pe=me.join(",")+"{"+pe+"}",$*Z!==0){switch($!==2||o(pe,2)||(Z=0),Z){case 111:pe=pe.replace(C,":-moz-$1")+pe;break;case 112:pe=pe.replace(S,"::-webkit-input-$1")+pe.replace(S,"::-moz-$1")+pe.replace(S,":-ms-input-$1")+pe}Z=0}}return Jr+pe+pi}function e(U,G,Q){var tt=G.trim().split(m);G=tt;var X=tt.length,mt=U.length;switch(mt){case 0:case 1:var ot=0;for(U=mt===0?"":U[0]+" ";ot<X;++ot)G[ot]=i(U,G[ot],Q).trim();break;default:var bt=ot=0;for(G=[];ot<X;++ot)for(var xt=0;xt<mt;++xt)G[bt++]=i(U[xt]+" ",tt[ot],Q).trim()}return G}function i(U,G,Q){var tt=G.charCodeAt(0);switch(33>tt&&(tt=(G=G.trim()).charCodeAt(0)),tt){case 38:return G.replace(x,"$1"+U.trim());case 58:return U.trim()+G.replace(x,"$1"+U.trim());default:if(0<1*Q&&0<G.indexOf("\f"))return G.replace(x,(U.charCodeAt(0)===58?"":"$1")+U.trim())}return U+G}function r(U,G,Q,tt){var X=U+";",mt=2*G+3*Q+4*tt;if(mt===944){U=X.indexOf(":",9)+1;var ot=X.substring(U,X.length-1).trim();return ot=X.substring(0,U).trim()+ot+";",$===1||$===2&&o(ot,1)?"-webkit-"+ot+ot:ot}if($===0||$===2&&!o(X,1))return X;switch(mt){case 1015:return X.charCodeAt(10)===97?"-webkit-"+X+X:X;case 951:return X.charCodeAt(3)===116?"-webkit-"+X+X:X;case 963:return X.charCodeAt(5)===110?"-webkit-"+X+X:X;case 1009:if(X.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+X+X;case 978:return"-webkit-"+X+"-moz-"+X+X;case 1019:case 983:return"-webkit-"+X+"-moz-"+X+"-ms-"+X+X;case 883:if(X.charCodeAt(8)===45)return"-webkit-"+X+X;if(0<X.indexOf("image-set(",11))return X.replace(N,"$1-webkit-$2")+X;break;case 932:if(X.charCodeAt(4)===45)switch(X.charCodeAt(5)){case 103:return"-webkit-box-"+X.replace("-grow","")+"-webkit-"+X+"-ms-"+X.replace("grow","positive")+X;case 115:return"-webkit-"+X+"-ms-"+X.replace("shrink","negative")+X;case 98:return"-webkit-"+X+"-ms-"+X.replace("basis","preferred-size")+X}return"-webkit-"+X+"-ms-"+X+X;case 964:return"-webkit-"+X+"-ms-flex-"+X+X;case 1023:if(X.charCodeAt(8)!==99)break;return ot=X.substring(X.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+ot+"-webkit-"+X+"-ms-flex-pack"+ot+X;case 1005:return y.test(X)?X.replace(d,":-webkit-")+X.replace(d,":-moz-")+X:X;case 1e3:switch(ot=X.substring(13).trim(),G=ot.indexOf("-")+1,ot.charCodeAt(0)+ot.charCodeAt(G)){case 226:ot=X.replace(M,"tb");break;case 232:ot=X.replace(M,"tb-rl");break;case 220:ot=X.replace(M,"lr");break;default:return X}return"-webkit-"+X+"-ms-"+ot+X;case 1017:if(X.indexOf("sticky",9)===-1)break;case 975:switch(G=(X=U).length-10,ot=(X.charCodeAt(G)===33?X.substring(0,G):X).substring(U.indexOf(":",7)+1).trim(),mt=ot.charCodeAt(0)+(ot.charCodeAt(7)|0)){case 203:if(111>ot.charCodeAt(8))break;case 115:X=X.replace(ot,"-webkit-"+ot)+";"+X;break;case 207:case 102:X=X.replace(ot,"-webkit-"+(102<mt?"inline-":"")+"box")+";"+X.replace(ot,"-webkit-"+ot)+";"+X.replace(ot,"-ms-"+ot+"box")+";"+X}return X+";";case 938:if(X.charCodeAt(5)===45)switch(X.charCodeAt(6)){case 105:return ot=X.replace("-items",""),"-webkit-"+X+"-webkit-box-"+ot+"-ms-flex-"+ot+X;case 115:return"-webkit-"+X+"-ms-flex-item-"+X.replace(P,"")+X;default:return"-webkit-"+X+"-ms-flex-line-pack"+X.replace("align-content","").replace(P,"")+X}break;case 973:case 989:if(X.charCodeAt(3)!==45||X.charCodeAt(4)===122)break;case 931:case 953:if(O.test(U)===!0)return(ot=U.substring(U.indexOf(":")+1)).charCodeAt(0)===115?r(U.replace("stretch","fill-available"),G,Q,tt).replace(":fill-available",":stretch"):X.replace(ot,"-webkit-"+ot)+X.replace(ot,"-moz-"+ot.replace("fill-",""))+X;break;case 962:if(X="-webkit-"+X+(X.charCodeAt(5)===102?"-ms-"+X:"")+X,Q+tt===211&&X.charCodeAt(13)===105&&0<X.indexOf("transform",10))return X.substring(0,X.indexOf(";",27)+1).replace(_,"$1-webkit-$2")+X}return X}function o(U,G){var Q=U.indexOf(G===1?":":"{"),tt=U.substring(0,G!==3?Q:10);return Q=U.substring(Q+1,U.length-1),K(G!==2?tt:tt.replace(L,"$1"),Q,G)}function a(U,G){var Q=r(G,G.charCodeAt(0),G.charCodeAt(1),G.charCodeAt(2));return Q!==G+";"?Q.replace(D," or ($1)").substring(4):"("+G+")"}function s(U,G,Q,tt,X,mt,ot,bt,xt,ut){for(var lt=0,qt=G,Zt;lt<H;++lt)switch(Zt=z[lt].call(f,U,qt,Q,tt,X,mt,ot,bt,xt,ut)){case void 0:case!1:case!0:case null:break;default:qt=Zt}if(qt!==G)return qt}function l(U){switch(U){case void 0:case null:H=z.length=0;break;default:if(typeof U=="function")z[H++]=U;else if(typeof U=="object")for(var G=0,Q=U.length;G<Q;++G)l(U[G]);else it=!!U|0}return l}function c(U){return U=U.prefix,U!==void 0&&(K=null,U?typeof U!="function"?$=1:($=2,K=U):$=0),c}function f(U,G){var Q=U;if(33>Q.charCodeAt(0)&&(Q=Q.trim()),j=Q,Q=[j],0<H){var tt=s(-1,G,Q,Q,V,B,0,0,0,0);tt!==void 0&&typeof tt=="string"&&(G=tt)}var X=t(et,Q,G,0,0);return 0<H&&(tt=s(-2,X,Q,Q,V,B,X.length,0,0,0),tt!==void 0&&(X=tt)),j="",Z=0,B=V=1,X}var p=/^\0+/g,g=/[\0\r\f]/g,d=/: */g,y=/zoo|gra/,_=/([,: ])(transform)/g,m=/,\r+?/g,x=/([\t\r\n ])*\f?&/g,w=/@(k\w+)\s*(\S*)\s*/,S=/::(place)/g,C=/:(read-only)/g,M=/[svh]\w+-[tblr]{2}/,T=/\(\s*(.*)\s*\)/g,D=/([\s\S]*?);/g,P=/-self|flex-/g,L=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,N=/([^-])(image-set\()/,B=1,V=1,Z=0,$=1,et=[],z=[],H=0,K=null,it=0,j="";return f.use=l,f.set=c,n!==void 0&&c(n),f}var IO={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function DO(n){var t=Object.create(null);return function(e){return t[e]===void 0&&(t[e]=n(e)),t[e]}}var AO=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,tw=DO(function(n){return AO.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),wi={};function Jn(){return(Jn=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n}).apply(this,arguments)}var ew=function(n,t){for(var e=[n[0]],i=0,r=t.length;i<r;i+=1)e.push(t[i],n[i+1]);return e},zg=function(n){return n!==null&&typeof n=="object"&&(n.toString?n.toString():Object.prototype.toString.call(n))==="[object Object]"&&!Ng.typeOf(n)},af=Object.freeze([]),Mr=Object.freeze({});function Ea(n){return typeof n=="function"}function nw(n){return n.displayName||n.name||"Component"}function Bg(n){return n&&typeof n.styledComponentId=="string"}var Oa=typeof process<"u"&&(wi.REACT_APP_SC_ATTR||wi.SC_ATTR)||"data-styled",Fg=typeof window<"u"&&"HTMLElement"in window,PO=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&wi.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&wi.REACT_APP_SC_DISABLE_SPEEDY!==""?wi.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&wi.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&wi.SC_DISABLE_SPEEDY!==void 0&&wi.SC_DISABLE_SPEEDY!==""&&wi.SC_DISABLE_SPEEDY!=="false"&&wi.SC_DISABLE_SPEEDY),LO={};function fo(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];throw new Error("An error occurred. See https://git.io/JUIaE#"+n+" for more information."+(e.length>0?" Args: "+e.join(", "):""))}var EO=(function(){function n(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=n.prototype;return t.indexOfGroup=function(e){for(var i=0,r=0;r<e;r++)i+=this.groupSizes[r];return i},t.insertRules=function(e,i){if(e>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,a=o;e>=a;)(a<<=1)<0&&fo(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var s=o;s<a;s++)this.groupSizes[s]=0}for(var l=this.indexOfGroup(e+1),c=0,f=i.length;c<f;c++)this.tag.insertRule(l,i[c])&&(this.groupSizes[e]++,l++)},t.clearGroup=function(e){if(e<this.length){var i=this.groupSizes[e],r=this.indexOfGroup(e),o=r+i;this.groupSizes[e]=0;for(var a=r;a<o;a++)this.tag.deleteRule(r)}},t.getGroup=function(e){var i="";if(e>=this.length||this.groupSizes[e]===0)return i;for(var r=this.groupSizes[e],o=this.indexOfGroup(e),a=o+r,s=o;s<a;s++)i+=this.tag.getRule(s)+`/*!sc*/
|
|
76
|
+
`;return i},n})(),sf=new Map,lf=new Map,bl=1,uf=function(n){if(sf.has(n))return sf.get(n);for(;lf.has(bl);)bl++;var t=bl++;return sf.set(n,t),lf.set(t,n),t},OO=function(n){return lf.get(n)},RO=function(n,t){t>=bl&&(bl=t+1),sf.set(n,t),lf.set(t,n)},NO="style["+Oa+'][data-styled-version="5.3.5"]',zO=new RegExp("^"+Oa+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),BO=function(n,t,e){for(var i,r=e.split(","),o=0,a=r.length;o<a;o++)(i=r[o])&&n.registerName(t,i)},FO=function(n,t){for(var e=(t.textContent||"").split(`/*!sc*/
|
|
77
|
+
`),i=[],r=0,o=e.length;r<o;r++){var a=e[r].trim();if(a){var s=a.match(zO);if(s){var l=0|parseInt(s[1],10),c=s[2];l!==0&&(RO(c,l),BO(n,c,s[3]),n.getTag().insertRules(l,i)),i.length=0}else i.push(a)}}},VO=function(){return typeof window<"u"&&window.__webpack_nonce__!==void 0?window.__webpack_nonce__:null},iw=function(n){var t=document.head,e=n||t,i=document.createElement("style"),r=(function(s){for(var l=s.childNodes,c=l.length;c>=0;c--){var f=l[c];if(f&&f.nodeType===1&&f.hasAttribute(Oa))return f}})(e),o=r!==void 0?r.nextSibling:null;i.setAttribute(Oa,"active"),i.setAttribute("data-styled-version","5.3.5");var a=VO();return a&&i.setAttribute("nonce",a),e.insertBefore(i,o),i},HO=(function(){function n(e){var i=this.element=iw(e);i.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,a=0,s=o.length;a<s;a++){var l=o[a];if(l.ownerNode===r)return l}fo(17)})(i),this.length=0}var t=n.prototype;return t.insertRule=function(e,i){try{return this.sheet.insertRule(i,e),this.length++,!0}catch{return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var i=this.sheet.cssRules[e];return i!==void 0&&typeof i.cssText=="string"?i.cssText:""},n})(),WO=(function(){function n(e){var i=this.element=iw(e);this.nodes=i.childNodes,this.length=0}var t=n.prototype;return t.insertRule=function(e,i){if(e<=this.length&&e>=0){var r=document.createTextNode(i),o=this.nodes[e];return this.element.insertBefore(r,o||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},n})(),UO=(function(){function n(e){this.rules=[],this.length=0}var t=n.prototype;return t.insertRule=function(e,i){return e<=this.length&&(this.rules.splice(e,0,i),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},n})(),rw=Fg,GO={isServer:!Fg,useCSSOMInjection:!PO},cf=(function(){function n(e,i,r){e===void 0&&(e=Mr),i===void 0&&(i={}),this.options=Jn({},GO,{},e),this.gs=i,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Fg&&rw&&(rw=!1,(function(o){for(var a=document.querySelectorAll(NO),s=0,l=a.length;s<l;s++){var c=a[s];c&&c.getAttribute(Oa)!=="active"&&(FO(o,c),c.parentNode&&c.parentNode.removeChild(c))}})(this))}n.registerId=function(e){return uf(e)};var t=n.prototype;return t.reconstructWithOptions=function(e,i){return i===void 0&&(i=!0),new n(Jn({},this.options,{},e),this.gs,i&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(i=this.options).isServer,o=i.useCSSOMInjection,a=i.target,e=r?new UO(a):o?new HO(a):new WO(a),new EO(e)));var e,i,r,o,a},t.hasNameForId=function(e,i){return this.names.has(e)&&this.names.get(e).has(i)},t.registerName=function(e,i){if(uf(e),this.names.has(e))this.names.get(e).add(i);else{var r=new Set;r.add(i),this.names.set(e,r)}},t.insertRules=function(e,i,r){this.registerName(e,i),this.getTag().insertRules(uf(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(uf(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return(function(e){for(var i=e.getTag(),r=i.length,o="",a=0;a<r;a++){var s=OO(a);if(s!==void 0){var l=e.names.get(s),c=i.getGroup(a);if(l&&c&&l.size){var f=Oa+".g"+a+'[id="'+s+'"]',p="";l!==void 0&&l.forEach((function(g){g.length>0&&(p+=g+",")})),o+=""+c+f+'{content:"'+p+`"}/*!sc*/
|
|
78
|
+
`}}}return o})(this)},n})(),jO=/(a)(d)/gi,ow=function(n){return String.fromCharCode(n+(n>25?39:97))};function Vg(n){var t,e="";for(t=Math.abs(n);t>52;t=t/52|0)e=ow(t%52)+e;return(ow(t%52)+e).replace(jO,"$1-$2")}var Ra=function(n,t){for(var e=t.length;e;)n=33*n^t.charCodeAt(--e);return n},aw=function(n){return Ra(5381,n)};function sw(n){for(var t=0;t<n.length;t+=1){var e=n[t];if(Ea(e)&&!Bg(e))return!1}return!0}var ZO=aw("5.3.5"),YO=(function(){function n(t,e,i){this.rules=t,this.staticRulesId="",this.isStatic=(i===void 0||i.isStatic)&&sw(t),this.componentId=e,this.baseHash=Ra(ZO,e),this.baseStyle=i,cf.registerId(e)}return n.prototype.generateAndInjectStyles=function(t,e,i){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(t,e,i)),this.isStatic&&!i.hash)if(this.staticRulesId&&e.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var a=ho(this.rules,t,e,i).join(""),s=Vg(Ra(this.baseHash,a)>>>0);if(!e.hasNameForId(r,s)){var l=i(a,"."+s,void 0,r);e.insertRules(r,s,l)}o.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,f=Ra(this.baseHash,i.hash),p="",g=0;g<c;g++){var d=this.rules[g];if(typeof d=="string")p+=d;else if(d){var y=ho(d,t,e,i),_=Array.isArray(y)?y.join(""):y;f=Ra(f,_+g),p+=_}}if(p){var m=Vg(f>>>0);if(!e.hasNameForId(r,m)){var x=i(p,"."+m,void 0,r);e.insertRules(r,m,x)}o.push(m)}}return o.join(" ")},n})(),XO=/^\s*\/\/.*$/gm,$O=[":","[",".","#"];function qO(n){var t,e,i,r,o=Mr,a=o.options,s=a===void 0?Mr:a,l=o.plugins,c=l===void 0?af:l,f=new TO(s),p=[],g=(function(_){function m(x){if(x)try{_(x+"}")}catch{}}return function(x,w,S,C,M,T,D,P,L,O){switch(x){case 1:if(L===0&&w.charCodeAt(0)===64)return _(w+";"),"";break;case 2:if(P===0)return w+"/*|*/";break;case 3:switch(P){case 102:case 112:return _(S[0]+w),"";default:return w+(O===0?"/*|*/":"")}case-2:w.split("/*|*/}").forEach(m)}}})((function(_){p.push(_)})),d=function(_,m,x){return m===0&&$O.indexOf(x[e.length])!==-1||x.match(r)?_:"."+t};function y(_,m,x,w){w===void 0&&(w="&");var S=_.replace(XO,""),C=m&&x?x+" "+m+" { "+S+" }":S;return t=w,e=m,i=new RegExp("\\"+e+"\\b","g"),r=new RegExp("(\\"+e+"\\b){2,}"),f(x||!m?"":m,C)}return f.use([].concat(c,[function(_,m,x){_===2&&x.length&&x[0].lastIndexOf(e)>0&&(x[0]=x[0].replace(i,d))},g,function(_){if(_===-2){var m=p;return p=[],m}}])),y.hash=c.length?c.reduce((function(_,m){return m.name||fo(15),Ra(_,m.name)}),5381).toString():"",y}var lw=xi.createContext();lw.Consumer;var uw=xi.createContext(),QO=(uw.Consumer,new cf),Hg=qO();function cw(){return ue.useContext(lw)||QO}function fw(){return ue.useContext(uw)||Hg}var hw=(function(){function n(t,e){var i=this;this.inject=function(r,o){o===void 0&&(o=Hg);var a=i.name+o.hash;r.hasNameForId(i.id,a)||r.insertRules(i.id,a,o(i.rules,a,"@keyframes"))},this.toString=function(){return fo(12,String(i.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=e}return n.prototype.getName=function(t){return t===void 0&&(t=Hg),this.name+t.hash},n})(),KO=/([A-Z])/,JO=/([A-Z])/g,tR=/^ms-/,eR=function(n){return"-"+n.toLowerCase()};function pw(n){return KO.test(n)?n.replace(JO,eR).replace(tR,"-ms-"):n}var dw=function(n){return n==null||n===!1||n===""};function ho(n,t,e,i){if(Array.isArray(n)){for(var r,o=[],a=0,s=n.length;a<s;a+=1)(r=ho(n[a],t,e,i))!==""&&(Array.isArray(r)?o.push.apply(o,r):o.push(r));return o}if(dw(n))return"";if(Bg(n))return"."+n.styledComponentId;if(Ea(n)){if(typeof(c=n)!="function"||c.prototype&&c.prototype.isReactComponent||!t)return n;var l=n(t);return ho(l,t,e,i)}var c;return n instanceof hw?e?(n.inject(e,i),n.getName(i)):n:zg(n)?(function f(p,g){var d,y,_=[];for(var m in p)p.hasOwnProperty(m)&&!dw(p[m])&&(Array.isArray(p[m])&&p[m].isCss||Ea(p[m])?_.push(pw(m)+":",p[m],";"):zg(p[m])?_.push.apply(_,f(p[m],m)):_.push(pw(m)+": "+(d=m,(y=p[m])==null||typeof y=="boolean"||y===""?"":typeof y!="number"||y===0||d in IO?String(y).trim():y+"px")+";"));return g?[g+" {"].concat(_,["}"]):_})(n):n.toString()}var gw=function(n){return Array.isArray(n)&&(n.isCss=!0),n};function ff(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];return Ea(n)||zg(n)?gw(ho(ew(af,[n].concat(e)))):e.length===0&&n.length===1&&typeof n[0]=="string"?n:gw(ho(ew(n,e)))}var vw=function(n,t,e){return e===void 0&&(e=Mr),n.theme!==e.theme&&n.theme||t||e.theme},nR=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,iR=/(^-|-$)/g;function Wg(n){return n.replace(nR,"-").replace(iR,"")}var Ug=function(n){return Vg(aw(n)>>>0)};function hf(n){return typeof n=="string"&&!0}var Gg=function(n){return typeof n=="function"||typeof n=="object"&&n!==null&&!Array.isArray(n)},rR=function(n){return n!=="__proto__"&&n!=="constructor"&&n!=="prototype"};function oR(n,t,e){var i=n[e];Gg(t)&&Gg(i)?yw(i,t):n[e]=t}function yw(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];for(var r=0,o=e;r<o.length;r++){var a=o[r];if(Gg(a))for(var s in a)rR(s)&&oR(n,a[s],s)}return n}var po=xi.createContext();po.Consumer;function aR(n){var t=ue.useContext(po),e=ue.useMemo((function(){return(function(i,r){if(!i)return fo(14);if(Ea(i)){var o=i(r);return o}return Array.isArray(i)||typeof i!="object"?fo(8):r?Jn({},r,{},i):i})(n.theme,t)}),[n.theme,t]);return n.children?xi.createElement(po.Provider,{value:e},n.children):null}var jg={};function mw(n,t,e){var i=Bg(n),r=!hf(n),o=t.attrs,a=o===void 0?af:o,s=t.componentId,l=s===void 0?(function(w,S){var C=typeof w!="string"?"sc":Wg(w);jg[C]=(jg[C]||0)+1;var M=C+"-"+Ug("5.3.5"+C+jg[C]);return S?S+"-"+M:M})(t.displayName,t.parentComponentId):s,c=t.displayName,f=c===void 0?(function(w){return hf(w)?"styled."+w:"Styled("+nw(w)+")"})(n):c,p=t.displayName&&t.componentId?Wg(t.displayName)+"-"+t.componentId:t.componentId||l,g=i&&n.attrs?Array.prototype.concat(n.attrs,a).filter(Boolean):a,d=t.shouldForwardProp;i&&n.shouldForwardProp&&(d=t.shouldForwardProp?function(w,S,C){return n.shouldForwardProp(w,S,C)&&t.shouldForwardProp(w,S,C)}:n.shouldForwardProp);var y,_=new YO(e,p,i?n.componentStyle:void 0),m=_.isStatic&&a.length===0,x=function(w,S){return(function(C,M,T,D){var P=C.attrs,L=C.componentStyle,O=C.defaultProps,N=C.foldedComponentIds,B=C.shouldForwardProp,V=C.styledComponentId,Z=C.target,$=(function(tt,X,mt){tt===void 0&&(tt=Mr);var ot=Jn({},X,{theme:tt}),bt={};return mt.forEach((function(xt){var ut,lt,qt,Zt=xt;for(ut in Ea(Zt)&&(Zt=Zt(ot)),Zt)ot[ut]=bt[ut]=ut==="className"?(lt=bt[ut],qt=Zt[ut],lt&&qt?lt+" "+qt:lt||qt):Zt[ut]})),[ot,bt]})(vw(M,ue.useContext(po),O)||Mr,M,P),et=$[0],z=$[1],H=(function(tt,X,mt,ot){var bt=cw(),xt=fw(),ut=X?tt.generateAndInjectStyles(Mr,bt,xt):tt.generateAndInjectStyles(mt,bt,xt);return ut})(L,D,et),K=T,it=z.$as||M.$as||z.as||M.as||Z,j=hf(it),U=z!==M?Jn({},M,{},z):M,G={};for(var Q in U)Q[0]!=="$"&&Q!=="as"&&(Q==="forwardedAs"?G.as=U[Q]:(B?B(Q,tw,it):!j||tw(Q))&&(G[Q]=U[Q]));return M.style&&z.style!==M.style&&(G.style=Jn({},M.style,{},z.style)),G.className=Array.prototype.concat(N,V,H!==V?H:null,M.className,z.className).filter(Boolean).join(" "),G.ref=K,ue.createElement(it,G)})(y,w,S,m)};return x.displayName=f,(y=xi.forwardRef(x)).attrs=g,y.componentStyle=_,y.displayName=f,y.shouldForwardProp=d,y.foldedComponentIds=i?Array.prototype.concat(n.foldedComponentIds,n.styledComponentId):af,y.styledComponentId=p,y.target=i?n.target:n,y.withComponent=function(w){var S=t.componentId,C=(function(T,D){if(T==null)return{};var P,L,O={},N=Object.keys(T);for(L=0;L<N.length;L++)P=N[L],D.indexOf(P)>=0||(O[P]=T[P]);return O})(t,["componentId"]),M=S&&S+"-"+(hf(w)?w:Wg(nw(w)));return mw(w,Jn({},C,{attrs:g,componentId:M}),e)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(w){this._foldedDefaultProps=i?yw({},n.defaultProps,w):w}}),y.toString=function(){return"."+y.styledComponentId},r&&$E(y,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var Zg=function(n){return(function t(e,i,r){if(r===void 0&&(r=Mr),!Ng.isValidElementType(i))return fo(1,String(i));var o=function(){return e(i,r,ff.apply(void 0,arguments))};return o.withConfig=function(a){return t(e,i,Jn({},r,{},a))},o.attrs=function(a){return t(e,i,Jn({},r,{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},o})(mw,n)};["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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(n){Zg[n]=Zg(n)}));var sR=(function(){function n(e,i){this.rules=e,this.componentId=i,this.isStatic=sw(e),cf.registerId(this.componentId+1)}var t=n.prototype;return t.createStyles=function(e,i,r,o){var a=o(ho(this.rules,i,r,o).join(""),""),s=this.componentId+e;r.insertRules(s,s,a)},t.removeStyles=function(e,i){i.clearRules(this.componentId+e)},t.renderStyles=function(e,i,r,o){e>2&&cf.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,i,r,o)},n})();function lR(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];var r=ff.apply(void 0,[n].concat(e)),o="sc-global-"+Ug(JSON.stringify(r)),a=new sR(r,o);function s(c){var f=cw(),p=fw(),g=ue.useContext(po),d=ue.useRef(f.allocateGSInstance(o)).current;return f.server&&l(d,c,f,g,p),ue.useLayoutEffect((function(){if(!f.server)return l(d,c,f,g,p),function(){return a.removeStyles(d,f)}}),[d,c,f,g,p]),null}function l(c,f,p,g,d){if(a.isStatic)a.renderStyles(c,LO,p,d);else{var y=Jn({},f,{theme:vw(f,g,s.defaultProps)});a.renderStyles(c,y,p,d)}}return xi.memo(s)}function uR(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];var r=ff.apply(void 0,[n].concat(e)).join(""),o=Ug(r);return new hw(o,r)}var cR=function(){return ue.useContext(po)};/*! *****************************************************************************
|
|
79
|
+
Copyright (c) Microsoft Corporation.
|
|
80
|
+
|
|
81
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
82
|
+
purpose with or without fee is hereby granted.
|
|
83
|
+
|
|
84
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
85
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
86
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
87
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
88
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
89
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
90
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
91
|
+
***************************************************************************** */var Yg=function(n,t){return Yg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},Yg(n,t)};function ft(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Yg(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var fR=(function(){function n(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return n})(),hR=(function(){function n(){this.browser=new fR,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 n})(),Ct=new hR;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ct.wxa=!0,Ct.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ct.worker=!0:!Ct.hasGlobalWindow||"Deno"in window?(Ct.node=!0,Ct.svgSupported=!0):pR(navigator.userAgent,Ct);function pR(n,t){var e=t.browser,i=n.match(/Firefox\/([\d.]+)/),r=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),o=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);i&&(e.firefox=!0,e.version=i[1]),r&&(e.ie=!0,e.version=r[1]),o&&(e.edge=!0,e.version=o[1],e.newEdge=+o[1].split(".")[0]>18),a&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var Xg=12,dR="sans-serif",go=Xg+"px "+dR,gR=20,vR=100,yR="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function mR(n){var t={};if(typeof JSON>"u")return t;for(var e=0;e<n.length;e++){var i=String.fromCharCode(e+32),r=(n.charCodeAt(e)-gR)/vR;t[i]=r}return t}var _R=mR(yR),Yi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var n,t;return function(e,i){if(!n){var r=Yi.createCanvas();n=r&&r.getContext("2d")}if(n)return t!==i&&(t=n.font=i||go),n.measureText(e);e=e||"",i=i||go;var o=/((?:\d+)?\.?\d*)px/.exec(i),a=o&&+o[1]||Xg,s=0;if(i.indexOf("mono")>=0)s=a*e.length;else for(var l=0;l<e.length;l++){var c=_R[e[l]];s+=c==null?a:c*a}return{width:s}}})(),loadImage:function(n,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=n,i}};function _w(n){for(var t in Yi)n[t]&&(Yi[t]=n[t])}var xw=Si(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(n,t){return n["[object "+t+"]"]=!0,n},{}),bw=Si(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(n,t){return n["[object "+t+"Array]"]=!0,n},{}),Na=Object.prototype.toString,pf=Array.prototype,xR=pf.forEach,bR=pf.filter,$g=pf.slice,wR=pf.map,ww=(function(){}).constructor,df=ww?ww.prototype:null,qg="__proto__",SR=2311;function Qg(){return SR++}function gf(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];typeof console<"u"&&console.error.apply(console,n)}function Et(n){if(n==null||typeof n!="object")return n;var t=n,e=Na.call(n);if(e==="[object Array]"){if(!Fa(n)){t=[];for(var i=0,r=n.length;i<r;i++)t[i]=Et(n[i])}}else if(bw[e]){if(!Fa(n)){var o=n.constructor;if(o.from)t=o.from(n);else{t=new o(n.length);for(var i=0,r=n.length;i<r;i++)t[i]=n[i]}}}else if(!xw[e]&&!Fa(n)&&!vo(n)){t={};for(var a in n)n.hasOwnProperty(a)&&a!==qg&&(t[a]=Et(n[a]))}return t}function zt(n,t,e){if(!_t(t)||!_t(n))return e?Et(t):n;for(var i in t)if(t.hasOwnProperty(i)&&i!==qg){var r=n[i],o=t[i];_t(o)&&_t(r)&&!ct(o)&&!ct(r)&&!vo(o)&&!vo(r)&&!Jg(o)&&!Jg(r)&&!Fa(o)&&!Fa(r)?zt(r,o,e):(e||!(i in n))&&(n[i]=Et(t[i]))}return n}function kR(n,t){for(var e=n[0],i=1,r=n.length;i<r;i++)e=zt(e,n[i],t);return e}function st(n,t){if(Object.assign)Object.assign(n,t);else for(var e in t)t.hasOwnProperty(e)&&e!==qg&&(n[e]=t[e]);return n}function Wt(n,t,e){for(var i=ce(t),r=0,o=i.length;r<o;r++){var a=i[r];(e?t[a]!=null:n[a]==null)&&(n[a]=t[a])}return n}var MR=Yi.createCanvas;function Vt(n,t){if(n){if(n.indexOf)return n.indexOf(t);for(var e=0,i=n.length;e<i;e++)if(n[e]===t)return e}return-1}function Kg(n,t){var e=n.prototype;function i(){}i.prototype=t.prototype,n.prototype=new i;for(var r in e)e.hasOwnProperty(r)&&(n.prototype[r]=e[r]);n.prototype.constructor=n,n.superClass=t}function Sn(n,t,e){if(n="prototype"in n?n.prototype:n,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var o=i[r];o!=="constructor"&&(e?t[o]!=null:n[o]==null)&&(n[o]=t[o])}else Wt(n,t,e)}function Ke(n){return!n||typeof n=="string"?!1:typeof n.length=="number"}function E(n,t,e){if(n&&t)if(n.forEach&&n.forEach===xR)n.forEach(t,e);else if(n.length===+n.length)for(var i=0,r=n.length;i<r;i++)t.call(e,n[i],i,n);else for(var o in n)n.hasOwnProperty(o)&&t.call(e,n[o],o,n)}function pt(n,t,e){if(!n)return[];if(!t)return yf(n);if(n.map&&n.map===wR)return n.map(t,e);for(var i=[],r=0,o=n.length;r<o;r++)i.push(t.call(e,n[r],r,n));return i}function Si(n,t,e,i){if(n&&t){for(var r=0,o=n.length;r<o;r++)e=t.call(i,e,n[r],r,n);return e}}function ve(n,t,e){if(!n)return[];if(!t)return yf(n);if(n.filter&&n.filter===bR)return n.filter(t,e);for(var i=[],r=0,o=n.length;r<o;r++)t.call(e,n[r],r,n)&&i.push(n[r]);return i}function CR(n,t,e){if(n&&t){for(var i=0,r=n.length;i<r;i++)if(t.call(e,n[i],i,n))return n[i]}}function ce(n){if(!n)return[];if(Object.keys)return Object.keys(n);var t=[];for(var e in n)n.hasOwnProperty(e)&&t.push(e);return t}function TR(n,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return n.apply(t,e.concat($g.call(arguments)))}}var wt=df&&St(df.bind)?df.call.bind(df.bind):TR;function Gt(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return n.apply(this,t.concat($g.call(arguments)))}}function ct(n){return Array.isArray?Array.isArray(n):Na.call(n)==="[object Array]"}function St(n){return typeof n=="function"}function gt(n){return typeof n=="string"}function vf(n){return Na.call(n)==="[object String]"}function oe(n){return typeof n=="number"}function _t(n){var t=typeof n;return t==="function"||!!n&&t==="object"}function Jg(n){return!!xw[Na.call(n)]}function Je(n){return!!bw[Na.call(n)]}function vo(n){return typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.ownerDocument=="object"}function wl(n){return n.colorStops!=null}function Sw(n){return n.image!=null}function IR(n){return Na.call(n)==="[object RegExp]"}function Sl(n){return n!==n}function za(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(var e=0,i=n.length;e<i;e++)if(n[e]!=null)return n[e]}function Nt(n,t){return n??t}function Ba(n,t,e){return n??t??e}function yf(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return $g.apply(n,t)}function tv(n){if(typeof n=="number")return[n,n,n,n];var t=n.length;return t===2?[n[0],n[1],n[0],n[1]]:t===3?[n[0],n[1],n[2],n[1]]:n}function ti(n,t){if(!n)throw new Error(t)}function ei(n){return n==null?null:typeof n.trim=="function"?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var kw="__ec_primitive__";function kl(n){n[kw]=!0}function Fa(n){return n[kw]}var DR=(function(){function n(){this.data={}}return n.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},n.prototype.has=function(t){return this.data.hasOwnProperty(t)},n.prototype.get=function(t){return this.data[t]},n.prototype.set=function(t,e){return this.data[t]=e,this},n.prototype.keys=function(){return ce(this.data)},n.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},n})(),Mw=typeof Map=="function";function AR(){return Mw?new Map:new DR}var Cw=(function(){function n(t){var e=ct(t);this.data=AR();var i=this;t instanceof n?t.each(r):t&&E(t,r);function r(o,a){e?i.set(o,a):i.set(a,o)}}return n.prototype.hasKey=function(t){return this.data.has(t)},n.prototype.get=function(t){return this.data.get(t)},n.prototype.set=function(t,e){return this.data.set(t,e),e},n.prototype.each=function(t,e){this.data.forEach(function(i,r){t.call(e,i,r)})},n.prototype.keys=function(){var t=this.data.keys();return Mw?Array.from(t):t},n.prototype.removeKey=function(t){this.data.delete(t)},n})();function Mt(n){return new Cw(n)}function Tw(n,t){for(var e=new n.constructor(n.length+t.length),i=0;i<n.length;i++)e[i]=n[i];for(var r=n.length,i=0;i<t.length;i++)e[i+r]=t[i];return e}function Ml(n,t){var e;if(Object.create)e=Object.create(n);else{var i=function(){};i.prototype=n,e=new i}return t&&st(e,t),e}function ev(n){var t=n.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Cr(n,t){return n.hasOwnProperty(t)}function Ue(){}var Iw=180/Math.PI;const PR=Object.freeze(Object.defineProperty({__proto__:null,HashMap:Cw,RADIAN_TO_DEGREE:Iw,assert:ti,bind:wt,clone:Et,concatArray:Tw,createCanvas:MR,createHashMap:Mt,createObject:Ml,curry:Gt,defaults:Wt,disableUserSelect:ev,each:E,eqNaN:Sl,extend:st,filter:ve,find:CR,guid:Qg,hasOwn:Cr,indexOf:Vt,inherits:Kg,isArray:ct,isArrayLike:Ke,isBuiltInObject:Jg,isDom:vo,isFunction:St,isGradientObject:wl,isImagePatternObject:Sw,isNumber:oe,isObject:_t,isPrimitive:Fa,isRegExp:IR,isString:gt,isStringSafe:vf,isTypedArray:Je,keys:ce,logError:gf,map:pt,merge:zt,mergeAll:kR,mixin:Sn,noop:Ue,normalizeCssArray:tv,reduce:Si,retrieve:za,retrieve2:Nt,retrieve3:Ba,setAsPrimitive:kl,slice:yf,trim:ei},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
|
|
92
|
+
Copyright (c) Microsoft Corporation.
|
|
93
|
+
|
|
94
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
95
|
+
purpose with or without fee is hereby granted.
|
|
96
|
+
|
|
97
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
98
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
99
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
100
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
101
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
102
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
103
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
104
|
+
***************************************************************************** */var nv=function(n,t){return nv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},nv(n,t)};function ae(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nv(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function yo(n,t){return n==null&&(n=0),t==null&&(t=0),[n,t]}function LR(n,t){return n[0]=t[0],n[1]=t[1],n}function Dw(n){return[n[0],n[1]]}function ER(n,t,e){return n[0]=t,n[1]=e,n}function iv(n,t,e){return n[0]=t[0]+e[0],n[1]=t[1]+e[1],n}function OR(n,t,e,i){return n[0]=t[0]+e[0]*i,n[1]=t[1]+e[1]*i,n}function Aw(n,t,e){return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n}function rv(n){return Math.sqrt(ov(n))}var RR=rv;function ov(n){return n[0]*n[0]+n[1]*n[1]}var NR=ov;function zR(n,t,e){return n[0]=t[0]*e[0],n[1]=t[1]*e[1],n}function BR(n,t,e){return n[0]=t[0]/e[0],n[1]=t[1]/e[1],n}function FR(n,t){return n[0]*t[0]+n[1]*t[1]}function mf(n,t,e){return n[0]=t[0]*e,n[1]=t[1]*e,n}function Pw(n,t){var e=rv(t);return e===0?(n[0]=0,n[1]=0):(n[0]=t[0]/e,n[1]=t[1]/e),n}function _f(n,t){return Math.sqrt((n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1]))}var xf=_f;function Lw(n,t){return(n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1])}var mo=Lw;function VR(n,t){return n[0]=-t[0],n[1]=-t[1],n}function bf(n,t,e,i){return n[0]=t[0]+i*(e[0]-t[0]),n[1]=t[1]+i*(e[1]-t[1]),n}function tn(n,t,e){var i=t[0],r=t[1];return n[0]=e[0]*i+e[2]*r+e[4],n[1]=e[1]*i+e[3]*r+e[5],n}function Tr(n,t,e){return n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n}function Ir(n,t,e){return n[0]=Math.max(t[0],e[0]),n[1]=Math.max(t[1],e[1]),n}const HR=Object.freeze(Object.defineProperty({__proto__:null,add:iv,applyTransform:tn,clone:Dw,copy:LR,create:yo,dist:xf,distSquare:mo,distance:_f,distanceSquare:Lw,div:BR,dot:FR,len:rv,lenSquare:ov,length:RR,lengthSquare:NR,lerp:bf,max:Ir,min:Tr,mul:zR,negate:VR,normalize:Pw,scale:mf,scaleAndAdd:OR,set:ER,sub:Aw},Symbol.toStringTag,{value:"Module"}));var Va=(function(){function n(t,e){this.target=t,this.topTarget=e&&e.topTarget}return n})(),WR=(function(){function n(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return n.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Va(e,t),"dragstart",t.event))},n.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,r=t.offsetY,o=i-this._x,a=r-this._y;this._x=i,this._y=r,e.drift(o,a,t),this.handler.dispatchToElement(new Va(e,t),"drag",t.event);var s=this.handler.findHover(i,r,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Va(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Va(s,t),"dragenter",t.event))}},n.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Va(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Va(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},n})(),En=(function(){function n(t){t&&(this._$eventProcessor=t)}return n.prototype.on=function(t,e,i,r){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof e=="function"&&(r=i,i=e,e=null),!i||!t)return this;var a=this._$eventProcessor;e!=null&&a&&a.normalizeQuery&&(e=a.normalizeQuery(e)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===i)return this;var l={h:i,query:e,ctx:r||this,callAtLast:i.zrEventfulCallAtLast},c=o[t].length-1,f=o[t][c];return f&&f.callAtLast?o[t].splice(c,0,l):o[t].push(l),this},n.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},n.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var r=[],o=0,a=i[t].length;o<a;o++)i[t][o].h!==e&&r.push(i[t][o]);i[t]=r}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},n.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[t],o=this._$eventProcessor;if(r)for(var a=e.length,s=r.length,l=0;l<s;l++){var c=r[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,e[0]);break;case 2:c.h.call(c.ctx,e[0],e[1]);break;default:c.h.apply(c.ctx,e);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},n.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[t],o=this._$eventProcessor;if(r)for(var a=e.length,s=e[a-1],l=r.length,c=0;c<l;c++){var f=r[c];if(!(o&&o.filter&&f.query!=null&&!o.filter(t,f.query)))switch(a){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},n})(),UR=Math.log(2);function av(n,t,e,i,r,o){var a=i+"-"+r,s=n.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~r)/UR);return n[e][l]}for(var c=i|1<<e,f=e+1;i&1<<f;)f++;for(var p=0,g=0,d=0;g<s;g++){var y=1<<g;y&r||(p+=(d%2?-1:1)*n[e][g]*av(n,t-1,f,c,r|y,o),d++)}return o[a]=p,p}function Ew(n,t){var e=[[n[0],n[1],1,0,0,0,-t[0]*n[0],-t[0]*n[1]],[0,0,0,n[0],n[1],1,-t[1]*n[0],-t[1]*n[1]],[n[2],n[3],1,0,0,0,-t[2]*n[2],-t[2]*n[3]],[0,0,0,n[2],n[3],1,-t[3]*n[2],-t[3]*n[3]],[n[4],n[5],1,0,0,0,-t[4]*n[4],-t[4]*n[5]],[0,0,0,n[4],n[5],1,-t[5]*n[4],-t[5]*n[5]],[n[6],n[7],1,0,0,0,-t[6]*n[6],-t[6]*n[7]],[0,0,0,n[6],n[7],1,-t[7]*n[6],-t[7]*n[7]]],i={},r=av(e,8,0,0,0,i);if(r!==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)*av(e,7,a===0?1:0,1<<a,1<<s,i)/r*t[a];return function(l,c,f){var p=c*o[6]+f*o[7]+1;l[0]=(c*o[0]+f*o[1]+o[2])/p,l[1]=(c*o[3]+f*o[4]+o[5])/p}}}var Ow="___zrEVENTSAVED",sv=[];function GR(n,t,e,i,r){return lv(sv,t,i,r,!0)&&lv(n,e,sv[0],sv[1])}function lv(n,t,e,i,r){if(t.getBoundingClientRect&&Ct.domSupported&&!Rw(t)){var o=t[Ow]||(t[Ow]={}),a=jR(t,o),s=ZR(a,o,r);if(s)return s(n,e,i),!0}return!1}function jR(n,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],r=["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",i[l]+":0",r[c]+":0",i[1-l]+":auto",r[1-c]+":auto",""].join("!important;"),n.appendChild(a),e.push(a)}return e}function ZR(n,t,e){for(var i=e?"invTrans":"trans",r=t[i],o=t.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var f=n[c].getBoundingClientRect(),p=2*c,g=f.left,d=f.top;a.push(g,d),l=l&&o&&g===o[p]&&d===o[p+1],s.push(n[c].offsetLeft,n[c].offsetTop)}return l&&r?r:(t.srcCoords=a,t[i]=e?Ew(s,a):Ew(a,s))}function Rw(n){return n.nodeName.toUpperCase()==="CANVAS"}var YR=/([&<>"'])/g,XR={"&":"&","<":"<",">":">",'"':""","'":"'"};function en(n){return n==null?"":(n+"").replace(YR,function(t,e){return XR[e]})}var $R=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,uv=[],qR=Ct.browser.firefox&&+Ct.browser.version.split(".")[0]<39;function cv(n,t,e,i){return e=e||{},i?Nw(n,t,e):qR&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Nw(n,t,e),e}function Nw(n,t,e){if(Ct.domSupported&&n.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(Rw(n)){var o=n.getBoundingClientRect();e.zrX=i-o.left,e.zrY=r-o.top;return}else if(lv(uv,n,i,r)){e.zrX=uv[0],e.zrY=uv[1];return}}e.zrX=e.zrY=0}function fv(n){return n||window.event}function On(n,t,e){if(t=fv(t),t.zrX!=null)return t;var i=t.type,r=i&&i.indexOf("touch")>=0;if(r){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&cv(n,o,t,e)}else{cv(n,t,t,e);var a=QR(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&$R.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function QR(n){var t=n.wheelDelta;if(t)return t;var e=n.deltaX,i=n.deltaY;if(e==null||i==null)return t;var r=Math.abs(i!==0?i:e),o=i>0?-1:i<0?1:e>0?-1:1;return 3*r*o}function hv(n,t,e,i){n.addEventListener(t,e,i)}function KR(n,t,e,i){n.removeEventListener(t,e,i)}var Ha=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function zw(n){return n.which===2||n.which===3}var JR=(function(){function n(){this._track=[]}return n.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(t,e,i){var r=t.touches;if(r){for(var o={points:[],touches:[],target:e,event:t},a=0,s=r.length;a<s;a++){var l=r[a],c=cv(i,l,{});o.points.push([c.zrX,c.zrY]),o.touches.push(l)}this._track.push(o)}},n.prototype._recognize=function(t){for(var e in pv)if(pv.hasOwnProperty(e)){var i=pv[e](this._track,t);if(i)return i}},n})();function Bw(n){var t=n[1][0]-n[0][0],e=n[1][1]-n[0][1];return Math.sqrt(t*t+e*e)}function tN(n){return[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]}var pv={pinch:function(n,t){var e=n.length;if(e){var i=(n[e-1]||{}).points,r=(n[e-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=Bw(i)/Bw(r);!isFinite(o)&&(o=1),t.pinchScale=o;var a=tN(i);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:n[0].target,event:t}}}}};function Dr(){return[1,0,0,1,0,0]}function Cl(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function dv(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function Ar(n,t,e){var i=t[0]*e[0]+t[2]*e[1],r=t[1]*e[0]+t[3]*e[1],o=t[0]*e[2]+t[2]*e[3],a=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return n[0]=i,n[1]=r,n[2]=o,n[3]=a,n[4]=s,n[5]=l,n}function wf(n,t,e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4]+e[0],n[5]=t[5]+e[1],n}function Sf(n,t,e,i){i===void 0&&(i=[0,0]);var r=t[0],o=t[2],a=t[4],s=t[1],l=t[3],c=t[5],f=Math.sin(e),p=Math.cos(e);return n[0]=r*p+s*f,n[1]=-r*f+s*p,n[2]=o*p+l*f,n[3]=-o*f+p*l,n[4]=p*(a-i[0])+f*(c-i[1])+i[0],n[5]=p*(c-i[1])-f*(a-i[0])+i[1],n}function Fw(n,t,e){var i=e[0],r=e[1];return n[0]=t[0]*i,n[1]=t[1]*r,n[2]=t[2]*i,n[3]=t[3]*r,n[4]=t[4]*i,n[5]=t[5]*r,n}function Wa(n,t){var e=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=e*a-o*i;return l?(l=1/l,n[0]=a*l,n[1]=-o*l,n[2]=-i*l,n[3]=e*l,n[4]=(i*s-a*r)*l,n[5]=(o*r-e*s)*l,n):null}function eN(n){var t=Dr();return dv(t,n),t}const nN=Object.freeze(Object.defineProperty({__proto__:null,clone:eN,copy:dv,create:Dr,identity:Cl,invert:Wa,mul:Ar,rotate:Sf,scale:Fw,translate:wf},Symbol.toStringTag,{value:"Module"}));var Pt=(function(){function n(t,e){this.x=t||0,this.y=e||0}return n.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(t,e){return this.x=t,this.y=e,this},n.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},n.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},n.prototype.scale=function(t){this.x*=t,this.y*=t},n.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},n.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},n.prototype.dot=function(t){return this.x*t.x+this.y*t.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},n.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},n.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},n.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},n.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},n.set=function(t,e,i){t.x=e,t.y=i},n.copy=function(t,e){t.x=e.x,t.y=e.y},n.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},n.lenSquare=function(t){return t.x*t.x+t.y*t.y},n.dot=function(t,e){return t.x*e.x+t.y*e.y},n.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},n.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},n.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},n.scaleAndAdd=function(t,e,i,r){t.x=e.x+i.x*r,t.y=e.y+i.y*r},n.lerp=function(t,e,i,r){var o=1-r;t.x=o*e.x+r*i.x,t.y=o*e.y+r*i.y},n})(),kf=Math.min,Mf=Math.max,_o=new Pt,xo=new Pt,bo=new Pt,wo=new Pt,Tl=new Pt,Il=new Pt,jt=(function(){function n(t,e,i,r){i<0&&(t=t+i,i=-i),r<0&&(e=e+r,r=-r),this.x=t,this.y=e,this.width=i,this.height=r}return n.prototype.union=function(t){var e=kf(t.x,this.x),i=kf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Mf(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Mf(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},n.prototype.applyTransform=function(t){n.applyTransform(this,this,t)},n.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,r=t.height/e.height,o=Dr();return wf(o,o,[-e.x,-e.y]),Fw(o,o,[i,r]),wf(o,o,[t.x,t.y]),o},n.prototype.intersect=function(t,e){if(!t)return!1;t instanceof n||(t=n.create(t));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=t.x,c=t.x+t.width,f=t.y,p=t.y+t.height,g=!(o<l||c<r||s<f||p<a);if(e){var d=1/0,y=0,_=Math.abs(o-l),m=Math.abs(c-r),x=Math.abs(s-f),w=Math.abs(p-a),S=Math.min(_,m),C=Math.min(x,w);o<l||c<r?S>y&&(y=S,_<m?Pt.set(Il,-_,0):Pt.set(Il,m,0)):S<d&&(d=S,_<m?Pt.set(Tl,_,0):Pt.set(Tl,-m,0)),s<f||p<a?C>y&&(y=C,x<w?Pt.set(Il,0,-x):Pt.set(Il,0,w)):S<d&&(d=S,x<w?Pt.set(Tl,0,x):Pt.set(Tl,0,-w))}return e&&Pt.copy(e,g?Tl:Il),g},n.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(t){n.copy(this,t)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(t){return new n(t.x,t.y,t.width,t.height)},n.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},n.applyTransform=function(t,e,i){if(!i){t!==e&&n.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];t.x=e.x*r+a,t.y=e.y*o+s,t.width=e.width*r,t.height=e.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}_o.x=bo.x=e.x,_o.y=wo.y=e.y,xo.x=wo.x=e.x+e.width,xo.y=bo.y=e.y+e.height,_o.transform(i),wo.transform(i),xo.transform(i),bo.transform(i),t.x=kf(_o.x,xo.x,bo.x,wo.x),t.y=kf(_o.y,xo.y,bo.y,wo.y);var l=Mf(_o.x,xo.x,bo.x,wo.x),c=Mf(_o.y,xo.y,bo.y,wo.y);t.width=l-t.x,t.height=c-t.y},n})(),Vw="silent";function iN(n,t,e){return{type:n,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:rN}}function rN(){Ha(this.event)}var oN=(function(n){ae(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(En),Dl=(function(){function n(t,e){this.x=t,this.y=e}return n})(),aN=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],gv=new jt(0,0,0,0),Hw=(function(n){ae(t,n);function t(e,i,r,o,a){var s=n.call(this)||this;return s._hovered=new Dl(0,0),s.storage=e,s.painter=i,s.painterRoot=o,s._pointerSize=a,r=r||new oN,s.proxy=null,s.setHandlerProxy(r),s._draggingMgr=new WR(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(E(aN,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,r=e.zrY,o=Uw(this,i,r),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 Dl(i,r):this.findHover(i,r),c=l.target,f=this.proxy;f.setCursor&&f.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(a,"mouseout",e),this.dispatchToElement(l,"mousemove",e),c&&c!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Dl(0,0)},t.prototype.dispatch=function(e,i){var r=this[e];r&&r.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,r){e=e||{};var o=e.target;if(!(o&&o.silent)){for(var a="on"+i,s=iN(i,e,r);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(i,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,r){var o=this.storage.getDisplayList(),a=new Dl(e,i);if(Ww(o,a,e,i,r),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,c=l/2,f=new jt(e-c,i-c,l,l),p=o.length-1;p>=0;p--){var g=o[p];g!==r&&!g.ignore&&!g.ignoreCoarsePointer&&(!g.parent||!g.parent.ignoreCoarsePointer)&&(gv.copy(g.getBoundingRect()),g.transform&&gv.applyTransform(g.transform),gv.intersect(f)&&s.push(g))}if(s.length)for(var d=4,y=Math.PI/12,_=Math.PI*2,m=0;m<c;m+=d)for(var x=0;x<_;x+=y){var w=e+m*Math.cos(x),S=i+m*Math.sin(x);if(Ww(s,a,w,S,r),a.target)return a}}return a},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new JR);var r=this._gestureMgr;i==="start"&&r.clear();var o=r.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&r.clear(),o){var a=o.type;e.gestureEvent=a;var s=new Dl;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t})(En);E(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){Hw.prototype[n]=function(t){var e=t.zrX,i=t.zrY,r=Uw(this,e,i),o,a;if((n!=="mouseup"||!r)&&(o=this.findHover(e,i),a=o.target),n==="mousedown")this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if(n==="mouseup")this._upEl=a;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||xf(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,n,t)}});function sN(n,t,e){if(n[n.rectHover?"rectContain":"contain"](t,e)){for(var i=n,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,e))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s||i.parent}return r?Vw:!0}return!1}function Ww(n,t,e,i,r){for(var o=n.length-1;o>=0;o--){var a=n[o],s=void 0;if(a!==r&&!a.ignore&&(s=sN(a,e,i))&&(!t.topTarget&&(t.topTarget=a),s!==Vw)){t.target=a;break}}}function Uw(n,t,e){var i=n.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Gw=32,Al=7;function lN(n){for(var t=0;n>=Gw;)t|=n&1,n>>=1;return n+t}function jw(n,t,e,i){var r=t+1;if(r===e)return 1;if(i(n[r++],n[t])<0){for(;r<e&&i(n[r],n[r-1])<0;)r++;uN(n,t,r)}else for(;r<e&&i(n[r],n[r-1])>=0;)r++;return r-t}function uN(n,t,e){for(e--;t<e;){var i=n[t];n[t++]=n[e],n[e--]=i}}function Zw(n,t,e,i,r){for(i===t&&i++;i<e;i++){for(var o=n[i],a=t,s=i,l;a<s;)l=a+s>>>1,r(o,n[l])<0?s=l:a=l+1;var c=i-a;switch(c){case 3:n[a+3]=n[a+2];case 2:n[a+2]=n[a+1];case 1:n[a+1]=n[a];break;default:for(;c>0;)n[a+c]=n[a+c-1],c--}n[a]=o}}function vv(n,t,e,i,r,o){var a=0,s=0,l=1;if(o(n,t[e+r])>0){for(s=i-r;l<s&&o(n,t[e+r+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(n,t[e+r-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=r-l,l=r-c}for(a++;a<l;){var f=a+(l-a>>>1);o(n,t[e+f])>0?a=f+1:l=f}return l}function yv(n,t,e,i,r,o){var a=0,s=0,l=1;if(o(n,t[e+r])<0){for(s=r+1;l<s&&o(n,t[e+r-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=r-l,l=r-c}else{for(s=i-r;l<s&&o(n,t[e+r+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var f=a+(l-a>>>1);o(n,t[e+f])<0?l=f:a=f+1}return l}function cN(n,t){var e=Al,i,r,o=0,a=[];i=[],r=[];function s(d,y){i[o]=d,r[o]=y,o+=1}function l(){for(;o>1;){var d=o-2;if(d>=1&&r[d-1]<=r[d]+r[d+1]||d>=2&&r[d-2]<=r[d]+r[d-1])r[d-1]<r[d+1]&&d--;else if(r[d]>r[d+1])break;f(d)}}function c(){for(;o>1;){var d=o-2;d>0&&r[d-1]<r[d+1]&&d--,f(d)}}function f(d){var y=i[d],_=r[d],m=i[d+1],x=r[d+1];r[d]=_+x,d===o-3&&(i[d+1]=i[d+2],r[d+1]=r[d+2]),o--;var w=yv(n[m],n,y,_,0,t);y+=w,_-=w,_!==0&&(x=vv(n[y+_-1],n,m,x,x-1,t),x!==0&&(_<=x?p(y,_,m,x):g(y,_,m,x)))}function p(d,y,_,m){var x=0;for(x=0;x<y;x++)a[x]=n[d+x];var w=0,S=_,C=d;if(n[C++]=n[S++],--m===0){for(x=0;x<y;x++)n[C+x]=a[w+x];return}if(y===1){for(x=0;x<m;x++)n[C+x]=n[S+x];n[C+m]=a[w];return}for(var M=e,T,D,P;;){T=0,D=0,P=!1;do if(t(n[S],a[w])<0){if(n[C++]=n[S++],D++,T=0,--m===0){P=!0;break}}else if(n[C++]=a[w++],T++,D=0,--y===1){P=!0;break}while((T|D)<M);if(P)break;do{if(T=yv(n[S],a,w,y,0,t),T!==0){for(x=0;x<T;x++)n[C+x]=a[w+x];if(C+=T,w+=T,y-=T,y<=1){P=!0;break}}if(n[C++]=n[S++],--m===0){P=!0;break}if(D=vv(a[w],n,S,m,0,t),D!==0){for(x=0;x<D;x++)n[C+x]=n[S+x];if(C+=D,S+=D,m-=D,m===0){P=!0;break}}if(n[C++]=a[w++],--y===1){P=!0;break}M--}while(T>=Al||D>=Al);if(P)break;M<0&&(M=0),M+=2}if(e=M,e<1&&(e=1),y===1){for(x=0;x<m;x++)n[C+x]=n[S+x];n[C+m]=a[w]}else{if(y===0)throw new Error;for(x=0;x<y;x++)n[C+x]=a[w+x]}}function g(d,y,_,m){var x=0;for(x=0;x<m;x++)a[x]=n[_+x];var w=d+y-1,S=m-1,C=_+m-1,M=0,T=0;if(n[C--]=n[w--],--y===0){for(M=C-(m-1),x=0;x<m;x++)n[M+x]=a[x];return}if(m===1){for(C-=y,w-=y,T=C+1,M=w+1,x=y-1;x>=0;x--)n[T+x]=n[M+x];n[C]=a[S];return}for(var D=e;;){var P=0,L=0,O=!1;do if(t(a[S],n[w])<0){if(n[C--]=n[w--],P++,L=0,--y===0){O=!0;break}}else if(n[C--]=a[S--],L++,P=0,--m===1){O=!0;break}while((P|L)<D);if(O)break;do{if(P=y-yv(a[S],n,d,y,y-1,t),P!==0){for(C-=P,w-=P,y-=P,T=C+1,M=w+1,x=P-1;x>=0;x--)n[T+x]=n[M+x];if(y===0){O=!0;break}}if(n[C--]=a[S--],--m===1){O=!0;break}if(L=m-vv(n[w],a,0,m,m-1,t),L!==0){for(C-=L,S-=L,m-=L,T=C+1,M=S+1,x=0;x<L;x++)n[T+x]=a[M+x];if(m<=1){O=!0;break}}if(n[C--]=n[w--],--y===0){O=!0;break}D--}while(P>=Al||L>=Al);if(O)break;D<0&&(D=0),D+=2}if(e=D,e<1&&(e=1),m===1){for(C-=y,w-=y,T=C+1,M=w+1,x=y-1;x>=0;x--)n[T+x]=n[M+x];n[C]=a[S]}else{if(m===0)throw new Error;for(M=C-(m-1),x=0;x<m;x++)n[M+x]=a[x]}}return{mergeRuns:l,forceMergeRuns:c,pushRun:s}}function Cf(n,t,e,i){e||(e=0),i||(i=n.length);var r=i-e;if(!(r<2)){var o=0;if(r<Gw){o=jw(n,e,i,t),Zw(n,e,i,e+o,t);return}var a=cN(n,t),s=lN(r);do{if(o=jw(n,e,i,t),o<s){var l=r;l>s&&(l=s),Zw(n,e,e+l,e+o,t),o=l}a.pushRun(e,o),a.mergeRuns(),r-=o,e+=o}while(r!==0);a.forceMergeRuns()}}var kn=1,Pl=2,Ua=4,Yw=!1;function mv(){Yw||(Yw=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Xw(n,t){return n.zlevel===t.zlevel?n.z===t.z?n.z2-t.z2:n.z-t.z:n.zlevel-t.zlevel}var fN=(function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Xw}return n.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},n.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},n.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,r=0,o=e.length;r<o;r++)this._updateAndAddDisplayable(e[r],null,t);i.length=this._displayListLen,Cf(i,Xw)},n.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e?e=e.slice():e=[];for(var o=r,a=t;o;)o.parent=a,o.updateTransform(),e.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|=kn),this._updateAndAddDisplayable(c,e,i)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(mv(),f.z=0),isNaN(f.z2)&&(mv(),f.z2=0),isNaN(f.zlevel)&&(mv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,e,i);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,e,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,i)}},n.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},n.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var r=Vt(this._roots,t);r>=0&&this._roots.splice(r,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n})(),Tf;Tf=Ct.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};var Ll={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var t,e=.1,i=.4;return n===0?0:n===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)))},elasticOut:function(n){var t,e=.1,i=.4;return n===0?0:n===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*n)*Math.sin((n-t)*(2*Math.PI)/i)+1)},elasticInOut:function(n){var t,e=.1,i=.4;return n===0?0:n===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(n*=2)<1?-.5*(e*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)*.5+1)},backIn:function(n){var t=1.70158;return n*n*((t+1)*n-t)},backOut:function(n){var t=1.70158;return--n*n*((t+1)*n+t)+1},backInOut:function(n){var t=2.5949095;return(n*=2)<1?.5*(n*n*((t+1)*n-t)):.5*((n-=2)*n*((t+1)*n+t)+2)},bounceIn:function(n){return 1-Ll.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?Ll.bounceIn(n*2)*.5:Ll.bounceOut(n*2-1)*.5+.5}},If=Math.pow,Pr=Math.sqrt,Df=1e-8,$w=1e-4,qw=Pr(3),Af=1/3,ki=yo(),Rn=yo(),Ga=yo();function Lr(n){return n>-Df&&n<Df}function Qw(n){return n>Df||n<-Df}function Ae(n,t,e,i,r){var o=1-r;return o*o*(o*n+3*r*t)+r*r*(r*i+3*o*e)}function Kw(n,t,e,i,r){var o=1-r;return 3*(((t-n)*o+2*(e-t)*r)*o+(i-e)*r*r)}function Pf(n,t,e,i,r,o){var a=i+3*(t-e)-n,s=3*(e-t*2+n),l=3*(t-n),c=n-r,f=s*s-3*a*l,p=s*l-9*a*c,g=l*l-3*s*c,d=0;if(Lr(f)&&Lr(p))if(Lr(s))o[0]=0;else{var y=-l/s;y>=0&&y<=1&&(o[d++]=y)}else{var _=p*p-4*f*g;if(Lr(_)){var m=p/f,y=-s/a+m,x=-m/2;y>=0&&y<=1&&(o[d++]=y),x>=0&&x<=1&&(o[d++]=x)}else if(_>0){var w=Pr(_),S=f*s+1.5*a*(-p+w),C=f*s+1.5*a*(-p-w);S<0?S=-If(-S,Af):S=If(S,Af),C<0?C=-If(-C,Af):C=If(C,Af);var y=(-s-(S+C))/(3*a);y>=0&&y<=1&&(o[d++]=y)}else{var M=(2*f*s-3*a*p)/(2*Pr(f*f*f)),T=Math.acos(M)/3,D=Pr(f),P=Math.cos(T),y=(-s-2*D*P)/(3*a),x=(-s+D*(P+qw*Math.sin(T)))/(3*a),L=(-s+D*(P-qw*Math.sin(T)))/(3*a);y>=0&&y<=1&&(o[d++]=y),x>=0&&x<=1&&(o[d++]=x),L>=0&&L<=1&&(o[d++]=L)}}return d}function Jw(n,t,e,i,r){var o=6*e-12*t+6*n,a=9*t+3*i-3*n-9*e,s=3*t-3*n,l=0;if(Lr(a)){if(Qw(o)){var c=-s/o;c>=0&&c<=1&&(r[l++]=c)}}else{var f=o*o-4*a*s;if(Lr(f))r[0]=-o/(2*a);else if(f>0){var p=Pr(f),c=(-o+p)/(2*a),g=(-o-p)/(2*a);c>=0&&c<=1&&(r[l++]=c),g>=0&&g<=1&&(r[l++]=g)}}return l}function Lf(n,t,e,i,r,o){var a=(t-n)*r+n,s=(e-t)*r+t,l=(i-e)*r+e,c=(s-a)*r+a,f=(l-s)*r+s,p=(f-c)*r+c;o[0]=n,o[1]=a,o[2]=c,o[3]=p,o[4]=p,o[5]=f,o[6]=l,o[7]=i}function tS(n,t,e,i,r,o,a,s,l,c,f){var p,g=.005,d=1/0,y,_,m,x;ki[0]=l,ki[1]=c;for(var w=0;w<1;w+=.05)Rn[0]=Ae(n,e,r,a,w),Rn[1]=Ae(t,i,o,s,w),m=mo(ki,Rn),m<d&&(p=w,d=m);d=1/0;for(var S=0;S<32&&!(g<$w);S++)y=p-g,_=p+g,Rn[0]=Ae(n,e,r,a,y),Rn[1]=Ae(t,i,o,s,y),m=mo(Rn,ki),y>=0&&m<d?(p=y,d=m):(Ga[0]=Ae(n,e,r,a,_),Ga[1]=Ae(t,i,o,s,_),x=mo(Ga,ki),_<=1&&x<d?(p=_,d=x):g*=.5);return f&&(f[0]=Ae(n,e,r,a,p),f[1]=Ae(t,i,o,s,p)),Pr(d)}function hN(n,t,e,i,r,o,a,s,l){for(var c=n,f=t,p=0,g=1/l,d=1;d<=l;d++){var y=d*g,_=Ae(n,e,r,a,y),m=Ae(t,i,o,s,y),x=_-c,w=m-f;p+=Math.sqrt(x*x+w*w),c=_,f=m}return p}function Ge(n,t,e,i){var r=1-i;return r*(r*n+2*i*t)+i*i*e}function eS(n,t,e,i){return 2*((1-i)*(t-n)+i*(e-t))}function pN(n,t,e,i,r){var o=n-2*t+e,a=2*(t-n),s=n-i,l=0;if(Lr(o)){if(Qw(a)){var c=-s/a;c>=0&&c<=1&&(r[l++]=c)}}else{var f=a*a-4*o*s;if(Lr(f)){var c=-a/(2*o);c>=0&&c<=1&&(r[l++]=c)}else if(f>0){var p=Pr(f),c=(-a+p)/(2*o),g=(-a-p)/(2*o);c>=0&&c<=1&&(r[l++]=c),g>=0&&g<=1&&(r[l++]=g)}}return l}function nS(n,t,e){var i=n+e-2*t;return i===0?.5:(n-t)/i}function Ef(n,t,e,i,r){var o=(t-n)*i+n,a=(e-t)*i+t,s=(a-o)*i+o;r[0]=n,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=e}function iS(n,t,e,i,r,o,a,s,l){var c,f=.005,p=1/0;ki[0]=a,ki[1]=s;for(var g=0;g<1;g+=.05){Rn[0]=Ge(n,e,r,g),Rn[1]=Ge(t,i,o,g);var d=mo(ki,Rn);d<p&&(c=g,p=d)}p=1/0;for(var y=0;y<32&&!(f<$w);y++){var _=c-f,m=c+f;Rn[0]=Ge(n,e,r,_),Rn[1]=Ge(t,i,o,_);var d=mo(Rn,ki);if(_>=0&&d<p)c=_,p=d;else{Ga[0]=Ge(n,e,r,m),Ga[1]=Ge(t,i,o,m);var x=mo(Ga,ki);m<=1&&x<p?(c=m,p=x):f*=.5}}return l&&(l[0]=Ge(n,e,r,c),l[1]=Ge(t,i,o,c)),Pr(p)}function dN(n,t,e,i,r,o,a){for(var s=n,l=t,c=0,f=1/a,p=1;p<=a;p++){var g=p*f,d=Ge(n,e,r,g),y=Ge(t,i,o,g),_=d-s,m=y-l;c+=Math.sqrt(_*_+m*m),s=d,l=y}return c}var gN=/cubic-bezier\(([0-9,\.e ]+)\)/;function rS(n){var t=n&&gN.exec(n);if(t){var e=t[1].split(","),i=+ei(e[0]),r=+ei(e[1]),o=+ei(e[2]),a=+ei(e[3]);if(isNaN(i+r+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:Pf(0,i,o,1,l,s)&&Ae(0,r,a,1,s[0])}}}var vN=(function(){function n(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||Ue,this.ondestroy=t.ondestroy||Ue,this.onrestart=t.onrestart||Ue,t.easing&&this.setEasing(t.easing)}return n.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,r=t-this._startTime-this._pausedTime,o=r/i;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=r%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(t){this.easing=t,this.easingFunc=St(t)?t:Ll[t]||rS(t)},n})(),oS=(function(){function n(t){this.value=t}return n})(),yN=(function(){function n(){this._len=0}return n.prototype.insert=function(t){var e=new oS(t);return this.insertEntry(e),e},n.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++},n.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n})(),El=(function(){function n(t){this._list=new yN,this._maxSize=10,this._map={},this._maxSize=t}return n.prototype.put=function(t,e){var i=this._list,r=this._map,o=null;if(r[t]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new oS(e),s.key=t,i.insertEntry(s),r[t]=s}return o},n.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n})(),aS={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 ni(n){return n=Math.round(n),n<0?0:n>255?255:n}function mN(n){return n=Math.round(n),n<0?0:n>360?360:n}function Ol(n){return n<0?0:n>1?1:n}function _v(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?ni(parseFloat(t)/100*255):ni(parseInt(t,10))}function So(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?Ol(parseFloat(t)/100):Ol(parseFloat(t))}function xv(n,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?n+(t-n)*e*6:e*2<1?t:e*3<2?n+(t-n)*(2/3-e)*6:n}function Er(n,t,e){return n+(t-n)*e}function Nn(n,t,e,i,r){return n[0]=t,n[1]=e,n[2]=i,n[3]=r,n}function bv(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}var sS=new El(20),Of=null;function ja(n,t){Of&&bv(Of,t),Of=sS.put(n,Of||t.slice())}function Mn(n,t){if(n){t=t||[];var e=sS.get(n);if(e)return bv(t,e);n=n+"";var i=n.replace(/ /g,"").toLowerCase();if(i in aS)return bv(t,aS[i]),ja(n,t),t;var r=i.length;if(i.charAt(0)==="#"){if(r===4||r===5){var o=parseInt(i.slice(1,4),16);if(!(o>=0&&o<=4095)){Nn(t,0,0,0,1);return}return Nn(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,r===5?parseInt(i.slice(4),16)/15:1),ja(n,t),t}else if(r===7||r===9){var o=parseInt(i.slice(1,7),16);if(!(o>=0&&o<=16777215)){Nn(t,0,0,0,1);return}return Nn(t,(o&16711680)>>16,(o&65280)>>8,o&255,r===9?parseInt(i.slice(7),16)/255:1),ja(n,t),t}return}var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===r){var l=i.substr(0,a),c=i.substr(a+1,s-(a+1)).split(","),f=1;switch(l){case"rgba":if(c.length!==4)return c.length===3?Nn(t,+c[0],+c[1],+c[2],1):Nn(t,0,0,0,1);f=So(c.pop());case"rgb":if(c.length>=3)return Nn(t,_v(c[0]),_v(c[1]),_v(c[2]),c.length===3?f:So(c[3])),ja(n,t),t;Nn(t,0,0,0,1);return;case"hsla":if(c.length!==4){Nn(t,0,0,0,1);return}return c[3]=So(c[3]),wv(c,t),ja(n,t),t;case"hsl":if(c.length!==3){Nn(t,0,0,0,1);return}return wv(c,t),ja(n,t),t;default:return}}Nn(t,0,0,0,1)}}function wv(n,t){var e=(parseFloat(n[0])%360+360)%360/360,i=So(n[1]),r=So(n[2]),o=r<=.5?r*(i+1):r+i-r*i,a=r*2-o;return t=t||[],Nn(t,ni(xv(a,o,e+1/3)*255),ni(xv(a,o,e)*255),ni(xv(a,o,e-1/3)*255),1),n.length===4&&(t[3]=n[3]),t}function _N(n){if(n){var t=n[0]/255,e=n[1]/255,i=n[2]/255,r=Math.min(t,e,i),o=Math.max(t,e,i),a=o-r,s=(o+r)/2,l,c;if(a===0)l=0,c=0;else{s<.5?c=a/(o+r):c=a/(2-o-r);var f=((o-t)/6+a/2)/a,p=((o-e)/6+a/2)/a,g=((o-i)/6+a/2)/a;t===o?l=g-p:e===o?l=1/3+f-g:i===o&&(l=2/3+p-f),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,c,s];return n[3]!=null&&d.push(n[3]),d}}function Sv(n,t){var e=Mn(n);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return Or(e,e.length===4?"rgba":"rgb")}}function xN(n){var t=Mn(n);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function lS(n,t,e){if(!(!(t&&t.length)||!(n>=0&&n<=1))){e=e||[];var i=n*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=t[r],s=t[o],l=i-r;return e[0]=ni(Er(a[0],s[0],l)),e[1]=ni(Er(a[1],s[1],l)),e[2]=ni(Er(a[2],s[2],l)),e[3]=Ol(Er(a[3],s[3],l)),e}}var bN=lS;function kv(n,t,e){if(!(!(t&&t.length)||!(n>=0&&n<=1))){var i=n*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=Mn(t[r]),s=Mn(t[o]),l=i-r,c=Or([ni(Er(a[0],s[0],l)),ni(Er(a[1],s[1],l)),ni(Er(a[2],s[2],l)),Ol(Er(a[3],s[3],l))],"rgba");return e?{color:c,leftIndex:r,rightIndex:o,value:i}:c}}var wN=kv;function SN(n,t,e,i){var r=Mn(n);if(n)return r=_N(r),t!=null&&(r[0]=mN(t)),e!=null&&(r[1]=So(e)),i!=null&&(r[2]=So(i)),Or(wv(r),"rgba")}function kN(n,t){var e=Mn(n);if(e&&t!=null)return e[3]=Ol(t),Or(e,"rgba")}function Or(n,t){if(!(!n||!n.length)){var e=n[0]+","+n[1]+","+n[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+n[3]),t+"("+e+")"}}function Rl(n,t){var e=Mn(n);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function MN(){return Or([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var uS=new El(100);function Mv(n){if(gt(n)){var t=uS.get(n);return t||(t=Sv(n,-.1),uS.put(n,t)),t}else if(wl(n)){var e=st({},n);return e.colorStops=pt(n.colorStops,function(i){return{offset:i.offset,color:Sv(i.color,-.1)}}),e}return n}const CN=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:lS,fastMapToColor:bN,lerp:kv,lift:Sv,liftColor:Mv,lum:Rl,mapToColor:wN,modifyAlpha:kN,modifyHSL:SN,parse:Mn,random:MN,stringify:Or,toHex:xN},Symbol.toStringTag,{value:"Module"}));function TN(n){return n.type==="linear"}function IN(n){return n.type==="radial"}(function(){return Ct.hasGlobalWindow&&St(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}})();var Cv=Array.prototype.slice;function Xi(n,t,e){return(t-n)*e+n}function Tv(n,t,e,i){for(var r=t.length,o=0;o<r;o++)n[o]=Xi(t[o],e[o],i);return n}function DN(n,t,e,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){n[a]||(n[a]=[]);for(var s=0;s<o;s++)n[a][s]=Xi(t[a][s],e[a][s],i)}return n}function Rf(n,t,e,i){for(var r=t.length,o=0;o<r;o++)n[o]=t[o]+e[o]*i;return n}function cS(n,t,e,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){n[a]||(n[a]=[]);for(var s=0;s<o;s++)n[a][s]=t[a][s]+e[a][s]*i}return n}function AN(n,t){for(var e=n.length,i=t.length,r=e>i?t:n,o=Math.min(e,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(e,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function PN(n,t,e){var i=n,r=t;if(!(!i.push||!r.push)){var o=i.length,a=r.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;l<a;l++)i.push(e===1?r[l]:Cv.call(r[l]))}for(var c=i[0]&&i[0].length,l=0;l<i.length;l++)if(e===1)isNaN(i[l])&&(i[l]=r[l]);else for(var f=0;f<c;f++)isNaN(i[l][f])&&(i[l][f]=r[l][f])}}function Nf(n){if(Ke(n)){var t=n.length;if(Ke(n[0])){for(var e=[],i=0;i<t;i++)e.push(Cv.call(n[i]));return e}return Cv.call(n)}return n}function zf(n){return n[0]=Math.floor(n[0])||0,n[1]=Math.floor(n[1])||0,n[2]=Math.floor(n[2])||0,n[3]=n[3]==null?1:n[3],"rgba("+n.join(",")+")"}function LN(n){return Ke(n&&n[0])?2:1}var Bf=0,Ff=1,fS=2,Nl=3,Iv=4,Dv=5,hS=6;function pS(n){return n===Iv||n===Dv}function Vf(n){return n===Ff||n===fS}var zl=[0,0,0,0],EN=(function(){function n(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return n.prototype.isFinished=function(){return this._finished},n.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},n.prototype.needsAnimate=function(){return this.keyframes.length>=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var r=this.keyframes,o=r.length,a=!1,s=hS,l=e;if(Ke(e)){var c=LN(e);s=c,(c===1&&!oe(e[0])||c===2&&!oe(e[0][0]))&&(a=!0)}else if(oe(e)&&!Sl(e))s=Bf;else if(gt(e))if(!isNaN(+e))s=Bf;else{var f=Mn(e);f&&(l=f,s=Nl)}else if(wl(e)){var p=st({},l);p.colorStops=pt(e.colorStops,function(d){return{offset:d.offset,color:Mn(d.color)}}),TN(e)?s=Iv:IN(e)&&(s=Dv),l=p}o===0?this.valType=s:(s!==this.valType||s===hS)&&(a=!0),this.discrete=this.discrete||a;var g={time:t,value:l,rawValue:e,percent:0};return i&&(g.easing=i,g.easingFunc=St(i)?i:Ll[i]||rS(i)),r.push(g),g},n.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(_,m){return _.time-m.time});for(var r=this.valType,o=i.length,a=i[o-1],s=this.discrete,l=Vf(r),c=pS(r),f=0;f<o;f++){var p=i[f],g=p.value,d=a.value;p.percent=p.time/t,s||(l&&f!==o-1?PN(g,d,r):c&&AN(g.colorStops,d.colorStops))}if(!s&&r!==Dv&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;for(var y=i[0].value,f=0;f<o;f++)r===Bf?i[f].additiveValue=i[f].value-y:r===Nl?i[f].additiveValue=Rf([],i[f].value,y,-1):Vf(r)&&(i[f].additiveValue=r===Ff?Rf([],i[f].value,y,-1):cS([],i[f].value,y,-1))}},n.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,r=i?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,c=o===Nl,f,p=this._lastFr,g=Math.min,d,y;if(s===1)d=y=a[0];else{if(e<0)f=0;else if(e<this._lastFrP){var _=g(p+1,s-1);for(f=_;f>=0&&!(a[f].percent<=e);f--);f=g(f,s-2)}else{for(f=p;f<s&&!(a[f].percent>e);f++);f=g(f-1,s-2)}y=a[f+1],d=a[f]}if(d&&y){this._lastFr=f,this._lastFrP=e;var m=y.percent-d.percent,x=m===0?1:g((e-d.percent)/m,1);y.easingFunc&&(x=y.easingFunc(x));var w=i?this._additiveValue:c?zl:t[l];if((Vf(o)||c)&&!w&&(w=this._additiveValue=[]),this.discrete)t[l]=x<1?d.rawValue:y.rawValue;else if(Vf(o))o===Ff?Tv(w,d[r],y[r],x):DN(w,d[r],y[r],x);else if(pS(o)){var S=d[r],C=y[r],M=o===Iv;t[l]={type:M?"linear":"radial",x:Xi(S.x,C.x,x),y:Xi(S.y,C.y,x),colorStops:pt(S.colorStops,function(D,P){var L=C.colorStops[P];return{offset:Xi(D.offset,L.offset,x),color:zf(Tv([],D.color,L.color,x))}}),global:C.global},M?(t[l].x2=Xi(S.x2,C.x2,x),t[l].y2=Xi(S.y2,C.y2,x)):t[l].r=Xi(S.r,C.r,x)}else if(c)Tv(w,d[r],y[r],x),i||(t[l]=zf(w));else{var T=Xi(d[r],y[r],x);i?this._additiveValue=T:t[l]=T}i&&this._addToTarget(t)}}},n.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,r=this._additiveValue;e===Bf?t[i]=t[i]+r:e===Nl?(Mn(t[i],zl),Rf(zl,zl,r,1),t[i]=zf(zl)):e===Ff?Rf(t[i],t[i],r,1):e===fS&&cS(t[i],t[i],r,1)},n})(),Av=(function(){function n(t,e,i,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r){gf("Can' use additive animation on looped animation.");return}this._additiveAnimators=r,this._allowDiscrete=i}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(t){this._target=t},n.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,ce(e),i)},n.prototype.whenWithKeys=function(t,e,i,r){for(var o=this._tracks,a=0;a<i.length;a++){var s=i[a],l=o[s];if(!l){l=o[s]=new EN(s);var c=void 0,f=this._getAdditiveTrack(s);if(f){var p=f.keyframes,g=p[p.length-1];c=g&&g.value,f.valType===Nl&&c&&(c=zf(c))}else c=this._target[s];if(c==null)continue;t>0&&l.addKeyframe(0,Nf(c),r),this._trackKeys.push(s)}l.addKeyframe(t,Nf(e[s]),r)}return this._maxTime=Math.max(this._maxTime,t),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},n.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},n.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},n.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var r=0;r<i.length;r++){var o=i[r].getTrack(t);o&&(e=o)}return e},n.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],r=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,f=c.length;if(s.prepare(r,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var p=c[f-1];p&&(e._target[s.propName]=p.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var g=new vN({life:r,loop:this._loop,delay:this._delay||0,onframe:function(d){e._started=2;var y=e._additiveAnimators;if(y){for(var _=!1,m=0;m<y.length;m++)if(y[m]._clip){_=!0;break}_||(e._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(e._target,d);var x=e._onframeCbs;if(x)for(var m=0;m<x.length;m++)x[m](e._target,d)},ondestroy:function(){e._doneCallback()}});this._clip=g,this.animation&&this.animation.addClip(g),t&&g.setEasing(t)}else this._doneCallback();return this}},n.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},n.prototype.delay=function(t){return this._delay=t,this},n.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},n.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},n.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(t){return this._tracks[t]},n.prototype.getTracks=function(){var t=this;return pt(this._trackKeys,function(e){return t._tracks[e]})},n.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,r=this._trackKeys,o=0;o<t.length;o++){var a=i[t[o]];a&&!a.isFinished()&&(e?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<r.length;o++)if(!i[r[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},n.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var o=e[r],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[i?0:s.length-1];l&&(t[o]=Nf(l.rawValue))}}}},n.prototype.__changeFinalValue=function(t,e){e=e||ce(t);for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},n})();function Za(){return new Date().getTime()}var ON=(function(n){ae(t,n);function t(e){var i=n.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,r=e.next;i?i.next=r:this._head=r,r?r.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Za()-this._pausedTime,r=i-this._time,o=this._head;o;){var a=o.next,s=o.step(i,r);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=i,e||(this.trigger("frame",r),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(Tf(i),!e._paused&&e.update())}Tf(i)},t.prototype.start=function(){this._running||(this._time=Za(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Za(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Za()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var r=new Av(e,i.loop);return this.addAnimator(r),r},t})(En),RN=300,Pv=Ct.domSupported,Lv=(function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=pt(n,function(r){var o=r.replace("mouse","pointer");return e.hasOwnProperty(o)?o:r});return{mouse:n,touch:t,pointer:i}})(),dS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},gS=!1;function Ev(n){var t=n.pointerType;return t==="pen"||t==="touch"}function NN(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function Ov(n){n&&(n.zrByTouch=!0)}function zN(n,t){return On(n.dom,new BN(n,t),!0)}function vS(n,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===n.painterRoot);)e=e.parentNode;return i}var BN=(function(){function n(t,e){this.stopPropagation=Ue,this.stopImmediatePropagation=Ue,this.preventDefault=Ue,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return n})(),ii={mousedown:function(n){n=On(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=On(this.dom,n);var t=this.__mayPointerCapture;t&&(n.zrX!==t[0]||n.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=On(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=On(this.dom,n);var t=n.toElement||n.relatedTarget;vS(this,t)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){gS=!0,n=On(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){gS||(n=On(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=On(this.dom,n),Ov(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),ii.mousemove.call(this,n),ii.mousedown.call(this,n)},touchmove:function(n){n=On(this.dom,n),Ov(n),this.handler.processGesture(n,"change"),ii.mousemove.call(this,n)},touchend:function(n){n=On(this.dom,n),Ov(n),this.handler.processGesture(n,"end"),ii.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<RN&&ii.click.call(this,n)},pointerdown:function(n){ii.mousedown.call(this,n)},pointermove:function(n){Ev(n)||ii.mousemove.call(this,n)},pointerup:function(n){ii.mouseup.call(this,n)},pointerout:function(n){Ev(n)||ii.mouseout.call(this,n)}};E(["click","dblclick","contextmenu"],function(n){ii[n]=function(t){t=On(this.dom,t),this.trigger(n,t)}});var Rv={pointermove:function(n){Ev(n)||Rv.mousemove.call(this,n)},pointerup:function(n){Rv.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),t&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function FN(n,t){var e=t.domHandlers;Ct.pointerEventsSupported?E(Lv.pointer,function(i){Hf(t,i,function(r){e[i].call(n,r)})}):(Ct.touchEventsSupported&&E(Lv.touch,function(i){Hf(t,i,function(r){e[i].call(n,r),NN(t)})}),E(Lv.mouse,function(i){Hf(t,i,function(r){r=fv(r),t.touching||e[i].call(n,r)})}))}function VN(n,t){Ct.pointerEventsSupported?E(dS.pointer,e):Ct.touchEventsSupported||E(dS.mouse,e);function e(i){function r(o){o=fv(o),vS(n,o.target)||(o=zN(n,o),t.domHandlers[i].call(n,o))}Hf(t,i,r,{capture:!0})}}function Hf(n,t,e,i){n.mounted[t]=e,n.listenerOpts[t]=i,hv(n.domTarget,t,e,i)}function Nv(n){var t=n.mounted;for(var e in t)t.hasOwnProperty(e)&&KR(n.domTarget,e,t[e],n.listenerOpts[e]);n.mounted={}}var yS=(function(){function n(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return n})(),HN=(function(n){ae(t,n);function t(e,i){var r=n.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=i,r._localHandlerScope=new yS(e,ii),Pv&&(r._globalHandlerScope=new yS(document,Rv)),FN(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Nv(this._localHandlerScope),Pv&&Nv(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Pv&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?VN(this,i):Nv(i)}},t})(En),mS=1;Ct.hasGlobalWindow&&(mS=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Wf=mS,zv=.4,Bv="#333",Fv="#ccc",WN="#eee",_S=Cl,xS=5e-5;function ko(n){return n>xS||n<-xS}var Mo=[],Ya=[],Vv=Dr(),Hv=Math.abs,Uf=(function(){function n(){}return n.prototype.getLocalTransform=function(t){return n.getLocalTransform(this,t)},n.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},n.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},n.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},n.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},n.prototype.needLocalTransform=function(){return ko(this.rotation)||ko(this.x)||ko(this.y)||ko(this.scaleX-1)||ko(this.scaleY-1)||ko(this.skewX)||ko(this.skewY)},n.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(_S(i),this.invTransform=null);return}i=i||Dr(),e?this.getLocalTransform(i):_S(i),t&&(e?Ar(i,t,i):dv(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},n.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Mo);var i=Mo[0]<0?-1:1,r=Mo[1]<0?-1:1,o=((Mo[0]-i)*e+i)/Mo[0]||0,a=((Mo[1]-r)*e+r)/Mo[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||Dr(),Wa(this.invTransform,t)},n.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},n.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),o=Math.PI/2+r-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(o),e=Math.sqrt(e),this.skewX=o,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Dr(),Ar(Ya,t.invTransform,e),e=Ya);var i=this.originX,r=this.originY;(i||r)&&(Vv[4]=i,Vv[5]=r,Ar(Ya,e,Vv),Ya[4]-=i,Ya[5]-=r,e=Ya),this.setLocalTransform(e)}},n.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},n.prototype.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&tn(i,i,r),i},n.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],r=this.transform;return r&&tn(i,i,r),i},n.prototype.getLineScale=function(){var t=this.transform;return t&&Hv(t[0]-1)>1e-10&&Hv(t[3]-1)>1e-10?Math.sqrt(Hv(t[0]*t[3]-t[2]*t[1])):1},n.prototype.copyTransform=function(t){UN(this,t)},n.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,c=t.rotation||0,f=t.x,p=t.y,g=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(i||r||s||l){var y=i+s,_=r+l;e[4]=-y*o-g*_*a,e[5]=-_*a-d*y*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=d*o,e[2]=g*a,c&&Sf(e,e,c),e[4]+=i+f,e[5]+=r+p,e},n.initDefaultProps=(function(){var t=n.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})(),n})(),Bl=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function UN(n,t){for(var e=0;e<Bl.length;e++){var i=Bl[e];n[i]=t[i]}}var bS={};function Cn(n,t){t=t||go;var e=bS[t];e||(e=bS[t]=new El(500));var i=e.get(n);return i==null&&(i=Yi.measureText(n,t).width,e.put(n,i)),i}function wS(n,t,e,i){var r=Cn(n,t),o=Wv(t),a=Fl(0,r,e),s=Xa(0,o,i),l=new jt(a,s,r,o);return l}function Gf(n,t,e,i){var r=((n||"")+"").split(`
|
|
105
|
+
`),o=r.length;if(o===1)return wS(r[0],t,e,i);for(var a=new jt(0,0,0,0),s=0;s<r.length;s++){var l=wS(r[s],t,e,i);s===0?a.copy(l):a.union(l)}return a}function Fl(n,t,e){return e==="right"?n-=t:e==="center"&&(n-=t/2),n}function Xa(n,t,e){return e==="middle"?n-=t/2:e==="bottom"&&(n-=t),n}function Wv(n){return Cn("\u56FD",n)}function Rr(n,t){return typeof n=="string"?n.lastIndexOf("%")>=0?parseFloat(n)/100*t:parseFloat(n):n}function jf(n,t,e){var i=t.position||"inside",r=t.distance!=null?t.distance:5,o=e.height,a=e.width,s=o/2,l=e.x,c=e.y,f="left",p="top";if(i instanceof Array)l+=Rr(i[0],e.width),c+=Rr(i[1],e.height),f=null,p=null;else switch(i){case"left":l-=r,c+=s,f="right",p="middle";break;case"right":l+=r+a,c+=s,p="middle";break;case"top":l+=a/2,c-=r,f="center",p="bottom";break;case"bottom":l+=a/2,c+=o+r,f="center";break;case"inside":l+=a/2,c+=s,f="center",p="middle";break;case"insideLeft":l+=r,c+=s,p="middle";break;case"insideRight":l+=a-r,c+=s,f="right",p="middle";break;case"insideTop":l+=a/2,c+=r,f="center";break;case"insideBottom":l+=a/2,c+=o-r,f="center",p="bottom";break;case"insideTopLeft":l+=r,c+=r;break;case"insideTopRight":l+=a-r,c+=r,f="right";break;case"insideBottomLeft":l+=r,c+=o-r,p="bottom";break;case"insideBottomRight":l+=a-r,c+=o-r,f="right",p="bottom";break}return n=n||{},n.x=l,n.y=c,n.align=f,n.verticalAlign=p,n}var Uv="__zr_normal__",Gv=Bl.concat(["ignore"]),GN=Si(Bl,function(n,t){return n[t]=!0,n},{ignore:!1}),$a={},jN=new jt(0,0,0,0),Zf=(function(){function n(t){this.id=Qg(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return n.prototype._init=function(t){this.attr(t)},n.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,r=i.local,o=e.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=r?this:null;var c=!1;if(o.copyTransform(e),i.position!=null){var f=jN;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),r||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition($a,i,f):jf($a,i,f),o.x=$a.x,o.y=$a.y,a=$a.align,s=$a.verticalAlign;var p=i.origin;if(p&&i.rotation!=null){var g=void 0,d=void 0;p==="center"?(g=f.width*.5,d=f.height*.5):(g=Rr(p[0],f.width),d=Rr(p[1],f.height)),c=!0,o.originX=-o.x+g+(r?0:f.x),o.originY=-o.y+d+(r?0:f.y)}}i.rotation!=null&&(o.rotation=i.rotation);var y=i.offset;y&&(o.x+=y[0],o.y+=y[1],c||(o.originX=-y[0],o.originY=-y[1]));var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,w=void 0,S=void 0;_&&this.canBeInsideText()?(x=i.insideFill,w=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(x),S=!0)):(x=i.outsideFill,w=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(x),S=!0)),x=x||"#000",(x!==m.fill||w!==m.stroke||S!==m.autoStroke||a!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=x,m.stroke=w,m.autoStroke=S,m.align=a,m.verticalAlign=s,e.setDefaultTextStyle(m)),e.__dirty|=kn,l&&e.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Fv:Bv},n.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&Mn(e);i||(i=[255,255,255,1]);for(var r=i[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*r+(o?0:255)*(1-r);return i[3]=1,Or(i,"rgba")},n.prototype.traverse=function(t,e){},n.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},st(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(_t(t))for(var i=t,r=ce(i),o=0;o<r.length;o++){var a=r[o];this.attrKV(a,t[a])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var r=this.animators[i],o=r.__fromStateTransition;if(!(r.getLoop()||o&&o!==Uv)){var a=r.targetName,s=a?e[a]:e;r.saveTo(s)}}},n.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Gv)},n.prototype._savePrimaryToNormal=function(t,e,i){for(var r=0;r<i.length;r++){var o=i[r];t[o]!=null&&!(o in e)&&(e[o]=this[o])}},n.prototype.hasState=function(){return this.currentStates.length>0},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(Uv,!1,t)},n.prototype.useState=function(t,e,i,r){var o=t===Uv,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(Vt(s,t)>=0&&(e||s.length===1))){var c;if(this.stateProxy&&!o&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),!c&&!o){gf("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(c);var f=!!(c&&c.hoverLayer||r);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var p=this._textContent,g=this._textGuide;return p&&p.useState(t,e,i,f),g&&g.useState(t,e,i,f),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~kn),c}}},n.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var r=[],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],f=void 0;this.stateProxy&&(f=this.stateProxy(c,t)),f||(f=this.states[c]),f&&r.push(f)}var p=r[a-1],g=!!(p&&p.hoverLayer||i);g&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),y=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&y&&y.duration>0,y);var _=this._textContent,m=this._textGuide;_&&_.useStates(t,e,g),m&&m.useStates(t,e,g),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!g&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~kn)}},n.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},n.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},n.prototype.removeState=function(t){var e=Vt(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},n.prototype.replaceState=function(t,e,i){var r=this.currentStates.slice(),o=Vt(r,t),a=Vt(r,e)>=0;o>=0?a?r.splice(o,1):r[o]=e:i&&!a&&r.push(e),this.useStates(r)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var e={},i,r=0;r<t.length;r++){var o=t[r];st(e,o),o.textConfig&&(i=i||{},st(i,o.textConfig))}return i&&(e.textConfig=i),e},n.prototype._applyStateObj=function(t,e,i,r,o,a){var s=!(e&&r);e&&e.textConfig?(this.textConfig=st({},r?this.textConfig:i.textConfig),st(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},c=!1,f=0;f<Gv.length;f++){var p=Gv[f],g=o&&GN[p];e&&e[p]!=null?g?(c=!0,l[p]=e[p]):this[p]=e[p]:s&&i[p]!=null&&(g?(c=!0,l[p]=i[p]):this[p]=i[p])}if(!o)for(var f=0;f<this.animators.length;f++){var d=this.animators[f],y=d.targetName;d.getLoop()||d.__changeFinalValue(y?(e||i)[y]:e||i)}c&&this._transitionState(t,l,a)},n.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},n.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},n.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Uf,this._attachComponent(t),this._textContent=t,this.markRedraw())},n.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),st(this.textConfig,t),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=kn;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},n.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},n.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},n.prototype.animate=function(t,e,i){var r=t?this[t]:this,o=new Av(r,e,i);return t&&(o.targetName=t),this.addAnimator(o,t),o},n.prototype.addAnimator=function(t,e){var i=this.__zr,r=this;t.during(function(){r.updateDuringAnimation(e)}).done(function(){var o=r.animators,a=Vt(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var i=this.animators,r=i.length,o=[],a=0;a<r;a++){var s=i[a];!t||t===s.scope?s.stop(e):o.push(s)}return this.animators=o,this},n.prototype.animateTo=function(t,e,i){jv(this,t,e,i)},n.prototype.animateFrom=function(t,e,i){jv(this,t,e,i,!0)},n.prototype._transitionState=function(t,e,i,r){for(var o=jv(this,e,i,r),a=0;a<o.length;a++)o[a].__fromStateTransition=t},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=(function(){var t=n.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=kn;function e(i,r,o,a){Object.defineProperty(t,i,{get:function(){if(!this[r]){var l=this[r]=[];s(this,l)}return this[r]},set:function(l){this[o]=l[0],this[a]=l[1],this[r]=l,s(this,l)}});function s(l,c){Object.defineProperty(c,0,{get:function(){return l[o]},set:function(f){l[o]=f}}),Object.defineProperty(c,1,{get:function(){return l[a]},set:function(f){l[a]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),n})();Sn(Zf,En),Sn(Zf,Uf);function jv(n,t,e,i,r){e=e||{};var o=[];SS(n,"",n,t,e,i,o,r);var a=o.length,s=!1,l=e.done,c=e.aborted,f=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&&e.during&&o[0].during(function(y,_){e.during(_)});for(var g=0;g<o.length;g++){var d=o[g];f&&d.done(f),p&&d.aborted(p),e.force&&d.duration(e.duration),d.start(e.easing)}return o}function Zv(n,t,e){for(var i=0;i<e;i++)n[i]=t[i]}function ZN(n){return Ke(n[0])}function YN(n,t,e){if(Ke(t[e]))if(Ke(n[e])||(n[e]=[]),Je(t[e])){var i=t[e].length;n[e].length!==i&&(n[e]=new t[e].constructor(i),Zv(n[e],t[e],i))}else{var r=t[e],o=n[e],a=r.length;if(ZN(r))for(var s=r[0].length,l=0;l<a;l++)o[l]?Zv(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Zv(o,r,a);o.length=r.length}else n[e]=t[e]}function XN(n,t){return n===t||Ke(n)&&Ke(t)&&$N(n,t)}function $N(n,t){var e=n.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(n[i]!==t[i])return!1;return!0}function SS(n,t,e,i,r,o,a,s){for(var l=ce(i),c=r.duration,f=r.delay,p=r.additive,g=r.setToFinal,d=!_t(o),y=n.animators,_=[],m=0;m<l.length;m++){var x=l[m],w=i[x];if(w!=null&&e[x]!=null&&(d||o[x]))if(_t(w)&&!Ke(w)&&!wl(w)){if(t){s||(e[x]=w,n.updateDuringAnimation(t));continue}SS(n,x,e[x],w,r,o&&o[x],a,s)}else _.push(x);else s||(e[x]=w,n.updateDuringAnimation(t),_.push(x))}var S=_.length;if(!p&&S)for(var C=0;C<y.length;C++){var M=y[C];if(M.targetName===t){var T=M.stopTracks(_);if(T){var D=Vt(y,M);y.splice(D,1)}}}if(r.force||(_=ve(_,function(N){return!XN(i[N],e[N])}),S=_.length),S>0||r.force&&!a.length){var P=void 0,L=void 0,O=void 0;if(s){L={},g&&(P={});for(var C=0;C<S;C++){var x=_[C];L[x]=e[x],g?P[x]=i[x]:e[x]=i[x]}}else if(g){O={};for(var C=0;C<S;C++){var x=_[C];O[x]=Nf(e[x]),YN(e,i,x)}}var M=new Av(e,!1,!1,p?ve(y,function(B){return B.targetName===t}):null);M.targetName=t,r.scope&&(M.scope=r.scope),g&&P&&M.whenWithKeys(0,P,_),O&&M.whenWithKeys(0,O,_),M.whenWithKeys(c??500,s?L:i,_).delay(f||0),n.addAnimator(M,t),a.push(M)}}var ye=(function(n){ae(t,n);function t(e){var i=n.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,r=0;r<i.length;r++)if(i[r].name===e)return i[r]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var r=this._children,o=r.indexOf(i);o>=0&&(r.splice(o,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var r=Vt(this._children,e);return r>=0&&this.replaceAt(i,r),this},t.prototype.replaceAt=function(e,i){var r=this._children,o=r[i];if(e&&e!==this&&e.parent!==this&&e!==o){r[i]=e,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,r=this._children,o=Vt(r,e);return o<0?this:(r.splice(o,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,r=0;r<e.length;r++){var o=e[r];i&&o.removeSelfFromZr(i),o.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var r=this._children,o=0;o<r.length;o++){var a=r[o];e.call(i,a,o)}return this},t.prototype.traverse=function(e,i){for(var r=0;r<this._children.length;r++){var o=this._children[r],a=e.call(i,o);o.isGroup&&!a&&o.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){n.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var r=this._children[i];r.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){n.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var r=this._children[i];r.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new jt(0,0,0,0),r=e||this._children,o=[],a=null,s=0;s<r.length;s++){var l=r[s];if(!(l.ignore||l.invisible)){var c=l.getBoundingRect(),f=l.getLocalTransform(o);f?(jt.applyTransform(i,c,f),a=a||i.clone(),a.union(i)):(a=a||c.clone(),a.union(c))}}return a||i},t})(Zf);ye.prototype.type="group";/*!
|
|
106
|
+
* ZRender, a high performance 2d drawing library.
|
|
107
|
+
*
|
|
108
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
109
|
+
* All rights reserved.
|
|
110
|
+
*
|
|
111
|
+
* LICENSE
|
|
112
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
113
|
+
*/var Yf={},Co={};function qN(n){delete Co[n]}function QN(n){if(!n)return!1;if(typeof n=="string")return Rl(n,1)<zv;if(n.colorStops){for(var t=n.colorStops,e=0,i=t.length,r=0;r<i;r++)e+=Rl(t[r].color,1);return e/=i,e<zv}return!1}var KN=(function(){function n(t,e,i){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var o=new fN,a=i.renderer||"canvas";Yf[a]||(a=ce(Yf)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Yf[a](e,o,i,t),l=i.ssr||s.ssrOnly;this.storage=o,this.painter=s;var c=!Ct.node&&!Ct.worker&&!l?new HN(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,p=f==null||f==="auto"?Ct.touchEventsSupported:!!f,g=44,d;p&&(d=Nt(i.pointerSize,g)),this.handler=new Hw(o,s,c,s.root,d),this.animation=new ON({stage:{update:l?null:function(){return r._flush(!0)}}}),l||this.animation.start()}return n.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},n.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},n.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=QN(t))},n.prototype.getBackgroundColor=function(){return this._backgroundColor},n.prototype.setDarkMode=function(t){this._darkMode=t},n.prototype.isDarkMode=function(){return this._darkMode},n.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},n.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},n.prototype.flush=function(){this._disposed||this._flush(!1)},n.prototype._flush=function(t){var e,i=Za();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=Za();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},n.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},n.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},n.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},n.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},n.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},n.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},n.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},n.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},n.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},n.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},n.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof ye&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},n.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,qN(this.id))},n})();function Yv(n,t){var e=new KN(Qg(),n,t);return Co[e.id]=e,e}function JN(n){n.dispose()}function t3(){for(var n in Co)Co.hasOwnProperty(n)&&Co[n].dispose();Co={}}function e3(n){return Co[n]}function kS(n,t){Yf[n]=t}var Xv;function n3(n){if(typeof Xv=="function")return Xv(n)}function MS(n){Xv=n}var i3="5.6.1";const r3=Object.freeze(Object.defineProperty({__proto__:null,dispose:JN,disposeAll:t3,getElementSSRData:n3,getInstance:e3,init:Yv,registerPainter:kS,registerSSRDataGetter:MS,version:i3},Symbol.toStringTag,{value:"Module"}));var CS=1e-4,TS=20;function o3(n){return n.replace(/^\s+|\s+$/g,"")}function Le(n,t,e,i){var r=t[0],o=t[1],a=e[0],s=e[1],l=o-r,c=s-a;if(l===0)return c===0?a:(a+s)/2;if(i)if(l>0){if(n<=r)return a;if(n>=o)return s}else{if(n>=r)return a;if(n<=o)return s}else{if(n===r)return a;if(n===o)return s}return(n-r)/l*c+a}function Qt(n,t){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return gt(n)?o3(n).match(/%$/)?parseFloat(n)/100*t:parseFloat(n):n==null?NaN:+n}function Ce(n,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),TS),n=(+n).toFixed(t),e?n:+n}function qa(n){return n.sort(function(t,e){return t-e}),n}function Mi(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(n*t)/t===n)return e}return IS(n)}function IS(n){var t=n.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,r=e>0?e:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function $v(n,t){var e=Math.log,i=Math.LN10,r=Math.floor(e(n[1]-n[0])/i),o=Math.round(e(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function a3(n,t,e){if(!n[t])return 0;var i=DS(n,e);return i[t]||0}function DS(n,t){var e=Si(n,function(d,y){return d+(isNaN(y)?0:y)},0);if(e===0)return[];for(var i=Math.pow(10,t),r=pt(n,function(d){return(isNaN(d)?0:d)/e*i*100}),o=i*100,a=pt(r,function(d){return Math.floor(d)}),s=Si(a,function(d,y){return d+y},0),l=pt(r,function(d,y){return d-a[y]});s<o;){for(var c=Number.NEGATIVE_INFINITY,f=null,p=0,g=l.length;p<g;++p)l[p]>c&&(c=l[p],f=p);++a[f],l[f]=0,++s}return pt(a,function(d){return d/i})}function s3(n,t){var e=Math.max(Mi(n),Mi(t)),i=n+t;return e>TS?i:Ce(i,e)}var l3=9007199254740991;function qv(n){var t=Math.PI*2;return(n%t+t)%t}function Vl(n){return n>-CS&&n<CS}var u3=/^(?:(\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 zn(n){if(n instanceof Date)return n;if(gt(n)){var t=u3.exec(n);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(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(n==null)return new Date(NaN);return new Date(Math.round(n))}function AS(n){return Math.pow(10,Xf(n))}function Xf(n){if(n===0)return 0;var t=Math.floor(Math.log(n)/Math.LN10);return n/Math.pow(10,t)>=10&&t++,t}function Qv(n,t){var e=Xf(n),i=Math.pow(10,e),r=n/i,o;return t?r<1.5?o=1:r<2.5?o=2:r<4?o=3:r<7?o=5:o=10:r<1?o=1:r<2?o=2:r<3?o=3:r<5?o=5:o=10,n=o*i,e>=-20?+n.toFixed(e<0?-e:0):n}function c3(n,t){var e=(n.length-1)*t+1,i=Math.floor(e),r=+n[i-1],o=e-i;return o?r+o*(n[i]-r):r}function f3(n){n.sort(function(l,c){return s(l,c,0)?-1:1});for(var t=-1/0,e=1,i=0;i<n.length;){for(var r=n[i].interval,o=n[i].close,a=0;a<2;a++)r[a]<=t&&(r[a]=t,o[a]=a?1:1-e),t=r[a],e=o[a];r[0]===r[1]&&o[0]*o[1]!==1?n.splice(i,1):i++}return n;function s(l,c,f){return l.interval[f]<c.interval[f]||l.interval[f]===c.interval[f]&&(l.close[f]-c.close[f]===(f?-1:1)||!f&&s(l,c,1))}}function Hl(n){var t=parseFloat(n);return t==n&&(t!==0||!gt(n)||n.indexOf("x")<=0)?t:NaN}function PS(n){return!isNaN(Hl(n))}function LS(){return Math.round(Math.random()*9)}function ES(n,t){return t===0?n:ES(t,n%t)}function OS(n,t){return n==null?t:t==null?n:n*t/ES(n,t)}function gn(n){throw new Error(n)}function RS(n,t,e){return(t-n)*e+n}var NS="series\0",zS="\0_ec_\0";function nn(n){return n instanceof Array?n:n==null?[]:[n]}function Kv(n,t,e){if(n){n[t]=n[t]||{},n.emphasis=n.emphasis||{},n.emphasis[t]=n.emphasis[t]||{};for(var i=0,r=e.length;i<r;i++){var o=e[i];!n.emphasis[t].hasOwnProperty(o)&&n[t].hasOwnProperty(o)&&(n.emphasis[t][o]=n[t][o])}}}var BS=["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 Wl(n){return _t(n)&&!ct(n)&&!(n instanceof Date)?n.value:n}function h3(n){return _t(n)&&!(n instanceof Array)}function p3(n,t,e){var i=e==="normalMerge",r=e==="replaceMerge",o=e==="replaceAll";n=n||[],t=(t||[]).slice();var a=Mt();E(t,function(l,c){if(!_t(l)){t[c]=null;return}});var s=d3(n,a,e);return(i||r)&&g3(s,n,a,t),i&&v3(s,t),i||r?y3(s,t,r):o&&m3(s,t),_3(s),s}function d3(n,t,e){var i=[];if(e==="replaceAll")return i;for(var r=0;r<n.length;r++){var o=n[r];o&&o.id!=null&&t.set(o.id,r),i.push({existing:e==="replaceMerge"||Gl(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function g3(n,t,e,i){E(i,function(r,o){if(!(!r||r.id==null)){var a=Ul(r.id),s=e.get(a);if(s!=null){var l=n[s];ti(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=t[s],i[o]=null}}})}function v3(n,t){E(t,function(e,i){if(!(!e||e.name==null))for(var r=0;r<n.length;r++){var o=n[r].existing;if(!n[r].newOption&&o&&(o.id==null||e.id==null)&&!Gl(e)&&!Gl(o)&&FS("name",o,e)){n[r].newOption=e,t[i]=null;return}}})}function y3(n,t,e){E(t,function(i){if(i){for(var r,o=0;(r=n[o])&&(r.newOption||Gl(r.existing)||r.existing&&i.id!=null&&!FS("id",i,r.existing));)o++;r?(r.newOption=i,r.brandNew=e):n.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),o++}})}function m3(n,t){E(t,function(e){n.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function _3(n){var t=Mt();E(n,function(e){var i=e.existing;i&&t.set(i.id,e)}),E(n,function(e){var i=e.newOption;ti(!i||i.id==null||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),E(n,function(e,i){var r=e.existing,o=e.newOption,a=e.keyInfo;if(_t(o)){if(a.name=o.name!=null?Ul(o.name):r?r.name:NS+i,r)a.id=Ul(r.id);else if(o.id!=null)a.id=Ul(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,e)}})}function FS(n,t,e){var i=Ci(t[n],null),r=Ci(e[n],null);return i!=null&&r!=null&&i===r}function Ul(n){return Ci(n,"")}function Ci(n,t){return n==null?t:gt(n)?n:oe(n)||vf(n)?n+"":t}function Jv(n){var t=n.name;return!!(t&&t.indexOf(NS))}function Gl(n){return n&&n.id!=null&&Ul(n.id).indexOf(zS)===0}function x3(n){return zS+n}function b3(n,t,e){E(n,function(i){var r=i.newOption;_t(r)&&(i.keyInfo.mainType=t,i.keyInfo.subType=w3(t,r,i.existing,e))})}function w3(n,t,e,i){var r=t.type?t.type:e?e.subType:i.determineSubType(n,t);return r}function To(n,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ct(t.dataIndex)?pt(t.dataIndex,function(e){return n.indexOfRawIndex(e)}):n.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ct(t.name)?pt(t.name,function(e){return n.indexOfName(e)}):n.indexOfName(t.name)}function fe(){var n="__ec_inner_"+S3++;return function(t){return t[n]||(t[n]={})}}var S3=LS();function jl(n,t,e){var i=ty(t,e),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=e?e.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(c,f){var p=Zl(n,f,c,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=p.models,s[f+"Model"]=p.models[0]}),s}function ty(n,t){var e;if(gt(n)){var i={};i[n+"Index"]=0,e=i}else e=n;var r=Mt(),o={},a=!1;return E(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var c=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=c[1],p=(c[2]||"").toLowerCase();if(!(!f||!p||t&&t.includeMainTypes&&Vt(t.includeMainTypes,f)<0)){a=a||!!f;var g=r.get(f)||r.set(f,{});g[p]=s}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var rn={useDefault:!0,enableAll:!1,enableNone:!1},k3={useDefault:!1,enableAll:!0,enableNone:!0};function Zl(n,t,e,i){i=i||rn;var r=e.index,o=e.id,a=e.name,s={models:null,specified:r!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=n.getComponent(t))?[l]:[],s}return r==="none"||r===!1?(ti(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(r==="all"&&(ti(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=n.queryComponents({mainType:t,index:r,id:o,name:a}),s)}function VS(n,t,e){n.setAttribute?n.setAttribute(t,e):n[t]=e}function M3(n,t){return n.getAttribute?n.getAttribute(t):n[t]}function C3(n){return n==="auto"?Ct.domSupported?"html":"richText":n||"html"}function HS(n,t,e,i,r){var o=t==null||t==="auto";if(i==null)return i;if(oe(i)){var a=RS(e||0,i,r);return Ce(a,o?Math.max(Mi(e||0),Mi(i)):t)}else{if(gt(i))return r<1?e:i;for(var s=[],l=e,c=i,f=Math.max(l?l.length:0,c.length),p=0;p<f;++p){var g=n.getDimensionInfo(p);if(g&&g.type==="ordinal")s[p]=(r<1&&l?l:c)[p];else{var d=l&&l[p]?l[p]:0,y=c[p],a=RS(d,y,r);s[p]=Ce(a,o?Math.max(Mi(d),Mi(y)):t)}}return s}}var T3=".",Io="___EC__COMPONENT__CONTAINER___",WS="___EC__EXTENDED_CLASS___";function Ti(n){var t={main:"",sub:""};if(n){var e=n.split(T3);t.main=e[0]||"",t.sub=e[1]||""}return t}function I3(n){ti(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal')}function D3(n){return!!(n&&n[WS])}function ey(n,t){n.$constructor=n,n.extend=function(e){var i=this,r;return A3(i)?r=(function(o){ft(a,o);function a(){return o.apply(this,arguments)||this}return a})(i):(r=function(){(e.$constructor||i).apply(this,arguments)},Kg(r,this)),st(r.prototype,e),r[WS]=!0,r.extend=this.extend,r.superCall=E3,r.superApply=O3,r.superClass=i,r}}function A3(n){return St(n)&&/^class\s/.test(Function.prototype.toString.call(n))}function US(n,t){n.extend=t.extend}var P3=Math.round(Math.random()*10);function L3(n){var t=["__\0is_clz",P3++].join("_");n.prototype[t]=!0,n.isInstance=function(e){return!!(e&&e[t])}}function E3(n,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(n,e)}function O3(n,t,e){return this.superClass.prototype[t].apply(n,e)}function $f(n){var t={};n.registerClass=function(i){var r=i.type||i.prototype.type;if(r){I3(r),i.prototype.type=r;var o=Ti(r);if(!o.sub)t[o.main]=i;else if(o.sub!==Io){var a=e(o);a[o.sub]=i}}return i},n.getClass=function(i,r,o){var a=t[i];if(a&&a[Io]&&(a=r?a[r]:null),o&&!a)throw new Error(r?"Component "+i+"."+(r||"")+" is used but not imported.":i+".type should be specified.");return a},n.getClassesByMainType=function(i){var r=Ti(i),o=[],a=t[r.main];return a&&a[Io]?E(a,function(s,l){l!==Io&&o.push(s)}):o.push(a),o},n.hasClass=function(i){var r=Ti(i);return!!t[r.main]},n.getAllClassMainTypes=function(){var i=[];return E(t,function(r,o){i.push(o)}),i},n.hasSubTypes=function(i){var r=Ti(i),o=t[r.main];return o&&o[Io]};function e(i){var r=t[i.main];return(!r||!r[Io])&&(r=t[i.main]={},r[Io]=!0),r}}function Yl(n,t){for(var e=0;e<n.length;e++)n[e][1]||(n[e][1]=n[e][0]);return t=t||!1,function(i,r,o){for(var a={},s=0;s<n.length;s++){var l=n[s][1];if(!(r&&Vt(r,l)>=0||o&&Vt(o,l)<0)){var c=i.getShallow(l,t);c!=null&&(a[n[s][0]]=c)}}return a}}var R3=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],N3=Yl(R3),z3=(function(){function n(){}return n.prototype.getAreaStyle=function(t,e){return N3(this,t,e)},n})(),ny=new El(50);function B3(n){if(typeof n=="string"){var t=ny.get(n);return t&&t.image}else return n}function GS(n,t,e,i,r){if(n)if(typeof n=="string"){if(t&&t.__zrImageSrc===n||!e)return t;var o=ny.get(n),a={hostEl:e,cb:i,cbPayload:r};return o?(t=o.image,!qf(t)&&o.pending.push(a)):(t=Yi.loadImage(n,jS,jS),t.__zrImageSrc=n,ny.put(n,t.__cachedImgObj={image:t,pending:[a]})),t}else return n;else return t}function jS(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<n.pending.length;t++){var e=n.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}n.pending.length=0}function qf(n){return n&&n.width&&n.height}var iy=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function F3(n,t,e,i,r){var o={};return ZS(o,n,t,e,i,r),o.text}function ZS(n,t,e,i,r,o){if(!e){n.text="",n.isTruncated=!1;return}var a=(t+"").split(`
|
|
114
|
+
`);o=YS(e,i,r,o);for(var s=!1,l={},c=0,f=a.length;c<f;c++)XS(l,a[c],o),a[c]=l.textLine,s=s||l.isTruncated;n.text=a.join(`
|
|
115
|
+
`),n.isTruncated=s}function YS(n,t,e,i){i=i||{};var r=st({},i);r.font=t,e=Nt(e,"..."),r.maxIterations=Nt(i.maxIterations,2);var o=r.minChar=Nt(i.minChar,0);r.cnCharWidth=Cn("\u56FD",t);var a=r.ascCharWidth=Cn("a",t);r.placeholder=Nt(i.placeholder,"");for(var s=n=Math.max(0,n-1),l=0;l<o&&s>=a;l++)s-=a;var c=Cn(e,t);return c>s&&(e="",c=0),s=n-c,r.ellipsis=e,r.ellipsisWidth=c,r.contentWidth=s,r.containerWidth=n,r}function XS(n,t,e){var i=e.containerWidth,r=e.font,o=e.contentWidth;if(!i){n.textLine="",n.isTruncated=!1;return}var a=Cn(t,r);if(a<=i){n.textLine=t,n.isTruncated=!1;return}for(var s=0;;s++){if(a<=o||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?V3(t,o,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*o/a):0;t=t.substr(0,l),a=Cn(t,r)}t===""&&(t=e.placeholder),n.textLine=t,n.isTruncated=!0}function V3(n,t,e,i){for(var r=0,o=0,a=n.length;o<a&&r<t;o++){var s=n.charCodeAt(o);r+=0<=s&&s<=127?e:i}return o}function H3(n,t){n!=null&&(n+="");var e=t.overflow,i=t.padding,r=t.font,o=e==="truncate",a=Wv(r),s=Nt(t.lineHeight,a),l=!!t.backgroundColor,c=t.lineOverflow==="truncate",f=!1,p=t.width,g;p!=null&&(e==="break"||e==="breakAll")?g=n?qS(n,t.font,p,e==="breakAll",0).lines:[]:g=n?n.split(`
|
|
116
|
+
`):[];var d=g.length*s,y=Nt(t.height,d);if(d>y&&c){var _=Math.floor(y/s);f=f||g.length>_,g=g.slice(0,_)}if(n&&o&&p!=null)for(var m=YS(p,r,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},w=0;w<g.length;w++)XS(x,g[w],m),g[w]=x.textLine,f=f||x.isTruncated;for(var S=y,C=0,w=0;w<g.length;w++)C=Math.max(Cn(g[w],r),C);p==null&&(p=C);var M=C;return i&&(S+=i[0]+i[2],M+=i[1]+i[3],p+=i[1]+i[3]),l&&(M=p),{lines:g,height:y,outerWidth:M,outerHeight:S,lineHeight:s,calculatedLineHeight:a,contentWidth:C,contentHeight:d,width:p,isTruncated:f}}var W3=(function(){function n(){}return n})(),$S=(function(){function n(t){this.tokens=[],t&&(this.tokens=t)}return n})(),U3=(function(){function n(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return n})();function G3(n,t){var e=new U3;if(n!=null&&(n+=""),!n)return e;for(var i=t.width,r=t.height,o=t.overflow,a=(o==="break"||o==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:o==="breakAll"}:null,s=iy.lastIndex=0,l;(l=iy.exec(n))!=null;){var c=l.index;c>s&&ry(e,n.substring(s,c),t,a),ry(e,l[2],t,a,l[1]),s=iy.lastIndex}s<n.length&&ry(e,n.substring(s,n.length),t,a);var f=[],p=0,g=0,d=t.padding,y=o==="truncate",_=t.lineOverflow==="truncate",m={};function x(it,j,U){it.width=j,it.lineHeight=U,p+=U,g=Math.max(g,j)}t:for(var w=0;w<e.lines.length;w++){for(var S=e.lines[w],C=0,M=0,T=0;T<S.tokens.length;T++){var D=S.tokens[T],P=D.styleName&&t.rich[D.styleName]||{},L=D.textPadding=P.padding,O=L?L[1]+L[3]:0,N=D.font=P.font||t.font;D.contentHeight=Wv(N);var B=Nt(P.height,D.contentHeight);if(D.innerHeight=B,L&&(B+=L[0]+L[2]),D.height=B,D.lineHeight=Ba(P.lineHeight,t.lineHeight,B),D.align=P&&P.align||t.align,D.verticalAlign=P&&P.verticalAlign||"middle",_&&r!=null&&p+D.lineHeight>r){var V=e.lines.length;T>0?(S.tokens=S.tokens.slice(0,T),x(S,M,C),e.lines=e.lines.slice(0,w+1)):e.lines=e.lines.slice(0,w),e.isTruncated=e.isTruncated||e.lines.length<V;break t}var Z=P.width,$=Z==null||Z==="auto";if(typeof Z=="string"&&Z.charAt(Z.length-1)==="%")D.percentWidth=Z,f.push(D),D.contentWidth=Cn(D.text,N);else{if($){var et=P.backgroundColor,z=et&&et.image;z&&(z=B3(z),qf(z)&&(D.width=Math.max(D.width,z.width*B/z.height)))}var H=y&&i!=null?i-M:null;H!=null&&H<D.width?!$||H<O?(D.text="",D.width=D.contentWidth=0):(ZS(m,D.text,H-O,N,t.ellipsis,{minChar:t.truncateMinChar}),D.text=m.text,e.isTruncated=e.isTruncated||m.isTruncated,D.width=D.contentWidth=Cn(D.text,N)):D.contentWidth=Cn(D.text,N)}D.width+=O,M+=D.width,P&&(C=Math.max(C,D.lineHeight))}x(S,M,C)}e.outerWidth=e.width=Nt(i,g),e.outerHeight=e.height=Nt(r,p),e.contentHeight=p,e.contentWidth=g,d&&(e.outerWidth+=d[1]+d[3],e.outerHeight+=d[0]+d[2]);for(var w=0;w<f.length;w++){var D=f[w],K=D.percentWidth;D.width=parseInt(K,10)/100*e.width}return e}function ry(n,t,e,i,r){var o=t==="",a=r&&e.rich[r]||{},s=n.lines,l=a.font||e.font,c=!1,f,p;if(i){var g=a.padding,d=g?g[1]+g[3]:0;if(a.width!=null&&a.width!=="auto"){var y=Rr(a.width,i.width)+d;s.length>0&&y+i.accumWidth>i.width&&(f=t.split(`
|
|
117
|
+
`),c=!0),i.accumWidth=y}else{var _=qS(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=_.accumWidth+d,p=_.linesWidths,f=_.lines}}else f=t.split(`
|
|
118
|
+
`);for(var m=0;m<f.length;m++){var x=f[m],w=new W3;if(w.styleName=r,w.text=x,w.isLineHolder=!x&&!o,typeof a.width=="number"?w.width=a.width:w.width=p?p[m]:Cn(x,l),!m&&!c){var S=(s[s.length-1]||(s[0]=new $S)).tokens,C=S.length;C===1&&S[0].isLineHolder?S[0]=w:(x||!C||o)&&S.push(w)}else s.push(new $S([w]))}}function j3(n){var t=n.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Z3=Si(",&?/;] ".split(""),function(n,t){return n[t]=!0,n},{});function Y3(n){return j3(n)?!!Z3[n]:!0}function qS(n,t,e,i,r){for(var o=[],a=[],s="",l="",c=0,f=0,p=0;p<n.length;p++){var g=n.charAt(p);if(g===`
|
|
119
|
+
`){l&&(s+=l,f+=c),o.push(s),a.push(f),s="",l="",c=0,f=0;continue}var d=Cn(g,t),y=i?!1:!Y3(g);if(o.length?f+d>e:r+f+d>e){f?(s||l)&&(y?(s||(s=l,l="",c=0,f=c),o.push(s),a.push(f-c),l+=g,c+=d,s="",f=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(f),s=g,f=d)):y?(o.push(l),a.push(c),l=g,c=d):(o.push(g),a.push(d));continue}f+=d,y?(l+=g,c+=d):(l&&(s+=l,l="",c=0),s+=g)}return!o.length&&!s&&(s=n,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(f)),o.length===1&&(f+=r),{accumWidth:f,lines:o,linesWidths:a}}var oy="__zr_style_"+Math.round(Math.random()*10),Do={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Qf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Do[oy]=!0;var QS=["z","z2","invisible"],X3=["invisible"],Xl=(function(n){ae(t,n);function t(e){return n.call(this,e)||this}return t.prototype._init=function(e){for(var i=ce(e),r=0;r<i.length;r++){var o=i[r];o==="style"?this.useStyle(e[o]):n.prototype.attrKV.call(this,o,e[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(e,i,r,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&$3(this,e,i)||a&&!a[0]&&!a[3])return!1;if(r&&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(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var r=this.transformCoordToLocal(e,i),o=this.getBoundingRect();return o.contain(r[0],r[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,r=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new jt(0,0,0,0)),i?jt.applyTransform(e,r,i):e.copy(r),(a||s||l)&&(e.width+=a*2+Math.abs(s),e.height+=a*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-a),e.y=Math.min(e.y,e.y+l-a));var c=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-c),e.y=Math.floor(e.y-c),e.width=Math.ceil(e.width+1+c*2),e.height=Math.ceil(e.height+1+c*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new jt(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?n.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:st(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Pl,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Pl)},t.prototype.styleUpdated=function(){this.__dirty&=~Pl},t.prototype.createStyle=function(e){return Ml(Do,e)},t.prototype.useStyle=function(e){e[oy]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[oy]},t.prototype._innerSaveToNormal=function(e){n.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,QS)},t.prototype._applyStateObj=function(e,i,r,o,a,s){n.prototype._applyStateObj.call(this,e,i,r,o,a,s);var l=!(i&&o),c;if(i&&i.style?a?o?c=i.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,i.style)):(c=this._mergeStyle(this.createStyle(),o?this.style:r.style),this._mergeStyle(c,i.style)):l&&(c=r.style),c)if(a){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var p=ce(f),g=0;g<p.length;g++){var d=p[g];d in c&&(c[d]=c[d],this.style[d]=f[d])}for(var y=ce(c),g=0;g<y.length;g++){var d=y[g];this.style[d]=this.style[d]}this._transitionState(e,{style:c},s,this.getAnimationStyleProps())}else this.useStyle(c);for(var _=this.__inHover?X3:QS,g=0;g<_.length;g++){var d=_[g];i&&i[d]!=null?this[d]=i[d]:l&&r[d]!=null&&(this[d]=r[d])}},t.prototype._mergeStates=function(e){for(var i=n.prototype._mergeStates.call(this,e),r,o=0;o<e.length;o++){var a=e[o];a.style&&(r=r||{},this._mergeStyle(r,a.style))}return r&&(i.style=r),i},t.prototype._mergeStyle=function(e,i){return st(e,i),e},t.prototype.getAnimationStyleProps=function(){return Qf},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=kn|Pl})(),t})(Zf),ay=new jt(0,0,0,0),sy=new jt(0,0,0,0);function $3(n,t,e){return ay.copy(n.getBoundingRect()),n.transform&&ay.applyTransform(n.transform),sy.width=t,sy.height=e,!ay.intersect(sy)}var Bn=Math.min,Fn=Math.max,ly=Math.sin,uy=Math.cos,Ao=Math.PI*2,Kf=yo(),Jf=yo(),th=yo();function KS(n,t,e,i,r,o){r[0]=Bn(n,e),r[1]=Bn(t,i),o[0]=Fn(n,e),o[1]=Fn(t,i)}var JS=[],tk=[];function q3(n,t,e,i,r,o,a,s,l,c){var f=Jw,p=Ae,g=f(n,e,r,a,JS);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var d=0;d<g;d++){var y=p(n,e,r,a,JS[d]);l[0]=Bn(y,l[0]),c[0]=Fn(y,c[0])}g=f(t,i,o,s,tk);for(var d=0;d<g;d++){var _=p(t,i,o,s,tk[d]);l[1]=Bn(_,l[1]),c[1]=Fn(_,c[1])}l[0]=Bn(n,l[0]),c[0]=Fn(n,c[0]),l[0]=Bn(a,l[0]),c[0]=Fn(a,c[0]),l[1]=Bn(t,l[1]),c[1]=Fn(t,c[1]),l[1]=Bn(s,l[1]),c[1]=Fn(s,c[1])}function Q3(n,t,e,i,r,o,a,s){var l=nS,c=Ge,f=Fn(Bn(l(n,e,r),1),0),p=Fn(Bn(l(t,i,o),1),0),g=c(n,e,r,f),d=c(t,i,o,p);a[0]=Bn(n,r,g),a[1]=Bn(t,o,d),s[0]=Fn(n,r,g),s[1]=Fn(t,o,d)}function K3(n,t,e,i,r,o,a,s,l){var c=Tr,f=Ir,p=Math.abs(r-o);if(p%Ao<1e-4&&p>1e-4){s[0]=n-e,s[1]=t-i,l[0]=n+e,l[1]=t+i;return}if(Kf[0]=uy(r)*e+n,Kf[1]=ly(r)*i+t,Jf[0]=uy(o)*e+n,Jf[1]=ly(o)*i+t,c(s,Kf,Jf),f(l,Kf,Jf),r=r%Ao,r<0&&(r=r+Ao),o=o%Ao,o<0&&(o=o+Ao),r>o&&!a?o+=Ao:r<o&&a&&(r+=Ao),a){var g=o;o=r,r=g}for(var d=0;d<o;d+=Math.PI/2)d>r&&(th[0]=uy(d)*e+n,th[1]=ly(d)*i+t,c(s,th,s),f(l,th,l))}var ee={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Po=[],Lo=[],Ii=[],Nr=[],Di=[],Ai=[],cy=Math.min,fy=Math.max,Eo=Math.cos,Oo=Math.sin,$i=Math.abs,hy=Math.PI,zr=hy*2,py=typeof Float32Array<"u",$l=[];function dy(n){var t=Math.round(n/hy*1e8)/1e8;return t%2*hy}function ek(n,t){var e=dy(n[0]);e<0&&(e+=zr);var i=e-n[0],r=n[1];r+=i,!t&&r-e>=zr?r=e+zr:t&&e-r>=zr?r=e-zr:!t&&e>r?r=e+(zr-dy(e-r)):t&&e<r&&(r=e-(zr-dy(r-e))),n[0]=e,n[1]=r}var Br=(function(){function n(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 n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=$i(i/Wf/t)||0,this._uy=$i(i/Wf/e)||0)},n.prototype.setDPR=function(t){this.dpr=t},n.prototype.setContext=function(t){this._ctx=t},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ee.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},n.prototype.lineTo=function(t,e){var i=$i(t-this._xi),r=$i(e-this._yi),o=i>this._ux||r>this._uy;if(this.addData(ee.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=i*i+r*r;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(t,e,i,r,o,a){return this._drawPendingPt(),this.addData(ee.C,t,e,i,r,o,a),this._ctx&&this._ctx.bezierCurveTo(t,e,i,r,o,a),this._xi=o,this._yi=a,this},n.prototype.quadraticCurveTo=function(t,e,i,r){return this._drawPendingPt(),this.addData(ee.Q,t,e,i,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,r),this._xi=i,this._yi=r,this},n.prototype.arc=function(t,e,i,r,o,a){this._drawPendingPt(),$l[0]=r,$l[1]=o,ek($l,a),r=$l[0],o=$l[1];var s=o-r;return this.addData(ee.A,t,e,i,i,r,s,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,r,o,a),this._xi=Eo(o)*i+t,this._yi=Oo(o)*i+e,this},n.prototype.arcTo=function(t,e,i,r,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,r,o),this},n.prototype.rect=function(t,e,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,r),this.addData(ee.R,t,e,i,r),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(ee.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},n.prototype.fill=function(t){t&&t.fill(),this.toStatic()},n.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&py&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},n.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,r=this._len,o=0;o<e;o++)i+=t[o].len();py&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+i));for(var o=0;o<e;o++)for(var a=t[o].data,s=0;s<a.length;s++)this.data[r++]=a[s];this._len=r},n.prototype.addData=function(t,e,i,r,o,a,s,l,c){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var p=0;p<arguments.length;p++)f[this._len++]=arguments[p]}},n.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},n.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,py&&this._len>11&&(this.data=new Float32Array(t)))}},n.prototype.getBoundingRect=function(){Ii[0]=Ii[1]=Di[0]=Di[1]=Number.MAX_VALUE,Nr[0]=Nr[1]=Ai[0]=Ai[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,r=0,o=0,a;for(a=0;a<this._len;){var s=t[a++],l=a===1;switch(l&&(e=t[a],i=t[a+1],r=e,o=i),s){case ee.M:e=r=t[a++],i=o=t[a++],Di[0]=r,Di[1]=o,Ai[0]=r,Ai[1]=o;break;case ee.L:KS(e,i,t[a],t[a+1],Di,Ai),e=t[a++],i=t[a++];break;case ee.C:q3(e,i,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],Di,Ai),e=t[a++],i=t[a++];break;case ee.Q:Q3(e,i,t[a++],t[a++],t[a],t[a+1],Di,Ai),e=t[a++],i=t[a++];break;case ee.A:var c=t[a++],f=t[a++],p=t[a++],g=t[a++],d=t[a++],y=t[a++]+d;a+=1;var _=!t[a++];l&&(r=Eo(d)*p+c,o=Oo(d)*g+f),K3(c,f,p,g,d,y,_,Di,Ai),e=Eo(y)*p+c,i=Oo(y)*g+f;break;case ee.R:r=e=t[a++],o=i=t[a++];var m=t[a++],x=t[a++];KS(r,o,r+m,o+x,Di,Ai);break;case ee.Z:e=r,i=o;break}Tr(Ii,Ii,Di),Ir(Nr,Nr,Ai)}return a===0&&(Ii[0]=Ii[1]=Nr[0]=Nr[1]=0),new jt(Ii[0],Ii[1],Nr[0]-Ii[0],Nr[1]-Ii[1])},n.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,r=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,f=0,p=0,g=0;g<e;){var d=t[g++],y=g===1;y&&(o=t[g],a=t[g+1],s=o,l=a);var _=-1;switch(d){case ee.M:o=s=t[g++],a=l=t[g++];break;case ee.L:{var m=t[g++],x=t[g++],w=m-o,S=x-a;($i(w)>i||$i(S)>r||g===e-1)&&(_=Math.sqrt(w*w+S*S),o=m,a=x);break}case ee.C:{var C=t[g++],M=t[g++],m=t[g++],x=t[g++],T=t[g++],D=t[g++];_=hN(o,a,C,M,m,x,T,D,10),o=T,a=D;break}case ee.Q:{var C=t[g++],M=t[g++],m=t[g++],x=t[g++];_=dN(o,a,C,M,m,x,10),o=m,a=x;break}case ee.A:var P=t[g++],L=t[g++],O=t[g++],N=t[g++],B=t[g++],V=t[g++],Z=V+B;g+=1,y&&(s=Eo(B)*O+P,l=Oo(B)*N+L),_=fy(O,N)*cy(zr,Math.abs(V)),o=Eo(Z)*O+P,a=Oo(Z)*N+L;break;case ee.R:{s=o=t[g++],l=a=t[g++];var $=t[g++],et=t[g++];_=$*2+et*2;break}case ee.Z:{var w=s-o,S=l-a;_=Math.sqrt(w*w+S*S),o=s,a=l;break}}_>=0&&(c[p++]=_,f+=_)}return this._pathLen=f,f},n.prototype.rebuildPath=function(t,e){var i=this.data,r=this._ux,o=this._uy,a=this._len,s,l,c,f,p,g,d=e<1,y,_,m=0,x=0,w,S=0,C,M;if(!(d&&(this._pathSegLen||this._calculateLength(),y=this._pathSegLen,_=this._pathLen,w=e*_,!w)))t:for(var T=0;T<a;){var D=i[T++],P=T===1;switch(P&&(c=i[T],f=i[T+1],s=c,l=f),D!==ee.L&&S>0&&(t.lineTo(C,M),S=0),D){case ee.M:s=c=i[T++],l=f=i[T++],t.moveTo(c,f);break;case ee.L:{p=i[T++],g=i[T++];var L=$i(p-c),O=$i(g-f);if(L>r||O>o){if(d){var N=y[x++];if(m+N>w){var B=(w-m)/N;t.lineTo(c*(1-B)+p*B,f*(1-B)+g*B);break t}m+=N}t.lineTo(p,g),c=p,f=g,S=0}else{var V=L*L+O*O;V>S&&(C=p,M=g,S=V)}break}case ee.C:{var Z=i[T++],$=i[T++],et=i[T++],z=i[T++],H=i[T++],K=i[T++];if(d){var N=y[x++];if(m+N>w){var B=(w-m)/N;Lf(c,Z,et,H,B,Po),Lf(f,$,z,K,B,Lo),t.bezierCurveTo(Po[1],Lo[1],Po[2],Lo[2],Po[3],Lo[3]);break t}m+=N}t.bezierCurveTo(Z,$,et,z,H,K),c=H,f=K;break}case ee.Q:{var Z=i[T++],$=i[T++],et=i[T++],z=i[T++];if(d){var N=y[x++];if(m+N>w){var B=(w-m)/N;Ef(c,Z,et,B,Po),Ef(f,$,z,B,Lo),t.quadraticCurveTo(Po[1],Lo[1],Po[2],Lo[2]);break t}m+=N}t.quadraticCurveTo(Z,$,et,z),c=et,f=z;break}case ee.A:var it=i[T++],j=i[T++],U=i[T++],G=i[T++],Q=i[T++],tt=i[T++],X=i[T++],mt=!i[T++],ot=U>G?U:G,bt=$i(U-G)>.001,xt=Q+tt,ut=!1;if(d){var N=y[x++];m+N>w&&(xt=Q+tt*(w-m)/N,ut=!0),m+=N}if(bt&&t.ellipse?t.ellipse(it,j,U,G,X,Q,xt,mt):t.arc(it,j,ot,Q,xt,mt),ut)break t;P&&(s=Eo(Q)*U+it,l=Oo(Q)*G+j),c=Eo(xt)*U+it,f=Oo(xt)*G+j;break;case ee.R:s=c=i[T],l=f=i[T+1],p=i[T++],g=i[T++];var lt=i[T++],qt=i[T++];if(d){var N=y[x++];if(m+N>w){var Zt=w-m;t.moveTo(p,g),t.lineTo(p+cy(Zt,lt),g),Zt-=lt,Zt>0&&t.lineTo(p+lt,g+cy(Zt,qt)),Zt-=qt,Zt>0&&t.lineTo(p+fy(lt-Zt,0),g+qt),Zt-=lt,Zt>0&&t.lineTo(p,g+fy(qt-Zt,0));break t}m+=N}t.rect(p,g,lt,qt);break;case ee.Z:if(d){var N=y[x++];if(m+N>w){var B=(w-m)/N;t.lineTo(c*(1-B)+s*B,f*(1-B)+l*B);break t}m+=N}t.closePath(),c=s,f=l}}},n.prototype.clone=function(){var t=new n,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},n.CMD=ee,n.initDefaultProps=(function(){var t=n.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),n})();function Qa(n,t,e,i,r,o,a){if(r===0)return!1;var s=r,l=0,c=n;if(a>t+s&&a>i+s||a<t-s&&a<i-s||o>n+s&&o>e+s||o<n-s&&o<e-s)return!1;if(n!==e)l=(t-i)/(n-e),c=(n*i-e*t)/(n-e);else return Math.abs(o-n)<=s/2;var f=l*o-a+c,p=f*f/(l*l+1);return p<=s/2*s/2}function J3(n,t,e,i,r,o,a,s,l,c,f){if(l===0)return!1;var p=l;if(f>t+p&&f>i+p&&f>o+p&&f>s+p||f<t-p&&f<i-p&&f<o-p&&f<s-p||c>n+p&&c>e+p&&c>r+p&&c>a+p||c<n-p&&c<e-p&&c<r-p&&c<a-p)return!1;var g=tS(n,t,e,i,r,o,a,s,c,f,null);return g<=p/2}function t5(n,t,e,i,r,o,a,s,l){if(a===0)return!1;var c=a;if(l>t+c&&l>i+c&&l>o+c||l<t-c&&l<i-c&&l<o-c||s>n+c&&s>e+c&&s>r+c||s<n-c&&s<e-c&&s<r-c)return!1;var f=iS(n,t,e,i,r,o,s,l,null);return f<=c/2}var nk=Math.PI*2;function qi(n){return n%=nk,n<0&&(n+=nk),n}var ql=Math.PI*2;function e5(n,t,e,i,r,o,a,s,l){if(a===0)return!1;var c=a;s-=n,l-=t;var f=Math.sqrt(s*s+l*l);if(f-c>e||f+c<e)return!1;if(Math.abs(i-r)%ql<1e-4)return!0;if(o){var p=i;i=qi(r),r=qi(p)}else i=qi(i),r=qi(r);i>r&&(r+=ql);var g=Math.atan2(l,s);return g<0&&(g+=ql),g>=i&&g<=r||g+ql>=i&&g+ql<=r}function Qi(n,t,e,i,r,o){if(o>t&&o>i||o<t&&o<i||i===t)return 0;var a=(o-t)/(i-t),s=i<t?1:-1;(a===1||a===0)&&(s=i<t?.5:-.5);var l=a*(e-n)+n;return l===r?1/0:l>r?s:0}var Fr=Br.CMD,Ro=Math.PI*2,n5=1e-4;function i5(n,t){return Math.abs(n-t)<n5}var on=[-1,-1,-1],Vn=[-1,-1];function r5(){var n=Vn[0];Vn[0]=Vn[1],Vn[1]=n}function o5(n,t,e,i,r,o,a,s,l,c){if(c>t&&c>i&&c>o&&c>s||c<t&&c<i&&c<o&&c<s)return 0;var f=Pf(t,i,o,s,c,on);if(f===0)return 0;for(var p=0,g=-1,d=void 0,y=void 0,_=0;_<f;_++){var m=on[_],x=m===0||m===1?.5:1,w=Ae(n,e,r,a,m);w<l||(g<0&&(g=Jw(t,i,o,s,Vn),Vn[1]<Vn[0]&&g>1&&r5(),d=Ae(t,i,o,s,Vn[0]),g>1&&(y=Ae(t,i,o,s,Vn[1]))),g===2?m<Vn[0]?p+=d<t?x:-x:m<Vn[1]?p+=y<d?x:-x:p+=s<y?x:-x:m<Vn[0]?p+=d<t?x:-x:p+=s<d?x:-x)}return p}function a5(n,t,e,i,r,o,a,s){if(s>t&&s>i&&s>o||s<t&&s<i&&s<o)return 0;var l=pN(t,i,o,s,on);if(l===0)return 0;var c=nS(t,i,o);if(c>=0&&c<=1){for(var f=0,p=Ge(t,i,o,c),g=0;g<l;g++){var d=on[g]===0||on[g]===1?.5:1,y=Ge(n,e,r,on[g]);y<a||(on[g]<c?f+=p<t?d:-d:f+=o<p?d:-d)}return f}else{var d=on[0]===0||on[0]===1?.5:1,y=Ge(n,e,r,on[0]);return y<a?0:o<t?d:-d}}function s5(n,t,e,i,r,o,a,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);on[0]=-l,on[1]=l;var c=Math.abs(i-r);if(c<1e-4)return 0;if(c>=Ro-1e-4){i=0,r=Ro;var f=o?1:-1;return a>=on[0]+n&&a<=on[1]+n?f:0}if(i>r){var p=i;i=r,r=p}i<0&&(i+=Ro,r+=Ro);for(var g=0,d=0;d<2;d++){var y=on[d];if(y+n>a){var _=Math.atan2(s,y),f=o?1:-1;_<0&&(_=Ro+_),(_>=i&&_<=r||_+Ro>=i&&_+Ro<=r)&&(_>Math.PI/2&&_<Math.PI*1.5&&(f=-f),g+=f)}}return g}function ik(n,t,e,i,r){for(var o=n.data,a=n.len(),s=0,l=0,c=0,f=0,p=0,g,d,y=0;y<a;){var _=o[y++],m=y===1;switch(_===Fr.M&&y>1&&(e||(s+=Qi(l,c,f,p,i,r))),m&&(l=o[y],c=o[y+1],f=l,p=c),_){case Fr.M:f=o[y++],p=o[y++],l=f,c=p;break;case Fr.L:if(e){if(Qa(l,c,o[y],o[y+1],t,i,r))return!0}else s+=Qi(l,c,o[y],o[y+1],i,r)||0;l=o[y++],c=o[y++];break;case Fr.C:if(e){if(J3(l,c,o[y++],o[y++],o[y++],o[y++],o[y],o[y+1],t,i,r))return!0}else s+=o5(l,c,o[y++],o[y++],o[y++],o[y++],o[y],o[y+1],i,r)||0;l=o[y++],c=o[y++];break;case Fr.Q:if(e){if(t5(l,c,o[y++],o[y++],o[y],o[y+1],t,i,r))return!0}else s+=a5(l,c,o[y++],o[y++],o[y],o[y+1],i,r)||0;l=o[y++],c=o[y++];break;case Fr.A:var x=o[y++],w=o[y++],S=o[y++],C=o[y++],M=o[y++],T=o[y++];y+=1;var D=!!(1-o[y++]);g=Math.cos(M)*S+x,d=Math.sin(M)*C+w,m?(f=g,p=d):s+=Qi(l,c,g,d,i,r);var P=(i-x)*C/S+x;if(e){if(e5(x,w,C,M,M+T,D,t,P,r))return!0}else s+=s5(x,w,C,M,M+T,D,P,r);l=Math.cos(M+T)*S+x,c=Math.sin(M+T)*C+w;break;case Fr.R:f=l=o[y++],p=c=o[y++];var L=o[y++],O=o[y++];if(g=f+L,d=p+O,e){if(Qa(f,p,g,p,t,i,r)||Qa(g,p,g,d,t,i,r)||Qa(g,d,f,d,t,i,r)||Qa(f,d,f,p,t,i,r))return!0}else s+=Qi(g,p,g,d,i,r),s+=Qi(f,d,f,p,i,r);break;case Fr.Z:if(e){if(Qa(l,c,f,p,t,i,r))return!0}else s+=Qi(l,c,f,p,i,r);l=f,c=p;break}}return!e&&!i5(c,p)&&(s+=Qi(l,c,f,p,i,r)||0),s!==0}function l5(n,t,e){return ik(n,0,!1,t,e)}function u5(n,t,e,i){return ik(n,t,!0,e,i)}var rk=Wt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Do),c5={style:Wt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Qf.style)},gy=Bl.concat(["invisible","culling","z","z2","zlevel","parent"]),$t=(function(n){ae(t,n);function t(e){return n.call(this,e)||this}return t.prototype.update=function(){var e=this;n.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(l){e.buildPath(l,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<gy.length;++s)r[gy[s]]=this[gy[s]];r.__dirty|=kn}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=ce(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var o=0;o<i.length;o++){var a=i[o],s=e[a];a==="style"?this.style?st(this.style,s):this.useStyle(s):a==="shape"?st(this.shape,s):n.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 e=this.style.fill;if(e!=="none"){if(gt(e)){var i=Rl(e,0);return i>.5?Bv:i>.2?WN:Fv}else if(e)return Fv}return Bv},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(gt(i)){var r=this.__zr,o=!!(r&&r.isDarkMode()),a=Rl(e,0)<zv;if(o===a)return i}},t.prototype.buildPath=function(e,i,r){},t.prototype.pathUpdated=function(){this.__dirty&=~Ua},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Br(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,r=!e;if(r){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&Ua)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),e=a.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||r){s.copy(e);var l=i.strokeNoScale?this.getLineScale():1,c=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;c=Math.max(c,f??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 e},t.prototype.contain=function(e,i){var r=this.transformCoordToLocal(e,i),o=this.getBoundingRect(),a=this.style;if(e=r[0],i=r[1],o.contain(e,i)){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)),u5(s,l/c,e,i)))return!0}if(this.hasFill())return l5(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ua,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):n.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var r=this.shape;return r||(r=this.shape={}),typeof e=="string"?r[e]=i:st(r,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ua)},t.prototype.createStyle=function(e){return Ml(rk,e)},t.prototype._innerSaveToNormal=function(e){n.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=st({},this.shape))},t.prototype._applyStateObj=function(e,i,r,o,a,s){n.prototype._applyStateObj.call(this,e,i,r,o,a,s);var l=!(i&&o),c;if(i&&i.shape?a?o?c=i.shape:(c=st({},r.shape),st(c,i.shape)):(c=st({},o?this.shape:r.shape),st(c,i.shape)):l&&(c=r.shape),c)if(a){this.shape=st({},this.shape);for(var f={},p=ce(c),g=0;g<p.length;g++){var d=p[g];typeof c[d]=="object"?this.shape[d]=c[d]:f[d]=c[d]}this._transitionState(e,{shape:f},s)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=n.prototype._mergeStates.call(this,e),r,o=0;o<e.length;o++){var a=e[o];a.shape&&(r=r||{},this._mergeStyle(r,a.shape))}return r&&(i.shape=r),i},t.prototype.getAnimationStyleProps=function(){return c5},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(o){ae(a,o);function a(s){var l=o.call(this,s)||this;return e.init&&e.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return Et(e.style)},a.prototype.getDefaultShape=function(){return Et(e.shape)},a})(t);for(var r in e)typeof e[r]=="function"&&(i.prototype[r]=e[r]);return i},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=kn|Pl|Ua})(),t})(Xl),f5=Wt({strokeFirst:!0,font:go,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},rk),eh=(function(n){ae(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return i!=null&&i!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return Ml(f5,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var r=Gf(i,e.font,e.textAlign,e.textBaseline);if(r.x+=e.x||0,r.y+=e.y||0,this.hasStroke()){var o=e.lineWidth;r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o}this._rect=r}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(Xl);eh.prototype.type="tspan";var h5=Wt({x:0,y:0},Do),p5={style:Wt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Qf.style)};function d5(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var Ki=(function(n){ae(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Ml(h5,e)},t.prototype._getSize=function(e){var i=this.style,r=i[e];if(r!=null)return r;var o=d5(i.image)?i.image:this.__image;if(!o)return 0;var a=e==="width"?"height":"width",s=i[a];return s==null?o[e]:o[e]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return p5},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new jt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Xl);Ki.prototype.type="image";function g5(n,t){var e=t.x,i=t.y,r=t.width,o=t.height,a=t.r,s,l,c,f;r<0&&(e=e+r,r=-r),o<0&&(i=i+o,o=-o),typeof a=="number"?s=l=c=f=a:a instanceof Array?a.length===1?s=l=c=f=a[0]:a.length===2?(s=c=a[0],l=f=a[1]):a.length===3?(s=a[0],l=f=a[1],c=a[2]):(s=a[0],l=a[1],c=a[2],f=a[3]):s=l=c=f=0;var p;s+l>r&&(p=s+l,s*=r/p,l*=r/p),c+f>r&&(p=c+f,c*=r/p,f*=r/p),l+c>o&&(p=l+c,l*=o/p,c*=o/p),s+f>o&&(p=s+f,s*=o/p,f*=o/p),n.moveTo(e+s,i),n.lineTo(e+r-l,i),l!==0&&n.arc(e+r-l,i+l,l,-Math.PI/2,0),n.lineTo(e+r,i+o-c),c!==0&&n.arc(e+r-c,i+o-c,c,0,Math.PI/2),n.lineTo(e+f,i+o),f!==0&&n.arc(e+f,i+o-f,f,Math.PI/2,Math.PI),n.lineTo(e,i+s),s!==0&&n.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Ka=Math.round;function ok(n,t,e){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;n.x1=i,n.x2=r,n.y1=o,n.y2=a;var s=e&&e.lineWidth;return s&&(Ka(i*2)===Ka(r*2)&&(n.x1=n.x2=No(i,s,!0)),Ka(o*2)===Ka(a*2)&&(n.y1=n.y2=No(o,s,!0))),n}}function ak(n,t,e){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;n.x=i,n.y=r,n.width=o,n.height=a;var s=e&&e.lineWidth;return s&&(n.x=No(i,s,!0),n.y=No(r,s,!0),n.width=Math.max(No(i+o,s,!1)-n.x,o===0?0:1),n.height=Math.max(No(r+a,s,!1)-n.y,a===0?0:1)),n}}function No(n,t,e){if(!t)return n;var i=Ka(n*2);return(i+Ka(t))%2===0?i/2:(i+(e?1:-1))/2}var v5=(function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n})(),y5={},se=(function(n){ae(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new v5},t.prototype.buildPath=function(e,i){var r,o,a,s;if(this.subPixelOptimize){var l=ak(y5,i,this.style);r=l.x,o=l.y,a=l.width,s=l.height,l.r=i.r,i=l}else r=i.x,o=i.y,a=i.width,s=i.height;i.r?g5(e,i):e.rect(r,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})($t);se.prototype.type="rect";var sk={fill:"#000"},lk=2,m5={style:Wt({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},Qf.style)},we=(function(n){ae(t,n);function t(e){var i=n.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=sk,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):n.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):n.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),n.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,S5(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){n.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){n.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new jt(0,0,0,0),i=this._children,r=[],o=null,a=0;a<i.length;a++){var s=i[a],l=s.getBoundingRect(),c=s.getLocalTransform(r);c?(e.copy(l),e.applyTransform(c),o=o||e.clone(),o.union(e)):(o=o||l.clone(),o.union(l))}this._rect=o||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||sk},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var r=i.rich,o=e.rich||r&&{};return st(e,i),r&&o?(this._mergeRich(o,r),e.rich=o):o&&(e.rich=o),e},t.prototype._mergeRich=function(e,i){for(var r=ce(i),o=0;o<r.length;o++){var a=r[o];e[a]=e[a]||{},st(e[a],i[a])}},t.prototype.getAnimationStyleProps=function(){return m5},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||go,r=e.padding,o=gk(e),a=H3(o,e),s=vy(e),l=!!e.backgroundColor,c=a.outerHeight,f=a.outerWidth,p=a.contentWidth,g=a.lines,d=a.lineHeight,y=this._defaultStyle;this.isTruncated=!!a.isTruncated;var _=e.x||0,m=e.y||0,x=e.align||y.align||"left",w=e.verticalAlign||y.verticalAlign||"top",S=_,C=Xa(m,a.contentHeight,w);if(s||r){var M=Fl(_,f,x),T=Xa(m,c,w);s&&this._renderBackground(e,e,M,T,f,c)}C+=d/2,r&&(S=dk(_,x,r),w==="top"?C+=r[0]:w==="bottom"&&(C-=r[2]));for(var D=0,P=!1,L=pk("fill"in e?e.fill:(P=!0,y.fill)),O=hk("stroke"in e?e.stroke:!l&&(!y.autoStroke||P)?(D=lk,y.stroke):null),N=e.textShadowBlur>0,B=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),V=a.calculatedLineHeight,Z=0;Z<g.length;Z++){var $=this._getOrCreateChild(eh),et=$.createStyle();$.useStyle(et),et.text=g[Z],et.x=S,et.y=C,et.textAlign=x,et.textBaseline="middle",et.opacity=e.opacity,et.strokeFirst=!0,N&&(et.shadowBlur=e.textShadowBlur||0,et.shadowColor=e.textShadowColor||"transparent",et.shadowOffsetX=e.textShadowOffsetX||0,et.shadowOffsetY=e.textShadowOffsetY||0),et.stroke=O,et.fill=L,O&&(et.lineWidth=e.lineWidth||D,et.lineDash=e.lineDash,et.lineDashOffset=e.lineDashOffset||0),et.font=i,ck(et,e),C+=d,B&&$.setBoundingRect(new jt(Fl(et.x,p,et.textAlign),Xa(et.y,V,et.textBaseline),p,V))}},t.prototype._updateRichTexts=function(){var e=this.style,i=gk(e),r=G3(i,e),o=r.width,a=r.outerWidth,s=r.outerHeight,l=e.padding,c=e.x||0,f=e.y||0,p=this._defaultStyle,g=e.align||p.align,d=e.verticalAlign||p.verticalAlign;this.isTruncated=!!r.isTruncated;var y=Fl(c,a,g),_=Xa(f,s,d),m=y,x=_;l&&(m+=l[3],x+=l[0]);var w=m+o;vy(e)&&this._renderBackground(e,e,y,_,a,s);for(var S=!!e.backgroundColor,C=0;C<r.lines.length;C++){for(var M=r.lines[C],T=M.tokens,D=T.length,P=M.lineHeight,L=M.width,O=0,N=m,B=w,V=D-1,Z=void 0;O<D&&(Z=T[O],!Z.align||Z.align==="left");)this._placeToken(Z,e,P,x,N,"left",S),L-=Z.width,N+=Z.width,O++;for(;V>=0&&(Z=T[V],Z.align==="right");)this._placeToken(Z,e,P,x,B,"right",S),L-=Z.width,B-=Z.width,V--;for(N+=(o-(N-m)-(w-B)-L)/2;O<=V;)Z=T[O],this._placeToken(Z,e,P,x,N+Z.width/2,"center",S),N+=Z.width,O++;x+=P}},t.prototype._placeToken=function(e,i,r,o,a,s,l){var c=i.rich[e.styleName]||{};c.text=e.text;var f=e.verticalAlign,p=o+r/2;f==="top"?p=o+e.height/2:f==="bottom"&&(p=o+r-e.height/2);var g=!e.isLineHolder&&vy(c);g&&this._renderBackground(c,i,s==="right"?a-e.width:s==="center"?a-e.width/2:a,p-e.height/2,e.width,e.height);var d=!!c.backgroundColor,y=e.textPadding;y&&(a=dk(a,s,y),p-=e.height/2-y[0]-e.innerHeight/2);var _=this._getOrCreateChild(eh),m=_.createStyle();_.useStyle(m);var x=this._defaultStyle,w=!1,S=0,C=pk("fill"in c?c.fill:"fill"in i?i.fill:(w=!0,x.fill)),M=hk("stroke"in c?c.stroke:"stroke"in i?i.stroke:!d&&!l&&(!x.autoStroke||w)?(S=lk,x.stroke):null),T=c.textShadowBlur>0||i.textShadowBlur>0;m.text=e.text,m.x=a,m.y=p,T&&(m.shadowBlur=c.textShadowBlur||i.textShadowBlur||0,m.shadowColor=c.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=c.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=c.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=e.font||go,m.opacity=Ba(c.opacity,i.opacity,1),ck(m,c),M&&(m.lineWidth=Ba(c.lineWidth,i.lineWidth,S),m.lineDash=Nt(c.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=M),C&&(m.fill=C);var D=e.contentWidth,P=e.contentHeight;_.setBoundingRect(new jt(Fl(m.x,D,m.textAlign),Xa(m.y,P,m.textBaseline),D,P))},t.prototype._renderBackground=function(e,i,r,o,a,s){var l=e.backgroundColor,c=e.borderWidth,f=e.borderColor,p=l&&l.image,g=l&&!p,d=e.borderRadius,y=this,_,m;if(g||e.lineHeight||c&&f){_=this._getOrCreateChild(se),_.useStyle(_.createStyle()),_.style.fill=null;var x=_.shape;x.x=r,x.y=o,x.width=a,x.height=s,x.r=d,_.dirtyShape()}if(g){var w=_.style;w.fill=l||null,w.fillOpacity=Nt(e.fillOpacity,1)}else if(p){m=this._getOrCreateChild(Ki),m.onload=function(){y.dirtyStyle()};var S=m.style;S.image=l.image,S.x=r,S.y=o,S.width=a,S.height=s}if(c&&f){var w=_.style;w.lineWidth=c,w.stroke=f,w.strokeOpacity=Nt(e.strokeOpacity,1),w.lineDash=e.borderDash,w.lineDashOffset=e.borderDashOffset||0,_.strokeContainThreshold=0,_.hasFill()&&_.hasStroke()&&(w.strokeFirst=!0,w.lineWidth*=2)}var C=(_||m).style;C.shadowBlur=e.shadowBlur||0,C.shadowColor=e.shadowColor||"transparent",C.shadowOffsetX=e.shadowOffsetX||0,C.shadowOffsetY=e.shadowOffsetY||0,C.opacity=Ba(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return w5(e)&&(i=[e.fontStyle,e.fontWeight,b5(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&ei(i)||e.textFont||e.font},t})(Xl),_5={left:!0,right:1,center:1},x5={top:1,bottom:1,middle:1},uk=["fontStyle","fontWeight","fontSize","fontFamily"];function b5(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?Xg+"px":n+"px"}function ck(n,t){for(var e=0;e<uk.length;e++){var i=uk[e],r=t[i];r!=null&&(n[i]=r)}}function w5(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function S5(n){return fk(n),E(n.rich,fk),n}function fk(n){if(n){n.font=we.makeFont(n);var t=n.align;t==="middle"&&(t="center"),n.align=t==null||_5[t]?t:"left";var e=n.verticalAlign;e==="center"&&(e="middle"),n.verticalAlign=e==null||x5[e]?e:"top";var i=n.padding;i&&(n.padding=tv(n.padding))}}function hk(n,t){return n==null||t<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function pk(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function dk(n,t,e){return t==="right"?n-e[1]:t==="center"?n+e[3]/2-e[1]/2:n+e[3]}function gk(n){var t=n.text;return t!=null&&(t+=""),t}function vy(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}var Ut=fe(),k5=function(n,t,e,i){if(i){var r=Ut(i);r.dataIndex=e,r.dataType=t,r.seriesIndex=n,r.ssrType="chart",i.type==="group"&&i.traverse(function(o){var a=Ut(o);a.seriesIndex=n,a.dataIndex=e,a.dataType=t,a.ssrType="chart"})}},vk=1,yk={},mk=fe(),yy=fe(),my=0,nh=1,ih=2,Hn=["emphasis","blur","select"],rh=["normal","emphasis","blur","select"],M5=10,C5=9,zo="highlight",oh="downplay",Ql="select",ah="unselect",Kl="toggleSelect";function Ja(n){return n!=null&&n!=="none"}function sh(n,t,e){n.onHoverStateChange&&(n.hoverState||0)!==e&&n.onHoverStateChange(t),n.hoverState=e}function _k(n){sh(n,"emphasis",ih)}function xk(n){n.hoverState===ih&&sh(n,"normal",my)}function _y(n){sh(n,"blur",nh)}function bk(n){n.hoverState===nh&&sh(n,"normal",my)}function T5(n){n.selected=!0}function I5(n){n.selected=!1}function wk(n,t,e){t(n,e)}function Ji(n,t,e){wk(n,t,e),n.isGroup&&n.traverse(function(i){wk(i,t,e)})}function Sk(n,t){switch(t){case"emphasis":n.hoverState=ih;break;case"normal":n.hoverState=my;break;case"blur":n.hoverState=nh;break;case"select":n.selected=!0}}function D5(n,t,e,i){for(var r=n.style,o={},a=0;a<t.length;a++){var s=t[a],l=r[s];o[s]=l??(i&&i[s])}for(var a=0;a<n.animators.length;a++){var c=n.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(e)<0&&c.targetName==="style"&&c.saveTo(o,t)}return o}function A5(n,t,e,i){var r=e&&Vt(e,"select")>=0,o=!1;if(n instanceof $t){var a=mk(n),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Ja(s)||Ja(l)){i=i||{};var c=i.style||{};c.fill==="inherit"?(o=!0,i=st({},i),c=st({},c),c.fill=s):!Ja(c.fill)&&Ja(s)?(o=!0,i=st({},i),c=st({},c),c.fill=Mv(s)):!Ja(c.stroke)&&Ja(l)&&(o||(i=st({},i),c=st({},c)),c.stroke=Mv(l)),i.style=c}}if(i&&i.z2==null){o||(i=st({},i));var f=n.z2EmphasisLift;i.z2=n.z2+(f??M5)}return i}function P5(n,t,e){if(e&&e.z2==null){e=st({},e);var i=n.z2SelectLift;e.z2=n.z2+(i??C5)}return e}function L5(n,t,e){var i=Vt(n.currentStates,t)>=0,r=n.style.opacity,o=i?null:D5(n,["opacity"],t,{opacity:1});e=e||{};var a=e.style||{};return a.opacity==null&&(e=st({},e),a=st({opacity:i?r:o.opacity*.1},a),e.style=a),e}function xy(n,t){var e=this.states[n];if(this.style){if(n==="emphasis")return A5(this,n,t,e);if(n==="blur")return L5(this,n,e);if(n==="select")return P5(this,n,e)}return e}function E5(n){n.stateProxy=xy;var t=n.getTextContent(),e=n.getTextGuideLine();t&&(t.stateProxy=xy),e&&(e.stateProxy=xy)}function kk(n,t){!Dk(n,t)&&!n.__highByOuter&&Ji(n,_k)}function Mk(n,t){!Dk(n,t)&&!n.__highByOuter&&Ji(n,xk)}function ts(n,t){n.__highByOuter|=1<<(t||0),Ji(n,_k)}function es(n,t){!(n.__highByOuter&=~(1<<(t||0)))&&Ji(n,xk)}function O5(n){Ji(n,_y)}function Ck(n){Ji(n,bk)}function Tk(n){Ji(n,T5)}function Ik(n){Ji(n,I5)}function Dk(n,t){return n.__highDownSilentOnTouch&&t.zrByTouch}function Ak(n){var t=n.getModel(),e=[],i=[];t.eachComponent(function(r,o){var a=yy(o),s=r==="series",l=s?n.getViewOfSeriesModel(o):n.getViewOfComponentModel(o);!s&&i.push(l),a.isBlured&&(l.group.traverse(function(c){bk(c)}),s&&e.push(o)),a.isBlured=!1}),E(i,function(r){r&&r.toggleBlurSeries&&r.toggleBlurSeries(e,!1,t)})}function by(n,t,e,i){var r=i.getModel();e=e||"coordinateSystem";function o(c,f){for(var p=0;p<f.length;p++){var g=c.getItemGraphicEl(f[p]);g&&Ck(g)}}if(n!=null&&!(!t||t==="none")){var a=r.getSeriesByIndex(n),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(c){var f=a===c,p=c.coordinateSystem;p&&p.master&&(p=p.master);var g=p&&s?p===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!g||t==="series"&&f)){var d=i.getViewOfSeriesModel(c);if(d.group.traverse(function(m){m.__highByOuter&&f&&t==="self"||_y(m)}),Ke(t))o(c.getData(),t);else if(_t(t))for(var y=ce(t),_=0;_<y.length;_++)o(c.getData(y[_]),t[y[_]]);l.push(c),yy(c).isBlured=!0}}),r.eachComponent(function(c,f){if(c!=="series"){var p=i.getViewOfComponentModel(f);p&&p.toggleBlurSeries&&p.toggleBlurSeries(l,!0,r)}})}}function wy(n,t,e){if(!(n==null||t==null)){var i=e.getModel().getComponent(n,t);if(i){yy(i).isBlured=!0;var r=e.getViewOfComponentModel(i);!r||!r.focusBlurEnabled||r.group.traverse(function(o){_y(o)})}}}function R5(n,t,e){var i=n.seriesIndex,r=n.getData(t.dataType);if(r){var o=To(r,t);o=(ct(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var c=Ut(a);by(i,c.focus,c.blurScope,e)}else{var f=n.get(["emphasis","focus"]),p=n.get(["emphasis","blurScope"]);f!=null&&by(i,f,p,e)}}}function Sy(n,t,e,i){var r={focusSelf:!1,dispatchers:null};if(n==null||n==="series"||t==null||e==null)return r;var o=i.getModel().getComponent(n,t);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s=a.findHighDownDispatchers(e),l,c=0;c<s.length;c++)if(Ut(s[c]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function N5(n,t,e){var i=Ut(n),r=Sy(i.componentMainType,i.componentIndex,i.componentHighDownName,e),o=r.dispatchers,a=r.focusSelf;o?(a&&wy(i.componentMainType,i.componentIndex,e),E(o,function(s){return kk(s,t)})):(by(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&wy(i.componentMainType,i.componentIndex,e),kk(n,t))}function z5(n,t,e){Ak(e);var i=Ut(n),r=Sy(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;r?E(r,function(o){return Mk(o,t)}):Mk(n,t)}function B5(n,t,e){if(My(t)){var i=t.dataType,r=n.getData(i),o=To(r,t);ct(o)||(o=[o]),n[t.type===Kl?"toggleSelect":t.type===Ql?"select":"unselect"](o,i)}}function Pk(n){var t=n.getAllData();E(t,function(e){var i=e.data,r=e.type;i.eachItemGraphicEl(function(o,a){n.isSelected(a,r)?Tk(o):Ik(o)})})}function F5(n){var t=[];return n.eachSeries(function(e){var i=e.getAllData();E(i,function(r){r.data;var o=r.type,a=e.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:e.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function Jl(n,t,e){Ek(n,!0),Ji(n,E5),H5(n,t,e)}function V5(n){Ek(n,!1)}function ns(n,t,e,i){i?V5(n):Jl(n,t,e)}function H5(n,t,e){var i=Ut(n);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var Lk=["emphasis","blur","select"],W5={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function tu(n,t,e,i){e=e||"itemStyle";for(var r=0;r<Lk.length;r++){var o=Lk[r],a=t.getModel([o,e]),s=n.ensureState(o);s.style=a[W5[e]]()}}function Ek(n,t){var e=t===!1,i=n;n.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=n.highDownSilentOnTouch),(!e||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function ky(n){return!!(n&&n.__highDownDispatcher)}function U5(n){var t=yk[n];return t==null&&vk<=32&&(t=yk[n]=vk++),t}function My(n){var t=n.type;return t===Ql||t===ah||t===Kl}function Ok(n){var t=n.type;return t===zo||t===oh}function G5(n){var t=mk(n);t.normalFill=n.style.fill,t.normalStroke=n.style.stroke;var e=n.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var is=Br.CMD,j5=[[],[],[]],Rk=Math.sqrt,Z5=Math.atan2;function Y5(n,t){if(t){var e=n.data,i=n.len(),r,o,a,s,l,c,f=is.M,p=is.C,g=is.L,d=is.R,y=is.A,_=is.Q;for(a=0,s=0;a<i;){switch(r=e[a++],s=a,o=0,r){case f:o=1;break;case g:o=1;break;case p:o=3;break;case _:o=2;break;case y:var m=t[4],x=t[5],w=Rk(t[0]*t[0]+t[1]*t[1]),S=Rk(t[2]*t[2]+t[3]*t[3]),C=Z5(-t[1]/S,t[0]/w);e[a]*=w,e[a++]+=m,e[a]*=S,e[a++]+=x,e[a++]*=w,e[a++]*=S,e[a++]+=C,e[a++]+=C,a+=2,s=a;break;case d:c[0]=e[a++],c[1]=e[a++],tn(c,c,t),e[s++]=c[0],e[s++]=c[1],c[0]+=e[a++],c[1]+=e[a++],tn(c,c,t),e[s++]=c[0],e[s++]=c[1]}for(l=0;l<o;l++){var M=j5[l];M[0]=e[a++],M[1]=e[a++],tn(M,M,t),e[s++]=M[0],e[s++]=M[1]}}n.increaseVersion()}}var Cy=Math.sqrt,lh=Math.sin,uh=Math.cos,eu=Math.PI;function Nk(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Ty(n,t){return(n[0]*t[0]+n[1]*t[1])/(Nk(n)*Nk(t))}function zk(n,t){return(n[0]*t[1]<n[1]*t[0]?-1:1)*Math.acos(Ty(n,t))}function Bk(n,t,e,i,r,o,a,s,l,c,f){var p=l*(eu/180),g=uh(p)*(n-e)/2+lh(p)*(t-i)/2,d=-1*lh(p)*(n-e)/2+uh(p)*(t-i)/2,y=g*g/(a*a)+d*d/(s*s);y>1&&(a*=Cy(y),s*=Cy(y));var _=(r===o?-1:1)*Cy((a*a*(s*s)-a*a*(d*d)-s*s*(g*g))/(a*a*(d*d)+s*s*(g*g)))||0,m=_*a*d/s,x=_*-s*g/a,w=(n+e)/2+uh(p)*m-lh(p)*x,S=(t+i)/2+lh(p)*m+uh(p)*x,C=zk([1,0],[(g-m)/a,(d-x)/s]),M=[(g-m)/a,(d-x)/s],T=[(-1*g-m)/a,(-1*d-x)/s],D=zk(M,T);if(Ty(M,T)<=-1&&(D=eu),Ty(M,T)>=1&&(D=0),D<0){var P=Math.round(D/eu*1e6)/1e6;D=eu*2+P%2*eu}f.addData(c,w,S,a,s,C,D,p,o)}var X5=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,$5=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function q5(n){var t=new Br;if(!n)return t;var e=0,i=0,r=e,o=i,a,s=Br.CMD,l=n.match(X5);if(!l)return t;for(var c=0;c<l.length;c++){for(var f=l[c],p=f.charAt(0),g=void 0,d=f.match($5)||[],y=d.length,_=0;_<y;_++)d[_]=parseFloat(d[_]);for(var m=0;m<y;){var x=void 0,w=void 0,S=void 0,C=void 0,M=void 0,T=void 0,D=void 0,P=e,L=i,O=void 0,N=void 0;switch(p){case"l":e+=d[m++],i+=d[m++],g=s.L,t.addData(g,e,i);break;case"L":e=d[m++],i=d[m++],g=s.L,t.addData(g,e,i);break;case"m":e+=d[m++],i+=d[m++],g=s.M,t.addData(g,e,i),r=e,o=i,p="l";break;case"M":e=d[m++],i=d[m++],g=s.M,t.addData(g,e,i),r=e,o=i,p="L";break;case"h":e+=d[m++],g=s.L,t.addData(g,e,i);break;case"H":e=d[m++],g=s.L,t.addData(g,e,i);break;case"v":i+=d[m++],g=s.L,t.addData(g,e,i);break;case"V":i=d[m++],g=s.L,t.addData(g,e,i);break;case"C":g=s.C,t.addData(g,d[m++],d[m++],d[m++],d[m++],d[m++],d[m++]),e=d[m-2],i=d[m-1];break;case"c":g=s.C,t.addData(g,d[m++]+e,d[m++]+i,d[m++]+e,d[m++]+i,d[m++]+e,d[m++]+i),e+=d[m-2],i+=d[m-1];break;case"S":x=e,w=i,O=t.len(),N=t.data,a===s.C&&(x+=e-N[O-4],w+=i-N[O-3]),g=s.C,P=d[m++],L=d[m++],e=d[m++],i=d[m++],t.addData(g,x,w,P,L,e,i);break;case"s":x=e,w=i,O=t.len(),N=t.data,a===s.C&&(x+=e-N[O-4],w+=i-N[O-3]),g=s.C,P=e+d[m++],L=i+d[m++],e+=d[m++],i+=d[m++],t.addData(g,x,w,P,L,e,i);break;case"Q":P=d[m++],L=d[m++],e=d[m++],i=d[m++],g=s.Q,t.addData(g,P,L,e,i);break;case"q":P=d[m++]+e,L=d[m++]+i,e+=d[m++],i+=d[m++],g=s.Q,t.addData(g,P,L,e,i);break;case"T":x=e,w=i,O=t.len(),N=t.data,a===s.Q&&(x+=e-N[O-4],w+=i-N[O-3]),e=d[m++],i=d[m++],g=s.Q,t.addData(g,x,w,e,i);break;case"t":x=e,w=i,O=t.len(),N=t.data,a===s.Q&&(x+=e-N[O-4],w+=i-N[O-3]),e+=d[m++],i+=d[m++],g=s.Q,t.addData(g,x,w,e,i);break;case"A":S=d[m++],C=d[m++],M=d[m++],T=d[m++],D=d[m++],P=e,L=i,e=d[m++],i=d[m++],g=s.A,Bk(P,L,e,i,T,D,S,C,M,g,t);break;case"a":S=d[m++],C=d[m++],M=d[m++],T=d[m++],D=d[m++],P=e,L=i,e+=d[m++],i+=d[m++],g=s.A,Bk(P,L,e,i,T,D,S,C,M,g,t);break}}(p==="z"||p==="Z")&&(g=s.Z,t.addData(g),e=r,i=o),a=g}return t.toStatic(),t}var Fk=(function(n){ae(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})($t);function Vk(n){return n.setData!=null}function Hk(n,t){var e=q5(n),i=st({},t);return i.buildPath=function(r){if(Vk(r)){r.setData(e.data);var o=r.getContext();o&&r.rebuildPath(o,1)}else{var o=r;e.rebuildPath(o,1)}},i.applyTransform=function(r){Y5(e,r),this.dirtyShape()},i}function Q5(n,t){return new Fk(Hk(n,t))}function K5(n,t){var e=Hk(n,t),i=(function(r){ae(o,r);function o(a){var s=r.call(this,a)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return o})(Fk);return i}function J5(n,t){for(var e=[],i=n.length,r=0;r<i;r++){var o=n[r];e.push(o.getUpdatedPathProxy(!0))}var a=new $t(t);return a.createPathProxy(),a.buildPath=function(s){if(Vk(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var tz=(function(){function n(){this.cx=0,this.cy=0,this.r=0}return n})(),nu=(function(n){ae(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new tz},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})($t);nu.prototype.type="circle";var ez=(function(){function n(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return n})(),ch=(function(n){ae(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ez},t.prototype.buildPath=function(e,i){var r=.5522848,o=i.cx,a=i.cy,s=i.rx,l=i.ry,c=s*r,f=l*r;e.moveTo(o-s,a),e.bezierCurveTo(o-s,a-f,o-c,a-l,o,a-l),e.bezierCurveTo(o+c,a-l,o+s,a-f,o+s,a),e.bezierCurveTo(o+s,a+f,o+c,a+l,o,a+l),e.bezierCurveTo(o-c,a+l,o-s,a+f,o-s,a),e.closePath()},t})($t);ch.prototype.type="ellipse";var Wk=Math.PI,Iy=Wk*2,Bo=Math.sin,rs=Math.cos,nz=Math.acos,je=Math.atan2,Uk=Math.abs,iu=Math.sqrt,ru=Math.max,Pi=Math.min,ri=1e-4;function iz(n,t,e,i,r,o,a,s){var l=e-n,c=i-t,f=a-r,p=s-o,g=p*l-f*c;if(!(g*g<ri))return g=(f*(t-o)-p*(n-r))/g,[n+g*l,t+g*c]}function fh(n,t,e,i,r,o,a){var s=n-e,l=t-i,c=(a?o:-o)/iu(s*s+l*l),f=c*l,p=-c*s,g=n+f,d=t+p,y=e+f,_=i+p,m=(g+y)/2,x=(d+_)/2,w=y-g,S=_-d,C=w*w+S*S,M=r-o,T=g*_-y*d,D=(S<0?-1:1)*iu(ru(0,M*M*C-T*T)),P=(T*S-w*D)/C,L=(-T*w-S*D)/C,O=(T*S+w*D)/C,N=(-T*w+S*D)/C,B=P-m,V=L-x,Z=O-m,$=N-x;return B*B+V*V>Z*Z+$*$&&(P=O,L=N),{cx:P,cy:L,x0:-f,y0:-p,x1:P*(r/M-1),y1:L*(r/M-1)}}function rz(n){var t;if(ct(n)){var e=n.length;if(!e)return n;e===1?t=[n[0],n[0],0,0]:e===2?t=[n[0],n[0],n[1],n[1]]:e===3?t=n.concat(n[2]):t=n}else t=[n,n,n,n];return t}function oz(n,t){var e,i=ru(t.r,0),r=ru(t.r0||0,0),o=i>0,a=r>0;if(!(!o&&!a)){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=t.startAngle,c=t.endAngle;if(!(isNaN(l)||isNaN(c))){var f=t.cx,p=t.cy,g=!!t.clockwise,d=Uk(c-l),y=d>Iy&&d%Iy;if(y>ri&&(d=y),!(i>ri))n.moveTo(f,p);else if(d>Iy-ri)n.moveTo(f+i*rs(l),p+i*Bo(l)),n.arc(f,p,i,l,c,!g),r>ri&&(n.moveTo(f+r*rs(c),p+r*Bo(c)),n.arc(f,p,r,c,l,g));else{var _=void 0,m=void 0,x=void 0,w=void 0,S=void 0,C=void 0,M=void 0,T=void 0,D=void 0,P=void 0,L=void 0,O=void 0,N=void 0,B=void 0,V=void 0,Z=void 0,$=i*rs(l),et=i*Bo(l),z=r*rs(c),H=r*Bo(c),K=d>ri;if(K){var it=t.cornerRadius;it&&(e=rz(it),_=e[0],m=e[1],x=e[2],w=e[3]);var j=Uk(i-r)/2;if(S=Pi(j,x),C=Pi(j,w),M=Pi(j,_),T=Pi(j,m),L=D=ru(S,C),O=P=ru(M,T),(D>ri||P>ri)&&(N=i*rs(c),B=i*Bo(c),V=r*rs(l),Z=r*Bo(l),d<Wk)){var U=iz($,et,V,Z,N,B,z,H);if(U){var G=$-U[0],Q=et-U[1],tt=N-U[0],X=B-U[1],mt=1/Bo(nz((G*tt+Q*X)/(iu(G*G+Q*Q)*iu(tt*tt+X*X)))/2),ot=iu(U[0]*U[0]+U[1]*U[1]);L=Pi(D,(i-ot)/(mt+1)),O=Pi(P,(r-ot)/(mt-1))}}}if(!K)n.moveTo(f+$,p+et);else if(L>ri){var bt=Pi(x,L),xt=Pi(w,L),ut=fh(V,Z,$,et,i,bt,g),lt=fh(N,B,z,H,i,xt,g);n.moveTo(f+ut.cx+ut.x0,p+ut.cy+ut.y0),L<D&&bt===xt?n.arc(f+ut.cx,p+ut.cy,L,je(ut.y0,ut.x0),je(lt.y0,lt.x0),!g):(bt>0&&n.arc(f+ut.cx,p+ut.cy,bt,je(ut.y0,ut.x0),je(ut.y1,ut.x1),!g),n.arc(f,p,i,je(ut.cy+ut.y1,ut.cx+ut.x1),je(lt.cy+lt.y1,lt.cx+lt.x1),!g),xt>0&&n.arc(f+lt.cx,p+lt.cy,xt,je(lt.y1,lt.x1),je(lt.y0,lt.x0),!g))}else n.moveTo(f+$,p+et),n.arc(f,p,i,l,c,!g);if(!(r>ri)||!K)n.lineTo(f+z,p+H);else if(O>ri){var bt=Pi(_,O),xt=Pi(m,O),ut=fh(z,H,N,B,r,-xt,g),lt=fh($,et,V,Z,r,-bt,g);n.lineTo(f+ut.cx+ut.x0,p+ut.cy+ut.y0),O<P&&bt===xt?n.arc(f+ut.cx,p+ut.cy,O,je(ut.y0,ut.x0),je(lt.y0,lt.x0),!g):(xt>0&&n.arc(f+ut.cx,p+ut.cy,xt,je(ut.y0,ut.x0),je(ut.y1,ut.x1),!g),n.arc(f,p,r,je(ut.cy+ut.y1,ut.cx+ut.x1),je(lt.cy+lt.y1,lt.cx+lt.x1),g),bt>0&&n.arc(f+lt.cx,p+lt.cy,bt,je(lt.y1,lt.x1),je(lt.y0,lt.x0),!g))}else n.lineTo(f+z,p+H),n.arc(f,p,r,c,l,g)}n.closePath()}}}var az=(function(){function n(){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 n})(),tr=(function(n){ae(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new az},t.prototype.buildPath=function(e,i){oz(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})($t);tr.prototype.type="sector";var sz=(function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n})(),hh=(function(n){ae(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new sz},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=Math.PI*2;e.moveTo(r+i.r,o),e.arc(r,o,i.r,0,a,!1),e.moveTo(r+i.r0,o),e.arc(r,o,i.r0,0,a,!0)},t})($t);hh.prototype.type="ring";function lz(n,t,e,i){var r=[],o=[],a=[],s=[],l,c,f,p;if(i){f=[1/0,1/0],p=[-1/0,-1/0];for(var g=0,d=n.length;g<d;g++)Tr(f,f,n[g]),Ir(p,p,n[g]);Tr(f,f,i[0]),Ir(p,p,i[1])}for(var g=0,d=n.length;g<d;g++){var y=n[g];if(e)l=n[g?g-1:d-1],c=n[(g+1)%d];else if(g===0||g===d-1){r.push(Dw(n[g]));continue}else l=n[g-1],c=n[g+1];Aw(o,c,l),mf(o,o,t);var _=_f(y,l),m=_f(y,c),x=_+m;x!==0&&(_/=x,m/=x),mf(a,o,-_),mf(s,o,m);var w=iv([],y,a),S=iv([],y,s);i&&(Ir(w,w,f),Tr(w,w,p),Ir(S,S,f),Tr(S,S,p)),r.push(w),r.push(S)}return e&&r.push(r.shift()),r}function Gk(n,t,e){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i){var o=lz(r,i,e,t.smoothConstraint);n.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(e?a:a-1);s++){var l=o[s*2],c=o[s*2+1],f=r[(s+1)%a];n.bezierCurveTo(l[0],l[1],c[0],c[1],f[0],f[1])}}else{n.moveTo(r[0][0],r[0][1]);for(var s=1,p=r.length;s<p;s++)n.lineTo(r[s][0],r[s][1])}e&&n.closePath()}}var uz=(function(){function n(){this.points=null,this.smooth=0,this.smoothConstraint=null}return n})(),os=(function(n){ae(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new uz},t.prototype.buildPath=function(e,i){Gk(e,i,!0)},t})($t);os.prototype.type="polygon";var cz=(function(){function n(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return n})(),Vr=(function(n){ae(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cz},t.prototype.buildPath=function(e,i){Gk(e,i,!1)},t})($t);Vr.prototype.type="polyline";var fz={},hz=(function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n})(),er=(function(n){ae(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hz},t.prototype.buildPath=function(e,i){var r,o,a,s;if(this.subPixelOptimize){var l=ok(fz,i,this.style);r=l.x1,o=l.y1,a=l.x2,s=l.y2}else r=i.x1,o=i.y1,a=i.x2,s=i.y2;var c=i.percent;c!==0&&(e.moveTo(r,o),c<1&&(a=r*(1-c)+a*c,s=o*(1-c)+s*c),e.lineTo(a,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t})($t);er.prototype.type="line";var vn=[],pz=(function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return n})();function jk(n,t,e){var i=n.cpx2,r=n.cpy2;return i!=null||r!=null?[(e?Kw:Ae)(n.x1,n.cpx1,n.cpx2,n.x2,t),(e?Kw:Ae)(n.y1,n.cpy1,n.cpy2,n.y2,t)]:[(e?eS:Ge)(n.x1,n.cpx1,n.x2,t),(e?eS:Ge)(n.y1,n.cpy1,n.y2,t)]}var ph=(function(n){ae(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new pz},t.prototype.buildPath=function(e,i){var r=i.x1,o=i.y1,a=i.x2,s=i.y2,l=i.cpx1,c=i.cpy1,f=i.cpx2,p=i.cpy2,g=i.percent;g!==0&&(e.moveTo(r,o),f==null||p==null?(g<1&&(Ef(r,l,a,g,vn),l=vn[1],a=vn[2],Ef(o,c,s,g,vn),c=vn[1],s=vn[2]),e.quadraticCurveTo(l,c,a,s)):(g<1&&(Lf(r,l,f,a,g,vn),l=vn[1],f=vn[2],a=vn[3],Lf(o,c,p,s,g,vn),c=vn[1],p=vn[2],s=vn[3]),e.bezierCurveTo(l,c,f,p,a,s)))},t.prototype.pointAt=function(e){return jk(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=jk(this.shape,e,!0);return Pw(i,i)},t})($t);ph.prototype.type="bezier-curve";var dz=(function(){function n(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n})(),ou=(function(n){ae(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dz},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,c=i.clockwise,f=Math.cos(s),p=Math.sin(s);e.moveTo(f*a+r,p*a+o),e.arc(r,o,a,s,l,!c)},t})($t);ou.prototype.type="arc";var Zk=(function(n){ae(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),r=0;r<e.length;r++)i=i||e[r].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),r=0;r<e.length;r++)e[r].path||e[r].createPathProxy(),e[r].path.setScale(i[0],i[1],e[r].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var r=i.paths||[],o=0;o<r.length;o++)r[o].buildPath(e,r[o].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),$t.prototype.getBoundingRect.call(this)},t})($t),Yk=(function(){function n(t){this.colorStops=t||[]}return n.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},n})(),Dy=(function(n){ae(t,n);function t(e,i,r,o,a,s){var l=n.call(this,a)||this;return l.x=e??0,l.y=i??0,l.x2=r??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t})(Yk),Xk=(function(n){ae(t,n);function t(e,i,r,o,a){var s=n.call(this,o)||this;return s.x=e??.5,s.y=i??.5,s.r=r??.5,s.type="radial",s.global=a||!1,s}return t})(Yk),Fo=[0,0],Vo=[0,0],dh=new Pt,gh=new Pt,vh=(function(){function n(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new Pt;for(var i=0;i<2;i++)this._axes[i]=new Pt;t&&this.fromBoundingRect(t,e)}return n.prototype.fromBoundingRect=function(t,e){var i=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(i[0].set(o,a),i[1].set(s,a),i[2].set(s,l),i[3].set(o,l),e)for(var c=0;c<4;c++)i[c].transform(e);Pt.sub(r[0],i[1],i[0]),Pt.sub(r[1],i[3],i[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(i[0])},n.prototype.intersect=function(t,e){var i=!0,r=!e;return dh.set(1/0,1/0),gh.set(0,0),!this._intersectCheckOneSide(this,t,dh,gh,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,dh,gh,r,-1)&&(i=!1,r)||r||Pt.copy(e,i?dh:gh),i},n.prototype._intersectCheckOneSide=function(t,e,i,r,o,a){for(var s=!0,l=0;l<2;l++){var c=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Fo),this._getProjMinMaxOnAxis(l,e._corners,Vo),Fo[1]<Vo[0]||Fo[0]>Vo[1]){if(s=!1,o)return s;var f=Math.abs(Vo[0]-Fo[1]),p=Math.abs(Fo[0]-Vo[1]);Math.min(f,p)>r.len()&&(f<p?Pt.scale(r,c,-f*a):Pt.scale(r,c,p*a))}else if(i){var f=Math.abs(Vo[0]-Fo[1]),p=Math.abs(Fo[0]-Vo[1]);Math.min(f,p)<i.len()&&(f<p?Pt.scale(i,c,f*a):Pt.scale(i,c,-p*a))}}return s},n.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var r=this._axes[t],o=this._origin,a=e[0].dot(r)+o[t],s=a,l=a,c=1;c<e.length;c++){var f=e[c].dot(r)+o[t];s=Math.min(f,s),l=Math.max(f,l)}i[0]=s,i[1]=l},n})(),gz=[],$k=(function(n){ae(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var r=0;r<e.length;r++)this.addDisplayable(e[r],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new jt(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var r=this._displayables[i],o=r.getBoundingRect().clone();r.needLocalTransform()&&o.applyTransform(r.getLocalTransform(gz)),e.union(o)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var r=this.transformCoordToLocal(e,i),o=this.getBoundingRect();if(o.contain(r[0],r[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(e,i))return!0}return!1},t})(Xl),vz=fe();function yz(n,t,e,i,r){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l=n==="update";if(s){var c=void 0,f=void 0,p=void 0;i?(c=Nt(i.duration,200),f=Nt(i.easing,"cubicOut"),p=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),p=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(c=o.duration),o.easing!=null&&(f=o.easing),o.delay!=null&&(p=o.delay)),St(p)&&(p=p(e,r)),St(c)&&(c=c(e));var g={duration:c||0,delay:p,easing:f};return g}else return null}function Ay(n,t,e,i,r,o,a){var s=!1,l;St(r)?(a=o,o=r,r=null):_t(r)&&(o=r.cb,a=r.during,s=r.isFrom,l=r.removeOpt,r=r.dataIndex);var c=n==="leave";c||t.stopAnimation("leave");var f=yz(n,i,r,c?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null);if(f&&f.duration>0){var p=f.duration,g=f.delay,d=f.easing,y={duration:p,delay:g||0,easing:d,done:o,force:!!o||!!a,setToFinal:!c,scope:n,during:a};s?t.animateFrom(e,y):t.animateTo(e,y)}else t.stopAnimation(),!s&&t.attr(e),a&&a(1),o&&o()}function Ie(n,t,e,i,r,o){Ay("update",n,t,e,i,r,o)}function Re(n,t,e,i,r,o){Ay("enter",n,t,e,i,r,o)}function as(n){if(!n.__zr)return!0;for(var t=0;t<n.animators.length;t++){var e=n.animators[t];if(e.scope==="leave")return!0}return!1}function yh(n,t,e,i,r,o){as(n)||Ay("leave",n,t,e,i,r,o)}function qk(n,t,e,i){n.removeTextContent(),n.removeTextGuideLine(),yh(n,{style:{opacity:0}},t,e,i)}function mh(n,t,e){function i(){n.parent&&n.parent.remove(n)}n.isGroup?n.traverse(function(r){r.isGroup||qk(r,t,e,i)}):qk(n,t,e,i)}function _h(n){vz(n).oldStyle=n.style}var xh=Math.max,bh=Math.min,Py={};function Qk(n){return $t.extend(n)}var mz=K5;function Kk(n,t){return mz(n,t)}function Wn(n,t){Py[n]=t}function Jk(n){if(Py.hasOwnProperty(n))return Py[n]}function wh(n,t,e,i){var r=Q5(n,t);return e&&(i==="center"&&(e=tM(e,r.getBoundingRect())),Ey(r,e)),r}function Ly(n,t,e){var i=new Ki({style:{image:n,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(r){if(e==="center"){var o={width:r.width,height:r.height};i.setStyle(tM(t,o))}}});return i}function tM(n,t){var e=t.width/t.height,i=n.height*e,r;i<=n.width?r=n.height:(i=n.width,r=i/e);var o=n.x+n.width/2,a=n.y+n.height/2;return{x:o-i/2,y:a-r/2,width:i,height:r}}var eM=J5;function Ey(n,t){if(n.applyTransform){var e=n.getBoundingRect(),i=e.calculateTransform(t);n.applyTransform(i)}}function au(n,t){return ok(n,n,{lineWidth:t}),n}function _z(n){return ak(n.shape,n.shape,n.style),n}var Sh=No;function su(n,t){for(var e=Cl([]);n&&n!==t;)Ar(e,n.getLocalTransform(),e),n=n.parent;return e}function lu(n,t,e){return t&&!Ke(t)&&(t=Uf.getLocalTransform(t)),e&&(t=Wa([],t)),tn([],n,t)}function Oy(n,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),r=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),o=[n==="left"?-i:n==="right"?i:0,n==="top"?-r:n==="bottom"?r:0];return o=lu(o,t,e),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function nM(n){return!n.isGroup}function xz(n){return n.shape!=null}function iM(n,t,e){if(!n||!t)return;function i(a){var s={};return a.traverse(function(l){nM(l)&&l.anid&&(s[l.anid]=l)}),s}function r(a){var s={x:a.x,y:a.y,rotation:a.rotation};return xz(a)&&(s.shape=st({},a.shape)),s}var o=i(n);t.traverse(function(a){if(nM(a)&&a.anid){var s=o[a.anid];if(s){var l=r(a);a.attr(r(s)),Ie(a,l,e,Ut(a).dataIndex)}}})}function Ry(n,t){return pt(n,function(e){var i=e[0];i=xh(i,t.x),i=bh(i,t.x+t.width);var r=e[1];return r=xh(r,t.y),r=bh(r,t.y+t.height),[i,r]})}function rM(n,t){var e=xh(n.x,t.x),i=bh(n.x+n.width,t.x+t.width),r=xh(n.y,t.y),o=bh(n.y+n.height,t.y+t.height);if(i>=e&&o>=r)return{x:e,y:r,width:i-e,height:o-r}}function uu(n,t,e){var i=st({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(r.image=n.slice(8),Wt(r,e),new Ki(i)):wh(n.replace("path://",""),i,e,"center")}function bz(n,t,e,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(oM(n,t,e,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function oM(n,t,e,i,r,o,a,s){var l=e-n,c=i-t,f=a-r,p=s-o,g=Ny(f,p,l,c);if(wz(g))return!1;var d=n-r,y=t-o,_=Ny(d,y,l,c)/g;if(_<0||_>1)return!1;var m=Ny(d,y,f,p)/g;return!(m<0||m>1)}function Ny(n,t,e,i){return n*i-e*t}function wz(n){return n<=1e-6&&n>=-1e-6}function cu(n){var t=n.itemTooltipOption,e=n.componentModel,i=n.itemName,r=gt(t)?{formatter:t}:t,o=e.mainType,a=e.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=n.formatterParamsExtra;l&&E(ce(l),function(f){Cr(s,f)||(s[f]=l[f],s.$vars.push(f))});var c=Ut(n.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:i,option:Wt({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function aM(n,t){var e;n.isGroup&&(e=t(n)),e||n.traverse(t)}function fu(n,t){if(n)if(ct(n))for(var e=0;e<n.length;e++)aM(n[e],t);else aM(n,t)}Wn("circle",nu),Wn("ellipse",ch),Wn("sector",tr),Wn("ring",hh),Wn("polygon",os),Wn("polyline",Vr),Wn("rect",se),Wn("line",er),Wn("bezierCurve",ph),Wn("arc",ou);const Sz=Object.freeze(Object.defineProperty({__proto__:null,Arc:ou,BezierCurve:ph,BoundingRect:jt,Circle:nu,CompoundPath:Zk,Ellipse:ch,Group:ye,Image:Ki,IncrementalDisplayable:$k,Line:er,LinearGradient:Dy,OrientedBoundingRect:vh,Path:$t,Point:Pt,Polygon:os,Polyline:Vr,RadialGradient:Xk,Rect:se,Ring:hh,Sector:tr,Text:we,applyTransform:lu,clipPointsByRect:Ry,clipRectByRect:rM,createIcon:uu,extendPath:Kk,extendShape:Qk,getShapeClass:Jk,getTransform:su,groupTransition:iM,initProps:Re,isElementRemoved:as,lineLineIntersect:oM,linePolygonIntersect:bz,makeImage:Ly,makePath:wh,mergePath:eM,registerShape:Wn,removeElement:yh,removeElementWithFadeOut:mh,resizePath:Ey,setTooltipConfig:cu,subPixelOptimize:Sh,subPixelOptimizeLine:au,subPixelOptimizeRect:_z,transformDirection:Oy,traverseElements:fu,updateProps:Ie},Symbol.toStringTag,{value:"Module"}));var kh={};function sM(n,t){for(var e=0;e<Hn.length;e++){var i=Hn[e],r=t[i],o=n.ensureState(i);o.style=o.style||{},o.style.text=r}var a=n.currentStates.slice();n.clearStates(!0),n.setStyle({text:t.normal}),n.useStates(a,!0)}function zy(n,t,e){var i=n.labelFetcher,r=n.labelDataIndex,o=n.labelDimIndex,a=t.normal,s;i&&(s=i.getFormattedLabel(r,"normal",null,o,a&&a.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=St(n.defaultText)?n.defaultText(r,n,e):n.defaultText);for(var l={normal:s},c=0;c<Hn.length;c++){var f=Hn[c],p=t[f];l[f]=Nt(i?i.getFormattedLabel(r,f,null,o,p&&p.get("formatter")):null,s)}return l}function hu(n,t,e,i){e=e||kh;for(var r=n instanceof we,o=!1,a=0;a<rh.length;a++){var s=t[rh[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?n:n.getTextContent();if(o){r||(l||(l=new we,n.setTextContent(l)),n.stateProxy&&(l.stateProxy=n.stateProxy));var c=zy(e,t),f=t.normal,p=!!f.getShallow("show"),g=Li(f,i&&i.normal,e,!1,!r);g.text=c.normal,r||n.setTextConfig(lM(f,e,!1));for(var a=0;a<Hn.length;a++){var d=Hn[a],s=t[d];if(s){var y=l.ensureState(d),_=!!Nt(s.getShallow("show"),p);if(_!==p&&(y.ignore=!_),y.style=Li(s,i&&i[d],e,!0,!r),y.style.text=c[d],!r){var m=n.ensureState(d);m.textConfig=lM(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(g.x=l.style.x),l.style.y!=null&&(g.y=l.style.y),l.ignore=!p,l.useStyle(g),l.dirty(),e.enableTextSetter&&(ss(l).setLabelText=function(x){var w=zy(e,t,x);sM(l,w)})}else l&&(l.ignore=!0);n.dirty()}function pu(n,t){t=t||"label";for(var e={normal:n.getModel(t)},i=0;i<Hn.length;i++){var r=Hn[i];e[r]=n.getModel([r,t])}return e}function Li(n,t,e,i,r){var o={};return kz(o,n,e,i,r),t&&st(o,t),o}function lM(n,t,e){t=t||{};var i={},r,o=n.getShallow("rotate"),a=Nt(n.getShallow("distance"),e?null:5),s=n.getShallow("offset");return r=n.getShallow("position")||(e?null:"inside"),r==="outside"&&(r=t.defaultOutsidePosition||"top"),r!=null&&(i.position=r),s!=null&&(i.offset=s),o!=null&&(o*=Math.PI/180,i.rotation=o),a!=null&&(i.distance=a),i.outsideFill=n.get("color")==="inherit"?t.inheritColor||null:"auto",i}function kz(n,t,e,i,r){e=e||kh;var o=t.ecModel,a=o&&o.option.textStyle,s=Mz(t),l;if(s){l={};for(var c in s)if(s.hasOwnProperty(c)){var f=t.getModel(["rich",c]);hM(l[c]={},f,a,e,i,r,!1,!0)}}l&&(n.rich=l);var p=t.get("overflow");p&&(n.overflow=p);var g=t.get("minMargin");g!=null&&(n.margin=g),hM(n,t,a,e,i,r,!0,!1)}function Mz(n){for(var t;n&&n!==n.ecModel;){var e=(n.option||kh).rich;if(e){t=t||{};for(var i=ce(e),r=0;r<i.length;r++){var o=i[r];t[o]=1}}n=n.parentModel}return t}var uM=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],cM=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],fM=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function hM(n,t,e,i,r,o,a,s){e=!r&&e||kh;var l=i&&i.inheritColor,c=t.getShallow("color"),f=t.getShallow("textBorderColor"),p=Nt(t.getShallow("opacity"),e.opacity);(c==="inherit"||c==="auto")&&(l?c=l:c=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),o||(c=c||e.color,f=f||e.textBorderColor),c!=null&&(n.fill=c),f!=null&&(n.stroke=f);var g=Nt(t.getShallow("textBorderWidth"),e.textBorderWidth);g!=null&&(n.lineWidth=g);var d=Nt(t.getShallow("textBorderType"),e.textBorderType);d!=null&&(n.lineDash=d);var y=Nt(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);y!=null&&(n.lineDashOffset=y),!r&&p==null&&!s&&(p=i&&i.defaultOpacity),p!=null&&(n.opacity=p),!r&&!o&&n.fill==null&&i.inheritColor&&(n.fill=i.inheritColor);for(var _=0;_<uM.length;_++){var m=uM[_],x=Nt(t.getShallow(m),e[m]);x!=null&&(n[m]=x)}for(var _=0;_<cM.length;_++){var m=cM[_],x=t.getShallow(m);x!=null&&(n[m]=x)}if(n.verticalAlign==null){var w=t.getShallow("baseline");w!=null&&(n.verticalAlign=w)}if(!a||!i.disableBox){for(var _=0;_<fM.length;_++){var m=fM[_],x=t.getShallow(m);x!=null&&(n[m]=x)}var S=t.getShallow("borderType");S!=null&&(n.borderDash=S),(n.backgroundColor==="auto"||n.backgroundColor==="inherit")&&l&&(n.backgroundColor=l),(n.borderColor==="auto"||n.borderColor==="inherit")&&l&&(n.borderColor=l)}}function pM(n,t){var e=t&&t.getModel("textStyle");return ei([n.fontStyle||e&&e.getShallow("fontStyle")||"",n.fontWeight||e&&e.getShallow("fontWeight")||"",(n.fontSize||e&&e.getShallow("fontSize")||12)+"px",n.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var ss=fe();function Cz(n,t,e,i){if(n){var r=ss(n);r.prevValue=r.value,r.value=e;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}function Tz(n,t,e,i,r){var o=ss(n);if(!o.valueAnimation||o.prevValue===o.value)return;var a=o.defaultInterpolatedText,s=Nt(o.interpolatedValue,o.prevValue),l=o.value;function c(f){var p=HS(e,o.precision,s,l,f);o.interpolatedValue=f===1?null:p;var g=zy({labelDataIndex:t,labelFetcher:r,defaultText:a?a(p):p+""},o.statesModels,p);sM(n,g)}n.percent=0,(o.prevValue==null?Re:Ie)(n,{percent:1},i,t,null,c)}var Iz=["textStyle","color"],By=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Fy=new we,Dz=(function(){function n(){}return n.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Iz):null)},n.prototype.getFont=function(){return pM({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},n.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<By.length;i++)e[By[i]]=this.getShallow(By[i]);return Fy.useStyle(e),Fy.update(),Fy.getBoundingRect()},n})(),dM=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Az=Yl(dM),Pz=(function(){function n(){}return n.prototype.getLineStyle=function(t){return Az(this,t)},n})(),gM=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Lz=Yl(gM),Ez=(function(){function n(){}return n.prototype.getItemStyle=function(t,e){return Lz(this,t,e)},n})(),he=(function(){function n(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return n.prototype.init=function(t,e,i){},n.prototype.mergeOption=function(t,e){zt(this.option,t,!0)},n.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},n.prototype.getShallow=function(t,e){var i=this.option,r=i==null?i:i[t];if(r==null&&!e){var o=this.parentModel;o&&(r=o.getShallow(t))}return r},n.prototype.getModel=function(t,e){var i=t!=null,r=i?this.parsePath(t):null,o=i?this._doGet(r):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new n(o,e,this.ecModel)},n.prototype.isEmpty=function(){return this.option==null},n.prototype.restoreData=function(){},n.prototype.clone=function(){var t=this.constructor;return new t(Et(this.option))},n.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},n.prototype.resolveParentPath=function(t){return t},n.prototype.isAnimationEnabled=function(){if(!Ct.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},n.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var r=0;r<t.length&&!(t[r]&&(i=i&&typeof i=="object"?i[t[r]]:null,i==null));r++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},n})();ey(he),L3(he),Sn(he,Pz),Sn(he,Ez),Sn(he,z3),Sn(he,Dz);var Oz=Math.round(Math.random()*10);function du(n){return[n||"",Oz++].join("_")}function Rz(n){var t={};n.registerSubTypeDefaulter=function(e,i){var r=Ti(e);t[r.main]=i},n.determineSubType=function(e,i){var r=i.type;if(!r){var o=Ti(e).main;n.hasSubTypes(e)&&t[o]&&(r=t[o](i))}return r}}function Nz(n,t){n.topologicalTravel=function(o,a,s,l){if(!o.length)return;var c=e(a),f=c.graph,p=c.noEntryList,g={};for(E(o,function(w){g[w]=!0});p.length;){var d=p.pop(),y=f[d],_=!!g[d];_&&(s.call(l,d,y.originalDeps.slice()),delete g[d]),E(y.successor,_?x:m)}E(g,function(){var w="";throw new Error(w)});function m(w){f[w].entryCount--,f[w].entryCount===0&&p.push(w)}function x(w){g[w]=!0,m(w)}};function e(o){var a={},s=[];return E(o,function(l){var c=i(a,l),f=c.originalDeps=t(l),p=r(f,o);c.entryCount=p.length,c.entryCount===0&&s.push(l),E(p,function(g){Vt(c.predecessor,g)<0&&c.predecessor.push(g);var d=i(a,g);Vt(d.successor,g)<0&&d.successor.push(l)})}),{graph:a,noEntryList:s}}function i(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function r(o,a){var s=[];return E(o,function(l){Vt(a,l)>=0&&s.push(l)}),s}}function Mh(n,t){return zt(zt({},n,!0),t,!0)}const zz={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:". "}}}},Bz={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Ch="ZH",Vy="EN",ls=Vy,Th={},Hy={},vM=Ct.domSupported?(function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ls).toUpperCase();return n.indexOf(Ch)>-1?Ch:ls})():ls;function Wy(n,t){n=n.toUpperCase(),Hy[n]=new he(t),Th[n]=t}function Fz(n){if(gt(n)){var t=Th[n.toUpperCase()]||{};return n===Ch||n===Vy?Et(t):zt(Et(t),Et(Th[ls]),!1)}else return zt(Et(n),Et(Th[ls]),!1)}function Vz(n){return Hy[n]}function Hz(){return Hy[ls]}Wy(Vy,zz),Wy(Ch,Bz);var Uy=1e3,Gy=Uy*60,gu=Gy*60,Un=gu*24,yM=Un*365,vu={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}"},Ih="{yyyy}-{MM}-{dd}",mM={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ih,hour:Ih+" "+vu.hour,minute:Ih+" "+vu.minute,second:Ih+" "+vu.second,millisecond:vu.none},jy=["year","month","day","hour","minute","second","millisecond"],_M=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function an(n,t){return n+="","0000".substr(0,t-n.length)+n}function us(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function Wz(n){return n===us(n)}function Uz(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function yu(n,t,e,i){var r=zn(n),o=r[Zy(e)](),a=r[cs(e)]()+1,s=Math.floor((a-1)/3)+1,l=r[Dh(e)](),c=r["get"+(e?"UTC":"")+"Day"](),f=r[mu(e)](),p=(f-1)%12+1,g=r[Ah(e)](),d=r[Ph(e)](),y=r[Lh(e)](),_=f>=12?"pm":"am",m=_.toUpperCase(),x=i instanceof he?i:Vz(i||vM)||Hz(),w=x.getModel("time"),S=w.get("month"),C=w.get("monthAbbr"),M=w.get("dayOfWeek"),T=w.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,_+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,an(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[a-1]).replace(/{MMM}/g,C[a-1]).replace(/{MM}/g,an(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,an(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,M[c]).replace(/{ee}/g,T[c]).replace(/{e}/g,c+"").replace(/{HH}/g,an(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,an(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,an(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,an(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,an(y,3)).replace(/{S}/g,y+"")}function Gz(n,t,e,i,r){var o=null;if(gt(e))o=e;else if(St(e))o=e(n.value,t,{level:n.level});else{var a=st({},vu);if(n.level>0)for(var s=0;s<jy.length;++s)a[jy[s]]="{primary|"+a[jy[s]]+"}";var l=e?e.inherit===!1?e:Wt(e,a):a,c=xM(n.value,r);if(l[c])o=l[c];else if(l.inherit){for(var f=_M.indexOf(c),s=f-1;s>=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(ct(o)){var p=n.level==null?0:n.level>=0?n.level:o.length+n.level;p=Math.min(p,o.length-1),o=o[p]}}return yu(new Date(n.value),o,r,i)}function xM(n,t){var e=zn(n),i=e[cs(t)]()+1,r=e[Dh(t)](),o=e[mu(t)](),a=e[Ah(t)](),s=e[Ph(t)](),l=e[Lh(t)](),c=l===0,f=c&&s===0,p=f&&a===0,g=p&&o===0,d=g&&r===1,y=d&&i===1;return y?"year":d?"month":g?"day":p?"hour":f?"minute":c?"second":"millisecond"}function bM(n,t,e){var i=oe(n)?zn(n):n;switch(t=t||xM(n,e),t){case"year":return i[Zy(e)]();case"half-year":return i[cs(e)]()>=6?1:0;case"quarter":return Math.floor((i[cs(e)]()+1)/4);case"month":return i[cs(e)]();case"day":return i[Dh(e)]();case"half-day":return i[mu(e)]()/24;case"hour":return i[mu(e)]();case"minute":return i[Ah(e)]();case"second":return i[Ph(e)]();case"millisecond":return i[Lh(e)]()}}function Zy(n){return n?"getUTCFullYear":"getFullYear"}function cs(n){return n?"getUTCMonth":"getMonth"}function Dh(n){return n?"getUTCDate":"getDate"}function mu(n){return n?"getUTCHours":"getHours"}function Ah(n){return n?"getUTCMinutes":"getMinutes"}function Ph(n){return n?"getUTCSeconds":"getSeconds"}function Lh(n){return n?"getUTCMilliseconds":"getMilliseconds"}function jz(n){return n?"setUTCFullYear":"setFullYear"}function wM(n){return n?"setUTCMonth":"setMonth"}function SM(n){return n?"setUTCDate":"setDate"}function kM(n){return n?"setUTCHours":"setHours"}function MM(n){return n?"setUTCMinutes":"setMinutes"}function CM(n){return n?"setUTCSeconds":"setSeconds"}function TM(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Zz(n,t,e,i,r,o,a,s){var l=new we({style:{text:n,font:t,align:e,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Yy(n){if(!PS(n))return gt(n)?n:"-";var t=(n+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Xy(n,t){return n=(n||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var _u=tv;function $y(n,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(f){return f&&ei(f)?f:"-"}function o(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var a=t==="time",s=n instanceof Date;if(a||s){var l=a?zn(n):n;if(isNaN(+l)){if(s)return"-"}else return yu(l,i,e)}if(t==="ordinal")return vf(n)?r(n):oe(n)&&o(n)?n+"":"-";var c=Hl(n);return o(c)?Yy(c):vf(n)?r(n):typeof n=="boolean"?n+"":"-"}var IM=["a","b","c","d","e","f","g"],qy=function(n,t){return"{"+n+(t??"")+"}"};function Qy(n,t,e){ct(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o<r.length;o++){var a=IM[o];n=n.replace(qy(a),qy(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var c=t[s][r[l]];n=n.replace(qy(IM[l],s),e?en(c):c)}return n}function DM(n,t){var e=gt(n)?{color:n,extraCssText:t}:n||{},i=e.color,r=e.type;t=e.extraCssText;var o=e.renderMode||"html";if(!i)return"";if(o==="html")return r==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+en(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+en(i)+";"+(t||"")+'"></span>';var a=e.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:r==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Yz(n,t,e){(n==="week"||n==="month"||n==="quarter"||n==="half-year"||n==="year")&&(n=`MM-dd
|
|
120
|
+
yyyy`);var i=zn(t),r=e?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),c=i[r+"Minutes"](),f=i[r+"Seconds"](),p=i[r+"Milliseconds"]();return n=n.replace("MM",an(a,2)).replace("M",a).replace("yyyy",o).replace("yy",an(o%100+"",2)).replace("dd",an(s,2)).replace("d",s).replace("hh",an(l,2)).replace("h",l).replace("mm",an(c,2)).replace("m",c).replace("ss",an(f,2)).replace("s",f).replace("SSS",an(p,3)),n}function Xz(n){return n&&n.charAt(0).toUpperCase()+n.substr(1)}function Ho(n,t){return t=t||"transparent",gt(n)?n:_t(n)&&n.colorStops&&(n.colorStops[0]||{}).color||t}function AM(n,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=n}else window.open(n,t)}var Eh=E,$z=["left","right","top","bottom","width","height"],Oh=[["width","left","right"],["height","top","bottom"]];function Ky(n,t,e,i,r){var o=0,a=0;i==null&&(i=1/0),r==null&&(r=1/0);var s=0;t.eachChild(function(l,c){var f=l.getBoundingRect(),p=t.childAt(c+1),g=p&&p.getBoundingRect(),d,y;if(n==="horizontal"){var _=f.width+(g?-g.x+f.x:0);d=o+_,d>i||l.newline?(o=0,d=_,a+=s+e,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(g?-g.y+f.y:0);y=a+m,y>r||l.newline?(o+=s+e,a=0,y=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),n==="horizontal"?o=d+e:a=y+e)})}var fs=Ky;Gt(Ky,"vertical"),Gt(Ky,"horizontal");function Ei(n,t,e){e=_u(e||0);var i=t.width,r=t.height,o=Qt(n.left,i),a=Qt(n.top,r),s=Qt(n.right,i),l=Qt(n.bottom,r),c=Qt(n.width,i),f=Qt(n.height,r),p=e[2]+e[0],g=e[1]+e[3],d=n.aspect;switch(isNaN(c)&&(c=i-s-g-o),isNaN(f)&&(f=r-l-p-a),d!=null&&(isNaN(c)&&isNaN(f)&&(d>i/r?c=i*.8:f=r*.8),isNaN(c)&&(c=d*f),isNaN(f)&&(f=c/d)),isNaN(o)&&(o=i-s-c-g),isNaN(a)&&(a=r-l-f-p),n.left||n.right){case"center":o=i/2-c/2-e[3];break;case"right":o=i-c-g;break}switch(n.top||n.bottom){case"middle":case"center":a=r/2-f/2-e[0];break;case"bottom":a=r-f-p;break}o=o||0,a=a||0,isNaN(c)&&(c=i-g-o-(s||0)),isNaN(f)&&(f=r-p-a-(l||0));var y=new jt(o+e[3],a+e[0],c,f);return y.margin=e,y}function qz(n,t,e,i,r,o){o=o||n,o.x=n.x,o.y=n.y;var a;if(a=n.getBoundingRect(),n.needLocalTransform()){var s=n.getLocalTransform();a=a.clone(),a.applyTransform(s)}var l=Ei(Wt({width:a.width,height:a.height},t),e,i),c=l.x-a.x,f=l.y-a.y;return o.x+=c,o.y+=f,o===n&&n.markRedraw(),!0}function xu(n){var t=n.layoutMode||n.constructor.layoutMode;return _t(t)?t:t?{type:t}:null}function hs(n,t,e){var i=e&&e.ignoreSize;!ct(i)&&(i=[i,i]);var r=a(Oh[0],0),o=a(Oh[1],1);c(Oh[0],n,r),c(Oh[1],n,o);function a(f,p){var g={},d=0,y={},_=0,m=2;if(Eh(f,function(S){y[S]=n[S]}),Eh(f,function(S){s(t,S)&&(g[S]=y[S]=t[S]),l(g,S)&&d++,l(y,S)&&_++}),i[p])return l(t,f[1])?y[f[2]]=null:l(t,f[2])&&(y[f[1]]=null),y;if(_===m||!d)return y;if(d>=m)return g;for(var x=0;x<f.length;x++){var w=f[x];if(!s(g,w)&&s(n,w)){g[w]=n[w];break}}return g}function s(f,p){return f.hasOwnProperty(p)}function l(f,p){return f[p]!=null&&f[p]!=="auto"}function c(f,p,g){Eh(f,function(d){p[d]=g[d]})}}function bu(n){return Qz({},n)}function Qz(n,t){return t&&n&&Eh($z,function(e){t.hasOwnProperty(e)&&(n[e]=t[e])}),n}var Kz=fe(),Yt=(function(n){ft(t,n);function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.uid=du("ec_cpt_model"),o}return t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r)},t.prototype.mergeDefaultAndTheme=function(e,i){var r=xu(this),o=r?bu(e):{},a=i.getTheme();zt(e,a.get(this.mainType)),zt(e,this.getDefaultOption()),r&&hs(e,o,r)},t.prototype.mergeOption=function(e,i){zt(this.option,e,!0);var r=xu(this);r&&hs(this.option,e,r)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!D3(e))return e.defaultOption;var i=Kz(this);if(!i.defaultOption){for(var r=[],o=e;o;){var a=o.prototype.defaultOption;a&&r.push(a),o=o.superClass}for(var s={},l=r.length-1;l>=0;l--)s=zt(s,r[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var r=e+"Index",o=e+"Id";return Zl(this.ecModel,e,{index:this.get(r,!0),id:this.get(o,!0)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(he);US(Yt,he),$f(Yt),Rz(Yt),Nz(Yt,Jz);function Jz(n){var t=[];return E(Yt.getClassesByMainType(n),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=pt(t,function(e){return Ti(e).main}),n!=="dataset"&&Vt(t,"dataset")<=0&&t.unshift("dataset"),t}var PM="";typeof navigator<"u"&&(PM=navigator.platform||"");var ps="rgba(0, 0, 0, 0.2)";const t4={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ps,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ps,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ps,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ps,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ps,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ps,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:PM.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 LM=Mt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Gn="original",yn="arrayRows",oi="objectRows",Oi="keyedColumns",Hr="typedArray",EM="unknown",Ri="column",ds="row",Ne={Must:1,Might:2,Not:3},OM=fe();function e4(n){OM(n).datasetMap=Mt()}function RM(n,t,e){var i={},r=Jy(t);if(!r||!n)return i;var o=[],a=[],s=t.ecModel,l=OM(s).datasetMap,c=r.uid+"_"+e.seriesLayoutBy,f,p;n=n.slice(),E(n,function(_,m){var x=_t(_)?_:n[m]={name:_};x.type==="ordinal"&&f==null&&(f=m,p=y(x)),i[x.name]=[]});var g=l.get(c)||l.set(c,{categoryWayDim:p,valueWayDim:0});E(n,function(_,m){var x=_.name,w=y(_);if(f==null){var S=g.valueWayDim;d(i[x],S,w),d(a,S,w),g.valueWayDim+=w}else if(f===m)d(i[x],0,w),d(o,0,w);else{var S=g.categoryWayDim;d(i[x],S,w),d(a,S,w),g.categoryWayDim+=w}});function d(_,m,x){for(var w=0;w<x;w++)_.push(m+w)}function y(_){var m=_.dimsDef;return m?m.length:1}return o.length&&(i.itemName=o),a.length&&(i.seriesName=a),i}function n4(n,t,e){var i={},r=Jy(n);if(!r)return i;var o=t.sourceFormat,a=t.dimensionsDefine,s;(o===oi||o===Oi)&&E(a,function(f,p){(_t(f)?f.name:f)==="name"&&(s=p)});var l=(function(){for(var f={},p={},g=[],d=0,y=Math.min(5,e);d<y;d++){var _=zM(t.data,o,t.seriesLayoutBy,a,t.startIndex,d);g.push(_);var m=_===Ne.Not;if(m&&f.v==null&&d!==s&&(f.v=d),(f.n==null||f.n===f.v||!m&&g[f.n]===Ne.Not)&&(f.n=d),x(f)&&g[f.n]!==Ne.Not)return f;m||(_===Ne.Might&&p.v==null&&d!==s&&(p.v=d),(p.n==null||p.n===p.v)&&(p.n=d))}function x(w){return w.v!=null&&w.n!=null}return x(f)?f:x(p)?p:null})();if(l){i.value=[l.v];var c=s??l.n;i.itemName=[c],i.seriesName=[c]}return i}function Jy(n){var t=n.get("data",!0);if(!t)return Zl(n.ecModel,"dataset",{index:n.get("datasetIndex",!0),id:n.get("datasetId",!0)},rn).models[0]}function i4(n){return!n.get("transform",!0)&&!n.get("fromTransformResult",!0)?[]:Zl(n.ecModel,"dataset",{index:n.get("fromDatasetIndex",!0),id:n.get("fromDatasetId",!0)},rn).models}function NM(n,t){return zM(n.data,n.sourceFormat,n.seriesLayoutBy,n.dimensionsDefine,n.startIndex,t)}function zM(n,t,e,i,r,o){var a,s=5;if(Je(n))return Ne.Not;var l,c;if(i){var f=i[o];_t(f)?(l=f.name,c=f.type):gt(f)&&(l=f)}if(c!=null)return c==="ordinal"?Ne.Must:Ne.Not;if(t===yn){var p=n;if(e===ds){for(var g=p[o],d=0;d<(g||[]).length&&d<s;d++)if((a=C(g[r+d]))!=null)return a}else for(var d=0;d<p.length&&d<s;d++){var y=p[r+d];if(y&&(a=C(y[o]))!=null)return a}}else if(t===oi){var _=n;if(!l)return Ne.Not;for(var d=0;d<_.length&&d<s;d++){var m=_[d];if(m&&(a=C(m[l]))!=null)return a}}else if(t===Oi){var x=n;if(!l)return Ne.Not;var g=x[l];if(!g||Je(g))return Ne.Not;for(var d=0;d<g.length&&d<s;d++)if((a=C(g[d]))!=null)return a}else if(t===Gn)for(var w=n,d=0;d<w.length&&d<s;d++){var m=w[d],S=Wl(m);if(!ct(S))return Ne.Not;if((a=C(S[o]))!=null)return a}function C(M){var T=gt(M);if(M!=null&&Number.isFinite(Number(M))&&M!=="")return T?Ne.Might:Ne.Not;if(T&&M!=="-")return Ne.Must}return Ne.Not}var tm=Mt();function r4(n,t){ti(tm.get(n)==null&&t),tm.set(n,t)}function o4(n,t,e){var i=tm.get(t);if(!i)return e;var r=i(n);return r?e.concat(r):e}var BM=fe();fe();var em=(function(){function n(){}return n.prototype.getColorFromPalette=function(t,e,i){var r=nn(this.get("color",!0)),o=this.get("colorLayer",!0);return s4(this,BM,r,o,t,e,i)},n.prototype.clearColorPalette=function(){l4(this,BM)},n})();function a4(n,t){for(var e=n.length,i=0;i<e;i++)if(n[i].length>t)return n[i];return n[e-1]}function s4(n,t,e,i,r,o,a){o=o||n;var s=t(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(r))return c[r];var f=a==null||!i?e:a4(i,a);if(f=f||e,!(!f||!f.length)){var p=f[l];return r&&(c[r]=p),s.paletteIdx=(l+1)%f.length,p}}function l4(n,t){t(n).paletteIdx=0,t(n).paletteNameMap={}}var Rh,wu,FM,VM="\0_ec_inner",u4=1,nm=(function(n){ft(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(e,i,r,o,a,s){o=o||{},this.option=null,this._theme=new he(o),this._locale=new he(a),this._optionManager=s},t.prototype.setOption=function(e,i,r){var o=UM(i);this._optionManager.setOption(e,r,o),this._resetOption(null,o)},t.prototype.resetOption=function(e,i){return this._resetOption(e,UM(i))},t.prototype._resetOption=function(e,i){var r=!1,o=this._optionManager;if(!e||e==="recreate"){var a=o.mountOption(e==="recreate");!this.option||e==="recreate"?FM(this,a):(this.restoreData(),this._mergeOption(a,i)),r=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=o.getTimelineOption(this);s&&(r=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=o.getMediaOption(this);l.length&&E(l,function(c){r=!0,this._mergeOption(c,i)},this)}return r},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var r=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=Mt(),c=i&&i.replaceMergeMainTypeMap;e4(this),E(e,function(p,g){p!=null&&(Yt.hasClass(g)?g&&(s.push(g),l.set(g,!0)):r[g]=r[g]==null?Et(p):zt(r[g],p,!0))}),c&&c.each(function(p,g){Yt.hasClass(g)&&!l.get(g)&&(s.push(g),l.set(g,!0))}),Yt.topologicalTravel(s,Yt.getAllClassMainTypes(),f,this);function f(p){var g=o4(this,p,nn(e[p])),d=o.get(p),y=d?c&&c.get(p)?"replaceMerge":"normalMerge":"replaceAll",_=p3(d,g,y);b3(_,p,Yt),r[p]=null,o.set(p,null),a.set(p,0);var m=[],x=[],w=0,S;E(_,function(C,M){var T=C.existing,D=C.newOption;if(!D)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var P=p==="series",L=Yt.getClass(p,C.keyInfo.subType,!P);if(!L)return;if(p==="tooltip"){if(S)return;S=!0}if(T&&T.constructor===L)T.name=C.keyInfo.name,T.mergeOption(D,this),T.optionUpdated(D,!1);else{var O=st({componentIndex:M},C.keyInfo);T=new L(D,this,this,O),st(T,O),C.brandNew&&(T.__requireNewView=!0),T.init(D,this,this),T.optionUpdated(null,!0)}}T?(m.push(T.option),x.push(T),w++):(m.push(void 0),x.push(void 0))},this),r[p]=m,o.set(p,x),a.set(p,w),p==="series"&&Rh(this)}this._seriesIndices||Rh(this)},t.prototype.getOption=function(){var e=Et(this.option);return E(e,function(i,r){if(Yt.hasClass(r)){for(var o=nn(i),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!Gl(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,e[r]=o}}),delete e[VM],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var r=this._componentsMap.get(e);if(r){var o=r[i||0];if(o)return o;if(i==null){for(var a=0;a<r.length;a++)if(r[a])return r[a]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var r=e.index,o=e.id,a=e.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return r!=null?(l=[],E(nn(r),function(c){s[c]&&l.push(s[c])})):o!=null?l=HM("id",o,s):a!=null?l=HM("name",a,s):l=ve(s,function(c){return!!c}),WM(l,e)},t.prototype.findComponents=function(e){var i=e.query,r=e.mainType,o=s(i),a=o?this.queryComponents(o):ve(this._componentsMap.get(r),function(c){return!!c});return l(WM(a,e));function s(c){var f=r+"Index",p=r+"Id",g=r+"Name";return c&&(c[f]!=null||c[p]!=null||c[g]!=null)?{mainType:r,index:c[f],id:c[p],name:c[g]}:null}function l(c){return e.filter?ve(c,e.filter):c}},t.prototype.eachComponent=function(e,i,r){var o=this._componentsMap;if(St(e)){var a=i,s=e;o.each(function(p,g){for(var d=0;p&&d<p.length;d++){var y=p[d];y&&s.call(a,g,y,y.componentIndex)}})}else for(var l=gt(e)?o.get(e):_t(e)?this.findComponents(e):null,c=0;l&&c<l.length;c++){var f=l[c];f&&i.call(r,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=Ci(e,null);return ve(this._componentsMap.get("series"),function(r){return!!r&&i!=null&&r.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return ve(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return ve(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){wu(this),E(this._seriesIndices,function(r){var o=this._componentsMap.get("series")[r];e.call(i,o,r)},this)},t.prototype.eachRawSeries=function(e,i){E(this._componentsMap.get("series"),function(r){r&&e.call(i,r,r.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,r){wu(this),E(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===e&&i.call(r,a,o)},this)},t.prototype.eachRawSeriesByType=function(e,i,r){return E(this.getSeriesByType(e),i,r)},t.prototype.isSeriesFiltered=function(e){return wu(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){wu(this);var r=[];E(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];e.call(i,a,o)&&r.push(o)},this),this._seriesIndices=r,this._seriesIndicesMap=Mt(r)},t.prototype.restoreData=function(e){Rh(this);var i=this._componentsMap,r=[];i.each(function(o,a){Yt.hasClass(a)&&r.push(a)}),Yt.topologicalTravel(r,Yt.getAllClassMainTypes(),function(o){E(i.get(o),function(a){a&&(o!=="series"||!c4(a,e))&&a.restoreData()})})},t.internalField=(function(){Rh=function(e){var i=e._seriesIndices=[];E(e._componentsMap.get("series"),function(r){r&&i.push(r.componentIndex)}),e._seriesIndicesMap=Mt(i)},wu=function(e){},FM=function(e,i){e.option={},e.option[VM]=u4,e._componentsMap=Mt({series:[]}),e._componentsCount=Mt();var r=i.aria;_t(r)&&r.enabled==null&&(r.enabled=!0),f4(i,e._theme.option),zt(i,t4,!1),e._mergeOption(i,null)}})(),t})(he);function c4(n,t){if(t){var e=t.seriesIndex,i=t.seriesId,r=t.seriesName;return e!=null&&n.componentIndex!==e||i!=null&&n.id!==i||r!=null&&n.name!==r}}function f4(n,t){var e=n.color&&!n.colorLayer;E(t,function(i,r){r==="colorLayer"&&e||Yt.hasClass(r)||(typeof i=="object"?n[r]=n[r]?zt(n[r],i,!1):Et(i):n[r]==null&&(n[r]=i))})}function HM(n,t,e){if(ct(t)){var i=Mt();return E(t,function(o){if(o!=null){var a=Ci(o,null);a!=null&&i.set(o,!0)}}),ve(e,function(o){return o&&i.get(o[n])})}else{var r=Ci(t,null);return ve(e,function(o){return o&&r!=null&&o[n]===r})}}function WM(n,t){return t.hasOwnProperty("subType")?ve(n,function(e){return e&&e.subType===t.subType}):n}function UM(n){var t=Mt();return n&&E(nn(n.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Sn(nm,em);var h4=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],GM=(function(){function n(t){E(h4,function(e){this[e]=wt(t[e],t)},this)}return n})(),im={},Nh=(function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(t,e){var i=[];E(im,function(r,o){var a=r.create(t,e);i=i.concat(a||[])}),this._coordinateSystems=i},n.prototype.update=function(t,e){E(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(t,e){im[t]=e},n.get=function(t){return im[t]},n})(),p4=/^(min|max)?(.+)$/,d4=(function(){function n(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return n.prototype.setOption=function(t,e,i){t&&(E(nn(t.series),function(a){a&&a.data&&Je(a.data)&&kl(a.data)}),E(nn(t.dataset),function(a){a&&a.source&&Je(a.source)&&kl(a.source)})),t=Et(t);var r=this._optionBackup,o=g4(t,e,!r);this._newBaseOption=o.baseOption,r?(o.timelineOptions.length&&(r.timelineOptions=o.timelineOptions),o.mediaList.length&&(r.mediaList=o.mediaList),o.mediaDefault&&(r.mediaDefault=o.mediaDefault)):this._optionBackup=o},n.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Et(t?e.baseOption:this._newBaseOption)},n.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var r=t.getComponent("timeline");r&&(e=Et(i[r.getCurrentIndex()]))}return e},n.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),r=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!r.length&&!o)return s;for(var l=0,c=r.length;l<c;l++)v4(r[l].query,e,i)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!m4(a,this._currentMediaIndices)&&(s=pt(a,function(f){return Et(f===-1?o.option:r[f].option)})),this._currentMediaIndices=a,s},n})();function g4(n,t,e){var i=[],r,o,a=n.baseOption,s=n.timeline,l=n.options,c=n.media,f=!!n.media,p=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((p||f)&&(n.options=n.media=null),o=n),f&&ct(c)&&E(c,function(d){d&&d.option&&(d.query?i.push(d):r||(r=d))}),g(o),E(l,function(d){return g(d)}),E(i,function(d){return g(d.option)});function g(d){E(t,function(y){y(d,e)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:r,mediaList:i}}function v4(n,t,e){var i={width:t,height:e,aspectratio:t/e},r=!0;return E(n,function(o,a){var s=a.match(p4);if(!(!s||!s[1]||!s[2])){var l=s[1],c=s[2].toLowerCase();y4(i[c],o,l)||(r=!1)}}),r}function y4(n,t,e){return e==="min"?n>=t:e==="max"?n<=t:n===t}function m4(n,t){return n.join(",")===t.join(",")}var ai=E,Su=_t,jM=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function rm(n){var t=n&&n.itemStyle;if(t)for(var e=0,i=jM.length;e<i;e++){var r=jM[e],o=t.normal,a=t.emphasis;o&&o[r]&&(n[r]=n[r]||{},n[r].normal?zt(n[r].normal,o[r]):n[r].normal=o[r],o[r]=null),a&&a[r]&&(n[r]=n[r]||{},n[r].emphasis?zt(n[r].emphasis,a[r]):n[r].emphasis=a[r],a[r]=null)}}function Ze(n,t,e){if(n&&n[t]&&(n[t].normal||n[t].emphasis)){var i=n[t].normal,r=n[t].emphasis;i&&(e?(n[t].normal=n[t].emphasis=null,Wt(n[t],i)):n[t]=i),r&&(n.emphasis=n.emphasis||{},n.emphasis[t]=r,r.focus&&(n.emphasis.focus=r.focus),r.blurScope&&(n.emphasis.blurScope=r.blurScope))}}function ku(n){Ze(n,"itemStyle"),Ze(n,"lineStyle"),Ze(n,"areaStyle"),Ze(n,"label"),Ze(n,"labelLine"),Ze(n,"upperLabel"),Ze(n,"edgeLabel")}function Te(n,t){var e=Su(n)&&n[t],i=Su(e)&&e.textStyle;if(i)for(var r=0,o=BS.length;r<o;r++){var a=BS[r];i.hasOwnProperty(a)&&(e[a]=i[a])}}function jn(n){n&&(ku(n),Te(n,"label"),n.emphasis&&Te(n.emphasis,"label"))}function _4(n){if(Su(n)){rm(n),ku(n),Te(n,"label"),Te(n,"upperLabel"),Te(n,"edgeLabel"),n.emphasis&&(Te(n.emphasis,"label"),Te(n.emphasis,"upperLabel"),Te(n.emphasis,"edgeLabel"));var t=n.markPoint;t&&(rm(t),jn(t));var e=n.markLine;e&&(rm(e),jn(e));var i=n.markArea;i&&jn(i);var r=n.data;if(n.type==="graph"){r=r||n.nodes;var o=n.links||n.edges;if(o&&!Je(o))for(var a=0;a<o.length;a++)jn(o[a]);E(n.categories,function(c){ku(c)})}if(r&&!Je(r))for(var a=0;a<r.length;a++)jn(r[a]);if(t=n.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)jn(s[a]);if(e=n.markLine,e&&e.data)for(var l=e.data,a=0;a<l.length;a++)ct(l[a])?(jn(l[a][0]),jn(l[a][1])):jn(l[a]);n.type==="gauge"?(Te(n,"axisLabel"),Te(n,"title"),Te(n,"detail")):n.type==="treemap"?(Ze(n.breadcrumb,"itemStyle"),E(n.levels,function(c){ku(c)})):n.type==="tree"&&ku(n.leaves)}}function nr(n){return ct(n)?n:n?[n]:[]}function ZM(n){return(ct(n)?n[0]:n)||{}}function x4(n,t){ai(nr(n.series),function(i){Su(i)&&_4(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ai(e,function(i){ai(nr(n[i]),function(r){r&&(Te(r,"axisLabel"),Te(r.axisPointer,"label"))})}),ai(nr(n.parallel),function(i){var r=i&&i.parallelAxisDefault;Te(r,"axisLabel"),Te(r&&r.axisPointer,"label")}),ai(nr(n.calendar),function(i){Ze(i,"itemStyle"),Te(i,"dayLabel"),Te(i,"monthLabel"),Te(i,"yearLabel")}),ai(nr(n.radar),function(i){Te(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),ai(nr(n.geo),function(i){Su(i)&&(jn(i),ai(nr(i.regions),function(r){jn(r)}))}),ai(nr(n.timeline),function(i){jn(i),Ze(i,"label"),Ze(i,"itemStyle"),Ze(i,"controlStyle",!0);var r=i.data;ct(r)&&E(r,function(o){_t(o)&&(Ze(o,"label"),Ze(o,"itemStyle"))})}),ai(nr(n.toolbox),function(i){Ze(i,"iconStyle"),ai(i.feature,function(r){Ze(r,"iconStyle")})}),Te(ZM(n.axisPointer),"label"),Te(ZM(n.tooltip).axisPointer,"label")}function b4(n,t){for(var e=t.split(","),i=n,r=0;r<e.length&&(i=i&&i[e[r]],i!=null);r++);return i}function w4(n,t,e,i){for(var r=t.split(","),o=n,a,s=0;s<r.length-1;s++)a=r[s],o[a]==null&&(o[a]={}),o=o[a];o[r[s]]==null&&(o[r[s]]=e)}function YM(n){n&&E(S4,function(t){t[0]in n&&!(t[1]in n)&&(n[t[1]]=n[t[0]])})}var S4=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],k4=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],om=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Mu(n){var t=n&&n.itemStyle;if(t)for(var e=0;e<om.length;e++){var i=om[e][1],r=om[e][0];t[i]!=null&&(t[r]=t[i])}}function XM(n){n&&n.alignTo==="edge"&&n.margin!=null&&n.edgeDistance==null&&(n.edgeDistance=n.margin)}function $M(n){n&&n.downplay&&!n.blur&&(n.blur=n.downplay)}function M4(n){n&&n.focusNodeAdjacency!=null&&(n.emphasis=n.emphasis||{},n.emphasis.focus==null&&(n.emphasis.focus="adjacency"))}function qM(n,t){if(n)for(var e=0;e<n.length;e++)t(n[e]),n[e]&&qM(n[e].children,t)}function QM(n,t){x4(n,t),n.series=nn(n.series),E(n.series,function(e){if(_t(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),XM(e.label);var r=e.data;if(r&&!Je(r))for(var o=0;o<r.length;o++)XM(r[o]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var a=b4(e,"pointer.color");a!=null&&w4(e,"itemStyle.color",a)}else if(i==="bar"){Mu(e),Mu(e.backgroundStyle),Mu(e.emphasis);var r=e.data;if(r&&!Je(r))for(var o=0;o<r.length;o++)typeof r[o]=="object"&&(Mu(r[o]),Mu(r[o]&&r[o].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),$M(e),qM(e.data,$M)}else i==="graph"||i==="sankey"?M4(e):i==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Wt(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),YM(e)}}),n.dataRange&&(n.visualMap=n.dataRange),E(k4,function(e){var i=n[e];i&&(ct(i)||(i=[i]),E(i,function(r){YM(r)}))})}function C4(n){var t=Mt();n.eachSeries(function(e){var i=e.get("stack");if(i){var r=t.get(i)||t.set(i,[]),o=e.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:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.length&&o.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}}),t.each(T4)}function T4(n){E(n,function(t,e){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(c,f,p){var g=a.get(t.stackedDimension,p);if(isNaN(g))return r;var d,y;s?y=a.getRawIndex(p):d=a.get(t.stackedByDimension,p);for(var _=NaN,m=e-1;m>=0;m--){var x=n[m];if(s||(y=x.data.rawIndexOf(x.stackedByDimension,d)),y>=0){var w=x.data.getByRawIndex(x.stackResultDimension,y);if(l==="all"||l==="positive"&&w>0||l==="negative"&&w<0||l==="samesign"&&g>=0&&w>0||l==="samesign"&&g<=0&&w<0){g=s3(g,w),_=w;break}}}return i[0]=g,i[1]=_,i})})}var zh=(function(){function n(t){this.data=t.data||(t.sourceFormat===Oi?{}:[]),this.sourceFormat=t.sourceFormat||EM,this.seriesLayoutBy=t.seriesLayoutBy||Ri,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var r=e[i];r.type==null&&NM(this,i)===Ne.Must&&(r.type="ordinal")}}return n})();function am(n){return n instanceof zh}function sm(n,t,e){e=e||JM(n);var i=t.seriesLayoutBy,r=D4(n,e,i,t.sourceHeader,t.dimensions),o=new zh({data:n,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:Et(t)});return o}function KM(n){return new zh({data:n,sourceFormat:Je(n)?Hr:Gn})}function I4(n){return new zh({data:n.data,sourceFormat:n.sourceFormat,seriesLayoutBy:n.seriesLayoutBy,dimensionsDefine:Et(n.dimensionsDefine),startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount})}function JM(n){var t=EM;if(Je(n))t=Hr;else if(ct(n)){n.length===0&&(t=yn);for(var e=0,i=n.length;e<i;e++){var r=n[e];if(r!=null){if(ct(r)||Je(r)){t=yn;break}else if(_t(r)){t=oi;break}}}}else if(_t(n)){for(var o in n)if(Cr(n,o)&&Ke(n[o])){t=Oi;break}}return t}function D4(n,t,e,i,r){var o,a;if(!n)return{dimensionsDefine:tC(r),startIndex:a,dimensionsDetectedCount:o};if(t===yn){var s=n;i==="auto"||i==null?eC(function(c){c!=null&&c!=="-"&&(gt(c)?a==null&&(a=1):a=0)},e,s,10):a=oe(i)?i:i?1:0,!r&&a===1&&(r=[],eC(function(c,f){r[f]=c!=null?c+"":""},e,s,1/0)),o=r?r.length:e===ds?s.length:s[0]?s[0].length:null}else if(t===oi)r||(r=A4(n));else if(t===Oi)r||(r=[],E(n,function(c,f){r.push(f)}));else if(t===Gn){var l=Wl(n[0]);o=ct(l)&&l.length||1}return{startIndex:a,dimensionsDefine:tC(r),dimensionsDetectedCount:o}}function A4(n){for(var t=0,e;t<n.length&&!(e=n[t++]););if(e)return ce(e)}function tC(n){if(n){var t=Mt();return pt(n,function(e,i){e=_t(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+="",r.displayName==null&&(r.displayName=r.name);var o=t.get(r.name);return o?r.name+="-"+o.count++:t.set(r.name,{count:1}),r})}}function eC(n,t,e,i){if(t===ds)for(var r=0;r<e.length&&r<i;r++)n(e[r]?e[r][0]:null,r);else for(var o=e[0]||[],r=0;r<o.length&&r<i;r++)n(o[r],r)}function nC(n){var t=n.sourceFormat;return t===oi||t===Oi}var Wo,Uo,Go,iC,rC,oC=(function(){function n(t,e){var i=am(t)?t:KM(t);this._source=i;var r=this._data=i.data;i.sourceFormat===Hr&&(this._offset=0,this._dimSize=e,this._data=r),rC(this,r,i)}return n.prototype.getSource=function(){return this._source},n.prototype.count=function(){return 0},n.prototype.getItem=function(t,e){},n.prototype.appendData=function(t){},n.prototype.clean=function(){},n.protoInitialize=(function(){var t=n.prototype;t.pure=!1,t.persistent=!0})(),n.internalField=(function(){var t;rC=function(a,s,l){var c=l.sourceFormat,f=l.seriesLayoutBy,p=l.startIndex,g=l.dimensionsDefine,d=iC[um(c,f)];if(st(a,d),c===Hr)a.getItem=e,a.count=r,a.fillStorage=i;else{var y=sC(c,f);a.getItem=wt(y,null,s,p,g);var _=uC(c,f);a.count=wt(_,null,s,p,g)}};var e=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,c=this._dimSize,f=c*a,p=0;p<c;p++)s[p]=l[f+p];return s},i=function(a,s,l,c){for(var f=this._data,p=this._dimSize,g=0;g<p;g++){for(var d=c[g],y=d[0]==null?1/0:d[0],_=d[1]==null?-1/0:d[1],m=s-a,x=l[g],w=0;w<m;w++){var S=f[w*p+g];x[a+w]=S,S<y&&(y=S),S>_&&(_=S)}d[0]=y,d[1]=_}},r=function(){return this._data?this._data.length/this._dimSize:0};iC=(t={},t[yn+"_"+Ri]={pure:!0,appendData:o},t[yn+"_"+ds]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[oi]={pure:!0,appendData:o},t[Oi]={pure:!0,appendData:function(a){var s=this._data;E(a,function(l,c){for(var f=s[c]||(s[c]=[]),p=0;p<(l||[]).length;p++)f.push(l[p])})}},t[Gn]={appendData:o},t[Hr]={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])}})(),n})(),aC=function(n,t,e,i){return n[i]},P4=(Wo={},Wo[yn+"_"+Ri]=function(n,t,e,i){return n[i+t]},Wo[yn+"_"+ds]=function(n,t,e,i,r){i+=t;for(var o=r||[],a=n,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},Wo[oi]=aC,Wo[Oi]=function(n,t,e,i,r){for(var o=r||[],a=0;a<e.length;a++){var s=e[a].name,l=n[s];o[a]=l?l[i]:null}return o},Wo[Gn]=aC,Wo);function sC(n,t){var e=P4[um(n,t)];return e}var lC=function(n,t,e){return n.length},L4=(Uo={},Uo[yn+"_"+Ri]=function(n,t,e){return Math.max(0,n.length-t)},Uo[yn+"_"+ds]=function(n,t,e){var i=n[0];return i?Math.max(0,i.length-t):0},Uo[oi]=lC,Uo[Oi]=function(n,t,e){var i=e[0].name,r=n[i];return r?r.length:0},Uo[Gn]=lC,Uo);function uC(n,t){var e=L4[um(n,t)];return e}var lm=function(n,t,e){return n[t]},E4=(Go={},Go[yn]=lm,Go[oi]=function(n,t,e){return n[e]},Go[Oi]=lm,Go[Gn]=function(n,t,e){var i=Wl(n);return i instanceof Array?i[t]:i},Go[Hr]=lm,Go);function cC(n){var t=E4[n];return t}function um(n,t){return n===yn?n+"_"+t:n}function gs(n,t,e){if(n){var i=n.getRawDataItem(t);if(i!=null){var r=n.getStore(),o=r.getSource().sourceFormat;if(e!=null){var a=n.getDimensionIndex(e),s=r.getDimensionProperty(a);return cC(o)(i,a,s)}else{var l=i;return o===Gn&&(l=Wl(i)),l}}}}var O4=/\{@(.+?)\}/g,R4=(function(){function n(){}return n.prototype.getDataParams=function(t,e){var i=this.getData(e),r=this.getRawValue(t,e),o=i.getRawIndex(t),a=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),c=l&&l[i.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,p=this.mainType,g=p==="series",d=i.userOutput&&i.userOutput.get();return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:a,dataIndex:o,data:s,dataType:e,value:r,color:c,borderColor:f,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(t,e,i,r,o,a){e=e||"normal";var s=this.getData(i),l=this.getDataParams(t,i);if(a&&(l.value=a.interpolatedValue),r!=null&&ct(l.value)&&(l.value=l.value[r]),!o){var c=s.getItemModel(t);o=c.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(St(o))return l.status=e,l.dimensionIndex=r,o(l);if(gt(o)){var f=Qy(o,l);return f.replace(O4,function(p,g){var d=g.length,y=g;y.charAt(0)==="["&&y.charAt(d-1)==="]"&&(y=+y.slice(1,d-1));var _=gs(s,t,y);if(a&&ct(a.interpolatedValue)){var m=s.getDimensionIndex(y);m>=0&&(_=a.interpolatedValue[m])}return _!=null?_+"":""})}},n.prototype.getRawValue=function(t,e){return gs(this.getData(e),t)},n.prototype.formatTooltip=function(t,e,i){},n})();function fC(n){var t,e;return _t(n)?n.type&&(e=n):t=n,{text:t,frag:e}}function Cu(n){return new N4(n)}var N4=(function(){function n(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return n.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var r=this.context;r.data=r.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var a=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),c=t&&t.modDataCount||0;(a!==l||s!==c)&&(o="reset");function f(w){return!(w>=1)&&(w=1),w}var p;(this._dirty||o==="reset")&&(this._dirty=!1,p=this._doReset(i)),this._modBy=l,this._modDataCount=c;var g=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,y=Math.min(g!=null?this._dueIndex+g:1/0,this._dueEnd);if(!i&&(p||d<y)){var _=this._progress;if(ct(_))for(var m=0;m<_.length;m++)this._doProgress(_[m],d,y,l,c);else this._doProgress(_,d,y,l,c)}this._dueIndex=y;var x=this._settedOutputEnd!=null?this._settedOutputEnd:y;this._outputDueEnd=x}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},n.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},n.prototype._doProgress=function(t,e,i,r,o){hC.reset(e,i,r,o),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:hC.next},this.context)},n.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),ct(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),i},n.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},n.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},n.prototype.getUpstream=function(){return this._upstream},n.prototype.getDownstream=function(){return this._downstream},n.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},n})(),hC=(function(){var n,t,e,i,r,o={reset:function(l,c,f,p){t=l,n=c,e=f,i=p,r=Math.ceil(i/e),o.next=e>1&&i>0?s:a}};return o;function a(){return t<n?t++:null}function s(){var l=t%r*e+Math.ceil(t/r),c=t>=n?null:l<i?l:t;return t++,c}})();function Bh(n,t){var e=t&&t.type;return e==="ordinal"?n:(e==="time"&&!oe(n)&&n!=null&&n!=="-"&&(n=+zn(n)),n==null||n===""?NaN:Number(n))}Mt({number:function(n){return parseFloat(n)},time:function(n){return+zn(n)},trim:function(n){return gt(n)?ei(n):n}});var z4=(function(){function n(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return n.prototype.evaluate=function(t,e){var i=oe(t)?t:Hl(t),r=oe(e)?e:Hl(e),o=isNaN(i),a=isNaN(r);if(o&&(i=this._incomparable),a&&(r=this._incomparable),o&&a){var s=gt(t),l=gt(e);s&&(i=l?t:0),l&&(r=s?e:0)}return i<r?this._resultLT:i>r?-this._resultLT:0},n})(),B4=(function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(t){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(t){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(t,e){},n.prototype.retrieveValueFromItem=function(t,e){},n.prototype.convertValue=function(t,e){return Bh(t,e)},n})();function F4(n,t){var e=new B4,i=n.data,r=e.sourceFormat=n.sourceFormat,o=n.startIndex,a="";n.seriesLayoutBy!==Ri&&gn(a);var s=[],l={},c=n.dimensionsDefine;if(c)E(c,function(_,m){var x=_.name,w={index:m,name:x,displayName:_.displayName};if(s.push(w),x!=null){var S="";Cr(l,x)&&gn(S),l[x]=w}});else for(var f=0;f<n.dimensionsDetectedCount;f++)s.push({index:f});var p=sC(r,Ri);t.__isBuiltIn&&(e.getRawDataItem=function(_){return p(i,o,s,_)},e.getRawData=wt(V4,null,n)),e.cloneRawData=wt(H4,null,n);var g=uC(r,Ri);e.count=wt(g,null,i,o,s);var d=cC(r);e.retrieveValue=function(_,m){var x=p(i,o,s,_);return y(x,m)};var y=e.retrieveValueFromItem=function(_,m){if(_!=null){var x=s[m];if(x)return d(_,m,x.name)}};return e.getDimensionInfo=wt(W4,null,s,l),e.cloneAllDimensionInfo=wt(U4,null,s),e}function V4(n){var t=n.sourceFormat;if(!cm(t)){var e="";gn(e)}return n.data}function H4(n){var t=n.sourceFormat,e=n.data;if(!cm(t)){var i="";gn(i)}if(t===yn){for(var r=[],o=0,a=e.length;o<a;o++)r.push(e[o].slice());return r}else if(t===oi){for(var r=[],o=0,a=e.length;o<a;o++)r.push(st({},e[o]));return r}}function W4(n,t,e){if(e!=null){if(oe(e)||!isNaN(e)&&!Cr(t,e))return n[e];if(Cr(t,e))return t[e]}}function U4(n){return Et(n)}var pC=Mt();function G4(n){n=Et(n);var t=n.type,e="";t||gn(e);var i=t.split(":");i.length!==2&&gn(e);var r=!1;i[0]==="echarts"&&(t=i[1],r=!0),n.__isBuiltIn=r,pC.set(t,n)}function j4(n,t,e){var i=nn(n),r=i.length,o="";r||gn(o);for(var a=0,s=r;a<s;a++){var l=i[a];t=Z4(l,t),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function Z4(n,t,e,i){var r="";t.length||gn(r),_t(n)||gn(r);var o=n.type,a=pC.get(o);a||gn(r);var s=pt(t,function(c){return F4(c,a)}),l=nn(a.transform({upstream:s[0],upstreamList:s,config:Et(n.config)}));return pt(l,function(c,f){var p="";_t(c)||gn(p),c.data||gn(p);var g=JM(c.data);cm(g)||gn(p);var d,y=t[0];if(y&&f===0&&!c.dimensions){var _=y.startIndex;_&&(c.data=y.data.slice(0,_).concat(c.data)),d={seriesLayoutBy:Ri,sourceHeader:_,dimensions:y.metaRawOption.dimensions}}else d={seriesLayoutBy:Ri,sourceHeader:0,dimensions:c.dimensions};return sm(c.data,d,null)})}function cm(n){return n===yn||n===oi}var Fh="undefined",Y4=typeof Uint32Array===Fh?Array:Uint32Array,X4=typeof Uint16Array===Fh?Array:Uint16Array,dC=typeof Int32Array===Fh?Array:Int32Array,gC=typeof Float64Array===Fh?Array:Float64Array,vC={float:gC,int:dC,ordinal:Array,number:Array,time:gC},fm;function vs(n){return n>65535?Y4:X4}function ys(){return[1/0,-1/0]}function $4(n){var t=n.constructor;return t===Array?n.slice():new t(n)}function yC(n,t,e,i,r){var o=vC[e||"float"];if(r){var a=n[t],s=a&&a.length;if(s!==i){for(var l=new o(i),c=0;c<s;c++)l[c]=a[c];n[t]=l}}else n[t]=new o(i)}var hm=(function(){function n(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Mt()}return n.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),o=this.defaultDimValueGetter=fm[r.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[],nC(r),this._dimensions=pt(e,function(a){return{type:a.type,property:a.property}}),this._initDataFromProvider(0,t.count())},n.prototype.getProvider=function(){return this._provider},n.prototype.getSource=function(){return this._provider.getSource()},n.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,r=this._dimensions,o=i.get(t);if(o!=null){if(r[o].type===e)return o}else o=r.length;return r[o]={type:e},i.set(t,o),this._chunks[o]=new vC[e||"float"](this._rawCount),this._rawExtent[o]=ys(),o},n.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],r=this._dimensions[t],o=this._rawExtent,a=r.ordinalOffset||0,s=i.length;a===0&&(o[t]=ys());for(var l=o[t],c=a;c<s;c++){var f=i[c]=e.parseAndCollect(i[c]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}r.ordinalMeta=e,r.ordinalOffset=s,r.type="ordinal"},n.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],i=e.ordinalMeta;return i},n.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},n.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=i),i<r&&this._initDataFromProvider(i,r,!0),[i,r]},n.prototype.appendValues=function(t,e){for(var i=this._chunks,r=this._dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),c=0;c<o;c++){var f=r[c];yC(i,c,f.type,l,!0)}for(var p=[],g=s;g<l;g++)for(var d=g-s,y=0;y<o;y++){var f=r[y],_=fm.arrayRows.call(this,t[d]||p,f.property,d,y);i[y][g]=_;var m=a[y];_<m[0]&&(m[0]=_),_>m[1]&&(m[1]=_)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(t,e,i){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,c=pt(a,function(w){return w.property}),f=0;f<s;f++){var p=a[f];l[f]||(l[f]=ys()),yC(o,f,p.type,e,i)}if(r.fillStorage)r.fillStorage(t,e,o,l);else for(var g=[],d=t;d<e;d++){g=r.getItem(d,g);for(var y=0;y<s;y++){var _=o[y],m=this._dimValueGetter(g,c[y],d,y);_[d]=m;var x=l[y];m<x[0]&&(x[0]=m),m>x[1]&&(x[1]=m)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},n.prototype.getValues=function(t,e){var i=[],r=[];if(e==null){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)r.push(o)}else r=t;for(var o=0,a=r.length;o<a;o++)i.push(this.get(r[o],e));return i},n.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},n.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var r=0,o=this.count();r<o;r++){var a=this.get(t,r);isNaN(a)||(i+=a)}return i},n.prototype.getMedian=function(t){var e=[];this.each([t],function(o){isNaN(o)||e.push(o)});var i=e.sort(function(o,a){return o-a}),r=this.count();return r===0?0:r%2===1?i[(r-1)/2]:(i[r/2]+i[r/2-1])/2},n.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var r=0,o=this._count-1;r<=o;){var a=(r+o)/2|0;if(e[a]<t)r=a+1;else if(e[a]>t)o=a-1;else return a}return-1},n.prototype.indicesOfNearest=function(t,e,i){var r=this._chunks,o=r[t],a=[];if(!o)return a;i==null&&(i=1/0);for(var s=1/0,l=-1,c=0,f=0,p=this.count();f<p;f++){var g=this.getRawIndex(f),d=e-o[g],y=Math.abs(d);y<=i&&((y<s||y===s&&d>=0&&l<0)&&(s=y,l=d,c=0),d===l&&(a[c++]=f))}return a.length=c,a},n.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,r=this._count;if(i===Array){t=new i(r);for(var o=0;o<r;o++)t[o]=e[o]}else t=new i(e.buffer,0,r)}else{var i=vs(this._rawCount);t=new i(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},n.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),r=i.count(),o=vs(i._rawCount),a=new o(r),s=[],l=t.length,c=0,f=t[0],p=i._chunks,g=0;g<r;g++){var d=void 0,y=i.getRawIndex(g);if(l===0)d=e(g);else if(l===1){var _=p[f][y];d=e(_,g)}else{for(var m=0;m<l;m++)s[m]=p[t[m]][y];s[m]=g,d=e.apply(null,s)}d&&(a[c++]=y)}return c<r&&(i._indices=a),i._count=c,i._extent=[],i._updateGetRawIdx(),i},n.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var r=ce(t),o=r.length;if(!o)return this;var a=e.count(),s=vs(e._rawCount),l=new s(a),c=0,f=r[0],p=t[f][0],g=t[f][1],d=e._chunks,y=!1;if(!e._indices){var _=0;if(o===1){for(var m=d[r[0]],x=0;x<i;x++){var w=m[x];(w>=p&&w<=g||isNaN(w))&&(l[c++]=_),_++}y=!0}else if(o===2){for(var m=d[r[0]],S=d[r[1]],C=t[r[1]][0],M=t[r[1]][1],x=0;x<i;x++){var w=m[x],T=S[x];(w>=p&&w<=g||isNaN(w))&&(T>=C&&T<=M||isNaN(T))&&(l[c++]=_),_++}y=!0}}if(!y)if(o===1)for(var x=0;x<a;x++){var D=e.getRawIndex(x),w=d[r[0]][D];(w>=p&&w<=g||isNaN(w))&&(l[c++]=D)}else for(var x=0;x<a;x++){for(var P=!0,D=e.getRawIndex(x),L=0;L<o;L++){var O=r[L],w=d[O][D];(w<t[O][0]||w>t[O][1])&&(P=!1)}P&&(l[c++]=e.getRawIndex(x))}return c<a&&(e._indices=l),e._count=c,e._extent=[],e._updateGetRawIdx(),e},n.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},n.prototype.modify=function(t,e){this._updateDims(this,t,e)},n.prototype._updateDims=function(t,e,i){for(var r=t._chunks,o=[],a=e.length,s=t.count(),l=[],c=t._rawExtent,f=0;f<e.length;f++)c[e[f]]=ys();for(var p=0;p<s;p++){for(var g=t.getRawIndex(p),d=0;d<a;d++)l[d]=r[e[d]][g];l[a]=p;var y=i&&i.apply(null,l);if(y!=null){typeof y!="object"&&(o[0]=y,y=o);for(var f=0;f<y.length;f++){var _=e[f],m=y[f],x=c[_],w=r[_];w&&(w[g]=m),m<x[0]&&(x[0]=m),m>x[1]&&(x[1]=m)}}}},n.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),r=i._chunks,o=r[t],a=this.count(),s=0,l=Math.floor(1/e),c=this.getRawIndex(0),f,p,g,d=new(vs(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));d[s++]=c;for(var y=1;y<a-1;y+=l){for(var _=Math.min(y+l,a-1),m=Math.min(y+l*2,a),x=(m+_)/2,w=0,S=_;S<m;S++){var C=this.getRawIndex(S),M=o[C];isNaN(M)||(w+=M)}w/=m-_;var T=y,D=Math.min(y+l,a),P=y-1,L=o[c];f=-1,g=T;for(var O=-1,N=0,S=T;S<D;S++){var C=this.getRawIndex(S),M=o[C];if(isNaN(M)){N++,O<0&&(O=C);continue}p=Math.abs((P-x)*(M-L)-(P-S)*(w-L)),p>f&&(f=p,g=C)}N>0&&N<D-T&&(d[s++]=Math.min(O,g),g=Math.max(O,g)),d[s++]=g,c=g}return d[s++]=this.getRawIndex(a-1),i._count=s,i._indices=d,i.getRawIndex=this._getRawIdx,i},n.prototype.minmaxDownSample=function(t,e){for(var i=this.clone([t],!0),r=i._chunks,o=Math.floor(1/e),a=r[t],s=this.count(),l=new(vs(this._rawCount))(Math.ceil(s/o)*2),c=0,f=0;f<s;f+=o){var p=f,g=a[this.getRawIndex(p)],d=f,y=a[this.getRawIndex(d)],_=o;f+o>s&&(_=s-f);for(var m=0;m<_;m++){var x=this.getRawIndex(f+m),w=a[x];w<g&&(g=w,p=f+m),w>y&&(y=w,d=f+m)}var S=this.getRawIndex(p),C=this.getRawIndex(d);p<d?(l[c++]=S,l[c++]=C):(l[c++]=C,l[c++]=S)}return i._count=c,i._indices=l,i._updateGetRawIdx(),i},n.prototype.downSample=function(t,e,i,r){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/e),c=a[t],f=this.count(),p=o._rawExtent[t]=ys(),g=new(vs(this._rawCount))(Math.ceil(f/l)),d=0,y=0;y<f;y+=l){l>f-y&&(l=f-y,s.length=l);for(var _=0;_<l;_++){var m=this.getRawIndex(y+_);s[_]=c[m]}var x=i(s),w=this.getRawIndex(Math.min(y+r(s,x)||0,f-1));c[w]=x,x<p[0]&&(p[0]=x),x>p[1]&&(p[1]=x),g[d++]=w}return o._count=d,o._indices=g,o._updateGetRawIdx(),o},n.prototype.each=function(t,e){if(this._count)for(var i=t.length,r=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(i){case 0:e(o);break;case 1:e(r[t[0]][s],o);break;case 2:e(r[t[0]][s],r[t[1]][s],o);break;default:for(var l=0,c=[];l<i;l++)c[l]=r[t[l]][s];c[l]=o,e.apply(null,c)}}},n.prototype.getDataExtent=function(t){var e=this._chunks[t],i=ys();if(!e)return i;var r=this.count(),o=!this._indices,a;if(o)return this._rawExtent[t].slice();if(a=this._extent[t],a)return a.slice();a=i;for(var s=a[0],l=a[1],c=0;c<r;c++){var f=this.getRawIndex(c),p=e[f];p<s&&(s=p),p>l&&(l=p)}return a=[s,l],this._extent[t]=a,a},n.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],r=this._chunks,o=0;o<r.length;o++)i.push(r[o][e]);return i},n.prototype.clone=function(t,e){var i=new n,r=this._chunks,o=t&&Si(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?$4(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},n.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Et(this._extent),t._rawExtent=Et(this._rawExtent)},n.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var r=0;r<i;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},n.prototype._getRawIdxIdentity=function(t){return t},n.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=(function(){function t(e,i,r,o){return Bh(e[o],this._dimensions[o])}fm={arrayRows:t,objectRows:function(e,i,r,o){return Bh(e[i],this._dimensions[o])},keyedColumns:t,original:function(e,i,r,o){var a=e&&(e.value==null?e:e.value);return Bh(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(e,i,r,o){return e[o]}}})(),n})(),mC=(function(){function n(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,r,o;if(Vh(t)){var a=t,s=void 0,l=void 0,c=void 0;if(i){var f=e[0];f.prepareSource(),c=f.getSource(),s=c.data,l=c.sourceFormat,o=[f._getVersionSign()]}else s=a.get("data",!0),l=Je(s)?Hr:Gn,o=[];var p=this._getSourceMetaRawOption()||{},g=c&&c.metaRawOption||{},d=Nt(p.seriesLayoutBy,g.seriesLayoutBy)||null,y=Nt(p.sourceHeader,g.sourceHeader),_=Nt(p.dimensions,g.dimensions),m=d!==g.seriesLayoutBy||!!y!=!!g.sourceHeader||_;r=m?[sm(s,{seriesLayoutBy:d,sourceHeader:y,dimensions:_},l)]:[]}else{var x=t;if(i){var w=this._applyTransform(e);r=w.sourceList,o=w.upstreamSignList}else{var S=x.get("source",!0);r=[sm(S,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(r,o)},n.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),r=e.get("fromTransformResult",!0);if(r!=null){var o="";t.length!==1&&xC(o)}var a,s=[],l=[];return E(t,function(c){c.prepareSource();var f=c.getSource(r||0),p="";r!=null&&!f&&xC(p),s.push(f),l.push(c._getVersionSign())}),i?a=j4(i,s,{datasetIndex:e.componentIndex}):r!=null&&(a=[I4(s[0])]),{sourceList:a,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},n.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},n.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},n.prototype._innerGetDataStore=function(t,e,i){var r=0,o=this._storeList,a=o[r];a||(a=o[r]={});var s=a[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Vh(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,i):(s=new hm,s.initData(new oC(e,t.length),t)),a[i]=s}return s},n.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Vh(t)){var e=Jy(t);return e?[e.getSourceManager()]:[]}else return pt(i4(t),function(i){return i.getSourceManager()})},n.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,r;if(Vh(t))e=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),r=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;e=o.get("seriesLayoutBy",!0),i=o.get("sourceHeader",!0),r=o.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:i,dimensions:r}},n})();function _C(n){var t=n.option.transform;t&&kl(n.option.transform)}function Vh(n){return n.mainType==="series"}function xC(n){throw new Error(n)}var q4="line-height:1";function bC(n){var t=n.lineHeight;return t==null?q4:"line-height:"+en(t+"")+"px"}function wC(n,t){var e=n.color||"#6e7079",i=n.fontSize||12,r=n.fontWeight||"400",o=n.color||"#464646",a=n.fontSize||14,s=n.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+en(i+"")+"px;color:"+en(e)+";font-weight:"+en(r+""),valueStyle:"font-size:"+en(a+"")+"px;color:"+en(o)+";font-weight:"+en(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Q4=[0,10,20,30],K4=["",`
|
|
121
|
+
`,`
|
|
122
|
+
|
|
123
|
+
`,`
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
`];function Tu(n,t){return t.type=n,t}function pm(n){return n.type==="section"}function SC(n){return pm(n)?J4:tB}function kC(n){if(pm(n)){var t=0,e=n.blocks.length,i=e>1||e>0&&!n.noHeader;return E(n.blocks,function(r){var o=kC(r);o>=t&&(t=o+ +(i&&(!o||pm(r)&&!r.noHeader)))}),t}return 0}function J4(n,t,e,i){var r=t.noHeader,o=eB(kC(t)),a=[],s=t.blocks||[];ti(!s||ct(s)),s=s||[];var l=n.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Cr(c,l)){var f=new z4(c[l],null);s.sort(function(_,m){return f.evaluate(_.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}E(s,function(_,m){var x=t.valueFormatter,w=SC(_)(x?st(st({},n),{valueFormatter:x}):n,_,m>0?o.html:0,i);w!=null&&a.push(w)});var p=n.renderMode==="richText"?a.join(o.richText):dm(i,a.join(""),r?e:o.html);if(r)return p;var g=$y(t.header,"ordinal",n.useUTC),d=wC(i,n.renderMode).nameStyle,y=bC(i);return n.renderMode==="richText"?CC(n,g,d)+o.richText+p:dm(i,'<div style="'+d+";"+y+';">'+en(g)+"</div>"+p,e)}function tB(n,t,e,i){var r=n.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,c=n.useUTC,f=t.valueFormatter||n.valueFormatter||function(C){return C=ct(C)?C:[C],pt(C,function(M,T){return $y(M,ct(d)?d[T]:d,c)})};if(!(o&&a)){var p=s?"":n.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),g=o?"":$y(l,"ordinal",c),d=t.valueType,y=a?[]:f(t.value,t.dataIndex),_=!s||!o,m=!s&&o,x=wC(i,r),w=x.nameStyle,S=x.valueStyle;return r==="richText"?(s?"":p)+(o?"":CC(n,g,w))+(a?"":rB(n,y,_,m,S)):dm(i,(s?"":p)+(o?"":nB(g,!s,w))+(a?"":iB(y,_,m,S)),e)}}function MC(n,t,e,i,r,o){if(n){var a=SC(n),s={useUTC:r,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:n.valueFormatter};return a(s,n,0,o)}}function eB(n){return{html:Q4[n],richText:K4[n]}}function dm(n,t,e){var i='<div style="clear:both"></div>',r="margin: "+e+"px 0 0",o=bC(n);return'<div style="'+r+";"+o+';">'+t+i+"</div>"}function nB(n,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+en(n)+"</span>"}function iB(n,t,e,i){var r=e?"10px":"20px",o=t?"float:right;margin-left:"+r:"";return n=ct(n)?n:[n],'<span style="'+o+";"+i+'">'+pt(n,function(a){return en(a)}).join(" ")+"</span>"}function CC(n,t,e){return n.markupStyleCreator.wrapRichTextStyle(t,e)}function rB(n,t,e,i,r){var o=[r],a=i?10:20;return e&&o.push({padding:[0,0,0,a],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(ct(t)?t.join(" "):t,o)}function oB(n,t){var e=n.getData().getItemVisual(t,"style"),i=e[n.visualDrawType];return Ho(i)}function TC(n,t){var e=n.get("padding");return e??(t==="richText"?[8,10]:10)}var gm=(function(){function n(){this.richTextStyles={},this._nextStyleNameId=LS()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(t,e,i){var r=i==="richText"?this._generateStyleName():null,o=DM({color:e,type:t,renderMode:i,markerId:r});return gt(o)?o:(this.richTextStyles[r]=o.style,o.content)},n.prototype.wrapRichTextStyle=function(t,e){var i={};ct(e)?E(e,function(o){return st(i,o)}):st(i,e);var r=this._generateStyleName();return this.richTextStyles[r]=i,"{"+r+"|"+t+"}"},n})();function aB(n){var t=n.series,e=n.dataIndex,i=n.multipleSeries,r=t.getData(),o=r.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(e),l=ct(s),c=oB(t,e),f,p,g,d;if(a>1||l&&!a){var y=sB(s,t,e,o,c);f=y.inlineValues,p=y.inlineValueTypes,g=y.blocks,d=y.inlineValues[0]}else if(a){var _=r.getDimensionInfo(o[0]);d=f=gs(r,e,o[0]),p=_.type}else d=f=l?s[0]:s;var m=Jv(t),x=m&&t.name||"",w=r.getName(e),S=i?x:w;return Tu("section",{header:x,noHeader:i||!m,sortParam:d,blocks:[Tu("nameValue",{markerType:"item",markerColor:c,name:S,noName:!ei(S),value:f,valueType:p,dataIndex:e})].concat(g||[])})}function sB(n,t,e,i,r){var o=t.getData(),a=Si(n,function(p,g,d){var y=o.getDimensionInfo(d);return p=p||y&&y.tooltip!==!1&&y.displayName!=null},!1),s=[],l=[],c=[];i.length?E(i,function(p){f(gs(o,e,p),p)}):E(n,f);function f(p,g){var d=o.getDimensionInfo(g);!d||d.otherDims.tooltip===!1||(a?c.push(Tu("nameValue",{markerType:"subItem",markerColor:r,name:d.displayName,value:p,valueType:d.type})):(s.push(p),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:c}}var Wr=fe();function Hh(n,t){return n.getName(t)||n.getId(t)}var lB="__universalTransitionEnabled",Ye=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,r){this.seriesIndex=this.componentIndex,this.dataTask=Cu({count:cB,reset:fB}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,r);var o=Wr(this).sourceManager=new mC(this);o.prepareSource();var a=this.getInitialData(e,r);DC(a,this),this.dataTask.context.data=a,Wr(this).dataBeforeProcessed=a,IC(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(e,i){var r=xu(this),o=r?bu(e):{},a=this.subType;Yt.hasClass(a)&&(a+="Series"),zt(e,i.getTheme().get(this.subType)),zt(e,this.getDefaultOption()),Kv(e,"label",["show"]),this.fillDataTextStyle(e.data),r&&hs(e,o,r)},t.prototype.mergeOption=function(e,i){e=zt(this.option,e,!0),this.fillDataTextStyle(e.data);var r=xu(this);r&&hs(this.option,e,r);var o=Wr(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(e,i);DC(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Wr(this).dataBeforeProcessed=a,IC(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){if(e&&!Je(e))for(var i=["show"],r=0;r<e.length;r++)e[r]&&e[r].label&&Kv(e[r],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){var i=this.getRawData();i.appendData(e.data)},t.prototype.getData=function(e){var i=vm(this);if(i){var r=i.context.data;return e==null||!r.getLinkedData?r:r.getLinkedData(e)}else return Wr(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var i=vm(this);if(i){var r=i.context;r.outputData=e,i!==this.dataTask&&(r.data=e)}Wr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Mt(e)},t.prototype.getSourceManager=function(){return Wr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Wr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,i,r){return aB({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Ct.node&&!(e&&e.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,r){var o=this.ecModel,a=em.prototype.getColorFromPalette.call(this,e,i,r);return a||(a=o.getColorFromPalette(e,i,r)),a},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var r=this.option.selectedMap;if(r){var o=this.option.selectedMode,a=this.getData(i);if(o==="series"||r==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],c=Hh(a,l);r[c]=!1,this._selectedDataIndicesMap[c]=-1}}},t.prototype.toggleSelect=function(e,i){for(var r=[],o=0;o<e.length;o++)r[0]=e[o],this.isSelected(e[o],i)?this.unselect(r,i):this.select(r,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=ce(e),r=[],o=0;o<i.length;o++){var a=e[i[o]];a>=0&&r.push(a)}return r},t.prototype.isSelected=function(e,i){var r=this.option.selectedMap;if(!r)return!1;var o=this.getData(i);return(r==="all"||r[Hh(o,e)])&&!o.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[lB])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var r,o,a=this.option,s=a.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){_t(a.selectedMap)||(a.selectedMap={});for(var c=a.selectedMap,f=0;f<l;f++){var p=i[f],g=Hh(e,p);c[g]=!0,this._selectedDataIndicesMap[g]=e.getRawIndex(p)}}else if(s==="single"||s===!0){var d=i[l-1],g=Hh(e,d);a.selectedMap=(r={},r[g]=!0,r),this._selectedDataIndicesMap=(o={},o[g]=e.getRawIndex(d),o)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(r){var o=e.getRawDataItem(r);o&&o.selected&&i.push(r)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return Yt.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(Yt);Sn(Ye,R4),Sn(Ye,em),US(Ye,Yt);function IC(n){var t=n.name;Jv(n)||(n.name=uB(n)||t)}function uB(n){var t=n.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return E(e,function(r){var o=t.getDimensionInfo(r);o.displayName&&i.push(o.displayName)}),i.join(" ")}function cB(n){return n.model.getRawData().count()}function fB(n){var t=n.model;return t.setData(t.getRawData().cloneShallow()),hB}function hB(n,t){t.outputData&&n.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function DC(n,t){E(Tw(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(e){n.wrapMethod(e,Gt(pB,t))})}function pB(n,t){var e=vm(n);return e&&e.setOutputEnd((t||this).count()),t}function vm(n){var t=(n.ecModel||{}).scheduler,e=t&&t.getPipeline(n.uid);if(e){var i=e.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(n.uid))}return i}}var ze=(function(){function n(){this.group=new ye,this.uid=du("viewComponent")}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,i,r){},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,i,r){},n.prototype.updateLayout=function(t,e,i,r){},n.prototype.updateVisual=function(t,e,i,r){},n.prototype.toggleBlurSeries=function(t,e,i){},n.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},n})();ey(ze),$f(ze);function Iu(){var n=fe();return function(t){var e=n(t),i=t.pipelineContext,r=!!e.large,o=!!e.progressiveRender,a=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(r!==a||o!==s)&&"reset"}}var AC=fe(),dB=Iu(),Be=(function(){function n(){this.group=new ye,this.uid=du("viewChart"),this.renderTask=Cu({plan:gB,reset:vB}),this.renderTask.context={view:this}}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,i,r){},n.prototype.highlight=function(t,e,i,r){var o=t.getData(r&&r.dataType);o&&LC(o,r,"emphasis")},n.prototype.downplay=function(t,e,i,r){var o=t.getData(r&&r.dataType);o&&LC(o,r,"normal")},n.prototype.remove=function(t,e){this.group.removeAll()},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.updateLayout=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.updateVisual=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.eachRendered=function(t){fu(this.group,t)},n.markUpdateMethod=function(t,e){AC(t).updateMethod=e},n.protoInitialize=(function(){var t=n.prototype;t.type="chart"})(),n})();function PC(n,t,e){n&&ky(n)&&(t==="emphasis"?ts:es)(n,e)}function LC(n,t,e){var i=To(n,t),r=t&&t.highlightKey!=null?U5(t.highlightKey):null;i!=null?E(nn(i),function(o){PC(n.getItemGraphicEl(o),e,r)}):n.eachItemGraphicEl(function(o){PC(o,e,r)})}ey(Be),$f(Be);function gB(n){return dB(n.model)}function vB(n){var t=n.model,e=n.ecModel,i=n.api,r=n.payload,o=t.pipelineContext.progressiveRender,a=n.view,s=r&&AC(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,e,i,r),yB[l]}var yB={incrementalPrepareRender:{progress:function(n,t){t.view.incrementalRender(n,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(n,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Wh="\0__throttleOriginMethod",EC="\0__throttleRate",OC="\0__throttleType";function Uh(n,t,e){var i,r=0,o=0,a=null,s,l,c,f;t=t||0;function p(){o=new Date().getTime(),a=null,n.apply(l,c||[])}var g=function(){for(var d=[],y=0;y<arguments.length;y++)d[y]=arguments[y];i=new Date().getTime(),l=this,c=d;var _=f||t,m=f||e;f=null,s=i-(m?r:o)-_,clearTimeout(a),m?a=setTimeout(p,_):s>=0?p():a=setTimeout(p,-s),r=i};return g.clear=function(){a&&(clearTimeout(a),a=null)},g.debounceNextCall=function(d){f=d},g}function Gh(n,t,e,i){var r=n[t];if(r){var o=r[Wh]||r,a=r[OC],s=r[EC];if(s!==e||a!==i){if(e==null||!i)return n[t]=o;r=n[t]=Uh(o,e,i==="debounce"),r[Wh]=o,r[OC]=i,r[EC]=e}return r}}function jh(n,t){var e=n[t];e&&e[Wh]&&(e.clear&&e.clear(),n[t]=e[Wh])}var RC=fe(),NC={itemStyle:Yl(gM,!0),lineStyle:Yl(dM,!0)},mB={lineStyle:"stroke",itemStyle:"fill"};function zC(n,t){var e=n.visualStyleMapper||NC[t];return e||(console.warn("Unknown style type '"+t+"'."),NC.itemStyle)}function BC(n,t){var e=n.visualDrawType||mB[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var _B={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=n.getModel(i),o=zC(n,i),a=o(r),s=r.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=BC(n,i),c=a[l],f=St(c)?c:null,p=a.fill==="auto"||a.stroke==="auto";if(!a[l]||f||p){var g=n.getColorFromPalette(n.name,null,t.getSeriesCount());a[l]||(a[l]=g,e.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||St(a.fill)?g:a.fill,a.stroke=a.stroke==="auto"||St(a.stroke)?g:a.stroke}if(e.setVisual("style",a),e.setVisual("drawType",l),!t.isSeriesFiltered(n)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(d,y){var _=n.getDataParams(y),m=st({},a);m[l]=f(_),d.setItemVisual(y,"style",m)}}}},Du=new he,xB={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(!(n.ignoreStyleOnData||t.isSeriesFiltered(n))){var e=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=zC(n,i),o=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[i]){Du.option=l[i];var c=r(Du),f=a.ensureUniqueItemVisual(s,"style");st(f,c),Du.option.decal&&(a.setItemVisual(s,"decal",Du.option.decal),Du.option.decal.dirty=!0),o in c&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},bB={performRawSeries:!0,overallReset:function(n){var t=Mt();n.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+i,o=t.get(r);o||(o={},t.set(r,o)),RC(e).scope=o}}),n.eachSeries(function(e){if(!(e.isColorBySeries()||n.isSeriesFiltered(e))){var i=e.getRawData(),r={},o=e.getData(),a=RC(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=BC(e,s);o.each(function(c){var f=o.getRawIndex(c);r[f]=c}),i.each(function(c){var f=r[c],p=o.getItemVisual(f,"colorFromPalette");if(p){var g=o.ensureUniqueItemVisual(f,"style"),d=i.getName(c)||c+"",y=i.count();g[l]=e.getColorFromPalette(d,a,y)}})}})}},Zh=Math.PI;function wB(n,t){t=t||{},Wt(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 e=new ye,i=new se({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var r=new we({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 se({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(o);var a;return t.showSpinner&&(a=new ou({shape:{startAngle:-Zh/2,endAngle:-Zh/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:Zh*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:Zh*3/2}).delay(300).start("circularInOut"),e.add(a)),e.resize=function(){var s=r.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,c=(n.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),f=n.getHeight()/2;t.showSpinner&&a.setShape({cx:c,cy:f}),o.setShape({x:c-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},e.resize(),e}var FC=(function(){function n(t,e,i,r){this._stageTaskMap=Mt(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=i.concat(r)}return n.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var r=i.overallTask;r&&r.dirty()})},n.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),r=i.context,o=!e&&i.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>i.blockIndex,a=o?i.step:null,s=r&&r.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},n.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),r=t.getData(),o=r.count(),a=i.progressiveEnabled&&e.incrementalPrepareRender&&o>=i.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=i.context={progressiveRender:a,modDataCount:l,large:s}},n.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=Mt();t.eachSeries(function(r){var o=r.getProgressive(),a=r.uid;i.set(a,{id:a,head:null,tail:null,threshold:r.getProgressiveThreshold(),progressiveEnabled:o&&!(r.preventIncremental&&r.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),e._pipe(r,r.dataTask)})},n.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;E(this._allHandlers,function(r){var o=t.get(r.uid)||t.set(r.uid,{}),a="";ti(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,o,e,i),r.overallReset&&this._createOverallStageTask(r,o,e,i)},this)},n.prototype.prepareView=function(t,e,i,r){var o=t.renderTask,a=o.context;a.model=e,a.ecModel=i,a.api=r,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},n.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},n.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},n.prototype._performStageTasks=function(t,e,i,r){r=r||{};var o=!1,a=this;E(t,function(l,c){if(!(r.visualType&&r.visualType!==l.visualType)){var f=a._stageTaskMap.get(l.uid),p=f.seriesTaskMap,g=f.overallTask;if(g){var d,y=g.agentStubMap;y.each(function(m){s(r,m)&&(m.dirty(),d=!0)}),d&&g.dirty(),a.updatePayload(g,i);var _=a.getPerformArgs(g,r.block);y.each(function(m){m.perform(_)}),g.perform(_)&&(o=!0)}else p&&p.each(function(m,x){s(r,m)&&m.dirty();var w=a.getPerformArgs(m,r.block);w.skip=!l.performRawSeries&&e.isSeriesFiltered(m.context.model),a.updatePayload(m,i),m.perform(w)&&(o=!0)})}});function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}this.unfinished=o||this.unfinished},n.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},n.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},n.prototype._createSeriesStageTask=function(t,e,i,r){var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=Mt(),l=t.seriesType,c=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):c&&c(i,r).each(f);function f(p){var g=p.uid,d=s.set(g,a&&a.get(g)||Cu({plan:TB,reset:IB,count:AB}));d.context={model:p,ecModel:i,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(p,d)}},n.prototype._createOverallStageTask=function(t,e,i,r){var o=this,a=e.overallTask=e.overallTask||Cu({reset:SB});a.context={ecModel:i,api:r,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Mt(),c=t.seriesType,f=t.getTargetSeries,p=!0,g=!1,d="";ti(!t.createOnAllSeries,d),c?i.eachRawSeriesByType(c,y):f?f(i,r).each(y):(p=!1,E(i.getSeries(),y));function y(_){var m=_.uid,x=l.set(m,s&&s.get(m)||(g=!0,Cu({reset:kB,onDirty:CB})));x.context={model:_,overallProgress:p},x.agent=a,x.__block=p,o._pipe(_,x)}g&&a.dirty()},n.prototype._pipe=function(t,e){var i=t.uid,r=this._pipelineMap.get(i);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},n.wrapStageHandler=function(t,e){return St(t)&&(t={overallReset:t,seriesType:PB(t)}),t.uid=du("stageHandler"),e&&(t.visualType=e),t},n})();function SB(n){n.overallReset(n.ecModel,n.api,n.payload)}function kB(n){return n.overallProgress&&MB}function MB(){this.agent.dirty(),this.getDownstream().dirty()}function CB(){this.agent&&this.agent.dirty()}function TB(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function IB(n){n.useClearVisual&&n.data.clearAllVisual();var t=n.resetDefines=nn(n.reset(n.model,n.ecModel,n.api,n.payload));return t.length>1?pt(t,function(e,i){return VC(i)}):DB}var DB=VC(0);function VC(n){return function(t,e){var i=e.data,r=e.resetDefines[n];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function AB(n){return n.data.count()}function PB(n){Yh=null;try{n(Au,HC)}catch{}return Yh}var Au={},HC={},Yh;WC(Au,nm),WC(HC,GM),Au.eachSeriesByType=Au.eachRawSeriesByType=function(n){Yh=n},Au.eachComponent=function(n){n.mainType==="series"&&n.subType&&(Yh=n.subType)};function WC(n,t){for(var e in t.prototype)n[e]=Ue}var UC=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const LB={color:UC,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],UC]};var Xe="#B9B8CE",GC="#100C2A",Xh=function(){return{axisLine:{lineStyle:{color:Xe}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},jC=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ZC={darkMode:!0,color:jC,backgroundColor:GC,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Xe},pageTextStyle:{color:Xe}},textStyle:{color:Xe},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Xe}},dataZoom:{borderColor:"#71708A",textStyle:{color:Xe},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:Xe}},timeline:{lineStyle:{color:Xe},label:{color:Xe},controlStyle:{color:Xe,borderColor:Xe}},calendar:{itemStyle:{color:GC},dayLabel:{color:Xe},monthLabel:{color:Xe},yearLabel:{color:Xe}},timeAxis:Xh(),logAxis:Xh(),valueAxis:Xh(),categoryAxis:Xh(),line:{symbol:"circle"},graph:{color:jC},gauge:{title:{color:Xe},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Xe},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};ZC.categoryAxis.splitLine.show=!1;var EB=(function(){function n(){}return n.prototype.normalizeQuery=function(t){var e={},i={},r={};if(gt(t)){var o=Ti(t);e.mainType=o.main||null,e.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};E(t,function(l,c){for(var f=!1,p=0;p<a.length;p++){var g=a[p],d=c.lastIndexOf(g);if(d>0&&d===c.length-g.length){var y=c.slice(0,d);y!=="data"&&(e.mainType=y,e[g.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(c)&&(i[c]=l,f=!0),f||(r[c]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:r}},n.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,c=e.dataQuery;return f(l,a,"mainType")&&f(l,a,"subType")&&f(l,a,"index","componentIndex")&&f(l,a,"name")&&f(l,a,"id")&&f(c,o,"name")&&f(c,o,"dataIndex")&&f(c,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o));function f(p,g,d,y){return p[d]==null||g[y||d]===p[d]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n})(),ym=["symbol","symbolSize","symbolRotate","symbolOffset"],YC=ym.concat(["symbolKeepAspect"]),OB={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData();if(n.legendIcon&&e.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var i={},r={},o=!1,a=0;a<ym.length;a++){var s=ym[a],l=n.get(s);St(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||n.defaultSymbol,e.setVisual(st({legendIcon:n.legendIcon||i.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},i)),t.isSeriesFiltered(n))return;var c=ce(r);function f(p,g){for(var d=n.getRawValue(g),y=n.getDataParams(g),_=0;_<c.length;_++){var m=c[_];p.setItemVisual(g,m,r[m](d,y))}}return{dataEach:o?f:null}}},RB={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(!n.hasSymbolVisual||t.isSeriesFiltered(n))return;var e=n.getData();function i(r,o){for(var a=r.getItemModel(o),s=0;s<YC.length;s++){var l=YC[s],c=a.getShallow(l,!0);c!=null&&r.setItemVisual(o,l,c)}}return{dataEach:e.hasItemOption?i:null}}};function NB(n,t,e){switch(e){case"color":var i=n.getItemVisual(t,"style");return i[n.getVisual("drawType")];case"opacity":return n.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(t,e)}}function zB(n,t){switch(t){case"color":var e=n.getVisual("style");return e[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(t)}}function BB(n,t){function e(i,r){var o=[];return i.eachComponent({mainType:"series",subType:n,query:r},function(a){o.push(a.seriesIndex)}),o}E([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(i){t(i[0],function(r,o,a){r=st({},r),a.dispatchAction(st(r,{type:i[1],seriesIndex:e(o,r)}))})})}function ms(n,t,e,i,r){var o=n+t;e.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,c=r.selected,f=0;f<c.length;f++)if(c[f].seriesIndex===s){var p=a.getData(),g=To(p,r.fromActionPayload);e.trigger(o,{type:o,seriesId:a.id,name:ct(g)?p.getName(g[0]):p.getName(g),selected:gt(l)?l:st({},l)})}})}function FB(n,t,e){n.on("selectchanged",function(i){var r=e.getModel();i.isFromClick?(ms("map","selectchanged",t,r,i),ms("pie","selectchanged",t,r,i)):i.fromAction==="select"?(ms("map","selected",t,r,i),ms("pie","selected",t,r,i)):i.fromAction==="unselect"&&(ms("map","unselected",t,r,i),ms("pie","unselected",t,r,i))})}function Pu(n,t,e){for(var i;n&&!(t(n)&&(i=n,e));)n=n.__hostTarget||n.parent;return i}var VB=Math.round(Math.random()*9),HB=typeof Object.defineProperty=="function",WB=(function(){function n(){this._id="__ec_inner_"+VB++}return n.prototype.get=function(t){return this._guard(t)[this._id]},n.prototype.set=function(t,e){var i=this._guard(t);return HB?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},n.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},n.prototype.has=function(t){return!!this._guard(t)[this._id]},n.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},n})(),UB=$t.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,t){var e=t.cx,i=t.cy,r=t.width/2,o=t.height/2;n.moveTo(e,i-o),n.lineTo(e+r,i+o),n.lineTo(e-r,i+o),n.closePath()}}),GB=$t.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,t){var e=t.cx,i=t.cy,r=t.width/2,o=t.height/2;n.moveTo(e,i-o),n.lineTo(e+r,i),n.lineTo(e,i+o),n.lineTo(e-r,i),n.closePath()}}),jB=$t.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,t){var e=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,c=Math.asin(s/a),f=Math.cos(c)*a,p=Math.sin(c),g=Math.cos(c),d=a*.6,y=a*.7;n.moveTo(e-f,l+s),n.arc(e,l,a,Math.PI-c,Math.PI*2+c),n.bezierCurveTo(e+f-p*d,l+s+g*d,e,i-y,e,i),n.bezierCurveTo(e,i-y,e-f+p*d,l+s+g*d,e-f,l+s),n.closePath()}}),ZB=$t.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,t){var e=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;n.moveTo(r,o),n.lineTo(r+a,o+e),n.lineTo(r,o+e/4*3),n.lineTo(r-a,o+e),n.lineTo(r,o),n.closePath()}}),YB={line:er,rect:se,roundRect:se,square:se,circle:nu,diamond:GB,pin:jB,arrow:ZB,triangle:UB},XB={line:function(n,t,e,i,r){r.x1=n,r.y1=t+i/2,r.x2=n+e,r.y2=t+i/2},rect:function(n,t,e,i,r){r.x=n,r.y=t,r.width=e,r.height=i},roundRect:function(n,t,e,i,r){r.x=n,r.y=t,r.width=e,r.height=i,r.r=Math.min(e,i)/4},square:function(n,t,e,i,r){var o=Math.min(e,i);r.x=n,r.y=t,r.width=o,r.height=o},circle:function(n,t,e,i,r){r.cx=n+e/2,r.cy=t+i/2,r.r=Math.min(e,i)/2},diamond:function(n,t,e,i,r){r.cx=n+e/2,r.cy=t+i/2,r.width=e,r.height=i},pin:function(n,t,e,i,r){r.x=n+e/2,r.y=t+i/2,r.width=e,r.height=i},arrow:function(n,t,e,i,r){r.x=n+e/2,r.y=t+i/2,r.width=e,r.height=i},triangle:function(n,t,e,i,r){r.cx=n+e/2,r.cy=t+i/2,r.width=e,r.height=i}},$h={};E(YB,function(n,t){$h[t]=new n});var $B=$t.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,t,e){var i=jf(n,t,e),r=this.shape;return r&&r.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+e.height*.4),i},buildPath:function(n,t,e){var i=t.symbolType;if(i!=="none"){var r=$h[i];r||(i="rect",r=$h[i]),XB[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(n,r.shape,e)}}});function qB(n,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=n,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=n:e.fill=n,this.markRedraw()}}function Ni(n,t,e,i,r,o,a){var s=n.indexOf("empty")===0;s&&(n=n.substr(5,1).toLowerCase()+n.substr(6));var l;return n.indexOf("image://")===0?l=Ly(n.slice(8),new jt(t,e,i,r),a?"center":"cover"):n.indexOf("path://")===0?l=wh(n.slice(7),{},new jt(t,e,i,r),a?"center":"cover"):l=new $B({shape:{symbolType:n,x:t,y:e,width:i,height:r}}),l.__isEmptyBrush=s,l.setColor=qB,o&&l.setColor(o),l}function QB(n){return ct(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function XC(n,t){if(n!=null)return ct(n)||(n=[n,n]),[Qt(n[0],t[0])||0,Qt(Nt(n[1],n[0]),t[1])||0]}function jo(n){return isFinite(n)}function KB(n,t,e){var i=t.x==null?0:t.x,r=t.x2==null?1:t.x2,o=t.y==null?0:t.y,a=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,r=r*e.width+e.x,o=o*e.height+e.y,a=a*e.height+e.y),i=jo(i)?i:0,r=jo(r)?r:1,o=jo(o)?o:0,a=jo(a)?a:0;var s=n.createLinearGradient(i,o,r,a);return s}function JB(n,t,e){var i=e.width,r=e.height,o=Math.min(i,r),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*i+e.x,s=s*r+e.y,l=l*o),a=jo(a)?a:.5,s=jo(s)?s:.5,l=l>=0&&jo(l)?l:.5;var c=n.createRadialGradient(a,s,0,a,s,l);return c}function mm(n,t,e){for(var i=t.type==="radial"?JB(n,t,e):KB(n,t,e),r=t.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function tF(n,t){if(n===t||!n&&!t)return!1;if(!n||!t||n.length!==t.length)return!0;for(var e=0;e<n.length;e++)if(n[e]!==t[e])return!0;return!1}function qh(n){return parseInt(n,10)}function Qh(n,t,e){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(n);return(n[r]||qh(s[i])||qh(n.style[i]))-(qh(s[o])||0)-(qh(s[a])||0)|0}function eF(n,t){return!n||n==="solid"||!(t>0)?null:n==="dashed"?[4*t,2*t]:n==="dotted"?[t]:oe(n)?[n]:ct(n)?n:null}function $C(n){var t=n.style,e=t.lineDash&&t.lineWidth>0&&eF(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var r=t.strokeNoScale&&n.getLineScale?n.getLineScale():1;r&&r!==1&&(e=pt(e,function(o){return o/r}),i/=r)}return[e,i]}var nF=new Br(!0);function Kh(n){var t=n.stroke;return!(t==null||t==="none"||!(n.lineWidth>0))}function qC(n){return typeof n=="string"&&n!=="none"}function Jh(n){var t=n.fill;return t!=null&&t!=="none"}function QC(n,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=n.globalAlpha;n.globalAlpha=t.fillOpacity*t.opacity,n.fill(),n.globalAlpha=e}else n.fill()}function KC(n,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=n.globalAlpha;n.globalAlpha=t.strokeOpacity*t.opacity,n.stroke(),n.globalAlpha=e}else n.stroke()}function _m(n,t,e){var i=GS(t.image,t.__image,e);if(qf(i)){var r=n.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*Iw),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}function iF(n,t,e,i){var r,o=Kh(e),a=Jh(e),s=e.strokePercent,l=s<1,c=!t.path;(!t.silent||l)&&c&&t.createPathProxy();var f=t.path||nF,p=t.__dirty;if(!i){var g=e.fill,d=e.stroke,y=a&&!!g.colorStops,_=o&&!!d.colorStops,m=a&&!!g.image,x=o&&!!d.image,w=void 0,S=void 0,C=void 0,M=void 0,T=void 0;(y||_)&&(T=t.getBoundingRect()),y&&(w=p?mm(n,g,T):t.__canvasFillGradient,t.__canvasFillGradient=w),_&&(S=p?mm(n,d,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),m&&(C=p||!t.__canvasFillPattern?_m(n,g,t):t.__canvasFillPattern,t.__canvasFillPattern=C),x&&(M=p||!t.__canvasStrokePattern?_m(n,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=C),y?n.fillStyle=w:m&&(C?n.fillStyle=C:a=!1),_?n.strokeStyle=S:x&&(M?n.strokeStyle=M:o=!1)}var D=t.getGlobalScale();f.setScale(D[0],D[1],t.segmentIgnoreThreshold);var P,L;n.setLineDash&&e.lineDash&&(r=$C(t),P=r[0],L=r[1]);var O=!0;(c||p&Ua)&&(f.setDPR(n.dpr),l?f.setContext(null):(f.setContext(n),O=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),O&&f.rebuildPath(n,l?s:1),P&&(n.setLineDash(P),n.lineDashOffset=L),i||(e.strokeFirst?(o&&KC(n,e),a&&QC(n,e)):(a&&QC(n,e),o&&KC(n,e))),P&&n.setLineDash([])}function rF(n,t,e){var i=t.__image=GS(e.image,t.__image,t,t.onload);if(!(!i||!qf(i))){var r=e.x||0,o=e.y||0,a=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=i.width,s=i.height),e.sWidth&&e.sHeight){var c=e.sx||0,f=e.sy||0;n.drawImage(i,c,f,e.sWidth,e.sHeight,r,o,a,s)}else if(e.sx&&e.sy){var c=e.sx,f=e.sy,p=a-c,g=s-f;n.drawImage(i,c,f,p,g,r,o,a,s)}else n.drawImage(i,r,o,a,s)}}function oF(n,t,e){var i,r=e.text;if(r!=null&&(r+=""),r){n.font=e.font||go,n.textAlign=e.textAlign,n.textBaseline=e.textBaseline;var o=void 0,a=void 0;n.setLineDash&&e.lineDash&&(i=$C(t),o=i[0],a=i[1]),o&&(n.setLineDash(o),n.lineDashOffset=a),e.strokeFirst?(Kh(e)&&n.strokeText(r,e.x,e.y),Jh(e)&&n.fillText(r,e.x,e.y)):(Jh(e)&&n.fillText(r,e.x,e.y),Kh(e)&&n.strokeText(r,e.x,e.y)),o&&n.setLineDash([])}}var JC=["shadowBlur","shadowOffsetX","shadowOffsetY"],t2=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function e2(n,t,e,i,r){var o=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){mn(n,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);n.globalAlpha=isNaN(a)?Do.opacity:a}(i||t.blend!==e.blend)&&(o||(mn(n,r),o=!0),n.globalCompositeOperation=t.blend||Do.blend);for(var s=0;s<JC.length;s++){var l=JC[s];(i||t[l]!==e[l])&&(o||(mn(n,r),o=!0),n[l]=n.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(o||(mn(n,r),o=!0),n.shadowColor=t.shadowColor||Do.shadowColor),o}function n2(n,t,e,i,r){var o=Lu(t,r.inHover),a=i?null:e&&Lu(e,r.inHover)||{};if(o===a)return!1;var s=e2(n,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(mn(n,r),s=!0),qC(o.fill)&&(n.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(mn(n,r),s=!0),qC(o.stroke)&&(n.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(mn(n,r),s=!0),n.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,c=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);n.lineWidth!==c&&(s||(mn(n,r),s=!0),n.lineWidth=c)}for(var f=0;f<t2.length;f++){var p=t2[f],g=p[0];(i||o[g]!==a[g])&&(s||(mn(n,r),s=!0),n[g]=o[g]||p[1])}return s}function aF(n,t,e,i,r){return e2(n,Lu(t,r.inHover),e&&Lu(e,r.inHover),i,r)}function i2(n,t){var e=t.transform,i=n.dpr||1;e?n.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):n.setTransform(i,0,0,i,0,0)}function sF(n,t,e){for(var i=!1,r=0;r<n.length;r++){var o=n[r];i=i||o.isZeroArea(),i2(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}e.allClipped=i}function lF(n,t){return n&&t?n[0]!==t[0]||n[1]!==t[1]||n[2]!==t[2]||n[3]!==t[3]||n[4]!==t[4]||n[5]!==t[5]:!(!n&&!t)}var r2=1,o2=2,a2=3,s2=4;function uF(n){var t=Jh(n),e=Kh(n);return!(n.lineDash||!(+t^+e)||t&&typeof n.fill!="string"||e&&typeof n.stroke!="string"||n.strokePercent<1||n.strokeOpacity<1||n.fillOpacity<1)}function mn(n,t){t.batchFill&&n.fill(),t.batchStroke&&n.stroke(),t.batchFill="",t.batchStroke=""}function Lu(n,t){return t&&n.__hoverStyle||n.style}function xm(n,t){Zo(n,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Zo(n,t,e,i){var r=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~kn,t.__isRendered=!1;return}var o=t.__clipPaths,a=e.prevElClipPaths,s=!1,l=!1;if((!a||tF(o,a))&&(a&&a.length&&(mn(n,e),n.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),o&&o.length&&(mn(n,e),n.save(),sF(o,n,e),s=!0),e.prevElClipPaths=o),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=e.prevEl;c||(l=s=!0);var f=t instanceof $t&&t.autoBatch&&uF(t.style);s||lF(r,c.transform)?(mn(n,e),i2(n,t)):f||mn(n,e);var p=Lu(t,e.inHover);t instanceof $t?(e.lastDrawType!==r2&&(l=!0,e.lastDrawType=r2),n2(n,t,c,l,e),(!f||!e.batchFill&&!e.batchStroke)&&n.beginPath(),iF(n,t,p,f),f&&(e.batchFill=p.fill||"",e.batchStroke=p.stroke||"")):t instanceof eh?(e.lastDrawType!==a2&&(l=!0,e.lastDrawType=a2),n2(n,t,c,l,e),oF(n,t,p)):t instanceof Ki?(e.lastDrawType!==o2&&(l=!0,e.lastDrawType=o2),aF(n,t,c,l,e),rF(n,t,p)):t.getTemporalDisplayables&&(e.lastDrawType!==s2&&(l=!0,e.lastDrawType=s2),cF(n,t,e)),f&&i&&mn(n,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function cF(n,t,e){var i=t.getDisplayables(),r=t.getTemporalDisplayables();n.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},a,s;for(a=t.getCursor(),s=i.length;a<s;a++){var l=i[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Zo(n,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var c=0,f=r.length;c<f;c++){var l=r[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Zo(n,l,o,c===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,n.restore()}var bm=new WB,l2=new El(100),u2=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function wm(n,t){if(n==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),r=i.painter.type==="svg";n.dirty&&bm.delete(n);var o=bm.get(n);if(o)return o;var a=Wt(n,{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=r?1:1/e,bm.set(n,s),n.dirty=!1,s;function l(c){for(var f=[e],p=!0,g=0;g<u2.length;++g){var d=a[u2[g]];if(d!=null&&!ct(d)&&!gt(d)&&!oe(d)&&typeof d!="boolean"){p=!1;break}f.push(d)}var y;if(p){y=f.join(",")+(r?"-svg":"");var _=l2.get(y);_&&(r?c.svgElement=_:c.image=_)}var m=f2(a.dashArrayX),x=fF(a.dashArrayY),w=c2(a.symbol),S=hF(m),C=h2(x),M=!r&&Yi.createCanvas(),T=r&&{tag:"g",attrs:{},key:"dcl",children:[]},D=L(),P;M&&(M.width=D.width*e,M.height=D.height*e,P=M.getContext("2d")),O(),p&&l2.put(y,M||T),c.image=M,c.svgElement=T,c.svgWidth=D.width,c.svgHeight=D.height;function L(){for(var N=1,B=0,V=S.length;B<V;++B)N=OS(N,S[B]);for(var Z=1,B=0,V=w.length;B<V;++B)Z=OS(Z,w[B].length);N*=Z;var $=C*S.length*w.length;return{width:Math.max(1,Math.min(N,a.maxTileWidth)),height:Math.max(1,Math.min($,a.maxTileHeight))}}function O(){P&&(P.clearRect(0,0,M.width,M.height),a.backgroundColor&&(P.fillStyle=a.backgroundColor,P.fillRect(0,0,M.width,M.height)));for(var N=0,B=0;B<x.length;++B)N+=x[B];if(N<=0)return;for(var V=-C,Z=0,$=0,et=0;V<D.height;){if(Z%2===0){for(var z=$/2%w.length,H=0,K=0,it=0;H<D.width*2;){for(var j=0,B=0;B<m[et].length;++B)j+=m[et][B];if(j<=0)break;if(K%2===0){var U=(1-a.symbolSize)*.5,G=H+m[et][K]*U,Q=V+x[Z]*U,tt=m[et][K]*a.symbolSize,X=x[Z]*a.symbolSize,mt=it/2%w[z].length;ot(G,Q,tt,X,w[z][mt])}H+=m[et][K],++it,++K,K===m[et].length&&(K=0)}++et,et===m.length&&(et=0)}V+=x[Z],++$,++Z,Z===x.length&&(Z=0)}function ot(bt,xt,ut,lt,qt){var Zt=r?1:e,Tt=Ni(qt,bt*Zt,xt*Zt,ut*Zt,lt*Zt,a.color,a.symbolKeepAspect);if(r){var ne=i.painter.renderOneToVNode(Tt);ne&&T.children.push(ne)}else xm(P,Tt)}}}}function c2(n){if(!n||n.length===0)return[["rect"]];if(gt(n))return[[n]];for(var t=!0,e=0;e<n.length;++e)if(!gt(n[e])){t=!1;break}if(t)return c2([n]);for(var i=[],e=0;e<n.length;++e)gt(n[e])?i.push([n[e]]):i.push(n[e]);return i}function f2(n){if(!n||n.length===0)return[[0,0]];if(oe(n)){var t=Math.ceil(n);return[[t,t]]}for(var e=!0,i=0;i<n.length;++i)if(!oe(n[i])){e=!1;break}if(e)return f2([n]);for(var r=[],i=0;i<n.length;++i)if(oe(n[i])){var t=Math.ceil(n[i]);r.push([t,t])}else{var t=pt(n[i],function(s){return Math.ceil(s)});t.length%2===1?r.push(t.concat(t)):r.push(t)}return r}function fF(n){if(!n||typeof n=="object"&&n.length===0)return[0,0];if(oe(n)){var t=Math.ceil(n);return[t,t]}var e=pt(n,function(i){return Math.ceil(i)});return n.length%2?e.concat(e):e}function hF(n){return pt(n,function(t){return h2(t)})}function h2(n){for(var t=0,e=0;e<n.length;++e)t+=n[e];return n.length%2===1?t*2:t}function pF(n,t){n.eachRawSeries(function(e){if(!n.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(a){var s=i.getItemVisual(a,"decal");if(s){var l=i.ensureUniqueItemVisual(a,"style");l.decal=wm(s,t)}});var r=i.getVisual("decal");if(r){var o=i.getVisual("style");o.decal=wm(r,t)}}})}var si=new En,p2={};function dF(n,t){p2[n]=t}function d2(n){return p2[n]}var gF="5.6.0",vF={zrender:"5.6.1"},yF=1,mF=800,_F=900,xF=1e3,bF=2e3,wF=5e3,g2=1e3,SF=1100,Sm=2e3,v2=3e3,kF=4e3,tp=4500,MF=4600,CF=5e3,TF=6e3,y2=7e3,m2={PROCESSOR:{FILTER:xF,SERIES_FILTER:mF,STATISTIC:wF},VISUAL:{LAYOUT:g2,PROGRESSIVE_LAYOUT:SF,GLOBAL:Sm,CHART:v2,POST_CHART_LAYOUT:MF,COMPONENT:kF,BRUSH:CF,CHART_ITEM:tp,ARIA:TF,DECAL:y2}},$e="__flagInMainProcess",_n="__pendingUpdate",km="__needsUpdateStatus",_2=/^[a-zA-Z0-9_]+$/,Mm="__connectUpdateStatus",x2=0,IF=1,DF=2;function b2(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return S2(this,n,t)}}function w2(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S2(this,n,t)}}function S2(n,t,e){return e[0]=e[0]&&e[0].toLowerCase(),En.prototype[t].apply(n,e)}var k2=(function(n){ft(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t})(En),M2=k2.prototype;M2.on=w2("on"),M2.off=w2("off");var _s,Cm,ep,Ur,Tm,Im,Dm,Eu,Ou,C2,T2,Am,I2,np,D2,A2,Zn,P2,ip=(function(n){ft(t,n);function t(e,i,r){var o=n.call(this,new EB)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},gt(i)&&(i=L2[i]),o._dom=e;var a="canvas",s="auto",l=!1;r.ssr&&MS(function(g){var d=Ut(g),y=d.dataIndex;if(y!=null){var _=Mt();return _.set("series_index",d.seriesIndex),_.set("data_index",y),d.ssrType&&_.set("ssr_type",d.ssrType),_}});var c=o._zr=Yv(e,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Nt(r.useDirtyRect,l),useCoarsePointer:Nt(r.useCoarsePointer,s),pointerSize:r.pointerSize});o._ssr=r.ssr,o._throttledZrFlush=Uh(wt(c.flush,c),17),i=Et(i),i&&QM(i,!0),o._theme=i,o._locale=Fz(r.locale||vM),o._coordSysMgr=new Nh;var f=o._api=D2(o);function p(g,d){return g.__prio-d.__prio}return Cf(op,p),Cf(Lm,p),o._scheduler=new FC(o,f,Lm,op),o._messageCenter=new k2,o._initEvents(),o.resize=wt(o.resize,o),c.animation.on("frame",o._onframe,o),C2(c,o),T2(c,o),kl(o),o}return t.prototype._onframe=function(){if(!this._disposed){P2(this);var e=this._scheduler;if(this[_n]){var i=this[_n].silent;this[$e]=!0;try{_s(this),Ur.update.call(this,null,this[_n].updateParams)}catch(l){throw this[$e]=!1,this[_n]=null,l}this._zr.flush(),this[$e]=!1,this[_n]=null,Eu.call(this,i),Ou.call(this,i)}else if(e.unfinished){var r=yF,o=this._model,a=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(o),e.performDataProcessorTasks(o),Im(this,o),e.performVisualTasks(o),np(this,this._model,a,"remain",{}),r-=+new Date-s}while(r>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,r){if(!this[$e]){if(this._disposed){this.id;return}var o,a,s;if(_t(i)&&(r=i.lazyUpdate,o=i.silent,a=i.replaceMerge,s=i.transition,i=i.notMerge),this[$e]=!0,!this._model||i){var l=new d4(this._api),c=this._theme,f=this._model=new nm;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,c,this._locale,l)}this._model.setOption(e,{replaceMerge:a},Em);var p={seriesTransition:s,optionChanged:!0};if(r)this[_n]={silent:o,updateParams:p},this[$e]=!1,this.getZr().wakeUp();else{try{_s(this),Ur.update.call(this,null,p)}catch(g){throw this[_n]=null,this[$e]=!1,g}this._ssr||this._zr.flush(),this[_n]=null,this[$e]=!1,Eu.call(this,o),Ou.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||Ct.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ct.svgSupported){var e=this._zr,i=e.storage.getDisplayList();return E(i,function(r){r.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,r=this._model,o=[],a=this;E(i,function(l){r.eachComponent({mainType:l},function(c){var f=a._componentsMap[c.__viewId];f.group.ignore||(o.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return E(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",r=this.group,o=Math.min,a=Math.max,s=1/0;if(ap[r]){var l=s,c=s,f=-s,p=-s,g=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();E(Yo,function(S,C){if(S.group===r){var M=i?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(Et(e)),T=S.getDom().getBoundingClientRect();l=o(T.left,l),c=o(T.top,c),f=a(T.right,f),p=a(T.bottom,p),g.push({dom:M,left:T.left,top:T.top})}}),l*=d,c*=d,f*=d,p*=d;var y=f-l,_=p-c,m=Yi.createCanvas(),x=Yv(m,{renderer:i?"svg":"canvas"});if(x.resize({width:y,height:_}),i){var w="";return E(g,function(S){var C=S.left-l,M=S.top-c;w+='<g transform="translate('+C+","+M+')">'+S.dom+"</g>"}),x.painter.getSvgRoot().innerHTML=w,e.connectedBackgroundColor&&x.painter.setBackgroundColor(e.connectedBackgroundColor),x.refreshImmediately(),x.painter.toDataURL()}else return e.connectedBackgroundColor&&x.add(new se({shape:{x:0,y:0,width:y,height:_},style:{fill:e.connectedBackgroundColor}})),E(g,function(S){var C=new Ki({style:{x:S.left*d-l,y:S.top*d-c,image:S.dom}});x.add(C)}),x.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return Tm(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return Tm(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var r=this._model,o,a=jl(r,e);return E(a,function(s,l){l.indexOf("Models")>=0&&E(s,function(c){var f=c.coordinateSystem;if(f&&f.containPoint)o=o||!!f.containPoint(i);else if(l==="seriesModels"){var p=this._chartsMap[c.__viewId];p&&p.containPoint&&(o=o||p.containPoint(i,c))}},this)},this),!!o},t.prototype.getVisual=function(e,i){var r=this._model,o=jl(r,e,{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?NB(s,l,i):zB(s,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;E(AF,function(i){var r=function(o){var a=e.getModel(),s=o.target,l,c=i==="globalout";if(c?l={}:s&&Pu(s,function(y){var _=Ut(y);if(_&&_.dataIndex!=null){var m=_.dataModel||a.getSeriesByIndex(_.seriesIndex);return l=m&&m.getDataParams(_.dataIndex,_.dataType,s)||{},!0}else if(_.eventData)return l=st({},_.eventData),!0},!0),l){var f=l.componentType,p=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",p=l.seriesIndex);var g=f&&p!=null&&a.getComponent(f,p),d=g&&e[g.mainType==="series"?"_chartsMap":"_componentsMap"][g.__viewId];l.event=o,l.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:g,view:d},e.trigger(i,l)}};r.zrEventfulCallAtLast=!0,e._zr.on(i,r,e)}),E(Ru,function(i,r){e._messageCenter.on(r,function(o){this.trigger(r,o)},e)}),E(["selectchanged"],function(i){e._messageCenter.on(i,function(r){this.trigger(i,r)},e)}),FB(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 e=this.getDom();e&&VS(this.getDom(),Rm,"");var i=this,r=i._api,o=i._model;E(i._componentsViews,function(a){a.dispose(o,r)}),E(i._chartsViews,function(a){a.dispose(o,r)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Yo[i.id]},t.prototype.resize=function(e){if(!this[$e]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var r=i.resetOption("media"),o=e&&e.silent;this[_n]&&(o==null&&(o=this[_n].silent),r=!0,this[_n]=null),this[$e]=!0;try{r&&_s(this),Ur.update.call(this,{type:"resize",animation:st({duration:0},e&&e.animation)})}catch(a){throw this[$e]=!1,a}this[$e]=!1,Eu.call(this,o),Ou.call(this,o)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(_t(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!Om[e]){var r=Om[e](this._api,i),o=this._zr;this._loadingFX=r,o.add(r)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=st({},e);return i.type=Ru[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(_t(i)||(i={silent:!!i}),!!rp[e.type]&&this._model){if(this[$e]){this._pendingActions.push(e);return}var r=i.silent;Dm.call(this,e,r);var o=i.flush;o?this._zr.flush():o!==!1&&Ct.browser.weChat&&this._throttledZrFlush(),Eu.call(this,r),Ou.call(this,r)}},t.prototype.updateLabelLayout=function(){si.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,r=this.getModel(),o=r.getSeriesByIndex(i);o.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){_s=function(p){var g=p._scheduler;g.restorePipelines(p._model),g.prepareStageTasks(),Cm(p,!0),Cm(p,!1),g.plan()},Cm=function(p,g){for(var d=p._model,y=p._scheduler,_=g?p._componentsViews:p._chartsViews,m=g?p._componentsMap:p._chartsMap,x=p._zr,w=p._api,S=0;S<_.length;S++)_[S].__alive=!1;g?d.eachComponent(function(T,D){T!=="series"&&C(D)}):d.eachSeries(C);function C(T){var D=T.__requireNewView;T.__requireNewView=!1;var P="_ec_"+T.id+"_"+T.type,L=!D&&m[P];if(!L){var O=Ti(T.type),N=g?ze.getClass(O.main,O.sub):Be.getClass(O.sub);L=new N,L.init(d,w),m[P]=L,_.push(L),x.add(L.group)}T.__viewId=L.__id=P,L.__alive=!0,L.__model=T,L.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!g&&y.prepareView(L,T,d,w)}for(var S=0;S<_.length;){var M=_[S];M.__alive?S++:(!g&&M.renderTask.dispose(),x.remove(M.group),M.dispose(d,w),_.splice(S,1),m[M.__id]===M&&delete m[M.__id],M.__id=M.group.__ecComponentInfo=null)}},ep=function(p,g,d,y,_){var m=p._model;if(m.setUpdatePayload(d),!y){E([].concat(p._componentsViews).concat(p._chartsViews),M);return}var x={};x[y+"Id"]=d[y+"Id"],x[y+"Index"]=d[y+"Index"],x[y+"Name"]=d[y+"Name"];var w={mainType:y,query:x};_&&(w.subType=_);var S=d.excludeSeriesId,C;S!=null&&(C=Mt(),E(nn(S),function(T){var D=Ci(T,null);D!=null&&C.set(D,!0)})),m&&m.eachComponent(w,function(T){var D=C&&C.get(T.id)!=null;if(!D)if(Ok(d))if(T instanceof Ye)d.type===zo&&!d.notBlur&&!T.get(["emphasis","disabled"])&&R5(T,d,p._api);else{var P=Sy(T.mainType,T.componentIndex,d.name,p._api),L=P.focusSelf,O=P.dispatchers;d.type===zo&&L&&!d.notBlur&&wy(T.mainType,T.componentIndex,p._api),O&&E(O,function(N){d.type===zo?ts(N):es(N)})}else My(d)&&T instanceof Ye&&(B5(T,d,p._api),Pk(T),Zn(p))},p),m&&m.eachComponent(w,function(T){var D=C&&C.get(T.id)!=null;D||M(p[y==="series"?"_chartsMap":"_componentsMap"][T.__viewId])},p);function M(T){T&&T.__alive&&T[g]&&T[g](T.__model,m,p._api,d)}},Ur={prepareAndUpdate:function(p){_s(this),Ur.update.call(this,p,{optionChanged:p.newOption!=null})},update:function(p,g){var d=this._model,y=this._api,_=this._zr,m=this._coordSysMgr,x=this._scheduler;if(d){d.setUpdatePayload(p),x.restoreData(d,p),x.performSeriesTasks(d),m.create(d,y),x.performDataProcessorTasks(d,p),Im(this,d),m.update(d,y),e(d),x.performVisualTasks(d,p),Am(this,d,y,p,g);var w=d.get("backgroundColor")||"transparent",S=d.get("darkMode");_.setBackgroundColor(w),S!=null&&S!=="auto"&&_.setDarkMode(S),si.trigger("afterupdate",d,y)}},updateTransform:function(p){var g=this,d=this._model,y=this._api;if(d){d.setUpdatePayload(p);var _=[];d.eachComponent(function(x,w){if(x!=="series"){var S=g.getViewOfComponentModel(w);if(S&&S.__alive)if(S.updateTransform){var C=S.updateTransform(w,d,y,p);C&&C.update&&_.push(S)}else _.push(S)}});var m=Mt();d.eachSeries(function(x){var w=g._chartsMap[x.__viewId];if(w.updateTransform){var S=w.updateTransform(x,d,y,p);S&&S.update&&m.set(x.uid,1)}else m.set(x.uid,1)}),e(d),this._scheduler.performVisualTasks(d,p,{setDirty:!0,dirtyMap:m}),np(this,d,y,p,{},m),si.trigger("afterupdate",d,y)}},updateView:function(p){var g=this._model;g&&(g.setUpdatePayload(p),Be.markUpdateMethod(p,"updateView"),e(g),this._scheduler.performVisualTasks(g,p,{setDirty:!0}),Am(this,g,this._api,p,{}),si.trigger("afterupdate",g,this._api))},updateVisual:function(p){var g=this,d=this._model;d&&(d.setUpdatePayload(p),d.eachSeries(function(y){y.getData().clearAllVisual()}),Be.markUpdateMethod(p,"updateVisual"),e(d),this._scheduler.performVisualTasks(d,p,{visualType:"visual",setDirty:!0}),d.eachComponent(function(y,_){if(y!=="series"){var m=g.getViewOfComponentModel(_);m&&m.__alive&&m.updateVisual(_,d,g._api,p)}}),d.eachSeries(function(y){var _=g._chartsMap[y.__viewId];_.updateVisual(y,d,g._api,p)}),si.trigger("afterupdate",d,this._api))},updateLayout:function(p){Ur.update.call(this,p)}},Tm=function(p,g,d,y){if(p._disposed){p.id;return}for(var _=p._model,m=p._coordSysMgr.getCoordinateSystems(),x,w=jl(_,d),S=0;S<m.length;S++){var C=m[S];if(C[g]&&(x=C[g](_,w,y))!=null)return x}},Im=function(p,g){var d=p._chartsMap,y=p._scheduler;g.eachSeries(function(_){y.updateStreamModes(_,d[_.__viewId])})},Dm=function(p,g){var d=this,y=this.getModel(),_=p.type,m=p.escapeConnect,x=rp[_],w=x.actionInfo,S=(w.update||"update").split(":"),C=S.pop(),M=S[0]!=null&&Ti(S[0]);this[$e]=!0;var T=[p],D=!1;p.batch&&(D=!0,T=pt(p.batch,function(Z){return Z=Wt(st({},Z),p),Z.batch=null,Z}));var P=[],L,O=My(p),N=Ok(p);if(N&&Ak(this._api),E(T,function(Z){if(L=x.action(Z,d._model,d._api),L=L||st({},Z),L.type=w.event||L.type,P.push(L),N){var $=ty(p),et=$.queryOptionMap,z=$.mainTypeSpecified,H=z?et.keys()[0]:"series";ep(d,C,Z,H),Zn(d)}else O?(ep(d,C,Z,"series"),Zn(d)):M&&ep(d,C,Z,M.main,M.sub)}),C!=="none"&&!N&&!O&&!M)try{this[_n]?(_s(this),Ur.update.call(this,p),this[_n]=null):Ur[C].call(this,p)}catch(Z){throw this[$e]=!1,Z}if(D?L={type:w.event||_,escapeConnect:m,batch:P}:L=P[0],this[$e]=!1,!g){var B=this._messageCenter;if(B.trigger(L.type,L),O){var V={type:"selectchanged",escapeConnect:m,selected:F5(y),isFromClick:p.isFromClick||!1,fromAction:p.type,fromActionPayload:p};B.trigger(V.type,V)}}},Eu=function(p){for(var g=this._pendingActions;g.length;){var d=g.shift();Dm.call(this,d,p)}},Ou=function(p){!p&&this.trigger("updated")},C2=function(p,g){p.on("rendered",function(d){g.trigger("rendered",d),p.animation.isFinished()&&!g[_n]&&!g._scheduler.unfinished&&!g._pendingActions.length&&g.trigger("finished")})},T2=function(p,g){p.on("mouseover",function(d){var y=d.target,_=Pu(y,ky);_&&(N5(_,d,g._api),Zn(g))}).on("mouseout",function(d){var y=d.target,_=Pu(y,ky);_&&(z5(_,d,g._api),Zn(g))}).on("click",function(d){var y=d.target,_=Pu(y,function(w){return Ut(w).dataIndex!=null},!0);if(_){var m=_.selected?"unselect":"select",x=Ut(_);g._api.dispatchAction({type:m,dataType:x.dataType,dataIndexInside:x.dataIndex,seriesIndex:x.seriesIndex,isFromClick:!0})}})};function e(p){p.clearColorPalette(),p.eachSeries(function(g){g.clearColorPalette()})}function i(p){var g=[],d=[],y=!1;if(p.eachComponent(function(w,S){var C=S.get("zlevel")||0,M=S.get("z")||0,T=S.getZLevelKey();y=y||!!T,(w==="series"?d:g).push({zlevel:C,z:M,idx:S.componentIndex,type:w,key:T})}),y){var _=g.concat(d),m,x;Cf(_,function(w,S){return w.zlevel===S.zlevel?w.z-S.z:w.zlevel-S.zlevel}),E(_,function(w){var S=p.getComponent(w.type,w.idx),C=w.zlevel,M=w.key;m!=null&&(C=Math.max(m,C)),M?(C===m&&M!==x&&C++,x=M):x&&(C===m&&C++,x=""),m=C,S.setZLevel(C)})}}Am=function(p,g,d,y,_){i(g),I2(p,g,d,y,_),E(p._chartsViews,function(m){m.__alive=!1}),np(p,g,d,y,_),E(p._chartsViews,function(m){m.__alive||m.remove(g,d)})},I2=function(p,g,d,y,_,m){E(m||p._componentsViews,function(x){var w=x.__model;c(w,x),x.render(w,g,d,y),s(w,x),f(w,x)})},np=function(p,g,d,y,_,m){var x=p._scheduler;_=st(_||{},{updatedSeries:g.getSeries()}),si.trigger("series:beforeupdate",g,d,_);var w=!1;g.eachSeries(function(S){var C=p._chartsMap[S.__viewId];C.__alive=!0;var M=C.renderTask;x.updatePayload(M,y),c(S,C),m&&m.get(S.uid)&&M.dirty(),M.perform(x.getPerformArgs(M))&&(w=!0),C.group.silent=!!S.get("silent"),a(S,C),Pk(S)}),x.unfinished=w||x.unfinished,si.trigger("series:layoutlabels",g,d,_),si.trigger("series:transition",g,d,_),g.eachSeries(function(S){var C=p._chartsMap[S.__viewId];s(S,C),f(S,C)}),o(p,g),si.trigger("series:afterupdate",g,d,_)},Zn=function(p){p[km]=!0,p.getZr().wakeUp()},P2=function(p){p[km]&&(p.getZr().storage.traverse(function(g){as(g)||r(g)}),p[km]=!1)};function r(p){for(var g=[],d=p.currentStates,y=0;y<d.length;y++){var _=d[y];_==="emphasis"||_==="blur"||_==="select"||g.push(_)}p.selected&&p.states.select&&g.push("select"),p.hoverState===ih&&p.states.emphasis?g.push("emphasis"):p.hoverState===nh&&p.states.blur&&g.push("blur"),p.useStates(g)}function o(p,g){var d=p._zr,y=d.storage,_=0;y.traverse(function(m){m.isGroup||_++}),_>g.get("hoverLayerThreshold")&&!Ct.node&&!Ct.worker&&g.eachSeries(function(m){if(!m.preventUsingHoverLayer){var x=p._chartsMap[m.__viewId];x.__alive&&x.eachRendered(function(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}function a(p,g){var d=p.get("blendMode")||null;g.eachRendered(function(y){y.isGroup||(y.style.blend=d)})}function s(p,g){if(!p.preventAutoZ){var d=p.get("z")||0,y=p.get("zlevel")||0;g.eachRendered(function(_){return l(_,d,y,-1/0),!0})}}function l(p,g,d,y){var _=p.getTextContent(),m=p.getTextGuideLine(),x=p.isGroup;if(x)for(var w=p.childrenRef(),S=0;S<w.length;S++)y=Math.max(l(w[S],g,d,y),y);else p.z=g,p.zlevel=d,y=Math.max(p.z2,y);if(_&&(_.z=g,_.zlevel=d,isFinite(y)&&(_.z2=y+2)),m){var C=p.textGuideLineConfig;m.z=g,m.zlevel=d,isFinite(y)&&(m.z2=y+(C&&C.showAbove?1:-1))}return y}function c(p,g){g.eachRendered(function(d){if(!as(d)){var y=d.getTextContent(),_=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),_&&_.stateTransition&&(_.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function f(p,g){var d=p.getModel("stateAnimation"),y=p.isAnimationEnabled(),_=d.get("duration"),m=_>0?{duration:_,delay:d.get("delay"),easing:d.get("easing")}:null;g.eachRendered(function(x){if(x.states&&x.states.emphasis){if(as(x))return;if(x instanceof $t&&G5(x),x.__dirty){var w=x.prevStates;w&&x.useStates(w)}if(y){x.stateTransition=m;var S=x.getTextContent(),C=x.getTextGuideLine();S&&(S.stateTransition=m),C&&(C.stateTransition=m)}x.__dirty&&r(x)}})}D2=function(p){return new((function(g){ft(d,g);function d(){return g!==null&&g.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(y){for(;y;){var _=y.__ecComponentInfo;if(_!=null)return p._model.getComponent(_.mainType,_.index);y=y.parent}},d.prototype.enterEmphasis=function(y,_){ts(y,_),Zn(p)},d.prototype.leaveEmphasis=function(y,_){es(y,_),Zn(p)},d.prototype.enterBlur=function(y){O5(y),Zn(p)},d.prototype.leaveBlur=function(y){Ck(y),Zn(p)},d.prototype.enterSelect=function(y){Tk(y),Zn(p)},d.prototype.leaveSelect=function(y){Ik(y),Zn(p)},d.prototype.getModel=function(){return p.getModel()},d.prototype.getViewOfComponentModel=function(y){return p.getViewOfComponentModel(y)},d.prototype.getViewOfSeriesModel=function(y){return p.getViewOfSeriesModel(y)},d})(GM))(p)},A2=function(p){function g(d,y){for(var _=0;_<d.length;_++){var m=d[_];m[Mm]=y}}E(Ru,function(d,y){p._messageCenter.on(y,function(_){if(ap[p.group]&&p[Mm]!==x2){if(_&&_.escapeConnect)return;var m=p.makeActionFromEvent(_),x=[];E(Yo,function(w){w!==p&&w.group===p.group&&x.push(w)}),g(x,x2),E(x,function(w){w[Mm]!==IF&&w.dispatchAction(m)}),g(x,DF)}})})}})(),t})(En),Pm=ip.prototype;Pm.on=b2("on"),Pm.off=b2("off"),Pm.one=function(n,t,e){var i=this;function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),i.off(n,r)}this.on.call(this,n,r,e)};var AF=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],rp={},Ru={},Lm=[],Em=[],op=[],L2={},Om={},Yo={},ap={},PF=+new Date-0,LF=+new Date-0,Rm="_echarts_instance_";function EF(n,t,e){var i=!(e&&e.ssr);if(i){var r=Nm(n);if(r)return r}var o=new ip(n,t,e);return o.id="ec_"+PF++,Yo[o.id]=o,i&&VS(n,Rm,o.id),A2(o),si.trigger("afterinit",o),o}function OF(n){if(ct(n)){var t=n;n=null,E(t,function(e){e.group!=null&&(n=e.group)}),n=n||"g_"+LF++,E(t,function(e){e.group=n})}return ap[n]=!0,n}function E2(n){ap[n]=!1}var RF=E2;function NF(n){gt(n)?n=Yo[n]:n instanceof ip||(n=Nm(n)),n instanceof ip&&!n.isDisposed()&&n.dispose()}function Nm(n){return Yo[M3(n,Rm)]}function zF(n){return Yo[n]}function zm(n,t){L2[n]=t}function Bm(n){Vt(Em,n)<0&&Em.push(n)}function Fm(n,t){Vm(Lm,n,t,bF)}function O2(n){sp("afterinit",n)}function R2(n){sp("afterupdate",n)}function sp(n,t){si.on(n,t)}function li(n,t,e){St(t)&&(e=t,t="");var i=_t(n)?n.type:[n,n={event:t}][0];n.event=(n.event||i).toLowerCase(),t=n.event,!Ru[t]&&(ti(_2.test(i)&&_2.test(t)),rp[i]||(rp[i]={action:e,actionInfo:n}),Ru[t]=i)}function N2(n,t){Nh.register(n,t)}function BF(n){var t=Nh.get(n);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function z2(n,t){Vm(op,n,t,g2,"layout")}function Gr(n,t){Vm(op,n,t,v2,"visual")}var B2=[];function Vm(n,t,e,i,r){if((St(t)||_t(t))&&(e=t,t=i),!(Vt(B2,e)>=0)){B2.push(e);var o=FC.wrapStageHandler(e,r);o.__prio=t,o.__raw=e,n.push(o)}}function Hm(n,t){Om[n]=t}function FF(n){_w({createCanvas:n})}function F2(n,t,e){var i=d2("registerMap");i&&i(n,t,e)}function VF(n){var t=d2("getMap");return t&&t(n)}var V2=G4;Gr(Sm,_B),Gr(tp,xB),Gr(tp,bB),Gr(Sm,OB),Gr(tp,RB),Gr(y2,pF),Bm(QM),Fm(_F,C4),Hm("default",wB),li({type:zo,event:zo,update:zo},Ue),li({type:oh,event:oh,update:oh},Ue),li({type:Ql,event:Ql,update:Ql},Ue),li({type:ah,event:ah,update:ah},Ue),li({type:Kl,event:Kl,update:Kl},Ue),zm("light",LB),zm("dark",ZC);var HF={};function Nu(n){return n==null?0:n.length||1}function H2(n){return n}var Wm=(function(){function n(t,e,i,r,o,a){this._old=t,this._new=e,this._oldKeyGetter=i||H2,this._newKeyGetter=r||H2,this.context=o,this._diffModeMultiple=a==="multiple"}return n.prototype.add=function(t){return this._add=t,this},n.prototype.update=function(t){return this._update=t,this},n.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},n.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},n.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},n.prototype.remove=function(t){return this._remove=t,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},r=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=r[a],l=i[s],c=Nu(l);if(c>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,a)}else c===1?(i[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,i)},n.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},r={},o=[],a=[];this._initIndexMap(t,i,o,"_oldKeyGetter"),this._initIndexMap(e,r,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],c=i[l],f=r[l],p=Nu(c),g=Nu(f);if(p>1&&g===1)this._updateManyToOne&&this._updateManyToOne(f,c),r[l]=null;else if(p===1&&g>1)this._updateOneToMany&&this._updateOneToMany(f,c),r[l]=null;else if(p===1&&g===1)this._update&&this._update(f,c),r[l]=null;else if(p>1&&g>1)this._updateManyToMany&&this._updateManyToMany(f,c),r[l]=null;else if(p>1)for(var d=0;d<p;d++)this._remove&&this._remove(c[d]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},n.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var r=t[i],o=e[r],a=Nu(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);e[r]=null}},n.prototype._initIndexMap=function(t,e,i,r){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[r](t[a],a);if(o||(i[a]=s),!!e){var l=e[s],c=Nu(l);c===0?(e[s]=a,o&&i.push(s)):c===1?e[s]=[l,a]:l.push(a)}}},n})(),WF=(function(){function n(t,e){this._encode=t,this._schema=e}return n.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},n.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},n})();function UF(n,t){var e={},i=e.encode={},r=Mt(),o=[],a=[],s={};E(n.dimensions,function(g){var d=n.getDimensionInfo(g),y=d.coordDim;if(y){var _=d.coordDimIndex;Um(i,y)[_]=g,d.isExtraCoord||(r.set(y,1),GF(d.type)&&(o[0]=g),Um(s,y)[_]=n.getDimensionIndex(d.name)),d.defaultTooltip&&a.push(g)}LM.each(function(m,x){var w=Um(i,x),S=d.otherDims[x];S!=null&&S!==!1&&(w[S]=d.name)})});var l=[],c={};r.each(function(g,d){var y=i[d];c[d]=y[0],l=l.concat(y)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=pt(l,function(g){return n.getDimensionInfo(g).storeDimIndex}),e.encodeFirstDimNotExtra=c;var f=i.label;f&&f.length&&(o=f.slice());var p=i.tooltip;return p&&p.length?a=p.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,e.userOutput=new WF(s,t),e}function Um(n,t){return n.hasOwnProperty(t)||(n[t]=[]),n[t]}function Gm(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function GF(n){return!(n==="ordinal"||n==="time")}var lp=(function(){function n(t){this.otherDims={},t!=null&&st(this,t)}return n})(),jF=fe(),ZF={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},W2=(function(){function n(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=j2(this.source)))},n.prototype.getSourceDimensionIndex=function(t){return Nt(this._dimNameMap.get(t),-1)},n.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},n.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=nC(this.source),i=!Z2(t),r="",o=[],a=0,s=0;a<t;a++){var l=void 0,c=void 0,f=void 0,p=this.dimensions[s];if(p&&p.storeDimIndex===a)l=e?p.name:null,c=p.type,f=p.ordinalMeta,s++;else{var g=this.getSourceDimension(a);g&&(l=e?g.name:null,c=g.type)}o.push({property:l,type:c,ordinalMeta:f}),e&&l!=null&&(!p||!p.isCalculationCoord)&&(r+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),r+="$",r+=ZF[c]||"f",f&&(r+=f.uid),r+="$"}var d=this.source,y=[d.seriesLayoutBy,d.startIndex,r].join("$$");return{dimensions:o,hash:y}},n.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var r=void 0,o=this.dimensions[i];if(o&&o.storeDimIndex===e)o.isCalculationCoord||(r=o.name),i++;else{var a=this.getSourceDimension(e);a&&(r=a.name)}t.push(r)}return t},n.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},n})();function U2(n){return n instanceof W2}function G2(n){for(var t=Mt(),e=0;e<(n||[]).length;e++){var i=n[e],r=_t(i)?i.name:i;r!=null&&t.get(r)==null&&t.set(r,e)}return t}function j2(n){var t=jF(n);return t.dimNameMap||(t.dimNameMap=G2(n.dimensionsDefine))}function Z2(n){return n>30}var zu=_t,jr=pt,YF=typeof Int32Array>"u"?Array:Int32Array,XF="e\0\0",Y2=-1,$F=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],qF=["_approximateExtent"],X2,up,Bu,Fu,jm,Vu,Zm,Ym=(function(){function n(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,r=!1;U2(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,i=t),i=i||["x","y"];for(var o={},a=[],s={},l=!1,c={},f=0;f<i.length;f++){var p=i[f],g=gt(p)?new lp({name:p}):p instanceof lp?p:new lp(p),d=g.name;g.type=g.type||"float",g.coordDim||(g.coordDim=d,g.coordDimIndex=0);var y=g.otherDims=g.otherDims||{};a.push(d),o[d]=g,c[d]!=null&&(l=!0),g.createInvertedIndices&&(s[d]=[]),y.itemName===0&&(this._nameDimIdx=f),y.itemId===0&&(this._idDimIdx=f),r&&(g.storeDimIndex=f)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var _=this._dimIdxToName=Mt();E(a,function(m){_.set(o[m].storeDimIndex,m)})}}return n.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var r=this._schema.getSourceDimension(e);if(r)return r.name},n.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},n.prototype._recognizeDimIndex=function(t){if(oe(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},n.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},n.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},n.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var r=i.encode[t];return r?r[e]:null},n.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,i=e.encode[t];return(i||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(t,e,i){var r=this,o;if(t instanceof hm&&(o=t),!o){var a=this.dimensions,s=am(t)||Ke(t)?new oC(t,a.length):t;o=new hm;var l=jr(a,function(c){return{type:r._dimInfos[c].type,property:c}});o.initData(s,l,i)}this._store=o,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=UF(this,this._schema),this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},n.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e&&e.length),r=i.start,o=i.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=r;s<o;s++){var l=s-r;this._nameList[s]=e[l],a&&Zm(this,s)}},n.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var r=this._dimInfos[e[i]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},n.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Hr&&!t.fillStorage},n.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,r=i.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=r.getSource().sourceFormat,l=s===Gn;if(l&&!r.pure)for(var c=[],f=t;f<e;f++){var p=r.getItem(f,c);if(!this.hasItemOption&&h3(p)&&(this.hasItemOption=!0),p){var g=p.name;o[f]==null&&g!=null&&(o[f]=Ci(g,null));var d=p.id;a[f]==null&&d!=null&&(a[f]=Ci(d,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Zm(this,f);X2(this)}},n.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},n.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},n.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},n.prototype.setCalculationInfo=function(t,e){zu(t)?st(this._calculationInfo,t):this._calculationInfo[t]=e},n.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=Bu(this,this._nameDimIdx,e)),i==null&&(i=""),i},n.prototype._getCategory=function(t,e){var i=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[i]:i},n.prototype.getId=function(t){return up(this,this.getRawIndex(t))},n.prototype.count=function(){return this._store.count()},n.prototype.get=function(t,e){var i=this._store,r=this._dimInfos[t];if(r)return i.get(r.storeDimIndex,e)},n.prototype.getByRawIndex=function(t,e){var i=this._store,r=this._dimInfos[t];if(r)return i.getByRawIndex(r.storeDimIndex,e)},n.prototype.getIndices=function(){return this._store.getIndices()},n.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},n.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},n.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},n.prototype.getValues=function(t,e){var i=this,r=this._store;return ct(t)?r.getValues(jr(t,function(o){return i._getStoreDimIndex(o)}),e):r.getValues(t)},n.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,r=e.length;i<r;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},n.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},n.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},n.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},n.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],r=i&&i[e];return r==null||isNaN(r)?Y2:r},n.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},n.prototype.each=function(t,e,i){St(t)&&(i=e,e=t,t=[]);var r=i||this,o=jr(Fu(t),this._getStoreDimIndex,this);this._store.each(o,r?wt(e,r):e)},n.prototype.filterSelf=function(t,e,i){St(t)&&(i=e,e=t,t=[]);var r=i||this,o=jr(Fu(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,r?wt(e,r):e),this},n.prototype.selectRange=function(t){var e=this,i={},r=ce(t);return E(r,function(o){var a=e._getStoreDimIndex(o);i[a]=t[o]}),this._store=this._store.selectRange(i),this},n.prototype.mapArray=function(t,e,i){St(t)&&(i=e,e=t,t=[]),i=i||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i),r},n.prototype.map=function(t,e,i,r){var o=i||r||this,a=jr(Fu(t),this._getStoreDimIndex,this),s=Vu(this);return s._store=this._store.map(a,o?wt(e,o):e),s},n.prototype.modify=function(t,e,i,r){var o=i||r||this,a=jr(Fu(t),this._getStoreDimIndex,this);this._store.modify(a,o?wt(e,o):e)},n.prototype.downSample=function(t,e,i,r){var o=Vu(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,i,r),o},n.prototype.minmaxDownSample=function(t,e){var i=Vu(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),i},n.prototype.lttbDownSample=function(t,e){var i=Vu(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},n.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},n.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new he(i,e,e&&e.ecModel)},n.prototype.diff=function(t){var e=this;return new Wm(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return up(t,i)},function(i){return up(e,i)})},n.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},n.prototype.setVisual=function(t,e){this._visual=this._visual||{},zu(t)?st(this._visual,t):this._visual[t]=e},n.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],r=i&&i[e];return r??this.getVisual(e)},n.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},n.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,r=i[t];r||(r=i[t]={});var o=r[e];return o==null&&(o=this.getVisual(e),ct(o)?o=o.slice():zu(o)&&(o=st({},o)),r[e]=o),o},n.prototype.setItemVisual=function(t,e,i){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,zu(e)?st(r,e):r[e]=i},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(t,e){zu(t)?st(this._layout,t):this._layout[t]=e},n.prototype.getLayout=function(t){return this._layout[t]},n.prototype.getItemLayout=function(t){return this._itemLayouts[t]},n.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?st(this._itemLayouts[t]||{},e):e},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;k5(i,this.dataType,t,e),this._graphicEls[t]=e},n.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},n.prototype.eachItemGraphicEl=function(t,e){E(this._graphicEls,function(i,r){i&&t&&t.call(e,i,r)})},n.prototype.cloneShallow=function(t){return t||(t=new n(this._schema?this._schema:jr(this.dimensions,this._getDimInfo,this),this.hostModel)),jm(t,this),t._store=this._store,t},n.prototype.wrapMethod=function(t,e){var i=this[t];St(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var r=i.apply(this,arguments);return e.apply(this,[r].concat(yf(arguments)))})},n.internalField=(function(){X2=function(t){var e=t._invertedIndicesMap;E(e,function(i,r){var o=t._dimInfos[r],a=o.ordinalMeta,s=t._store;if(a){i=e[r]=new YF(a.categories.length);for(var l=0;l<i.length;l++)i[l]=Y2;for(var l=0;l<s.count();l++)i[s.get(o.storeDimIndex,l)]=l}})},Bu=function(t,e,i){return Ci(t._getCategory(e,i),null)},up=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=Bu(t,t._idDimIdx,e)),i==null&&(i=XF+e),i},Fu=function(t){return ct(t)||(t=t!=null?[t]:[]),t},Vu=function(t){var e=new n(t._schema?t._schema:jr(t.dimensions,t._getDimInfo,t),t.hostModel);return jm(e,t),e},jm=function(t,e){E($F.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,E(qF,function(i){t[i]=Et(e[i])}),t._calculationInfo=st({},e._calculationInfo)},Zm=function(t,e){var i=t._nameList,r=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=i[e],l=r[e];if(s==null&&o!=null&&(i[e]=s=Bu(t,o,e)),l==null&&a!=null&&(r[e]=l=Bu(t,a,e)),l==null&&s!=null){var c=t._nameRepeatCount,f=c[s]=(c[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),r[e]=l}}})(),n})();function QF(n,t){return Xm(n,t).dimensions}function Xm(n,t){am(n)||(n=KM(n)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||n.dimensionsDefine||[],r=Mt(),o=[],a=JF(n,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Z2(a),l=i===n.dimensionsDefine,c=l?j2(n):G2(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(n,a));for(var p=Mt(f),g=new dC(a),d=0;d<g.length;d++)g[d]=-1;function y(L){var O=g[L];if(O<0){var N=i[L],B=_t(N)?N:{name:N},V=new lp,Z=B.name;Z!=null&&c.get(Z)!=null&&(V.name=V.displayName=Z),B.type!=null&&(V.type=B.type),B.displayName!=null&&(V.displayName=B.displayName);var $=o.length;return g[L]=$,V.storeDimIndex=L,o.push(V),V}return o[O]}if(!s)for(var d=0;d<a;d++)y(d);p.each(function(L,O){var N=nn(L).slice();if(N.length===1&&!gt(N[0])&&N[0]<0){p.set(O,!1);return}var B=p.set(O,[]);E(N,function(V,Z){var $=gt(V)?c.get(V):V;$!=null&&$<a&&(B[Z]=$,m(y($),O,Z))})});var _=0;E(e,function(L){var O,N,B,V;if(gt(L))O=L,V={};else{V=L,O=V.name;var Z=V.ordinalMeta;V.ordinalMeta=null,V=st({},V),V.ordinalMeta=Z,N=V.dimsDef,B=V.otherDims,V.name=V.coordDim=V.coordDimIndex=V.dimsDef=V.otherDims=null}var $=p.get(O);if($!==!1){if($=nn($),!$.length)for(var et=0;et<(N&&N.length||1);et++){for(;_<a&&y(_).coordDim!=null;)_++;_<a&&$.push(_++)}E($,function(z,H){var K=y(z);if(l&&V.type!=null&&(K.type=V.type),m(Wt(K,V),O,H),K.name==null&&N){var it=N[H];!_t(it)&&(it={name:it}),K.name=K.displayName=it.name,K.defaultTooltip=it.defaultTooltip}B&&Wt(K.otherDims,B)})}});function m(L,O,N){LM.get(O)!=null?L.otherDims[O]=N:(L.coordDim=O,L.coordDimIndex=N,r.set(O,!0))}var x=t.generateCoord,w=t.generateCoordCount,S=w!=null;w=x?w||1:0;var C=x||"value";function M(L){L.name==null&&(L.name=L.coordDim)}if(s)E(o,function(L){M(L)}),o.sort(function(L,O){return L.storeDimIndex-O.storeDimIndex});else for(var T=0;T<a;T++){var D=y(T),P=D.coordDim;P==null&&(D.coordDim=tV(C,r,S),D.coordDimIndex=0,(!x||w<=0)&&(D.isExtraCoord=!0),w--),M(D),D.type==null&&(NM(n,T)===Ne.Must||D.isExtraCoord&&(D.otherDims.itemName!=null||D.otherDims.seriesName!=null))&&(D.type="ordinal")}return KF(o),new W2({source:n,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function KF(n){for(var t=Mt(),e=0;e<n.length;e++){var i=n[e],r=i.name,o=t.get(r)||0;o>0&&(i.name=r+(o-1)),o++,t.set(r,o)}}function JF(n,t,e,i){var r=Math.max(n.dimensionsDetectedCount||1,t.length,e.length,i||0);return E(t,function(o){var a;_t(o)&&(a=o.dimsDef)&&(r=Math.max(r,a.length))}),r}function tV(n,t,e){if(e||t.hasKey(n)){for(var i=0;t.hasKey(n+i);)i++;n+=i}return t.set(n,!0),n}var eV=(function(){function n(t){this.coordSysDims=[],this.axisMap=Mt(),this.categoryAxisMap=Mt(),this.coordSysName=t}return n})();function nV(n){var t=n.get("coordinateSystem"),e=new eV(t),i=iV[t];if(i)return i(n,e,e.axisMap,e.categoryAxisMap),e}var iV={cartesian2d:function(n,t,e,i){var r=n.getReferringComponents("xAxis",rn).models[0],o=n.getReferringComponents("yAxis",rn).models[0];t.coordSysDims=["x","y"],e.set("x",r),e.set("y",o),xs(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),xs(o)&&(i.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(n,t,e,i){var r=n.getReferringComponents("singleAxis",rn).models[0];t.coordSysDims=["single"],e.set("single",r),xs(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(n,t,e,i){var r=n.getReferringComponents("polar",rn).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",o),e.set("angle",a),xs(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),xs(a)&&(i.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(n,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(n,t,e,i){var r=n.ecModel,o=r.getComponent("parallel",n.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();E(o.parallelAxisIndex,function(s,l){var c=r.getComponent("parallelAxis",s),f=a[l];e.set(f,c),xs(c)&&(i.set(f,c),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function xs(n){return n.get("type")==="category"}function $2(n,t,e){e=e||{};var i=e.byIndex,r=e.stackedCoordDimension,o,a,s;rV(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(n&&n.get("stack")),c,f,p,g;if(E(o,function(w,S){gt(w)&&(o[S]=w={name:w}),l&&!w.isExtraCoord&&(!i&&!c&&w.ordinalMeta&&(c=w),!f&&w.type!=="ordinal"&&w.type!=="time"&&(!r||r===w.coordDim)&&(f=w))}),f&&!i&&!c&&(i=!0),f){p="__\0ecstackresult_"+n.id,g="__\0ecstackedover_"+n.id,c&&(c.createInvertedIndices=!0);var d=f.coordDim,y=f.type,_=0;E(o,function(w){w.coordDim===d&&_++});var m={name:p,coordDim:d,coordDimIndex:_,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},x={name:g,coordDim:g,coordDimIndex:_+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(m.storeDimIndex=s.ensureCalculationDimension(g,y),x.storeDimIndex=s.ensureCalculationDimension(p,y)),a.appendCalculationDimension(m),a.appendCalculationDimension(x)):(o.push(m),o.push(x))}return{stackedDimension:f&&f.name,stackedByDimension:c&&c.name,isStackedByIndex:i,stackedOverDimension:g,stackResultDimension:p}}function rV(n){return!U2(n.schema)}function Xo(n,t){return!!t&&t===n.getCalculationInfo("stackedDimension")}function q2(n,t){return Xo(n,t)?n.getCalculationInfo("stackResultDimension"):t}function oV(n,t){var e=n.get("coordinateSystem"),i=Nh.get(e),r;return t&&t.coordSysDims&&(r=pt(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=Gm(l)}return a})),r||(r=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),r}function aV(n,t,e){var i,r;return e&&E(n,function(o,a){var s=o.coordDim,l=e.categoryAxisMap.get(s);l&&(i==null&&(i=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(r=!0)}),!r&&i!=null&&(n[i].otherDims.itemName=0),i}function Hu(n,t,e){e=e||{};var i=t.getSourceManager(),r,o=!1;r=i.getSource(),o=r.sourceFormat===Gn;var a=nV(t),s=oV(t,a),l=e.useEncodeDefaulter,c=St(l)?l:l?Gt(RM,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},p=Xm(r,f),g=aV(p.dimensions,e.createInvertedIndices,a),d=o?null:i.getSharedDataStore(p),y=$2(t,{schema:p,store:d}),_=new Ym(p,t);_.setCalculationInfo(y);var m=g!=null&&sV(r)?function(x,w,S,C){return C===g?S:this.defaultDimValueGetter(x,w,S,C)}:null;return _.hasItemOption=!1,_.initData(o?r:d,null,m),_}function sV(n){if(n.sourceFormat===Gn){var t=lV(n.data||[]);return!ct(Wl(t))}}function lV(n){for(var t=0;t<n.length&&n[t]==null;)t++;return n[t]}var zi=(function(){function n(t){this._setting=t||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(t){return this._setting[t]},n.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(t){this._isBlank=t},n})();$f(zi);var uV=0,$m=(function(){function n(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++uV}return n.createByAxisModel=function(t){var e=t.option,i=e.data,r=i&&pt(i,cV);return new n({categories:r,needCollect:!r,deduplication:e.dedplication!==!1})},n.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},n.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!gt(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},n.prototype._getOrCreateMap=function(){return this._map||(this._map=Mt(this.categories))},n})();function cV(n){return _t(n)&&n.value!=null?n.value:n+""}function qm(n){return n.type==="interval"||n.type==="log"}function fV(n,t,e,i){var r={},o=n[1]-n[0],a=r.interval=Qv(o/t,!0);e!=null&&a<e&&(a=r.interval=e),i!=null&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=Q2(a),l=r.niceTickExtent=[Ce(Math.ceil(n[0]/a)*a,s),Ce(Math.floor(n[1]/a)*a,s)];return hV(l,n),r}function Qm(n){var t=Math.pow(10,Xf(n)),e=n/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Ce(e*t)}function Q2(n){return Mi(n)+2}function K2(n,t,e){n[t]=Math.max(Math.min(n[t],e[1]),e[0])}function hV(n,t){!isFinite(n[0])&&(n[0]=t[0]),!isFinite(n[1])&&(n[1]=t[1]),K2(n,0,t),K2(n,1,t),n[0]>n[1]&&(n[0]=n[1])}function cp(n,t){return n>=t[0]&&n<=t[1]}function fp(n,t){return t[1]===t[0]?.5:(n-t[0])/(t[1]-t[0])}function hp(n,t){return n*(t[1]-t[0])+t[0]}var Km=(function(n){ft(t,n);function t(e){var i=n.call(this,e)||this;i.type="ordinal";var r=i.getSetting("ordinalMeta");return r||(r=new $m({})),ct(r)&&(r=new $m({categories:pt(r,function(o){return _t(o)?o.value:o})})),i._ordinalMeta=r,i._extent=i.getSetting("extent")||[0,r.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:gt(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),cp(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),fp(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(hp(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,r=i[0];r<=i[1];)e.push({value:r}),r++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=e.ordinalNumbers,r=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);a<l;++a){var c=i[a];r[a]=c,o[c]=a}for(var f=0;a<s;++a){for(;o[f]!=null;)f++;r.push(f),o[f]=a}},t.prototype._getTickNumber=function(e){var i=this._ticksByOrdinalNumber;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getRawOrdinalNumber=function(e){var i=this._ordinalNumbersByTick;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var i=this.getRawOrdinalNumber(e.value),r=this._ordinalMeta.categories[i];return r==null?"":r+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(zi);zi.registerClass(Km);var $o=Ce,bs=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return cp(e,this._extent)},t.prototype.normalize=function(e){return fp(e,this._extent)},t.prototype.scale=function(e){return hp(e,this._extent)},t.prototype.setExtent=function(e,i){var r=this._extent;isNaN(e)||(r[0]=parseFloat(e)),isNaN(i)||(r[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Q2(e)},t.prototype.getTicks=function(e){var i=this._interval,r=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;r[0]<o[0]&&(e?s.push({value:$o(o[0]-i,a)}):s.push({value:r[0]}));for(var c=o[0];c<=o[1]&&(s.push({value:c}),c=$o(c+i,a),c!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:o[1];return r[1]>f&&(e?s.push({value:$o(f+i,a)}):s.push({value:r[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),r=[],o=this.getExtent(),a=1;a<i.length;a++){for(var s=i[a],l=i[a-1],c=0,f=[],p=s.value-l.value,g=p/e;c<e-1;){var d=$o(l.value+(c+1)*g);d>o[0]&&d<o[1]&&f.push(d),c++}r.push(f)}return r},t.prototype.getLabel=function(e,i){if(e==null)return"";var r=i&&i.precision;r==null?r=Mi(e.value)||0:r==="auto"&&(r=this._intervalPrecision);var o=$o(e.value,r,!0);return Yy(o)},t.prototype.calcNiceTicks=function(e,i,r){e=e||5;var o=this._extent,a=o[1]-o[0];if(isFinite(a)){a<0&&(a=-a,o.reverse());var s=fV(o,e,i,r);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var r=Math.abs(i[0]);e.fixMax||(i[1]+=r/2),i[0]-=r/2}else i[1]=1;var o=i[1]-i[0];isFinite(o)||(i[0]=0,i[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var a=this._interval;e.fixMin||(i[0]=$o(Math.floor(i[0]/a)*a)),e.fixMax||(i[1]=$o(Math.ceil(i[1]/a)*a))},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t})(zi);zi.registerClass(bs);var J2=typeof Float32Array<"u",pV=J2?Float32Array:Array;function Bi(n){return ct(n)?J2?new Float32Array(n):n:new pV(n)}var dV="__ec_stack_";function tT(n){return n.get("stack")||dV+n.seriesIndex}function Jm(n){return n.dim+n.index}function eT(n,t){var e=[];return t.eachSeriesByType(n,function(i){iT(i)&&e.push(i)}),e}function gV(n){var t={};E(n,function(l){var c=l.coordinateSystem,f=c.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var p=l.getData(),g=f.dim+"_"+f.index,d=p.getDimensionIndex(p.mapDimension(f.dim)),y=p.getStore(),_=0,m=y.count();_<m;++_){var x=y.get(d,_);t[g]?t[g].push(x):t[g]=[x]}});var e={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(r){r.sort(function(l,c){return l-c});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=o===null?s:Math.min(o,s))}e[i]=o}}return e}function nT(n){var t=gV(n),e=[];return E(n,function(i){var r=i.coordinateSystem,o=r.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],f=Math.abs(a[1]-a[0]),p=o.scale.getExtent(),g=Math.abs(p[1]-p[0]);s=c?f/g*c:f}else{var d=i.getData();s=Math.abs(a[1]-a[0])/d.count()}var y=Qt(i.get("barWidth"),s),_=Qt(i.get("barMaxWidth"),s),m=Qt(i.get("barMinWidth")||(rT(i)?.5:1),s),x=i.get("barGap"),w=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:y,barMaxWidth:_,barMinWidth:m,barGap:x,barCategoryGap:w,axisKey:Jm(o),stackId:tT(i)})}),vV(e)}function vV(n){var t={};E(n,function(i,r){var o=i.axisKey,a=i.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[o]=s;var c=i.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[c].width&&(l[c].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var p=i.barMaxWidth;p&&(l[c].maxWidth=p);var g=i.barMinWidth;g&&(l[c].minWidth=g);var d=i.barGap;d!=null&&(s.gap=d);var y=i.barCategoryGap;y!=null&&(s.categoryGap=y)});var e={};return E(t,function(i,r){e[r]={};var o=i.stacks,a=i.bandWidth,s=i.categoryGap;if(s==null){var l=ce(o).length;s=Math.max(35-l*4,15)+"%"}var c=Qt(s,a),f=Qt(i.gap,1),p=i.remainedWidth,g=i.autoWidthCount,d=(p-c)/(g+(g-1)*f);d=Math.max(d,0),E(o,function(x){var w=x.maxWidth,S=x.minWidth;if(x.width){var C=x.width;w&&(C=Math.min(C,w)),S&&(C=Math.max(C,S)),x.width=C,p-=C+f*C,g--}else{var C=d;w&&w<C&&(C=Math.min(w,p)),S&&S>C&&(C=S),C!==d&&(x.width=C,p-=C+f*C,g--)}}),d=(p-c)/(g+(g-1)*f),d=Math.max(d,0);var y=0,_;E(o,function(x,w){x.width||(x.width=d),_=x,y+=x.width*(1+f)}),_&&(y-=_.width*f);var m=-y/2;E(o,function(x,w){e[r][w]=e[r][w]||{bandWidth:a,offset:m,width:x.width},m+=x.width*(1+f)})}),e}function yV(n,t,e){if(n&&t){var i=n[Jm(t)];return i}}function mV(n,t){var e=eT(n,t),i=nT(e);E(e,function(r){var o=r.getData(),a=r.coordinateSystem,s=a.getBaseAxis(),l=tT(r),c=i[Jm(s)][l],f=c.offset,p=c.width;o.setLayout({bandWidth:c.bandWidth,offset:f,size:p})})}function _V(n){return{seriesType:n,plan:Iu(),reset:function(t){if(iT(t)){var e=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),o=i.getOtherAxis(r),a=e.getDimensionIndex(e.mapDimension(o.dim)),s=e.getDimensionIndex(e.mapDimension(r.dim)),l=t.get("showBackground",!0),c=e.mapDimension(o.dim),f=e.getCalculationInfo("stackResultDimension"),p=Xo(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),g=o.isHorizontal(),d=xV(r,o),y=rT(t),_=t.get("barMinHeight")||0,m=f&&e.getDimensionIndex(f),x=e.getLayout("size"),w=e.getLayout("offset");return{progress:function(S,C){for(var M=S.count,T=y&&Bi(M*3),D=y&&l&&Bi(M*3),P=y&&Bi(M),L=i.master.getRect(),O=g?L.width:L.height,N,B=C.getStore(),V=0;(N=S.next())!=null;){var Z=B.get(p?m:a,N),$=B.get(s,N),et=d,z=void 0;p&&(z=+Z-B.get(a,N));var H=void 0,K=void 0,it=void 0,j=void 0;if(g){var U=i.dataToPoint([Z,$]);if(p){var G=i.dataToPoint([z,$]);et=G[0]}H=et,K=U[1]+w,it=U[0]-et,j=x,Math.abs(it)<_&&(it=(it<0?-1:1)*_)}else{var U=i.dataToPoint([$,Z]);if(p){var G=i.dataToPoint([$,z]);et=G[1]}H=U[0]+w,K=et,it=x,j=U[1]-et,Math.abs(j)<_&&(j=(j<=0?-1:1)*_)}y?(T[V]=H,T[V+1]=K,T[V+2]=g?it:j,D&&(D[V]=g?L.x:H,D[V+1]=g?K:L.y,D[V+2]=O),P[N]=N):C.setItemLayout(N,{x:H,y:K,width:it,height:j}),V+=3}y&&C.setLayout({largePoints:T,largeDataIndices:P,largeBackgroundPoints:D,valueAxisHorizontal:g})}}}}}}function iT(n){return n.coordinateSystem&&n.coordinateSystem.type==="cartesian2d"}function rT(n){return n.pipelineContext&&n.pipelineContext.large}function xV(n,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var bV=function(n,t,e,i){for(;e<i;){var r=e+i>>>1;n[r][1]<t?e=r+1:i=r}return e},oT=(function(n){ft(t,n);function t(e){var i=n.call(this,e)||this;return i.type="time",i}return t.prototype.getLabel=function(e){var i=this.getSetting("useUTC");return yu(e.value,mM[Uz(us(this._minLevelUnit))]||mM.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,r){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return Gz(e,i,r,a,o)},t.prototype.getTicks=function(){var e=this._interval,i=this._extent,r=[];if(!e)return r;r.push({value:i[0],level:0});var o=this.getSetting("useUTC"),a=IV(this._minLevelUnit,this._approxInterval,o,i);return r=r.concat(a),r.push({value:i[1],level:0}),r},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1]&&(i[0]-=Un,i[1]+=Un),i[1]===-1/0&&i[0]===1/0){var r=new Date;i[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),i[0]=i[1]-Un}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,i,r){e=e||10;var o=this._extent,a=o[1]-o[0];this._approxInterval=a/e,i!=null&&this._approxInterval<i&&(this._approxInterval=i),r!=null&&this._approxInterval>r&&(this._approxInterval=r);var s=pp.length,l=Math.min(bV(pp,this._approxInterval,0,s),s-1);this._interval=pp[l][1],this._minLevelUnit=pp[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return oe(e)?e:+zn(e)},t.prototype.contain=function(e){return cp(this.parse(e),this._extent)},t.prototype.normalize=function(e){return fp(this.parse(e),this._extent)},t.prototype.scale=function(e){return hp(e,this._extent)},t.type="time",t})(bs),pp=[["second",Uy],["minute",Gy],["hour",gu],["quarter-day",gu*6],["half-day",gu*12],["day",Un*1.2],["half-week",Un*3.5],["week",Un*7],["month",Un*31],["quarter",Un*95],["half-year",yM/2],["year",yM]];function wV(n,t,e,i){var r=zn(t),o=zn(e),a=function(y){return bM(r,y,i)===bM(o,y,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},f=function(){return c()&&a("hour")},p=function(){return f()&&a("minute")},g=function(){return p()&&a("second")},d=function(){return g()&&a("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return c();case"hour":return f();case"minute":return p();case"second":return g();case"millisecond":return d()}}function SV(n,t){return n/=Un,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function kV(n){var t=30*Un;return n/=t,n>6?6:n>3?3:n>2?2:1}function MV(n){return n/=gu,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function aT(n,t){return n/=t?Gy:Uy,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function CV(n){return Qv(n,!0)}function TV(n,t,e){var i=new Date(n);switch(us(t)){case"year":case"month":i[wM(e)](0);case"day":i[SM(e)](1);case"hour":i[kM(e)](0);case"minute":i[MM(e)](0);case"second":i[CM(e)](0),i[TM(e)](0)}return i.getTime()}function IV(n,t,e,i){var r=1e4,o=_M,a=0;function s(O,N,B,V,Z,$,et){for(var z=new Date(N),H=N,K=z[V]();H<B&&H<=i[1];)et.push({value:H}),K+=O,z[Z](K),H=z.getTime();et.push({value:H,notAdd:!0})}function l(O,N,B){var V=[],Z=!N.length;if(!wV(us(O),i[0],i[1],e)){Z&&(N=[{value:TV(new Date(i[0]),O,e)},{value:i[1]}]);for(var $=0;$<N.length-1;$++){var et=N[$].value,z=N[$+1].value;if(et!==z){var H=void 0,K=void 0,it=void 0,j=!1;switch(O){case"year":H=Math.max(1,Math.round(t/Un/365)),K=Zy(e),it=jz(e);break;case"half-year":case"quarter":case"month":H=kV(t),K=cs(e),it=wM(e);break;case"week":case"half-week":case"day":H=SV(t),K=Dh(e),it=SM(e),j=!0;break;case"half-day":case"quarter-day":case"hour":H=MV(t),K=mu(e),it=kM(e);break;case"minute":H=aT(t,!0),K=Ah(e),it=MM(e);break;case"second":H=aT(t,!1),K=Ph(e),it=CM(e);break;case"millisecond":H=CV(t),K=Lh(e),it=TM(e);break}s(H,et,z,K,it,j,V),O==="year"&&B.length>1&&$===0&&B.unshift({value:B[0].value-H})}}for(var $=0;$<V.length;$++)B.push(V[$]);return V}}for(var c=[],f=[],p=0,g=0,d=0;d<o.length&&a++<r;++d){var y=us(o[d]);if(Wz(o[d])){l(o[d],c[c.length-1]||[],f);var _=o[d+1]?us(o[d+1]):null;if(y!==_){if(f.length){g=p,f.sort(function(O,N){return O.value-N.value});for(var m=[],x=0;x<f.length;++x){var w=f[x].value;(x===0||f[x-1].value!==w)&&(m.push(f[x]),w>=i[0]&&w<=i[1]&&p++)}var S=(i[1]-i[0])/t;if(p>S*1.5&&g>S/1.5||(c.push(m),p>S||n===o[d]))break}f=[]}}}for(var C=ve(pt(c,function(N){return ve(N,function(B){return B.value>=i[0]&&B.value<=i[1]&&!B.notAdd})}),function(N){return N.length>0}),M=[],T=C.length-1,d=0;d<C.length;++d)for(var D=C[d],P=0;P<D.length;++P)M.push({value:D[P].value,level:T-d});M.sort(function(O,N){return O.value-N.value});for(var L=[],d=0;d<M.length;++d)(d===0||M[d].value!==M[d-1].value)&&L.push(M[d]);return L}zi.registerClass(oT);var sT=zi.prototype,Wu=bs.prototype,DV=Ce,AV=Math.floor,PV=Math.ceil,dp=Math.pow,ui=Math.log,t0=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new bs,e._interval=0,e}return t.prototype.getTicks=function(e){var i=this._originalScale,r=this._extent,o=i.getExtent(),a=Wu.getTicks.call(this,e);return pt(a,function(s){var l=s.value,c=Ce(dp(this.base,l));return c=l===r[0]&&this._fixMin?gp(c,o[0]):c,c=l===r[1]&&this._fixMax?gp(c,o[1]):c,{value:c}},this)},t.prototype.setExtent=function(e,i){var r=ui(this.base);e=ui(Math.max(0,e))/r,i=ui(Math.max(0,i))/r,Wu.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=sT.getExtent.call(this);i[0]=dp(e,i[0]),i[1]=dp(e,i[1]);var r=this._originalScale,o=r.getExtent();return this._fixMin&&(i[0]=gp(i[0],o[0])),this._fixMax&&(i[1]=gp(i[1],o[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=ui(e[0])/ui(i),e[1]=ui(e[1])/ui(i),sT.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.calcNiceTicks=function(e){e=e||10;var i=this._extent,r=i[1]-i[0];if(!(r===1/0||r<=0)){var o=AS(r),a=e/r*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Ce(PV(i[0]/o)*o),Ce(AV(i[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Wu.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=ui(e)/ui(this.base),cp(e,this._extent)},t.prototype.normalize=function(e){return e=ui(e)/ui(this.base),fp(e,this._extent)},t.prototype.scale=function(e){return e=hp(e,this._extent),dp(this.base,e)},t.type="log",t})(zi),lT=t0.prototype;lT.getMinorTicks=Wu.getMinorTicks,lT.getLabel=Wu.getLabel;function gp(n,t){return DV(n,Mi(t))}zi.registerClass(t0);var LV=(function(){function n(t,e,i){this._prepareParams(t,e,i)}return n.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var r=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var o=e.get("min",!0);o==null&&(o=e.get("startValue",!0));var a=this._modelMinRaw=o;St(a)?this._modelMinNum=vp(t,a({min:i[0],max:i[1]})):a!=="dataMin"&&(this._modelMinNum=vp(t,a));var s=this._modelMaxRaw=e.get("max",!0);if(St(s)?this._modelMaxNum=vp(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=vp(t,s)),r)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),c=ct(l)?l:[l||0,l||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Rr(c[0],1),Rr(c[1],1)]}},n.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,a=t?null:i-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,c=s!=null,f=l!=null;s==null&&(s=t?r?0:NaN:e-o[0]*a),l==null&&(l=t?r?r-1:NaN:i+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var p=Sl(s)||Sl(l)||t&&!r;this._needCrossZero&&(s>0&&l>0&&!c&&(s=0),s<0&&l<0&&!f&&(l=0));var g=this._determinedMin,d=this._determinedMax;return g!=null&&(s=g,c=!0),d!=null&&(l=d,f=!0),{min:s,max:l,minFixed:c,maxFixed:f,isBlank:p}},n.prototype.modifyDataMinMax=function(t,e){this[OV[t]]=e},n.prototype.setDeterminedMinMax=function(t,e){var i=EV[t];this[i]=e},n.prototype.freeze=function(){this.frozen=!0},n})(),EV={min:"_determinedMin",max:"_determinedMax"},OV={min:"_dataMin",max:"_dataMax"};function uT(n,t,e){var i=n.rawExtentInfo;return i||(i=new LV(n,t,e),n.rawExtentInfo=i,i)}function vp(n,t){return t==null?null:Sl(t)?NaN:n.parse(t)}function cT(n,t){var e=n.type,i=uT(n,t,n.getExtent()).calculate();n.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&e==="time"){var s=eT("bar",a),l=!1;if(E(s,function(p){l=l||p.getBaseAxis()===t.axis}),l){var c=nT(s),f=RV(r,o,t,c);r=f.min,o=f.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function RV(n,t,e,i){var r=e.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=yV(i,e.axis);if(a===void 0)return{min:n,max:t};var s=1/0;E(a,function(d){s=Math.min(d.offset,s)});var l=-1/0;E(a,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,f=t-n,p=1-(s+l)/o,g=f/p-f;return t+=g*(l/c),n-=g*(s/c),{min:n,max:t}}function e0(n,t){var e=t,i=cT(n,e),r=i.extent,o=e.get("splitNumber");n instanceof t0&&(n.base=e.get("logBase"));var a=n.type,s=e.get("interval"),l=a==="interval"||a==="time";n.setExtent(r[0],r[1]),n.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function fT(n,t){if(t=t||n.get("type"),t)switch(t){case"category":return new Km({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new oT({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(zi.getClass(t)||bs)}}function NV(n){var t=n.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function ws(n){var t=n.getLabelModel().get("formatter"),e=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?(function(i){return function(r,o){return n.scale.getFormattedLabel(r,o,i)}})(t):gt(t)?(function(i){return function(r){var o=n.scale.getLabel(r),a=i.replace("{value}",o??"");return a}})(t):St(t)?(function(i){return function(r,o){return e!=null&&(o=r.value-e),i(n0(n,r),o,r.level!=null?{level:r.level}:null)}})(t):function(i){return n.scale.getLabel(i)}}function n0(n,t){return n.type==="category"?n.scale.getLabel(t):t.value}function zV(n){var t=n.model,e=n.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,r,o=e.getExtent();e instanceof Km?r=e.count():(i=e.getTicks(),r=i.length);var a=n.getLabelModel(),s=ws(n),l,c=1;r>40&&(c=Math.ceil(r/40));for(var f=0;f<r;f+=c){var p=i?i[f]:{value:o[0]+f},g=s(p,f),d=a.getTextRect(g),y=BV(d,a.get("rotate")||0);l?l.union(y):l=y}return l}}function BV(n,t){var e=t*Math.PI/180,i=n.width,r=n.height,o=i*Math.abs(Math.cos(e))+Math.abs(r*Math.sin(e)),a=i*Math.abs(Math.sin(e))+Math.abs(r*Math.cos(e)),s=new jt(n.x,n.y,o,a);return s}function i0(n){var t=n.get("interval");return t??"auto"}function hT(n){return n.type==="category"&&i0(n.getLabelModel())===0}function pT(n,t){var e={};return E(n.mapDimensionsAll(t),function(i){e[q2(n,i)]=!0}),ce(e)}function FV(n,t,e){t&&E(pT(t,e),function(i){var r=t.getApproximateExtent(i);r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1])})}var dT=(function(){function n(){}return n.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},n.prototype.getCoordSysModel=function(){},n})();function VV(n){return Hu(null,n)}var HV={isDimensionStacked:Xo,enableDataStack:$2,getStackedDimension:q2};function WV(n,t){var e=t;t instanceof he||(e=new he(t));var i=fT(e);return i.setExtent(n[0],n[1]),e0(i,e),i}function UV(n){Sn(n,dT)}function GV(n,t){return t=t||{},Li(n,null,null,t.state!=="normal")}const jV=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:QF,createList:VV,createScale:WV,createSymbol:Ni,createTextStyle:GV,dataStack:HV,enableHoverEmphasis:Jl,getECData:Ut,getLayoutRect:Ei,mixinAxisModelCommonMethods:UV},Symbol.toStringTag,{value:"Module"}));var gT=[],ZV={registerPreprocessor:Bm,registerProcessor:Fm,registerPostInit:O2,registerPostUpdate:R2,registerUpdateLifecycle:sp,registerAction:li,registerCoordinateSystem:N2,registerLayout:z2,registerVisual:Gr,registerTransform:V2,registerLoading:Hm,registerMap:F2,registerImpl:dF,PRIORITY:m2,ComponentModel:Yt,ComponentView:ze,SeriesModel:Ye,ChartView:Be,registerComponentModel:function(n){Yt.registerClass(n)},registerComponentView:function(n){ze.registerClass(n)},registerSeriesModel:function(n){Ye.registerClass(n)},registerChartView:function(n){Be.registerClass(n)},registerSubTypeDefaulter:function(n,t){Yt.registerSubTypeDefaulter(n,t)},registerPainter:function(n,t){kS(n,t)}};function Yn(n){if(ct(n)){E(n,function(t){Yn(t)});return}Vt(gT,n)>=0||(gT.push(n),St(n)&&(n={install:n}),n.install(ZV))}var YV=1e-8;function vT(n,t){return Math.abs(n-t)<YV}function yT(n,t,e){var i=0,r=n[0];if(!r)return!1;for(var o=1;o<n.length;o++){var a=n[o];i+=Qi(r[0],r[1],a[0],a[1],t,e),r=a}var s=n[0];return(!vT(r[0],s[0])||!vT(r[1],s[1]))&&(i+=Qi(r[0],r[1],s[0],s[1],t,e)),i!==0}var XV=[];function r0(n,t){for(var e=0;e<n.length;e++)tn(n[e],n[e],t)}function mT(n,t,e,i){for(var r=0;r<n.length;r++){var o=n[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Tr(t,t,o),Ir(e,e,o))}}function $V(n){for(var t=0,e=0,i=0,r=n.length,o=n[r-1][0],a=n[r-1][1],s=0;s<r;s++){var l=n[s][0],c=n[s][1],f=o*c-l*a;t+=f,e+=(o+l)*f,i+=(a+c)*f,o=l,a=c}return t?[e/t/3,i/t/3,t]:[n[0][0]||0,n[0][1]||0]}var _T=(function(){function n(t){this.name=t}return n.prototype.setCenter=function(t){this._center=t},n.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},n})(),xT=(function(){function n(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return n})(),bT=(function(){function n(t){this.type="linestring",this.points=t}return n})(),qV=(function(n){ft(t,n);function t(e,i,r){var o=n.call(this,e)||this;return o.type="geoJSON",o.geometries=i,o._center=r&&[r[0],r[1]],o}return t.prototype.calcCenter=function(){for(var e=this.geometries,i,r=0,o=0;o<e.length;o++){var a=e[o],s=a.exterior,l=s&&s.length;l>r&&(i=a,r=l)}if(i)return $V(i.exterior);var c=this.getBoundingRect();return[c.x+c.width/2,c.y+c.height/2]},t.prototype.getBoundingRect=function(e){var i=this._rect;if(i&&!e)return i;var r=[1/0,1/0],o=[-1/0,-1/0],a=this.geometries;return E(a,function(s){s.type==="polygon"?mT(s.exterior,r,o,e):E(s.points,function(l){mT(l,r,o,e)})}),isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])||(r[0]=r[1]=o[0]=o[1]=0),i=new jt(r[0],r[1],o[0]-r[0],o[1]-r[1]),e||(this._rect=i),i},t.prototype.contain=function(e){var i=this.getBoundingRect(),r=this.geometries;if(!i.contain(e[0],e[1]))return!1;t:for(var o=0,a=r.length;o<a;o++){var s=r[o];if(s.type==="polygon"){var l=s.exterior,c=s.interiors;if(yT(l,e[0],e[1])){for(var f=0;f<(c?c.length:0);f++)if(yT(c[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,i,r,o){var a=this.getBoundingRect(),s=a.width/a.height;r?o||(o=r/s):r=s*o;for(var l=new jt(e,i,r,o),c=a.calculateTransform(l),f=this.geometries,p=0;p<f.length;p++){var g=f[p];g.type==="polygon"?(r0(g.exterior,c),E(g.interiors,function(d){r0(d,c)})):E(g.points,function(d){r0(d,c)})}a=this._rect,a.copy(l),this._center=[a.x+a.width/2,a.y+a.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var i=new t(e,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},t})(_T);(function(n){ft(t,n);function t(e,i){var r=n.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=i,r}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,i=e.getBoundingRect(),r=[i.x+i.width/2,i.y+i.height/2],o=Cl(XV),a=e;a&&!a.isGeoSVGGraphicRoot;)Ar(o,a.getLocalTransform(),o),a=a.parent;return Wa(o,o),tn(r,r,o),r},t})(_T);function QV(n){if(!n.UTF8Encoding)return n;var t=n,e=t.UTF8Scale;e==null&&(e=1024);var i=t.features;return E(i,function(r){var o=r.geometry,a=o.encodeOffsets,s=o.coordinates;if(a)switch(o.type){case"LineString":o.coordinates=wT(s,a,e);break;case"Polygon":o0(s,a,e);break;case"MultiLineString":o0(s,a,e);break;case"MultiPolygon":E(s,function(l,c){return o0(l,a[c],e)})}}),t.UTF8Encoding=!1,t}function o0(n,t,e){for(var i=0;i<n.length;i++)n[i]=wT(n[i],t[i],e)}function wT(n,t,e){for(var i=[],r=t[0],o=t[1],a=0;a<n.length;a+=2){var s=n.charCodeAt(a)-64,l=n.charCodeAt(a+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=r,l+=o,r=s,o=l,i.push([s/e,l/e])}return i}function KV(n,t){return n=QV(n),pt(ve(n.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var i=e.properties,r=e.geometry,o=[];switch(r.type){case"Polygon":var a=r.coordinates;o.push(new xT(a[0],a.slice(1)));break;case"MultiPolygon":E(r.coordinates,function(l){l[0]&&o.push(new xT(l[0],l.slice(1)))});break;case"LineString":o.push(new bT([r.coordinates]));break;case"MultiLineString":o.push(new bT(r.coordinates))}var s=new qV(i[t||"name"],o,i.cp);return s.properties=i,s})}const JV=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:l3,asc:qa,getPercentWithPrecision:a3,getPixelPrecision:$v,getPrecision:Mi,getPrecisionSafe:IS,isNumeric:PS,isRadianAroundZero:Vl,linearMap:Le,nice:Qv,numericToNumber:Hl,parseDate:zn,quantile:c3,quantity:AS,quantityExponent:Xf,reformIntervals:f3,remRadian:qv,round:Ce},Symbol.toStringTag,{value:"Module"})),t6=Object.freeze(Object.defineProperty({__proto__:null,format:yu,parse:zn},Symbol.toStringTag,{value:"Module"})),e6=Object.freeze(Object.defineProperty({__proto__:null,Arc:ou,BezierCurve:ph,BoundingRect:jt,Circle:nu,CompoundPath:Zk,Ellipse:ch,Group:ye,Image:Ki,IncrementalDisplayable:$k,Line:er,LinearGradient:Dy,Polygon:os,Polyline:Vr,RadialGradient:Xk,Rect:se,Ring:hh,Sector:tr,Text:we,clipPointsByRect:Ry,clipRectByRect:rM,createIcon:uu,extendPath:Kk,extendShape:Qk,getShapeClass:Jk,getTransform:su,initProps:Re,makeImage:Ly,makePath:wh,mergePath:eM,registerShape:Wn,resizePath:Ey,updateProps:Ie},Symbol.toStringTag,{value:"Module"})),n6=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Yy,capitalFirst:Xz,encodeHTML:en,formatTime:Yz,formatTpl:Qy,getTextRect:Zz,getTooltipMarker:DM,normalizeCssArray:_u,toCamelCase:Xy,truncateText:F3},Symbol.toStringTag,{value:"Module"})),i6=Object.freeze(Object.defineProperty({__proto__:null,bind:wt,clone:Et,curry:Gt,defaults:Wt,each:E,extend:st,filter:ve,indexOf:Vt,inherits:Kg,isArray:ct,isFunction:St,isObject:_t,isString:gt,map:pt,merge:zt,reduce:Si},Symbol.toStringTag,{value:"Module"}));var Uu=fe();function ST(n,t){var e=pt(t,function(i){return n.scale.parse(i)});return n.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function r6(n){var t=n.getLabelModel().get("customValues");if(t){var e=ws(n),i=n.scale.getExtent(),r=ST(n,t),o=ve(r,function(a){return a>=i[0]&&a<=i[1]});return{labels:pt(o,function(a){var s={value:a};return{formattedLabel:e(s),rawLabel:n.scale.getLabel(s),tickValue:a}})}}return n.type==="category"?a6(n):l6(n)}function o6(n,t){var e=n.getTickModel().get("customValues");if(e){var i=n.scale.getExtent(),r=ST(n,e);return{ticks:ve(r,function(o){return o>=i[0]&&o<=i[1]})}}return n.type==="category"?s6(n,t):{ticks:pt(n.scale.getTicks(),function(o){return o.value})}}function a6(n){var t=n.getLabelModel(),e=kT(n,t);return!t.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function kT(n,t){var e=MT(n,"labels"),i=i0(t),r=CT(e,i);if(r)return r;var o,a;return St(i)?o=DT(n,i):(a=i==="auto"?u6(n):i,o=IT(n,a)),TT(e,i,{labels:o,labelCategoryInterval:a})}function s6(n,t){var e=MT(n,"ticks"),i=i0(t),r=CT(e,i);if(r)return r;var o,a;if((!t.get("show")||n.scale.isBlank())&&(o=[]),St(i))o=DT(n,i,!0);else if(i==="auto"){var s=kT(n,n.getLabelModel());a=s.labelCategoryInterval,o=pt(s.labels,function(l){return l.tickValue})}else a=i,o=IT(n,a,!0);return TT(e,i,{ticks:o,tickCategoryInterval:a})}function l6(n){var t=n.scale.getTicks(),e=ws(n);return{labels:pt(t,function(i,r){return{level:i.level,formattedLabel:e(i,r),rawLabel:n.scale.getLabel(i),tickValue:i.value}})}}function MT(n,t){return Uu(n)[t]||(Uu(n)[t]=[])}function CT(n,t){for(var e=0;e<n.length;e++)if(n[e].key===t)return n[e].value}function TT(n,t,e){return n.push({key:t,value:e}),e}function u6(n){var t=Uu(n).autoInterval;return t??(Uu(n).autoInterval=n.calculateCategoryInterval())}function c6(n){var t=f6(n),e=ws(n),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=n.scale,o=r.getExtent(),a=r.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=n.dataToCoord(l+1)-n.dataToCoord(l),f=Math.abs(c*Math.cos(i)),p=Math.abs(c*Math.sin(i)),g=0,d=0;l<=o[1];l+=s){var y=0,_=0,m=Gf(e({value:l}),t.font,"center","top");y=m.width*1.3,_=m.height*1.3,g=Math.max(g,y,7),d=Math.max(d,_,7)}var x=g/f,w=d/p;isNaN(x)&&(x=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(x,w))),C=Uu(n.model),M=n.getExtent(),T=C.lastAutoInterval,D=C.lastTickCount;return T!=null&&D!=null&&Math.abs(T-S)<=1&&Math.abs(D-a)<=1&&T>S&&C.axisExtent0===M[0]&&C.axisExtent1===M[1]?S=T:(C.lastTickCount=a,C.lastAutoInterval=S,C.axisExtent0=M[0],C.axisExtent1=M[1]),S}function f6(n){var t=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function IT(n,t,e){var i=ws(n),r=n.scale,o=r.getExtent(),a=n.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=o[0],f=r.count();c!==0&&l>1&&f/l>2&&(c=Math.round(Math.ceil(c/l)*l));var p=hT(n),g=a.get("showMinLabel")||p,d=a.get("showMaxLabel")||p;g&&c!==o[0]&&_(o[0]);for(var y=c;y<=o[1];y+=l)_(y);d&&y-l!==o[1]&&_(o[1]);function _(m){var x={value:m};s.push(e?m:{formattedLabel:i(x),rawLabel:r.getLabel(x),tickValue:m})}return s}function DT(n,t,e){var i=n.scale,r=ws(n),o=[];return E(i.getTicks(),function(a){var s=i.getLabel(a),l=a.value;t(a.value,s)&&o.push(e?l:{formattedLabel:r(a),rawLabel:s,tickValue:l})}),o}var AT=[0,1],PT=(function(){function n(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return n.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=i&&t<=r},n.prototype.containData=function(t){return this.scale.contain(t)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(t){return $v(t||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},n.prototype.dataToCoord=function(t,e){var i=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&r.type==="ordinal"&&(i=i.slice(),LT(i,r.count())),Le(t,AT,i,e)},n.prototype.coordToData=function(t,e){var i=this._extent,r=this.scale;this.onBand&&r.type==="ordinal"&&(i=i.slice(),LT(i,r.count()));var o=Le(t,i,AT,e);return this.scale.scale(o)},n.prototype.pointToData=function(t,e){},n.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=o6(this,e),r=i.ticks,o=pt(r,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=e.get("alignWithLabel");return h6(this,o,a,t.clamp),o},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),r=pt(i,function(o){return pt(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return r},n.prototype.getViewLabels=function(){return r6(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/i},n.prototype.calculateCategoryInterval=function(){return c6(this)},n})();function LT(n,t){var e=n[1]-n[0],i=t,r=e/i/2;n[0]+=r,n[1]-=r}function h6(n,t,e,i){var r=t.length;if(!n.onBand||e||!r)return;var o=n.getExtent(),a,s;if(r===1)t[0].coord=o[0],a=t[1]={coord:o[1],tickValue:t[0].tickValue};else{var l=t[r-1].tickValue-t[0].tickValue,c=(t[r-1].coord-t[0].coord)/l;E(t,function(d){d.coord-=c/2});var f=n.scale.getExtent();s=1+f[1]-t[r-1].tickValue,a={coord:t[r-1].coord+c*s,tickValue:f[1]+1},t.push(a)}var p=o[0]>o[1];g(t[0].coord,o[0])&&(i?t[0].coord=o[0]:t.shift()),i&&g(o[0],t[0].coord)&&t.unshift({coord:o[0]}),g(o[1],a.coord)&&(i?a.coord=o[1]:t.pop()),i&&g(a.coord,o[1])&&t.push({coord:o[1]});function g(d,y){return d=Ce(d),y=Ce(y),p?d>y:d<y}}function p6(n){var t=Yt.extend(n);return Yt.registerClass(t),t}function d6(n){var t=ze.extend(n);return ze.registerClass(t),t}function g6(n){var t=Ye.extend(n);return Ye.registerClass(t),t}function v6(n){var t=Be.extend(n);return Be.registerClass(t),t}var Gu=Math.PI*2,qo=Br.CMD,y6=["top","right","bottom","left"];function m6(n,t,e,i,r){var o=e.width,a=e.height;switch(n){case"top":i.set(e.x+o/2,e.y-t),r.set(0,-1);break;case"bottom":i.set(e.x+o/2,e.y+a+t),r.set(0,1);break;case"left":i.set(e.x-t,e.y+a/2),r.set(-1,0);break;case"right":i.set(e.x+o+t,e.y+a/2),r.set(1,0);break}}function _6(n,t,e,i,r,o,a,s,l){a-=n,s-=t;var c=Math.sqrt(a*a+s*s);a/=c,s/=c;var f=a*e+n,p=s*e+t;if(Math.abs(i-r)%Gu<1e-4)return l[0]=f,l[1]=p,c-e;if(o){var g=i;i=qi(r),r=qi(g)}else i=qi(i),r=qi(r);i>r&&(r+=Gu);var d=Math.atan2(s,a);if(d<0&&(d+=Gu),d>=i&&d<=r||d+Gu>=i&&d+Gu<=r)return l[0]=f,l[1]=p,c-e;var y=e*Math.cos(i)+n,_=e*Math.sin(i)+t,m=e*Math.cos(r)+n,x=e*Math.sin(r)+t,w=(y-a)*(y-a)+(_-s)*(_-s),S=(m-a)*(m-a)+(x-s)*(x-s);return w<S?(l[0]=y,l[1]=_,Math.sqrt(w)):(l[0]=m,l[1]=x,Math.sqrt(S))}function yp(n,t,e,i,r,o,a,s){var l=r-n,c=o-t,f=e-n,p=i-t,g=Math.sqrt(f*f+p*p);f/=g,p/=g;var d=l*f+c*p,y=d/g;s&&(y=Math.min(Math.max(y,0),1)),y*=g;var _=a[0]=n+y*f,m=a[1]=t+y*p;return Math.sqrt((_-r)*(_-r)+(m-o)*(m-o))}function ET(n,t,e,i,r,o,a){e<0&&(n=n+e,e=-e),i<0&&(t=t+i,i=-i);var s=n+e,l=t+i,c=a[0]=Math.min(Math.max(r,n),s),f=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((c-r)*(c-r)+(f-o)*(f-o))}var ci=[];function x6(n,t,e){var i=ET(t.x,t.y,t.width,t.height,n.x,n.y,ci);return e.set(ci[0],ci[1]),i}function b6(n,t,e){for(var i=0,r=0,o=0,a=0,s,l,c=1/0,f=t.data,p=n.x,g=n.y,d=0;d<f.length;){var y=f[d++];d===1&&(i=f[d],r=f[d+1],o=i,a=r);var _=c;switch(y){case qo.M:o=f[d++],a=f[d++],i=o,r=a;break;case qo.L:_=yp(i,r,f[d],f[d+1],p,g,ci,!0),i=f[d++],r=f[d++];break;case qo.C:_=tS(i,r,f[d++],f[d++],f[d++],f[d++],f[d],f[d+1],p,g,ci),i=f[d++],r=f[d++];break;case qo.Q:_=iS(i,r,f[d++],f[d++],f[d],f[d+1],p,g,ci),i=f[d++],r=f[d++];break;case qo.A:var m=f[d++],x=f[d++],w=f[d++],S=f[d++],C=f[d++],M=f[d++];d+=1;var T=!!(1-f[d++]);s=Math.cos(C)*w+m,l=Math.sin(C)*S+x,d<=1&&(o=s,a=l);var D=(p-m)*S/w+m;_=_6(m,x,S,C,C+M,T,D,g,ci),i=Math.cos(C+M)*w+m,r=Math.sin(C+M)*S+x;break;case qo.R:o=i=f[d++],a=r=f[d++];var P=f[d++],L=f[d++];_=ET(o,a,P,L,p,g,ci);break;case qo.Z:_=yp(i,r,o,a,p,g,ci,!0),i=o,r=a;break}_<c&&(c=_,e.set(ci[0],ci[1]))}return c}var fi=new Pt,ie=new Pt,Se=new Pt,Fi=new Pt,Vi=new Pt;function OT(n,t){if(n){var e=n.getTextGuideLine(),i=n.getTextContent();if(i&&e){var r=n.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||y6,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,c=r.anchor,f=n.getComputedTransform(),p=f&&Wa([],f),g=t.get("length2")||0;c&&Se.copy(c);for(var d=0;d<a.length;d++){var y=a[d];m6(y,0,s,fi,Fi),Pt.scaleAndAdd(ie,fi,Fi,g),ie.transform(p);var _=n.getBoundingRect(),m=c?c.distance(ie):n instanceof $t?b6(ie,n.path,Se):x6(ie,_,Se);m<l&&(l=m,ie.transform(f),Se.transform(f),Se.toArray(o[0]),ie.toArray(o[1]),fi.toArray(o[2]))}RT(o,t.get("minTurnAngle")),e.setShape({points:o})}}}var mp=[],sn=new Pt;function RT(n,t){if(t<=180&&t>0){t=t/180*Math.PI,fi.fromArray(n[0]),ie.fromArray(n[1]),Se.fromArray(n[2]),Pt.sub(Fi,fi,ie),Pt.sub(Vi,Se,ie);var e=Fi.len(),i=Vi.len();if(!(e<.001||i<.001)){Fi.scale(1/e),Vi.scale(1/i);var r=Fi.dot(Vi),o=Math.cos(t);if(o<r){var a=yp(ie.x,ie.y,Se.x,Se.y,fi.x,fi.y,mp,!1);sn.fromArray(mp),sn.scaleAndAdd(Vi,a/Math.tan(Math.PI-t));var s=Se.x!==ie.x?(sn.x-ie.x)/(Se.x-ie.x):(sn.y-ie.y)/(Se.y-ie.y);if(isNaN(s))return;s<0?Pt.copy(sn,ie):s>1&&Pt.copy(sn,Se),sn.toArray(n[1])}}}}function w6(n,t,e){if(e<=180&&e>0){e=e/180*Math.PI,fi.fromArray(n[0]),ie.fromArray(n[1]),Se.fromArray(n[2]),Pt.sub(Fi,ie,fi),Pt.sub(Vi,Se,ie);var i=Fi.len(),r=Vi.len();if(!(i<.001||r<.001)){Fi.scale(1/i),Vi.scale(1/r);var o=Fi.dot(t),a=Math.cos(e);if(o<a){var s=yp(ie.x,ie.y,Se.x,Se.y,fi.x,fi.y,mp,!1);sn.fromArray(mp);var l=Math.PI/2,c=Math.acos(Vi.dot(t)),f=l+c-e;if(f>=l)Pt.copy(sn,Se);else{sn.scaleAndAdd(Vi,s/Math.tan(Math.PI/2-f));var p=Se.x!==ie.x?(sn.x-ie.x)/(Se.x-ie.x):(sn.y-ie.y)/(Se.y-ie.y);if(isNaN(p))return;p<0?Pt.copy(sn,ie):p>1&&Pt.copy(sn,Se)}sn.toArray(n[1])}}}}function a0(n,t,e,i){var r=e==="normal",o=r?n:n.ensureState(e);o.ignore=t;var a=i.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?n.useStyle(s):o.style=s}function S6(n,t){var e=t.smooth,i=t.points;if(i)if(n.moveTo(i[0][0],i[0][1]),e>0&&i.length>=3){var r=xf(i[0],i[1]),o=xf(i[1],i[2]);if(!r||!o){n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]);return}var a=Math.min(r,o)*e,s=bf([],i[1],i[0],a/r),l=bf([],i[1],i[2],a/o),c=bf([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)n.lineTo(i[f][0],i[f][1])}function NT(n,t,e){var i=n.getTextGuideLine(),r=n.getTextContent();if(!r){i&&n.removeTextGuideLine();return}for(var o=t.normal,a=o.get("show"),s=r.ignore,l=0;l<rh.length;l++){var c=rh[l],f=t[c],p=c==="normal";if(f){var g=f.get("show"),d=p?s:Nt(r.states[c]&&r.states[c].ignore,s);if(d||!Nt(g,a)){var y=p?i:i&&i.states[c];y&&(y.ignore=!0),i&&a0(i,!0,c,f);continue}i||(i=new Vr,n.setTextGuideLine(i),!p&&(s||!a)&&a0(i,!0,"normal",t.normal),n.stateProxy&&(i.stateProxy=n.stateProxy)),a0(i,!1,c,f)}}if(i){Wt(i.style,e),i.style.fill=null;var _=o.get("showAbove"),m=n.textGuideLineConfig=n.textGuideLineConfig||{};m.showAbove=_||!1,i.buildPath=S6}}function zT(n,t){t=t||"labelLine";for(var e={normal:n.getModel(t)},i=0;i<Hn.length;i++){var r=Hn[i];e[r]=n.getModel([r,t])}return e}function BT(n){for(var t=[],e=0;e<n.length;e++){var i=n[e];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,c=a.clone();c.applyTransform(o),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var f=s?new vh(a,o):null;t.push({label:r,labelLine:i.labelLine,rect:c,localRect:a,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return t}function FT(n,t,e,i,r,o){var a=n.length;if(a<2)return;n.sort(function(T,D){return T.rect[t]-D.rect[t]});for(var s=0,l,c=!1,f=0;f<a;f++){var p=n[f],g=p.rect;l=g[t]-s,l<0&&(g[t]-=l,p.label[t]-=l,c=!0),s=g[t]+g[e]}var d=n[0],y=n[a-1],_,m;x(),_<0&&C(-_,.8),m<0&&C(m,.8),x(),w(_,m,1),w(m,_,-1),x(),_<0&&M(-_),m<0&&M(m);function x(){_=d.rect[t]-i,m=r-y.rect[t]-y.rect[e]}function w(T,D,P){if(T<0){var L=Math.min(D,-T);if(L>0){S(L*P,0,a);var O=L+T;O<0&&C(-O*P,1)}else C(-T*P,1)}}function S(T,D,P){T!==0&&(c=!0);for(var L=D;L<P;L++){var O=n[L],N=O.rect;N[t]+=T,O.label[t]+=T}}function C(T,D){for(var P=[],L=0,O=1;O<a;O++){var N=n[O-1].rect,B=Math.max(n[O].rect[t]-N[t]-N[e],0);P.push(B),L+=B}if(L){var V=Math.min(Math.abs(T)/L,D);if(T>0)for(var O=0;O<a-1;O++){var Z=P[O]*V;S(Z,0,O+1)}else for(var O=a-1;O>0;O--){var Z=P[O-1]*V;S(-Z,O,a)}}}function M(T){var D=T<0?-1:1;T=Math.abs(T);for(var P=Math.ceil(T/(a-1)),L=0;L<a-1;L++)if(D>0?S(P,0,L+1):S(-P,a-L-1,a),T-=P,T<=0)return}return c}function k6(n,t,e,i){return FT(n,"x","width",t,e)}function VT(n,t,e,i){return FT(n,"y","height",t,e)}function HT(n){var t=[];n.sort(function(_,m){return m.priority-_.priority});var e=new jt(0,0,0,0);function i(_){if(!_.ignore){var m=_.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}_.ignore=!0}for(var r=0;r<n.length;r++){var o=n[r],a=o.axisAligned,s=o.localRect,l=o.transform,c=o.label,f=o.labelLine;e.copy(o.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var p=o.obb,g=!1,d=0;d<t.length;d++){var y=t[d];if(e.intersect(y.rect)){if(a&&y.axisAligned){g=!0;break}if(y.obb||(y.obb=new vh(y.localRect,y.transform)),p||(p=new vh(s,l)),p.intersect(y.obb)){g=!0;break}}}g?(i(c),f&&i(f)):(c.attr("ignore",o.defaultAttr.ignore),f&&f.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function M6(n){if(n){for(var t=[],e=0;e<n.length;e++)t.push(n[e].slice());return t}}function C6(n,t){var e=n.label,i=t&&t.getTextGuideLine();return{dataIndex:n.dataIndex,dataType:n.dataType,seriesIndex:n.seriesModel.seriesIndex,text:n.label.style.text,rect:n.hostRect,labelRect:n.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:M6(i&&i.shape.points)}}var WT=["align","verticalAlign","width","height","fontSize"],ln=new Uf,s0=fe(),T6=fe();function _p(n,t,e){for(var i=0;i<e.length;i++){var r=e[i];t[r]!=null&&(n[r]=t[r])}}var xp=["x","y","rotation"],I6=(function(){function n(){this._labelList=[],this._chartViewList=[]}return n.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},n.prototype._addLabel=function(t,e,i,r,o){var a=r.style,s=r.__hostTarget,l=s.textConfig||{},c=r.getComputedTransform(),f=r.getBoundingRect().plain();jt.applyTransform(f,f,c),c?ln.setLocalTransform(c):(ln.x=ln.y=ln.rotation=ln.originX=ln.originY=0,ln.scaleX=ln.scaleY=1),ln.rotation=qi(ln.rotation);var p=r.__hostTarget,g;if(p){g=p.getBoundingRect().plain();var d=p.getComputedTransform();jt.applyTransform(g,g,d)}var y=g&&p.getTextGuideLine();this._labelList.push({label:r,labelLine:y,seriesModel:i,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:f,hostRect:g,priority:g?g.width*g.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:y&&y.ignore,x:ln.x,y:ln.y,scaleX:ln.scaleX,scaleY:ln.scaleY,rotation:ln.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:l.position,attachedRot:l.rotation}})},n.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var i=t.__model,r=i.get("labelLayout");(St(r)||ce(r).length)&&t.group.traverse(function(o){if(o.ignore)return!0;var a=o.getTextContent(),s=Ut(o);a&&!a.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,i,a,r)})},n.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),i=t.getHeight();function r(S,C){return function(){OT(S,C)}}for(var o=0;o<this._labelList.length;o++){var a=this._labelList[o],s=a.label,l=s.__hostTarget,c=a.defaultAttr,f=void 0;St(a.layoutOption)?f=a.layoutOption(C6(a,l)):f=a.layoutOption,f=f||{},a.computedLayoutOption=f;var p=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:c.attachedPos,rotation:f.rotate!=null?f.rotate*p:c.attachedRot,offset:[f.dx||0,f.dy||0]});var g=!1;if(f.x!=null?(s.x=Qt(f.x,e),s.setStyle("x",0),g=!0):(s.x=c.x,s.setStyle("x",c.style.x)),f.y!=null?(s.y=Qt(f.y,i),s.setStyle("y",0),g=!0):(s.y=c.y,s.setStyle("y",c.style.y)),f.labelLinePoints){var d=l.getTextGuideLine();d&&(d.setShape({points:f.labelLinePoints}),g=!1)}var y=s0(s);y.needsUpdateLabelLine=g,s.rotation=f.rotate!=null?f.rotate*p:c.rotation,s.scaleX=c.scaleX,s.scaleY=c.scaleY;for(var _=0;_<WT.length;_++){var m=WT[_];s.setStyle(m,f[m]!=null?f[m]:c.style[m])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var x=a.seriesModel;if(a.dataIndex!=null){var w=a.seriesModel.getData(a.dataType);x=w.getItemModel(a.dataIndex)}s.on("drag",r(l,x.getModel("labelLine")))}}else s.off("drag"),s.cursor=c.cursor}},n.prototype.layout=function(t){var e=t.getWidth(),i=t.getHeight(),r=BT(this._labelList),o=ve(r,function(l){return l.layoutOption.moveOverlap==="shiftX"}),a=ve(r,function(l){return l.layoutOption.moveOverlap==="shiftY"});k6(o,0,e),VT(a,0,i);var s=ve(r,function(l){return l.layoutOption.hideOverlap});HT(s)},n.prototype.processLabelsOverall=function(){var t=this;E(this._chartViewList,function(e){var i=e.__model,r=e.ignoreLabelLineUpdate,o=i.isAnimationEnabled();e.group.traverse(function(a){if(a.ignore&&!a.forceLabelAnimation)return!0;var s=!r,l=a.getTextContent();!s&&l&&(s=s0(l).needsUpdateLabelLine),s&&t._updateLabelLine(a,i),o&&t._animateLabels(a,i)})})},n.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),r=Ut(t),o=r.dataIndex;if(i&&o!=null){var a=e.getData(r.dataType),s=a.getItemModel(o),l={},c=a.getItemVisual(o,"style");if(c){var f=a.getVisual("drawType");l.stroke=c[f]}var p=s.getModel("labelLine");NT(t,zT(s),l),OT(t,p)}},n.prototype._animateLabels=function(t,e){var i=t.getTextContent(),r=t.getTextGuideLine();if(i&&(t.forceLabelAnimation||!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!as(t))){var o=s0(i),a=o.oldLayout,s=Ut(t),l=s.dataIndex,c={x:i.x,y:i.y,rotation:i.rotation},f=e.getData(s.dataType);if(a){i.attr(a);var p=t.prevStates;p&&(Vt(p,"select")>=0&&i.attr(o.oldLayoutSelect),Vt(p,"emphasis")>=0&&i.attr(o.oldLayoutEmphasis)),Ie(i,c,e,l)}else if(i.attr(c),!ss(i).valueAnimation){var g=Nt(i.style.opacity,1);i.style.opacity=0,Re(i,{style:{opacity:g}},e,l)}if(o.oldLayout=c,i.states.select){var d=o.oldLayoutSelect={};_p(d,c,xp),_p(d,i.states.select,xp)}if(i.states.emphasis){var y=o.oldLayoutEmphasis={};_p(y,c,xp),_p(y,i.states.emphasis,xp)}Tz(i,l,f,e,e)}if(r&&!r.ignore&&!r.invisible){var o=T6(r),a=o.oldLayout,_={points:r.shape.points};a?(r.attr({shape:a}),Ie(r,{shape:_},e)):(r.setShape(_),r.style.strokePercent=0,Re(r,{style:{strokePercent:1}},e)),o.oldLayout=_}},n})(),l0=fe();function D6(n){n.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){var r=l0(e).labelManager;r||(r=l0(e).labelManager=new I6),r.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var r=l0(e).labelManager;i.updatedSeries.forEach(function(o){r.addLabelsOfSeries(e.getViewOfSeriesModel(o))}),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()})}var A6=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return Hu(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new ye,r=Ni("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);i.add(r),r.setStyle(e.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=e.itemHeight*.8,c=Ni(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);i.add(c),c.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?a:e.iconRotate||0;return c.rotation=f*Math.PI/180,c.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),i},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})(Ye);function u0(n,t){var e=n.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var r=gs(n,t,e[0]);return r!=null?r+"":null}else if(i){for(var o=[],a=0;a<e.length;a++)o.push(gs(n,t,e[a]));return o.join(" ")}}function UT(n,t){var e=n.mapDimensionsAll("defaultedLabel");if(!ct(t))return t+"";for(var i=[],r=0;r<e.length;r++){var o=n.getDimensionIndex(e[r]);o>=0&&i.push(t[o])}return i.join(" ")}var c0=(function(n){ft(t,n);function t(e,i,r,o){var a=n.call(this)||this;return a.updateData(e,i,r,o),a}return t.prototype._createSymbol=function(e,i,r,o,a){this.removeAll();var s=Ni(e,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=P6,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ts(this.childAt(0))},t.prototype.downplay=function(){es(this.childAt(0))},t.prototype.setZ=function(e,i){var r=this.childAt(0);r.zlevel=e,r.z=i},t.prototype.setDraggable=function(e,i){var r=this.childAt(0);r.draggable=e,r.cursor=!i&&e?"move":r.cursor},t.prototype.updateData=function(e,i,r,o){this.silent=!1;var a=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),c=a!==this._symbolType,f=o&&o.disableAnimation;if(c){var p=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(a,e,i,l,p)}else{var g=this.childAt(0);g.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};f?g.attr(d):Ie(g,d,s,i),_h(g)}if(this._updateCommon(e,i,l,r,o),c){var g=this.childAt(0);if(!f){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:g.style.opacity}};g.scaleX=g.scaleY=0,g.style.opacity=0,Re(g,d,s,i)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,r,o,a){var s=this.childAt(0),l=e.hostModel,c,f,p,g,d,y,_,m,x;if(o&&(c=o.emphasisItemStyle,f=o.blurItemStyle,p=o.selectItemStyle,g=o.focus,d=o.blurScope,_=o.labelStatesModels,m=o.hoverScale,x=o.cursorStyle,y=o.emphasisDisabled),!o||e.hasItemOption){var w=o&&o.itemModel?o.itemModel:e.getItemModel(i),S=w.getModel("emphasis");c=S.getModel("itemStyle").getItemStyle(),p=w.getModel(["select","itemStyle"]).getItemStyle(),f=w.getModel(["blur","itemStyle"]).getItemStyle(),g=S.get("focus"),d=S.get("blurScope"),y=S.get("disabled"),_=pu(w),m=S.getShallow("scale"),x=w.getShallow("cursor")}var C=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(C||0)*Math.PI/180||0);var M=XC(e.getItemVisual(i,"symbolOffset"),r);M&&(s.x=M[0],s.y=M[1]),x&&s.attr("cursor",x);var T=e.getItemVisual(i,"style"),D=T.fill;if(s instanceof Ki){var P=s.style;s.useStyle(st({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},T))}else s.__isEmptyBrush?s.useStyle(st({},T)):s.useStyle(T),s.style.decal=null,s.setColor(D,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var L=e.getItemVisual(i,"liftZ"),O=this._z2;L!=null?O==null&&(this._z2=s.z2,s.z2+=L):O!=null&&(s.z2=O,this._z2=null);var N=a&&a.useNameLabel;hu(s,_,{labelFetcher:l,labelDataIndex:i,defaultText:B,inheritColor:D,defaultOpacity:T.opacity});function B($){return N?e.getName($):u0(e,$)}this._sizeX=r[0]/2,this._sizeY=r[1]/2;var V=s.ensureState("emphasis");V.style=c,s.ensureState("select").style=p,s.ensureState("blur").style=f;var Z=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;V.scaleX=this._sizeX*Z,V.scaleY=this._sizeY*Z,this.setSymbolScale(1),ns(this,g,d,y)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,r){var o=this.childAt(0),a=Ut(this).dataIndex,s=r&&r.animation;if(this.silent=o.silent=!0,r&&r.fadeLabel){var l=o.getTextContent();l&&yh(l,{style:{opacity:0}},i,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();yh(o,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:a,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return QB(e.getItemVisual(i,"symbolSize"))},t})(ye);function P6(n,t){this.parent.drift(n,t)}function f0(n,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&n.getItemVisual(e,"symbol")!=="none"}function GT(n){return n!=null&&!_t(n)&&(n={isIgnore:n}),n||{}}function jT(n){var t=n.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:pu(t),cursorStyle:t.get("cursor")}}var ZT=(function(){function n(t){this.group=new ye,this._SymbolCtor=t||c0}return n.prototype.updateData=function(t,e){this._progressiveEls=null,e=GT(e);var i=this.group,r=t.hostModel,o=this._data,a=this._SymbolCtor,s=e.disableAnimation,l=jT(t),c={disableAnimation:s},f=e.getSymbolPoint||function(p){return t.getItemLayout(p)};o||i.removeAll(),t.diff(o).add(function(p){var g=f(p);if(f0(t,g,p,e)){var d=new a(t,p,l,c);d.setPosition(g),t.setItemGraphicEl(p,d),i.add(d)}}).update(function(p,g){var d=o.getItemGraphicEl(g),y=f(p);if(!f0(t,y,p,e)){i.remove(d);return}var _=t.getItemVisual(p,"symbol")||"circle",m=d&&d.getSymbolType&&d.getSymbolType();if(!d||m&&m!==_)i.remove(d),d=new a(t,p,l,c),d.setPosition(y);else{d.updateData(t,p,l,c);var x={x:y[0],y:y[1]};s?d.attr(x):Ie(d,x,r)}i.add(d),t.setItemGraphicEl(p,d)}).remove(function(p){var g=o.getItemGraphicEl(p);g&&g.fadeOut(function(){i.remove(g)},r)}).execute(),this._getSymbolPoint=f,this._data=t},n.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,r){var o=t._getSymbolPoint(r);i.setPosition(o),i.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=jT(t),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=GT(i);function r(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var a=e.getItemLayout(o);if(f0(e,a,o,i)){var s=new this._SymbolCtor(e,o,this._seriesScope);s.traverse(r),s.setPosition(a),this.group.add(s),e.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},n.prototype.eachRendered=function(t){fu(this._progressiveEls||this.group,t)},n.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(r){r.fadeOut(function(){e.remove(r)},i.hostModel)}):e.removeAll()},n})();function YT(n,t,e){var i=n.getBaseAxis(),r=n.getOtherAxis(i),o=L6(r,e),a=i.dim,s=r.dim,l=t.mapDimension(s),c=t.mapDimension(a),f=s==="x"||s==="radius"?1:0,p=pt(n.dimensions,function(y){return t.mapDimension(y)}),g=!1,d=t.getCalculationInfo("stackResultDimension");return Xo(t,p[0])&&(g=!0,p[0]=d),Xo(t,p[1])&&(g=!0,p[1]=d),{dataDimsForPoint:p,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!g,valueDim:l,baseDim:c,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function L6(n,t){var e=0,i=n.scale.getExtent();return t==="start"?e=i[0]:t==="end"?e=i[1]:oe(t)&&!isNaN(t)?e=t:i[0]>0?e=i[0]:i[1]<0&&(e=i[1]),e}function XT(n,t,e,i){var r=NaN;n.stacked&&(r=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=n.valueStart);var o=n.baseDataOffset,a=[];return a[o]=e.get(n.baseDim,i),a[1-o]=r,t.dataToPoint(a)}function E6(n,t){var e=[];return t.diff(n).add(function(i){e.push({cmd:"+",idx:i})}).update(function(i,r){e.push({cmd:"=",idx:r,idx1:i})}).remove(function(i){e.push({cmd:"-",idx:i})}).execute(),e}function O6(n,t,e,i,r,o,a,s){for(var l=E6(n,t),c=[],f=[],p=[],g=[],d=[],y=[],_=[],m=YT(r,t,a),x=n.getLayout("points")||[],w=t.getLayout("points")||[],S=0;S<l.length;S++){var C=l[S],M=!0,T=void 0,D=void 0;switch(C.cmd){case"=":T=C.idx*2,D=C.idx1*2;var P=x[T],L=x[T+1],O=w[D],N=w[D+1];(isNaN(P)||isNaN(L))&&(P=O,L=N),c.push(P,L),f.push(O,N),p.push(e[T],e[T+1]),g.push(i[D],i[D+1]),_.push(t.getRawIndex(C.idx1));break;case"+":var B=C.idx,V=m.dataDimsForPoint,Z=r.dataToPoint([t.get(V[0],B),t.get(V[1],B)]);D=B*2,c.push(Z[0],Z[1]),f.push(w[D],w[D+1]);var $=XT(m,r,t,B);p.push($[0],$[1]),g.push(i[D],i[D+1]),_.push(t.getRawIndex(B));break;case"-":M=!1}M&&(d.push(C),y.push(y.length))}y.sort(function(tt,X){return _[tt]-_[X]});for(var et=c.length,z=Bi(et),H=Bi(et),K=Bi(et),it=Bi(et),j=[],S=0;S<y.length;S++){var U=y[S],G=S*2,Q=U*2;z[G]=c[Q],z[G+1]=c[Q+1],H[G]=f[Q],H[G+1]=f[Q+1],K[G]=p[Q],K[G+1]=p[Q+1],it[G]=g[Q],it[G+1]=g[Q+1],j[S]=d[U]}return{current:z,next:H,stackedOnCurrent:K,stackedOnNext:it,status:j}}var Zr=Math.min,Yr=Math.max;function Qo(n,t){return isNaN(n)||isNaN(t)}function h0(n,t,e,i,r,o,a,s,l){for(var c,f,p,g,d,y,_=e,m=0;m<i;m++){var x=t[_*2],w=t[_*2+1];if(_>=r||_<0)break;if(Qo(x,w)){if(l){_+=o;continue}break}if(_===e)n[o>0?"moveTo":"lineTo"](x,w),p=x,g=w;else{var S=x-c,C=w-f;if(S*S+C*C<.5){_+=o;continue}if(a>0){for(var M=_+o,T=t[M*2],D=t[M*2+1];T===x&&D===w&&m<i;)m++,M+=o,_+=o,T=t[M*2],D=t[M*2+1],x=t[_*2],w=t[_*2+1],S=x-c,C=w-f;var P=m+1;if(l)for(;Qo(T,D)&&P<i;)P++,M+=o,T=t[M*2],D=t[M*2+1];var L=.5,O=0,N=0,B=void 0,V=void 0;if(P>=i||Qo(T,D))d=x,y=w;else{O=T-c,N=D-f;var Z=x-c,$=T-x,et=w-f,z=D-w,H=void 0,K=void 0;if(s==="x"){H=Math.abs(Z),K=Math.abs($);var it=O>0?1:-1;d=x-it*H*a,y=w,B=x+it*K*a,V=w}else if(s==="y"){H=Math.abs(et),K=Math.abs(z);var j=N>0?1:-1;d=x,y=w-j*H*a,B=x,V=w+j*K*a}else H=Math.sqrt(Z*Z+et*et),K=Math.sqrt($*$+z*z),L=K/(K+H),d=x-O*a*(1-L),y=w-N*a*(1-L),B=x+O*a*L,V=w+N*a*L,B=Zr(B,Yr(T,x)),V=Zr(V,Yr(D,w)),B=Yr(B,Zr(T,x)),V=Yr(V,Zr(D,w)),O=B-x,N=V-w,d=x-O*H/K,y=w-N*H/K,d=Zr(d,Yr(c,x)),y=Zr(y,Yr(f,w)),d=Yr(d,Zr(c,x)),y=Yr(y,Zr(f,w)),O=x-d,N=w-y,B=x+O*K/H,V=w+N*K/H}n.bezierCurveTo(p,g,d,y,x,w),p=B,g=V}else n.lineTo(x,w)}c=x,f=w,_+=o}return m}var $T=(function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n})(),R6=(function(n){ft(t,n);function t(e){var i=n.call(this,e)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $T},t.prototype.buildPath=function(e,i){var r=i.points,o=0,a=r.length/2;if(i.connectNulls){for(;a>0&&Qo(r[a*2-2],r[a*2-1]);a--);for(;o<a&&Qo(r[o*2],r[o*2+1]);o++);}for(;o<a;)o+=h0(e,r,o,a,a,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(e,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var r=this.path,o=r.data,a=Br.CMD,s,l,c=i==="x",f=[],p=0;p<o.length;){var g=o[p++],d=void 0,y=void 0,_=void 0,m=void 0,x=void 0,w=void 0,S=void 0;switch(g){case a.M:s=o[p++],l=o[p++];break;case a.L:if(d=o[p++],y=o[p++],S=c?(e-s)/(d-s):(e-l)/(y-l),S<=1&&S>=0){var C=c?(y-l)*S+l:(d-s)*S+s;return c?[e,C]:[C,e]}s=d,l=y;break;case a.C:d=o[p++],y=o[p++],_=o[p++],m=o[p++],x=o[p++],w=o[p++];var M=c?Pf(s,d,_,x,e,f):Pf(l,y,m,w,e,f);if(M>0)for(var T=0;T<M;T++){var D=f[T];if(D<=1&&D>=0){var C=c?Ae(l,y,m,w,D):Ae(s,d,_,x,D);return c?[e,C]:[C,e]}}s=x,l=w;break}}},t})($t),N6=(function(n){ft(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t})($T),z6=(function(n){ft(t,n);function t(e){var i=n.call(this,e)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new N6},t.prototype.buildPath=function(e,i){var r=i.points,o=i.stackedOnPoints,a=0,s=r.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Qo(r[s*2-2],r[s*2-1]);s--);for(;a<s&&Qo(r[a*2],r[a*2+1]);a++);}for(;a<s;){var c=h0(e,r,a,s,s,1,i.smooth,l,i.connectNulls);h0(e,o,a+c-1,c,s,-1,i.stackedOnSmooth,l,i.connectNulls),a+=c+1,e.closePath()}},t})($t);function qT(n,t,e,i,r){var o=n.getArea(),a=o.x,s=o.y,l=o.width,c=o.height,f=e.get(["lineStyle","width"])||0;a-=f/2,s-=f/2,l+=f,c+=f,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var p=new se({shape:{x:a,y:s,width:l,height:c}});if(t){var g=n.getBaseAxis(),d=g.isHorizontal(),y=g.inverse;d?(y&&(p.shape.x+=l),p.shape.width=0):(y||(p.shape.y+=c),p.shape.height=0);var _=St(r)?function(m){r(m,p)}:null;Re(p,{shape:{width:l,height:c,x:a,y:s}},e,null,i,_)}return p}function QT(n,t,e){var i=n.getArea(),r=Ce(i.r0,1),o=Ce(i.r,1),a=new tr({shape:{cx:Ce(n.cx,1),cy:Ce(n.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=n.getBaseAxis().dim==="angle";s?a.shape.endAngle=i.startAngle:a.shape.r=r,Re(a,{shape:{endAngle:i.endAngle,r:o}},e)}return a}function KT(n,t,e,i,r){if(n){if(n.type==="polar")return QT(n,t,e);if(n.type==="cartesian2d")return qT(n,t,e,i,r)}else return null;return null}function p0(n,t){return n.type===t}function JT(n,t){if(n.length===t.length){for(var e=0;e<n.length;e++)if(n[e]!==t[e])return;return!0}}function tI(n){for(var t=1/0,e=1/0,i=-1/0,r=-1/0,o=0;o<n.length;){var a=n[o++],s=n[o++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(e=Math.min(s,e),r=Math.max(s,r))}return[[t,e],[i,r]]}function eI(n,t){var e=tI(n),i=e[0],r=e[1],o=tI(t),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function nI(n){return oe(n)?n:n?.5:0}function B6(n,t,e){if(!e.valueDim)return[];for(var i=t.count(),r=Bi(i*2),o=0;o<i;o++){var a=XT(e,n,t,o);r[o*2]=a[0],r[o*2+1]=a[1]}return r}function Xr(n,t,e,i,r){var o=e.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,c=[],f=[],p=[],g=[];if(r){for(l=0;l<n.length;l+=2){var d=t||n;!isNaN(d[l])&&!isNaN(d[l+1])&&g.push(n[l],n[l+1])}n=g}for(l=0;l<n.length-2;l+=2)switch(p[0]=n[l+2],p[1]=n[l+3],f[0]=n[l],f[1]=n[l+1],s.push(f[0],f[1]),i){case"end":c[a]=p[a],c[1-a]=f[1-a],s.push(c[0],c[1]);break;case"middle":var y=(f[a]+p[a])/2,_=[];c[a]=_[a]=y,c[1-a]=f[1-a],_[1-a]=p[1-a],s.push(c[0],c[1]),s.push(_[0],_[1]);break;default:c[a]=f[a],c[1-a]=p[1-a],s.push(c[0],c[1])}return s.push(n[l++],n[l++]),s}function F6(n,t){var e=[],i=n.length,r,o;function a(f,p,g){var d=f.coord,y=(g-d)/(p.coord-d),_=kv(y,[f.color,p.color]);return{coord:g,color:_}}for(var s=0;s<i;s++){var l=n[s],c=l.coord;if(c<0)r=l;else if(c>t){o?e.push(a(o,l,t)):r&&e.push(a(r,l,0),a(r,l,t));break}else r&&(e.push(a(r,l,0)),r=null),e.push(l),o=l}return e}function V6(n,t,e){var i=n.getVisual("visualMeta");if(!(!i||!i.length||!n.count())&&t.type==="cartesian2d"){for(var r,o,a=i.length-1;a>=0;a--){var s=n.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,r==="x"||r==="y"){o=i[a];break}}if(o){var l=t.getAxis(r),c=pt(o.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),f=c.length,p=o.outerColors.slice();f&&c[0].coord>c[f-1].coord&&(c.reverse(),p.reverse());var g=F6(c,r==="x"?e.getWidth():e.getHeight()),d=g.length;if(!d&&f)return c[0].coord<0?p[1]?p[1]:c[f-1].color:p[0]?p[0]:c[0].color;var y=10,_=g[0].coord-y,m=g[d-1].coord+y,x=m-_;if(x<.001)return"transparent";E(g,function(S){S.offset=(S.coord-_)/x}),g.push({offset:d?g[d-1].offset:.5,color:p[1]||"transparent"}),g.unshift({offset:d?g[0].offset:.5,color:p[0]||"transparent"});var w=new Dy(0,0,0,0,g,!0);return w[r]=_,w[r+"2"]=m,w}}}function H6(n,t,e){var i=n.get("showAllSymbol"),r=i==="auto";if(!(i&&!r)){var o=e.getAxesByScale("ordinal")[0];if(o&&!(r&&W6(o,t))){var a=t.mapDimension(o.dim),s={};return E(o.getViewLabels(),function(l){var c=o.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function W6(n,t){var e=n.getExtent(),i=Math.abs(e[1]-e[0])/n.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(c0.getSymbolSize(t,a)[n.isHorizontal()?1:0]*1.5>i)return!1;return!0}function U6(n,t){return isNaN(n)||isNaN(t)}function G6(n){for(var t=n.length/2;t>0&&U6(n[t*2-2],n[t*2-1]);t--);return t-1}function iI(n,t){return[n[t*2],n[t*2+1]]}function j6(n,t,e){for(var i=n.length/2,r=e==="x"?0:1,o,a,s=0,l=-1,c=0;c<i;c++)if(a=n[c*2+r],!(isNaN(a)||isNaN(n[c*2+1-r]))){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 rI(n){if(n.get(["endLabel","show"]))return!0;for(var t=0;t<Hn.length;t++)if(n.get([Hn[t],"endLabel","show"]))return!0;return!1}function d0(n,t,e,i){if(p0(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=rI(i)?function(d,y){n._endLabelOnDuring(d,y,a,s,o,r,t)}:null,c=t.getBaseAxis().isHorizontal(),f=qT(t,e,i,function(){var d=n._endLabel;d&&e&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var p=f.shape,g=Math.max(p.width,p.height);c?(p.y-=g,p.height+=g*2):(p.x-=g,p.width+=g*2)}return l&&l(1,f),f}else return QT(t,e,i)}function Z6(n,t){var e=t.getBaseAxis(),i=e.isHorizontal(),r=e.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:n.get("align")||o,verticalAlign:n.get("verticalAlign")||a}}}var Y6=(function(n){ft(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(){var e=new ye,i=new ZT;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=e,this._changePolyState=wt(this._changePolyState,this)},t.prototype.render=function(e,i,r){var o=e.coordinateSystem,a=this.group,s=e.getData(),l=e.getModel("lineStyle"),c=e.getModel("areaStyle"),f=s.getLayout("points")||[],p=o.type==="polar",g=this._coordSys,d=this._symbolDraw,y=this._polyline,_=this._polygon,m=this._lineGroup,x=!i.ssr&&e.get("animation"),w=!c.isEmpty(),S=c.get("origin"),C=YT(o,s,S),M=w&&B6(o,s,C),T=e.get("showSymbol"),D=e.get("connectNulls"),P=T&&!p&&H6(e,s,o),L=this._data;L&&L.eachItemGraphicEl(function(tt,X){tt.__temp&&(a.remove(tt),L.setItemGraphicEl(X,null))}),T||d.remove(),a.add(m);var O=p?!1:e.get("step"),N;o&&o.getArea&&e.get("clip",!0)&&(N=o.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 B=V6(s,o,r)||s.getVisual("style")[s.getVisual("drawType")];if(!(y&&g.type===o.type&&O===this._step))T&&d.updateData(s,{isIgnore:P,clipShape:N,disableAnimation:!0,getSymbolPoint:function(tt){return[f[tt*2],f[tt*2+1]]}}),x&&this._initSymbolLabelAnimation(s,o,N),O&&(M&&(M=Xr(M,f,o,O,D)),f=Xr(f,null,o,O,D)),y=this._newPolyline(f),w?_=this._newPolygon(f,M):_&&(m.remove(_),_=this._polygon=null),p||this._initOrUpdateEndLabel(e,o,Ho(B)),m.setClipPath(d0(this,o,!0,e));else{w&&!_?_=this._newPolygon(f,M):_&&!w&&(m.remove(_),_=this._polygon=null),p||this._initOrUpdateEndLabel(e,o,Ho(B));var V=m.getClipPath();if(V){var Z=d0(this,o,!1,e);Re(V,{shape:Z.shape},e)}else m.setClipPath(d0(this,o,!0,e));T&&d.updateData(s,{isIgnore:P,clipShape:N,disableAnimation:!0,getSymbolPoint:function(tt){return[f[tt*2],f[tt*2+1]]}}),(!JT(this._stackedOnPoints,M)||!JT(this._points,f))&&(x?this._doUpdateAnimation(s,M,o,r,O,S,D):(O&&(M&&(M=Xr(M,f,o,O,D)),f=Xr(f,null,o,O,D)),y.setShape({points:f}),_&&_.setShape({points:f,stackedOnPoints:M})))}var $=e.getModel("emphasis"),et=$.get("focus"),z=$.get("blurScope"),H=$.get("disabled");if(y.useStyle(Wt(l.getLineStyle(),{fill:"none",stroke:B,lineJoin:"bevel"})),tu(y,e,"lineStyle"),y.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var K=y.getState("emphasis").style;K.lineWidth=+y.style.lineWidth+1}Ut(y).seriesIndex=e.seriesIndex,ns(y,et,z,H);var it=nI(e.get("smooth")),j=e.get("smoothMonotone");if(y.setShape({smooth:it,smoothMonotone:j,connectNulls:D}),_){var U=s.getCalculationInfo("stackedOnSeries"),G=0;_.useStyle(Wt(c.getAreaStyle(),{fill:B,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(G=nI(U.get("smooth"))),_.setShape({smooth:it,stackedOnSmooth:G,smoothMonotone:j,connectNulls:D}),tu(_,e,"areaStyle"),Ut(_).seriesIndex=e.seriesIndex,ns(_,et,z,H)}var Q=this._changePolyState;s.eachItemGraphicEl(function(tt){tt&&(tt.onHoverStateChange=Q)}),this._polyline.onHoverStateChange=Q,this._data=s,this._coordSys=o,this._stackedOnPoints=M,this._points=f,this._step=O,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,y),_&&this.packEventData(e,_))},t.prototype.packEventData=function(e,i){Ut(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,r,o){var a=e.getData(),s=To(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 f=l[s*2],p=l[s*2+1];if(isNaN(f)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,p))return;var g=e.get("zlevel")||0,d=e.get("z")||0;c=new c0(a,s),c.x=f,c.y=p,c.setZ(g,d);var y=c.getSymbolPath().getTextContent();y&&(y.zlevel=g,y.z=d,y.z2=this._polyline.z2+1),c.__temp=!0,a.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else Be.prototype.highlight.call(this,e,i,r,o)},t.prototype.downplay=function(e,i,r,o){var a=e.getData(),s=To(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 Be.prototype.downplay.call(this,e,i,r,o)},t.prototype._changePolyState=function(e){var i=this._polygon;Sk(this._polyline,e),i&&Sk(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new R6({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new z6({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},t.prototype._initSymbolLabelAnimation=function(e,i,r){var o,a,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):i.type==="polar"&&(o=s.dim==="angle",a=!0);var c=e.hostModel,f=c.get("animationDuration");St(f)&&(f=f(null));var p=c.get("animationDelay")||0,g=St(p)?p(null):p;e.eachItemGraphicEl(function(d,y){var _=d;if(_){var m=[d.x,d.y],x=void 0,w=void 0,S=void 0;if(r)if(a){var C=r,M=i.pointToCoord(m);o?(x=C.startAngle,w=C.endAngle,S=-M[1]/180*Math.PI):(x=C.r0,w=C.r,S=M[0])}else{var T=r;o?(x=T.x,w=T.x+T.width,S=d.x):(x=T.y+T.height,w=T.y,S=d.y)}var D=w===x?0:(S-x)/(w-x);l&&(D=1-D);var P=St(p)?p(y):f*D+g,L=_.getSymbolPath(),O=L.getTextContent();_.attr({scaleX:0,scaleY:0}),_.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:P}),O&&O.animateFrom({style:{opacity:0}},{duration:300,delay:P}),L.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,r){var o=e.getModel("endLabel");if(rI(e)){var a=e.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 we({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=G6(l);f>=0&&(hu(s,pu(e,"endLabel"),{inheritColor:r,labelFetcher:e,labelDataIndex:f,defaultText:function(p,g,d){return d!=null?UT(a,d):u0(a,p)},enableTextSetter:!0},Z6(o,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,r,o,a,s,l){var c=this._endLabel,f=this._polyline;if(c){e<1&&o.originalX==null&&(o.originalX=c.x,o.originalY=c.y);var p=r.getLayout("points"),g=r.hostModel,d=g.get("connectNulls"),y=s.get("precision"),_=s.get("distance")||0,m=l.getBaseAxis(),x=m.isHorizontal(),w=m.inverse,S=i.shape,C=w?x?S.x:S.y+S.height:x?S.x+S.width:S.y,M=(x?_:0)*(w?-1:1),T=(x?0:-_)*(w?-1:1),D=x?"x":"y",P=j6(p,C,D),L=P.range,O=L[1]-L[0],N=void 0;if(O>=1){if(O>1&&!d){var B=iI(p,L[0]);c.attr({x:B[0]+M,y:B[1]+T}),a&&(N=g.getRawValue(L[0]))}else{var B=f.getPointOn(C,D);B&&c.attr({x:B[0]+M,y:B[1]+T});var V=g.getRawValue(L[0]),Z=g.getRawValue(L[1]);a&&(N=HS(r,y,V,Z,P.t))}o.lastFrameIndex=L[0]}else{var $=e===1||o.lastFrameIndex>0?L[0]:0,B=iI(p,$);a&&(N=g.getRawValue($)),c.attr({x:B[0]+M,y:B[1]+T})}if(a){var et=ss(c);typeof et.setLabelText=="function"&&et.setLabelText(N)}}},t.prototype._doUpdateAnimation=function(e,i,r,o,a,s,l){var c=this._polyline,f=this._polygon,p=e.hostModel,g=O6(this._data,e,this._stackedOnPoints,i,this._coordSys,r,this._valueOrigin),d=g.current,y=g.stackedOnCurrent,_=g.next,m=g.stackedOnNext;if(a&&(y=Xr(g.stackedOnCurrent,g.current,r,a,l),d=Xr(g.current,null,r,a,l),m=Xr(g.stackedOnNext,g.next,r,a,l),_=Xr(g.next,null,r,a,l)),eI(d,_)>3e3||f&&eI(y,m)>3e3){c.stopAnimation(),c.setShape({points:_}),f&&(f.stopAnimation(),f.setShape({points:_,stackedOnPoints:m}));return}c.shape.__points=g.current,c.shape.points=d;var x={shape:{points:_}};g.current!==d&&(x.shape.__points=g.next),c.stopAnimation(),Ie(c,x,p),f&&(f.setShape({points:d,stackedOnPoints:y}),f.stopAnimation(),Ie(f,{shape:{stackedOnPoints:m}},p),c.shape.points!==f.shape.points&&(f.shape.points=c.shape.points));for(var w=[],S=g.status,C=0;C<S.length;C++){var M=S[C].cmd;if(M==="="){var T=e.getItemGraphicEl(S[C].idx1);T&&w.push({el:T,ptIdx:C})}}c.animators&&c.animators.length&&c.animators[0].during(function(){f&&f.dirtyShape();for(var D=c.shape.__points,P=0;P<w.length;P++){var L=w[P].el,O=w[P].ptIdx*2;L.x=D[O],L.y=D[O+1],L.markRedraw()}})},t.prototype.remove=function(e){var i=this.group,r=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),r&&r.eachItemGraphicEl(function(o,a){o.__temp&&(i.remove(o),r.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Be);function g0(n,t){return{seriesType:n,plan:Iu(),reset:function(e){var i=e.getData(),r=e.coordinateSystem,o=e.pipelineContext,a=t||o.large;if(r){var s=pt(r.dimensions,function(d){return i.mapDimension(d)}).slice(0,2),l=s.length,c=i.getCalculationInfo("stackResultDimension");Xo(i,s[0])&&(s[0]=c),Xo(i,s[1])&&(s[1]=c);var f=i.getStore(),p=i.getDimensionIndex(s[0]),g=i.getDimensionIndex(s[1]);return l&&{progress:function(d,y){for(var _=d.end-d.start,m=a&&Bi(_*l),x=[],w=[],S=d.start,C=0;S<d.end;S++){var M=void 0;if(l===1){var T=f.get(p,S);M=r.dataToPoint(T,null,w)}else x[0]=f.get(p,S),x[1]=f.get(g,S),M=r.dataToPoint(x,null,w);a?(m[C++]=M[0],m[C++]=M[1]):y.setItemLayout(S,M.slice())}a&&y.setLayout("points",m)}}}}}}var X6={average:function(n){for(var t=0,e=0,i=0;i<n.length;i++)isNaN(n[i])||(t+=n[i],e++);return e===0?NaN:t/e},sum:function(n){for(var t=0,e=0;e<n.length;e++)t+=n[e]||0;return t},max:function(n){for(var t=-1/0,e=0;e<n.length;e++)n[e]>t&&(t=n[e]);return isFinite(t)?t:NaN},min:function(n){for(var t=1/0,e=0;e<n.length;e++)n[e]<t&&(t=n[e]);return isFinite(t)?t:NaN},nearest:function(n){return n[0]}},$6=function(n){return Math.round(n.length/2)};function oI(n){return{seriesType:n,reset:function(t,e,i){var r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),c=a.getOtherAxis(l),f=l.getExtent(),p=i.getDevicePixelRatio(),g=Math.abs(f[1]-f[0])*(p||1),d=Math.round(s/g);if(isFinite(d)&&d>1){o==="lttb"?t.setData(r.lttbDownSample(r.mapDimension(c.dim),1/d)):o==="minmax"&&t.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/d));var y=void 0;gt(o)?y=X6[o]:St(o)&&(y=o),y&&t.setData(r.downSample(r.mapDimension(c.dim),1/d,y,$6))}}}}}function q6(n){n.registerChartView(Y6),n.registerSeriesModel(A6),n.registerLayout(g0("line",!0)),n.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,oI("line"))}var v0=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,i){return Hu(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,i,r){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(e),s=o.dataToPoint(a);if(r)E(o.getAxes(),function(g,d){if(g.type==="category"&&i!=null){var y=g.getTicksCoords(),_=g.getTickModel().get("alignWithLabel"),m=a[d],x=i[d]==="x1"||i[d]==="y1";if(x&&!_&&(m+=1),y.length<2)return;if(y.length===2){s[d]=g.toGlobalCoord(g.getExtent()[x?1:0]);return}for(var w=void 0,S=void 0,C=1,M=0;M<y.length;M++){var T=y[M].coord,D=M===y.length-1?y[M-1].tickValue+C:y[M].tickValue;if(D===m){S=T;break}else if(D<m)w=T;else if(w!=null&&D>m){S=(T+w)/2;break}M===1&&(C=D-y[0].tickValue)}S==null&&(w?w&&(S=y[y.length-1].coord):S=y[0].coord),s[d]=g.toGlobalCoord(S)}});else{var l=this.getData(),c=l.getLayout("offset"),f=l.getLayout("size"),p=o.getBaseAxis().isHorizontal()?0:1;s[p]+=c+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(Ye);Ye.registerClass(v0);var Q6=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Hu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>e&&(e=i),e},t.prototype.brushSelector=function(e,i,r){return r.rect(i.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Mh(v0.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(v0),K6=(function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n})(),aI=(function(n){ft(t,n);function t(e){var i=n.call(this,e)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new K6},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-a)*.5,c=a+l,f=i.startAngle,p=i.endAngle,g=i.clockwise,d=Math.PI*2,y=g?p-f<d:f-p<d;y||(f=p-(g?d:-d));var _=Math.cos(f),m=Math.sin(f),x=Math.cos(p),w=Math.sin(p);y?(e.moveTo(_*a+r,m*a+o),e.arc(_*c+r,m*c+o,l,-Math.PI+f,f,!g)):e.moveTo(_*s+r,m*s+o),e.arc(r,o,s,f,p,!g),e.arc(x*c+r,w*c+o,l,p-Math.PI*2,p-Math.PI,!g),a!==0&&e.arc(r,o,a,p,f,g)},t})($t);function J6(n,t){t=t||{};var e=t.isRoundCap;return function(i,r,o){var a=r.position;if(!a||a instanceof Array)return jf(i,r,o);var s=n(a),l=r.distance!=null?r.distance:5,c=this.shape,f=c.cx,p=c.cy,g=c.r,d=c.r0,y=(g+d)/2,_=c.startAngle,m=c.endAngle,x=(_+m)/2,w=e?Math.abs(g-d)/2:0,S=Math.cos,C=Math.sin,M=f+g*S(_),T=p+g*C(_),D="left",P="top";switch(s){case"startArc":M=f+(d-l)*S(x),T=p+(d-l)*C(x),D="center",P="top";break;case"insideStartArc":M=f+(d+l)*S(x),T=p+(d+l)*C(x),D="center",P="bottom";break;case"startAngle":M=f+y*S(_)+bp(_,l+w,!1),T=p+y*C(_)+wp(_,l+w,!1),D="right",P="middle";break;case"insideStartAngle":M=f+y*S(_)+bp(_,-l+w,!1),T=p+y*C(_)+wp(_,-l+w,!1),D="left",P="middle";break;case"middle":M=f+y*S(x),T=p+y*C(x),D="center",P="middle";break;case"endArc":M=f+(g+l)*S(x),T=p+(g+l)*C(x),D="center",P="bottom";break;case"insideEndArc":M=f+(g-l)*S(x),T=p+(g-l)*C(x),D="center",P="top";break;case"endAngle":M=f+y*S(m)+bp(m,l+w,!0),T=p+y*C(m)+wp(m,l+w,!0),D="left",P="middle";break;case"insideEndAngle":M=f+y*S(m)+bp(m,-l+w,!0),T=p+y*C(m)+wp(m,-l+w,!0),D="right",P="middle";break;default:return jf(i,r,o)}return i=i||{},i.x=M,i.y=T,i.align=D,i.verticalAlign=P,i}}function tH(n,t,e,i){if(oe(i)){n.setTextConfig({rotation:i});return}else if(ct(t)){n.setTextConfig({rotation:0});return}var r=n.shape,o=r.clockwise?r.startAngle:r.endAngle,a=r.clockwise?r.endAngle:r.startAngle,s=(o+a)/2,l,c=e(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=o;break;case"endAngle":case"insideEndAngle":l=a;break;default:n.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;c==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),n.setTextConfig({rotation:f})}function bp(n,t,e){return t*Math.sin(n)*(e?-1:1)}function wp(n,t,e){return t*Math.cos(n)*(e?1:-1)}function ju(n,t,e){var i=n.get("borderRadius");if(i==null)return e?{cornerRadius:0}:null;ct(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:pt(i,function(o){return Rr(o,r)})}}var y0=Math.max,m0=Math.min;function eH(n,t){var e=n.getArea&&n.getArea();if(p0(n,"cartesian2d")){var i=n.getBaseAxis();if(i.type!=="category"||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(e.x-=r,e.width+=r*2):(e.y-=r,e.height+=r*2)}}return e}var nH=(function(n){ft(t,n);function t(){var e=n.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,i,r,o){this._model=e,this._removeOnRenderedListener(r),this._updateDrawMode(e);var a=e.get("coordinateSystem");(a==="cartesian2d"||a==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,i,r):this._renderNormal(e,i,r,o))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,i){this._progressiveEls=[],this._incrementalRenderLarge(e,i)},t.prototype.eachRendered=function(e){fu(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var i=e.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(e,i,r,o){var a=this.group,s=e.getData(),l=this._data,c=e.coordinateSystem,f=c.getBaseAxis(),p;c.type==="cartesian2d"?p=f.isHorizontal():c.type==="polar"&&(p=f.dim==="angle");var g=e.isAnimationEnabled()?e:null,d=iH(e,c);d&&this._enableRealtimeSort(d,s,r);var y=e.get("clip",!0)||d,_=eH(c,s);a.removeClipPath();var m=e.get("roundCap",!0),x=e.get("showBackground",!0),w=e.getModel("backgroundStyle"),S=w.get("borderRadius")||0,C=[],M=this._backgroundEls,T=o&&o.isInitSort,D=o&&o.type==="changeAxisOrder";function P(N){var B=Sp[c.type](s,N),V=cH(c,p,B);return V.useStyle(w.getItemStyle()),c.type==="cartesian2d"?V.setShape("r",S):V.setShape("cornerRadius",S),C[N]=V,V}s.diff(l).add(function(N){var B=s.getItemModel(N),V=Sp[c.type](s,N,B);if(x&&P(N),!(!s.hasValue(N)||!fI[c.type](V))){var Z=!1;y&&(Z=sI[c.type](_,V));var $=lI[c.type](e,s,N,V,p,g,f.model,!1,m);d&&($.forceLabelAnimation=!0),pI($,s,N,B,V,e,p,c.type==="polar"),T?$.attr({shape:V}):d?uI(d,g,$,V,N,p,!1,!1):Re($,{shape:V},e,N),s.setItemGraphicEl(N,$),a.add($),$.ignore=Z}}).update(function(N,B){var V=s.getItemModel(N),Z=Sp[c.type](s,N,V);if(x){var $=void 0;M.length===0?$=P(B):($=M[B],$.useStyle(w.getItemStyle()),c.type==="cartesian2d"?$.setShape("r",S):$.setShape("cornerRadius",S),C[N]=$);var et=Sp[c.type](s,N),z=yI(p,et,c);Ie($,{shape:z},g,N)}var H=l.getItemGraphicEl(B);if(!s.hasValue(N)||!fI[c.type](Z)){a.remove(H);return}var K=!1;if(y&&(K=sI[c.type](_,Z),K&&a.remove(H)),H?_h(H):H=lI[c.type](e,s,N,Z,p,g,f.model,!!H,m),d&&(H.forceLabelAnimation=!0),D){var it=H.getTextContent();if(it){var j=ss(it);j.prevValue!=null&&(j.prevValue=j.value)}}else pI(H,s,N,V,Z,e,p,c.type==="polar");T?H.attr({shape:Z}):d?uI(d,g,H,Z,N,p,!0,D):Ie(H,{shape:Z},e,N,null),s.setItemGraphicEl(N,H),H.ignore=K,a.add(H)}).remove(function(N){var B=l.getItemGraphicEl(N);B&&mh(B,e,N)}).execute();var L=this._backgroundGroup||(this._backgroundGroup=new ye);L.removeAll();for(var O=0;O<C.length;++O)L.add(C[O]);a.add(L),this._backgroundEls=C,this._data=s},t.prototype._renderLarge=function(e,i,r){this._clear(),gI(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,i){this._removeBackground(),gI(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var i=e.get("clip",!0)&&KT(e.coordinateSystem,!1,e),r=this.group;i?r.setClipPath(i):r.removeClipPath()},t.prototype._enableRealtimeSort=function(e,i,r){var o=this;if(i.count()){var a=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,e,r),this._isFirstFrame=!1;else{var s=function(l){var c=i.getItemGraphicEl(l),f=c&&c.shape;return f&&Math.abs(a.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){o._updateSortWithinSameData(i,s,a,r)},r.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,i,r){var o=[];return e.each(e.mapDimension(i.dim),function(a,s){var l=r(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),o.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:pt(o,function(a){return a.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,i,r){for(var o=r.scale,a=e.mapDimension(r.dim),s=Number.MAX_VALUE,l=0,c=o.getOrdinalMeta().categories.length;l<c;++l){var f=e.rawIndexOf(a,o.getRawOrdinalNumber(l)),p=f<0?Number.MIN_VALUE:i(e.indexOfRawIndex(f));if(p>s)return!0;s=p}return!1},t.prototype._isOrderDifferentInView=function(e,i){for(var r=i.scale,o=r.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],r.getOrdinalMeta().categories.length-1);a<=s;++a)if(e.ordinalNumbers[a]!==r.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(e,i,r,o){if(this._isOrderChangedWithinSameData(e,i,r)){var a=this._dataSort(e,r,i);this._isOrderDifferentInView(a,r)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",axisId:r.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(e,i,r){var o=i.baseAxis,a=this._dataSort(e,o,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});r.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},t.prototype.remove=function(e,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(e,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var i=this.group,r=this._data;e&&e.isAnimationEnabled()&&r&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],r.eachItemGraphicEl(function(o){mh(o,e,Ut(o).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(Be),sI={cartesian2d:function(n,t){var e=t.width<0?-1:1,i=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=n.x+n.width,o=n.y+n.height,a=y0(t.x,n.x),s=m0(t.x+t.width,r),l=y0(t.y,n.y),c=m0(t.y+t.height,o),f=s<a,p=c<l;return t.x=f&&a>r?s:a,t.y=p&&l>o?c:l,t.width=f?0:s-a,t.height=p?0:c-l,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),f||p},polar:function(n,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var r=m0(t.r,n.r),o=y0(t.r0,n.r0);t.r=r,t.r0=o;var a=r-o<0;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}return a}},lI={cartesian2d:function(n,t,e,i,r,o,a,s,l){var c=new se({shape:st({},i),z2:1});if(c.__dataIndex=e,c.name="item",o){var f=c.shape,p=r?"height":"width";f[p]=0}return c},polar:function(n,t,e,i,r,o,a,s,l){var c=!r&&l?aI:tr,f=new c({shape:i,z2:1});f.name="item";var p=hI(r);if(f.calculateTextPosition=J6(p,{isRoundCap:c===aI}),o){var g=f.shape,d=r?"r":"endAngle",y={};g[d]=r?i.r0:i.startAngle,y[d]=i[d],(s?Ie:Re)(f,{shape:y},o)}return f}};function iH(n,t){var e=n.get("realtimeSort",!0),i=t.getBaseAxis();if(e&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function uI(n,t,e,i,r,o,a,s){var l,c;o?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Ie:Re)(e,{shape:l},t,r,null);var f=t?n.baseAxis.model:null;(a?Ie:Re)(e,{shape:c},f,r)}function cI(n,t){for(var e=0;e<t.length;e++)if(!isFinite(n[t[e]]))return!0;return!1}var rH=["x","y","width","height"],oH=["cx","cy","r","startAngle","endAngle"],fI={cartesian2d:function(n){return!cI(n,rH)},polar:function(n){return!cI(n,oH)}},Sp={cartesian2d:function(n,t,e){var i=n.getItemLayout(t),r=e?sH(e,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(n,t,e){var i=n.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function aH(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function hI(n){return(function(t){var e=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+e;default:return i}}})(n)}function pI(n,t,e,i,r,o,a,s){var l=t.getItemVisual(e,"style");if(s){if(!o.get("roundCap")){var c=n.shape,f=ju(i.getModel("itemStyle"),c,!0);st(c,f),n.setShape(c)}}else{var p=i.get(["itemStyle","borderRadius"])||0;n.setShape("r",p)}n.useStyle(l);var g=i.getShallow("cursor");g&&n.attr("cursor",g);var d=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",y=pu(i);hu(n,y,{labelFetcher:o,labelDataIndex:e,defaultText:u0(o.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var _=n.getTextContent();if(s&&_){var m=i.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,tH(n,m==="outside"?d:m,hI(a),i.get(["label","rotate"]))}Cz(_,y,o.getRawValue(e),function(w){return UT(t,w)});var x=i.getModel(["emphasis"]);ns(n,x.get("focus"),x.get("blurScope"),x.get("disabled")),tu(n,i),aH(r)&&(n.style.fill="none",n.style.stroke="none",E(n.states,function(w){w.style&&(w.style.fill=w.style.stroke="none")}))}function sH(n,t){var e=n.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var i=n.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}var lH=(function(){function n(){}return n})(),dI=(function(n){ft(t,n);function t(e){var i=n.call(this,e)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new lH},t.prototype.buildPath=function(e,i){for(var r=i.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],c=this.barWidth,f=0;f<r.length;f+=3)l[o]=c,l[a]=r[f+2],s[o]=r[f+o],s[a]=r[f+a],e.rect(s[0],s[1],l[0],l[1])},t})($t);function gI(n,t,e,i){var r=n.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=n.getModel("backgroundStyle"),c=r.getLayout("largeBackgroundPoints");if(c){var f=new dI({shape:{points:c},incremental:!!i,silent:!0,z2:0});f.baseDimIdx=o,f.largeDataIndices=a,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var p=new dI({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=o,p.largeDataIndices=a,p.barWidth=s,t.add(p),p.useStyle(r.getVisual("style")),p.style.stroke=null,Ut(p).seriesIndex=n.seriesIndex,n.get("silent")||(p.on("mousedown",vI),p.on("mousemove",vI)),e&&e.push(p)}var vI=Uh(function(n){var t=this,e=uH(t,n.offsetX,n.offsetY);Ut(t).dataIndex=e>=0?e:null},30,!1);function uH(n,t,e){for(var i=n.baseDimIdx,r=1-i,o=n.shape.points,a=n.largeDataIndices,s=[],l=[],c=n.barWidth,f=0,p=o.length/3;f<p;f++){var g=f*3;if(l[i]=c,l[r]=o[g+2],s[i]=o[g+i],s[r]=o[g+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return a[f]}return-1}function yI(n,t,e){if(p0(e,"cartesian2d")){var i=t,r=e.getArea();return{x:n?i.x:r.x,y:n?r.y:i.y,width:n?i.width:r.width,height:n?r.height:i.height}}else{var r=e.getArea(),o=t;return{cx:r.cx,cy:r.cy,r0:n?r.r0:o.r0,r:n?r.r:o.r,startAngle:n?o.startAngle:0,endAngle:n?o.endAngle:Math.PI*2}}}function cH(n,t,e){var i=n.type==="polar"?tr:se;return new i({shape:yI(t,e,n),silent:!0,z2:0})}function fH(n){n.registerChartView(nH),n.registerSeriesModel(Q6),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Gt(mV,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_V("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,oI("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(r){t.sortInfo&&r.axis.setCategorySortInfo(t.sortInfo)})})}var mI=Math.PI*2,kp=Math.PI/180;function _I(n,t){return Ei(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xI(n,t){var e=_I(n,t),i=n.get("center"),r=n.get("radius");ct(r)||(r=[0,r]);var o=Qt(e.width,t.getWidth()),a=Qt(e.height,t.getHeight()),s=Math.min(o,a),l=Qt(r[0],s/2),c=Qt(r[1],s/2),f,p,g=n.coordinateSystem;if(g){var d=g.dataToPoint(i);f=d[0]||0,p=d[1]||0}else ct(i)||(i=[i,i]),f=Qt(i[0],o)+e.x,p=Qt(i[1],a)+e.y;return{cx:f,cy:p,r0:l,r:c}}function hH(n,t,e){t.eachSeriesByType(n,function(i){var r=i.getData(),o=r.mapDimension("value"),a=_I(i,e),s=xI(i,e),l=s.cx,c=s.cy,f=s.r,p=s.r0,g=-i.get("startAngle")*kp,d=i.get("endAngle"),y=i.get("padAngle")*kp;d=d==="auto"?g-mI:-d*kp;var _=i.get("minAngle")*kp,m=_+y,x=0;r.each(o,function(z){!isNaN(z)&&x++});var w=r.getSum(o),S=Math.PI/(w||x)*2,C=i.get("clockwise"),M=i.get("roseType"),T=i.get("stillShowZeroSum"),D=r.getDataExtent(o);D[0]=0;var P=C?1:-1,L=[g,d],O=P*y/2;ek(L,!C),g=L[0],d=L[1];var N=bI(i);N.startAngle=g,N.endAngle=d,N.clockwise=C;var B=Math.abs(d-g),V=B,Z=0,$=g;if(r.setLayout({viewRect:a,r:f}),r.each(o,function(z,H){var K;if(isNaN(z)){r.setItemLayout(H,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:C,cx:l,cy:c,r0:p,r:M?NaN:f});return}M!=="area"?K=w===0&&T?S:z*S:K=B/x,K<m?(K=m,V-=m):Z+=z;var it=$+P*K,j=0,U=0;y>K?(j=$+P*K/2,U=j):(j=$+O,U=it-O),r.setItemLayout(H,{angle:K,startAngle:j,endAngle:U,clockwise:C,cx:l,cy:c,r0:p,r:M?Le(z,D,[p,f]):f}),$=it}),V<mI&&x)if(V<=.001){var et=B/x;r.each(o,function(z,H){if(!isNaN(z)){var K=r.getItemLayout(H);K.angle=et;var it=0,j=0;et<y?(it=g+P*(H+1/2)*et,j=it):(it=g+P*H*et+O,j=g+P*(H+1)*et-O),K.startAngle=it,K.endAngle=j}})}else S=V/Z,$=g,r.each(o,function(z,H){if(!isNaN(z)){var K=r.getItemLayout(H),it=K.angle===m?m:z*S,j=0,U=0;it<y?(j=$+P*it/2,U=j):(j=$+O,U=$+P*it-O),K.startAngle=j,K.endAngle=U,$+=P*it}})})}var bI=fe();function pH(n){return{seriesType:n,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(!(!i||!i.length)){var r=t.getData();r.filterSelf(function(o){for(var a=r.getName(o),s=0;s<i.length;s++)if(!i[s].isSelected(a))return!1;return!0})}}}}var dH=Math.PI/180;function wI(n,t,e,i,r,o,a,s,l,c){if(n.length<2)return;function f(_){for(var m=_.rB,x=m*m,w=0;w<_.list.length;w++){var S=_.list[w],C=Math.abs(S.label.y-e),M=i+S.len,T=M*M,D=Math.sqrt(Math.abs((1-C*C/x)*T)),P=t+(D+S.len2)*r,L=P-S.label.x,O=S.targetTextWidth-L*r;SI(S,O,!0),S.label.x=P}}function p(_){for(var m={list:[],maxY:0},x={list:[],maxY:0},w=0;w<_.length;w++)if(_[w].labelAlignTo==="none"){var S=_[w],C=S.label.y>e?x:m,M=Math.abs(S.label.y-e);if(M>=C.maxY){var T=S.label.x-t-S.len2*r,D=i+S.len,P=Math.abs(T)<D?Math.sqrt(M*M/(1-T*T/D/D)):D;C.rB=P,C.maxY=M}C.list.push(S)}f(m),f(x)}for(var g=n.length,d=0;d<g;d++)if(n[d].position==="outer"&&n[d].labelAlignTo==="labelLine"){var y=n[d].label.x-c;n[d].linePoints[1][0]+=y,n[d].label.x=c}VT(n,l,l+a)&&p(n)}function gH(n,t,e,i,r,o,a,s){for(var l=[],c=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<n.length;g++){var d=n[g].label;_0(n[g])||(d.x<t?(f=Math.min(f,d.x),l.push(n[g])):(p=Math.max(p,d.x),c.push(n[g])))}for(var g=0;g<n.length;g++){var y=n[g];if(!_0(y)&&y.linePoints){if(y.labelStyleWidth!=null)continue;var d=y.label,_=y.linePoints,m=void 0;y.labelAlignTo==="edge"?d.x<t?m=_[2][0]-y.labelDistance-a-y.edgeDistance:m=a+r-y.edgeDistance-_[2][0]-y.labelDistance:y.labelAlignTo==="labelLine"?d.x<t?m=f-a-y.bleedMargin:m=a+r-p-y.bleedMargin:d.x<t?m=d.x-a-y.bleedMargin:m=a+r-d.x-y.bleedMargin,y.targetTextWidth=m,SI(y,m)}}wI(c,t,e,i,1,r,o,a,s,p),wI(l,t,e,i,-1,r,o,a,s,f);for(var g=0;g<n.length;g++){var y=n[g];if(!_0(y)&&y.linePoints){var d=y.label,_=y.linePoints,x=y.labelAlignTo==="edge",w=d.style.padding,S=w?w[1]+w[3]:0,C=d.style.backgroundColor?0:S,M=y.rect.width+C,T=_[1][0]-_[2][0];x?d.x<t?_[2][0]=a+y.edgeDistance+M+y.labelDistance:_[2][0]=a+r-y.edgeDistance-M-y.labelDistance:(d.x<t?_[2][0]=d.x+y.labelDistance:_[2][0]=d.x-y.labelDistance,_[1][0]=_[2][0]+T),_[1][1]=_[2][1]=d.y}}}function SI(n,t,e){if(e===void 0&&(e=!1),n.labelStyleWidth==null){var i=n.label,r=i.style,o=n.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,c=r.overflow,f=o.width+(a?0:l);if(t<f||e){var p=o.height;if(c&&c.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var g=i.getBoundingRect();i.setStyle("width",Math.ceil(g.width)),i.setStyle("backgroundColor",a)}else{var d=t-l,y=t<f?d:e?d>n.unconstrainedWidth?null:d:null;i.setStyle("width",y)}var _=i.getBoundingRect();o.width=_.width;var m=(i.style.margin||0)+2.1;o.height=_.height+m,o.y-=(o.height-p)/2}}}function _0(n){return n.position==="center"}function vH(n){var t=n.getData(),e=[],i,r,o=!1,a=(n.get("minShowLabelAngle")||0)*dH,s=t.getLayout("viewRect"),l=t.getLayout("r"),c=s.width,f=s.x,p=s.y,g=s.height;function d(T){T.ignore=!0}function y(T){if(!T.ignore)return!0;for(var D in T.states)if(T.states[D].ignore===!1)return!0;return!1}t.each(function(T){var D=t.getItemGraphicEl(T),P=D.shape,L=D.getTextContent(),O=D.getTextGuideLine(),N=t.getItemModel(T),B=N.getModel("label"),V=B.get("position")||N.get(["emphasis","label","position"]),Z=B.get("distanceToLabelLine"),$=B.get("alignTo"),et=Qt(B.get("edgeDistance"),c),z=B.get("bleedMargin"),H=N.getModel("labelLine"),K=H.get("length");K=Qt(K,c);var it=H.get("length2");if(it=Qt(it,c),Math.abs(P.endAngle-P.startAngle)<a){E(L.states,d),L.ignore=!0,O&&(E(O.states,d),O.ignore=!0);return}if(y(L)){var j=(P.startAngle+P.endAngle)/2,U=Math.cos(j),G=Math.sin(j),Q,tt,X,mt;i=P.cx,r=P.cy;var ot=V==="inside"||V==="inner";if(V==="center")Q=P.cx,tt=P.cy,mt="center";else{var bt=(ot?(P.r+P.r0)/2*U:P.r*U)+i,xt=(ot?(P.r+P.r0)/2*G:P.r*G)+r;if(Q=bt+U*3,tt=xt+G*3,!ot){var ut=bt+U*(K+l-P.r),lt=xt+G*(K+l-P.r),qt=ut+(U<0?-1:1)*it,Zt=lt;$==="edge"?Q=U<0?f+et:f+c-et:Q=qt+(U<0?-Z:Z),tt=Zt,X=[[bt,xt],[ut,lt],[qt,Zt]]}mt=ot?"center":$==="edge"?U>0?"right":"left":U>0?"left":"right"}var Tt=Math.PI,ne=0,Bt=B.get("rotate");if(oe(Bt))ne=Bt*(Tt/180);else if(V==="center")ne=0;else if(Bt==="radial"||Bt===!0){var me=U<0?-j+Tt:-j;ne=me}else if(Bt==="tangential"&&V!=="outside"&&V!=="outer"){var qe=Math.atan2(U,G);qe<0&&(qe=Tt*2+qe);var _e=G>0;_e&&(qe=Tt+qe),ne=qe-Tt}if(o=!!ne,L.x=Q,L.y=tt,L.rotation=ne,L.setStyle({verticalAlign:"middle"}),ot){L.setStyle({align:mt});var Tn=L.states.select;Tn&&(Tn.x+=L.x,Tn.y+=L.y)}else{var un=L.getBoundingRect().clone();un.applyTransform(L.getComputedTransform());var Pe=(L.style.margin||0)+2.1;un.y-=Pe/2,un.height+=Pe,e.push({label:L,labelLine:O,position:V,len:K,len2:it,minTurnAngle:H.get("minTurnAngle"),maxSurfaceAngle:H.get("maxSurfaceAngle"),surfaceNormal:new Pt(U,G),linePoints:X,textAlign:mt,labelDistance:Z,labelAlignTo:$,edgeDistance:et,bleedMargin:z,rect:un,unconstrainedWidth:un.width,labelStyleWidth:L.style.width})}D.setTextConfig({inside:ot})}}),!o&&n.get("avoidLabelOverlap")&&gH(e,i,r,l,c,g,f,p);for(var _=0;_<e.length;_++){var m=e[_],x=m.label,w=m.labelLine,S=isNaN(x.x)||isNaN(x.y);if(x){x.setStyle({align:m.textAlign}),S&&(E(x.states,d),x.ignore=!0);var C=x.states.select;C&&(C.x+=x.x,C.y+=x.y)}if(w){var M=m.linePoints;S||!M?(E(w.states,d),w.ignore=!0):(RT(M,m.minTurnAngle),w6(M,m.surfaceNormal,m.maxSurfaceAngle),w.setShape({points:M}),x.__hostTarget.textGuideLineConfig={anchor:new Pt(M[0][0],M[0][1])})}}}var yH=(function(n){ft(t,n);function t(e,i,r){var o=n.call(this)||this;o.z2=2;var a=new we;return o.setTextContent(a),o.updateData(e,i,r,!0),o}return t.prototype.updateData=function(e,i,r,o){var a=this,s=e.hostModel,l=e.getItemModel(i),c=l.getModel("emphasis"),f=e.getItemLayout(i),p=st(ju(l.getModel("itemStyle"),f,!0),f);if(isNaN(p.startAngle)){a.setShape(p);return}if(o){a.setShape(p);var g=s.getShallow("animationType");s.ecModel.ssr?(Re(a,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),a.originX=p.cx,a.originY=p.cy):g==="scale"?(a.shape.r=f.r0,Re(a,{shape:{r:f.r}},s,i)):r!=null?(a.setShape({startAngle:r,endAngle:r}),Re(a,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(a.shape.endAngle=f.startAngle,Ie(a,{shape:{endAngle:f.endAngle}},s,i))}else _h(a),Ie(a,{shape:p},s,i);a.useStyle(e.getItemVisual(i,"style")),tu(a,l);var d=(f.startAngle+f.endAngle)/2,y=s.get("selectedOffset"),_=Math.cos(d)*y,m=Math.sin(d)*y,x=l.getShallow("cursor");x&&a.attr("cursor",x),this._updateLabel(s,e,i),a.ensureState("emphasis").shape=st({r:f.r+(c.get("scale")&&c.get("scaleSize")||0)},ju(c.getModel("itemStyle"),f)),st(a.ensureState("select"),{x:_,y:m,shape:ju(l.getModel(["select","itemStyle"]),f)}),st(a.ensureState("blur"),{shape:ju(l.getModel(["blur","itemStyle"]),f)});var w=a.getTextGuideLine(),S=a.getTextContent();w&&st(w.ensureState("select"),{x:_,y:m}),st(S.ensureState("select"),{x:_,y:m}),ns(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(e,i,r){var o=this,a=i.getItemModel(r),s=a.getModel("labelLine"),l=i.getItemVisual(r,"style"),c=l&&l.fill,f=l&&l.opacity;hu(o,pu(a),{labelFetcher:i.hostModel,labelDataIndex:r,inheritColor:c,defaultOpacity:f,defaultText:e.getFormattedLabel(r,"normal")||i.getName(r)});var p=o.getTextContent();o.setTextConfig({position:null,rotation:null}),p.attr({z2:10});var g=e.get(["label","position"]);if(g!=="outside"&&g!=="outer")o.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Vr,this.setTextGuideLine(d)),NT(this,zT(a),{stroke:c,opacity:Ba(s.get(["lineStyle","opacity"]),f,1)})}},t})(tr),mH=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,i,r,o){var a=e.getData(),s=this._data,l=this.group,c;if(!s&&a.count()>0){for(var f=a.getItemLayout(0),p=1;isNaN(f&&f.startAngle)&&p<a.count();++p)f=a.getItemLayout(p);f&&(c=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),a.count()===0&&e.get("showEmptyCircle")){var g=bI(e),d=new tr({shape:st(xI(e,r),g)});d.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}a.diff(s).add(function(y){var _=new yH(a,y,c);a.setItemGraphicEl(y,_),l.add(_)}).update(function(y,_){var m=s.getItemGraphicEl(_);m.updateData(a,y,c),m.off("click"),l.add(m),a.setItemGraphicEl(y,m)}).remove(function(y){var _=s.getItemGraphicEl(y);mh(_,e,y)}).execute(),vH(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,i){var r=i.getData(),o=r.getItemLayout(0);if(o){var a=e[0]-o.cx,s=e[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},t.type="pie",t})(Be);function kI(n,t,e){t=ct(t)&&{coordDimensions:t}||st({encodeDefine:n.getEncode()},t);var i=n.getSource(),r=Xm(i,t).dimensions,o=new Ym(r,n);return o.initData(i,e),o}var _H=(function(){function n(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return n.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},n.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},n.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},n.prototype.getItemVisual=function(t,e){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,e)},n})(),xH=fe(),bH=(function(n){ft(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new _H(wt(this.getData,this),wt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return kI(this,{coordDimensions:["value"],encodeDefaulter:Gt(n4,this)})},t.prototype.getDataParams=function(e){var i=this.getData(),r=xH(i),o=r.seats;if(!o){var a=[];i.each(i.mapDimension("value"),function(l){a.push(l)}),o=r.seats=DS(a,i.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,e);return s.percent=o[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Kv(e,"labelLine",["show"]);var i=e.labelLine,r=e.emphasis.labelLine;i.show=i.show&&e.label.show,r.show=r.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(Ye);function wH(n){return{seriesType:n,reset:function(t,e){var i=t.getData();i.filterSelf(function(r){var o=i.mapDimension("value"),a=i.get(o,r);return!(oe(a)&&!isNaN(a)&&a<0)})}}}function SH(n){n.registerChartView(mH),n.registerSeriesModel(bH),BB("pie",n.registerAction),n.registerLayout(Gt(hH,"pie")),n.registerProcessor(pH("pie")),n.registerProcessor(wH("pie"))}var kH=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,i){return Hu(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,i,r){return r.point(i.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t})(Ye),MI=4,MH=(function(){function n(){}return n})(),CH=(function(n){ft(t,n);function t(e){var i=n.call(this,e)||this;return i._off=0,i.hoverDataIdx=-1,i}return t.prototype.getDefaultShape=function(){return new MH},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,i){var r=i.points,o=i.size,a=this.symbolProxy,s=a.shape,l=e.getContext?e.getContext():e,c=l&&o[0]<MI,f=this.softClipShape,p;if(c){this._ctx=l;return}for(this._ctx=null,p=this._off;p<r.length;){var g=r[p++],d=r[p++];isNaN(g)||isNaN(d)||f&&!f.contain(g,d)||(s.x=g-o[0]/2,s.y=d-o[1]/2,s.width=o[0],s.height=o[1],a.buildPath(e,s,!0))}this.incremental&&(this._off=p,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,i=e.points,r=e.size,o=this._ctx,a=this.softClipShape,s;if(o){for(s=this._off;s<i.length;){var l=i[s++],c=i[s++];isNaN(l)||isNaN(c)||a&&!a.contain(l,c)||o.fillRect(l-r[0]/2,c-r[1]/2,r[0],r[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,i){for(var r=this.shape,o=r.points,a=r.size,s=Math.max(a[0],4),l=Math.max(a[1],4),c=o.length/2-1;c>=0;c--){var f=c*2,p=o[f]-s/2,g=o[f+1]-l/2;if(e>=p&&i>=g&&e<=p+s&&i<=g+l)return c}return-1},t.prototype.contain=function(e,i){var r=this.transformCoordToLocal(e,i),o=this.getBoundingRect();if(e=r[0],i=r[1],o.contain(e,i)){var a=this.hoverDataIdx=this.findDataIndex(e,i);return a>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var i=this.shape,r=i.points,o=i.size,a=o[0],s=o[1],l=1/0,c=1/0,f=-1/0,p=-1/0,g=0;g<r.length;){var d=r[g++],y=r[g++];l=Math.min(d,l),f=Math.max(d,f),c=Math.min(y,c),p=Math.max(y,p)}e=this._rect=new jt(l-a/2,c-s/2,f-l+a,p-c+s)}return e},t})($t),TH=(function(){function n(){this.group=new ye}return n.prototype.updateData=function(t,e){this._clear();var i=this._create();i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,e)},n.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var r=(i.endIndex-i.startIndex)*2,o=i.startIndex*4*2;e=new Float32Array(e.buffer,o,r)}i.setShape("points",e),i.reset()})},n.prototype.incrementalPrepareUpdate=function(t){this._clear()},n.prototype.incrementalUpdate=function(t,e,i){var r=this._newAdded[0],o=e.getLayout("points"),a=r&&r.shape.points;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+o.length);l.set(a),l.set(o,s),r.endIndex=t.end,r.setShape({points:l})}else{this._newAdded=[];var c=this._create();c.startIndex=t.start,c.endIndex=t.end,c.incremental=!0,c.setShape({points:o}),this._setCommon(c,e,i)}},n.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},n.prototype._create=function(){var t=new CH({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},n.prototype._setCommon=function(t,e,i){var r=e.hostModel;i=i||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=i.clipShape||null,t.symbolProxy=Ni(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<MI;t.useStyle(r.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var c=Ut(t);c.seriesIndex=r.seriesIndex,t.on("mousemove",function(f){c.dataIndex=null;var p=t.hoverDataIdx;p>=0&&(c.dataIndex=p+(t.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n})(),IH=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,r){var o=e.getData(),a=this._updateSymbolDraw(o,e);a.updateData(o,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,i,r){var o=e.getData(),a=this._updateSymbolDraw(o,e);a.incrementalPrepareUpdate(o),this._finished=!1},t.prototype.incrementalRender=function(e,i,r){this._symbolDraw.incrementalUpdate(e,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=e.end===i.getData().count()},t.prototype.updateTransform=function(e,i,r){var o=e.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var a=g0("").reset(e,i,r);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var i=e.coordinateSystem;return i&&i.getArea&&i.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,i){var r=this._symbolDraw,o=i.pipelineContext,a=o.large;return(!r||a!==this._isLargeDraw)&&(r&&r.remove(),r=this._symbolDraw=a?new TH:new ZT,this._isLargeDraw=a,this.group.removeAll()),this.group.add(r.group),r},t.prototype.remove=function(e,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(Be),DH=(function(n){ft(t,n);function t(){return n!==null&&n.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})(Yt),x0=(function(n){ft(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rn).models[0]},t.type="cartesian2dAxis",t})(Yt);Sn(x0,dT);var CI={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},AH=zt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},CI),b0=zt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},CI),PH=zt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},b0),LH=Wt({logBase:10},b0);const EH={category:AH,value:b0,time:PH,log:LH};var OH={value:1,category:1,time:1,log:1};function TI(n,t,e,i){E(OH,function(r,o){var a=zt(zt({},EH[o],!0),i,!0),s=(function(l){ft(c,l);function c(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+o,f}return c.prototype.mergeDefaultAndTheme=function(f,p){var g=xu(this),d=g?bu(f):{},y=p.getTheme();zt(f,y.get(o+"Axis")),zt(f,this.getDefaultOption()),f.type=II(f),g&&hs(f,d,g)},c.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=$m.createByAxisModel(this))},c.prototype.getCategories=function(f){var p=this.option;if(p.type==="category")return f?p.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=t+"Axis."+o,c.defaultOption=a,c})(e);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(t+"Axis",II)}function II(n){return n.type||(n.data?"category":"value")}var RH=(function(){function n(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return n.prototype.getAxis=function(t){return this._axes[t]},n.prototype.getAxes=function(){return pt(this._dimList,function(t){return this._axes[t]},this)},n.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ve(this.getAxes(),function(e){return e.scale.type===t})},n.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},n})(),w0=["x","y"];function DI(n){return n.type==="interval"||n.type==="time"}var NH=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=w0,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!DI(e)||!DI(i))){var r=e.getExtent(),o=i.getExtent(),a=this.dataToPoint([r[0],o[0]]),s=this.dataToPoint([r[1],o[1]]),l=r[1]-r[0],c=o[1]-o[0];if(!(!l||!c)){var f=(s[0]-a[0])/l,p=(s[1]-a[1])/c,g=a[0]-r[0]*f,d=a[1]-o[0]*p,y=this._transform=[f,0,0,p,g,d];this._invTransform=Wa([],y)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),r=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&r.contain(r.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var r=this.dataToPoint(e),o=this.dataToPoint(i),a=this.getArea(),s=new jt(r[0],r[1],o[0]-r[0],o[1]-r[1]);return a.intersect(s)},t.prototype.dataToPoint=function(e,i,r){r=r||[];var o=e[0],a=e[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return tn(r,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return r[0]=s.toGlobalCoord(s.dataToCoord(o,i)),r[1]=l.toGlobalCoord(l.dataToCoord(a,i)),r},t.prototype.clampData=function(e,i){var r=this.getAxis("x").scale,o=this.getAxis("y").scale,a=r.getExtent(),s=o.getExtent(),l=r.parse(e[0]),c=o.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var r=[];if(this._invTransform)return tn(r,e,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return r[0]=o.coordToData(o.toLocalCoord(e[0]),i),r[1]=a.coordToData(a.toLocalCoord(e[1]),i),r},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var i=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),o=Math.min(i[0],i[1])-e,a=Math.min(r[0],r[1])-e,s=Math.max(i[0],i[1])-o+e,l=Math.max(r[0],r[1])-a+e;return new jt(o,a,s,l)},t})(RH),zH=(function(n){ft(t,n);function t(e,i,r,o,a){var s=n.call(this,e,i,r)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(PT);function S0(n,t,e){e=e||{};var i=n.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,c=r.dim,f=i.getRect(),p=[f.x,f.x+f.width,f.y,f.y+f.height],g={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,y=c==="x"?[p[2]-d,p[3]+d]:[p[0]-d,p[1]+d];if(a){var _=a.toGlobalCoord(a.dataToCoord(0));y[g.onZero]=Math.max(Math.min(_,y[1]),y[0])}o.position=[c==="y"?y[g[l]]:p[0],c==="x"?y[g[l]]:p[3]],o.rotation=Math.PI/2*(c==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[s],o.labelOffset=a?y[g[s]]-y[g.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),za(e.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var x=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-x:x,o.z2=1,o}function AI(n){return n.get("coordinateSystem")==="cartesian2d"}function PI(n){var t={xAxisModel:null,yAxisModel:null};return E(t,function(e,i){var r=i.replace(/Model$/,""),o=n.getReferringComponents(r,rn).models[0];t[i]=o}),t}var k0=Math.log;function BH(n,t,e){var i=bs.prototype,r=i.getTicks.call(e),o=i.getTicks.call(e,!0),a=r.length-1,s=i.getInterval.call(e),l=cT(n,t),c=l.extent,f=l.fixMin,p=l.fixMax;if(n.type==="log"){var g=k0(n.base);c=[k0(c[0])/g,k0(c[1])/g]}n.setExtent(c[0],c[1]),n.calcNiceExtent({splitNumber:a,fixMin:f,fixMax:p});var d=i.getExtent.call(n);f&&(c[0]=d[0]),p&&(c[1]=d[1]);var y=i.getInterval.call(n),_=c[0],m=c[1];if(f&&p)y=(m-_)/a;else if(f)for(m=c[0]+y*a;m<c[1]&&isFinite(m)&&isFinite(c[1]);)y=Qm(y),m=c[0]+y*a;else if(p)for(_=c[1]-y*a;_>c[0]&&isFinite(_)&&isFinite(c[0]);)y=Qm(y),_=c[1]-y*a;else{var x=n.getTicks().length-1;x>a&&(y=Qm(y));var w=y*a;m=Math.ceil(c[1]/y)*y,_=Ce(m-w),_<0&&c[0]>=0?(_=0,m=Ce(w)):m>0&&c[1]<=0&&(m=0,_=-Ce(w))}var S=(r[0].value-o[0].value)/s,C=(r[a].value-o[a].value)/s;i.setExtent.call(n,_+y*S,m+y*C),i.setInterval.call(n,y),(S||C)&&i.setNiceExtent.call(n,_+y,m-y)}var FH=(function(){function n(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=w0,this._initCartesian(t,e,i),this.model=t}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model);function r(a){var s,l=ce(a),c=l.length;if(c){for(var f=[],p=c-1;p>=0;p--){var g=+l[p],d=a[g],y=d.model,_=d.scale;qm(_)&&y.get("alignTicks")&&y.get("interval")==null?f.push(d):(e0(_,y),qm(_)&&(s=d))}f.length&&(s||(s=f.pop(),e0(s.scale,s.model)),E(f,function(m){BH(m.scale,m.model,s.scale)}))}}r(i.x),r(i.y);var o={};E(i.x,function(a){LI(i,"y",a,o)}),E(i.y,function(a){LI(i,"x",a,o)}),this.resize(this.model,e)},n.prototype.resize=function(t,e,i){var r=t.getBoxLayoutParams(),o=!i&&t.get("containLabel"),a=Ei(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(E(s,function(c){if(!c.model.get(["axisLabel","inside"])){var f=zV(c);if(f){var p=c.isHorizontal()?"height":"width",g=c.model.get(["axisLabel","margin"]);a[p]-=f[p]+g,c.position==="top"?a.y+=f.height+g:c.position==="left"&&(a.x+=f.width+g)}}}),l()),E(this._coordsList,function(c){c.calcAffineTransform()});function l(){E(s,function(c){var f=c.isHorizontal(),p=f?[0,a.width]:[0,a.height],g=c.inverse?1:0;c.setExtent(p[g],p[1-g]),VH(c,f?a.x:a.y)})}},n.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}_t(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,o=this._coordsList;r<o.length;r++)if(o[r].getAxis("x").index===t||o[r].getAxis("y").index===e)return o[r]},n.prototype.getCartesians=function(){return this._coordsList.slice()},n.prototype.convertToPixel=function(t,e,i){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(i):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(i)):null},n.prototype.convertFromPixel=function(t,e,i){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(i):r.axis?r.axis.coordToData(r.axis.toLocalCoord(i)):null},n.prototype._findConvertTarget=function(t){var e=t.seriesModel,i=t.xAxisModel||e&&e.getReferringComponents("xAxis",rn).models[0],r=t.yAxisModel||e&&e.getReferringComponents("yAxis",rn).models[0],o=t.gridModel,a=this._coordsList,s,l;if(e)s=e.coordinateSystem,Vt(a,s)<0&&(s=null);else if(i&&r)s=this.getCartesian(i.componentIndex,r.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(r)l=this.getAxis("y",r.componentIndex);else if(o){var c=o.coordinateSystem;c===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},n.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},n.prototype._initCartesian=function(t,e,i){var r=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",c("x"),this),e.eachComponent("yAxis",c("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,E(s.x,function(f,p){E(s.y,function(g,d){var y="x"+p+"y"+d,_=new NH(y);_.master=r,_.model=t,r._coordsMap[y]=_,r._coordsList.push(_),_.addAxis(f),_.addAxis(g)})});function c(f){return function(p,g){if(M0(p,t)){var d=p.get("position");f==="x"?d!=="top"&&d!=="bottom"&&(d=a.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=a.left?"right":"left"),a[d]=!0;var y=new zH(f,fT(p),[0,0],p.get("type"),d),_=y.type==="category";y.onBand=_&&p.get("boundaryGap"),y.inverse=p.get("inverse"),p.axis=y,y.model=p,y.grid=o,y.index=g,o._axesList.push(y),s[f][g]=y,l[f]++}}}},n.prototype._updateScale=function(t,e){E(this._axesList,function(r){if(r.scale.setExtent(1/0,-1/0),r.type==="category"){var o=r.model.get("categorySortInfo");r.scale.setSortInfo(o)}}),t.eachSeries(function(r){if(AI(r)){var o=PI(r),a=o.xAxisModel,s=o.yAxisModel;if(!M0(a,e)||!M0(s,e))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),c=r.getData(),f=l.getAxis("x"),p=l.getAxis("y");i(c,f),i(c,p)}},this);function i(r,o){E(pT(r,o.dim),function(a){o.scale.unionExtentFromData(r,a)})}},n.prototype.getTooltipAxes=function(t){var e=[],i=[];return E(this.getCartesians(),function(r){var o=t!=null&&t!=="auto"?r.getAxis(t):r.getBaseAxis(),a=r.getOtherAxis(o);Vt(e,o)<0&&e.push(o),Vt(i,a)<0&&i.push(a)}),{baseAxes:e,otherAxes:i}},n.create=function(t,e){var i=[];return t.eachComponent("grid",function(r,o){var a=new n(r,t,e);a.name="grid_"+o,a.resize(r,e,!0),r.coordinateSystem=a,i.push(a)}),t.eachSeries(function(r){if(AI(r)){var o=PI(r),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel(),c=l.coordinateSystem;r.coordinateSystem=c.getCartesian(a.componentIndex,s.componentIndex)}}),i},n.dimensions=w0,n})();function M0(n,t){return n.getCoordSysModel()===t}function LI(n,t,e,i){e.getAxesOnZeroOf=function(){return o?[o]:[]};var r=n[t],o,a=e.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)EI(r[l])&&(o=r[l]);else for(var c in r)if(r.hasOwnProperty(c)&&EI(r[c])&&!i[f(r[c])]){o=r[c];break}o&&(i[f(o)]=!0);function f(p){return p.dim+"_"+p.index}}function EI(n){return n&&n.type!=="category"&&n.type!=="time"&&NV(n)}function VH(n,t){var e=n.getExtent(),i=e[0]+e[1];n.toGlobalCoord=n.dim==="x"?function(r){return r+t}:function(r){return i-r+t},n.toLocalCoord=n.dim==="x"?function(r){return r-t}:function(r){return i-r+t}}var $r=Math.PI,qr=(function(){function n(t,e){this.group=new ye,this.opt=e,this.axisModel=t,Wt(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new ye({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return n.prototype.hasBuilder=function(t){return!!OI[t]},n.prototype.add=function(t){OI[t](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(t,e,i){var r=qv(e-t),o,a;return Vl(r)?(a=i>0?"top":"bottom",o="center"):Vl(r-$r)?(a=i>0?"bottom":"top",o="center"):(a="middle",r>0&&r<$r?o=i>0?"right":"left":o=i>0?"left":"right"),{rotation:r,textAlign:o,textVerticalAlign:a}},n.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},n.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},n})(),OI={axisLine:function(n,t,e,i){var r=t.get(["axisLine","show"]);if(r==="auto"&&n.handleAutoShown&&(r=n.handleAutoShown("axisLine")),!!r){var o=t.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];a&&(tn(s,s,a),tn(l,l,a));var f=st({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new er({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});au(p.shape,p.style.lineWidth),p.anid="line",e.add(p);var g=t.get(["axisLine","symbol"]);if(g!=null){var d=t.get(["axisLine","symbolSize"]);gt(g)&&(g=[g,g]),(gt(d)||oe(d))&&(d=[d,d]);var y=XC(t.get(["axisLine","symbolOffset"])||0,d),_=d[0],m=d[1];E([{rotate:n.rotation+Math.PI/2,offset:y[0],r:0},{rotate:n.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(x,w){if(g[w]!=="none"&&g[w]!=null){var S=Ni(g[w],-_/2,-m/2,_,m,f.stroke,!0),C=x.r+x.offset,M=c?l:s;S.attr({rotation:x.rotate,x:M[0]+C*Math.cos(n.rotation),y:M[1]-C*Math.sin(n.rotation),silent:!0,z2:11}),e.add(S)}})}}},axisTickLabel:function(n,t,e,i){var r=UH(e,i,t,n),o=jH(e,i,t,n);if(WH(t,o,r),GH(e,i,t,n.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=BT(pt(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));HT(a)}},axisName:function(n,t,e,i){var r=za(n.axisName,t.get("name"));if(r){var o=t.get("nameLocation"),a=n.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,c=t.axis.getExtent(),f=c[0]>c[1]?-1:1,p=[o==="start"?c[0]-f*l:o==="end"?c[1]+f*l:(c[0]+c[1])/2,NI(o)?n.labelOffset+a*l:0],g,d=t.get("nameRotate");d!=null&&(d=d*$r/180);var y;NI(o)?g=qr.innerTextLayout(n.rotation,d??n.rotation,a):(g=HH(n.rotation,o,d||0,c),y=n.axisNameAvailableWidth,y!=null&&(y=Math.abs(y/Math.sin(g.rotation)),!isFinite(y)&&(y=null)));var _=s.getFont(),m=t.get("nameTruncate",!0)||{},x=m.ellipsis,w=za(n.nameTruncateMaxWidth,m.maxWidth,y),S=new we({x:p[0],y:p[1],rotation:g.rotation,silent:qr.isLabelSilent(t),style:Li(s,{text:r,font:_,overflow:"truncate",width:w,ellipsis:x,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||g.textAlign,verticalAlign:s.get("verticalAlign")||g.textVerticalAlign}),z2:1});if(cu({el:S,componentModel:t,itemName:r}),S.__fullText=r,S.anid="name",t.get("triggerEvent")){var C=qr.makeAxisEventDataBase(t);C.targetType="axisName",C.name=r,Ut(S).eventData=C}i.add(S),S.updateTransform(),e.add(S),S.decomposeTransform()}}};function HH(n,t,e,i){var r=qv(e-n),o,a,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return Vl(r-$r/2)?(a=l?"bottom":"top",o="center"):Vl(r-$r*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",r<$r*1.5&&r>$r/2?o=l?"left":"right":o=l?"right":"left"),{rotation:r,textAlign:o,textVerticalAlign:a}}function WH(n,t,e){if(!hT(n.axis)){var i=n.get(["axisLabel","showMinLabel"]),r=n.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],c=e[0],f=e[1],p=e[e.length-1],g=e[e.length-2];i===!1?(Xn(o),Xn(c)):RI(o,a)&&(i?(Xn(a),Xn(f)):(Xn(o),Xn(c))),r===!1?(Xn(s),Xn(p)):RI(l,s)&&(r?(Xn(l),Xn(g)):(Xn(s),Xn(p)))}}function Xn(n){n&&(n.ignore=!0)}function RI(n,t){var e=n&&n.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var r=Cl([]);return Sf(r,r,-n.rotation),e.applyTransform(Ar([],r,n.getLocalTransform())),i.applyTransform(Ar([],r,t.getLocalTransform())),e.intersect(i)}}function NI(n){return n==="middle"||n==="center"}function zI(n,t,e,i,r){for(var o=[],a=[],s=[],l=0;l<n.length;l++){var c=n[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=e,t&&(tn(a,a,t),tn(s,s,t));var f=new er({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});au(f.shape,f.style.lineWidth),f.anid=r+"_"+n[l].tickValue,o.push(f)}return o}function UH(n,t,e,i){var r=e.axis,o=e.getModel("axisTick"),a=o.get("show");if(a==="auto"&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),!(!a||r.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),c=r.getTicksCoords(),f=zI(c,t.transform,l,Wt(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<f.length;p++)n.add(f[p]);return f}}function GH(n,t,e,i){var r=e.axis,o=e.getModel("minorTick");if(!(!o.get("show")||r.scale.isBlank())){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),c=Wt(s.getLineStyle(),Wt(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<a.length;f++)for(var p=zI(a[f],t.transform,l,c,"minorticks_"+f),g=0;g<p.length;g++)n.add(p[g])}}function jH(n,t,e,i){var r=e.axis,o=za(i.axisLabelShow,e.get(["axisLabel","show"]));if(!(!o||r.scale.isBlank())){var a=e.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),c=(za(i.labelRotate,a.get("rotate"))||0)*$r/180,f=qr.innerTextLayout(i.rotation,c,i.labelDirection),p=e.getCategories&&e.getCategories(!0),g=[],d=qr.isLabelSilent(e),y=e.get("triggerEvent");return E(l,function(_,m){var x=r.scale.type==="ordinal"?r.scale.getRawOrdinalNumber(_.tickValue):_.tickValue,w=_.formattedLabel,S=_.rawLabel,C=a;if(p&&p[x]){var M=p[x];_t(M)&&M.textStyle&&(C=new he(M.textStyle,a,e.ecModel))}var T=C.getTextColor()||e.get(["axisLine","lineStyle","color"]),D=r.dataToCoord(x),P=C.getShallow("align",!0)||f.textAlign,L=Nt(C.getShallow("alignMinLabel",!0),P),O=Nt(C.getShallow("alignMaxLabel",!0),P),N=C.getShallow("verticalAlign",!0)||C.getShallow("baseline",!0)||f.textVerticalAlign,B=Nt(C.getShallow("verticalAlignMinLabel",!0),N),V=Nt(C.getShallow("verticalAlignMaxLabel",!0),N),Z=new we({x:D,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:d,z2:10+(_.level||0),style:Li(C,{text:w,align:m===0?L:m===l.length-1?O:P,verticalAlign:m===0?B:m===l.length-1?V:N,fill:St(T)?T(r.type==="category"?S:r.type==="value"?x+"":x,m):T})});if(Z.anid="label_"+x,cu({el:Z,componentModel:e,itemName:w,formatterParamsExtra:{isTruncated:function(){return Z.isTruncated},value:S,tickIndex:m}}),y){var $=qr.makeAxisEventDataBase(e);$.targetType="axisLabel",$.value=S,$.tickIndex=m,r.type==="category"&&($.dataIndex=x),Ut(Z).eventData=$}t.add(Z),Z.updateTransform(),g.push(Z),n.add(Z),Z.decomposeTransform()}),g}}function ZH(n,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return YH(e,n,t),e.seriesInvolved&&$H(e,n),e}function YH(n,t,e){var i=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];E(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Zu(s.model),c=n.coordSysAxesInfo[l]={};n.coordSysMap[l]=s;var f=s.model,p=f.getModel("tooltip",i);if(E(s.getAxes(),Gt(_,!1,null)),s.getTooltipAxes&&i&&p.get("show")){var g=p.get("trigger")==="axis",d=p.get(["axisPointer","type"])==="cross",y=s.getTooltipAxes(p.get(["axisPointer","axis"]));(g||d)&&E(y.baseAxes,Gt(_,d?"cross":!0,g)),d&&E(y.otherAxes,Gt(_,"cross",!1))}function _(m,x,w){var S=w.model.getModel("axisPointer",r),C=S.get("show");if(!(!C||C==="auto"&&!m&&!I0(S))){x==null&&(x=S.get("triggerTooltip")),S=m?XH(w,p,r,t,m,x):S;var M=S.get("snap"),T=S.get("triggerEmphasis"),D=Zu(w.model),P=x||M||w.type==="category",L=n.axesInfo[D]={key:D,axis:w,coordSys:s,axisPointerModel:S,triggerTooltip:x,triggerEmphasis:T,involveSeries:P,snap:M,useHandle:I0(S),seriesModels:[],linkGroup:null};c[D]=L,n.seriesInvolved=n.seriesInvolved||P;var O=qH(o,w);if(O!=null){var N=a[O]||(a[O]={axesInfo:{}});N.axesInfo[D]=L,N.mapper=o[O].mapper,L.linkGroup=N}}}})}function XH(n,t,e,i,r,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};E(s,function(g){l[g]=Et(a.get(g))}),l.snap=n.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var c=l.label||(l.label={});if(c.show==null&&(c.show=!1),r==="cross"){var f=a.get(["label","show"]);if(c.show=f??!0,!o){var p=l.lineStyle=a.get("crossStyle");p&&Wt(c,p.textStyle)}}return n.model.getModel("axisPointer",new he(l,e,i))}function $H(n,t){t.eachSeries(function(e){var i=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),o=e.get(["tooltip","show"],!0);!i||r==="none"||r===!1||r==="item"||o===!1||e.get(["axisPointer","show"],!0)===!1||E(n.coordSysAxesInfo[Zu(i.model)],function(a){var s=a.axis;i.getAxis(s.dim)===s&&(a.seriesModels.push(e),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=e.getData().count())})})}function qH(n,t){for(var e=t.model,i=t.dim,r=0;r<n.length;r++){var o=n[r]||{};if(C0(o[i+"AxisId"],e.id)||C0(o[i+"AxisIndex"],e.componentIndex)||C0(o[i+"AxisName"],e.name))return r}}function C0(n,t){return n==="all"||ct(n)&&Vt(n,t)>=0||n===t}function QH(n){var t=T0(n);if(t){var e=t.axisPointerModel,i=t.axis.scale,r=e.option,o=e.get("status"),a=e.get("value");a!=null&&(a=i.parse(a));var s=I0(e);o==null&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}function T0(n){var t=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Zu(n)]}function KH(n){var t=T0(n);return t&&t.axisPointerModel}function I0(n){return!!n.get(["handle","show"])}function Zu(n){return n.type+"||"+n.id}var BI={},FI=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,r,o){this.axisPointerClass&&QH(e),n.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},t.prototype.updateAxisPointer=function(e,i,r,o){this._doUpdateAxisPointerClass(e,r,!1)},t.prototype.remove=function(e,i){var r=this._axisPointer;r&&r.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),n.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,r){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=KH(e);a?(this._axisPointer||(this._axisPointer=new o)).render(e,a,i,r):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){BI[e]=i},t.getAxisPointerClass=function(e){return e&&BI[e]},t.type="axis",t})(ze),D0=fe();function JH(n,t,e,i){var r=e.axis;if(!r.scale.isBlank()){var o=e.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),c=r.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var f=s.length,p=D0(n).splitAreaColors,g=Mt(),d=0;if(p)for(var y=0;y<c.length;y++){var _=p.get(c[y].tickValue);if(_!=null){d=(_+(f-1)*y)%f;break}}var m=r.toGlobalCoord(c[0].coord),x=a.getAreaStyle();s=ct(s)?s:[s];for(var y=1;y<c.length;y++){var w=r.toGlobalCoord(c[y].coord),S=void 0,C=void 0,M=void 0,T=void 0;r.isHorizontal()?(S=m,C=l.y,M=w-S,T=l.height,m=S+M):(S=l.x,C=m,M=l.width,T=w-C,m=C+T);var D=c[y-1].tickValue;D!=null&&g.set(D,d),t.add(new se({anid:D!=null?"area_"+D:null,shape:{x:S,y:C,width:M,height:T},style:Wt({fill:s[d]},x),autoBatch:!0,silent:!0})),d=(d+1)%f}D0(n).splitAreaColors=g}}}function tW(n){D0(n).splitAreaColors=null}var eW=["axisLine","axisTickLabel","axisName"],nW=["splitArea","splitLine","minorSplitLine"],VI=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,i,r,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new ye,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=S0(s,e),c=new qr(e,st({handleAutoShown:function(p){for(var g=s.coordinateSystem.getCartesians(),d=0;d<g.length;d++)if(qm(g[d].getOtherAxis(e.axis).scale))return!0;return!1}},l));E(eW,c.add,c),this._axisGroup.add(c.getGroup()),E(nW,function(p){e.get([p,"show"])&&iW[p](this,this._axisGroup,e,s)},this);var f=o&&o.type==="changeAxisOrder"&&o.isInitSort;f||iM(a,this._axisGroup,e),n.prototype.render.call(this,e,i,r,o)}},t.prototype.remove=function(){tW(this)},t.type="cartesianAxis",t})(FI),iW={splitLine:function(n,t,e,i){var r=e.axis;if(!r.scale.isBlank()){var o=e.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color"),l=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;s=ct(s)?s:[s];for(var f=i.coordinateSystem.getRect(),p=r.isHorizontal(),g=0,d=r.getTicksCoords({tickModel:o}),y=[],_=[],m=a.getLineStyle(),x=0;x<d.length;x++){var w=r.toGlobalCoord(d[x].coord);if(!(x===0&&!l||x===d.length-1&&!c)){var S=d[x].tickValue;p?(y[0]=w,y[1]=f.y,_[0]=w,_[1]=f.y+f.height):(y[0]=f.x,y[1]=w,_[0]=f.x+f.width,_[1]=w);var C=g++%s.length,M=new er({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:y[0],y1:y[1],x2:_[0],y2:_[1]},style:Wt({stroke:s[C]},m),silent:!0});au(M.shape,m.lineWidth),t.add(M)}}}},minorSplitLine:function(n,t,e,i){var r=e.axis,o=e.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=r.isHorizontal(),c=r.getMinorTicksCoords();if(c.length)for(var f=[],p=[],g=a.getLineStyle(),d=0;d<c.length;d++)for(var y=0;y<c[d].length;y++){var _=r.toGlobalCoord(c[d][y].coord);l?(f[0]=_,f[1]=s.y,p[0]=_,p[1]=s.y+s.height):(f[0]=s.x,f[1]=_,p[0]=s.x+s.width,p[1]=_);var m=new er({anid:"minor_line_"+c[d][y].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},style:g,silent:!0});au(m.shape,g.lineWidth),t.add(m)}},splitArea:function(n,t,e,i){JH(n,t,e,i)}},HI=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(VI),rW=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=HI.type,e}return t.type="yAxis",t})(VI),oW=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,i){this.group.removeAll(),e.get("show")&&this.group.add(new se({shape:e.coordinateSystem.getRect(),style:Wt({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(ze),WI={offset:0};function UI(n){n.registerComponentView(oW),n.registerComponentModel(DH),n.registerCoordinateSystem("cartesian2d",FH),TI(n,"x",x0,WI),TI(n,"y",x0,WI),n.registerComponentView(HI),n.registerComponentView(rW),n.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function aW(n){Yn(UI),n.registerSeriesModel(kH),n.registerChartView(IH),n.registerLayout(g0("scatter"))}var GI="\0_ec_interaction_mutex";function sW(n,t,e){var i=A0(n);i[t]=e}function lW(n,t,e){var i=A0(n),r=i[t];r===e&&(i[t]=null)}function jI(n,t){return!!A0(n)[t]}function A0(n){return n[GI]||(n[GI]={})}li({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ue);var uW=(function(n){ft(t,n);function t(e){var i=n.call(this)||this;i._zr=e;var r=wt(i._mousedownHandler,i),o=wt(i._mousemoveHandler,i),a=wt(i._mouseupHandler,i),s=wt(i._mousewheelHandler,i),l=wt(i._pinchHandler,i);return i.enable=function(c,f){this.disable(),this._opt=Wt(Et(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),c==null&&(c=!0),(c===!0||c==="move"||c==="pan")&&(e.on("mousedown",r),e.on("mousemove",o),e.on("mouseup",a)),(c===!0||c==="scale"||c==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},i.disable=function(){e.off("mousedown",r),e.off("mousemove",o),e.off("mouseup",a),e.off("mousewheel",s),e.off("pinch",l)},i}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!zw(e)){for(var i=e.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var r=e.offsetX,o=e.offsetY;this.pointerChecker&&this.pointerChecker(e,r,o)&&(this._x=r,this._y=o,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!Mp("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||jI(this._zr,"globalPan"))){var i=e.offsetX,r=e.offsetY,o=this._x,a=this._y,s=i-o,l=r-a;this._x=i,this._y=r,this._opt.preventDefaultMouseMove&&Ha(e.event),ZI(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:o,oldY:a,newX:i,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){zw(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var i=Mp("zoomOnMouseWheel",e,this._opt),r=Mp("moveOnMouseWheel",e,this._opt),o=e.wheelDelta,a=Math.abs(o),s=e.offsetX,l=e.offsetY;if(!(o===0||!i&&!r)){if(i){var c=a>3?1.4:a>1?1.2:1.1,f=o>0?c:1/c;P0(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(r){var p=Math.abs(o),g=(o>0?1:-1)*(p>3?.4:p>1?.15:.05);P0(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:g,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!jI(this._zr,"globalPan")){var i=e.pinchScale>1?1.1:.9090909090909091;P0(this,"zoom",null,e,{scale:i,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t})(En);function P0(n,t,e,i,r){n.pointerChecker&&n.pointerChecker(i,r.originX,r.originY)&&(Ha(i.event),ZI(n,t,e,i,r))}function ZI(n,t,e,i,r){r.isAvailableBehavior=wt(Mp,null,e,i),n.trigger(t,r)}function Mp(n,t,e){var i=e[n];return!n||i&&(!gt(i)||t.event[i+"Key"])}var cW={axisPointer:1,tooltip:1,brush:1};function fW(n,t,e){var i=t.getComponentByElement(n.topTarget),r=i&&i.coordinateSystem;return i&&i!==e&&!cW.hasOwnProperty(i.mainType)&&r&&r.model!==e}function Yu(n,t,e,i,r,o){n=n||0;var a=e[1]-e[0];if(r!=null&&(r=Ss(r,[0,a])),o!=null&&(o=Math.max(o,r??0)),i==="all"){var s=Math.abs(t[1]-t[0]);s=Ss(s,[0,a]),r=o=Ss(s,[r,o]),i=0}t[0]=Ss(t[0],e),t[1]=Ss(t[1],e);var l=L0(t,i);t[i]+=n;var c=r||0,f=e.slice();l.sign<0?f[0]+=c:f[1]-=c,t[i]=Ss(t[i],f);var p;return p=L0(t,i),r!=null&&(p.sign!==l.sign||p.span<r)&&(t[1-i]=t[i]+l.sign*r),p=L0(t,i),o!=null&&p.span>o&&(t[1-i]=t[i]+p.sign*o),t}function L0(n,t){var e=n[t]-n[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Ss(n,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,n))}var Ko=!0,Xu=Math.min,ks=Math.max,hW=Math.pow,pW=1e4,dW=6,gW=6,YI="globalPan",vW={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},yW={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},XI={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},mW=0,_W=(function(n){ft(t,n);function t(e){var i=n.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=e,i.group=new ye,i._uid="brushController_"+mW++,E(CW,function(r,o){this._handlers[o]=wt(r,this)},i),i}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var i=this._zr;this._enableGlobalPan||sW(i,YI,this._uid),E(this._handlers,function(r,o){i.on(o,r)}),this._brushType=e.brushType,this._brushOption=zt(Et(XI),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;lW(e,YI,this._uid),E(this._handlers,function(i,r){e.off(r,i)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var i=this._panels={};E(e,function(r){i[r.panelId]=Et(r)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=i.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=pt(e,function(g){return zt(Et(XI),g,!0)});var i="\0-brush-index-",r=this._covers,o=this._covers=[],a=this,s=this._creatingCover;return new Wm(r,e,c,l).add(f).update(f).remove(p).execute(),this;function l(g,d){return(g.id!=null?g.id:i+d)+"-"+g.brushType}function c(g,d){return l(g.__brushOption,d)}function f(g,d){var y=e[g];if(d!=null&&r[d]===s)o[g]=r[d];else{var _=o[g]=d!=null?(r[d].__brushOption=y,r[d]):qI(a,$I(a,y));E0(a,_)}}function p(g){r[g]!==s&&a.group.remove(r[g])}},t.prototype.unmount=function(){return this.enableBrush(!1),N0(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t})(En);function $I(n,t){var e=Cp[t.brushType].createCover(n,t);return e.__brushOption=t,KI(e,t),n.group.add(e),e}function qI(n,t){var e=O0(t);return e.endCreating&&(e.endCreating(n,t),KI(t,t.__brushOption)),t}function QI(n,t){var e=t.__brushOption;O0(t).updateCoverShape(n,t,e.range,e)}function KI(n,t){var e=t.z;e==null&&(e=pW),n.traverse(function(i){i.z=e,i.z2=e})}function E0(n,t){O0(t).updateCommon(n,t),QI(n,t)}function O0(n){return Cp[n.__brushOption.brushType]}function R0(n,t,e){var i=n._panels;if(!i)return Ko;var r,o=n._transform;return E(i,function(a){a.isTargetByCursor(t,e,o)&&(r=a)}),r}function JI(n,t){var e=n._panels;if(!e)return Ko;var i=t.__brushOption.panelId;return i!=null?e[i]:Ko}function N0(n){var t=n._covers,e=t.length;return E(t,function(i){n.group.remove(i)},n),t.length=0,!!e}function Jo(n,t){var e=pt(n._covers,function(i){var r=i.__brushOption,o=Et(r.range);return{brushType:r.brushType,panelId:r.panelId,range:o}});n.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function xW(n){var t=n._track;if(!t.length)return!1;var e=t[t.length-1],i=t[0],r=e[0]-i[0],o=e[1]-i[1],a=hW(r*r+o*o,.5);return a>dW}function tD(n){var t=n.length-1;return t<0&&(t=0),[n[0],n[t]]}function eD(n,t,e,i){var r=new ye;return r.add(new se({name:"main",style:B0(e),silent:!0,draggable:!0,cursor:"move",drift:Gt(rD,n,t,r,["n","s","w","e"]),ondragend:Gt(Jo,t,{isEnd:!0})})),E(i,function(o){r.add(new se({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Gt(rD,n,t,r,o),ondragend:Gt(Jo,t,{isEnd:!0})}))}),r}function nD(n,t,e,i){var r=i.brushStyle.lineWidth||0,o=ks(r,gW),a=e[0][0],s=e[1][0],l=a-r/2,c=s-r/2,f=e[0][1],p=e[1][1],g=f-o+r/2,d=p-o+r/2,y=f-a,_=p-s,m=y+r,x=_+r;ir(n,t,"main",a,s,y,_),i.transformable&&(ir(n,t,"w",l,c,o,x),ir(n,t,"e",g,c,o,x),ir(n,t,"n",l,c,m,o),ir(n,t,"s",l,d,m,o),ir(n,t,"nw",l,c,o,o),ir(n,t,"ne",g,c,o,o),ir(n,t,"sw",l,d,o,o),ir(n,t,"se",g,d,o,o))}function z0(n,t){var e=t.__brushOption,i=e.transformable,r=t.childAt(0);r.useStyle(B0(e)),r.attr({silent:!i,cursor:i?"move":"default"}),E([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var a=t.childOfName(o.join("")),s=o.length===1?F0(n,o[0]):wW(n,o);a&&a.attr({silent:!i,invisible:!i,cursor:i?yW[s]+"-resize":null})})}function ir(n,t,e,i,r,o,a){var s=t.childOfName(e);s&&s.setShape(kW(V0(n,t,[[i,r],[i+o,r+a]])))}function B0(n){return Wt({strokeNoScale:!0},n.brushStyle)}function iD(n,t,e,i){var r=[Xu(n,e),Xu(t,i)],o=[ks(n,e),ks(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function bW(n){return su(n.group)}function F0(n,t){var e={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=Oy(e[t],bW(n));return i[r]}function wW(n,t){var e=[F0(n,t[0]),F0(n,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function rD(n,t,e,i,r,o){var a=e.__brushOption,s=n.toRectRange(a.range),l=oD(t,r,o);E(i,function(c){var f=vW[c];s[f[0]][f[1]]+=l[f[0]]}),a.range=n.fromRectRange(iD(s[0][0],s[1][0],s[0][1],s[1][1])),E0(t,e),Jo(t,{isEnd:!1})}function SW(n,t,e,i){var r=t.__brushOption.range,o=oD(n,e,i);E(r,function(a){a[0]+=o[0],a[1]+=o[1]}),E0(n,t),Jo(n,{isEnd:!1})}function oD(n,t,e){var i=n.group,r=i.transformCoordToLocal(t,e),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function V0(n,t,e){var i=JI(n,t);return i&&i!==Ko?i.clipPath(e,n._transform):Et(e)}function kW(n){var t=Xu(n[0][0],n[1][0]),e=Xu(n[0][1],n[1][1]),i=ks(n[0][0],n[1][0]),r=ks(n[0][1],n[1][1]);return{x:t,y:e,width:i-t,height:r-e}}function MW(n,t,e){if(!(!n._brushType||TW(n,t.offsetX,t.offsetY))){var i=n._zr,r=n._covers,o=R0(n,t,e);if(!n._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===Ko||s.panelId===o.panelId)&&Cp[s.brushType].contain(r[a],e[0],e[1]))return}o&&i.setCursorStyle("crosshair")}}function H0(n){var t=n.event;t.preventDefault&&t.preventDefault()}function W0(n,t,e){return n.childOfName("main").contain(t,e)}function aD(n,t,e,i){var r=n._creatingCover,o=n._creatingPanel,a=n._brushOption,s;if(n._track.push(e.slice()),xW(n)||r){if(o&&!r){a.brushMode==="single"&&N0(n);var l=Et(a);l.brushType=sD(l.brushType,o),l.panelId=o===Ko?null:o.panelId,r=n._creatingCover=$I(n,l),n._covers.push(r)}if(r){var c=Cp[sD(n._brushType,o)],f=r.__brushOption;f.range=c.getCreatingRange(V0(n,r,n._track)),i&&(qI(n,r),c.updateCommon(n,r)),QI(n,r),s={isEnd:i}}}else i&&a.brushMode==="single"&&a.removeOnClick&&R0(n,t,e)&&N0(n)&&(s={isEnd:i,removeOnClick:!0});return s}function sD(n,t){return n==="auto"?t.defaultBrushType:n}var CW={mousedown:function(n){if(this._dragging)lD(this,n);else if(!n.target||!n.target.draggable){H0(n);var t=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null;var e=this._creatingPanel=R0(this,n,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(n){var t=n.offsetX,e=n.offsetY,i=this.group.transformCoordToLocal(t,e);if(MW(this,n,i),this._dragging){H0(n);var r=aD(this,n,i,!1);r&&Jo(this,r)}},mouseup:function(n){lD(this,n)}};function lD(n,t){if(n._dragging){H0(t);var e=t.offsetX,i=t.offsetY,r=n.group.transformCoordToLocal(e,i),o=aD(n,t,r,!0);n._dragging=!1,n._track=[],n._creatingCover=null,o&&Jo(n,o)}}function TW(n,t,e){var i=n._zr;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Cp={lineX:uD(0),lineY:uD(1),rect:{createCover:function(n,t){function e(i){return i}return eD({toRectRange:e,fromRectRange:e},n,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var t=tD(n);return iD(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(n,t,e,i){nD(n,t,e,i)},updateCommon:z0,contain:W0},polygon:{createCover:function(n,t){var e=new ye;return e.add(new Vr({name:"main",style:B0(t),silent:!0})),e},getCreatingRange:function(n){return n},endCreating:function(n,t){t.remove(t.childAt(0)),t.add(new os({name:"main",draggable:!0,drift:Gt(SW,n,t),ondragend:Gt(Jo,n,{isEnd:!0})}))},updateCoverShape:function(n,t,e,i){t.childAt(0).setShape({points:V0(n,t,e)})},updateCommon:z0,contain:W0}};function uD(n){return{createCover:function(t,e){return eD({toRectRange:function(i){var r=[i,[0,100]];return n&&r.reverse(),r},fromRectRange:function(i){return i[n]}},t,e,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(t){var e=tD(t),i=Xu(e[0][n],e[1][n]),r=ks(e[0][n],e[1][n]);return[i,r]},updateCoverShape:function(t,e,i,r){var o,a=JI(t,e);if(a!==Ko&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(n);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[i,o];n&&l.reverse(),nD(t,e,l,r)},updateCommon:z0,contain:W0}}function IW(n){return n=U0(n),function(t){return Ry(t,n)}}function DW(n,t){return n=U0(n),function(e){var i=t??e,r=i?n.width:n.height,o=i?n.x:n.y;return[o,o+(r||0)]}}function AW(n,t,e){var i=U0(n);return function(r,o){return i.contain(o[0],o[1])&&!fW(r,t,e)}}function U0(n){return jt.create(n)}var PW=(function(){function n(){}return n.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},n.prototype.getInitialData=function(t,e){var i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type"),l;a==="category"?(t.layout="horizontal",i=r.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",i=o.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var c=["x","y"],f=t.layout==="horizontal"?0:1,p=this._baseAxisDim=c[f],g=c[1-f],d=[r,o],y=d[f].get("type"),_=d[1-f].get("type"),m=t.data;if(m&&l){var x=[];E(m,function(C,M){var T;ct(C)?(T=C.slice(),C.unshift(M)):ct(C.value)?(T=st({},C),T.value=T.value.slice(),C.value.unshift(M)):T=C,x.push(T)}),t.data=x}var w=this.defaultValueDimensions,S=[{name:p,type:Gm(y),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:Gm(_),dimsDef:w.slice()}];return kI(this,{coordDimensions:S,dimensionsCount:w.length+1,encodeDefaulter:Gt(RM,S,this)})},n.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},n})(),LW=["itemStyle","borderColor"],EW=["itemStyle","borderColor0"],OW=["itemStyle","borderColorDoji"],RW=["itemStyle","color"],NW=["itemStyle","color0"];function G0(n,t){return t.get(n>0?RW:NW)}function j0(n,t){return t.get(n===0?OW:n>0?LW:EW)}var zW={seriesType:"candlestick",plan:Iu(),performRawSeries:!0,reset:function(n,t){if(!t.isSeriesFiltered(n)){var e=n.pipelineContext.large;return!e&&{progress:function(i,r){for(var o;(o=i.next())!=null;){var a=r.getItemModel(o),s=r.getItemLayout(o).sign,l=a.getItemStyle();l.fill=G0(s,a),l.stroke=j0(s,a)||l.fill;var c=r.ensureUniqueItemVisual(o,"style");st(c,l)}}}}}},BW=["color","borderColor"],FW=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,r){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,i,r){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,i,r,o){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,i):this._incrementalRenderNormal(e,i)},t.prototype.eachRendered=function(e){fu(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var i=e.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(e){var i=e.getData(),r=this._data,o=this.group,a=i.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,c=l.getArea&&l.getArea();this._data||o.removeAll(),i.diff(r).add(function(f){if(i.hasValue(f)){var p=i.getItemLayout(f);if(s&&cD(c,p))return;var g=Z0(p,f,!0);Re(g,{shape:{points:p.ends}},e,f),Y0(g,i,f,a),o.add(g),i.setItemGraphicEl(f,g)}}).update(function(f,p){var g=r.getItemGraphicEl(p);if(!i.hasValue(f)){o.remove(g);return}var d=i.getItemLayout(f);if(s&&cD(c,d)){o.remove(g);return}g?(Ie(g,{shape:{points:d.ends}},e,f),_h(g)):g=Z0(d),Y0(g,i,f,a),o.add(g),i.setItemGraphicEl(f,g)}).remove(function(f){var p=r.getItemGraphicEl(f);p&&o.remove(p)}).execute(),this._data=i},t.prototype._renderLarge=function(e){this._clear(),fD(e,this.group);var i=e.get("clip",!0)?KT(e.coordinateSystem,!1,e):null;i?this.group.setClipPath(i):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,i){for(var r=i.getData(),o=r.getLayout("isSimpleBox"),a;(a=e.next())!=null;){var s=r.getItemLayout(a),l=Z0(s);Y0(l,r,a,o),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,i){fD(i,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t})(Be),VW=(function(){function n(){}return n})(),HW=(function(n){ft(t,n);function t(e){var i=n.call(this,e)||this;return i.type="normalCandlestickBox",i}return t.prototype.getDefaultShape=function(){return new VW},t.prototype.buildPath=function(e,i){var r=i.points;this.__simpleBox?(e.moveTo(r[4][0],r[4][1]),e.lineTo(r[6][0],r[6][1])):(e.moveTo(r[0][0],r[0][1]),e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]),e.lineTo(r[3][0],r[3][1]),e.closePath(),e.moveTo(r[4][0],r[4][1]),e.lineTo(r[5][0],r[5][1]),e.moveTo(r[6][0],r[6][1]),e.lineTo(r[7][0],r[7][1]))},t})($t);function Z0(n,t,e){var i=n.ends;return new HW({shape:{points:e?WW(i,n):i},z2:100})}function cD(n,t){for(var e=!0,i=0;i<t.ends.length;i++)if(n.contain(t.ends[i][0],t.ends[i][1])){e=!1;break}return e}function Y0(n,t,e,i){var r=t.getItemModel(e);n.useStyle(t.getItemVisual(e,"style")),n.style.strokeNoScale=!0,n.__simpleBox=i,tu(n,r);var o=t.getItemLayout(e).sign;E(n.states,function(s,l){var c=r.getModel(l),f=G0(o,c),p=j0(o,c)||f,g=s.style||(s.style={});f&&(g.fill=f),p&&(g.stroke=p)});var a=r.getModel("emphasis");ns(n,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function WW(n,t){return pt(n,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var UW=(function(){function n(){}return n})(),X0=(function(n){ft(t,n);function t(e){var i=n.call(this,e)||this;return i.type="largeCandlestickBox",i}return t.prototype.getDefaultShape=function(){return new UW},t.prototype.buildPath=function(e,i){for(var r=i.points,o=0;o<r.length;)if(this.__sign===r[o++]){var a=r[o++];e.moveTo(a,r[o++]),e.lineTo(a,r[o++])}else o+=3},t})($t);function fD(n,t,e,i){var r=n.getData(),o=r.getLayout("largePoints"),a=new X0({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(a);var s=new X0({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new X0({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(l),$0(1,a,n),$0(-1,s,n),$0(0,l,n),i&&(a.incremental=!0,s.incremental=!0),e&&e.push(a,s)}function $0(n,t,e,i){var r=j0(n,e)||G0(n,e),o=e.getModel("itemStyle").getItemStyle(BW);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var hD=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,i,r){var o=i.getItemLayout(e);return o&&r.rect(o.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t})(Ye);Sn(hD,PW,!0);function GW(n){!n||!ct(n.series)||E(n.series,function(t){_t(t)&&t.type==="k"&&(t.type="candlestick")})}var jW={seriesType:"candlestick",plan:Iu(),reset:function(n){var t=n.coordinateSystem,e=n.getData(),i=ZW(n,e),r=0,o=1,a=["x","y"],s=e.getDimensionIndex(e.mapDimension(a[r])),l=pt(e.mapDimensionsAll(a[o]),e.getDimensionIndex,e),c=l[0],f=l[1],p=l[2],g=l[3];if(e.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?y:d};function d(_,m){for(var x,w=m.getStore();(x=_.next())!=null;){var S=w.get(s,x),C=w.get(c,x),M=w.get(f,x),T=w.get(p,x),D=w.get(g,x),P=Math.min(C,M),L=Math.max(C,M),O=z(P,S),N=z(L,S),B=z(T,S),V=z(D,S),Z=[];H(Z,N,0),H(Z,O,1),Z.push(it(V),it(N),it(B),it(O));var $=m.getItemModel(x),et=!!$.get(["itemStyle","borderColorDoji"]);m.setItemLayout(x,{sign:pD(w,x,C,M,f,et),initBaseline:C>M?N[o]:O[o],ends:Z,brushRect:K(T,D,S)})}function z(j,U){var G=[];return G[r]=U,G[o]=j,isNaN(U)||isNaN(j)?[NaN,NaN]:t.dataToPoint(G)}function H(j,U,G){var Q=U.slice(),tt=U.slice();Q[r]=Sh(Q[r]+i/2,1,!1),tt[r]=Sh(tt[r]-i/2,1,!0),G?j.push(Q,tt):j.push(tt,Q)}function K(j,U,G){var Q=z(j,G),tt=z(U,G);return Q[r]-=i/2,tt[r]-=i/2,{x:Q[0],y:Q[1],width:i,height:tt[1]-Q[1]}}function it(j){return j[r]=Sh(j[r],1),j}}function y(_,m){for(var x=Bi(_.count*4),w=0,S,C=[],M=[],T,D=m.getStore(),P=!!n.get(["itemStyle","borderColorDoji"]);(T=_.next())!=null;){var L=D.get(s,T),O=D.get(c,T),N=D.get(f,T),B=D.get(p,T),V=D.get(g,T);if(isNaN(L)||isNaN(B)||isNaN(V)){x[w++]=NaN,w+=3;continue}x[w++]=pD(D,T,O,N,f,P),C[r]=L,C[o]=B,S=t.dataToPoint(C,null,M),x[w++]=S?S[0]:NaN,x[w++]=S?S[1]:NaN,C[o]=V,S=t.dataToPoint(C,null,M),x[w++]=S?S[1]:NaN}m.setLayout("largePoints",x)}}};function pD(n,t,e,i,r,o){var a;return e>i?a=-1:e<i?a=1:a=o?0:t>0?n.get(r,t-1)<=i?1:-1:1,a}function ZW(n,t){var e=n.getBaseAxis(),i,r=e.type==="category"?e.getBandWidth():(i=e.getExtent(),Math.abs(i[1]-i[0])/t.count()),o=Qt(Nt(n.get("barMaxWidth"),r),r),a=Qt(Nt(n.get("barMinWidth"),1),r),s=n.get("barWidth");return s!=null?Qt(s,r):Math.max(Math.min(r/2,o),a)}function YW(n){n.registerChartView(FW),n.registerSeriesModel(hD),n.registerPreprocessor(GW),n.registerVisual(zW),n.registerLayout(jW)}var ta=fe(),dD=Et,q0=wt,XW=(function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(t,e,i,r){var o=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,!(!r&&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,e,i);var f=c.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var p=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new ye,this.createPointerEl(s,c,t,e),this.createLabelEl(s,c,t,e),i.getZr().add(s);else{var g=Gt(gD,e,p);this.updatePointerEl(s,c,g),this.updateLabelEl(s,c,g,e)}mD(s,e,!0),this._renderHandle(o)}},n.prototype.remove=function(t){this.clear(t)},n.prototype.dispose=function(t){this.clear(t)},n.prototype.determineAnimation=function(t,e){var i=e.get("animation"),r=t.axis,o=r.type==="category",a=e.get("snap");if(!a&&!o)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(o&&r.getBandWidth()>s)return!0;if(a){var l=T0(t).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return i===!0},n.prototype.makeElOption=function(t,e,i,r,o){},n.prototype.createPointerEl=function(t,e,i,r){var o=e.pointer;if(o){var a=ta(t).pointerEl=new Sz[o.type](dD(e.pointer));t.add(a)}},n.prototype.createLabelEl=function(t,e,i,r){if(e.label){var o=ta(t).labelEl=new we(dD(e.label));t.add(o),yD(o,r)}},n.prototype.updatePointerEl=function(t,e,i){var r=ta(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),i(r,{shape:e.pointer.shape}))},n.prototype.updateLabelEl=function(t,e,i,r){var o=ta(t).labelEl;o&&(o.setStyle(e.label.style),i(o,{x:e.label.x,y:e.label.y}),yD(o,r))},n.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=e.getModel("handle"),a=e.get("status");if(!o.get("show")||!a||a==="hide"){r&&i.remove(r),this._handle=null;return}var s;this._handle||(s=!0,r=this._handle=uu(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){Ha(c.event)},onmousedown:q0(this._onHandleDragMove,this,0,0),drift:q0(this._onHandleDragMove,this),ondragend:q0(this._onHandleDragEnd,this)}),i.add(r)),mD(r,e,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ct(l)||(l=[l,l]),r.scaleX=l[0]/2,r.scaleY=l[1]/2,Gh(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},n.prototype._moveHandleToValue=function(t,e){gD(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Q0(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var r=this.updateHandleTransform(Q0(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,i.stopAnimation(),i.attr(Q0(r)),ta(i).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,r=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),jh(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},n})();function gD(n,t,e,i){vD(ta(e).lastProp,i)||(ta(e).lastProp=i,t?Ie(e,i,n):(e.stopAnimation(),e.attr(i)))}function vD(n,t){if(_t(n)&&_t(t)){var e=!0;return E(t,function(i,r){e=e&&vD(n[r],i)}),!!e}else return n===t}function yD(n,t){n[t.get(["label","show"])?"show":"hide"]()}function Q0(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function mD(n,t,e){var i=t.get("z"),r=t.get("zlevel");n&&n.traverse(function(o){o.type!=="group"&&(i!=null&&(o.z=i),r!=null&&(o.zlevel=r),o.silent=e)})}function $W(n){var t=n.get("type"),e=n.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function qW(n,t,e,i,r){var o=e.get("value"),a=_D(o,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=_u(s.get("padding")||0),c=s.getFont(),f=Gf(a,c),p=r.position,g=f.width+l[1]+l[3],d=f.height+l[0]+l[2],y=r.align;y==="right"&&(p[0]-=g),y==="center"&&(p[0]-=g/2);var _=r.verticalAlign;_==="bottom"&&(p[1]-=d),_==="middle"&&(p[1]-=d/2),QW(p,g,d,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),n.label={x:p[0],y:p[1],style:Li(s,{text:a,font:c,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function QW(n,t,e,i){var r=i.getWidth(),o=i.getHeight();n[0]=Math.min(n[0]+t,r)-t,n[1]=Math.min(n[1]+e,o)-e,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function _D(n,t,e,i,r){n=t.scale.parse(n);var o=t.scale.getLabel({value:n},{precision:r.precision}),a=r.formatter;if(a){var s={value:n0(t,{value:n}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};E(i,function(l){var c=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=c&&c.getDataParams(f);p&&s.seriesData.push(p)}),gt(a)?o=a.replace("{value}",o):St(a)&&(o=a(s))}return o}function xD(n,t,e){var i=Dr();return Sf(i,i,e.rotation),wf(i,i,e.position),lu([n.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function KW(n,t,e,i,r,o){var a=qr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=r.get(["label","margin"]),qW(t,i,r,o,{position:xD(i.axis,n,e),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function JW(n,t,e){return e=e||0,{x1:n[e],y1:n[1-e],x2:t[e],y2:t[1-e]}}function t8(n,t,e){return e=e||0,{x:n[e],y:n[1-e],width:t[e],height:t[1-e]}}var e8=(function(n){ft(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,r,o,a){var s=r.axis,l=s.grid,c=o.get("type"),f=bD(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(c&&c!=="none"){var g=$W(o),d=n8[c](s,p,f);d.style=g,e.graphicKey=d.type,e.pointer=d}var y=S0(l.model,r);KW(i,e,y,r,o,a)},t.prototype.getHandleTransform=function(e,i,r){var o=S0(i.axis.grid.model,i,{labelInside:!1});o.labelMargin=r.get(["handle","margin"]);var a=xD(i.axis,e,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,r,o){var a=r.axis,s=a.grid,l=a.getGlobalExtent(!0),c=bD(s,a).getOtherAxis(a).getGlobalExtent(),f=a.dim==="x"?0:1,p=[e.x,e.y];p[f]+=i[f],p[f]=Math.min(l[1],p[f]),p[f]=Math.max(l[0],p[f]);var g=(c[1]+c[0])/2,d=[g,g];d[f]=p[f];var y=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:e.rotation,cursorPoint:d,tooltipOption:y[f]}},t})(XW);function bD(n,t){var e={};return e[t.dim+"AxisIndex"]=t.index,n.getCartesian(e)}var n8={line:function(n,t,e){var i=JW([t,e[0]],[t,e[1]],wD(n));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(n,t,e){var i=Math.max(1,n.getBandWidth()),r=e[1]-e[0];return{type:"Rect",shape:t8([t-i/2,e[0]],[i,r],wD(n))}}};function wD(n){return n.dim==="x"?0:1}var i8=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}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})(Yt),rr=fe(),r8=E;function SD(n,t,e){if(!Ct.node){var i=t.getZr();rr(i).records||(rr(i).records={}),o8(i,t);var r=rr(i).records[n]||(rr(i).records[n]={});r.handler=e}}function o8(n,t){if(rr(n).initialized)return;rr(n).initialized=!0,e("click",Gt(kD,"click")),e("mousemove",Gt(kD,"mousemove")),e("globalout",s8);function e(i,r){n.on(i,function(o){var a=l8(t);r8(rr(n).records,function(s){s&&r(s,o,a.dispatchAction)}),a8(a.pendings,t)})}}function a8(n,t){var e=n.showTip.length,i=n.hideTip.length,r;e?r=n.showTip[e-1]:i&&(r=n.hideTip[i-1]),r&&(r.dispatchAction=null,t.dispatchAction(r))}function s8(n,t,e){n.handler("leave",null,e)}function kD(n,t,e,i){t.handler(n,e,i)}function l8(n){var t={showTip:[],hideTip:[]},e=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=e,n.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function K0(n,t){if(!Ct.node){var e=t.getZr(),i=(rr(e).records||{})[n];i&&(rr(e).records[n]=null)}}var u8=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,r){var o=i.getComponent("tooltip"),a=e.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";SD("axisPointer",r,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(e,i){K0("axisPointer",i)},t.prototype.dispose=function(e,i){K0("axisPointer",i)},t.type="axisPointer",t})(ze);function MD(n,t){var e=[],i=n.seriesIndex,r;if(i==null||!(r=t.getSeriesByIndex(i)))return{point:[]};var o=r.getData(),a=To(o,n);if(a==null||a<0||ct(a))return{point:[]};var s=o.getItemGraphicEl(a),l=r.coordinateSystem;if(r.getTooltipPosition)e=r.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(n.isStacked){var c=l.getBaseAxis(),f=l.getOtherAxis(c),p=f.dim,g=c.dim,d=p==="x"||p==="radius"?1:0,y=o.mapDimension(g),_=[];_[d]=o.get(y,a),_[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),e=l.dataToPoint(_)||[]}else e=l.dataToPoint(o.getValues(pt(l.dimensions,function(x){return o.mapDimension(x)}),a))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),e=[m.x+m.width/2,m.y+m.height/2]}return{point:e,el:s}}var CD=fe();function c8(n,t,e){var i=n.currTrigger,r=[n.x,n.y],o=n,a=n.dispatchAction||wt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Tp(r)&&(r=MD({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=Tp(r),c=o.axesInfo,f=s.axesInfo,p=i==="leave"||Tp(r),g={},d={},y={list:[],map:{}},_={showPointer:Gt(h8,d),showTooltip:Gt(p8,y)};E(s.coordSysMap,function(x,w){var S=l||x.containPoint(r);E(s.coordSysAxesInfo[w],function(C,M){var T=C.axis,D=y8(c,C);if(!p&&S&&(!c||D)){var P=D&&D.value;P==null&&!l&&(P=T.pointToData(r)),P!=null&&TD(C,P,_,!1,g)}})});var m={};return E(f,function(x,w){var S=x.linkGroup;S&&!d[w]&&E(S.axesInfo,function(C,M){var T=d[M];if(C!==x&&T){var D=T.value;S.mapper&&(D=x.axis.scale.parse(S.mapper(D,ID(C),ID(x)))),m[x.key]=D}})}),E(m,function(x,w){TD(f[w],x,_,!0,g)}),d8(d,f,g),g8(y,r,n,a),v8(f,a,e),g}}function TD(n,t,e,i,r){var o=n.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!n.involveSeries){e.showPointer(n,t);return}var a=f8(t,n),s=a.payloadBatch,l=a.snapToValue;s[0]&&r.seriesIndex==null&&st(r,s[0]),!i&&n.snap&&o.containData(l)&&l!=null&&(t=l),e.showPointer(n,t,s),e.showTooltip(n,a,l)}}function f8(n,t){var e=t.axis,i=e.dim,r=n,o=[],a=Number.MAX_VALUE,s=-1;return E(t.seriesModels,function(l,c){var f=l.getData().mapDimensionsAll(i),p,g;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(f,n,e);g=d.dataIndices,p=d.nestestValue}else{if(g=l.getData().indicesOfNearest(f[0],n,e.type==="category"?.5:null),!g.length)return;p=l.getData().get(f[0],g[0])}if(!(p==null||!isFinite(p))){var y=n-p,_=Math.abs(y);_<=a&&((_<a||y>=0&&s<0)&&(a=_,s=y,r=p,o.length=0),E(g,function(m){o.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:o,snapToValue:r}}function h8(n,t,e,i){n[t.key]={value:e,payloadBatch:i}}function p8(n,t,e,i){var r=e.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!r.length)){var l=t.coordSys.model,c=Zu(l),f=n.map[c];f||(f=n.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(f)),f.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function d8(n,t,e){var i=e.axesInfo=[];E(t,function(r,o){var a=r.axisPointerModel.option,s=n[o];s?(!r.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!r.useHandle&&(a.status="hide"),a.status==="show"&&i.push({axisDim:r.axis.dim,axisIndex:r.axis.model.componentIndex,value:a.value})})}function g8(n,t,e,i){if(Tp(t)||!n.list.length){i({type:"hideTip"});return}var r=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:n.list})}function v8(n,t,e){var i=e.getZr(),r="axisPointerLastHighlights",o=CD(i)[r]||{},a=CD(i)[r]={};E(n,function(c,f){var p=c.axisPointerModel.option;p.status==="show"&&c.triggerEmphasis&&E(p.seriesDataIndices,function(g){var d=g.seriesIndex+" | "+g.dataIndex;a[d]=g})});var s=[],l=[];E(o,function(c,f){!a[f]&&l.push(c)}),E(a,function(c,f){!o[f]&&s.push(c)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function y8(n,t){for(var e=0;e<(n||[]).length;e++){var i=n[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function ID(n){var t=n.axis.model,e={},i=e.axisDim=n.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function Tp(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function DD(n){FI.registerAxisPointerClass("CartesianAxisPointer",e8),n.registerComponentModel(i8),n.registerComponentView(u8),n.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!ct(e)&&(t.axisPointer.link=[e])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=ZH(t,e)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},c8)}function m8(n){Yn(UI),Yn(DD)}var AD=["x","y","radius","angle","single"],_8=["cartesian2d","polar","singleAxis"];function x8(n){var t=n.get("coordinateSystem");return Vt(_8,t)>=0}function Qr(n){return n+"Axis"}function b8(n,t){var e=Mt(),i=[],r=Mt();n.eachComponent({mainType:"dataZoom",query:t},function(f){r.get(f.uid)||s(f)});var o;do o=!1,n.eachComponent("dataZoom",a);while(o);function a(f){!r.get(f.uid)&&l(f)&&(s(f),o=!0)}function s(f){r.set(f.uid,!0),i.push(f),c(f)}function l(f){var p=!1;return f.eachTargetAxis(function(g,d){var y=e.get(g);y&&y[d]&&(p=!0)}),p}function c(f){f.eachTargetAxis(function(p,g){(e.get(p)||e.set(p,[]))[g]=!0})}return i}function PD(n){var t=n.ecModel,e={infoList:[],infoMap:Mt()};return n.eachTargetAxis(function(i,r){var o=t.getComponent(Qr(i),r);if(o){var a=o.getCoordSysModel();if(a){var s=a.uid,l=e.infoMap.get(s);l||(l={model:a,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(o)}}}),e}var J0=(function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},n})(),$u=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,i,r){var o=LD(e);this.settledOption=o,this.mergeDefaultAndTheme(e,r),this._doInit(o)},t.prototype.mergeOption=function(e){var i=LD(e);zt(this.option,e,!0),zt(this.settledOption,i,!0),this._doInit(i)},t.prototype._doInit=function(e){var i=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var r=this.settledOption;E([["start","startValue"],["end","endValue"]],function(o,a){this._rangePropMode[a]==="value"&&(i[o[0]]=r[o[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),i=this._targetAxisInfoMap=Mt(),r=this._fillSpecifiedTargetAxis(i);r?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(o){o.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var i=!1;return E(AD,function(r){var o=this.getReferringComponents(Qr(r),k3);if(o.specified){i=!0;var a=new J0;E(o.models,function(s){a.add(s.componentIndex)}),e.set(r,a)}},this),i},t.prototype._fillAutoTargetAxisByOrient=function(e,i){var r=this.ecModel,o=!0;if(o){var a=i==="vertical"?"y":"x",s=r.findComponents({mainType:a+"Axis"});l(s,a)}if(o){var s=r.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(c,f){var p=c[0];if(p){var g=new J0;if(g.add(p.componentIndex),e.set(f,g),o=!1,f==="x"||f==="y"){var d=p.getReferringComponents("grid",rn).models[0];d&&E(c,function(y){p.componentIndex!==y.componentIndex&&d===y.getReferringComponents("grid",rn).models[0]&&g.add(y.componentIndex)})}}}o&&E(AD,function(c){if(o){var f=r.findComponents({mainType:Qr(c),filter:function(g){return g.get("type",!0)==="category"}});if(f[0]){var p=new J0;p.add(f[0].componentIndex),e.set(c,p),o=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(i){!e&&(e=i)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var i=this._rangePropMode,r=this.get("rangeMode");E([["start","startValue"],["end","endValue"]],function(o,a){var s=e[o[0]]!=null,l=e[o[1]]!=null;s&&!l?i[a]="percent":!s&&l?i[a]="value":r?i[a]=r[a]:s&&(i[a]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(i,r){e==null&&(e=this.ecModel.getComponent(Qr(i),r))},this),e},t.prototype.eachTargetAxis=function(e,i){this._targetAxisInfoMap.each(function(r,o){E(r.indexList,function(a){e.call(i,o,a)})})},t.prototype.getAxisProxy=function(e,i){var r=this.getAxisModel(e,i);if(r)return r.__dzAxisProxy},t.prototype.getAxisModel=function(e,i){var r=this._targetAxisInfoMap.get(e);if(r&&r.indexMap[i])return this.ecModel.getComponent(Qr(e),i)},t.prototype.setRawRange=function(e){var i=this.option,r=this.settledOption;E([["start","startValue"],["end","endValue"]],function(o){(e[o[0]]!=null||e[o[1]]!=null)&&(i[o[0]]=r[o[0]]=e[o[0]],i[o[1]]=r[o[1]]=e[o[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var i=this.option;E(["start","startValue","end","endValue"],function(r){i[r]=e[r]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,i){if(e==null&&i==null){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataValueWindow()}else return this.getAxisProxy(e,i).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var i,r=this._targetAxisInfoMap.keys(),o=0;o<r.length;o++)for(var a=r[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;i||(i=c)}return i},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})(Yt);function LD(n){var t={};return E(["start","end","startValue","endValue","throttle"],function(e){n.hasOwnProperty(e)&&(t[e]=n[e])}),t}var w8=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t})($u),t1=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,r,o){this.dataZoomModel=e,this.ecModel=i,this.api=r},t.type="dataZoom",t})(ze),S8=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t})(t1),Ms=E,ED=qa,k8=(function(){function n(t,e,i,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=i}return n.prototype.hostedBy=function(t){return this._dataZoomModel===t},n.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},n.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},n.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(x8(e)){var i=Qr(this._dimName),r=e.getReferringComponents(i,rn).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}},this),t},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return Et(this._minMaxSpan)},n.prototype.calculateDataWindow=function(t){var e=this._dataExtent,i=this.getAxisModel(),r=i.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],c;Ms(["start","end"],function(g,d){var y=t[g],_=t[g+"Value"];o[d]==="percent"?(y==null&&(y=a[d]),_=r.parse(Le(y,a,e))):(c=!0,_=_==null?e[d]:r.parse(_),y=Le(_,e,a)),l[d]=_==null||isNaN(_)?e[d]:_,s[d]=y==null||isNaN(y)?a[d]:y}),ED(l),ED(s);var f=this._minMaxSpan;c?p(l,s,e,a,!1):p(s,l,a,e,!0);function p(g,d,y,_,m){var x=m?"Span":"ValueSpan";Yu(0,g,y,"all",f["min"+x],f["max"+x]);for(var w=0;w<2;w++)d[w]=Le(g[w],y,_,!0),m&&(d[w]=r.parse(d[w]))}return{valueWindow:l,percentWindow:s}},n.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=M8(this,this._dimName,e),this._updateMinMaxSpan();var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},n.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var i=this._dimName,r=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;if(o==="none")return;Ms(r,function(l){var c=l.getData(),f=c.mapDimensionsAll(i);if(f.length){if(o==="weakFilter"){var p=c.getStore(),g=pt(f,function(d){return c.getDimensionIndex(d)},c);c.filterSelf(function(d){for(var y,_,m,x=0;x<f.length;x++){var w=p.get(g[x],d),S=!isNaN(w),C=w<a[0],M=w>a[1];if(S&&!C&&!M)return!0;S&&(m=!0),C&&(y=!0),M&&(_=!0)}return m&&y&&_})}else Ms(f,function(d){if(o==="empty")l.setData(c=c.map(d,function(_){return s(_)?_:NaN}));else{var y={};y[d]=a,c.selectRange(y)}});Ms(f,function(d){c.setApproximateExtent(a,d)})}});function s(l){return l>=a[0]&&l<=a[1]}},n.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._dataExtent;Ms(["min","max"],function(r){var o=e.get(r+"Span"),a=e.get(r+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?o=Le(i[0]+a,i,[0,100],!0):o!=null&&(a=Le(o,[0,100],i,!0)-i[0]),t[r+"Span"]=o,t[r+"ValueSpan"]=a},this)},n.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,i=this._valueWindow;if(e){var r=$v(i,[0,500]);r=Math.min(r,20);var o=t.axis.scale.rawExtentInfo;e[0]!==0&&o.setDeterminedMinMax("min",+i[0].toFixed(r)),e[1]!==100&&o.setDeterminedMinMax("max",+i[1].toFixed(r)),o.freeze()}},n})();function M8(n,t,e){var i=[1/0,-1/0];Ms(e,function(a){FV(i,a.getData(),t)});var r=n.getAxisModel(),o=uT(r.axis.scale,r,i).calculate();return[o.min,o.max]}var C8={getTargetSeries:function(n){function t(r){n.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(a,s){var l=n.getComponent(Qr(a),s);r(a,s,l,o)})})}t(function(r,o,a,s){a.__dzAxisProxy=null});var e=[];t(function(r,o,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new k8(r,o,s,n),e.push(a.__dzAxisProxy))});var i=Mt();return E(e,function(r){E(r.getTargetSeriesModels(),function(o){i.set(o.uid,o)})}),i},overallReset:function(n,t){n.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(i,r){e.getAxisProxy(i,r).reset(e)}),e.eachTargetAxis(function(i,r){e.getAxisProxy(i,r).filterData(e,t)})}),n.eachComponent("dataZoom",function(e){var i=e.findRepresentativeAxisProxy();if(i){var r=i.getDataPercentWindow(),o=i.getDataValueWindow();e.setCalculatedRange({start:r[0],end:r[1],startValue:o[0],endValue:o[1]})}})}};function T8(n){n.registerAction("dataZoom",function(t,e){var i=b8(e,t);E(i,function(r){r.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var OD=!1;function e1(n){OD||(OD=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,C8),T8(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function I8(n){n.registerComponentModel(w8),n.registerComponentView(S8),e1(n)}var hi=(function(){function n(){}return n})(),RD={};function qu(n,t){RD[n]=t}function ND(n){return RD[n]}var D8=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;E(this.option.feature,function(i,r){var o=ND(r);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(e)),zt(i,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})(Yt);function A8(n,t,e){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:e.getWidth(),height:e.getHeight()},a=Ei(i,o,r);fs(t.get("orient"),n,t.get("itemGap"),a.width,a.height),qz(n,i,o,r)}function zD(n,t){var e=_u(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),n=new se({shape:{x:n.x-e[3],y:n.y-e[0],width:n.width+e[1]+e[3],height:n.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),n}var P8=(function(n){ft(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.render=function(e,i,r,o){var a=this.group;if(a.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",c=e.get("feature")||{},f=this._features||(this._features={}),p=[];E(c,function(y,_){p.push(_)}),new Wm(this._featureNames||[],p).add(g).update(g).remove(Gt(g,null)).execute(),this._featureNames=p;function g(y,_){var m=p[y],x=p[_],w=c[m],S=new he(w,e,e.ecModel),C;if(o&&o.newTitle!=null&&o.featureName===m&&(w.title=o.newTitle),m&&!x){if(L8(m))C={onclick:S.option.onclick,featureName:m};else{var M=ND(m);if(!M)return;C=new M}f[m]=C}else if(C=f[x],!C)return;C.uid=du("toolbox-feature"),C.model=S,C.ecModel=i,C.api=r;var T=C instanceof hi;if(!m&&x){T&&C.dispose&&C.dispose(i,r);return}if(!S.get("show")||T&&C.unusable){T&&C.remove&&C.remove(i,r);return}d(S,C,m),S.setIconStatus=function(D,P){var L=this.option,O=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[D]=P,O[D]&&(P==="emphasis"?ts:es)(O[D])},C instanceof hi&&C.render&&C.render(S,i,r,o)}function d(y,_,m){var x=y.getModel("iconStyle"),w=y.getModel(["emphasis","iconStyle"]),S=_ instanceof hi&&_.getIcons?_.getIcons():y.get("icon"),C=y.get("title")||{},M,T;gt(S)?(M={},M[m]=S):M=S,gt(C)?(T={},T[m]=C):T=C;var D=y.iconPaths={};E(M,function(P,L){var O=uu(P,{},{x:-s/2,y:-s/2,width:s,height:s});O.setStyle(x.getItemStyle());var N=O.ensureState("emphasis");N.style=w.getItemStyle();var B=new we({style:{text:T[L],align:w.get("textAlign"),borderRadius:w.get("textBorderRadius"),padding:w.get("textPadding"),fill:null,font:pM({fontStyle:w.get("textFontStyle"),fontFamily:w.get("textFontFamily"),fontSize:w.get("textFontSize"),fontWeight:w.get("textFontWeight")},i)},ignore:!0});O.setTextContent(B),cu({el:O,componentModel:e,itemName:L,formatterParamsExtra:{title:T[L]}}),O.__title=T[L],O.on("mouseover",function(){var V=w.getItemStyle(),Z=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";B.setStyle({fill:w.get("textFill")||V.fill||V.stroke||"#000",backgroundColor:w.get("textBackgroundColor")}),O.setTextConfig({position:w.get("textPosition")||Z}),B.ignore=!e.get("showTitle"),r.enterEmphasis(this)}).on("mouseout",function(){y.get(["iconStatus",L])!=="emphasis"&&r.leaveEmphasis(this),B.hide()}),(y.get(["iconStatus",L])==="emphasis"?ts:es)(O),a.add(O),O.on("click",wt(_.onclick,_,i,r,L)),D[L]=O})}A8(a,e,r),a.add(zD(a.getBoundingRect(),e)),l||a.eachChild(function(y){var _=y.__title,m=y.ensureState("emphasis"),x=m.textConfig||(m.textConfig={}),w=y.getTextContent(),S=w&&w.ensureState("emphasis");if(S&&!St(S)&&_){var C=S.style||(S.style={}),M=Gf(_,we.makeFont(C)),T=y.x+a.x,D=y.y+a.y+s,P=!1;D+M.height>r.getHeight()&&(x.position="top",P=!0);var L=P?-5-M.height:s+10;T+M.width/2>r.getWidth()?(x.position=["100%",L],C.align="right"):T-M.width/2<0&&(x.position=[0,L],C.align="left")}})},t.prototype.updateView=function(e,i,r,o){E(this._features,function(a){a instanceof hi&&a.updateView&&a.updateView(a.model,i,r,o)})},t.prototype.remove=function(e,i){E(this._features,function(r){r instanceof hi&&r.remove&&r.remove(e,i)}),this.group.removeAll()},t.prototype.dispose=function(e,i){E(this._features,function(r){r instanceof hi&&r.dispose&&r.dispose(e,i)})},t.type="toolbox",t})(ze);function L8(n){return n.indexOf("my")===0}var E8=(function(n){ft(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){var r=this.model,o=r.get("name")||e.get("title.0.text")||"echarts",a=i.getZr().painter.getType()==="svg",s=a?"svg":r.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:r.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")}),c=Ct.browser;if(typeof MouseEvent=="function"&&(c.newEdge||!c.ie&&!c.edge)){var f=document.createElement("a");f.download=o+"."+s,f.target="_blank",f.href=l;var p=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(p)}else if(window.navigator.msSaveOrOpenBlob||a){var g=l.split(","),d=g[0].indexOf("base64")>-1,y=a?decodeURIComponent(g[1]):g[1];d&&(y=window.atob(y));var _=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=y.length,x=new Uint8Array(m);m--;)x[m]=y.charCodeAt(m);var w=new Blob([x]);window.navigator.msSaveOrOpenBlob(w,_)}else{var S=document.createElement("iframe");document.body.appendChild(S);var C=S.contentWindow,M=C.document;M.open("image/svg+xml","replace"),M.write(y),M.close(),C.focus(),M.execCommand("SaveAs",!0,_),document.body.removeChild(S)}}else{var T=r.get("lang"),D='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(T&&T[0]||"")+'" /></body>',P=window.open();P.document.write(D),P.document.title=o}},t.getDefaultOption=function(e){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},t})(hi),BD="__ec_magicType_stack__",O8=[["line","bar"],["stack"]],R8=(function(n){ft(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,i=e.get("icon"),r={};return E(e.get("type"),function(o){i[o]&&(r[o]=i[o])}),r},t.getDefaultOption=function(e){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},t.prototype.onclick=function(e,i,r){var o=this.model,a=o.get(["seriesIndex",r]);if(FD[r]){var s={series:[]},l=function(p){var g=p.subType,d=p.id,y=FD[r](g,d,p,o);y&&(Wt(y,p.option),s.series.push(y));var _=p.coordinateSystem;if(_&&_.type==="cartesian2d"&&(r==="line"||r==="bar")){var m=_.getAxesByScale("ordinal")[0];if(m){var x=m.dim,w=x+"Axis",S=p.getReferringComponents(w,rn).models[0],C=S.componentIndex;s[w]=s[w]||[];for(var M=0;M<=C;M++)s[w][C]=s[w][C]||{};s[w][C].boundaryGap=r==="bar"}}};E(O8,function(p){Vt(p,r)>=0&&E(p,function(g){o.setIconStatus(g,"normal")})}),o.setIconStatus(r,"emphasis"),e.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var c,f=r;r==="stack"&&(c=zt({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",r])!=="emphasis"&&(f="tiled")),i.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:c,featureName:"magicType"})}},t})(hi),FD={line:function(n,t,e,i){if(n==="bar")return zt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(n,t,e,i){if(n==="line")return zt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(n,t,e,i){var r=e.get("stack")===BD;if(n==="line"||n==="bar")return i.setIconStatus("stack",r?"normal":"emphasis"),zt({id:t,stack:r?"":BD},i.get(["option","stack"])||{},!0)}};li({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,t){t.mergeOption(n.newOption)});var Ip=new Array(60).join("-"),Cs=" ";function N8(n){var t={},e=[],i=[];return n.eachRawSeries(function(r){var o=r.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:[]},i.push({axisDim:a.dim,axisIndex:a.index})),t[s].series.push(r)}else e.push(r)}else e.push(r)}),{seriesGroupByCategoryAxis:t,other:e,meta:i}}function z8(n){var t=[];return E(n,function(e,i){var r=e.categoryAxis,o=e.valueAxis,a=o.dim,s=[" "].concat(pt(e.series,function(d){return d.name})),l=[r.model.getCategories()];E(e.series,function(d){var y=d.getRawData();l.push(d.getRawData().mapArray(y.mapDimension(a),function(_){return _}))});for(var c=[s.join(Cs)],f=0;f<l[0].length;f++){for(var p=[],g=0;g<l.length;g++)p.push(l[g][f]);c.push(p.join(Cs))}t.push(c.join(`
|
|
127
|
+
`))}),t.join(`
|
|
128
|
+
|
|
129
|
+
`+Ip+`
|
|
130
|
+
|
|
131
|
+
`)}function B8(n){return pt(n,function(t){var e=t.getRawData(),i=[t.name],r=[];return e.each(e.dimensions,function(){for(var o=arguments.length,a=arguments[o-1],s=e.getName(a),l=0;l<o-1;l++)r[l]=arguments[l];i.push((s?s+Cs:"")+r.join(Cs))}),i.join(`
|
|
132
|
+
`)}).join(`
|
|
133
|
+
|
|
134
|
+
`+Ip+`
|
|
135
|
+
|
|
136
|
+
`)}function F8(n){var t=N8(n);return{value:ve([z8(t.seriesGroupByCategoryAxis),B8(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
|
|
137
|
+
|
|
138
|
+
`+Ip+`
|
|
139
|
+
|
|
140
|
+
`),meta:t.meta}}function Dp(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function V8(n){var t=n.slice(0,n.indexOf(`
|
|
141
|
+
`));if(t.indexOf(Cs)>=0)return!0}var n1=new RegExp("["+Cs+"]+","g");function H8(n){for(var t=n.split(/\n+/g),e=Dp(t.shift()).split(n1),i=[],r=pt(e,function(l){return{name:l,data:[]}}),o=0;o<t.length;o++){var a=Dp(t[o]).split(n1);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}function W8(n){for(var t=n.split(/\n+/g),e=Dp(t.shift()),i=[],r=0;r<t.length;r++){var o=Dp(t[r]);if(o){var a=o.split(n1),s="",l=void 0,c=!1;isNaN(a[0])?(c=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var f=0;f<a.length;f++)l.push(+a[f]);l.length===1&&(c?i[r].value=l[0]:i[r]=l[0])}}return{name:e,data:i}}function U8(n,t){var e=n.split(new RegExp(`
|
|
142
|
+
*`+Ip+`
|
|
143
|
+
*`,"g")),i={series:[]};return E(e,function(r,o){if(V8(r)){var a=H8(r),s=t[o],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:a.categories},i.series=i.series.concat(a.series))}else{var a=W8(r);i.series.push(a)}}),i}var G8=(function(n){ft(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var r=i.getDom(),o=this.model;this._dom&&r.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"),f=document.createElement("textarea");c.style.cssText="overflow:auto";var p=o.get("optionToContent"),g=o.get("contentToOption"),d=F8(e);if(St(p)){var y=p(i.getOption());gt(y)?c.innerHTML=y:vo(y)&&c.appendChild(y)}else{f.readOnly=o.get("readOnly");var _=f.style;_.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",_.color=o.get("textColor"),_.borderColor=o.get("textareaBorderColor"),_.backgroundColor=o.get("textareaColor"),f.value=d.value,c.appendChild(f)}var m=d.meta,x=document.createElement("div");x.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",S=document.createElement("div"),C=document.createElement("div");w+=";background-color:"+o.get("buttonColor"),w+=";color:"+o.get("buttonTextColor");var M=this;function T(){r.removeChild(a),M._dom=null}hv(S,"click",T),hv(C,"click",function(){if(g==null&&p!=null||g!=null&&p==null){T();return}var D;try{St(g)?D=g(c,i.getOption()):D=U8(f.value,m)}catch(P){throw T(),new Error("Data view format error "+P)}D&&i.dispatchAction({type:"changeDataView",newOption:D}),T()}),S.innerHTML=l[1],C.innerHTML=l[2],C.style.cssText=S.style.cssText=w,!o.get("readOnly")&&x.appendChild(C),x.appendChild(S),a.appendChild(s),a.appendChild(c),a.appendChild(x),c.style.height=r.clientHeight-80+"px",r.appendChild(a),this._dom=a},t.prototype.remove=function(e,i){this._dom&&i.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,i){this.remove(e,i)},t.getDefaultOption=function(e){var i={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return i},t})(hi);function j8(n,t){return pt(n,function(e,i){var r=t&&t[i];if(_t(r)&&!ct(r)){var o=_t(e)&&!ct(e);o||(e={value:e});var a=r.name!=null&&e.name==null;return e=Wt(e,r),a&&delete e.name,e}else return e})}li({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(n,t){var e=[];E(n.newOption.series,function(i){var r=t.getSeriesByName(i.name)[0];if(!r)e.push(st({type:"scatter"},i));else{var o=r.get("data");e.push({name:i.name,data:j8(i.data,o)})}}),t.mergeOption(Wt({series:e},n.newOption))});var VD=E,HD=fe();function Z8(n,t){var e=i1(n);VD(t,function(i,r){for(var o=e.length-1;o>=0;o--){var a=e[o];if(a[r])break}if(o<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(s){var l=s.getPercentRange();e[0][r]={dataZoomId:r,start:l[0],end:l[1]}}}}),e.push(t)}function Y8(n){var t=i1(n),e=t[t.length-1];t.length>1&&t.pop();var i={};return VD(e,function(r,o){for(var a=t.length-1;a>=0;a--)if(r=t[a][o],r){i[o]=r;break}}),i}function X8(n){HD(n).snapshots=null}function $8(n){return i1(n).length}function i1(n){var t=HD(n);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var q8=(function(n){ft(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){X8(e),i.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return i},t})(hi);li({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,t){t.resetOption("recreate")});var Q8=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],WD=(function(){function n(t,e,i){var r=this;this._targetInfoList=[];var o=UD(e,t);E(K8,function(a,s){(!i||!i.include||Vt(i.include,s)>=0)&&a(o,r._targetInfoList)})}return n.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(i,r,o){if((i.coordRanges||(i.coordRanges=[])).push(r),!i.coordRange){i.coordRange=r;var a=o1[i.brushType](0,o,r);i.__rangeOffset={offset:YD[i.brushType](a.values,i.range,[1,1]),xyMinMax:a.xyMinMax}}}),t},n.prototype.matchOutputRanges=function(t,e,i){E(t,function(r){var o=this.findTargetInfo(r,e);o&&o!==!0&&E(o.coordSyses,function(a){var s=o1[r.brushType](1,a,r.range,!0);i(r,s.values,a,e)})},this)},n.prototype.setInputRanges=function(t,e){E(t,function(i){var r=this.findTargetInfo(i,e);if(i.range=i.range||[],r&&r!==!0){i.panelId=r.panelId;var o=o1[i.brushType](0,r.coordSys,i.coordRange),a=i.__rangeOffset;i.range=a?YD[i.brushType](o.values,a.offset,J8(o.xyMinMax,a.xyMinMax)):o.values}},this)},n.prototype.makePanelOpts=function(t,e){return pt(this._targetInfoList,function(i){var r=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e?e(i):null,clipPath:IW(r),isTargetByCursor:AW(r,t,i.coordSysModel),getLinearBrushOtherExtent:DW(r)}})},n.prototype.controlSeries=function(t,e,i){var r=this.findTargetInfo(t,i);return r===!0||r&&Vt(r.coordSyses,e.coordinateSystem)>=0},n.prototype.findTargetInfo=function(t,e){for(var i=this._targetInfoList,r=UD(e,t),o=0;o<i.length;o++){var a=i[o],s=t.panelId;if(s){if(a.panelId===s)return a}else for(var l=0;l<GD.length;l++)if(GD[l](r,a))return a}return!0},n})();function r1(n){return n[0]>n[1]&&n.reverse(),n}function UD(n,t){return jl(n,t,{includeMainTypes:Q8})}var K8={grid:function(n,t){var e=n.xAxisModels,i=n.yAxisModels,r=n.gridModels,o=Mt(),a={},s={};!e&&!i&&!r||(E(e,function(l){var c=l.axis.grid.model;o.set(c.id,c),a[c.id]=!0}),E(i,function(l){var c=l.axis.grid.model;o.set(c.id,c),s[c.id]=!0}),E(r,function(l){o.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),o.each(function(l){var c=l.coordinateSystem,f=[];E(c.getCartesians(),function(p,g){(Vt(e,p.getAxis("x").model)>=0||Vt(i,p.getAxis("y").model)>=0)&&f.push(p)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:jD.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,t){E(n.geoModels,function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:jD.geo})})}},GD=[function(n,t){var e=n.xAxisModel,i=n.yAxisModel,r=n.gridModel;return!r&&e&&(r=e.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(n,t){var e=n.geoModel;return e&&e===t.geoModel}],jD={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,t=n.getBoundingRect().clone();return t.applyTransform(su(n)),t}},o1={lineX:Gt(ZD,0),lineY:Gt(ZD,1),rect:function(n,t,e,i){var r=n?t.pointToData([e[0][0],e[1][0]],i):t.dataToPoint([e[0][0],e[1][0]],i),o=n?t.pointToData([e[0][1],e[1][1]],i):t.dataToPoint([e[0][1],e[1][1]],i),a=[r1([r[0],o[0]]),r1([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(n,t,e,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=pt(e,function(a){var s=n?t.pointToData(a,i):t.dataToPoint(a,i);return r[0][0]=Math.min(r[0][0],s[0]),r[1][0]=Math.min(r[1][0],s[1]),r[0][1]=Math.max(r[0][1],s[0]),r[1][1]=Math.max(r[1][1],s[1]),s});return{values:o,xyMinMax:r}}};function ZD(n,t,e,i){var r=e.getAxis(["x","y"][n]),o=r1(pt([0,1],function(s){return t?r.coordToData(r.toLocalCoord(i[s]),!0):r.toGlobalCoord(r.dataToCoord(i[s]))})),a=[];return a[n]=o,a[1-n]=[NaN,NaN],{values:o,xyMinMax:a}}var YD={lineX:Gt(XD,0),lineY:Gt(XD,1),rect:function(n,t,e){return[[n[0][0]-e[0]*t[0][0],n[0][1]-e[0]*t[0][1]],[n[1][0]-e[1]*t[1][0],n[1][1]-e[1]*t[1][1]]]},polygon:function(n,t,e){return pt(n,function(i,r){return[i[0]-e[0]*t[r][0],i[1]-e[1]*t[r][1]]})}};function XD(n,t,e,i){return[t[0]-i[n]*e[0],t[1]-i[n]*e[1]]}function J8(n,t){var e=$D(n),i=$D(t),r=[e[0]/i[0],e[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function $D(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}var a1=E,t9=x3("toolbox-dataZoom_"),e9=(function(n){ft(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.render=function(e,i,r,o){this._brushController||(this._brushController=new _W(r.getZr()),this._brushController.on("brush",wt(this._onBrush,this)).mount()),r9(e,i,this,o,r),i9(e,i)},t.prototype.onclick=function(e,i,r){n9[r].call(this)},t.prototype.remove=function(e,i){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,i){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var i=e.areas;if(!e.isEnd||!i.length)return;var r={},o=this.ecModel;this._brushController.updateCovers([]);var a=new WD(s1(this.model),o,{include:["grid"]});a.matchOutputRanges(i,o,function(c,f,p){if(p.type==="cartesian2d"){var g=c.brushType;g==="rect"?(s("x",p,f[0]),s("y",p,f[1])):s({lineX:"x",lineY:"y"}[g],p,f)}}),Z8(o,r),this._dispatchZoomAction(r);function s(c,f,p){var g=f.getAxis(c),d=g.model,y=l(c,d,o),_=y.findRepresentativeAxisProxy(d).getMinMaxSpan();(_.minValueSpan!=null||_.maxValueSpan!=null)&&(p=Yu(0,p.slice(),g.scale.getExtent(),0,_.minValueSpan,_.maxValueSpan)),y&&(r[y.id]={dataZoomId:y.id,startValue:p[0],endValue:p[1]})}function l(c,f,p){var g;return p.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var y=d.getAxisModel(c,f.componentIndex);y&&(g=d)}),g}},t.prototype._dispatchZoomAction=function(e){var i=[];a1(e,function(r,o){i.push(Et(r))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},t.getDefaultOption=function(e){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},t})(hi),n9={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Y8(this.ecModel))}};function s1(n){var t={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function i9(n,t){n.setIconStatus("back",$8(t)>1?"emphasis":"normal")}function r9(n,t,e,i,r){var o=e._isZoomActive;i&&i.type==="takeGlobalCursor"&&(o=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),e._isZoomActive=o,n.setIconStatus("zoom",o?"emphasis":"normal");var a=new WD(s1(n),t,{include:["grid"]}),s=a.makePanelOpts(r,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(o&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}r4("dataZoom",function(n){var t=n.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var i=t.getModel(e),r=[],o=s1(i),a=jl(n,o);a1(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),a1(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,c,f){var p=l.componentIndex,g={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:t9+c+p};g[f]=p,r.push(g)}return r});function o9(n){n.registerComponentModel(D8),n.registerComponentView(P8),qu("saveAsImage",E8),qu("magicType",R8),qu("dataView",G8),qu("dataZoom",e9),qu("restore",q8),Yn(I8)}var a9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}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})(Yt);function qD(n){var t=n.get("confine");return t!=null?!!t:n.get("renderMode")==="richText"}function QD(n){if(Ct.domSupported){for(var t=document.documentElement.style,e=0,i=n.length;e<i;e++)if(n[e]in t)return n[e]}}var KD=QD(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),s9=QD(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function JD(n,t){if(!n)return t;t=Xy(t,!0);var e=n.indexOf(t);return n=e===-1?t:"-"+n.slice(0,e)+"-"+t,n.toLowerCase()}function l9(n,t){var e=n.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n);return e?e[t]:null}var u9=JD(s9,"transition"),l1=JD(KD,"transform"),c9="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ct.transform3dSupported?"will-change:transform;":"");function f9(n){return n=n==="left"?"right":n==="right"?"left":n==="top"?"bottom":"top",n}function h9(n,t,e){if(!gt(e)||e==="inside")return"";var i=n.get("backgroundColor"),r=n.get("borderWidth");t=Ho(t);var o=f9(e),a=Math.max(Math.round(r)*1.5,6),s="",l=l1+":",c;Vt(["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 f=c*Math.PI/180,p=a+r,g=p*Math.abs(Math.cos(f))+p*Math.abs(Math.sin(f)),d=Math.round(((g-Math.SQRT2*r)/2+Math.SQRT2*r-(g-p)/2)*100)/100;s+=";"+o+":-"+d+"px";var y=t+" solid "+r+"px;",_=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+y,"border-right:"+y,"background-color:"+i+";"];return'<div style="'+_.join("")+'"></div>'}function p9(n,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+n/2+"s "+e,r="opacity"+i+",visibility"+i;return t||(i=" "+n+"s "+e,r+=Ct.transformSupported?","+l1+i:",left"+i+",top"+i),u9+":"+r}function tA(n,t,e){var i=n.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!Ct.transformSupported)return e?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=Ct.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return e?"top:0;left:0;"+l1+":"+a+";":[["top",0],["left",0],[KD,a]]}function d9(n){var t=[],e=n.get("fontSize"),i=n.getTextColor();i&&t.push("color:"+i),t.push("font:"+n.getFont());var r=Nt(n.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+r+"px");var o=n.get("textShadowColor"),a=n.get("textShadowBlur")||0,s=n.get("textShadowOffsetX")||0,l=n.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),E(["decoration","align"],function(c){var f=n.get(c);f&&t.push("text-"+c+":"+f)}),t.join(";")}function g9(n,t,e){var i=[],r=n.get("transitionDuration"),o=n.get("backgroundColor"),a=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),c=n.get("shadowOffsetY"),f=n.getModel("textStyle"),p=TC(n,"html"),g=l+"px "+c+"px "+a+"px "+s;return i.push("box-shadow:"+g),t&&r&&i.push(p9(r,e)),o&&i.push("background-color:"+o),E(["width","color","radius"],function(d){var y="border-"+d,_=Xy(y),m=n.get(_);m!=null&&i.push(y+":"+m+(d==="color"?"":"px"))}),i.push(d9(f)),p!=null&&i.push("padding:"+_u(p).join("px ")+"px"),i.join(";")+";"}function eA(n,t,e,i,r){var o=t&&t.painter;if(e){var a=o&&o.getViewportRoot();a&&GR(n,a,e,i,r)}else{n[0]=i,n[1]=r;var s=o&&o.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/t.getWidth(),n[3]=n[1]/t.getHeight()}var v9=(function(){function n(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ct.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=e.appendTo,a=o&&(gt(o)?document.querySelector(o):vo(o)?o:St(o)&&o(t.getDom()));eA(this._styleCoord,r,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(i),this._api=t,this._container=a;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var c=r.handler,f=r.painter.getViewportRoot();On(f,l,!0),c.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=l9(e,"position"),r=e.style;r.position!=="absolute"&&i!=="absolute"&&(r.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},n.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,r=i.style,o=this._styleCoord;i.innerHTML?r.cssText=c9+g9(t,!this._firstShow,this._longHide)+tA(o[0],o[1],!0)+("border-color:"+Ho(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(t,e,i,r,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(gt(o)&&i.get("trigger")==="item"&&!qD(i)&&(s=h9(i,r,o)),gt(t))a.innerHTML=t+s;else if(t){a.innerHTML="",ct(t)||(t=[t]);for(var l=0;l<t.length;l++)vo(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)}}},n.prototype.setEnterable=function(t){this._enterable=t},n.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},n.prototype.moveTo=function(t,e){if(this.el){var i=this._styleCoord;if(eA(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var r=this.el.style,o=tA(i[0],i[1]);E(o,function(a){r[a[0]]=a[1]})}}},n.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},n.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Ct.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},n.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(wt(this.hide,this),t)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},n})(),y9=(function(){function n(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),iA(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return n.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},n.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},n.prototype.setContent=function(t,e,i,r,o){var a=this;_t(t)&&gn(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new we({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:TC(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),E(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){a.el.style[c]=i.get(c)}),E(["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})},n.prototype.setEnterable=function(t){this._enterable=t},n.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=nA(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},n.prototype.moveTo=function(t,e){var i=this.el;if(i){var r=this._styleCoord;iA(r,this._zr,t,e),t=r[0],e=r[1];var o=i.style,a=Kr(o.borderWidth||0),s=nA(o);i.x=t+a+s.left,i.y=e+a+s.top,i.markRedraw()}},n.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},n.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},n.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(wt(this.hide,this),t)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this._zr.remove(this.el)},n})();function Kr(n){return Math.max(0,n)}function nA(n){var t=Kr(n.shadowBlur||0),e=Kr(n.shadowOffsetX||0),i=Kr(n.shadowOffsetY||0);return{left:Kr(t-e),right:Kr(t+e),top:Kr(t-i),bottom:Kr(t+i)}}function iA(n,t,e,i){n[0]=e,n[1]=i,n[2]=n[0]/t.getWidth(),n[3]=n[1]/t.getHeight()}var m9=new se({shape:{x:-1,y:-1,width:2,height:2}}),_9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){if(!(Ct.node||!i.getDom())){var r=e.getComponent("tooltip"),o=this._renderMode=C3(r.get("renderMode"));this._tooltipContent=o==="richText"?new y9(i):new v9(i,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},t.prototype.render=function(e,i,r){if(!(Ct.node||!r.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=r;var o=this._tooltipContent;o.update(e),o.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Gh(this,"_updatePosition",50,"fixRate"):jh(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");SD("itemTooltip",this._api,wt(function(r,o,a){i!=="none"&&(i.indexOf(r)>=0?this._tryShow(o,a):r==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,r=this._api,o=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!r.isDisposed()&&a.manuallyShowTip(e,i,r,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,r,o){if(!(o.from===this.uid||Ct.node||!r.getDom())){var a=rA(o,r);this._ticket="";var s=o.dataByCoordSys,l=S9(o,i,r);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 f=m9;f.x=o.x,f.y=o.y,f.update(),Ut(f).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:f},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(e,i,r,o))return;var p=MD(o,i),g=p.point[0],d=p.point[1];g!=null&&d!=null&&this._tryShow({offsetX:g,offsetY:d,target:p.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(r.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:r.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(e,i,r,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(rA(o,r))},t.prototype._manuallyAxisShowTip=function(e,i,r,o){var a=o.seriesIndex,s=o.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var c=i.getSeriesByIndex(a);if(c){var f=c.getData(),p=Qu([f.getItemModel(s),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return r.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(e,i){var r=e.target,o=this._tooltipModel;if(o){this._lastX=e.offsetX,this._lastY=e.offsetY;var a=e.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,e);else if(r){var s=Ut(r);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,c;Pu(r,function(f){if(Ut(f).dataIndex!=null)return l=f,!0;if(Ut(f).tooltipConfig!=null)return c=f,!0},!0),l?this._showSeriesItemTooltip(e,l,i):c?this._showComponentItemTooltip(e,c,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var r=e.get("showDelay");i=wt(i,this),clearTimeout(this._showTimout),r>0?this._showTimout=setTimeout(i,r):i()},t.prototype._showAxisTooltip=function(e,i){var r=this._ecModel,o=this._tooltipModel,a=[i.offsetX,i.offsetY],s=Qu([i.tooltipOption],o),l=this._renderMode,c=[],f=Tu("section",{blocks:[],noHeader:!0}),p=[],g=new gm;E(e,function(w){E(w.dataByAxis,function(S){var C=r.getComponent(S.axisDim+"Axis",S.axisIndex),M=S.value;if(!(!C||M==null)){var T=_D(M,C.axis,r,S.seriesDataIndices,S.valueLabelOpt),D=Tu("section",{header:T,noHeader:!ei(T),sortBlocks:!0,blocks:[]});f.blocks.push(D),E(S.seriesDataIndices,function(P){var L=r.getSeriesByIndex(P.seriesIndex),O=P.dataIndexInside,N=L.getDataParams(O);if(!(N.dataIndex<0)){N.axisDim=S.axisDim,N.axisIndex=S.axisIndex,N.axisType=S.axisType,N.axisId=S.axisId,N.axisValue=n0(C.axis,{value:M}),N.axisValueLabel=T,N.marker=g.makeTooltipMarker("item",Ho(N.color),l);var B=fC(L.formatTooltip(O,!0,null)),V=B.frag;if(V){var Z=Qu([L],o).get("valueFormatter");D.blocks.push(Z?st({valueFormatter:Z},V):V)}B.text&&p.push(B.text),c.push(N)}})}})}),f.blocks.reverse(),p.reverse();var d=i.position,y=s.get("order"),_=MC(f,g,l,y,r.get("useUTC"),s.get("textStyle"));_&&p.unshift(_);var m=l==="richText"?`
|
|
144
|
+
|
|
145
|
+
`:"<br/>",x=p.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,c)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,c):this._showTooltipContent(s,x,c,Math.random()+"",a[0],a[1],d,null,g)})},t.prototype._showSeriesItemTooltip=function(e,i,r){var o=this._ecModel,a=Ut(i),s=a.seriesIndex,l=o.getSeriesByIndex(s),c=a.dataModel||l,f=a.dataIndex,p=a.dataType,g=c.getData(p),d=this._renderMode,y=e.positionDefault,_=Qu([g.getItemModel(f),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),m=_.get("trigger");if(!(m!=null&&m!=="item")){var x=c.getDataParams(f,p),w=new gm;x.marker=w.makeTooltipMarker("item",Ho(x.color),d);var S=fC(c.formatTooltip(f,!1,p)),C=_.get("order"),M=_.get("valueFormatter"),T=S.frag,D=T?MC(M?st({valueFormatter:M},T):T,w,d,C,o.get("useUTC"),_.get("textStyle")):S.text,P="item_"+c.name+"_"+f;this._showOrMove(_,function(){this._showTooltipContent(_,D,x,P,e.offsetX,e.offsetY,e.position,e.target,w)}),r({type:"showTip",dataIndexInside:f,dataIndex:g.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,r){var o=this._renderMode==="html",a=Ut(i),s=a.tooltipConfig,l=s.option||{},c=l.encodeHTMLContent;if(gt(l)){var f=l;l={content:f,formatter:f},c=!0}c&&o&&l.content&&(l=Et(l),l.content=en(l.content));var p=[l],g=this._ecModel.getComponent(a.componentMainType,a.componentIndex);g&&p.push(g),p.push({formatter:l.content});var d=e.positionDefault,y=Qu(p,this._tooltipModel,d?{position:d}:null),_=y.get("content"),m=Math.random()+"",x=new gm;this._showOrMove(y,function(){var w=Et(y.get("formatterParams")||{});this._showTooltipContent(y,_,w,m,e.offsetX,e.offsetY,e.position,i,x)}),r({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,r,o,a,s,l,c,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var p=this._tooltipContent;p.setEnterable(e.get("enterable"));var g=e.get("formatter");l=l||e.get("position");var d=i,y=this._getNearestPoint([a,s],r,e.get("trigger"),e.get("borderColor")),_=y.color;if(g)if(gt(g)){var m=e.ecModel.get("useUTC"),x=ct(r)?r[0]:r,w=x&&x.axisType&&x.axisType.indexOf("time")>=0;d=g,w&&(d=yu(x.axisValue,d,m)),d=Qy(d,r,!0)}else if(St(g)){var S=wt(function(C,M){C===this._ticket&&(p.setContent(M,f,e,_,l),this._updatePosition(e,l,a,s,p,r,c))},this);this._ticket=o,d=g(r,o,S)}else d=g;p.setContent(d,f,e,_,l),p.show(e,_),this._updatePosition(e,l,a,s,p,r,c)}},t.prototype._getNearestPoint=function(e,i,r,o){if(r==="axis"||ct(i))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ct(i))return{color:o||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,r,o,a,s,l){var c=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var p=a.getSize(),g=e.get("align"),d=e.get("verticalAlign"),y=l&&l.getBoundingRect().clone();if(l&&y.applyTransform(l.transform),St(i)&&(i=i([r,o],s,a.el,y,{viewSize:[c,f],contentSize:p.slice()})),ct(i))r=Qt(i[0],c),o=Qt(i[1],f);else if(_t(i)){var _=i;_.width=p[0],_.height=p[1];var m=Ei(_,{width:c,height:f});r=m.x,o=m.y,g=null,d=null}else if(gt(i)&&l){var x=w9(i,y,p,e.get("borderWidth"));r=x[0],o=x[1]}else{var x=x9(r,o,a,c,f,g?null:20,d?null:20);r=x[0],o=x[1]}if(g&&(r-=oA(g)?p[0]/2:g==="right"?p[0]:0),d&&(o-=oA(d)?p[1]/2:d==="bottom"?p[1]:0),qD(e)){var x=b9(r,o,a,c,f);r=x[0],o=x[1]}a.moveTo(r,o)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var r=this._lastDataByCoordSys,o=this._cbParamsList,a=!!r&&r.length===e.length;return a&&E(r,function(s,l){var c=s.dataByAxis||[],f=e[l]||{},p=f.dataByAxis||[];a=a&&c.length===p.length,a&&E(c,function(g,d){var y=p[d]||{},_=g.seriesDataIndices||[],m=y.seriesDataIndices||[];a=a&&g.value===y.value&&g.axisType===y.axisType&&g.axisId===y.axisId&&_.length===m.length,a&&E(_,function(x,w){var S=m[w];a=a&&x.seriesIndex===S.seriesIndex&&x.dataIndex===S.dataIndex}),o&&E(g.seriesDataIndices,function(x){var w=x.seriesIndex,S=i[w],C=o[w];S&&C&&C.data!==S.data&&(a=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!a},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){Ct.node||!i.getDom()||(jh(this,"_updatePosition"),this._tooltipContent.dispose(),K0("itemTooltip",i))},t.type="tooltip",t})(ze);function Qu(n,t,e){var i=t.ecModel,r;e?(r=new he(e,i,i),r=new he(t.option,r,i)):r=t;for(var o=n.length-1;o>=0;o--){var a=n[o];a&&(a instanceof he&&(a=a.get("tooltip",!0)),gt(a)&&(a={formatter:a}),a&&(r=new he(a,r,i)))}return r}function rA(n,t){return n.dispatchAction||wt(t.dispatchAction,t)}function x9(n,t,e,i,r,o,a){var s=e.getSize(),l=s[0],c=s[1];return o!=null&&(n+l+o+2>i?n-=l+o:n+=o),a!=null&&(t+c+a>r?t-=c+a:t+=a),[n,t]}function b9(n,t,e,i,r){var o=e.getSize(),a=o[0],s=o[1];return n=Math.min(n+a,i)-a,t=Math.min(t+s,r)-s,n=Math.max(n,0),t=Math.max(t,0),[n,t]}function w9(n,t,e,i){var r=e[0],o=e[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,c=t.width,f=t.height;switch(n){case"inside":s=t.x+c/2-r/2,l=t.y+f/2-o/2;break;case"top":s=t.x+c/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+c/2-r/2,l=t.y+f+a;break;case"left":s=t.x-r-a,l=t.y+f/2-o/2;break;case"right":s=t.x+c+a,l=t.y+f/2-o/2}return[s,l]}function oA(n){return n==="center"||n==="middle"}function S9(n,t,e){var i=ty(n).queryOptionMap,r=i.keys()[0];if(!(!r||r==="series")){var o=Zl(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=e.getViewOfComponentModel(a),l;if(s.group.traverse(function(c){var f=Ut(c).tooltipConfig;if(f&&f.name===n.name)return l=c,!0}),l)return{componentMainType:r,componentIndex:a.componentIndex,el:l}}}}function k9(n){Yn(DD),n.registerComponentModel(a9),n.registerComponentView(_9),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ue),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ue)}var M9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}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})(Yt),C9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,r){if(this.group.removeAll(),!!e.get("show")){var o=this.group,a=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),c=Nt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new we({style:Li(a,{text:e.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),p=f.getBoundingRect(),g=e.get("subtext"),d=new we({style:Li(s,{text:g,fill:s.getTextColor(),y:p.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=e.get("link"),_=e.get("sublink"),m=e.get("triggerEvent",!0);f.silent=!y&&!m,d.silent=!_&&!m,y&&f.on("click",function(){AM(y,"_"+e.get("target"))}),_&&d.on("click",function(){AM(_,"_"+e.get("subtarget"))}),Ut(f).eventData=Ut(d).eventData=m?{componentType:"title",componentIndex:e.componentIndex}:null,o.add(f),g&&o.add(d);var x=o.getBoundingRect(),w=e.getBoxLayoutParams();w.width=x.width,w.height=x.height;var S=Ei(w,{width:r.getWidth(),height:r.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),c||(c=e.get("top")||e.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?S.y+=S.height:c==="middle"&&(S.y+=S.height/2),c=c||"top"),o.x=S.x,o.y=S.y,o.markRedraw();var C={align:l,verticalAlign:c};f.setStyle(C),d.setStyle(C),x=o.getBoundingRect();var M=S.margin,T=e.getItemStyle(["color","opacity"]);T.fill=e.get("backgroundColor");var D=new se({shape:{x:x.x-M[3],y:x.y-M[0],width:x.width+M[1]+M[3],height:x.height+M[0]+M[2],r:e.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});o.add(D)}},t.type="title",t})(ze);function T9(n){n.registerComponentModel(M9),n.registerComponentView(C9)}var I9=function(n,t){if(t==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},u1=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,r=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),ct(i)&&E(i,function(o,a){gt(o)&&(o={type:o}),i[a]=zt(o,I9(r,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,r=0;r<e.length;r++){var o=e[r].get("name");if(this.isSelected(o)){this.select(o),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],r=[];e.eachRawSeries(function(l){var c=l.name;r.push(c);var f;if(l.legendVisualProvider){var p=l.legendVisualProvider,g=p.getAllNames();e.isSeriesFiltered(l)||(r=r.concat(g)),g.length?i=i.concat(g):f=!0}else f=!0;f&&Jv(l)&&i.push(l.name)}),this._availableNames=r;var o=this.get("data")||i,a=Mt(),s=pt(o,function(l){return(gt(l)||oe(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new he(l,this,this.ecModel))},this);this._data=ve(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected,r=this.get("selectedMode");if(r==="single"){var o=this._data;E(o,function(a){i[a.get("name")]=!1})}i[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=!0),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;E(e,function(r){i[r.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;E(e,function(r){var o=r.get("name",!0);i.hasOwnProperty(o)||(i[o]=!0),i[o]=!i[o]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&Vt(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",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})(Yt),Ts=Gt,c1=E,Ap=ye,aA=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Ap),this.group.add(this._selectorGroup=new Ap),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,r){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var a=e.get("align"),s=e.get("orient");(!a||a==="auto")&&(a=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),c=e.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(a,e,i,r,l,s,c);var f=e.getBoxLayoutParams(),p={width:r.getWidth(),height:r.getHeight()},g=e.get("padding"),d=Ei(f,p,g),y=this.layoutInner(e,a,d,o,l,c),_=Ei(Wt({width:y.width,height:y.height},f),p,g);this.group.x=_.x-y.x,this.group.y=_.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=zD(y,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,r,o,a,s,l){var c=this.getContentGroup(),f=Mt(),p=i.get("selectedMode"),g=[];r.eachRawSeries(function(d){!d.get("legendHoverLink")&&g.push(d.id)}),c1(i.getData(),function(d,y){var _=d.get("name");if(!this.newlineDisabled&&(_===""||_===`
|
|
146
|
+
`)){var m=new Ap;m.newline=!0,c.add(m);return}var x=r.getSeriesByName(_)[0];if(!f.get(_))if(x){var w=x.getData(),S=w.getVisual("legendLineStyle")||{},C=w.getVisual("legendIcon"),M=w.getVisual("style"),T=this._createItem(x,_,y,d,i,e,S,M,C,p,o);T.on("click",Ts(sA,_,null,o,g)).on("mouseover",Ts(f1,x.name,null,o,g)).on("mouseout",Ts(h1,x.name,null,o,g)),r.ssr&&T.eachChild(function(D){var P=Ut(D);P.seriesIndex=x.seriesIndex,P.dataIndex=y,P.ssrType="legend"}),f.set(_,!0)}else r.eachRawSeries(function(D){if(!f.get(_)&&D.legendVisualProvider){var P=D.legendVisualProvider;if(!P.containName(_))return;var L=P.indexOfName(_),O=P.getItemVisual(L,"style"),N=P.getItemVisual(L,"legendIcon"),B=Mn(O.fill);B&&B[3]===0&&(B[3]=.2,O=st(st({},O),{fill:Or(B,"rgba")}));var V=this._createItem(D,_,y,d,i,e,{},O,N,p,o);V.on("click",Ts(sA,null,_,o,g)).on("mouseover",Ts(f1,null,_,o,g)).on("mouseout",Ts(h1,null,_,o,g)),r.ssr&&V.eachChild(function(Z){var $=Ut(Z);$.seriesIndex=D.seriesIndex,$.dataIndex=y,$.ssrType="legend"}),f.set(_,!0)}},this)},this),a&&this._createSelector(a,i,o,s,l)},t.prototype._createSelector=function(e,i,r,o,a){var s=this.getSelectorGroup();c1(e,function(l){var c=l.type,f=new we({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(f);var p=i.getModel("selectorLabel"),g=i.getModel(["emphasis","selectorLabel"]);hu(f,{normal:p,emphasis:g},{defaultText:l.title}),Jl(f)})},t.prototype._createItem=function(e,i,r,o,a,s,l,c,f,p,g){var d=e.visualDrawType,y=a.get("itemWidth"),_=a.get("itemHeight"),m=a.isSelected(i),x=o.get("symbolRotate"),w=o.get("symbolKeepAspect"),S=o.get("icon");f=S||f||"roundRect";var C=D9(f,o,l,c,d,m,g),M=new Ap,T=o.getModel("textStyle");if(St(e.getLegendIcon)&&(!S||S==="inherit"))M.add(e.getLegendIcon({itemWidth:y,itemHeight:_,icon:f,iconRotate:x,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:w}));else{var D=S==="inherit"&&e.getData().getVisual("symbol")?x==="inherit"?e.getData().getVisual("symbolRotate"):x:0;M.add(A9({itemWidth:y,itemHeight:_,icon:f,iconRotate:D,itemStyle:C.itemStyle,symbolKeepAspect:w}))}var P=s==="left"?y+5:-5,L=s,O=a.get("formatter"),N=i;gt(O)&&O?N=O.replace("{name}",i??""):St(O)&&(N=O(i));var B=m?T.getTextColor():o.get("inactiveColor");M.add(new we({style:Li(T,{text:N,x:P,y:_/2,fill:B,align:L,verticalAlign:"middle"},{inheritColor:B})}));var V=new se({shape:M.getBoundingRect(),style:{fill:"transparent"}}),Z=o.getModel("tooltip");return Z.get("show")&&cu({el:V,componentModel:a,itemName:i,itemTooltipOption:Z.option}),M.add(V),M.eachChild(function($){$.silent=!0}),V.silent=!p,this.getContentGroup().add(M),Jl(M),M.__legendDataIndex=r,M},t.prototype.layoutInner=function(e,i,r,o,a,s){var l=this.getContentGroup(),c=this.getSelectorGroup();fs(e.get("orient"),l,e.get("itemGap"),r.width,r.height);var f=l.getBoundingRect(),p=[-f.x,-f.y];if(c.markRedraw(),l.markRedraw(),a){fs("horizontal",c,e.get("selectorItemGap",!0));var g=c.getBoundingRect(),d=[-g.x,-g.y],y=e.get("selectorButtonGap",!0),_=e.getOrient().index,m=_===0?"width":"height",x=_===0?"height":"width",w=_===0?"y":"x";s==="end"?d[_]+=f[m]+y:p[_]+=g[m]+y,d[1-_]+=f[x]/2-g[x]/2,c.x=d[0],c.y=d[1],l.x=p[0],l.y=p[1];var S={x:0,y:0};return S[m]=f[m]+y+g[m],S[x]=Math.max(f[x],g[x]),S[w]=Math.min(0,g[w]+d[1-_]),S}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})(ze);function D9(n,t,e,i,r,o,a){function s(m,x){m.lineWidth==="auto"&&(m.lineWidth=x.lineWidth>0?2:0),c1(m,function(w,S){m[S]==="inherit"&&(m[S]=x[S])})}var l=t.getModel("itemStyle"),c=l.getItemStyle(),f=n.lastIndexOf("empty",0)===0?"fill":"stroke",p=l.getShallow("decal");c.decal=!p||p==="inherit"?i.decal:wm(p,a),c.fill==="inherit"&&(c.fill=i[r]),c.stroke==="inherit"&&(c.stroke=i[f]),c.opacity==="inherit"&&(c.opacity=(r==="fill"?i:e).opacity),s(c,i);var g=t.getModel("lineStyle"),d=g.getLineStyle();if(s(d,e),c.fill==="auto"&&(c.fill=i.fill),c.stroke==="auto"&&(c.stroke=i.fill),d.stroke==="auto"&&(d.stroke=i.fill),!o){var y=t.get("inactiveBorderWidth"),_=c[f];c.lineWidth=y==="auto"?i.lineWidth>0&&_?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),d.stroke=g.get("inactiveColor"),d.lineWidth=g.get("inactiveWidth")}return{itemStyle:c,lineStyle:d}}function A9(n){var t=n.icon||"roundRect",e=Ni(t,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return e.setStyle(n.itemStyle),e.rotation=(n.iconRotate||0)*Math.PI/180,e.setOrigin([n.itemWidth/2,n.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function sA(n,t,e,i){h1(n,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:n??t}),f1(n,t,e,i)}function lA(n){for(var t=n.getZr().storage.getDisplayList(),e,i=0,r=t.length;i<r&&!(e=t[i].states.emphasis);)i++;return e&&e.hoverLayer}function f1(n,t,e,i){lA(e)||e.dispatchAction({type:"highlight",seriesName:n,name:t,excludeSeriesId:i})}function h1(n,t,e,i){lA(e)||e.dispatchAction({type:"downplay",seriesName:n,name:t,excludeSeriesId:i})}function P9(n){var t=n.findComponents({mainType:"legend"});t&&t.length&&n.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function Ku(n,t,e){var i=n==="allSelect"||n==="inverseSelect",r={},o=[];e.eachComponent({mainType:"legend",query:t},function(s){i?s[n]():s[n](t.name),uA(s,r),o.push(s.componentIndex)});var a={};return e.eachComponent("legend",function(s){E(r,function(l,c){s[l?"select":"unSelect"](c)}),uA(s,a)}),i?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function uA(n,t){var e=t||{};return E(n.getData(),function(i){var r=i.get("name");if(!(r===`
|
|
147
|
+
`||r==="")){var o=n.isSelected(r);Cr(e,r)?e[r]=e[r]&&o:e[r]=o}}),e}function L9(n){n.registerAction("legendToggleSelect","legendselectchanged",Gt(Ku,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",Gt(Ku,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",Gt(Ku,"inverseSelect")),n.registerAction("legendSelect","legendselected",Gt(Ku,"select")),n.registerAction("legendUnSelect","legendunselected",Gt(Ku,"unSelect"))}function cA(n){n.registerComponentModel(u1),n.registerComponentView(aA),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,P9),n.registerSubTypeDefaulter("legend",function(){return"plain"}),L9(n)}var E9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,r){var o=bu(e);n.prototype.init.call(this,e,i,r),fA(this,e,o)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),fA(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Mh(u1.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})(u1);function fA(n,t,e){var i=n.getOrient(),r=[1,1];r[i.index]=0,hs(t,e,{type:"box",ignoreSize:!!r})}var hA=ye,p1=["width","height"],d1=["x","y"],O9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new hA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new hA)},t.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,r,o,a,s,l){var c=this;n.prototype.renderInner.call(this,e,i,r,o,a,s,l);var f=this._controllerGroup,p=i.get("pageIconSize",!0),g=ct(p)?p:[p,p];y("pagePrev",0);var d=i.getModel("pageTextStyle");f.add(new we({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1);function y(_,m){var x=_+"DataIndex",w=uu(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:wt(c._pageGo,c,x,i,o)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});w.name=_,f.add(w)}},t.prototype.layoutInner=function(e,i,r,o,a,s){var l=this.getSelectorGroup(),c=e.getOrient().index,f=p1[c],p=d1[c],g=p1[1-c],d=d1[1-c];a&&fs("horizontal",l,e.get("selectorItemGap",!0));var y=e.get("selectorButtonGap",!0),_=l.getBoundingRect(),m=[-_.x,-_.y],x=Et(r);a&&(x[f]=r[f]-_[f]-y);var w=this._layoutContentAndController(e,o,x,c,f,g,d,p);if(a){if(s==="end")m[c]+=w[f]+y;else{var S=_[f]+y;m[c]-=S,w[p]-=S}w[f]+=_[f]+y,m[1-c]+=w[d]+w[g]/2-_[g]/2,w[g]=Math.max(w[g],_[g]),w[d]=Math.min(w[d],_[d]+m[1-c]),l.x=m[0],l.y=m[1],l.markRedraw()}return w},t.prototype._layoutContentAndController=function(e,i,r,o,a,s,l,c){var f=this.getContentGroup(),p=this._containerGroup,g=this._controllerGroup;fs(e.get("orient"),f,e.get("itemGap"),o?r.width:null,o?null:r.height),fs("horizontal",g,e.get("pageButtonItemGap",!0));var d=f.getBoundingRect(),y=g.getBoundingRect(),_=this._showController=d[a]>r[a],m=[-d.x,-d.y];i||(m[o]=f[c]);var x=[0,0],w=[-y.x,-y.y],S=Nt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(_){var C=e.get("pageButtonPosition",!0);C==="end"?w[o]+=r[a]-y[a]:x[o]+=y[a]+S}w[1-o]+=d[s]/2-y[s]/2,f.setPosition(m),p.setPosition(x),g.setPosition(w);var M={x:0,y:0};if(M[a]=_?r[a]:d[a],M[s]=Math.max(d[s],y[s]),M[l]=Math.min(0,y[l]+w[1-o]),p.__rectSize=r[a],_){var T={x:0,y:0};T[a]=Math.max(r[a]-y[a]-S,0),T[s]=M[s],p.setClipPath(new se({shape:T})),p.__rectSize=T[a]}else g.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var D=this._getPageInfo(e);return D.pageIndex!=null&&Ie(f,{x:D.contentPosition[0],y:D.contentPosition[1]},_?e:null),this._updatePageInfoView(e,D),M},t.prototype._pageGo=function(e,i,r){var o=this._getPageInfo(i)[e];o!=null&&r.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var r=this._controllerGroup;E(["pagePrev","pageNext"],function(f){var p=f+"DataIndex",g=i[p]!=null,d=r.childOfName(f);d&&(d.setStyle("fill",g?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),d.cursor=g?"pointer":"default")});var o=r.childOfName("pageText"),a=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,c=i.pageCount;o&&a&&o.setStyle("text",gt(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):a({current:l,total:c}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=e.getOrient().index,s=p1[a],l=d1[a],c=this._findTargetItemIndex(i),f=r.children(),p=f[c],g=f.length,d=g?1:0,y={contentPosition:[r.x,r.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return y;var _=C(p);y.contentPosition[a]=-_.s;for(var m=c+1,x=_,w=_,S=null;m<=g;++m)S=C(f[m]),(!S&&w.e>x.s+o||S&&!M(S,x.s))&&(w.i>x.i?x=w:x=S,x&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=x.i),++y.pageCount)),w=S;for(var m=c-1,x=_,w=_,S=null;m>=-1;--m)S=C(f[m]),(!S||!M(w,S.s))&&x.i<w.i&&(w=x,y.pagePrevDataIndex==null&&(y.pagePrevDataIndex=x.i),++y.pageCount,++y.pageIndex),x=S;return y;function C(T){if(T){var D=T.getBoundingRect(),P=D[l]+T[l];return{s:P,e:P+D[s],i:T.__legendDataIndex}}}function M(T,D){return T.e>=D&&T.s<=D+o}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,r=this.getContentGroup(),o;return r.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===e&&(i=s)}),i??o},t.type="legend.scroll",t})(aA);function R9(n){n.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(r){r.setScrollDataIndex(i)})})}function N9(n){Yn(cA),n.registerComponentModel(E9),n.registerComponentView(O9),R9(n)}function z9(n){Yn(cA),Yn(N9)}var B9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=Mh($u.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})($u),g1=fe();function F9(n,t,e){g1(n).coordSysRecordMap.each(function(i){var r=i.dataZoomInfoMap.get(t.uid);r&&(r.getRange=e)})}function V9(n,t){for(var e=g1(n).coordSysRecordMap,i=e.keys(),r=0;r<i.length;r++){var o=i[r],a=e.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid,c=s.get(l);c&&(s.removeKey(l),s.keys().length||pA(e,a))}}}function pA(n,t){if(t){n.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function H9(n,t){var e={model:t,containsPoint:Gt(U9,t),dispatchAction:Gt(W9,n),dataZoomInfoMap:null,controller:null},i=e.controller=new uW(n.getZr());return E(["pan","zoom","scrollMove"],function(r){i.on(r,function(o){var a=[];e.dataZoomInfoMap.each(function(s){if(o.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[r],c=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,o);!s.model.get("disabled",!0)&&c&&a.push({dataZoomId:s.model.id,start:c[0],end:c[1]})}}),a.length&&e.dispatchAction(a)})}),e}function W9(n,t){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function U9(n,t,e,i){return n.coordinateSystem.containPoint([e,i])}function G9(n){var t,e="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return n.each(function(o){var a=o.model,s=a.get("disabled",!0)?!1:a.get("zoomLock",!0)?"move":!0;i[e+s]>i[e+t]&&(t=s),r=r&&a.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function j9(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(t,e){var i=g1(e),r=i.coordSysRecordMap||(i.coordSysRecordMap=Mt());r.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var a=PD(o);E(a.infoList,function(s){var l=s.model.uid,c=r.get(l)||r.set(l,H9(e,s.model)),f=c.dataZoomInfoMap||(c.dataZoomInfoMap=Mt());f.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),r.each(function(o){var a=o.controller,s,l=o.dataZoomInfoMap;if(l){var c=l.keys()[0];c!=null&&(s=l.get(c))}if(!s){pA(r,o);return}var f=G9(l);a.enable(f.controlType,f.opt),a.setPointerChecker(o.containsPoint),Gh(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Z9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,i,r){if(n.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),F9(r,e,{pan:wt(v1.pan,this),zoom:wt(v1.zoom,this),scrollMove:wt(v1.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){V9(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(t1),v1={zoom:function(n,t,e,i){var r=this.range,o=r.slice(),a=n.axisModels[0];if(a){var s=y1[t](null,[i.originX,i.originY],a,e,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/i.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Yu(0,o,[0,100],0,f.minSpan,f.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1])return o}},pan:dA(function(n,t,e,i,r,o){var a=y1[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,e);return a.signal*(n[1]-n[0])*a.pixel/a.pixelLength}),scrollMove:dA(function(n,t,e,i,r,o){var a=y1[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,e);return a.signal*(n[1]-n[0])*o.scrollDelta})};function dA(n){return function(t,e,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=n(a,s,t,e,i,r);if(Yu(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1])return a}}}var y1={grid:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem.getRect();return n=n||[0,0],o.dim==="x"?(a.pixel=t[0]-n[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(a.pixel=t[0]-n[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(n,t,e,i,r){var o=e.axis,a=r.model.coordinateSystem.getRect(),s={};return n=n||[0,0],o.orient==="horizontal"?(s.pixel=t[0]-n[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-n[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function Y9(n){e1(n),n.registerComponentModel(B9),n.registerComponentView(Z9),j9(n)}var X9=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Mh($u.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t})($u),Ju=se,gA=7,$9=1,m1=30,q9=7,tc="horizontal",vA="vertical",Q9=5,K9=["line","bar","candlestick","scatter"],J9={easing:"cubicOut",duration:100,delay:0},t7=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,i){this.api=i,this._onBrush=wt(this._onBrush,this),this._onBrushEnd=wt(this._onBrushEnd,this)},t.prototype.render=function(e,i,r,o){if(n.prototype.render.apply(this,arguments),Gh(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.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(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){jh(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new ye;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(i),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,i=this.api,r=e.get("brushSelect"),o=r?q9:0,a=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===tc?{right:s.width-a.x-a.width,top:s.height-m1-gA-o,width:a.width,height:m1}:{right:gA,top:a.y,width:m1,height:a.height},c=bu(e.option);E(["right","top","width","height"],function(p){c[p]==="ph"&&(c[p]=l[p])});var f=Ei(c,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===vA&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,i=this._location,r=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(r===tc&&!a?{scaleY:l?1:-1,scaleX:1}:r===tc&&a?{scaleY:l?1:-1,scaleX:-1}:r===vA&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var c=e.getBoundingRect([s]);e.x=i.x-c.x,e.y=i.y-c.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,i=this._size,r=this._displayables.sliderGroup,o=e.get("brushSelect");r.add(new Ju({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var a=new Ju({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:wt(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)),r.add(a)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var i=this._size,r=this._shadowSize||[],o=e.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():e.otherDim;if(l==null)return;var c=this._shadowPolygonPts,f=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||i[0]!==r[0]||i[1]!==r[1]){var p=a.getDataExtent(l),g=(p[1]-p[0])*.3;p=[p[0]-g,p[1]+g];var d=[0,i[1]],y=[0,i[0]],_=[[i[0],0],[0,0]],m=[],x=y[1]/(a.count()-1),w=0,S=Math.round(a.count()/i[0]),C;a.each([l],function(L,O){if(S>0&&O%S){w+=x;return}var N=L==null||isNaN(L)||L==="",B=N?0:Le(L,p,d,!0);N&&!C&&O?(_.push([_[_.length-1][0],0]),m.push([m[m.length-1][0],0])):!N&&C&&(_.push([w,0]),m.push([w,0])),_.push([w,B]),m.push([w,B]),w+=x,C=N}),c=this._shadowPolygonPts=_,f=this._shadowPolylinePts=m}this._shadowData=a,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var M=this.dataZoomModel;function T(L){var O=M.getModel(L?"selectedDataBackground":"dataBackground"),N=new ye,B=new os({shape:{points:c},segmentIgnoreThreshold:1,style:O.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),V=new Vr({shape:{points:f},segmentIgnoreThreshold:1,style:O.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return N.add(B),N.add(V),N}for(var D=0;D<3;D++){var P=T(D===1);this._displayables.sliderGroup.add(P),this._displayables.dataShadowSegs.push(P)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,i=e.get("showDataShadow");if(i!==!1){var r,o=this.ecModel;return e.eachTargetAxis(function(a,s){var l=e.getAxisProxy(a,s).getTargetSeriesModels();E(l,function(c){if(!r&&!(i!==!0&&Vt(K9,c.get("type"))<0)){var f=o.getComponent(Qr(a),s).axis,p=e7(a),g,d=c.coordinateSystem;p!=null&&d.getOtherAxis&&(g=d.getOtherAxis(f).inverse),p=c.getData().mapDimension(p),r={thisAxis:f,series:c,thisDim:a,otherDim:p,otherAxisInverse:g}}},this)},this),r}},t.prototype._renderHandle=function(){var e=this.group,i=this._displayables,r=i.handles=[null,null],o=i.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,c=this.api,f=l.get("borderRadius")||0,p=l.get("brushSelect"),g=i.filler=new Ju({silent:p,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(g),a.add(new Ju({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:$9,fill:"rgba(0,0,0,0)"}})),E([0,1],function(S){var C=l.get("handleIcon");!$h[C]&&C.indexOf("path://")<0&&C.indexOf("image://")<0&&(C="path://"+C);var M=Ni(C,-1,0,2,2,null,!0);M.attr({cursor:yA(this._orient),draggable:!0,drift:wt(this._onDragMove,this,S),ondragend:wt(this._onDragEnd,this),onmouseover:wt(this._showDataInfo,this,!0),onmouseout:wt(this._showDataInfo,this,!1),z2:5});var T=M.getBoundingRect(),D=l.get("handleSize");this._handleHeight=Qt(D,this._size[1]),this._handleWidth=T.width/T.height*this._handleHeight,M.setStyle(l.getModel("handleStyle").getItemStyle()),M.style.strokeNoScale=!0,M.rectHover=!0,M.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Jl(M);var P=l.get("handleColor");P!=null&&(M.style.fill=P),a.add(r[S]=M);var L=l.getModel("textStyle"),O=l.get("handleLabel")||{},N=O.show||!1;e.add(o[S]=new we({silent:!0,invisible:!N,style:Li(L,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:L.getTextColor(),font:L.getFont()}),z2:10}))},this);var d=g;if(p){var y=Qt(l.get("moveHandleSize"),s[1]),_=i.moveHandle=new se({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:y}}),m=y*.8,x=i.moveHandleIcon=Ni(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);x.silent=!0,x.y=s[1]+y/2-.5,_.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var w=Math.min(s[1]/2,Math.max(y,10));d=i.moveZone=new se({invisible:!0,shape:{y:s[1]-w,height:y+w}}),d.on("mouseover",function(){c.enterEmphasis(_)}).on("mouseout",function(){c.leaveEmphasis(_)}),a.add(_),a.add(x),a.add(d)}d.attr({draggable:!0,cursor:yA(this._orient),drift:wt(this._onDragMove,this,"all"),ondragstart:wt(this._showDataInfo,this,!0),ondragend:wt(this._onDragEnd,this),onmouseover:wt(this._showDataInfo,this,!0),onmouseout:wt(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Le(e[0],[0,100],i,!0),Le(e[1],[0,100],i,!0)]},t.prototype._updateInterval=function(e,i){var r=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=r.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Yu(i,o,a,r.get("zoomLock")?"all":e,s.minSpan!=null?Le(s.minSpan,l,a,!0):null,s.maxSpan!=null?Le(s.maxSpan,l,a,!0):null);var c=this._range,f=this._range=qa([Le(o[0],a,l,!0),Le(o[1],a,l,!0)]);return!c||c[0]!==f[0]||c[1]!==f[1]},t.prototype._updateView=function(e){var i=this._displayables,r=this._handleEnds,o=qa(r.slice()),a=this._size;E([0,1],function(d){var y=i.handles[d],_=this._handleHeight;y.attr({scaleX:_/2,scaleY:_/2,x:r[d]+(d?-1:1),y:a[1]/2-_/2})},this),i.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]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,c=[0,o[0],o[1],a[0]],f=0;f<l.length;f++){var p=l[f],g=p.getClipPath();g||(g=new se,p.setClipPath(g)),g.setShape({x:c[f],y:0,width:c[f+1]-c[f],height:a[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var i=this.dataZoomModel,r=this._displayables,o=r.handleLabels,a=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var c=l.getAxisModel().axis,f=this._range,p=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(p[0],c),this._formatLabel(p[1],c)]}}var g=qa(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(y){var _=su(r.handles[y].parent,this.group),m=Oy(y===0?"right":"left",_),x=this._handleWidth/2+Q9,w=lu([g[y]+(y===0?-x:x),this._size[1]/2],_);o[y].setStyle({x:w[0],y:w[1],verticalAlign:a===tc?"middle":m,align:a===tc?m:"center",text:s[y]})}},t.prototype._formatLabel=function(e,i){var r=this.dataZoomModel,o=r.get("labelFormatter"),a=r.get("labelPrecision");(a==null||a==="auto")&&(a=i.getPixelPrecision());var s=e==null||isNaN(e)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(a,20));return St(o)?o(e,s):gt(o)?o.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var i=this.dataZoomModel.get("handleLabel")||{},r=i.show||!1,o=this.dataZoomModel.getModel(["emphasis","handleLabel"]),a=o.get("show")||!1,s=e||this._dragging?a:r,l=this._displayables,c=l.handleLabels;c[0].attr("invisible",!s),c[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,i,r,o){this._dragging=!0,Ha(o.event);var a=this._displayables.sliderGroup.getLocalTransform(),s=lu([i,r],a,!0),l=this._updateInterval(e,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 e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var i=this._size,r=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(r[0]<0||r[0]>i[0]||r[1]<0||r[1]>i[1])){var o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",r[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var i=e.offsetX,r=e.offsetY;this._brushStart=new Pt(i,r),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var r=i.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(r.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=qa([Le(r.x,a,s,!0),Le(r.x+r.width,a,s,!0)]),this._handleEnds=[r.x,r.x+r.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ha(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,i){var r=this._displayables,o=this.dataZoomModel,a=r.brushRect;a||(a=r.brushRect=new Ju({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),r.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,c=l.transformCoordToLocal(e,i),f=l.transformCoordToLocal(s.x,s.y),p=this._size;c[0]=Math.max(Math.min(p[0],c[0]),0),a.setShape({x:f[0],y:0,width:c[0]-f[0],height:p[1]})},t.prototype._dispatchZoomAction=function(e){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?J9:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=PD(this.dataZoomModel).infoList;if(!e&&i.length){var r=i[0].model.coordinateSystem;e=r.getRect&&r.getRect()}if(!e){var o=this.api.getWidth(),a=this.api.getHeight();e={x:o*.2,y:a*.2,width:o*.6,height:a*.6}}return e},t.type="dataZoom.slider",t})(t1);function e7(n){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[n]}function yA(n){return n==="vertical"?"ns-resize":"ew-resize"}function n7(n){n.registerComponentModel(X9),n.registerComponentView(t7),e1(n)}function i7(n){Yn(Y9),Yn(n7)}var r7=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,i,r){n.prototype.init.call(this,e,i,r),this._sourceManager=new mC(this),_C(this)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),_C(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Ri},t})(Yt),o7=(function(n){ft(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t})(ze);function a7(n){n.registerComponentModel(r7),n.registerComponentView(o7)}function mA(n,t,e){var i=Yi.createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",n)),i.width=r*e,i.height=o*e,i}var _1=(function(n){ae(t,n);function t(e,i,r){var o=n.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;r=r||Wf,typeof e=="string"?a=mA(e,i,r):_t(e)&&(a=e,e=a.id),o.id=e,o.dom=a;var s=a.style;return s&&(ev(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=i,o.dpr=r,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 e=this.dpr;this.domBack=mA("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,r,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,c=new jt(0,0,0,0);function f(w){if(!(!w.isFinite()||w.isZero()))if(a.length===0){var S=new jt(0,0,0,0);S.copy(w),a.push(S)}else{for(var C=!1,M=1/0,T=0,D=0;D<a.length;++D){var P=a[D];if(P.intersect(w)){var L=new jt(0,0,0,0);L.copy(P),L.union(w),a[D]=L,C=!0;break}else if(l){c.copy(w),c.union(P);var O=w.width*w.height,N=P.width*P.height,B=c.width*c.height,V=B-O-N;V<M&&(M=V,T=D)}}if(l&&(a[T].union(w),C=!0),!C){var S=new jt(0,0,0,0);S.copy(w),a.push(S)}l||(l=a.length>=s)}}for(var p=this.__startIndex;p<this.__endIndex;++p){var g=e[p];if(g){var d=g.shouldBePainted(r,o,!0,!0),y=g.__isRendered&&(g.__dirty&kn||!d)?g.getPrevPaintRect():null;y&&f(y);var _=d&&(g.__dirty&kn||!g.__isRendered)?g.getPaintRect():null;_&&f(_)}}for(var p=this.__prevStartIndex;p<this.__prevEndIndex;++p){var g=i[p],d=g&&g.shouldBePainted(r,o,!0,!0);if(g&&(!d||!g.__zr)&&g.__isRendered){var y=g.getPrevPaintRect();y&&f(y)}}var m;do{m=!1;for(var p=0;p<a.length;){if(a[p].isZero()){a.splice(p,1);continue}for(var x=p+1;x<a.length;)a[p].intersect(a[x])?(m=!0,a[p].union(a[x]),a.splice(x,1)):x++;p++}}while(m);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var r=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=e+"px",a.height=i+"px"),o.width=e*r,o.height=i*r,s&&(s.width=e*r,s.height=i*r,r!==1&&this.ctxBack.scale(r,r))},t.prototype.clear=function(e,i,r){var o=this.dom,a=this.ctx,s=o.width,l=o.height;i=i||this.clearColor;var c=this.motionBlur&&!e,f=this.lastFrameAlpha,p=this.dpr,g=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/p,l/p));var d=this.domBack;function y(_,m,x,w){if(a.clearRect(_,m,x,w),i&&i!=="transparent"){var S=void 0;if(wl(i)){var C=i.global||i.__width===x&&i.__height===w;S=C&&i.__canvasGradient||mm(a,i,{x:0,y:0,width:x,height:w}),i.__canvasGradient=S,i.__width=x,i.__height=w}else Sw(i)&&(i.scaleX=i.scaleX||p,i.scaleY=i.scaleY||p,S=_m(a,i,{dirty:function(){g.setUnpainted(),g.painter.refresh()}}));a.save(),a.fillStyle=S||i,a.fillRect(_,m,x,w),a.restore()}c&&(a.save(),a.globalAlpha=f,a.drawImage(d,_,m,x,w),a.restore())}!r||c?y(0,0,s,l):r.length&&E(r,function(_){y(_.x*p,_.y*p,_.width*p,_.height*p)})},t})(En),_A=1e5,ea=314159,Pp=.01,s7=.001;function l7(n){return n?n.__builtin__?!0:!(typeof n.resize!="function"||typeof n.refresh!="function"):!1}function u7(n,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+n+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var c7=(function(){function n(t,e,i,r){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=i=st({},i||{}),this.dpr=i.devicePixelRatio||Wf,this._singleCanvas=o,this.root=t;var a=t.style;a&&(ev(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=t,f=c.width,p=c.height;i.width!=null&&(f=i.width),i.height!=null&&(p=i.height),this.dpr=i.devicePixelRatio||1,c.width=f*this.dpr,c.height=p*this.dpr,this._width=f,this._height=p;var g=new _1(c,this,this.dpr);g.__builtin__=!0,g.initContext(),l[ea]=g,g.zlevel=ea,s.push(ea),this._domRoot=t}else{this._width=Qh(t,0,i),this._height=Qh(t,1,i);var d=this._domRoot=u7(this._width,this._height);t.appendChild(d)}}return n.prototype.getType=function(){return"canvas"},n.prototype.isSingleCanvas=function(){return this._singleCanvas},n.prototype.getViewportRoot=function(){return this._domRoot},n.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},n.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var o=0;o<r.length;o++){var a=r[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=e.slice()),this},n.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},n.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<e;a++){var s=t[a];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(_A)),o||(o=i.ctx,o.save()),Zo(o,s,r,a===e-1))}o&&o.restore()}},n.prototype.getHoverLayer=function(){return this.getLayer(_A)},n.prototype.paintOne=function(t,e){xm(t,e)},n.prototype._paintList=function(t,e,i,r){if(this._redrawId===r){i=i||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,e,i),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;Tf(function(){l._paintList(t,e,i,r)})}}},n.prototype._compositeManually=function(){var t=this.getLayer(ea).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(r){r.virtual&&t.drawImage(r.dom,0,0,e,i)})},n.prototype._doPaintList=function(t,e,i){for(var r=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||i)&&o.push(c)}for(var f=!0,p=!1,g=function(_){var m=o[_],x=m.ctx,w=a&&m.createRepaintRects(t,e,d._width,d._height),S=i?m.__startIndex:m.__drawIndex,C=!i&&m.incremental&&Date.now,M=C&&Date.now(),T=m.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,T,w);else if(S===m.__startIndex){var D=t[S];(!D.incremental||!D.notClear||i)&&m.clear(!1,T,w)}S===-1&&(console.error("For some unknown reason. drawIndex is -1"),S=m.__startIndex);var P,L=function(V){var Z={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(P=S;P<m.__endIndex;P++){var $=t[P];if($.__inHover&&(p=!0),r._doPaintEl($,m,a,V,Z,P===m.__endIndex-1),C){var et=Date.now()-M;if(et>15)break}}Z.prevElClipPaths&&x.restore()};if(w)if(w.length===0)P=m.__endIndex;else for(var O=d.dpr,N=0;N<w.length;++N){var B=w[N];x.save(),x.beginPath(),x.rect(B.x*O,B.y*O,B.width*O,B.height*O),x.clip(),L(B),x.restore()}else x.save(),L(),x.restore();m.__drawIndex=P,m.__drawIndex<m.__endIndex&&(f=!1)},d=this,y=0;y<o.length;y++)g(y);return Ct.wxa&&E(this._layers,function(_){_&&_.ctx&&_.ctx.draw&&_.ctx.draw()}),{finished:f,needsRefreshHover:p}},n.prototype._doPaintEl=function(t,e,i,r,o,a){var s=e.ctx;if(i){var l=t.getPaintRect();(!r||l&&l.intersect(r))&&(Zo(s,t,o,a),t.setPrevPaintRect(l))}else Zo(s,t,o,a)},n.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ea);var i=this._layers[t];return i||(i=new _1("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?zt(i,this._layerConfig[t],!0):this._layerConfig[t-Pp]&&zt(i,this._layerConfig[t-Pp],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},n.prototype.insertLayer=function(t,e){var i=this._layers,r=this._zlevelList,o=r.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&l7(e)){if(o>0&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=i[r[l]]}if(r.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var c=s.dom;c.nextSibling?a.insertBefore(e.dom,c.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.painter||(e.painter=this)}},n.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r];t.call(e,this._layers[o],o)}},n.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r],a=this._layers[o];a.__builtin__&&t.call(e,a,o)}},n.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r],a=this._layers[o];a.__builtin__||t.call(e,a,o)}},n.prototype.getLayers=function(){return this._layers},n.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(p,g){p.__dirty=p.__used=!1});function e(p){o&&(o.__endIndex!==p&&(o.__dirty=!0),o.__endIndex=p)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var r=t[i];if(r.zlevel!==t[i-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<t.length;l++){var r=t[l],c=r.zlevel,f=void 0;s!==c&&(s=c,a=0),r.incremental?(f=this.getLayer(c+s7,this._needsManuallyCompositing),f.incremental=!0,a=1):f=this.getLayer(c+(a>0?Pp:0),this._needsManuallyCompositing),f.__builtin__||gf("ZLevel "+c+" has been used by unkown layer "+f.id),f!==o&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),o=f),r.__dirty&kn&&!r.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(p,g){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(t){t.clear()},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t,E(this._layers,function(e){e.setUnpainted()})},n.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?zt(i[t],e,!0):i[t]=e;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];if(o===t||o===t+Pp){var a=this._layers[o];zt(a,i[t],!0)}}}},n.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],i.splice(Vt(i,t),1))},n.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var r=this._opts,o=this.root;if(t!=null&&(r.width=t),e!=null&&(r.height=e),t=Qh(o,0,r),e=Qh(o,1,r),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(ea).resize(t,e)}return this},n.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},n.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},n.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[ea].dom;var e=new _1("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,o=e.dom.height;this.eachLayer(function(p){p.__builtin__?i.drawImage(p.dom,0,0,r,o):p.renderToCanvas&&(i.save(),p.renderToCanvas(i),i.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 f=s[l];Zo(i,f,a,l===c-1)}return e.dom},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n})();function f7(n){n.registerPainter("canvas",c7)}export{CN as $,SO as A,nO as B,ff as C,lO as D,hO as E,CO as F,po as G,Zg as H,Mb as I,Ab as J,PT as K,Be as L,Yt as M,qL as N,Me as O,BE as P,ze as Q,xi as R,Kn as S,Ym as T,uR as U,he as V,lR as W,m2 as X,Ye as Y,cR as Z,mg as _,vg as a,jb as a$,OF as a0,HF as a1,vF as a2,RF as a3,E2 as a4,NF as a5,Ct as a6,v6 as a7,p6 as a8,d6 as a9,Gr as aA,FF as aB,_w as aC,Uh as aD,t6 as aE,Yn as aF,i6 as aG,HR as aH,gF as aI,PR as aJ,r3 as aK,fH as aL,q6 as aM,SH as aN,aW as aO,YW as aP,m8 as aQ,k9 as aR,z9 as aS,i7 as aT,o9 as aU,T9 as aV,f7 as aW,a7 as aX,D6 as aY,bO as aZ,Ub as a_,g6 as aa,n6 as ab,BF as ac,Nm as ad,zF as ae,VF as af,e6 as ag,jV as ah,EF as ai,xm as aj,nN as ak,JV as al,KV as am,li as an,N2 as ao,z2 as ap,Hm as aq,Wy as ar,F2 as as,O2 as at,R2 as au,Bm as av,Fm as aw,zm as ax,V2 as ay,sp as az,ue as b,oO as b0,aR as b1,UE as b2,cL as c,nE as d,GE as e,Eg as f,Ta as g,Ag as h,pL as i,OE as j,fL as k,$b as l,Cg as m,_l as n,wg as o,aE as p,XL as q,gg as r,wE as s,ME as t,vE as u,pE as v,IE as w,cE as x,hb as y,tE as z};
|